@dcl-regenesislabs/mobile-hub 1.0.0-20717249605.commit-a29cf32 → 1.0.0-20717561427.commit-3ab1660
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/assets/{basic-gLoESiOp.js → basic-BfRUc9Th.js} +1 -1
- package/assets/{core-3moN3UNO.js → core-AS6XiJ-z.js} +4 -4
- package/assets/{features-DT9gP3sN.js → features-CM6b3F1L.js} +1 -1
- package/assets/{fortmatic-Ck-Id1f0.js → fortmatic-DwNYA7Nn.js} +1 -1
- package/assets/{index-YhlvjPsZ.js → index-Cdbqqusx.js} +1 -1
- package/assets/{index-BaNKk9_3.js → index-D8Ef1qHq.js} +1 -1
- package/assets/{index-DrVdGUjk.js → index-DZqoSBZH.js} +3 -3
- package/assets/{index-ChaSpG6i.js → index-RQ1nMy1w.js} +1 -1
- package/assets/{index-DOy_7bz6.js → index-bRh91pIA.js} +1 -1
- package/assets/{w3m-modal-B83L6vyV.js → w3m-modal-DtO4x4So.js} +1 -1
- package/index.html +3 -3
- package/package.json +3 -3
|
@@ -16,7 +16,7 @@ Please change the parent <Route path="${E}"> to <Route path="${E==="/"?"*":`${E}
|
|
|
16
16
|
missingProperty: ${m},
|
|
17
17
|
depsCount: ${p},
|
|
18
18
|
deps: ${y}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(f){const[p,y]=o(f);u(f,p),c(f,y)}};function o({schema:f}){const p={},y={};for(const m in f){if(m==="__proto__")continue;const g=Array.isArray(f[m])?p:y;g[m]=f[m]}return[p,y]}function u(f,p=f.schema){const{gen:y,data:m,it:g}=f;if(Object.keys(p).length===0)return;const S=y.let("missing");for(const M in p){const R=p[M];if(R.length===0)continue;const I=(0,n.propertyInData)(y,m,M,g.opts.ownProperties);f.setParams({property:M,depsCount:R.length,deps:R.join(", ")}),g.allErrors?y.if(I,()=>{for(const N of R)(0,n.checkReportMissingProp)(f,N)}):(y.if((0,a._)`${I} && (${(0,n.checkMissingProp)(f,R,S)})`),(0,n.reportMissingProp)(f,S),y.else())}}e.validatePropertyDeps=u;function c(f,p=f.schema){const{gen:y,data:m,keyword:g,it:S}=f,M=y.name("valid");for(const R in p)(0,t.alwaysValidSchema)(S,p[R])||(y.if((0,n.propertyInData)(y,m,R,S.opts.ownProperties),()=>{const I=f.subschema({keyword:g,schemaProp:R},M);f.mergeValidEvaluated(I,M)},()=>y.var(M,!0)),f.ok(M))}e.validateSchemaDeps=c,e.default=i})(ly)),ly}var sd={},DS;function uB(){if(DS)return sd;DS=1,Object.defineProperty(sd,"__esModule",{value:!0});const e=bt(),a=kt(),n={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:i})=>(0,e._)`{propertyName: ${i.propertyName}}`},code(i){const{gen:o,schema:u,data:c,it:f}=i;if((0,a.alwaysValidSchema)(f,u))return;const p=o.name("valid");o.forIn("key",c,y=>{i.setParams({propertyName:y}),i.subschema({keyword:"propertyNames",data:y,dataTypes:["string"],propertyName:y,compositeRule:!0},p),o.if((0,e.not)(p),()=>{i.error(!0),f.allErrors||o.break()})}),i.ok(p)}};return sd.default=n,sd}var ud={},qS;function DD(){if(qS)return ud;qS=1,Object.defineProperty(ud,"__esModule",{value:!0});const e=oi(),a=bt(),t=xi(),n=kt(),o={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:u})=>(0,a._)`{additionalProperty: ${u.additionalProperty}}`},code(u){const{gen:c,schema:f,parentSchema:p,data:y,errsCount:m,it:g}=u;if(!m)throw new Error("ajv implementation error");const{allErrors:S,opts:M}=g;if(g.props=!0,M.removeAdditional!=="all"&&(0,n.alwaysValidSchema)(g,f))return;const R=(0,e.allSchemaProperties)(p.properties),I=(0,e.allSchemaProperties)(p.patternProperties);N(),u.ok((0,a._)`${m} === ${t.default.errors}`);function N(){c.forIn("key",y,O=>{!R.length&&!I.length?T(O):c.if(E(O),()=>T(O))})}function E(O){let C;if(R.length>8){const z=(0,n.schemaRefOrVal)(g,p.properties,"properties");C=(0,e.isOwnProperty)(c,z,O)}else R.length?C=(0,a.or)(...R.map(z=>(0,a._)`${O} === ${z}`)):C=a.nil;return I.length&&(C=(0,a.or)(C,...I.map(z=>(0,a._)`${(0,e.usePattern)(u,z)}.test(${O})`))),(0,a.not)(C)}function P(O){c.code((0,a._)`delete ${y}[${O}]`)}function T(O){if(M.removeAdditional==="all"||M.removeAdditional&&f===!1){P(O);return}if(f===!1){u.setParams({additionalProperty:O}),u.error(),S||c.break();return}if(typeof f=="object"&&!(0,n.alwaysValidSchema)(g,f)){const C=c.name("valid");M.removeAdditional==="failing"?(v(O,C,!1),c.if((0,a.not)(C),()=>{u.reset(),P(O)})):(v(O,C),S||c.if((0,a.not)(C),()=>c.break()))}}function v(O,C,z){const U={keyword:"additionalProperties",dataProp:O,dataPropType:n.Type.Str};z===!1&&Object.assign(U,{compositeRule:!0,createErrors:!1,allErrors:!1}),u.subschema(U,C)}}};return ud.default=o,ud}var ld={},kS;function lB(){if(kS)return ld;kS=1,Object.defineProperty(ld,"__esModule",{value:!0});const e=Ll(),a=oi(),t=kt(),n=DD(),i={keyword:"properties",type:"object",schemaType:"object",code(o){const{gen:u,schema:c,parentSchema:f,data:p,it:y}=o;y.opts.removeAdditional==="all"&&f.additionalProperties===void 0&&n.default.code(new e.KeywordCxt(y,n.default,"additionalProperties"));const m=(0,a.allSchemaProperties)(c);for(const I of m)y.definedProperties.add(I);y.opts.unevaluated&&m.length&&y.props!==!0&&(y.props=t.mergeEvaluated.props(u,(0,t.toHash)(m),y.props));const g=m.filter(I=>!(0,t.alwaysValidSchema)(y,c[I]));if(g.length===0)return;const S=u.name("valid");for(const I of g)M(I)?R(I):(u.if((0,a.propertyInData)(u,p,I,y.opts.ownProperties)),R(I),y.allErrors||u.else().var(S,!0),u.endIf()),o.it.definedProperties.add(I),o.ok(S);function M(I){return y.opts.useDefaults&&!y.compositeRule&&c[I].default!==void 0}function R(I){o.subschema({keyword:"properties",schemaProp:I,dataProp:I},S)}}};return ld.default=i,ld}var cd={},US;function cB(){if(US)return cd;US=1,Object.defineProperty(cd,"__esModule",{value:!0});const e=oi(),a=bt(),t=kt(),n=kt(),i={keyword:"patternProperties",type:"object",schemaType:"object",code(o){const{gen:u,schema:c,data:f,parentSchema:p,it:y}=o,{opts:m}=y,g=(0,e.allSchemaProperties)(c),S=g.filter(T=>(0,t.alwaysValidSchema)(y,c[T]));if(g.length===0||S.length===g.length&&(!y.opts.unevaluated||y.props===!0))return;const M=m.strictSchema&&!m.allowMatchingProperties&&p.properties,R=u.name("valid");y.props!==!0&&!(y.props instanceof a.Name)&&(y.props=(0,n.evaluatedPropsToName)(u,y.props));const{props:I}=y;N();function N(){for(const T of g)M&&E(T),y.allErrors?P(T):(u.var(R,!0),P(T),u.if(R))}function E(T){for(const v in M)new RegExp(T).test(v)&&(0,t.checkStrictMode)(y,`property ${v} matches pattern ${T} (use allowMatchingProperties)`)}function P(T){u.forIn("key",f,v=>{u.if((0,a._)`${(0,e.usePattern)(o,T)}.test(${v})`,()=>{const O=S.includes(T);O||o.subschema({keyword:"patternProperties",schemaProp:T,dataProp:v,dataPropType:n.Type.Str},R),y.opts.unevaluated&&I!==!0?u.assign((0,a._)`${I}[${v}]`,!0):!O&&!y.allErrors&&u.if((0,a.not)(R),()=>u.break())})})}}};return cd.default=i,cd}var dd={},BS;function dB(){if(BS)return dd;BS=1,Object.defineProperty(dd,"__esModule",{value:!0});const e=kt(),a={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){const{gen:n,schema:i,it:o}=t;if((0,e.alwaysValidSchema)(o,i)){t.fail();return}const u=n.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},u),t.failResult(u,()=>t.reset(),()=>t.error())},error:{message:"must NOT be valid"}};return dd.default=a,dd}var fd={},FS;function fB(){if(FS)return fd;FS=1,Object.defineProperty(fd,"__esModule",{value:!0});const a={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:oi().validateUnion,error:{message:"must match a schema in anyOf"}};return fd.default=a,fd}var pd={},VS;function pB(){if(VS)return pd;VS=1,Object.defineProperty(pd,"__esModule",{value:!0});const e=bt(),a=kt(),n={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:i})=>(0,e._)`{passingSchemas: ${i.passing}}`},code(i){const{gen:o,schema:u,parentSchema:c,it:f}=i;if(!Array.isArray(u))throw new Error("ajv implementation error");if(f.opts.discriminator&&c.discriminator)return;const p=u,y=o.let("valid",!1),m=o.let("passing",null),g=o.name("_valid");i.setParams({passing:m}),o.block(S),i.result(y,()=>i.reset(),()=>i.error(!0));function S(){p.forEach((M,R)=>{let I;(0,a.alwaysValidSchema)(f,M)?o.var(g,!0):I=i.subschema({keyword:"oneOf",schemaProp:R,compositeRule:!0},g),R>0&&o.if((0,e._)`${g} && ${y}`).assign(y,!1).assign(m,(0,e._)`[${m}, ${R}]`).else(),o.if(g,()=>{o.assign(y,!0),o.assign(m,R),I&&i.mergeEvaluated(I,e.Name)})})}}};return pd.default=n,pd}var yd={},HS;function yB(){if(HS)return yd;HS=1,Object.defineProperty(yd,"__esModule",{value:!0});const e=kt(),a={keyword:"allOf",schemaType:"array",code(t){const{gen:n,schema:i,it:o}=t;if(!Array.isArray(i))throw new Error("ajv implementation error");const u=n.name("valid");i.forEach((c,f)=>{if((0,e.alwaysValidSchema)(o,c))return;const p=t.subschema({keyword:"allOf",schemaProp:f},u);t.ok(u),t.mergeEvaluated(p)})}};return yd.default=a,yd}var md={},zS;function mB(){if(zS)return md;zS=1,Object.defineProperty(md,"__esModule",{value:!0});const e=bt(),a=kt(),n={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:o})=>(0,e.str)`must match "${o.ifClause}" schema`,params:({params:o})=>(0,e._)`{failingKeyword: ${o.ifClause}}`},code(o){const{gen:u,parentSchema:c,it:f}=o;c.then===void 0&&c.else===void 0&&(0,a.checkStrictMode)(f,'"if" without "then" and "else" is ignored');const p=i(f,"then"),y=i(f,"else");if(!p&&!y)return;const m=u.let("valid",!0),g=u.name("_valid");if(S(),o.reset(),p&&y){const R=u.let("ifClause");o.setParams({ifClause:R}),u.if(g,M("then",R),M("else",R))}else p?u.if(g,M("then")):u.if((0,e.not)(g),M("else"));o.pass(m,()=>o.error(!0));function S(){const R=o.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},g);o.mergeEvaluated(R)}function M(R,I){return()=>{const N=o.subschema({keyword:R},g);u.assign(m,g),o.mergeValidEvaluated(N,m),I?u.assign(I,(0,e._)`${R}`):o.setParams({ifClause:R})}}}};function i(o,u){const c=o.schema[u];return c!==void 0&&!(0,a.alwaysValidSchema)(o,c)}return md.default=n,md}var hd={},WS;function hB(){if(WS)return hd;WS=1,Object.defineProperty(hd,"__esModule",{value:!0});const e=kt(),a={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:n,it:i}){n.if===void 0&&(0,e.checkStrictMode)(i,`"${t}" without "if" is ignored`)}};return hd.default=a,hd}var GS;function gB(){if(GS)return nd;GS=1,Object.defineProperty(nd,"__esModule",{value:!0});const e=jD(),a=iB(),t=LD(),n=aB(),i=oB(),o=sB(),u=uB(),c=DD(),f=lB(),p=cB(),y=dB(),m=fB(),g=pB(),S=yB(),M=mB(),R=hB();function I(N=!1){const E=[y.default,m.default,g.default,S.default,M.default,R.default,u.default,c.default,o.default,f.default,p.default];return N?E.push(a.default,n.default):E.push(e.default,t.default),E.push(i.default),E}return nd.default=I,nd}var gd={},vd={},KS;function vB(){if(KS)return vd;KS=1,Object.defineProperty(vd,"__esModule",{value:!0});const e=bt(),t={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:n})=>(0,e.str)`must match format "${n}"`,params:({schemaCode:n})=>(0,e._)`{format: ${n}}`},code(n,i){const{gen:o,data:u,$data:c,schema:f,schemaCode:p,it:y}=n,{opts:m,errSchemaPath:g,schemaEnv:S,self:M}=y;if(!m.validateFormats)return;c?R():I();function R(){const N=o.scopeValue("formats",{ref:M.formats,code:m.code.formats}),E=o.const("fDef",(0,e._)`${N}[${p}]`),P=o.let("fType"),T=o.let("format");o.if((0,e._)`typeof ${E} == "object" && !(${E} instanceof RegExp)`,()=>o.assign(P,(0,e._)`${E}.type || "string"`).assign(T,(0,e._)`${E}.validate`),()=>o.assign(P,(0,e._)`"string"`).assign(T,E)),n.fail$data((0,e.or)(v(),O()));function v(){return m.strictSchema===!1?e.nil:(0,e._)`${p} && !${T}`}function O(){const C=S.$async?(0,e._)`(${E}.async ? await ${T}(${u}) : ${T}(${u}))`:(0,e._)`${T}(${u})`,z=(0,e._)`(typeof ${T} == "function" ? ${C} : ${T}.test(${u}))`;return(0,e._)`${T} && ${T} !== true && ${P} === ${i} && !${z}`}}function I(){const N=M.formats[f];if(!N){v();return}if(N===!0)return;const[E,P,T]=O(N);E===i&&n.pass(C());function v(){if(m.strictSchema===!1){M.logger.warn(z());return}throw new Error(z());function z(){return`unknown format "${f}" ignored in schema at path "${g}"`}}function O(z){const U=z instanceof RegExp?(0,e.regexpCode)(z):m.code.formats?(0,e._)`${m.code.formats}${(0,e.getProperty)(f)}`:void 0,K=o.scopeValue("formats",{key:f,ref:z,code:U});return typeof z=="object"&&!(z instanceof RegExp)?[z.type||"string",z.validate,(0,e._)`${K}.validate`]:["string",z,K]}function C(){if(typeof N=="object"&&!(N instanceof RegExp)&&N.async){if(!S.$async)throw new Error("async format in sync schema");return(0,e._)`await ${T}(${u})`}return typeof P=="function"?(0,e._)`${T}(${u})`:(0,e._)`${T}.test(${u})`}}}};return vd.default=t,vd}var YS;function _B(){if(YS)return gd;YS=1,Object.defineProperty(gd,"__esModule",{value:!0});const a=[vB().default];return gd.default=a,gd}var ro={},XS;function EB(){return XS||(XS=1,Object.defineProperty(ro,"__esModule",{value:!0}),ro.contentVocabulary=ro.metadataVocabulary=void 0,ro.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],ro.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),ro}var JS;function bB(){if(JS)return Vc;JS=1,Object.defineProperty(Vc,"__esModule",{value:!0});const e=GU(),a=nB(),t=gB(),n=_B(),i=EB(),o=[e.default,a.default,(0,t.default)(),n.default,i.metadataVocabulary,i.contentVocabulary];return Vc.default=o,Vc}var _d={},qu={},QS;function wB(){if(QS)return qu;QS=1,Object.defineProperty(qu,"__esModule",{value:!0}),qu.DiscrError=void 0;var e;return(function(a){a.Tag="tag",a.Mapping="mapping"})(e||(qu.DiscrError=e={})),qu}var ZS;function TB(){if(ZS)return _d;ZS=1,Object.defineProperty(_d,"__esModule",{value:!0});const e=bt(),a=wB(),t=Mb(),n=cf(),i=kt(),u={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:c,tagName:f}})=>c===a.DiscrError.Tag?`tag "${f}" must be string`:`value of tag "${f}" must be in oneOf`,params:({params:{discrError:c,tag:f,tagName:p}})=>(0,e._)`{error: ${c}, tag: ${p}, tagValue: ${f}}`},code(c){const{gen:f,data:p,schema:y,parentSchema:m,it:g}=c,{oneOf:S}=m;if(!g.opts.discriminator)throw new Error("discriminator: requires discriminator option");const M=y.propertyName;if(typeof M!="string")throw new Error("discriminator: requires propertyName");if(y.mapping)throw new Error("discriminator: mapping is not supported");if(!S)throw new Error("discriminator: requires oneOf keyword");const R=f.let("valid",!1),I=f.const("tag",(0,e._)`${p}${(0,e.getProperty)(M)}`);f.if((0,e._)`typeof ${I} == "string"`,()=>N(),()=>c.error(!1,{discrError:a.DiscrError.Tag,tag:I,tagName:M})),c.ok(R);function N(){const T=P();f.if(!1);for(const v in T)f.elseIf((0,e._)`${I} === ${v}`),f.assign(R,E(T[v]));f.else(),c.error(!1,{discrError:a.DiscrError.Mapping,tag:I,tagName:M}),f.endIf()}function E(T){const v=f.name("valid"),O=c.subschema({keyword:"oneOf",schemaProp:T},v);return c.mergeEvaluated(O,e.Name),v}function P(){var T;const v={},O=z(m);let C=!0;for(let ae=0;ae<S.length;ae++){let _e=S[ae];if(_e?.$ref&&!(0,i.schemaHasRulesButRef)(_e,g.self.RULES)){const ye=_e.$ref;if(_e=t.resolveRef.call(g.self,g.schemaEnv.root,g.baseId,ye),_e instanceof t.SchemaEnv&&(_e=_e.schema),_e===void 0)throw new n.default(g.opts.uriResolver,g.baseId,ye)}const be=(T=_e?.properties)===null||T===void 0?void 0:T[M];if(typeof be!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${M}"`);C=C&&(O||z(_e)),U(be,ae)}if(!C)throw new Error(`discriminator: "${M}" must be required`);return v;function z({required:ae}){return Array.isArray(ae)&&ae.includes(M)}function U(ae,_e){if(ae.const)K(ae.const,_e);else if(ae.enum)for(const be of ae.enum)K(be,_e);else throw new Error(`discriminator: "properties/${M}" must have "const" or "enum"`)}function K(ae,_e){if(typeof ae!="string"||ae in v)throw new Error(`discriminator: "${M}" values must be unique strings`);v[ae]=_e}}}};return _d.default=u,_d}const SB="http://json-schema.org/draft-07/schema#",OB="http://json-schema.org/draft-07/schema#",AB="Core schema meta-schema",PB={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},IB=["object","boolean"],RB={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},MB={$schema:SB,$id:OB,title:AB,definitions:PB,type:IB,properties:RB,default:!0};var $S;function xo(){return $S||($S=1,(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.MissingRefError=a.ValidationError=a.CodeGen=a.Name=a.nil=a.stringify=a.str=a._=a.KeywordCxt=a.Ajv=void 0;const t=HU(),n=bB(),i=TB(),o=MB,u=["/properties"],c="http://json-schema.org/draft-07/schema";class f extends t.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(M=>this.addVocabulary(M)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const M=this.opts.$data?this.$dataMetaSchema(o,u):o;this.addMetaSchema(M,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}a.Ajv=f,e.exports=a=f,e.exports.Ajv=f,Object.defineProperty(a,"__esModule",{value:!0}),a.default=f;var p=Ll();Object.defineProperty(a,"KeywordCxt",{enumerable:!0,get:function(){return p.KeywordCxt}});var y=bt();Object.defineProperty(a,"_",{enumerable:!0,get:function(){return y._}}),Object.defineProperty(a,"str",{enumerable:!0,get:function(){return y.str}}),Object.defineProperty(a,"stringify",{enumerable:!0,get:function(){return y.stringify}}),Object.defineProperty(a,"nil",{enumerable:!0,get:function(){return y.nil}}),Object.defineProperty(a,"Name",{enumerable:!0,get:function(){return y.Name}}),Object.defineProperty(a,"CodeGen",{enumerable:!0,get:function(){return y.CodeGen}});var m=Rb();Object.defineProperty(a,"ValidationError",{enumerable:!0,get:function(){return m.default}});var g=cf();Object.defineProperty(a,"MissingRefError",{enumerable:!0,get:function(){return g.default}})})(qc,qc.exports)),qc.exports}var el={exports:{}},tl={exports:{}},rl={exports:{}},Ed={exports:{}},xS;function NB(){return xS||(xS=1,(function(e,a){Object.defineProperty(a,"__esModule",{value:!0});const t=bt(),n=["undefined","string","number","object","function","boolean","symbol"];function i(){return{keyword:"typeof",schemaType:["string","array"],code(o){const{data:u,schema:c,schemaValue:f}=o;o.fail(typeof c=="string"?(0,t._)`typeof ${u} != ${c}`:(0,t._)`${f}.indexOf(typeof ${u}) < 0`)},metaSchema:{anyOf:[{type:"string",enum:n},{type:"array",items:{type:"string",enum:n}}]}}}a.default=i,e.exports=i})(Ed,Ed.exports)),Ed.exports}var eO=rl.exports,tO;function CB(){return tO||(tO=1,(function(e,a){var t=eO&&eO.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(a,"__esModule",{value:!0});const n=t(NB()),i=o=>o.addKeyword((0,n.default)());a.default=i,e.exports=i})(rl,rl.exports)),rl.exports}var nl={exports:{}},bd={exports:{}},rO;function jB(){return rO||(rO=1,(function(e,a){Object.defineProperty(a,"__esModule",{value:!0});const t={Object,Array,Function,Number,String,Date,RegExp};typeof Buffer<"u"&&(t.Buffer=Buffer),typeof Promise<"u"&&(t.Promise=Promise);const n=Object.assign(i,{CONSTRUCTORS:t});function i(){return{keyword:"instanceof",schemaType:["string","array"],compile(u){if(typeof u=="string"){const c=o(u);return f=>f instanceof c}if(Array.isArray(u)){const c=u.map(o);return f=>{for(const p of c)if(f instanceof p)return!0;return!1}}throw new Error("ajv implementation error")},metaSchema:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]}}}function o(u){const c=t[u];if(c)return c;throw new Error(`invalid "instanceof" keyword value ${u}`)}a.default=n,e.exports=n})(bd,bd.exports)),bd.exports}var nO=nl.exports,iO;function LB(){return iO||(iO=1,(function(e,a){var t=nO&&nO.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(a,"__esModule",{value:!0});const n=t(jB()),i=o=>o.addKeyword((0,n.default)());a.default=i,e.exports=i})(nl,nl.exports)),nl.exports}var il={exports:{}},al={exports:{}},wd={},aO;function qD(){if(aO)return wd;aO=1,Object.defineProperty(wd,"__esModule",{value:!0});function e(a){return()=>({keyword:a,type:"number",schemaType:"array",macro:function([n,i]){return t(n,i),a==="range"?{minimum:n,maximum:i}:{exclusiveMinimum:n,exclusiveMaximum:i}},metaSchema:{type:"array",minItems:2,maxItems:2,items:{type:"number"}}});function t(n,i){if(n>i||a==="exclusiveRange"&&n===i)throw new Error("There are no numbers in range")}}return wd.default=e,wd}var oO=al.exports,sO;function DB(){return sO||(sO=1,(function(e,a){var t=oO&&oO.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(a,"__esModule",{value:!0});const i=(0,t(qD()).default)("range");a.default=i,e.exports=i})(al,al.exports)),al.exports}var uO=il.exports,lO;function qB(){return lO||(lO=1,(function(e,a){var t=uO&&uO.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(a,"__esModule",{value:!0});const n=t(DB()),i=o=>o.addKeyword((0,n.default)());a.default=i,e.exports=i})(il,il.exports)),il.exports}var ol={exports:{}},sl={exports:{}},cO=sl.exports,dO;function kB(){return dO||(dO=1,(function(e,a){var t=cO&&cO.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(a,"__esModule",{value:!0});const i=(0,t(qD()).default)("exclusiveRange");a.default=i,e.exports=i})(sl,sl.exports)),sl.exports}var fO=ol.exports,pO;function UB(){return pO||(pO=1,(function(e,a){var t=fO&&fO.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(a,"__esModule",{value:!0});const n=t(kB()),i=o=>o.addKeyword((0,n.default)());a.default=i,e.exports=i})(ol,ol.exports)),ol.exports}var ul={exports:{}},Td={exports:{}},no={},yO;function df(){if(yO)return no;yO=1,Object.defineProperty(no,"__esModule",{value:!0}),no.usePattern=no.metaSchemaRef=void 0;const e=bt(),a="http://json-schema.org/schema";function t({defaultMeta:i}={}){return i===!1?{}:{$ref:i||a}}no.metaSchemaRef=t;function n({gen:i,it:{opts:o}},u,c=o.unicodeRegExp?"u":""){const f=new RegExp(u,c);return i.scopeValue("pattern",{key:f.toString(),ref:f,code:(0,e._)`new RegExp(${u}, ${c})`})}return no.usePattern=n,no}var mO;function BB(){return mO||(mO=1,(function(e,a){Object.defineProperty(a,"__esModule",{value:!0});const t=bt(),n=df(),i={type:"object",properties:{pattern:{type:"string"},flags:{type:"string",nullable:!0}},required:["pattern"],additionalProperties:!1},o=/^\/(.*)\/([gimuy]*)$/;function u(){return{keyword:"regexp",type:"string",schemaType:["string","object"],code(c){const{data:f,schema:p}=c,y=m(p);c.pass((0,t._)`${y}.test(${f})`);function m(g){if(typeof g=="object")return(0,n.usePattern)(c,g.pattern,g.flags);const S=o.exec(g);if(S)return(0,n.usePattern)(c,S[1],S[2]);throw new Error("cannot parse string into RegExp")}},metaSchema:{anyOf:[{type:"string"},i]}}}a.default=u,e.exports=u})(Td,Td.exports)),Td.exports}var hO=ul.exports,gO;function FB(){return gO||(gO=1,(function(e,a){var t=hO&&hO.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(a,"__esModule",{value:!0});const n=t(BB()),i=o=>o.addKeyword((0,n.default)());a.default=i,e.exports=i})(ul,ul.exports)),ul.exports}var ll={exports:{}},Sd={exports:{}},vO;function VB(){return vO||(vO=1,(function(e,a){Object.defineProperty(a,"__esModule",{value:!0});const t=bt(),n={trimStart:f=>f.trimStart(),trimEnd:f=>f.trimEnd(),trimLeft:f=>f.trimStart(),trimRight:f=>f.trimEnd(),trim:f=>f.trim(),toLowerCase:f=>f.toLowerCase(),toUpperCase:f=>f.toUpperCase(),toEnumCase:(f,p)=>p?.hash[c(f)]||f},i=Object.assign(o,{transform:n});function o(){return{keyword:"transform",schemaType:"array",before:"enum",code(f){const{gen:p,data:y,schema:m,parentSchema:g,it:S}=f,{parentData:M,parentDataProperty:R}=S,I=m;if(!I.length)return;let N;if(I.includes("toEnumCase")){const P=u(g);N=p.scopeValue("obj",{ref:P,code:(0,t.stringify)(P)})}p.if((0,t._)`typeof ${y} == "string" && ${M} !== undefined`,()=>{p.assign(y,E(I.slice())),p.assign((0,t._)`${M}[${R}]`,y)});function E(P){if(!P.length)return y;const T=P.pop();if(!(T in n))throw new Error(`transform: unknown transformation ${T}`);const v=p.scopeValue("func",{ref:n[T],code:(0,t._)`require("ajv-keywords/dist/definitions/transform").transform${(0,t.getProperty)(T)}`}),O=E(P);return N&&T==="toEnumCase"?(0,t._)`${v}(${O}, ${N})`:(0,t._)`${v}(${O})`}},metaSchema:{type:"array",items:{type:"string",enum:Object.keys(n)}}}}function u(f){const p={hash:{}};if(!f.enum)throw new Error('transform: "toEnumCase" requires "enum"');for(const y of f.enum){if(typeof y!="string")continue;const m=c(y);if(p.hash[m])throw new Error('transform: "toEnumCase" requires all lowercased "enum" values to be unique');p.hash[m]=y}return p}function c(f){return f.toLowerCase()}a.default=i,e.exports=i})(Sd,Sd.exports)),Sd.exports}var _O=ll.exports,EO;function HB(){return EO||(EO=1,(function(e,a){var t=_O&&_O.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(a,"__esModule",{value:!0});const n=t(VB()),i=o=>o.addKeyword((0,n.default)());a.default=i,e.exports=i})(ll,ll.exports)),ll.exports}var cl={exports:{}},Od={exports:{}},bO;function zB(){return bO||(bO=1,(function(e,a){Object.defineProperty(a,"__esModule",{value:!0});const t=Ib(),n=["number","integer","string","boolean","null"];function i(){return{keyword:"uniqueItemProperties",type:"array",schemaType:"array",compile(u,c){const f=o(u,c);return p=>{if(p.length<=1)return!0;for(let y=0;y<u.length;y++){const m=u[y];if(f[y]){const g={};for(const S of p){if(!S||typeof S!="object")continue;let M=S[m];if(!(M&&typeof M=="object")){if(typeof M=="string"&&(M='"'+M),g[M])return!1;g[M]=!0}}}else for(let g=p.length;g--;){const S=p[g];if(!(!S||typeof S!="object"))for(let M=g;M--;){const R=p[M];if(R&&typeof R=="object"&&t(S[m],R[m]))return!1}}}return!0}},metaSchema:{type:"array",items:{type:"string"}}}}a.default=i;function o(u,c){return u.map(f=>{var p,y,m;const g=(m=(y=(p=c.items)===null||p===void 0?void 0:p.properties)===null||y===void 0?void 0:y[f])===null||m===void 0?void 0:m.type;return Array.isArray(g)?!g.includes("object")&&!g.includes("array"):n.includes(g)})}e.exports=i})(Od,Od.exports)),Od.exports}var wO=cl.exports,TO;function WB(){return TO||(TO=1,(function(e,a){var t=wO&&wO.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(a,"__esModule",{value:!0});const n=t(zB()),i=o=>o.addKeyword((0,n.default)());a.default=i,e.exports=i})(cl,cl.exports)),cl.exports}var dl={exports:{}},Ad={exports:{}},SO;function GB(){return SO||(SO=1,(function(e,a){Object.defineProperty(a,"__esModule",{value:!0});function t(){return{keyword:"allRequired",type:"object",schemaType:"boolean",macro(n,i){if(!n)return!0;const o=Object.keys(i.properties);return o.length===0?!0:{required:o}},dependencies:["properties"]}}a.default=t,e.exports=t})(Ad,Ad.exports)),Ad.exports}var OO=dl.exports,AO;function KB(){return AO||(AO=1,(function(e,a){var t=OO&&OO.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(a,"__esModule",{value:!0});const n=t(GB()),i=o=>o.addKeyword((0,n.default)());a.default=i,e.exports=i})(dl,dl.exports)),dl.exports}var fl={exports:{}},pl={exports:{}},Pd={},PO;function kD(){if(PO)return Pd;PO=1,Object.defineProperty(Pd,"__esModule",{value:!0});function e(a){return()=>({keyword:a,type:"object",schemaType:"array",macro(t){return t.length===0?!0:t.length===1?{required:t}:{[a==="anyRequired"?"anyOf":"oneOf"]:t.map(i=>({required:[i]}))}},metaSchema:{type:"array",items:{type:"string"}}})}return Pd.default=e,Pd}var IO=pl.exports,RO;function YB(){return RO||(RO=1,(function(e,a){var t=IO&&IO.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(a,"__esModule",{value:!0});const i=(0,t(kD()).default)("anyRequired");a.default=i,e.exports=i})(pl,pl.exports)),pl.exports}var MO=fl.exports,NO;function XB(){return NO||(NO=1,(function(e,a){var t=MO&&MO.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(a,"__esModule",{value:!0});const n=t(YB()),i=o=>o.addKeyword((0,n.default)());a.default=i,e.exports=i})(fl,fl.exports)),fl.exports}var yl={exports:{}},ml={exports:{}},CO=ml.exports,jO;function JB(){return jO||(jO=1,(function(e,a){var t=CO&&CO.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(a,"__esModule",{value:!0});const i=(0,t(kD()).default)("oneRequired");a.default=i,e.exports=i})(ml,ml.exports)),ml.exports}var LO=yl.exports,DO;function QB(){return DO||(DO=1,(function(e,a){var t=LO&&LO.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(a,"__esModule",{value:!0});const n=t(JB()),i=o=>o.addKeyword((0,n.default)());a.default=i,e.exports=i})(yl,yl.exports)),yl.exports}var hl={exports:{}},Id={exports:{}},qO;function ZB(){return qO||(qO=1,(function(e,a){Object.defineProperty(a,"__esModule",{value:!0});const t=bt(),n=df(),i={message:({params:{missingPattern:u}})=>(0,t.str)`should have property matching pattern '${u}'`,params:({params:{missingPattern:u}})=>(0,t._)`{missingPattern: ${u}}`};function o(){return{keyword:"patternRequired",type:"object",schemaType:"array",error:i,code(u){const{gen:c,schema:f,data:p}=u;if(f.length===0)return;const y=c.let("valid",!0);for(const g of f)m(g);function m(g){const S=c.let("matched",!1);c.forIn("key",p,M=>{c.assign(S,(0,t._)`${(0,n.usePattern)(u,g)}.test(${M})`),c.if(S,()=>c.break())}),u.setParams({missingPattern:g}),c.assign(y,(0,t.and)(y,S)),u.pass(y)}},metaSchema:{type:"array",items:{type:"string",format:"regex"},uniqueItems:!0}}}a.default=o,e.exports=o})(Id,Id.exports)),Id.exports}var kO=hl.exports,UO;function $B(){return UO||(UO=1,(function(e,a){var t=kO&&kO.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(a,"__esModule",{value:!0});const n=t(ZB()),i=o=>o.addKeyword((0,n.default)());a.default=i,e.exports=i})(hl,hl.exports)),hl.exports}var gl={exports:{}},Rd={exports:{}},BO;function xB(){return BO||(BO=1,(function(e,a){Object.defineProperty(a,"__esModule",{value:!0});function t(){return{keyword:"prohibited",type:"object",schemaType:"array",macro:function(n){return n.length===0?!0:n.length===1?{not:{required:n}}:{not:{anyOf:n.map(i=>({required:[i]}))}}},metaSchema:{type:"array",items:{type:"string"}}}}a.default=t,e.exports=t})(Rd,Rd.exports)),Rd.exports}var FO=gl.exports,VO;function e3(){return VO||(VO=1,(function(e,a){var t=FO&&FO.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(a,"__esModule",{value:!0});const n=t(xB()),i=o=>o.addKeyword((0,n.default)());a.default=i,e.exports=i})(gl,gl.exports)),gl.exports}var vl={exports:{}},Md={exports:{}},HO;function t3(){return HO||(HO=1,(function(e,a){Object.defineProperty(a,"__esModule",{value:!0});const t=df();function n(u){return{keyword:"deepProperties",type:"object",schemaType:"object",macro:function(c){const f=[];for(const p in c)f.push(i(p,c[p]));return{allOf:f}},metaSchema:{type:"object",propertyNames:{type:"string",format:"json-pointer"},additionalProperties:(0,t.metaSchemaRef)(u)}}}a.default=n;function i(u,c){const f=u.split("/"),p={};let y=p;for(let m=1;m<f.length;m++){let g=f[m];const S=m===f.length-1;g=o(g);const M=y.properties={};let R;if(/[0-9]+/.test(g)){let I=+g;for(R=y.items=[],y.type=["object","array"];I--;)R.push({})}else y.type="object";y=S?c:{},M[g]=y,R&&R.push(y)}return p}function o(u){return u.replace(/~1/g,"/").replace(/~0/g,"~")}e.exports=n})(Md,Md.exports)),Md.exports}var zO=vl.exports,WO;function r3(){return WO||(WO=1,(function(e,a){var t=zO&&zO.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(a,"__esModule",{value:!0});const n=t(t3()),i=(o,u)=>o.addKeyword((0,n.default)(u));a.default=i,e.exports=i})(vl,vl.exports)),vl.exports}var _l={exports:{}},Nd={exports:{}},GO;function n3(){return GO||(GO=1,(function(e,a){Object.defineProperty(a,"__esModule",{value:!0});const t=bt();function n(){return{keyword:"deepRequired",type:"object",schemaType:"array",code(o){const{schema:u,data:c}=o,f=u.map(y=>(0,t._)`(${p(y)}) === undefined`);o.fail((0,t.or)(...f));function p(y){if(y==="")throw new Error("empty JSON pointer not allowed");const m=y.split("/");let g=c;const S=m.map((M,R)=>R?g=(0,t._)`${g}${(0,t.getProperty)(i(M))}`:g);return(0,t.and)(...S)}},metaSchema:{type:"array",items:{type:"string",format:"json-pointer"}}}}a.default=n;function i(o){return o.replace(/~1/g,"/").replace(/~0/g,"~")}e.exports=n})(Nd,Nd.exports)),Nd.exports}var KO=_l.exports,YO;function i3(){return YO||(YO=1,(function(e,a){var t=KO&&KO.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(a,"__esModule",{value:!0});const n=t(n3()),i=o=>o.addKeyword((0,n.default)());a.default=i,e.exports=i})(_l,_l.exports)),_l.exports}var El={exports:{}},Cd={exports:{}},XO;function a3(){return XO||(XO=1,(function(e,a){Object.defineProperty(a,"__esModule",{value:!0});const t={},n={timestamp:()=>()=>Date.now(),datetime:()=>()=>new Date().toISOString(),date:()=>()=>new Date().toISOString().slice(0,10),time:()=>()=>new Date().toISOString().slice(11),random:()=>()=>Math.random(),randomint:y=>{var m;const g=(m=y?.max)!==null&&m!==void 0?m:2;return()=>Math.floor(Math.random()*g)},seq:y=>{var m;const g=(m=y?.name)!==null&&m!==void 0?m:"";return t[g]||(t[g]=0),()=>t[g]++}},i=Object.assign(o,{DEFAULTS:n});function o(){return{keyword:"dynamicDefaults",type:"object",schemaType:["string","object"],modifying:!0,valid:!0,compile(y,m,g){if(!g.opts.useDefaults||g.compositeRule)return()=>!0;const S={};for(const R in y)S[R]=u(y[R]);const M=g.opts.useDefaults==="empty";return R=>{for(const I in y)(R[I]===void 0||M&&(R[I]===null||R[I]===""))&&(R[I]=S[I]());return!0}},metaSchema:{type:"object",additionalProperties:{anyOf:[{type:"string"},{type:"object",additionalProperties:!1,required:["func","args"],properties:{func:{type:"string"},args:{type:"object"}}}]}}}}function u(y){return typeof y=="object"?c(y):f(y)}function c({func:y,args:m}){const g=n[y];return p(y,g),g(m)}function f(y=""){const m=n[y];return p(y,m),m()}function p(y,m){if(!m)throw new Error(`invalid "dynamicDefaults" keyword property value: ${y}`)}a.default=i,e.exports=i})(Cd,Cd.exports)),Cd.exports}var JO=El.exports,QO;function o3(){return QO||(QO=1,(function(e,a){var t=JO&&JO.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(a,"__esModule",{value:!0});const n=t(a3()),i=o=>o.addKeyword((0,n.default)());a.default=i,e.exports=i})(El,El.exports)),El.exports}var bl={exports:{}},jd={exports:{}},ZO;function s3(){return ZO||(ZO=1,(function(e,a){Object.defineProperty(a,"__esModule",{value:!0});const t=bt(),n=df(),i={message:({params:{schemaProp:u}})=>u?(0,t.str)`should match case "${u}" schema`:(0,t.str)`should match default case schema`,params:({params:{schemaProp:u}})=>u?(0,t._)`{failingCase: ${u}}`:(0,t._)`{failingDefault: true}`};function o(u){const c=(0,n.metaSchemaRef)(u);return[{keyword:"select",schemaType:["string","number","boolean","null"],$data:!0,error:i,dependencies:["selectCases"],code(f){const{gen:p,schemaCode:y,parentSchema:m}=f;f.block$data(t.nil,()=>{const g=p.let("valid",!0),S=p.name("_valid"),M=p.const("value",(0,t._)`${y} === null ? "null" : ${y}`);p.if(!1);for(const R in m.selectCases){f.setParams({schemaProp:R}),p.elseIf((0,t._)`"" + ${M} == ${R}`);const I=f.subschema({keyword:"selectCases",schemaProp:R},S);f.mergeEvaluated(I,t.Name),p.assign(g,S)}if(p.else(),m.selectDefault!==void 0){f.setParams({schemaProp:void 0});const R=f.subschema({keyword:"selectDefault"},S);f.mergeEvaluated(R,t.Name),p.assign(g,S)}p.endIf(),f.pass(g)})}},{keyword:"selectCases",dependencies:["select"],metaSchema:{type:"object",additionalProperties:c}},{keyword:"selectDefault",dependencies:["select","selectCases"],metaSchema:c}]}a.default=o,e.exports=o})(jd,jd.exports)),jd.exports}var $O=bl.exports,xO;function u3(){return xO||(xO=1,(function(e,a){var t=$O&&$O.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(a,"__esModule",{value:!0});const n=t(s3()),i=(o,u)=>((0,n.default)(u).forEach(c=>o.addKeyword(c)),o);a.default=i,e.exports=i})(bl,bl.exports)),bl.exports}var eA=tl.exports,tA;function l3(){return tA||(tA=1,(function(e,a){var t=eA&&eA.__importDefault||function(T){return T&&T.__esModule?T:{default:T}};Object.defineProperty(a,"__esModule",{value:!0});const n=t(CB()),i=t(LB()),o=t(qB()),u=t(UB()),c=t(FB()),f=t(HB()),p=t(WB()),y=t(KB()),m=t(XB()),g=t(QB()),S=t($B()),M=t(e3()),R=t(r3()),I=t(i3()),N=t(o3()),E=t(u3()),P={typeof:n.default,instanceof:i.default,range:o.default,exclusiveRange:u.default,regexp:c.default,transform:f.default,uniqueItemProperties:p.default,allRequired:y.default,anyRequired:m.default,oneRequired:g.default,patternRequired:S.default,prohibited:M.default,deepProperties:R.default,deepRequired:I.default,dynamicDefaults:N.default,select:E.default};a.default=P,e.exports=P})(tl,tl.exports)),tl.exports}var rA=el.exports,nA;function ff(){return nA||(nA=1,(function(e,a){var t=rA&&rA.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(a,"__esModule",{value:!0});const n=t(l3()),i=(u,c)=>{if(Array.isArray(c)){for(const f of c)o(f)(u);return u}if(c)return o(c)(u),u;for(c in n.default)o(c)(u);return u};i.get=o;function o(u){const c=n.default[u];if(!c)throw new Error("Unknown keyword "+u);return c}a.default=i,e.exports=i,e.exports.default=i})(el,el.exports)),el.exports}var Ld={exports:{}},iA;function pf(){return iA||(iA=1,(function(e,a){Object.defineProperty(a,"__esModule",{value:!0});const t=xo(),n=bt(),i=Al(),o=Ll(),u=jl(),c=xi(),f="errorMessage",p=new t.Name("emUsed"),y={required:"missingProperty",dependencies:"property",dependentRequired:"property"},m=/\$\{[^}]+\}/,g=/\$\{([^}]+)\}/g,S=/^""\s*\+\s*|\s*\+\s*""$/g;function M(I){return{keyword:f,schemaType:["string","object"],post:!0,code(N){const{gen:E,data:P,schema:T,schemaValue:v,it:O}=N;if(O.createErrors===!1)return;const C=T,z=n.strConcat(c.default.instancePath,O.errorPath);E.if(t._`${c.default.errors} > 0`,()=>{if(typeof C=="object"){const[k,L]=K(C);L&&ae(L),k&&_e(k),be(U(C))}const B=typeof C=="string"?C:C._;B&&ye(B),I.keepErrors||Me()});function U({properties:B,items:k}){const L={};if(B){L.props={};for(const W in B)L.props[W]=[]}if(k){L.items={};for(let W=0;W<k.length;W++)L.items[W]=[]}return L}function K(B){let k,L;for(const W in B){if(W==="properties"||W==="items")continue;const oe=B[W];if(typeof oe=="object"){k||(k={});const Re=k[W]={};for(const Se in oe)Re[Se]=[]}else L||(L={}),L[W]=[]}return[k,L]}function ae(B){const k=E.const("emErrors",t.stringify(B)),L=E.const("templates",ue(B,T));E.forOf("err",c.default.vErrors,Se=>E.if(Ne(Se,k),()=>E.code(t._`${k}[${Se}.keyword].push(${Se})`).assign(t._`${Se}.${p}`,!0)));const{singleError:W}=I;if(W){const Se=E.let("message",t._`""`),Ue=E.let("paramsErrors",t._`[]`);oe(Ce=>{E.if(Se,()=>E.code(t._`${Se} += ${typeof W=="string"?W:";"}`)),E.code(t._`${Se} += ${Re(Ce)}`),E.assign(Ue,t._`${Ue}.concat(${k}[${Ce}])`)}),u.reportError(N,{message:Se,params:t._`{errors: ${Ue}}`})}else oe(Se=>u.reportError(N,{message:Re(Se),params:t._`{errors: ${k}[${Se}]}`}));function oe(Se){E.forIn("key",k,Ue=>E.if(t._`${k}[${Ue}].length`,()=>Se(Ue)))}function Re(Se){return t._`${Se} in ${L} ? ${L}[${Se}]() : ${v}[${Se}]`}}function _e(B){const k=E.const("emErrors",t.stringify(B)),L=[];for(const Ue in B)L.push([Ue,ue(B[Ue],T[Ue])]);const W=E.const("templates",E.object(...L)),oe=E.scopeValue("obj",{ref:y,code:t.stringify(y)}),Re=E.let("emPropParams"),Se=E.let("emParamsErrors");E.forOf("err",c.default.vErrors,Ue=>E.if(Ne(Ue,k),()=>{E.assign(Re,t._`${oe}[${Ue}.keyword]`),E.assign(Se,t._`${k}[${Ue}.keyword][${Ue}.params[${Re}]]`),E.if(Se,()=>E.code(t._`${Se}.push(${Ue})`).assign(t._`${Ue}.${p}`,!0))})),E.forIn("key",k,Ue=>E.forIn("keyProp",t._`${k}[${Ue}]`,Ce=>{E.assign(Se,t._`${k}[${Ue}][${Ce}]`),E.if(t._`${Se}.length`,()=>{const se=E.const("tmpl",t._`${W}[${Ue}] && ${W}[${Ue}][${Ce}]`);u.reportError(N,{message:t._`${se} ? ${se}() : ${v}[${Ue}][${Ce}]`,params:t._`{errors: ${Se}}`})})}))}function be(B){const{props:k,items:L}=B;if(!k&&!L)return;const W=t._`typeof ${P} == "object"`,oe=t._`Array.isArray(${P})`,Re=E.let("emErrors");let Se,Ue;const Ce=E.let("templates");k&&L?(Se=E.let("emChildKwd"),E.if(W),E.if(oe,()=>{se(L,T.items),E.assign(Se,t.str`items`)},()=>{se(k,T.properties),E.assign(Se,t.str`properties`)}),Ue=t._`[${Se}]`):L?(E.if(oe),se(L,T.items),Ue=t._`.items`):k&&(E.if(n.and(W,n.not(oe))),se(k,T.properties),Ue=t._`.properties`),E.forOf("err",c.default.vErrors,de=>qe(de,Re,Ae=>E.code(t._`${Re}[${Ae}].push(${de})`).assign(t._`${de}.${p}`,!0))),E.forIn("key",Re,de=>E.if(t._`${Re}[${de}].length`,()=>{u.reportError(N,{message:t._`${de} in ${Ce} ? ${Ce}[${de}]() : ${v}${Ue}[${de}]`,params:t._`{errors: ${Re}[${de}]}`}),E.assign(t._`${c.default.vErrors}[${c.default.errors}-1].instancePath`,t._`${z} + "/" + ${de}.replace(/~/g, "~0").replace(/\\//g, "~1")`)})),E.endIf();function se(de,Ae){E.assign(Re,t.stringify(de)),E.assign(Ce,ue(de,Ae))}}function ye(B){const k=E.const("emErrs",t._`[]`);E.forOf("err",c.default.vErrors,L=>E.if(we(L),()=>E.code(t._`${k}.push(${L})`).assign(t._`${L}.${p}`,!0))),E.if(t._`${k}.length`,()=>u.reportError(N,{message:X(B),params:t._`{errors: ${k}}`}))}function Me(){const B=E.const("emErrs",t._`[]`);E.forOf("err",c.default.vErrors,k=>E.if(t._`!${k}.${p}`,()=>E.code(t._`${B}.push(${k})`))),E.assign(c.default.vErrors,B).assign(c.default.errors,t._`${B}.length`)}function Ne(B,k){return n.and(t._`${B}.keyword !== ${f}`,t._`!${B}.${p}`,t._`${B}.instancePath === ${z}`,t._`${B}.keyword in ${k}`,t._`${B}.schemaPath.indexOf(${O.errSchemaPath}) === 0`,t._`/^\\/[^\\/]*$/.test(${B}.schemaPath.slice(${O.errSchemaPath.length}))`)}function qe(B,k,L){E.if(n.and(t._`${B}.keyword !== ${f}`,t._`!${B}.${p}`,t._`${B}.instancePath.indexOf(${z}) === 0`),()=>{const W=E.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:t._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`}),oe=E.const("emMatches",t._`${W}.exec(${B}.instancePath.slice(${z}.length))`),Re=E.const("emChild",t._`${oe} && ${oe}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);E.if(t._`${Re} !== undefined && ${Re} in ${k}`,()=>L(Re))})}function we(B){return n.and(t._`${B}.keyword !== ${f}`,t._`!${B}.${p}`,n.or(t._`${B}.instancePath === ${z}`,n.and(t._`${B}.instancePath.indexOf(${z}) === 0`,t._`${B}.instancePath[${z}.length] === "/"`)),t._`${B}.schemaPath.indexOf(${O.errSchemaPath}) === 0`,t._`${B}.schemaPath[${O.errSchemaPath}.length] === "/"`)}function ue(B,k){const L=[];for(const W in B){const oe=k[W];m.test(oe)&&L.push([W,j(oe)])}return E.object(...L)}function X(B){return m.test(B)?new i._Code(i.safeStringify(B).replace(g,(k,L)=>`" + JSON.stringify(${o.getData(L,O)}) + "`).replace(S,"")):t.stringify(B)}function j(B){return t._`function(){return ${X(B)}}`}},metaSchema:{anyOf:[{type:"string"},{type:"object",properties:{properties:{$ref:"#/$defs/stringMap"},items:{$ref:"#/$defs/stringList"},required:{$ref:"#/$defs/stringOrMap"},dependencies:{$ref:"#/$defs/stringOrMap"}},additionalProperties:{type:"string"}}],$defs:{stringMap:{type:"object",additionalProperties:{type:"string"}},stringOrMap:{anyOf:[{type:"string"},{$ref:"#/$defs/stringMap"}]},stringList:{type:"array",items:{type:"string"}}}}}}const R=(I,N={})=>{if(!I.opts.allErrors)throw new Error("ajv-errors: Ajv option allErrors must be true");if(I.opts.jsPropertySyntax)throw new Error("ajv-errors: ajv option jsPropertySyntax is not supported");return I.addKeyword(M(N))};a.default=R,e.exports=R,e.exports.default=R})(Ld,Ld.exports)),Ld.exports}var aA;function He(){if(aA)return Xn;aA=1;var e=Xn&&Xn.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(Xn,"__esModule",{value:!0}),Xn.validateType=Xn.generateLazyValidator=Xn.Ajv=void 0;const a=e(xo());Xn.Ajv=a.default;const t=e(ff()),n=e(pf());function i(u,c){let f=null;const p=(y,m)=>{if(!f){const g=new a.default({$data:!0,allErrors:!0});(0,t.default)(g),(0,n.default)(g,{singleError:!0}),c?.forEach(S=>g.addKeyword(S)),f=g.compile(u),Object.defineProperty(p,"errors",{get(){return f?.errors}})}return f(y,m)};return p}Xn.generateLazyValidator=i;function o(u,c){return u.validate(c)}return Xn.validateType=o,Xn}var oA;function c3(){return oA||(oA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SceneUpdate=e.SCENE_UPDATE=void 0;const a=He();e.SCENE_UPDATE="SCENE_UPDATE",(function(t){t.schema={type:"object",properties:{type:{type:"string",enum:[e.SCENE_UPDATE]},payload:{type:"object",properties:{sceneId:{type:"string"},sceneType:{type:"string"}},additionalProperties:!1,required:["sceneId","sceneType"]}},required:["payload","type"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.SceneUpdate||(e.SceneUpdate={}))})(xp)),xp}var cy={},sA;function d3(){return sA||(sA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Update=e.UPDATE=void 0;const a=He();e.UPDATE="update",(function(t){t.schema={type:"object",properties:{type:{type:"string",enum:[e.UPDATE]}},required:["type"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Update||(e.Update={}))})(cy)),cy}var uA;function f3(){return uA||(uA=1,(function(e){var a=xa&&xa.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=xa&&xa.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(c3(),e),t(d3(),e)})(xa)),xa}var io={},dy={},lA;function p3(){return lA||(lA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProjectType=void 0;const a=He();(function(t){t.SCENE="scene",t.SMART_ITEM="smart-item",t.PORTABLE_EXPERIENCE="portable-experience",t.LIBRARY="library"})(e.ProjectType||(e.ProjectType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.ProjectType||(e.ProjectType={}))})(dy)),dy}var fy={},py={},cA;function yf(){return cA||(cA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Rarity=void 0;const a=He();(function(t){t.UNIQUE="unique",t.MYTHIC="mythic",t.EXOTIC="exotic",t.LEGENDARY="legendary",t.EPIC="epic",t.RARE="rare",t.UNCOMMON="uncommon",t.COMMON="common"})(e.Rarity||(e.Rarity={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema);const n={[t.UNIQUE]:1,[t.MYTHIC]:10,[t.EXOTIC]:50,[t.LEGENDARY]:100,[t.EPIC]:1e3,[t.RARE]:5e3,[t.UNCOMMON]:1e4,[t.COMMON]:1e5},i={[t.UNIQUE]:"#FFE617",[t.MYTHIC]:"#FB7DE3",[t.EXOTIC]:"#E4FFB8",[t.LEGENDARY]:"#A657ED",[t.EPIC]:"#6397F2",[t.RARE]:"#3AD682",[t.UNCOMMON]:"#FF8563",[t.COMMON]:"#D4E0E0"},o={[t.UNIQUE]:"#FFB626",[t.MYTHIC]:"#FF63E1",[t.EXOTIC]:"#CAFF73",[t.LEGENDARY]:"#842DDA",[t.EPIC]:"#3D85E6",[t.RARE]:"#36CF75",[t.UNCOMMON]:"#ED6D4F",[t.COMMON]:"#ABC1C1"};function u(y){return n[y]}t.getMaxSupply=u;function c(y){return o[y]}t.getColor=c;function f(){return[t.UNIQUE,t.MYTHIC,t.EXOTIC,t.LEGENDARY,t.EPIC,t.RARE,t.UNCOMMON,t.COMMON]}t.getRarities=f;function p(y){return[i[y],o[y]]}t.getGradient=p})(e.Rarity||(e.Rarity={}))})(py)),py}var yy={},dA;function es(){return dA||(dA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WearableCategory=void 0;const a=He();(function(t){t.EYEBROWS="eyebrows",t.EYES="eyes",t.FACIAL_HAIR="facial_hair",t.HAIR="hair",t.BODY_SHAPE="body_shape",t.MOUTH="mouth",t.UPPER_BODY="upper_body",t.LOWER_BODY="lower_body",t.FEET="feet",t.EARRING="earring",t.EYEWEAR="eyewear",t.HAT="hat",t.HELMET="helmet",t.MASK="mask",t.TIARA="tiara",t.TOP_HEAD="top_head",t.SKIN="skin",t.HANDS_WEAR="hands_wear"})(e.WearableCategory||(e.WearableCategory={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.WearableCategory||(e.WearableCategory={}))})(yy)),yy}var my={},hy={},fA;function Cb(){return fA||(fA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BodyShape=void 0;const a=He();(function(t){t.MALE="urn:decentraland:off-chain:base-avatars:BaseMale",t.FEMALE="urn:decentraland:off-chain:base-avatars:BaseFemale"})(e.BodyShape||(e.BodyShape={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.BodyShape||(e.BodyShape={}))})(hy)),hy}var gy={},vy={},pA;function UD(){return pA||(pA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BodyPartCategory=void 0;const a=He();(function(t){t.HEAD="head",t.HANDS="hands"})(e.BodyPartCategory||(e.BodyPartCategory={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.BodyPartCategory||(e.BodyPartCategory={}))})(vy)),vy}var yA;function jb(){return yA||(yA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.HideableWearableCategory=void 0;const a=es(),t=He(),n=UD();(function(i){i.schema={oneOf:[Object.assign({},a.WearableCategory.schema),Object.assign({},n.BodyPartCategory.schema)]},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.HideableWearableCategory||(e.HideableWearableCategory={}))})(gy)),gy}var mA;function Lb(){return mA||(mA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WearableRepresentation=void 0;const a=He(),t=Cb(),n=jb();(function(i){i.schema={type:"object",properties:{bodyShapes:{type:"array",items:t.BodyShape.schema,minItems:1,uniqueItems:!0},mainFile:{type:"string",minLength:1},contents:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0,contains:{const:{$data:"2/mainFile"}}},overrideHides:{type:"array",items:n.HideableWearableCategory.schema},overrideReplaces:{type:"array",items:n.HideableWearableCategory.schema}},required:["bodyShapes","mainFile","contents","overrideHides","overrideReplaces"]},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.WearableRepresentation||(e.WearableRepresentation={}))})(my)),my}var ao={},oo={},_y={},Ey={},hA;function ts(){return hA||(hA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.IPFSv1=e.IPFSv2=e.EthAddress=e.Color3=void 0;const a=He();(function(t){t.schema={type:"object",required:["r","g","b"],properties:{r:{type:"number",minimum:0,maximum:1},g:{type:"number",minimum:0,maximum:1},b:{type:"number",minimum:0,maximum:1}}};const n=(0,a.generateLazyValidator)(t.schema);t.validate=i=>n(i)})(e.Color3||(e.Color3={})),(function(t){t.schema={type:"string",pattern:"^0x[a-fA-F0-9]{40}$"};const n=new RegExp(t.schema.pattern);t.validate=i=>n.test(i)})(e.EthAddress||(e.EthAddress={})),(function(t){t.schema={type:"string",pattern:"^(ba)[a-zA-Z0-9]{57}$"};const n=new RegExp(t.schema.pattern);t.validate=i=>n.test(i)})(e.IPFSv2||(e.IPFSv2={})),(function(t){t.schema={type:"string",pattern:"^(Qm)[a-zA-Z0-9]{44}$"};const n=new RegExp(t.schema.pattern);t.validate=i=>n.test(i)})(e.IPFSv1||(e.IPFSv1={}))})(Ey)),Ey}var gA;function BD(){return gA||(gA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Avatar=e.Link=e.LinkUrl=e.AvatarInfo=e.Snapshots=void 0;const a=es(),t=ts(),n=He();var i;(function(f){f.schema={type:"object",required:["face256","body"],properties:{face256:t.IPFSv2.schema,body:t.IPFSv2.schema}},f.validate=(0,n.generateLazyValidator)(f.schema)})(i=e.Snapshots||(e.Snapshots={}));var o;(function(f){f.schema={type:"object",required:["bodyShape","eyes","hair","skin"],properties:{bodyShape:{type:"string"},eyes:{type:"object",required:["color"],properties:{color:t.Color3.schema}},hair:{type:"object",required:["color"],properties:{color:t.Color3.schema}},skin:{type:"object",required:["color"],properties:{color:t.Color3.schema}},wearables:{type:"array",items:{type:"string"}},forceRender:{type:"array",nullable:!0,items:a.WearableCategory.schema},emotes:{type:"array",items:{type:"object",properties:{slot:{type:"number"},urn:{type:"string"}},required:["slot","urn"]},nullable:!0},snapshots:Object.assign(Object.assign({},i.schema),{nullable:!0})},additionalProperties:!0},f.validate=(0,n.generateLazyValidator)(f.schema)})(o=e.AvatarInfo||(e.AvatarInfo={}));var u;(function(f){f.schema={type:"string",maxLength:2083,pattern:"^(?:https?):\\/\\/[^\\s/$.?#].[^\\s]*$"};const p=new RegExp(f.schema.pattern,"i");f.validate=y=>p.test(y)})(u=e.LinkUrl||(e.LinkUrl={}));var c;(function(f){f.schema={type:"object",required:["title","url"],properties:{title:{type:"string"},url:u.schema}}})(c=e.Link||(e.Link={})),(function(f){f.schema={type:"object",required:["name","description","ethAddress","version","tutorialStep","avatar","hasClaimedName"],properties:{userId:{type:"string"},name:{type:"string"},description:{type:"string"},links:{type:"array",maxItems:5,items:c.schema,nullable:!0},country:{nullable:!0,type:"string"},employmentStatus:{nullable:!0,type:"string"},gender:{nullable:!0,type:"string"},pronouns:{nullable:!0,type:"string"},relationshipStatus:{nullable:!0,type:"string"},sexualOrientation:{nullable:!0,type:"string"},language:{nullable:!0,type:"string"},profession:{nullable:!0,type:"string"},birthdate:{nullable:!0,type:"number"},realName:{nullable:!0,type:"string"},hobbies:{nullable:!0,type:"string"},ethAddress:t.EthAddress.schema,version:{type:"number"},tutorialStep:{type:"number"},email:{type:"string",nullable:!0},blocked:{type:"array",items:{type:"string"},nullable:!0},muted:{type:"array",items:{type:"string"},nullable:!0},interests:{type:"array",items:{type:"string"},nullable:!0},hasClaimedName:{type:"boolean"},hasConnectedWeb3:{type:"boolean",nullable:!0},avatar:o.schema},additionalProperties:!0},f.validate=(0,n.generateLazyValidator)(f.schema)})(e.Avatar||(e.Avatar={}))})(_y)),_y}var by={},vA;function y3(){return vA||(vA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Profile=void 0;const a=He(),t=BD();(function(n){n.schema={type:"object",required:["avatars"],properties:{avatars:{type:"array",items:t.Avatar.schema}},additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.Profile||(e.Profile={}))})(by)),by}var _A;function m3(){return _A||(_A=1,(function(e){var a=oo&&oo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=oo&&oo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(BD(),e),t(y3(),e)})(oo)),oo}var wy={},Ty={},EA;function FD(){return EA||(EA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.FeatureToggles=e.portableExperiencesToggles=e.toggles=void 0;const a=He();e.toggles=["enabled","disabled"],e.portableExperiencesToggles=[...e.toggles,"hideUi"],(function(t){t.schema={type:"object",properties:{voiceChat:{type:"string",enum:e.toggles,nullable:!0},portableExperiences:{type:"string",enum:e.portableExperiencesToggles,nullable:!0,errorMessage:`valid options are ${e.portableExperiencesToggles.join(", ")}`}},errorMessage:`valid options are ${e.toggles.join(", ")}`,required:[]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.FeatureToggles||(e.FeatureToggles={}))})(Ty)),Ty}var Sy={},bA;function VD(){return bA||(bA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WorldConfiguration=void 0;const a=He();(function(t){t.schema={type:"object",properties:{name:{type:"string",nullable:!0},skybox:{type:"number",nullable:!0},minimapVisible:{type:"boolean",nullable:!0},miniMapConfig:{type:"object",nullable:!0,properties:{visible:{type:"boolean",nullable:!0},dataImage:{type:"string",nullable:!0},estateImage:{type:"string",nullable:!0}}},skyboxConfig:{type:"object",nullable:!0,properties:{fixedTime:{type:"number",nullable:!0},textures:{type:"array",nullable:!0,items:{type:"string"},oneOf:[{minItems:0,maxItems:0},{minItems:1,maxItems:1},{minItems:6,maxItems:6}],errorMessage:"customSkybox must be an array of 0, 1 or 6 strings"}}},fixedAdapter:{type:"string",nullable:!0},placesConfig:{type:"object",nullable:!0,properties:{optOut:{type:"boolean",nullable:!0}}}},required:[]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.WorldConfiguration||(e.WorldConfiguration={}))})(Sy)),Sy}var Oy={},wA;function HD(){return wA||(wA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SceneParcels=void 0;const a=He();(function(t){t.schema={description:'Describes a scene, a set of parcels whose content is treated as the same entity. A list of parcels is listed, for which one of them is considered the "base" for positioning purposes.',type:"object",properties:{base:{type:"string",pattern:"^-?[0-9]+,-?[0-9]+$"},parcels:{type:"array",items:{type:"string",pattern:"^-?[0-9]+,-?[0-9]+$"},minItems:1}},additionalProperties:!0,required:["base","parcels"]},t.schemaValidator=(0,a.generateLazyValidator)(t.schema),t.validate=n=>t.schemaValidator(n)&&n.parcels.includes(n.base)})(e.SceneParcels||(e.SceneParcels={}))})(Oy)),Oy}var Ay={},ku={},TA;function Db(){return TA||(TA=1,Object.defineProperty(ku,"__esModule",{value:!0}),ku.displayableProperties=void 0,ku.displayableProperties={menuBarIcon:{description:"Name of the file used as icon for the MenuBar",type:"string",nullable:!0}}),ku}var Py={},SA;function zD(){return SA||(SA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Source=void 0;const a=He();(function(t){t.schema={type:"object",properties:{version:{type:"number",nullable:!0},origin:{type:"string"},projectId:{type:"string"},point:{type:"object",properties:{x:{type:"integer"},y:{type:"integer"}},nullable:!0,required:["x","y"]},rotation:{type:"string",enum:["north","east","south","west"],nullable:!0},layout:{type:"object",properties:{rows:{type:"integer"},cols:{type:"integer"}},nullable:!0,required:["rows","cols"]},isEmpty:{type:"boolean",nullable:!0}},additionalProperties:!0,required:["origin","projectId"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Source||(e.Source={}))})(Py)),Py}var Iy={},OA;function WD(){return OA||(OA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SpawnPoint=void 0;const a=He();(function(t){t.schema={type:"object",properties:{name:{type:"string",nullable:!0},position:{type:"object",oneOf:[{$ref:"#single-position"},{$ref:"#multi-position"}],required:["x","y","z"]},default:{type:"boolean",nullable:!0},cameraTarget:{type:"object",properties:{x:{type:"number"},y:{type:"number"},z:{type:"number"}},required:["x","y","z"],nullable:!0}},required:["position"],definitions:{"single-position":{$id:"#single-position",type:"object",properties:{x:{type:"number"},y:{type:"number"},z:{type:"number"}},required:["x","y","z"]},"multi-position":{$id:"#multi-position",type:"object",properties:{x:{type:"array",items:{type:"number"},minItems:1},y:{type:"array",items:{type:"number"},minItems:1},z:{type:"array",items:{type:"number"},minItems:1}},required:["x","y","z"]}}},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.SpawnPoint||(e.SpawnPoint={}))})(Iy)),Iy}var AA;function h3(){return AA||(AA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Scene=e.RequiredPermission=void 0;const a=He(),t=Db(),n=FD(),i=HD(),o=zD(),u=WD(),c=VD();var f;(function(p){p.ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE="ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE",p.ALLOW_TO_TRIGGER_AVATAR_EMOTE="ALLOW_TO_TRIGGER_AVATAR_EMOTE",p.ALLOW_MEDIA_HOSTNAMES="ALLOW_MEDIA_HOSTNAMES",p.USE_WEB3_API="USE_WEB3_API",p.USE_FETCH="USE_FETCH",p.USE_WEBSOCKET="USE_WEBSOCKET",p.OPEN_EXTERNAL_LINK="OPEN_EXTERNAL_LINK"})(f=e.RequiredPermission||(e.RequiredPermission={})),(function(p){p.schema={type:"object",properties:Object.assign(Object.assign({isPortableExperience:{description:"Define the current scene as a Portable Experience",type:"boolean",nullable:!0},main:{description:"File that contains the entry point of the scene's code",type:"string",minLength:1},scene:i.SceneParcels.schema},t.displayableProperties),{display:{description:"Information related to how should this land be displayed apart from the normal rendering of the scene",type:"object",properties:{title:{description:"A name so other users can identify what the contents of this land should be",type:"string",nullable:!0},favicon:{description:"DEPRECATED. Allow the land owner to set up a favicon to this land",type:"string",nullable:!0},description:{description:"A description that will be shown on client's nav map when the scene is selected",type:"string",nullable:!0},navmapThumbnail:{type:"string",nullable:!0}},nullable:!0,required:[]},owner:{type:"string",nullable:!0},creator:{type:"string",nullable:!0,description:"Wallet address of the creator of the scene",pattern:"^(0x[a-fA-F0-9]{40})?$",errorMessage:"Creator must be a valid wallet address"},contact:{description:"Describe different ways of contacting the land owner",type:"object",properties:{name:{type:"string",nullable:!0},email:{type:"string",nullable:!0},im:{type:"string",nullable:!0},url:{type:"string",nullable:!0}},nullable:!0,required:[]},tags:{type:"array",items:{type:"string",minLength:1},nullable:!0},source:Object.assign(Object.assign({},o.Source.schema),{nullable:!0}),spawnPoints:{type:"array",items:u.SpawnPoint.schema,nullable:!0},requiredPermissions:{type:"array",items:{type:"string",enum:Object.values(f)},uniqueItems:!0,nullable:!0},featureToggles:Object.assign(Object.assign({},n.FeatureToggles.schema),{nullable:!0}),worldConfiguration:Object.assign(Object.assign({},c.WorldConfiguration.schema),{nullable:!0}),allowedMediaHostnames:{type:"array",items:{type:"string"},nullable:!0}}),additionalProperties:!0,required:["main","scene"],dependencies:{requiredPermissions:{if:{properties:{requiredPermissions:{type:"array",contains:{const:f.ALLOW_MEDIA_HOSTNAMES}}}},then:{properties:{allowedMediaHostnames:{type:"array",items:{type:"string"},nullable:!1,minItems:1}},required:["allowedMediaHostnames"]},else:{properties:{allowedMediaHostnames:{type:["null","array"],nullable:!0,maxItems:0}}}}}},p.validate=(0,a.generateLazyValidator)(p.schema)})(e.Scene||(e.Scene={}))})(Ay)),Ay}var PA;function g3(){return PA||(PA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SpawnPoint=e.Source=e.RequiredPermission=e.Scene=e.SceneParcels=e.WorldConfiguration=e.FeatureToggles=void 0;var a=FD();Object.defineProperty(e,"FeatureToggles",{enumerable:!0,get:function(){return a.FeatureToggles}});var t=VD();Object.defineProperty(e,"WorldConfiguration",{enumerable:!0,get:function(){return t.WorldConfiguration}});var n=HD();Object.defineProperty(e,"SceneParcels",{enumerable:!0,get:function(){return n.SceneParcels}});var i=h3();Object.defineProperty(e,"Scene",{enumerable:!0,get:function(){return i.Scene}}),Object.defineProperty(e,"RequiredPermission",{enumerable:!0,get:function(){return i.RequiredPermission}});var o=zD();Object.defineProperty(e,"Source",{enumerable:!0,get:function(){return o.Source}});var u=WD();Object.defineProperty(e,"SpawnPoint",{enumerable:!0,get:function(){return u.SpawnPoint}})})(wy)),wy}var so={},Ry={},My={},IA;function GD(){return IA||(IA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Locale=void 0;const a=He();(function(t){t.EN="en",t.ES="es"})(e.Locale||(e.Locale={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Locale||(e.Locale={}))})(My)),My}var RA;function KD(){return RA||(RA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.I18N=void 0;const a=He(),t=GD();(function(n){n.schema={type:"object",properties:{code:t.Locale.schema,text:{type:"string"}},additionalProperties:!0,required:["code","text"]},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.I18N||(e.I18N={}))})(Ry)),Ry}var Ny={},MA;function YD(){return MA||(MA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Metrics=void 0;const a=He();(function(t){t.schema={type:"object",properties:{triangles:{type:"number"},materials:{type:"number"},textures:{type:"number"},meshes:{type:"number"},bodies:{type:"number"},entities:{type:"number"}},required:["triangles","materials","textures","meshes","bodies","entities"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Metrics||(e.Metrics={}))})(Ny)),Ny}var Cy={},NA;function qb(){return NA||(NA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isStandard=e.standardProperties=void 0;const a=yf(),t=He();e.standardProperties={collectionAddress:{type:"string",nullable:!1},rarity:a.Rarity.schema};const n={type:"object",properties:Object.assign({},e.standardProperties),required:["collectionAddress","rarity"]},i=(0,t.generateLazyValidator)(n);function o(u){return i(u)}e.isStandard=o})(Cy)),Cy}var jy={},uo={},Ly={},CA;function v3(){return CA||(CA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MerkleProof=void 0;const a=He();(function(t){t.schema={type:"object",properties:{proof:{type:"array",items:{type:"string"}},index:{type:"number"},hashingKeys:{type:"array",items:{type:"string"}},entityHash:{type:"string"}},required:["entityHash","hashingKeys","index","proof"],additionalProperties:!0},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.MerkleProof||(e.MerkleProof={}))})(Ly)),Ly}var jA;function XD(){return jA||(jA=1,(function(e){var a=uo&&uo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=uo&&uo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(v3(),e)})(uo)),uo}var Dy={},LA;function kb(){return LA||(LA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createMappingsHelper=e.AddMappingError=e.Mappings=e.Mapping=e.MultipleMapping=e.RangeMapping=e.AnyMapping=e.SingleMapping=e.ContractNetwork=e.MappingType=void 0;const a=He();var t;(function(m){m.SINGLE="single",m.ANY="any",m.MULTIPLE="multiple",m.RANGE="range"})(t=e.MappingType||(e.MappingType={}));var n;(function(m){m.MAINNET="mainnet",m.BASE_MAINNET="base_mainnet",m.BASE_SEPOLIA="base_sepolia",m.MONAD_MAINNET="monad_mainnet",m.MONAD_TESTNET="monad_testnet",m.APE_MAINNET="ape_mainnet",m.APE_CALDERA="ape_caldera",m.MATIC="matic",m.SEPOLIA="sepolia",m.AMOY="amoy"})(n=e.ContractNetwork||(e.ContractNetwork={}));var i;(function(m){m.schema={type:"object",properties:{type:{type:"string",const:t.SINGLE},id:{type:"string",pattern:"^[0-9]+$"}},required:["type","id"],additionalProperties:!1},m.validate=(0,a.generateLazyValidator)(m.schema)})(i=e.SingleMapping||(e.SingleMapping={}));var o;(function(m){m.schema={type:"object",properties:{type:{type:"string",const:t.ANY}},required:["type"],additionalProperties:!1},m.validate=(0,a.generateLazyValidator)(m.schema)})(o=e.AnyMapping||(e.AnyMapping={}));var u;(function(m){m._fromLessThanOrEqualTo={keyword:"_fromLessThanOrEqualTo",validate:function(S,M){if(!M||!M.from||!M.to)return!1;let{to:R,from:I}=M;return(typeof I!="bigint"||typeof R!="bigint")&&(I=BigInt(I),R=BigInt(R)),I<=R},errors:!1},m.schema={type:"object",properties:{type:{type:"string",const:t.RANGE},from:{type:"string",pattern:"^[0-9]+$"},to:{type:"string",pattern:"^[0-9]+$"}},required:["type","from","to"],additionalProperties:!1,_fromLessThanOrEqualTo:!0},m.validate=(0,a.generateLazyValidator)(m.schema,[m._fromLessThanOrEqualTo])})(u=e.RangeMapping||(e.RangeMapping={}));var c;(function(m){m.schema={type:"object",properties:{type:{type:"string",const:t.MULTIPLE},ids:{type:"array",items:{type:"string",pattern:"^[0-9]+$"},minItems:1,uniqueItems:!0}},required:["type","ids"],additionalProperties:!1},m.validate=(0,a.generateLazyValidator)(m.schema)})(c=e.MultipleMapping||(e.MultipleMapping={}));var f;(function(m){m.schema={type:"object",properties:{type:{type:"string",enum:Object.values(t)}},required:["type"],oneOf:[i.schema,o.schema,u.schema,c.schema]},m.validate=(0,a.generateLazyValidator)(m.schema,[u._fromLessThanOrEqualTo])})(f=e.Mapping||(e.Mapping={})),(function(m){m._isMappingsValid={keyword:"_isMappingsValid",validate:function(S,M){try{y(M)}catch{return!1}return!0},errors:!1},m.innerSchema={type:"object",patternProperties:{"^0x[0-9a-fA-F]{40}$":{type:"array",items:f.schema}},minProperties:1,required:[],additionalProperties:!1};const g=Object.values(n).reduce((S,M)=>(S[M]=m.innerSchema,S),{});m.schema={type:"object",properties:g,minProperties:1,additionalProperties:!1,_isMappingsValid:!0},m.validate=(0,a.generateLazyValidator)(m.schema,[u._fromLessThanOrEqualTo,m._isMappingsValid])})(e.Mappings||(e.Mappings={}));class p extends Error{constructor(g,S,M){super(g),this.existingMapping=S,this.conflictingMapping=M}}e.AddMappingError=p;function y(m={}){const g={};for(const[v,O]of Object.entries(m)){g[v]={};for(const[C,z]of Object.entries(O))for(const U of z)P(v,C,U)}function S(){return JSON.parse(JSON.stringify(g))}function M(v,O,C){const z=BigInt(v);return z>=BigInt(O)&&z<=BigInt(C)}function R(v,O){switch(O.type){case t.SINGLE:return v.id===O.id;case t.MULTIPLE:return O.ids.includes(v.id);case t.RANGE:return M(v.id,O.from,O.to);default:return!1}}function I(v,O){switch(O.type){case t.SINGLE:return v.ids.includes(O.id);case t.MULTIPLE:return v.ids.some(C=>O.ids.includes(C));case t.RANGE:return v.ids.some(C=>M(C,O.from,O.to));default:return!1}}function N(v,O){switch(O.type){case t.SINGLE:return M(O.id,v.from,v.to);case t.MULTIPLE:return O.ids.some(C=>M(C,v.from,v.to));case t.RANGE:return BigInt(v.from)<=BigInt(O.to)&&BigInt(v.to)>=BigInt(O.from)}}function E(v,O){if(v.type===t.ANY||O.type===t.ANY)return!0;switch(v.type){case t.SINGLE:return R(v,O);case t.MULTIPLE:return I(v,O);case t.RANGE:return N(v,O)}}function P(v,O,C){var z,U;const K=O.toLowerCase();g[v]=(z=g[v])!==null&&z!==void 0?z:{},g[v][K]=(U=g[v][K])!==null&&U!==void 0?U:[];for(const ae of g[v][K])if(E(ae,C))throw new p(`Cannot add mapping to contract ${K} on network ${v} because it overlaps with existing mapping`,ae,C);g[v][K].push(C)}function T(v,O,C){var z;return!((z=g[v])===null||z===void 0)&&z[O]?g[v][O].some(U=>{switch(U.type){case t.SINGLE:return U.id===C;case t.ANY:return!0;case t.MULTIPLE:return U.ids.includes(C);case t.RANGE:return BigInt(C)>=BigInt(U.from)&&BigInt(C)<=BigInt(U.to)}}):!1}return{addMapping:P,getMappings:S,includesNft:T}}e.createMappingsHelper=y})(Dy)),Dy}var DA;function Ub(){return DA||(DA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isThirdParty=e.schema=void 0;const a=He(),t=XD(),n=kb();e.schema={type:"object",properties:{merkleProof:t.MerkleProof.schema,content:{type:"object",nullable:!1,additionalProperties:{type:"string"},required:[]},mappings:Object.assign({nullable:!0},n.Mappings.schema)},required:["merkleProof","content"],_containsHashingKeys:!0};const i={keyword:"_containsHashingKeys",validate:function(c,f){var p;const y=f;return!((p=y?.merkleProof)===null||p===void 0)&&p.hashingKeys?y.merkleProof.hashingKeys.every(m=>y.hasOwnProperty(m)):!1},errors:!1},o=(0,a.generateLazyValidator)(e.schema,[i,n.RangeMapping._fromLessThanOrEqualTo,n.Mappings._isMappingsValid]);function u(c){return o(c)}e.isThirdParty=u})(jy)),jy}var qy={},ky={},Qn={},qA;function JD(){if(qA)return Qn;qA=1,Object.defineProperty(Qn,"__esModule",{value:!0}),Qn.isBaseEmote=Qn.isBaseAvatar=Qn.requiredBaseItemProps=Qn.baseItemProperties=void 0;const e=KD(),a=YD(),t=Db();Qn.baseItemProperties=Object.assign(Object.assign({},t.displayableProperties),{id:{type:"string"},name:{type:"string"},description:{type:"string"},i18n:{type:"array",items:e.I18N.schema,minItems:1,uniqueItemProperties:["code"],errorMessage:'${0#} array should not have duplicates for "code"'},thumbnail:{type:"string"},image:{type:"string"},metrics:Object.assign(Object.assign({},a.Metrics.schema),{nullable:!0})}),Qn.requiredBaseItemProps=["id","name","description","i18n","thumbnail","image"];function n(o){if(!o||!o.id)return!1;const u=o.id.split(":"),c=u[1]==="decentraland",f=u[3]==="base-avatars";return u.length===5&&c&&f}Qn.isBaseAvatar=n;function i(o){if(!o||!o.id)return!1;const u=o.id.split(":");return u.length===5&&u[1]==="decentraland"&&u[3]==="base-emotes"}return Qn.isBaseEmote=i,Qn}var kA;function _3(){return kA||(kA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Wearable=void 0;const a=He(),t=es(),n=Lb(),i=JD(),o=qb(),u=Ub(),c=jb(),f=kb();(function(p){p.schema={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({},i.baseItemProperties),o.standardProperties),u.schema.properties.thirdPartyProps),{data:{type:"object",properties:{replaces:{type:"array",items:c.HideableWearableCategory.schema},hides:{type:"array",items:c.HideableWearableCategory.schema},tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:n.WearableRepresentation.schema,minItems:1},category:t.WearableCategory.schema,removesDefaultHiding:{type:"array",nullable:!0,items:c.HideableWearableCategory.schema},blockVrmExport:{type:"boolean",nullable:!0},outlineCompatible:{type:"boolean",nullable:!0}},required:["replaces","hides","tags","representations","category"]}}),additionalProperties:!0,required:[],oneOf:[{required:["id","i18n"],prohibited:["merkleProof","content","collectionAddress","rarity","mappings"],_isBaseAvatar:!0},{required:[...i.requiredBaseItemProps,"data","collectionAddress","rarity"],prohibited:["merkleProof","content","mappings"]},{required:[...i.requiredBaseItemProps,"data","merkleProof","content"],prohibited:["collectionAddress","rarity"],_isThirdParty:!0}],errorMessage:{oneOf:"either standard XOR thirdparty properties conditions must be met"}};const y={keyword:"_isThirdParty",validate:(g,S)=>!g||(0,u.isThirdParty)(S),errors:!1},m={keyword:"_isBaseAvatar",validate:(g,S)=>!g||(0,i.isBaseAvatar)(S),errors:!1};p.validate=(0,a.generateLazyValidator)(p.schema,[y,m,f.RangeMapping._fromLessThanOrEqualTo,f.Mappings._isMappingsValid])})(e.Wearable||(e.Wearable={}))})(ky)),ky}var UA;function E3(){return UA||(UA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.HideableWearableCategory=e.BodyPartCategory=e.WearableCategory=e.Wearable=e.WearableRepresentation=void 0;var a=Lb();Object.defineProperty(e,"WearableRepresentation",{enumerable:!0,get:function(){return a.WearableRepresentation}});var t=_3();Object.defineProperty(e,"Wearable",{enumerable:!0,get:function(){return t.Wearable}});var n=es();Object.defineProperty(e,"WearableCategory",{enumerable:!0,get:function(){return n.WearableCategory}});var i=UD();Object.defineProperty(e,"BodyPartCategory",{enumerable:!0,get:function(){return i.BodyPartCategory}});var o=jb();Object.defineProperty(e,"HideableWearableCategory",{enumerable:!0,get:function(){return o.HideableWearableCategory}})})(qy)),qy}var Uy={},By={},Fy={},Vy={},BA;function QD(){return BA||(BA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteCategory=void 0;const a=He();(function(t){t.DANCE="dance",t.STUNT="stunt",t.GREETINGS="greetings",t.FUN="fun",t.POSES="poses",t.REACTIONS="reactions",t.HORROR="horror",t.MISCELLANEOUS="miscellaneous"})(e.EmoteCategory||(e.EmoteCategory={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.EmoteCategory||(e.EmoteCategory={}))})(Vy)),Vy}var Hy={},FA;function ZD(){return FA||(FA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteRepresentationADR74=void 0;const a=He(),t=Cb();(function(n){n.schema={type:"object",properties:{bodyShapes:{type:"array",items:t.BodyShape.schema,minItems:1,uniqueItems:!0},mainFile:{type:"string",minLength:1},contents:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0,contains:{const:{$data:"2/mainFile"}},errorMessage:{contains:"contents should contain mainFile: ${1/mainFile}"}}},required:["bodyShapes","mainFile","contents"]},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.EmoteRepresentationADR74||(e.EmoteRepresentationADR74={}))})(Hy)),Hy}var zy={},VA;function $D(){return VA||(VA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.OutcomeGroup=e.StartAnimation=e.EmoteClip=e.ArmatureId=void 0;const a=He();var t;(function(i){i.Armature="Armature",i.Armature_Prop="Armature_Prop",i.Armature_Other="Armature_Other"})(t=e.ArmatureId||(e.ArmatureId={})),(function(i){i.schema={type:"string",enum:Object.values(i)},i.validate=(0,a.generateLazyValidator)(i.schema)})(t=e.ArmatureId||(e.ArmatureId={}));var n;(function(i){i.schema={type:"object",properties:{animation:{type:"string",minLength:1,errorMessage:"animation must be a non-empty string (GLB clip name)"}},required:["animation"],additionalProperties:!1,errorMessage:{required:{animation:"animation is required (GLB clip name)"}}},i.validate=(0,a.generateLazyValidator)(i.schema)})(n=e.EmoteClip||(e.EmoteClip={})),(function(i){i.schema={type:"object",properties:{loop:{type:"boolean",errorMessage:"startAnimation.loop must be a boolean"},[t.Armature]:Object.assign(Object.assign({},n.schema),{errorMessage:"startAnimation.Armature is required and must contain valid animation data"}),[t.Armature_Prop]:Object.assign(Object.assign({},n.schema),{nullable:!0,errorMessage:"startAnimation.Armature_Prop must contain valid animation data when provided"}),audio:{type:"string",nullable:!0,errorMessage:"audio must be a string (audio clip filename) when provided"}},required:["loop",t.Armature],additionalProperties:!1,errorMessage:{required:{loop:"startAnimation.loop is required",[t.Armature]:"startAnimation.Armature is required"}}},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.StartAnimation||(e.StartAnimation={})),(function(i){i.schema={type:"object",properties:{title:{type:"string",minLength:1,errorMessage:"outcome.title must be a non-empty string"},loop:{type:"boolean",errorMessage:"outcome.loop must be a boolean"},clips:{type:"object",properties:Object.values(t).reduce((o,u)=>(o[u]=Object.assign(Object.assign({},n.schema),{nullable:!0,errorMessage:`outcome.clips.${u} must contain valid animation data when provided`}),o),{}),additionalProperties:!0,minProperties:1,errorMessage:"outcome.clips must contain at least one armature animation"},audio:{type:"string",nullable:!0,errorMessage:"audio must be a string (audio clip filename) when provided"}},required:["title","loop","clips"],additionalProperties:!1,errorMessage:{required:{title:"outcome.title is required",loop:"outcome.loop is required",clips:"outcome.clips is required"}}},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.OutcomeGroup||(e.OutcomeGroup={}))})(zy)),zy}var HA;function xD(){return HA||(HA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteDataADR74=void 0;const a=QD(),t=He(),n=ZD(),i=$D();(function(o){o.schema={type:"object",properties:{tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:n.EmoteRepresentationADR74.schema,minItems:1},category:a.EmoteCategory.schema,loop:{type:"boolean"},startAnimation:Object.assign(Object.assign({},i.StartAnimation.schema),{nullable:!0}),randomizeOutcomes:{type:"boolean",nullable:!0},outcomes:{type:"array",items:i.OutcomeGroup.schema,minItems:1,maxItems:3,nullable:!0}},required:["category","tags","representations","loop"],dependencies:{startAnimation:["randomizeOutcomes","outcomes"],randomizeOutcomes:["startAnimation","outcomes"],outcomes:["startAnimation","randomizeOutcomes"]},additionalProperties:!0},o.validate=(0,t.generateLazyValidator)(o.schema)})(e.EmoteDataADR74||(e.EmoteDataADR74={}))})(Fy)),Fy}var zA;function b3(){return zA||(zA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Emote=void 0;const a=eq(),t=He(),n=JD(),i=qb(),o=Ub(),u=xD();(function(c){c.schema={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({},n.baseItemProperties),i.standardProperties),o.schema.properties),{emoteDataADR74:u.EmoteDataADR74.schema}),additionalProperties:!0,required:[...n.requiredBaseItemProps],oneOf:[{required:["emoteDataADR74"],oneOf:[{required:["id","i18n"],prohibited:["merkleProof","content","collectionAddress","rarity"],_isBaseEmote:!0},{required:["collectionAddress","rarity"],prohibited:["merkleProof","content"],errorMessage:"standard properties conditions are not met"},{required:["merkleProof","content","id","name","description","i18n","image","thumbnail","emoteDataADR74"],_isThirdParty:!0,prohibited:["collectionAddress","rarity"],errorMessage:"thirdparty properties conditions are not met"}],errorMessage:{oneOf:"emote should have either standard or thirdparty properties"}}],errorMessage:{oneOf:'emote should have "emoteDataADR74" and match its schema'}};const f={keyword:"_isThirdParty",validate:(y,m)=>!y||(0,a.isThirdParty)(m),errors:!1},p={keyword:"_isBaseEmote",validate:(y,m)=>!y||(0,n.isBaseEmote)(m),errors:!1};c.validate=(0,t.generateLazyValidator)(c.schema,[f,p,a.RangeMapping._fromLessThanOrEqualTo,a.Mappings._isMappingsValid])})(e.Emote||(e.Emote={}))})(By)),By}var Wy={},WA;function w3(){return WA||(WA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmotePlayMode=void 0;const a=He();(function(t){t.SIMPLE="simple",t.LOOP="loop"})(e.EmotePlayMode||(e.EmotePlayMode={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.EmotePlayMode||(e.EmotePlayMode={}))})(Wy)),Wy}var Gy={},GA;function T3(){return GA||(GA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteOutcomeType=void 0;const a=He();(function(t){t.SIMPLE_OUTCOME="so",t.MULTIPLE_OUTCOME="mo",t.RANDOM_OUTCOME="ro"})(e.EmoteOutcomeType||(e.EmoteOutcomeType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.EmoteOutcomeType||(e.EmoteOutcomeType={}))})(Gy)),Gy}var KA;function S3(){return KA||(KA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteOutcomeType=e.EmotePlayMode=e.EmoteCategory=e.StartAnimation=e.OutcomeGroup=e.EmoteClip=e.ArmatureId=e.EmoteDataADR74=e.EmoteRepresentationADR74=e.Emote=void 0;var a=b3();Object.defineProperty(e,"Emote",{enumerable:!0,get:function(){return a.Emote}});var t=ZD();Object.defineProperty(e,"EmoteRepresentationADR74",{enumerable:!0,get:function(){return t.EmoteRepresentationADR74}});var n=xD();Object.defineProperty(e,"EmoteDataADR74",{enumerable:!0,get:function(){return n.EmoteDataADR74}});var i=$D();Object.defineProperty(e,"ArmatureId",{enumerable:!0,get:function(){return i.ArmatureId}}),Object.defineProperty(e,"EmoteClip",{enumerable:!0,get:function(){return i.EmoteClip}}),Object.defineProperty(e,"OutcomeGroup",{enumerable:!0,get:function(){return i.OutcomeGroup}}),Object.defineProperty(e,"StartAnimation",{enumerable:!0,get:function(){return i.StartAnimation}});var o=QD();Object.defineProperty(e,"EmoteCategory",{enumerable:!0,get:function(){return o.EmoteCategory}});var u=w3();Object.defineProperty(e,"EmotePlayMode",{enumerable:!0,get:function(){return u.EmotePlayMode}});var c=T3();Object.defineProperty(e,"EmoteOutcomeType",{enumerable:!0,get:function(){return c.EmoteOutcomeType}})})(Uy)),Uy}var YA;function eq(){return YA||(YA=1,(function(e){var a=so&&so.__createBinding||(Object.create?(function(p,y,m,g){g===void 0&&(g=m);var S=Object.getOwnPropertyDescriptor(y,m);(!S||("get"in S?!y.__esModule:S.writable||S.configurable))&&(S={enumerable:!0,get:function(){return y[m]}}),Object.defineProperty(p,g,S)}):(function(p,y,m,g){g===void 0&&(g=m),p[g]=y[m]})),t=so&&so.__exportStar||function(p,y){for(var m in p)m!=="default"&&!Object.prototype.hasOwnProperty.call(y,m)&&a(y,p,m)};Object.defineProperty(e,"__esModule",{value:!0}),e.isThirdParty=e.isStandard=e.BodyShape=e.Metrics=e.Locale=e.I18N=void 0;var n=KD();Object.defineProperty(e,"I18N",{enumerable:!0,get:function(){return n.I18N}});var i=GD();Object.defineProperty(e,"Locale",{enumerable:!0,get:function(){return i.Locale}});var o=YD();Object.defineProperty(e,"Metrics",{enumerable:!0,get:function(){return o.Metrics}});var u=Cb();Object.defineProperty(e,"BodyShape",{enumerable:!0,get:function(){return u.BodyShape}});var c=qb();Object.defineProperty(e,"isStandard",{enumerable:!0,get:function(){return c.isStandard}});var f=Ub();Object.defineProperty(e,"isThirdParty",{enumerable:!0,get:function(){return f.isThirdParty}}),t(kb(),e),t(E3(),e),t(S3(),e)})(so)),so}var Ky={},Yy={},XA;function Dl(){return XA||(XA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AuthChain=e.AuthLink=e.AuthLinkType=void 0;const a=He();var t;(function(i){i.SIGNER="SIGNER",i.ECDSA_PERSONAL_EPHEMERAL="ECDSA_EPHEMERAL",i.ECDSA_PERSONAL_SIGNED_ENTITY="ECDSA_SIGNED_ENTITY",i.ECDSA_EIP_1654_EPHEMERAL="ECDSA_EIP_1654_EPHEMERAL",i.ECDSA_EIP_1654_SIGNED_ENTITY="ECDSA_EIP_1654_SIGNED_ENTITY"})(t=e.AuthLinkType||(e.AuthLinkType={}));var n;(function(i){i.schema={type:"object",properties:{type:{type:"string",enum:Object.values(t)},payload:{type:"string"},signature:{type:"string",nullable:!0}},required:["payload","type"],if:{properties:{type:{not:{const:t.SIGNER}}}},then:{required:["signature"]},else:{oneOf:[{properties:{signature:{type:"string",const:""}},required:["signature"]},{properties:{signature:{type:"null"}}}]}},i.validate=(0,a.generateLazyValidator)(i.schema)})(n=e.AuthLink||(e.AuthLink={})),(function(i){i.schema={type:"array",items:n.schema,minItems:1},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.AuthChain||(e.AuthChain={}))})(Yy)),Yy}var JA;function O3(){return JA||(JA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PointerChangesSyncDeployment=e.SnapshotSyncDeployment=void 0;const a=ts(),t=Dl(),n=He();(function(i){i.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},authChain:t.AuthChain.schema,entityTimestamp:{type:"number",minimum:0}},oneOf:[{properties:{entityId:a.IPFSv1.schema}},{properties:{entityId:a.IPFSv2.schema}}],required:["entityId","entityType","pointers","entityTimestamp","authChain"]},i.validate=(0,n.generateLazyValidator)(i.schema)})(e.SnapshotSyncDeployment||(e.SnapshotSyncDeployment={})),(function(i){i.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},authChain:t.AuthChain.schema,entityTimestamp:{type:"number",minimum:0},localTimestamp:{type:"number",minimum:0}},oneOf:[{properties:{entityId:a.IPFSv1.schema}},{properties:{entityId:a.IPFSv2.schema}}],required:["entityId","entityType","pointers","localTimestamp","entityTimestamp","authChain"]},i.validate=(0,n.generateLazyValidator)(i.schema)})(e.PointerChangesSyncDeployment||(e.PointerChangesSyncDeployment={}))})(Ky)),Ky}var Xy={},Jy={},QA;function tq(){return QA||(QA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ContentMapping=void 0;const a=ts(),t=He();(function(n){n.schema={type:"object",properties:{file:{type:"string",minLength:1},hash:{type:"string",oneOf:[a.IPFSv1.schema,a.IPFSv2.schema]}},required:["file","hash"]},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.ContentMapping||(e.ContentMapping={}))})(Jy)),Jy}var ZA;function rq(){return ZA||(ZA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Entity=e.EntityType=void 0;const a=ts(),t=tq(),n=He();(function(i){i.SCENE="scene",i.PROFILE="profile",i.WEARABLE="wearable",i.STORE="store",i.EMOTE="emote",i.OUTFITS="outfits"})(e.EntityType||(e.EntityType={})),(function(i){i.schema={type:"object",properties:{version:{type:"string",enum:["v3"]},id:{type:"string",oneOf:[a.IPFSv1.schema,a.IPFSv2.schema]},type:{type:"string"},pointers:{type:"array",items:{type:"string",minLength:1}},timestamp:{type:"number",minimum:0},content:{type:"array",items:t.ContentMapping.schema},metadata:{type:"object",nullable:!0}},required:["version","id","type","pointers","timestamp","content"]},i.validate=(0,n.generateLazyValidator)(i.schema)})(e.Entity||(e.Entity={}))})(Xy)),Xy}var Qy={},$A;function A3(){return $A||($A=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DeploymentWithAuthChain=void 0;const a=Dl(),t=He();(function(n){n.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},localTimestamp:{type:"number",minimum:0},authChain:a.AuthChain.schema},required:["entityId","entityType","pointers","localTimestamp","authChain"]},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.DeploymentWithAuthChain||(e.DeploymentWithAuthChain={}))})(Qy)),Qy}var lo={},Zy={},xA;function P3(){return xA||(xA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Outfits=e.Outfit=void 0;const a=es(),t=ts(),n=He();var i;(function(o){o.schema={type:"object",required:["bodyShape","eyes","hair","skin","wearables"],properties:{bodyShape:{type:"string"},eyes:{type:"object",required:["color"],properties:{color:t.Color3.schema}},hair:{type:"object",required:["color"],properties:{color:t.Color3.schema}},skin:{type:"object",required:["color"],properties:{color:t.Color3.schema}},wearables:{type:"array",items:{type:"string"}},forceRender:{type:"array",nullable:!0,items:a.WearableCategory.schema}},additionalProperties:!0},o.validate=(0,n.generateLazyValidator)(o.schema)})(i=e.Outfit||(e.Outfit={})),(function(o){o.schema={type:"object",required:["outfits","namesForExtraSlots"],properties:{outfits:{type:"array",items:{type:"object",required:["slot","outfit"],properties:{slot:{type:"number"},outfit:i.schema}}},namesForExtraSlots:{type:"array",uniqueItems:!0,items:{type:"string"}}},additionalProperties:!0},o.validate=(0,n.generateLazyValidator)(o.schema)})(e.Outfits||(e.Outfits={}))})(Zy)),Zy}var eP;function I3(){return eP||(eP=1,(function(e){var a=lo&&lo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=lo&&lo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(P3(),e)})(lo)),lo}var co={},$y={},tP;function nq(){return tP||(tP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NotificationOptOutScope=e.NotificationType=void 0,(function(a){a.BADGE_GRANTED="badge_granted",a.BID_ACCEPTED="bid_accepted",a.BID_RECEIVED="bid_received",a.EVENTS_STARTED="events_started",a.EVENTS_STARTS_SOON="events_starts_soon",a.EVENT_CREATED="event_created",a.GOVERNANCE_ANNOUNCEMENT="governance_announcement",a.GOVERNANCE_AUTHORED_PROPOSAL_FINISHED="governance_authored_proposal_finished",a.GOVERNANCE_COAUTHOR_REQUESTED="governance_coauthor_requested",a.GOVERNANCE_CLIFF_ENDED="governance_cliff_ended",a.GOVERNANCE_NEW_COMMENT_ON_PROJECT_UPDATE="governance_new_comment_on_project_update",a.GOVERNANCE_NEW_COMMENT_ON_PROPOSAL="governance_new_comment_on_proposal",a.GOVERNANCE_PROPOSAL_ENACTED="governance_proposal_enacted",a.GOVERNANCE_VOTING_ENDED_VOTER="governance_voting_ended_voter",a.GOVERNANCE_PITCH_PASSED="governance_pitch_passed",a.GOVERNANCE_TENDER_PASSED="governance_tender_passed",a.GOVERNANCE_WHALE_VOTE="governance_whale_vote",a.GOVERNANCE_VOTED_ON_BEHALF="governance_voted_on_behalf",a.ITEM_SOLD="item_sold",a.ITEM_PUBLISHED="item_published",a.LAND_RENTAL_ENDED="rental_ended",a.LAND_RENTED="rental_started",a.REWARD_ASSIGNED="reward_assignment",a.REWARD_CAMPAIGN_OUT_OF_FUNDS="reward_campaign_out_of_funds",a.REWARD_CAMPAIGN_GAS_PRICE_HIGHER_THAN_EXPECTED="reward_campaign_gas_price_higher_than_expected",a.REWARD_CAMPAIGN_OUT_OF_STOCK="reward_campaign_out_of_stock",a.REWARD_DELAYED="reward_delayed",a.REWARD_IN_PROGRESS="reward_in_progress",a.ROYALTIES_EARNED="royalties_earned",a.SOCIAL_SERVICE_FRIENDSHIP_REQUEST="social_service_friendship_request",a.SOCIAL_SERVICE_FRIENDSHIP_ACCEPTED="social_service_friendship_accepted",a.WORLDS_ACCESS_RESTORED="worlds_access_restored",a.WORLDS_ACCESS_RESTRICTED="worlds_access_restricted",a.WORLDS_MISSING_RESOURCES="worlds_missing_resources",a.WORLDS_PERMISSION_GRANTED="worlds_permission_granted",a.WORLDS_PERMISSION_REVOKED="worlds_permission_revoked",a.CREDITS_GOAL_COMPLETED="credits_goal_completed",a.CREDITS_ON_DEMAND_GRANTED="credits_on_demand_granted",a.STREAMING_KEY_RESET="streaming_key_reset",a.STREAMING_KEY_REVOKE="streaming_key_revoke",a.STREAMING_KEY_EXPIRED="streaming_key_expired",a.STREAMING_TIME_EXCEEDED="streaming_time_exceeded",a.STREAMING_PLACE_UPDATED="streaming_place_updated",a.CREDITS_REMINDER_COMPLETE_GOALS="credits_reminder_complete_goals",a.CREDITS_REMINDER_CLAIM_CREDITS="credits_reminder_claim_credits",a.CREDITS_REMINDER_USAGE="credits_reminder_usage",a.CREDITS_REMINDER_USAGE_24_HOURS="credits_reminder_usage_24_hours",a.CREDITS_REMINDER_DO_NOT_MISS_OUT="credits_reminder_do_not_miss_out",a.CREDITS_NEW_SEASON_REMINDER="credits_new_season_reminder",a.REFERRAL_INVITED_USERS_ACCEPTED="referral_invited_users_accepted",a.REFERRAL_NEW_TIER_REACHED="referral_new_tier_reached",a.COMMUNITY_DELETED="community_deleted",a.COMMUNITY_DELETED_CONTENT_VIOLATION="community_deleted_content_violation",a.COMMUNITY_RENAMED="community_renamed",a.COMMUNITY_MEMBER_BANNED="community_member_banned",a.COMMUNITY_MEMBER_REMOVED="community_member_removed",a.COMMUNITY_REQUEST_TO_JOIN_RECEIVED="community_request_to_join_received",a.COMMUNITY_REQUEST_TO_JOIN_ACCEPTED="community_request_to_join_accepted",a.COMMUNITY_INVITE_RECEIVED="community_invite_received",a.COMMUNITY_OWNERSHIP_TRANSFERRED="community_ownership_transferred",a.COMMUNITY_POST_ADDED="community_post_added",a.COMMUNITY_VOICE_CHAT_STARTED="community_voice_chat_started",a.USER_BANNED_FROM_SCENE="user_banned_from_scene",a.USER_UNBANNED_FROM_SCENE="user_unbanned_from_scene",a.TRANSFER_RECEIVED="transfer_received"})(e.NotificationType||(e.NotificationType={})),(function(a){a.COMMUNITY="community"})(e.NotificationOptOutScope||(e.NotificationOptOutScope={}))})($y)),$y}var xy={},em={},rP;function iq(){return rP||(rP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SubscriptionDetails=void 0;const a=He(),t=nq(),n={type:"object",required:["email","in_app"],properties:{email:{type:"boolean"},in_app:{type:"boolean"}}},i=Object.values(t.NotificationType).reduce((o,u)=>(o[u]=n,o),{});(function(o){o.schema={type:"object",required:["ignore_all_email","ignore_all_in_app","message_type"],properties:{ignore_all_email:{type:"boolean"},ignore_all_in_app:{type:"boolean"},message_type:{type:"object",required:Object.values(t.NotificationType),additionalProperties:!1,properties:i}}},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.SubscriptionDetails||(e.SubscriptionDetails={}))})(em)),em}var tm={},nP;function aq(){return nP||(nP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Email=void 0,(function(a){a.schema={type:"string",pattern:"^[\\w\\-\\.]+@([\\w-]+\\.)+[\\w-]{2,}$"};const t=new RegExp(a.schema.pattern);a.validate=n=>t.test(n)})(e.Email||(e.Email={}))})(tm)),tm}var iP;function R3(){return iP||(iP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Subscription=void 0;const a=He(),t=iq(),n=ts(),i=aq();(function(o){o.schema={type:"object",required:["address","details"],properties:{address:n.EthAddress.schema,email:Object.assign(Object.assign({},i.Email.schema),{nullable:!0}),details:t.SubscriptionDetails.schema}},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.Subscription||(e.Subscription={}))})(xy)),xy}var aP;function M3(){return aP||(aP=1,(function(e){var a=co&&co.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=co&&co.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(nq(),e),t(R3(),e),t(iq(),e)})(co)),co}var fo={},rm={},oP;function ln(){return oP||(oP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Events=void 0,(function(a){(function(t){t.BLOCKCHAIN="blockchain",t.CATALYST_DEPLOYMENT="catalyst-deployment",t.WORLD="world",t.CLIENT="client",t.WEB="web",t.MARKETPLACE="marketplace",t.REWARDS="rewards",t.BADGE="badge",t.ASSET_BUNDLE="asset-bundle",t.SOCIAL_SERVICE="social-service",t.CREDITS_SERVICE="credits-service",t.STREAMING="streaming",t.COMMS="comms",t.REFERRAL="referral",t.COMMUNITY="community",t.CAMERA="camera",t.EVENT="event",t.GOVERNANCE="governance"})(a.Type||(a.Type={})),(function(t){(function(n){n.BID_ACCEPTED="bid-accepted",n.ITEM_SOLD="item-sold",n.RENTAL_ENDED="land-rental-ended",n.RENTAL_STARTED="land-rental-started",n.ROYALTIES_EARNED="royalties-earned",n.COLLECTION_CREATED="collection-created",n.ITEM_PUBLISHED="item-published",n.TRANSFER_RECEIVED="transfer-received"})(t.Blockchain||(t.Blockchain={})),(function(n){n.BID_RECEIVED="bid-received"})(t.Marketplace||(t.Marketplace={})),(function(n){n.SCENE="scene",n.PROFILE="profile",n.WEARABLE="wearable",n.STORE="store",n.EMOTE="emote",n.OUTFITS="outfits"})(t.CatalystDeployment||(t.CatalystDeployment={})),(function(n){n.DEPLOYMENT="deployment",n.WORLDS_PERMISSION_GRANTED="worlds_permission_granted",n.WORLDS_PERMISSION_REVOKED="worlds_permission_revoked",n.WORLDS_ACCESS_RESTORED="worlds_access_restored",n.WORLDS_ACCESS_RESTRICTED="worlds_access_restricted",n.WORLDS_MISSING_RESOURCES="worlds_missing_resources"})(t.Worlds||(t.Worlds={})),(function(n){n.LOGGED_IN="logged-in",n.LOGGED_IN_CACHED="logged-in-cached",n.MOVE_TO_PARCEL="move-to-parcel",n.USED_EMOTE="used-emote",n.PASSPORT_OPENED="passport-opened",n.WALKED_DISTANCE="walked-distance",n.VERTICAL_HEIGHT_REACHED="vertical-height-reached"})(t.Client||(t.Client={})),(function(n){n.AUTH_IDENTIFY="auth-identify"})(t.Web||(t.Web={})),(function(n){n.REWARD_IN_PROGRESS="reward-in-progress",n.REWARD_ASSIGNED="reward-assigned",n.CAMPAIGN_OUT_OF_FUNDS="campaign-out-of-funds",n.CAMPAIGN_GAS_PRICE_HIGHER_THAN_EXPECTED="campaign-gas-price-higher-than-expected",n.CAMPAIGN_OUT_OF_STOCK="campaign-out-of-stock",n.REWARD_DELAYED="reward-delayed"})(t.Rewards||(t.Rewards={})),(function(n){n.GRANTED="badge-granted"})(t.Badge||(t.Badge={})),(function(n){n.CONVERTED="converted",n.MANUALLY_QUEUED="manually-queued"})(t.AssetBundle||(t.AssetBundle={})),(function(n){n.FRIENDSHIP_REQUEST="friendship-request",n.FRIENDSHIP_ACCEPTED="friendship-accepted"})(t.SocialService||(t.SocialService={})),(function(n){n.CREDITS_GOAL_COMPLETED="credits-goal-completed",n.COMPLETE_GOALS_REMINDER="complete-goals-reminder",n.CLAIM_CREDITS_REMINDER="claim-credits-reminder",n.DO_NOT_MISS_OUT_REMINDER="do-not-miss-out-reminder",n.USAGE_REMINDER="usage-reminder",n.USAGE_24_HOURS_REMINDER="usage-24-hours-reminder",n.ON_DEMAND_CREDITS_GRANTED="on-demand-credits-granted",n.NEW_SEASON_REMINDER="new-season-reminder"})(t.CreditsService||(t.CreditsService={})),(function(n){n.STREAMING_KEY_RESET="streaming-key-reset",n.STREAMING_KEY_REVOKE="streaming-key-revoke",n.STREAMING_KEY_EXPIRED="streaming-key-expired",n.STREAMING_TIME_EXCEEDED="streaming-time-exceeded",n.STREAMING_PLACE_UPDATED="streaming-place-updated",n.COMMUNITY_STREAMING_ENDED="community-streaming-ended"})(t.Streaming||(t.Streaming={})),(function(n){n.USER_JOINED_ROOM="user-joined-room",n.USER_LEFT_ROOM="user-left-room",n.USER_BANNED_FROM_SCENE="user-banned-from-scene",n.USER_UNBANNED_FROM_SCENE="user-unbanned-from-scene"})(t.Comms||(t.Comms={})),(function(n){n.REFERRAL_INVITED_USERS_ACCEPTED="referral-invited-users-accepted",n.REFERRAL_NEW_TIER_REACHED="referral-new-tier-reached"})(t.Referral||(t.Referral={})),(function(n){n.DELETED="community-deleted",n.DELETED_CONTENT_VIOLATION="community-deleted-content-violation",n.RENAMED="community-renamed",n.MEMBER_BANNED="community-member-banned",n.MEMBER_REMOVED="community-member-removed",n.REQUEST_TO_JOIN_RECEIVED="community-request-to-join-received",n.REQUEST_TO_JOIN_ACCEPTED="community-request-to-join-accepted",n.INVITE_RECEIVED="community-invite-received",n.OWNERSHIP_TRANSFERRED="community-ownership-transferred",n.POST_ADDED="community-post-added",n.VOICE_CHAT_STARTED="community-voice-chat-started"})(t.Community||(t.Community={})),(function(n){n.PHOTO_TAKEN="photo-taken",n.PHOTO_PRIVACY_CHANGED="photo-privacy-changed"})(t.Camera||(t.Camera={})),(function(n){n.EVENT_CREATED="event-created",n.EVENT_STARTS_SOON="event-starts-soon",n.EVENT_STARTED="event-started",n.EVENT_ENDED="event-ended"})(t.Event||(t.Event={})),(function(n){n.PROPOSAL_ENACTED="governance_proposal_enacted",n.COAUTHOR_REQUESTED="governance_coauthor_requested",n.PITCH_PASSED="governance_pitch_passed",n.TENDER_PASSED="governance_tender_passed",n.AUTHORED_PROPOSAL_FINISHED="governance_authored_proposal_finished",n.VOTING_ENDED_VOTER="governance_voting_ended_voter",n.NEW_COMMENT_ON_PROPOSAL="governance_new_comment_on_proposal",n.NEW_COMMENT_ON_PROJECT_UPDATED="governance_new_comment_on_project_update",n.WHALE_VOTE="governance_whale_vote",n.VOTED_ON_BEHALF="governance_voted_on_behalf",n.CLIFF_ENDED="governance_cliff_ended"})(t.Governance||(t.Governance={}))})(a.SubType||(a.SubType={}))})(e.Events||(e.Events={}))})(rm)),rm}var nm={},sP;function N3(){return sP||(sP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TransferReceivedEvent=e.CollectionCreatedEvent=e.RoyaltiesEarnedEvent=e.RentalStartedEvent=e.RentalEndedEvent=e.ItemPublishedEvent=e.ItemSoldEvent=e.BidAcceptedEvent=void 0;const a=He(),t=ln();(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.BLOCKCHAIN},subType:{type:"string",const:t.Events.SubType.Blockchain.BID_ACCEPTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},image:{type:"string"},seller:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},link:{type:"string"},nftName:{type:"string",nullable:!0},price:{type:"string"},title:{type:"string"},description:{type:"string"},network:{type:"string"}},required:["address","image","seller","category","link","price","title","network"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.BidAcceptedEvent||(e.BidAcceptedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.BLOCKCHAIN},subType:{type:"string",const:t.Events.SubType.Blockchain.ITEM_SOLD},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},image:{type:"string"},buyer:{type:"string"},seller:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},link:{type:"string"},nftName:{type:"string",nullable:!0},tokenId:{type:"string"},network:{type:"string"},title:{type:"string"},description:{type:"string"}},required:["address","image","seller","category","link","network","title","description"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.ItemSoldEvent||(e.ItemSoldEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.BLOCKCHAIN},subType:{type:"string",const:t.Events.SubType.Blockchain.ITEM_PUBLISHED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{creator:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},itemId:{type:"string"},network:{type:"string"},urn:{type:"string"}},required:["creator","category","itemId","network","urn"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.ItemPublishedEvent||(e.ItemPublishedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.BLOCKCHAIN},subType:{type:"string",const:t.Events.SubType.Blockchain.RENTAL_ENDED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},contract:{type:"string"},land:{type:"string",nullable:!0},lessor:{type:"string"},tenant:{type:"string"},operator:{type:"string"},startedAt:{type:"string"},endedAt:{type:"string"},tokenId:{type:"string"},link:{type:"string"},title:{type:"string"},description:{type:"string",nullable:!0}},required:["address","contract","lessor","tenant","operator","startedAt","endedAt","tokenId","link","title"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.RentalEndedEvent||(e.RentalEndedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.BLOCKCHAIN},subType:{type:"string",const:t.Events.SubType.Blockchain.RENTAL_STARTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},contract:{type:"string"},land:{type:"string",nullable:!0},lessor:{type:"string"},tenant:{type:"string"},operator:{type:"string"},startedAt:{type:"string"},endedAt:{type:"string"},tokenId:{type:"string"},link:{type:"string"},title:{type:"string"},description:{type:"string",nullable:!0}},required:["address","contract","lessor","tenant","operator","startedAt","endedAt","tokenId","link","title"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.RentalStartedEvent||(e.RentalStartedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.BLOCKCHAIN},subType:{type:"string",const:t.Events.SubType.Blockchain.ROYALTIES_EARNED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},image:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},link:{type:"string"},nftName:{type:"string",nullable:!0},royaltiesCut:{type:"string"},royaltiesCollector:{type:"string"},network:{type:"string"},title:{type:"string"},description:{type:"string",nullable:!0}},required:["address","image","category","link","royaltiesCut","royaltiesCollector","network","title"]}},required:["type","subType","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.RoyaltiesEarnedEvent||(e.RoyaltiesEarnedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.BLOCKCHAIN},subType:{type:"string",const:t.Events.SubType.Blockchain.COLLECTION_CREATED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{creator:{type:"string"},name:{type:"string"}},required:["creator","name"]}},required:["type","subType","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.CollectionCreatedEvent||(e.CollectionCreatedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.BLOCKCHAIN},subType:{type:"string",const:t.Events.SubType.Blockchain.TRANSFER_RECEIVED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{senderAddress:{type:"string"},receiverAddress:{type:"string"},tokenUri:{type:"string",nullable:!0}},required:["senderAddress","receiverAddress"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.TransferReceivedEvent||(e.TransferReceivedEvent={}))})(nm)),nm}var im={},uP;function C3(){return uP||(uP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CatalystDeploymentEvent=void 0;const a=Dl(),t=He(),n=rq(),i=ln();(function(o){o.schema={type:"object",properties:{type:{type:"string",const:i.Events.Type.CATALYST_DEPLOYMENT},subType:{type:"string",enum:Object.values(i.Events.SubType.CatalystDeployment)},key:{type:"string"},timestamp:{type:"number",minimum:1},entity:n.Entity.schema,authChain:a.AuthChain.schema},required:["type","subType","entity","authChain","key","timestamp"],additionalProperties:!1},o.validate=(0,t.generateLazyValidator)(o.schema)})(e.CatalystDeploymentEvent||(e.CatalystDeploymentEvent={}))})(im)),im}var am={},lP;function j3(){return lP||(lP=1,Object.defineProperty(am,"__esModule",{value:!0})),am}var om={},cP;function L3(){return cP||(cP=1,Object.defineProperty(om,"__esModule",{value:!0})),om}var sm={},dP;function D3(){return dP||(dP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BidReceivedEvent=void 0;const a=He(),t=ln();(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.MARKETPLACE},subType:{type:"string",const:t.Events.SubType.Marketplace.BID_RECEIVED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},image:{type:"string"},seller:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},link:{type:"string"},nftName:{type:"string",nullable:!0},price:{type:"string"},title:{type:"string"},description:{type:"string"},network:{type:"string"}},required:["address","image","seller","category","link","price","title","network"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.BidReceivedEvent||(e.BidReceivedEvent={}))})(sm)),sm}var um={},Uu={},fP;function mf(){if(fP)return Uu;fP=1,Object.defineProperty(Uu,"__esModule",{value:!0}),Uu.createEventSchema=void 0;function e(a,t,n){return{type:"object",properties:{type:{type:"string",const:a},subType:{type:"string",const:t},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:n},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1}}return Uu.createEventSchema=e,Uu}var pP;function q3(){return pP||(pP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.RewardDelayedEvent=e.CampaignOutOfStockEvent=e.CampaignGasPriceHigherThanExpectedEvent=e.CampaignOutOfFundsEvent=e.RewardAssignedEvent=e.RewardInProgressEvent=void 0;const a=He(),t=ln(),n=mf(),i={type:"object",properties:{title:{type:"string"},description:{type:"string"},link:{type:"string",nullable:!0},beneficiary:{type:"string"},tokenName:{type:"string"},tokenImage:{type:"string"},tokenRarity:{type:"string",nullable:!0},tokenCategory:{type:"string",nullable:!0}},required:["title","description","beneficiary","tokenName","tokenImage"],additionalProperties:!1},o={type:"object",properties:{title:{type:"string"},description:{type:"string"},link:{type:"string",nullable:!0},owner:{type:"string"},campaignId:{type:"string"},campaignName:{type:"string"}},required:["title","description","owner","campaignId","campaignName"],additionalProperties:!1};(function(u){u.schema=(0,n.createEventSchema)(t.Events.Type.REWARDS,t.Events.SubType.Rewards.REWARD_IN_PROGRESS,i),u.validate=(0,a.generateLazyValidator)(u.schema)})(e.RewardInProgressEvent||(e.RewardInProgressEvent={})),(function(u){u.schema=(0,n.createEventSchema)(t.Events.Type.REWARDS,t.Events.SubType.Rewards.REWARD_ASSIGNED,i),u.validate=(0,a.generateLazyValidator)(u.schema)})(e.RewardAssignedEvent||(e.RewardAssignedEvent={})),(function(u){u.schema=(0,n.createEventSchema)(t.Events.Type.REWARDS,t.Events.SubType.Rewards.CAMPAIGN_OUT_OF_FUNDS,o),u.validate=(0,a.generateLazyValidator)(u.schema)})(e.CampaignOutOfFundsEvent||(e.CampaignOutOfFundsEvent={})),(function(u){u.schema=(0,n.createEventSchema)(t.Events.Type.REWARDS,t.Events.SubType.Rewards.CAMPAIGN_GAS_PRICE_HIGHER_THAN_EXPECTED,o),u.validate=(0,a.generateLazyValidator)(u.schema)})(e.CampaignGasPriceHigherThanExpectedEvent||(e.CampaignGasPriceHigherThanExpectedEvent={})),(function(u){u.schema=(0,n.createEventSchema)(t.Events.Type.REWARDS,t.Events.SubType.Rewards.CAMPAIGN_OUT_OF_STOCK,o),u.validate=(0,a.generateLazyValidator)(u.schema)})(e.CampaignOutOfStockEvent||(e.CampaignOutOfStockEvent={})),(function(u){u.schema=(0,n.createEventSchema)(t.Events.Type.REWARDS,t.Events.SubType.Rewards.REWARD_DELAYED,i),u.validate=(0,a.generateLazyValidator)(u.schema)})(e.RewardDelayedEvent||(e.RewardDelayedEvent={}))})(um)),um}var lm={},yP;function k3(){return yP||(yP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CreditsClaimReminderEvent=e.CreditsDoNotMissOutReminderEvent=e.CreditsUsage24HoursReminderEvent=e.CreditsNewSeasonReminderEvent=e.CreditsUsageReminderEvent=e.CreditsCompleteGoalsReminderEvent=e.CreditsGoalCompletedEvent=e.CreditsOnDemandEvent=e.FriendshipAcceptedEvent=e.FriendshipRequestEvent=e.AssetBundleConversionManuallyQueuedEvent=e.AssetBundleConversionFinishedEvent=e.BadgeGrantedEvent=void 0;const a=He(),t=ln();(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.BADGE},subType:{type:"string",const:t.Events.SubType.Badge.GRANTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{badgeId:{type:"string"},badgeTierName:{type:"string",nullable:!0},badgeName:{type:"string"},badgeImageUrl:{type:"string"},address:{type:"string"}},required:["badgeId","badgeName","badgeImageUrl","address"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.BadgeGrantedEvent||(e.BadgeGrantedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.ASSET_BUNDLE},subType:{type:"string",const:t.Events.SubType.AssetBundle.CONVERTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{entityId:{type:"string"},platform:{type:"string",enum:["windows","mac","webgl"]},statusCode:{type:"number"},isLods:{type:"boolean"},isWorld:{type:"boolean"},version:{type:"string"}},required:["entityId","platform","statusCode","isLods","isWorld","version"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.AssetBundleConversionFinishedEvent||(e.AssetBundleConversionFinishedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.ASSET_BUNDLE},subType:{type:"string",const:t.Events.SubType.AssetBundle.MANUALLY_QUEUED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{entityId:{type:"string"},platform:{type:"string",enum:["windows","mac","webgl"]},isLods:{type:"boolean"},isPriority:{type:"boolean"},version:{type:"string"}},required:["entityId","platform","isLods"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.AssetBundleConversionManuallyQueuedEvent||(e.AssetBundleConversionManuallyQueuedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.SOCIAL_SERVICE},subType:{type:"string",const:t.Events.SubType.SocialService.FRIENDSHIP_REQUEST},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{requestId:{type:"string"},sender:{type:"object",properties:{address:{type:"string"},name:{type:"string"},profileImageUrl:{type:"string"},hasClaimedName:{type:"boolean"}},required:["address","name","profileImageUrl","hasClaimedName"]},receiver:{type:"object",properties:{address:{type:"string"},name:{type:"string"},profileImageUrl:{type:"string"},hasClaimedName:{type:"boolean"}},required:["address","name","profileImageUrl","hasClaimedName"]},message:{type:"string",nullable:!0}},required:["requestId","sender","receiver"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.FriendshipRequestEvent||(e.FriendshipRequestEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.SOCIAL_SERVICE},subType:{type:"string",const:t.Events.SubType.SocialService.FRIENDSHIP_ACCEPTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{requestId:{type:"string"},sender:{type:"object",properties:{address:{type:"string"},name:{type:"string"},profileImageUrl:{type:"string"},hasClaimedName:{type:"boolean"}},required:["address","name","profileImageUrl","hasClaimedName"]},receiver:{type:"object",properties:{address:{type:"string"},name:{type:"string"},profileImageUrl:{type:"string"},hasClaimedName:{type:"boolean"}},required:["address","name","profileImageUrl","hasClaimedName"]}},required:["requestId","sender","receiver"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.FriendshipAcceptedEvent||(e.FriendshipAcceptedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:t.Events.SubType.CreditsService.ON_DEMAND_CREDITS_GRANTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{creditsGranted:{type:"number",minimum:1},address:{type:"string"},granterAddress:{type:"string"}},required:["creditsGranted","address","granterAddress"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.CreditsOnDemandEvent||(e.CreditsOnDemandEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:t.Events.SubType.CreditsService.CREDITS_GOAL_COMPLETED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{goalId:{type:"string"},creditsObtained:{type:"number",minimum:0},seasonId:{type:"number",minimum:1},weekNumber:{type:"number",minimum:1},address:{type:"string"}},required:["goalId","creditsObtained","seasonId","weekNumber","address"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.CreditsGoalCompletedEvent||(e.CreditsGoalCompletedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:t.Events.SubType.CreditsService.COMPLETE_GOALS_REMINDER},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},seasonId:{type:"number",minimum:1},weekNumber:{type:"number",minimum:1},pendingGoalIds:{type:"array",items:{type:"string"},minItems:1}},required:["address","seasonId","weekNumber","pendingGoalIds"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.CreditsCompleteGoalsReminderEvent||(e.CreditsCompleteGoalsReminderEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:t.Events.SubType.CreditsService.USAGE_REMINDER},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},creditsAmount:{type:"number",minimum:1},expirationDate:{type:"string"},expirationDay:{type:"string"}},required:["address","creditsAmount","expirationDate","expirationDay"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.CreditsUsageReminderEvent||(e.CreditsUsageReminderEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:t.Events.SubType.CreditsService.NEW_SEASON_REMINDER},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{addresses:{type:"array",items:{type:"string"}},seasonName:{type:"string"},startDate:{type:"string"},endDate:{type:"string"}},required:["addresses","seasonName","startDate","endDate"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.CreditsNewSeasonReminderEvent||(e.CreditsNewSeasonReminderEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:t.Events.SubType.CreditsService.USAGE_24_HOURS_REMINDER},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},creditsAmount:{type:"number",minimum:1},expirationDate:{type:"string"}},required:["address","creditsAmount","expirationDate"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.CreditsUsage24HoursReminderEvent||(e.CreditsUsage24HoursReminderEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:t.Events.SubType.CreditsService.DO_NOT_MISS_OUT_REMINDER},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"}},required:["address"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.CreditsDoNotMissOutReminderEvent||(e.CreditsDoNotMissOutReminderEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.CREDITS_SERVICE},subType:{type:"string",const:t.Events.SubType.CreditsService.CLAIM_CREDITS_REMINDER},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},seasonId:{type:"number",minimum:1},weekNumber:{type:"number",minimum:1}},required:["address","seasonId","weekNumber"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.CreditsClaimReminderEvent||(e.CreditsClaimReminderEvent={}))})(lm)),lm}var cm={},mP;function U3(){return mP||(mP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CommunityStreamingEndedEvent=e.StreamingPlaceUpdatedEvent=e.StreamingTimeExceededEvent=e.StreamingKeyExpiredEvent=e.StreamingKeyRevokeEvent=e.StreamingKeyResetEvent=void 0;const a=He(),t=ln(),n=mf(),i={type:"object",properties:{title:{type:"string"},description:{type:"string"},position:{type:"string"},worldName:{type:"string",nullable:!0},isWorld:{type:"boolean"},url:{type:"string"},address:{type:"string"},image:{type:"string"}},required:["position","isWorld","url","title","description","address","image"],additionalProperties:!1};(function(o){o.schema=(0,n.createEventSchema)(t.Events.Type.STREAMING,t.Events.SubType.Streaming.STREAMING_KEY_RESET,i),o.validate=(0,a.generateLazyValidator)(o.schema)})(e.StreamingKeyResetEvent||(e.StreamingKeyResetEvent={})),(function(o){o.schema=(0,n.createEventSchema)(t.Events.Type.STREAMING,t.Events.SubType.Streaming.STREAMING_KEY_REVOKE,i),o.validate=(0,a.generateLazyValidator)(o.schema)})(e.StreamingKeyRevokeEvent||(e.StreamingKeyRevokeEvent={})),(function(o){o.schema=(0,n.createEventSchema)(t.Events.Type.STREAMING,t.Events.SubType.Streaming.STREAMING_KEY_EXPIRED,i),o.validate=(0,a.generateLazyValidator)(o.schema)})(e.StreamingKeyExpiredEvent||(e.StreamingKeyExpiredEvent={})),(function(o){o.schema=(0,n.createEventSchema)(t.Events.Type.STREAMING,t.Events.SubType.Streaming.STREAMING_TIME_EXCEEDED,i),o.validate=(0,a.generateLazyValidator)(o.schema)})(e.StreamingTimeExceededEvent||(e.StreamingTimeExceededEvent={})),(function(o){o.schema=(0,n.createEventSchema)(t.Events.Type.STREAMING,t.Events.SubType.Streaming.STREAMING_PLACE_UPDATED,i),o.validate=(0,a.generateLazyValidator)(o.schema)})(e.StreamingPlaceUpdatedEvent||(e.StreamingPlaceUpdatedEvent={})),(function(o){o.schema=(0,n.createEventSchema)(t.Events.Type.STREAMING,t.Events.SubType.Streaming.COMMUNITY_STREAMING_ENDED,{type:"object",properties:{communityId:{type:"string"},totalParticipants:{type:"number"}},required:["communityId","totalParticipants"],additionalProperties:!1}),o.validate=(0,a.generateLazyValidator)(o.schema)})(e.CommunityStreamingEndedEvent||(e.CommunityStreamingEndedEvent={}))})(cm)),cm}var dm={},hP;function B3(){return hP||(hP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.UserUnbannedFromSceneEvent=e.UserBannedFromSceneEvent=e.UserLeftRoomEvent=e.UserJoinedRoomEvent=e.RoomType=void 0;const a=He(),t=ln();var n;(function(i){i.PRIVATE_MESSAGE="private-message",i.VOICE_CHAT="voice-chat",i.COMMUNITY_VOICE_CHAT="community-voice-chat",i.ISLAND="island",i.SCENE="scene",i.WORLD="world",i.UNKNOWN="unknown"})(n=e.RoomType||(e.RoomType={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.COMMS},subType:{type:"string",const:t.Events.SubType.Comms.USER_JOINED_ROOM},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{parcel:{type:"string"},sceneId:{type:"string"},userAddress:{type:"string"},realmName:{type:"string"},islandName:{type:"string",nullable:!0},communityId:{type:"string",nullable:!0},voiceChatId:{type:"string",nullable:!0},isWorld:{type:"boolean"},roomType:{type:"string",enum:Object.values(n)}},required:["parcel","sceneId","userAddress","realmName","isWorld","roomType"]}},required:["type","subType","key","timestamp","metadata"]},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.UserJoinedRoomEvent||(e.UserJoinedRoomEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.COMMS},subType:{type:"string",const:t.Events.SubType.Comms.USER_LEFT_ROOM},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{userAddress:{type:"string"},realmName:{type:"string"},isWorld:{type:"boolean"},roomType:{type:"string",enum:Object.values(n)},sceneId:{type:"string",nullable:!0},islandName:{type:"string",nullable:!0},communityId:{type:"string",nullable:!0},voiceChatId:{type:"string",nullable:!0}},required:["isWorld","userAddress","realmName","roomType"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.UserLeftRoomEvent||(e.UserLeftRoomEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.COMMS},subType:{type:"string",const:t.Events.SubType.Comms.USER_BANNED_FROM_SCENE},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{placeTitle:{type:"string"},userAddress:{type:"string"}},required:["placeTitle","userAddress"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.UserBannedFromSceneEvent||(e.UserBannedFromSceneEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.COMMS},subType:{type:"string",const:t.Events.SubType.Comms.USER_UNBANNED_FROM_SCENE},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{placeTitle:{type:"string"},userAddress:{type:"string"}},required:["placeTitle","userAddress"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.UserUnbannedFromSceneEvent||(e.UserUnbannedFromSceneEvent={}))})(dm)),dm}var fm={},gP;function F3(){return gP||(gP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReferralNewTierReachedEvent=e.ReferralInvitedUsersAcceptedEvent=void 0;const a=He(),t=ln(),n=mf(),i={type:"object",properties:{title:{type:"string"},description:{type:"string"},address:{type:"string"},tier:{type:"number",minimum:1},url:{type:"string"},image:{type:"string"},invitedUserAddress:{type:"string"},invitedUsers:{type:"number",minimum:1},rarity:{type:"string",nullable:!0}},required:["address","tier","url","title","description","image","invitedUserAddress"],additionalProperties:!1};(function(o){o.schema=(0,n.createEventSchema)(t.Events.Type.REFERRAL,t.Events.SubType.Referral.REFERRAL_INVITED_USERS_ACCEPTED,i),o.validate=(0,a.generateLazyValidator)(o.schema)})(e.ReferralInvitedUsersAcceptedEvent||(e.ReferralInvitedUsersAcceptedEvent={})),(function(o){o.schema=(0,n.createEventSchema)(t.Events.Type.REFERRAL,t.Events.SubType.Referral.REFERRAL_NEW_TIER_REACHED,i),o.validate=(0,a.generateLazyValidator)(o.schema)})(e.ReferralNewTierReachedEvent||(e.ReferralNewTierReachedEvent={}))})(fm)),fm}var pm={},vP;function V3(){return vP||(vP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CommunityVoiceChatStartedEvent=e.CommunityOwnershipTransferredEvent=e.CommunityPostAddedEvent=e.CommunityInviteReceivedEvent=e.CommunityRequestToJoinAcceptedEvent=e.CommunityRequestToJoinReceivedEvent=e.CommunityMemberRemovedEvent=e.CommunityMemberBannedEvent=e.CommunityRenamedEvent=e.CommunityDeletedContentViolationEvent=e.CommunityDeletedEvent=void 0;const a=He(),t=ln();(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.COMMUNITY},subType:{type:"string",const:t.Events.SubType.Community.DELETED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{id:{type:"string"},name:{type:"string"},memberAddresses:{type:"array",items:{type:"string"}},thumbnailUrl:{type:"string"}},required:["id","name","memberAddresses","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.CommunityDeletedEvent||(e.CommunityDeletedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.COMMUNITY},subType:{type:"string",const:t.Events.SubType.Community.DELETED_CONTENT_VIOLATION},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{id:{type:"string"},name:{type:"string"},ownerAddress:{type:"string"},thumbnailUrl:{type:"string"}},required:["id","name","ownerAddress","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.CommunityDeletedContentViolationEvent||(e.CommunityDeletedContentViolationEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.COMMUNITY},subType:{type:"string",const:t.Events.SubType.Community.RENAMED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{id:{type:"string"},oldName:{type:"string"},newName:{type:"string"},memberAddresses:{type:"array",items:{type:"string"}},thumbnailUrl:{type:"string"}},required:["id","oldName","newName","memberAddresses","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.CommunityRenamedEvent||(e.CommunityRenamedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.COMMUNITY},subType:{type:"string",const:t.Events.SubType.Community.MEMBER_BANNED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{id:{type:"string"},name:{type:"string"},memberAddress:{type:"string"},thumbnailUrl:{type:"string"}},required:["id","name","memberAddress","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.CommunityMemberBannedEvent||(e.CommunityMemberBannedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.COMMUNITY},subType:{type:"string",const:t.Events.SubType.Community.MEMBER_REMOVED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{id:{type:"string"},name:{type:"string"},memberAddress:{type:"string"},thumbnailUrl:{type:"string"}},required:["id","name","memberAddress","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.CommunityMemberRemovedEvent||(e.CommunityMemberRemovedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.COMMUNITY},subType:{type:"string",const:t.Events.SubType.Community.REQUEST_TO_JOIN_RECEIVED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{communityId:{type:"string"},communityName:{type:"string"},memberAddress:{type:"string"},memberName:{type:"string"},thumbnailUrl:{type:"string"},addressesToNotify:{type:"array",items:{type:"string"}}},required:["communityId","communityName","memberAddress","memberName","thumbnailUrl","addressesToNotify"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.CommunityRequestToJoinReceivedEvent||(e.CommunityRequestToJoinReceivedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.COMMUNITY},subType:{type:"string",const:t.Events.SubType.Community.REQUEST_TO_JOIN_ACCEPTED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{communityId:{type:"string"},communityName:{type:"string"},memberAddress:{type:"string"},thumbnailUrl:{type:"string"}},required:["communityId","communityName","memberAddress","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.CommunityRequestToJoinAcceptedEvent||(e.CommunityRequestToJoinAcceptedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.COMMUNITY},subType:{type:"string",const:t.Events.SubType.Community.INVITE_RECEIVED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{communityId:{type:"string"},communityName:{type:"string"},memberAddress:{type:"string"},thumbnailUrl:{type:"string"}},required:["communityId","communityName","memberAddress","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.CommunityInviteReceivedEvent||(e.CommunityInviteReceivedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.COMMUNITY},subType:{type:"string",const:t.Events.SubType.Community.POST_ADDED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{communityId:{type:"string"},communityName:{type:"string"},thumbnailUrl:{type:"string"},postId:{type:"string"},authorAddress:{type:"string"},addressesToNotify:{type:"array",items:{type:"string"}}},required:["addressesToNotify","communityId","communityName","thumbnailUrl","postId","authorAddress"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.CommunityPostAddedEvent||(e.CommunityPostAddedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.COMMUNITY},subType:{type:"string",const:t.Events.SubType.Community.OWNERSHIP_TRANSFERRED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{communityId:{type:"string"},communityName:{type:"string"},oldOwnerAddress:{type:"string"},newOwnerAddress:{type:"string"},thumbnailUrl:{type:"string"}},required:["communityId","communityName","oldOwnerAddress","newOwnerAddress","thumbnailUrl"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.CommunityOwnershipTransferredEvent||(e.CommunityOwnershipTransferredEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.COMMUNITY},subType:{type:"string",const:t.Events.SubType.Community.VOICE_CHAT_STARTED},key:{type:"string"},timestamp:{type:"number",minimum:1},metadata:{type:"object",properties:{communityId:{type:"string"},communityName:{type:"string"},thumbnailUrl:{type:"string"},addressesToNotify:{type:"array",items:{type:"string"}}},required:["communityId","communityName","thumbnailUrl","addressesToNotify"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.CommunityVoiceChatStartedEvent||(e.CommunityVoiceChatStartedEvent={}))})(pm)),pm}var ym={},_P;function H3(){return _P||(_P=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PhotoTakenEvent=e.PhotoPrivacyChangedEvent=void 0;const a=He(),t=ln();(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.CAMERA},subType:{type:"string",const:t.Events.SubType.Camera.PHOTO_PRIVACY_CHANGED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{userAddress:{type:"string"},photoId:{type:"string"},isPublic:{type:"boolean"}},required:["userAddress","photoId","isPublic"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.PhotoPrivacyChangedEvent||(e.PhotoPrivacyChangedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.CAMERA},subType:{type:"string",const:t.Events.SubType.Camera.PHOTO_TAKEN},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{sceneId:{type:"string"},userAddress:{type:"string"},realm:{type:"string"},photoId:{type:"string"},isPublic:{type:"boolean"},users:{type:"array",items:{type:"object",properties:{address:{type:"string"},isEmoting:{type:"boolean"}},required:["address","isEmoting"],additionalProperties:!1}},placeId:{type:"string",nullable:!0}},required:["userAddress","realm","photoId","isPublic","users"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.PhotoTakenEvent||(e.PhotoTakenEvent={}))})(ym)),ym}var mm={},EP;function z3(){return EP||(EP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EventEndedEvent=e.EventCreatedEvent=e.EventStartsSoonEvent=e.EventStartedEvent=void 0;const a=He(),t=ln();(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.EVENT},subType:{type:"string",const:t.Events.SubType.Event.EVENT_STARTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{name:{type:"string"},image:{type:"string"},link:{type:"string"},communityId:{type:"string"},communityThumbnail:{type:"string",nullable:!0},title:{type:"string"},description:{type:"string"},attendee:{type:"string"}},required:["name","image","link"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.EventStartedEvent||(e.EventStartedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.EVENT},subType:{type:"string",const:t.Events.SubType.Event.EVENT_STARTS_SOON},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{name:{type:"string"},image:{type:"string"},link:{type:"string"},startsAt:{type:"string"},endsAt:{type:"string"},title:{type:"string"},description:{type:"string"},attendee:{type:"string"}},required:["name","image","link","startsAt","endsAt"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.EventStartsSoonEvent||(e.EventStartsSoonEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.EVENT},subType:{type:"string",const:t.Events.SubType.Event.EVENT_CREATED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{name:{type:"string"},image:{type:"string"},communityId:{type:"string"},communityName:{type:"string"},communityThumbnail:{type:"string",nullable:!0},title:{type:"string"},description:{type:"string"},attendee:{type:"string"}},required:["name","image"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.EventCreatedEvent||(e.EventCreatedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.EVENT},subType:{type:"string",const:t.Events.SubType.Event.EVENT_ENDED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{communityId:{type:"string",nullable:!0},totalAttendees:{type:"number"}},required:["totalAttendees"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.EventEndedEvent||(e.EventEndedEvent={}))})(mm)),mm}var hm={},bP;function W3(){return bP||(bP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.GovernanceCliffEndedEvent=e.GovernanceVotedOnBehalfEvent=e.GovernanceWhaleVoteEvent=e.GovernanceNewCommentOnProjectUpdatedEvent=e.GovernanceNewCommentOnProposalEvent=e.GovernanceVotingEndedVoterEvent=e.GovernanceAuthoredProposalFinishedEvent=e.GovernanceTenderPassedEvent=e.GovernancePitchPassedEvent=e.GovernanceCoauthorRequestedEvent=e.GovernanceProposalEnactedEvent=void 0;const a=He(),t=ln(),n=mf(),i={type:"object",properties:{proposalId:{type:"string"},proposalTitle:{type:"string"},title:{type:"string"},description:{type:"string"},link:{type:"string"},address:{type:"string"}},required:["proposalId","proposalTitle","title","description","link","address"],additionalProperties:!1};(function(o){o.schema=(0,n.createEventSchema)(t.Events.Type.GOVERNANCE,t.Events.SubType.Governance.PROPOSAL_ENACTED,i),o.validate=(0,a.generateLazyValidator)(o.schema)})(e.GovernanceProposalEnactedEvent||(e.GovernanceProposalEnactedEvent={})),(function(o){o.schema=(0,n.createEventSchema)(t.Events.Type.GOVERNANCE,t.Events.SubType.Governance.COAUTHOR_REQUESTED,i),o.validate=(0,a.generateLazyValidator)(o.schema)})(e.GovernanceCoauthorRequestedEvent||(e.GovernanceCoauthorRequestedEvent={})),(function(o){o.schema=(0,n.createEventSchema)(t.Events.Type.GOVERNANCE,t.Events.SubType.Governance.PITCH_PASSED,i),o.validate=(0,a.generateLazyValidator)(o.schema)})(e.GovernancePitchPassedEvent||(e.GovernancePitchPassedEvent={})),(function(o){o.schema=(0,n.createEventSchema)(t.Events.Type.GOVERNANCE,t.Events.SubType.Governance.TENDER_PASSED,i),o.validate=(0,a.generateLazyValidator)(o.schema)})(e.GovernanceTenderPassedEvent||(e.GovernanceTenderPassedEvent={})),(function(o){o.schema=(0,n.createEventSchema)(t.Events.Type.GOVERNANCE,t.Events.SubType.Governance.AUTHORED_PROPOSAL_FINISHED,i),o.validate=(0,a.generateLazyValidator)(o.schema)})(e.GovernanceAuthoredProposalFinishedEvent||(e.GovernanceAuthoredProposalFinishedEvent={})),(function(o){o.schema=(0,n.createEventSchema)(t.Events.Type.GOVERNANCE,t.Events.SubType.Governance.VOTING_ENDED_VOTER,i),o.validate=(0,a.generateLazyValidator)(o.schema)})(e.GovernanceVotingEndedVoterEvent||(e.GovernanceVotingEndedVoterEvent={})),(function(o){o.schema=(0,n.createEventSchema)(t.Events.Type.GOVERNANCE,t.Events.SubType.Governance.NEW_COMMENT_ON_PROPOSAL,i),o.validate=(0,a.generateLazyValidator)(o.schema)})(e.GovernanceNewCommentOnProposalEvent||(e.GovernanceNewCommentOnProposalEvent={})),(function(o){o.schema=(0,n.createEventSchema)(t.Events.Type.GOVERNANCE,t.Events.SubType.Governance.NEW_COMMENT_ON_PROJECT_UPDATED,i),o.validate=(0,a.generateLazyValidator)(o.schema)})(e.GovernanceNewCommentOnProjectUpdatedEvent||(e.GovernanceNewCommentOnProjectUpdatedEvent={})),(function(o){o.schema=(0,n.createEventSchema)(t.Events.Type.GOVERNANCE,t.Events.SubType.Governance.WHALE_VOTE,i),o.validate=(0,a.generateLazyValidator)(o.schema)})(e.GovernanceWhaleVoteEvent||(e.GovernanceWhaleVoteEvent={})),(function(o){o.schema=(0,n.createEventSchema)(t.Events.Type.GOVERNANCE,t.Events.SubType.Governance.VOTED_ON_BEHALF,i),o.validate=(0,a.generateLazyValidator)(o.schema)})(e.GovernanceVotedOnBehalfEvent||(e.GovernanceVotedOnBehalfEvent={})),(function(o){o.schema=(0,n.createEventSchema)(t.Events.Type.GOVERNANCE,t.Events.SubType.Governance.CLIFF_ENDED,i),o.validate=(0,a.generateLazyValidator)(o.schema)})(e.GovernanceCliffEndedEvent||(e.GovernanceCliffEndedEvent={}))})(hm)),hm}var gm={},wP;function G3(){return wP||(wP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WorldsMissingResourcesEvent=e.WorldsAccessRestrictedEvent=e.WorldsPermissionGrantedEvent=e.WorldsPermissionRevokedEvent=e.WorldsAccessRestoredEvent=e.WorldDeploymentEvent=void 0;const a=Dl(),t=He(),n=ln();(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.DEPLOYMENT},key:{type:"string"},timestamp:{type:"number",minimum:0},entity:{type:"object",properties:{entityId:{type:"string"},authChain:a.AuthChain.schema},additionalProperties:!0,required:["entityId","authChain"]},contentServerUrls:{type:"array",items:{type:"string"},nullable:!0},force:{type:"boolean",nullable:!0},animation:{type:"string",nullable:!0},lods:{type:"array",items:{type:"string"},nullable:!0}},required:["type","subType","key","timestamp","entity"],additionalProperties:!1},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.WorldDeploymentEvent||(e.WorldDeploymentEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.WORLDS_ACCESS_RESTORED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{title:{type:"string"},description:{type:"string"},url:{type:"string"},attendee:{type:"string"}},required:["title","description","url","attendee"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.WorldsAccessRestoredEvent||(e.WorldsAccessRestoredEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.WORLDS_PERMISSION_REVOKED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{title:{type:"string"},description:{type:"string"},world:{type:"string"},permissions:{type:"array",items:{type:"string"}},url:{type:"string"},address:{type:"string"}},required:["title","description","world","permissions","url","address"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.WorldsPermissionRevokedEvent||(e.WorldsPermissionRevokedEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.WORLDS_PERMISSION_GRANTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{title:{type:"string"},description:{type:"string"},world:{type:"string"},permissions:{type:"array",items:{type:"string"}},url:{type:"string"},address:{type:"string"}},required:["title","description","world","permissions","url","address"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.WorldsPermissionGrantedEvent||(e.WorldsPermissionGrantedEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.WORLDS_ACCESS_RESTRICTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{title:{type:"string"},description:{type:"string"},when:{type:"number"},address:{type:"string"}},required:["title","description","when","address"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.WorldsAccessRestrictedEvent||(e.WorldsAccessRestrictedEvent={})),(function(i){i.schema={type:"object",properties:{type:{type:"string",const:n.Events.Type.WORLD},subType:{type:"string",const:n.Events.SubType.Worlds.WORLDS_MISSING_RESOURCES},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{title:{type:"string"},description:{type:"string"},url:{type:"string"},when:{type:"number"},address:{type:"string"}},required:["title","description","url","when","address"],additionalProperties:!1}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.WorldsMissingResourcesEvent||(e.WorldsMissingResourcesEvent={}))})(gm)),gm}var TP;function K3(){return TP||(TP=1,(function(e){var a=fo&&fo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=fo&&fo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(ln(),e),t(N3(),e),t(C3(),e),t(j3(),e),t(L3(),e),t(D3(),e),t(q3(),e),t(k3(),e),t(U3(),e),t(B3(),e),t(F3(),e),t(V3(),e),t(H3(),e),t(z3(),e),t(W3(),e),t(G3(),e)})(fo)),fo}var SP;function Bb(){return SP||(SP=1,(function(e){var a=ao&&ao.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=ao&&ao.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(m3(),e),t(g3(),e),t(eq(),e),t(Db(),e),t(XD(),e),t(O3(),e),t(rq(),e),t(A3(),e),t(I3(),e),t(M3(),e),t(K3(),e)})(ao)),ao}var OP;function Y3(){return OP||(OP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WearableJson=void 0;const a=yf(),t=es(),n=Lb(),i=He(),o=Bb();(function(u){u.schema={type:"object",properties:{description:{type:"string"},rarity:Object.assign(Object.assign({},a.Rarity.schema),{nullable:!0}),name:{type:"string"},data:{type:"object",properties:{replaces:{type:"array",items:t.WearableCategory.schema},hides:{type:"array",items:t.WearableCategory.schema},tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:n.WearableRepresentation.schema,minItems:1},category:t.WearableCategory.schema,removesDefaultHiding:{type:"array",nullable:!0,items:o.HideableWearableCategory.schema},blockVrmExport:{type:"boolean",nullable:!0},outlineCompatible:{type:"boolean",nullable:!0}},required:["replaces","hides","tags","representations","category"]}},additionalProperties:!0,required:["description","name","data"]},u.validate=(0,i.generateLazyValidator)(u.schema)})(e.WearableJson||(e.WearableJson={}))})(fy)),fy}var AP;function X3(){return AP||(AP=1,(function(e){var a=io&&io.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=io&&io.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(p3(),e),t(Y3(),e)})(io)),io}var PP;function J3(){return PP||(PP=1,(function(e){var a=$a&&$a.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=$a&&$a.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(f3(),e),t(X3(),e)})($a)),$a}var po={},vm={},IP;function Q3(){return IP||(IP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Account=e.AccountSortBy=void 0;const a=He();(function(t){t.MOST_SALES="most_sales",t.MOST_PURCHASES="most_purchases",t.MOST_SPENT="most_spent",t.MOST_EARNED="most_earned",t.MOST_ROYALTIES="most_royalties",t.MOST_COLLECTIONS="most_collections"})(e.AccountSortBy||(e.AccountSortBy={})),(function(t){t.schema={type:"object",properties:{id:{type:"string"},address:{type:"string"},sales:{type:"integer"},purchases:{type:"integer"},spent:{type:"string"},earned:{type:"string"},royalties:{type:"string"},collections:{type:"number"}},required:["id","address","sales","purchases","spent","earned","royalties","collections"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Account||(e.Account={}))})(vm)),vm}var _m={},Em={},RP;function oq(){return RP||(RP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getChainId=e.ChainName=void 0;const a=He(),t=ui();var n;(function(o){o.ETHEREUM_MAINNET="Ethereum Mainnet",o.ETHEREUM_ROPSTEN="Ropsten",o.ETHEREUM_RINKEBY="Rinkeby",o.ETHEREUM_GOERLI="Goerli",o.ETHEREUM_KOVAN="Kovan",o.ETHEREUM_SEPOLIA="Sepolia",o.MATIC_MAINNET="Polygon",o.MATIC_MUMBAI="Mumbai",o.MATIC_AMOY="Amoy",o.AVALANCHE_MAINNET="Avalanche",o.BINANCE_MAINNET="Binance Smart Chain",o.ARBITRUM_MAINNET="Arbitrum",o.OPTIMISM_MAINNET="Optimism",o.FANTOM_MAINNET="Fantom"})(n=e.ChainName||(e.ChainName={}));function i(o){switch(o){case n.ETHEREUM_MAINNET:return t.ChainId.ETHEREUM_MAINNET;case n.ETHEREUM_ROPSTEN:return t.ChainId.ETHEREUM_ROPSTEN;case n.ETHEREUM_RINKEBY:return t.ChainId.ETHEREUM_RINKEBY;case n.ETHEREUM_GOERLI:return t.ChainId.ETHEREUM_GOERLI;case n.ETHEREUM_KOVAN:return t.ChainId.ETHEREUM_KOVAN;case n.ETHEREUM_SEPOLIA:return t.ChainId.ETHEREUM_SEPOLIA;case n.MATIC_MAINNET:return t.ChainId.MATIC_MAINNET;case n.MATIC_MUMBAI:return t.ChainId.MATIC_MUMBAI;case n.MATIC_AMOY:return t.ChainId.MATIC_AMOY;case n.AVALANCHE_MAINNET:return t.ChainId.AVALANCHE_MAINNET;case n.BINANCE_MAINNET:return t.ChainId.BSC_MAINNET;case n.ARBITRUM_MAINNET:return t.ChainId.ARBITRUM_MAINNET;case n.OPTIMISM_MAINNET:return t.ChainId.OPTIMISM_MAINNET;case n.FANTOM_MAINNET:return t.ChainId.FANTOM_MAINNET;default:return null}}e.getChainId=i,(function(o){o.schema={type:"string",enum:Object.values(o)},o.validate=(0,a.generateLazyValidator)(o.schema)})(n=e.ChainName||(e.ChainName={}))})(Em)),Em}var bm={},MP;function si(){return MP||(MP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Network=void 0;const a=He();(function(t){t.ETHEREUM="ETHEREUM",t.MATIC="MATIC",t.AVALANCHE="AVALANCHE",t.BSC="BINANCE SMART CHAIN",t.OPTIMISM="OPTIMISM",t.ARBITRUM="ARBITRUM",t.FANTOM="FANTOM"})(e.Network||(e.Network={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Network||(e.Network={}))})(bm)),bm}var NP;function ui(){return NP||(NP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getNetwork=e.getNetworkMapping=e.getURNProtocol=e.getChainName=e.ChainId=void 0;const a=He(),t=oq(),n=si();var i;(function(p){p[p.ETHEREUM_MAINNET=1]="ETHEREUM_MAINNET",p[p.ETHEREUM_ROPSTEN=3]="ETHEREUM_ROPSTEN",p[p.ETHEREUM_RINKEBY=4]="ETHEREUM_RINKEBY",p[p.ETHEREUM_GOERLI=5]="ETHEREUM_GOERLI",p[p.ETHEREUM_KOVAN=42]="ETHEREUM_KOVAN",p[p.ETHEREUM_SEPOLIA=11155111]="ETHEREUM_SEPOLIA",p[p.MATIC_MAINNET=137]="MATIC_MAINNET",p[p.MATIC_MUMBAI=80001]="MATIC_MUMBAI",p[p.MATIC_AMOY=80002]="MATIC_AMOY",p[p.BSC_MAINNET=56]="BSC_MAINNET",p[p.OPTIMISM_MAINNET=10]="OPTIMISM_MAINNET",p[p.ARBITRUM_MAINNET=42161]="ARBITRUM_MAINNET",p[p.FANTOM_MAINNET=250]="FANTOM_MAINNET",p[p.AVALANCHE_MAINNET=43114]="AVALANCHE_MAINNET"})(i=e.ChainId||(e.ChainId={}));function o(p){switch(p){case i.ETHEREUM_MAINNET:return t.ChainName.ETHEREUM_MAINNET;case i.ETHEREUM_ROPSTEN:return t.ChainName.ETHEREUM_ROPSTEN;case i.ETHEREUM_RINKEBY:return t.ChainName.ETHEREUM_RINKEBY;case i.ETHEREUM_GOERLI:return t.ChainName.ETHEREUM_GOERLI;case i.ETHEREUM_KOVAN:return t.ChainName.ETHEREUM_KOVAN;case i.ETHEREUM_SEPOLIA:return t.ChainName.ETHEREUM_SEPOLIA;case i.MATIC_MAINNET:return t.ChainName.MATIC_MAINNET;case i.MATIC_MUMBAI:return t.ChainName.MATIC_MUMBAI;case i.MATIC_AMOY:return t.ChainName.MATIC_AMOY;case i.BSC_MAINNET:return t.ChainName.BINANCE_MAINNET;case i.ARBITRUM_MAINNET:return t.ChainName.ARBITRUM_MAINNET;case i.OPTIMISM_MAINNET:return t.ChainName.OPTIMISM_MAINNET;case i.FANTOM_MAINNET:return t.ChainName.FANTOM_MAINNET;case i.AVALANCHE_MAINNET:return t.ChainName.AVALANCHE_MAINNET;default:return null}}e.getChainName=o;function u(p){switch(p){case i.ETHEREUM_MAINNET:return"ethereum";case i.ETHEREUM_ROPSTEN:return"ropsten";case i.ETHEREUM_RINKEBY:return"rinkeby";case i.ETHEREUM_GOERLI:return"goerli";case i.ETHEREUM_KOVAN:return"kovan";case i.ETHEREUM_SEPOLIA:return"sepolia";case i.MATIC_MAINNET:return"matic";case i.MATIC_MUMBAI:return"mumbai";case i.MATIC_AMOY:return"amoy";default:return""}}e.getURNProtocol=u;function c(p){const y={[n.Network.BSC]:i.BSC_MAINNET,[n.Network.OPTIMISM]:i.OPTIMISM_MAINNET,[n.Network.ARBITRUM]:i.ARBITRUM_MAINNET,[n.Network.FANTOM]:i.FANTOM_MAINNET,[n.Network.AVALANCHE]:i.AVALANCHE_MAINNET};switch(p){case i.ETHEREUM_MAINNET:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_MAINNET,[n.Network.MATIC]:i.MATIC_MAINNET},y);case i.ETHEREUM_ROPSTEN:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_ROPSTEN,[n.Network.MATIC]:i.MATIC_MUMBAI},y);case i.ETHEREUM_RINKEBY:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_RINKEBY,[n.Network.MATIC]:i.MATIC_MUMBAI},y);case i.ETHEREUM_GOERLI:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_GOERLI,[n.Network.MATIC]:i.MATIC_MUMBAI},y);case i.ETHEREUM_KOVAN:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_KOVAN,[n.Network.MATIC]:i.MATIC_MUMBAI},y);case i.ETHEREUM_SEPOLIA:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_SEPOLIA,[n.Network.MATIC]:i.MATIC_AMOY},y);case i.MATIC_MAINNET:return Object.assign({[n.Network.ETHEREUM]:i.MATIC_MAINNET,[n.Network.MATIC]:i.MATIC_MAINNET},y);case i.MATIC_MUMBAI:return Object.assign({[n.Network.ETHEREUM]:i.MATIC_MUMBAI,[n.Network.MATIC]:i.MATIC_MUMBAI},y);case i.MATIC_AMOY:return Object.assign({[n.Network.ETHEREUM]:i.MATIC_AMOY,[n.Network.MATIC]:i.MATIC_AMOY},y);default:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_MAINNET,[n.Network.MATIC]:i.MATIC_MAINNET},y)}}e.getNetworkMapping=c;function f(p){switch(p){case i.ETHEREUM_MAINNET:case i.ETHEREUM_ROPSTEN:case i.ETHEREUM_GOERLI:case i.ETHEREUM_KOVAN:case i.ETHEREUM_RINKEBY:case i.ETHEREUM_SEPOLIA:return n.Network.ETHEREUM;case i.MATIC_MAINNET:case i.MATIC_MUMBAI:case i.MATIC_AMOY:return n.Network.MATIC;case i.BSC_MAINNET:return n.Network.BSC;case i.OPTIMISM_MAINNET:return n.Network.OPTIMISM;case i.ARBITRUM_MAINNET:return n.Network.ARBITRUM;case i.FANTOM_MAINNET:return n.Network.FANTOM;case i.AVALANCHE_MAINNET:return n.Network.AVALANCHE}}e.getNetwork=f,(function(p){p.schema={type:"number",enum:Object.values(p)},p.validate=(0,a.generateLazyValidator)(p.schema)})(i=e.ChainId||(e.ChainId={}))})(_m)),_m}var wm={},CP;function Z3(){return CP||(CP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Collection=e.CollectionSortBy=void 0;const a=He(),t=ui(),n=si();(function(i){i.NEWEST="newest",i.NAME="name",i.RECENTLY_REVIEWED="recently_reviewed",i.RECENTLY_LISTED="recently_listed",i.SIZE="size"})(e.CollectionSortBy||(e.CollectionSortBy={})),(function(i){i.schema={type:"object",properties:{urn:{type:"string"},creator:{type:"string"},name:{type:"string"},contractAddress:{type:"string"},size:{type:"integer"},isOnSale:{type:"boolean"},createdAt:{type:"integer"},updatedAt:{type:"integer"},reviewedAt:{type:"integer"},network:n.Network.schema,chainId:t.ChainId.schema,firstListedAt:{type:"integer",nullable:!0}},required:["urn","creator","name","contractAddress","isOnSale","size","createdAt","updatedAt","reviewedAt","network","chainId"]},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.Collection||(e.Collection={}))})(wm)),wm}var Tm={},Sm={},jP;function hf(){return jP||(jP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NFTCategory=void 0;const a=He();(function(t){t.PARCEL="parcel",t.ESTATE="estate",t.WEARABLE="wearable",t.ENS="ens",t.EMOTE="emote"})(e.NFTCategory||(e.NFTCategory={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.NFTCategory||(e.NFTCategory={}))})(Sm)),Sm}var LP;function $3(){return LP||(LP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Contract=e.ContractSortBy=void 0;const a=He(),t=ui(),n=si(),i=hf();(function(o){o.NAME="name"})(e.ContractSortBy||(e.ContractSortBy={})),(function(o){o.schema={type:"object",properties:{name:{type:"string"},address:{type:"string"},category:i.NFTCategory.schema,network:n.Network.schema,chainId:t.ChainId.schema},required:["name","address","category","network","chainId"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.Contract||(e.Contract={}))})(Tm)),Tm}var Om={},Am={},DP;function sq(){return DP||(DP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NFT=e.NFTSortBy=void 0;const a=He(),t=ui(),n=Bb(),i=si(),o=hf(),u=yf(),c=es();(function(f){f.NAME="name",f.NEWEST="newest",f.RECENTLY_LISTED="recently_listed",f.RECENTLY_SOLD="recently_sold",f.CHEAPEST="cheapest",f.RENTAL_LISTING_DATE="rental_listing_date",f.RENTAL_DATE="rented_date",f.MAX_RENTAL_PRICE="max_rental_price",f.MIN_RENTAL_PRICE="min_rental_price"})(e.NFTSortBy||(e.NFTSortBy={})),(function(f){f.schema={type:"object",properties:{id:{type:"string"},tokenId:{type:"string"},contractAddress:{type:"string"},activeOrderId:{type:"string",nullable:!0},utility:{type:"string",nullable:!0},openRentalId:{type:"string",nullable:!0},owner:{type:"string"},name:{type:"string"},image:{type:"string"},url:{type:"string"},data:{type:"object",nullable:!1,properties:{parcel:{type:"object",properties:{description:{type:["string"],nullable:!0},x:{type:"string"},y:{type:"string"},estate:{type:"object",properties:{tokenId:{type:"string"},name:{type:"string"}},required:["tokenId","name"],nullable:!0}},required:["description","x","y","estate"],nullable:!0},estate:{type:"object",properties:{description:{type:["string"],nullable:!0},size:{type:"integer"},parcels:{type:"array",items:{type:"object",properties:{x:{type:"number"},y:{type:"number"}},required:["x","y"]}}},required:["description","size","parcels"],nullable:!0},wearable:{type:"object",properties:{bodyShapes:{type:"array",items:n.BodyShape.schema},category:c.WearableCategory.schema,description:{type:"string"},rarity:u.Rarity.schema,isSmart:{type:"boolean"}},required:["bodyShapes","category","description","rarity","isSmart"],nullable:!0},ens:{type:"object",properties:{subdomain:{type:"string"}},required:["subdomain"],nullable:!0},emote:{type:"object",properties:{bodyShapes:{type:"array",items:n.BodyShape.schema},category:n.EmoteCategory.schema,description:{type:"string"},rarity:u.Rarity.schema,loop:{type:"boolean"},hasSound:{type:"boolean"},hasGeometry:{type:"boolean"},outcomeType:{type:"string",nullable:!0}},required:["bodyShapes","category","description","rarity","loop"],nullable:!0}},required:[]},issuedId:{type:"string",nullable:!0},itemId:{type:"string",nullable:!0},category:o.NFTCategory.schema,network:i.Network.schema,chainId:t.ChainId.schema,createdAt:{type:"integer"},updatedAt:{type:"integer"},soldAt:{type:"integer"},urn:{type:"string",nullable:!0}},required:["id","tokenId","contractAddress","activeOrderId","openRentalId","owner","name","image","url","data","issuedId","itemId","category","network","chainId","createdAt","updatedAt","soldAt"]},f.validate=(0,a.generateLazyValidator)(f.schema)})(e.NFT||(e.NFT={}))})(Am)),Am}var qP;function x3(){return qP||(qP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Item=e.ItemSortBy=void 0;const a=He(),t=ui(),n=si(),i=sq(),o=hf();(function(u){u.NAME="name",u.NEWEST="newest",u.RECENTLY_REVIEWED="recently_reviewed",u.RECENTLY_SOLD="recently_sold",u.RECENTLY_LISTED="recently_listed",u.CHEAPEST="cheapest"})(e.ItemSortBy||(e.ItemSortBy={})),(function(u){u.schema={type:"object",properties:{id:{type:"string"},name:{type:"string"},thumbnail:{type:"string"},url:{type:"string"},category:o.NFTCategory.schema,contractAddress:{type:"string"},itemId:{type:"string"},rarity:{type:"string"},price:{type:"string"},available:{type:"integer"},isOnSale:{type:"boolean"},creator:{type:"string"},beneficiary:{type:"string",nullable:!0},tradeId:{type:"string",nullable:!0},tradeContractAddress:{type:"string",nullable:!0},data:i.NFT.schema.properties.data,network:n.Network.schema,chainId:t.ChainId.schema,urn:{type:"string"},createdAt:{type:"integer"},updatedAt:{type:"integer"},reviewedAt:{type:"integer"},soldAt:{type:"integer"},firstListedAt:{type:"integer",nullable:!0},picks:{type:"object",properties:{pickedByUser:{type:"boolean",nullable:!0},count:{type:"integer"}},required:["count"],nullable:!0},minPrice:{type:"string",nullable:!0},utility:{type:"string",nullable:!0},minListingPrice:{type:"string",nullable:!0},maxListingPrice:{type:"string",nullable:!0},listings:{type:"integer",nullable:!0},owners:{type:"integer",nullable:!0},tradeExpiresAt:{type:"integer",nullable:!0}},required:["id","name","thumbnail","url","category","contractAddress","itemId","rarity","price","available","isOnSale","creator","data","network","chainId","createdAt","updatedAt","soldAt"]},u.validate=(0,a.generateLazyValidator)(u.schema)})(e.Item||(e.Item={}))})(Om)),Om}var Pm={},kP;function Fb(){return kP||(kP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ListingStatus=void 0;const a=He();(function(t){t.OPEN="open",t.SOLD="sold",t.CANCELLED="cancelled"})(e.ListingStatus||(e.ListingStatus={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.ListingStatus||(e.ListingStatus={}))})(Pm)),Pm}var Im={},UP;function eF(){return UP||(UP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MetaTransaction=void 0;const a=He();(function(t){t.schema={type:"object",properties:{from:{type:"string"},params:{type:"array",items:[{type:"string"},{type:"string"}],additionalItems:!1,minItems:2}},additionalProperties:!1,required:["from","params"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.MetaTransaction||(e.MetaTransaction={}))})(Im)),Im}var Rm={},BP;function tF(){return BP||(BP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Mint=e.MintSortBy=void 0;const a=He(),t=ui(),n=si();(function(i){i.RECENTLY_MINTED="recently_minted",i.MOST_EXPENSIVE="most_expensive"})(e.MintSortBy||(e.MintSortBy={})),(function(i){i.schema={type:"object",properties:{id:{type:"string"},creator:{type:"string"},beneficiary:{type:"string"},minter:{type:"string"},price:{type:"string",nullable:!0},contractAddress:{type:"string"},tokenId:{type:"string"},itemId:{type:"string"},issuedId:{type:"string"},timestamp:{type:"integer"},network:n.Network.schema,chainId:t.ChainId.schema},required:["id","creator","beneficiary","minter","itemId","tokenId","issuedId","contractAddress","price","timestamp","network","chainId"]},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.Mint||(e.Mint={}))})(Rm)),Rm}var Mm={},FP;function rF(){return FP||(FP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CatalogSortDirection=e.CatalogSortBy=void 0,(function(a){a.NEWEST="newest",a.RECENTLY_SOLD="recently_sold",a.CHEAPEST="cheapest",a.MOST_EXPENSIVE="most_expensive",a.RECENTLY_LISTED="recently_listed"})(e.CatalogSortBy||(e.CatalogSortBy={})),(function(a){a.ASC="asc",a.DESC="desc"})(e.CatalogSortDirection||(e.CatalogSortDirection={}))})(Mm)),Mm}var Nm={},VP;function nF(){return VP||(VP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Order=e.OrderSortBy=void 0;const a=He(),t=ui(),n=Fb(),i=si();(function(o){o.RECENTLY_LISTED="recently_listed",o.RECENTLY_UPDATED="recently_updated",o.CHEAPEST="cheapest",o.ISSUED_ID_ASC="issued_id_asc",o.ISSUED_ID_DESC="issued_id_desc",o.OLDEST="oldest"})(e.OrderSortBy||(e.OrderSortBy={})),(function(o){o.schema={type:"object",properties:{id:{type:"string"},marketplaceAddress:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},owner:{type:"string"},buyer:{type:["string"],nullable:!0},price:{type:"string"},status:n.ListingStatus.schema,network:i.Network.schema,chainId:t.ChainId.schema,expiresAt:{type:"integer"},createdAt:{type:"integer"},updatedAt:{type:"integer"},issuedId:{type:"string"},tradeId:{type:"string",nullable:!0}},required:["id","marketplaceAddress","contractAddress","tokenId","owner","buyer","price","status","network","chainId","expiresAt","createdAt","updatedAt"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.Order||(e.Order={}))})(Nm)),Nm}var Cm={},HP;function iF(){return HP||(HP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProviderType=void 0;const a=He();(function(t){t.INJECTED="injected",t.MAGIC="magic",t.MAGIC_TEST="magic_test",t.FORTMATIC="formatic",t.NETWORK="network",t.WALLET_CONNECT="wallet_connect",t.WALLET_CONNECT_V2="wallet_connect_v2",t.WALLET_LINK="wallet_link",t.METAMASK_MOBILE="metamask_mobile",t.AUTH_SERVER="auth_server"})(e.ProviderType||(e.ProviderType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.ProviderType||(e.ProviderType={}))})(Cm)),Cm}var jm={},zP;function uq(){return zP||(zP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SaleType=void 0;const a=He();(function(t){t.ORDER="order",t.BID="bid",t.MINT="mint"})(e.SaleType||(e.SaleType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.SaleType||(e.SaleType={}))})(jm)),jm}var Lm={},WP;function aF(){return WP||(WP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Sale=e.SaleSortBy=void 0;const a=He(),t=ui(),n=uq(),i=si();(function(o){o.RECENTLY_SOLD="recently_sold",o.MOST_EXPENSIVE="most_expensive"})(e.SaleSortBy||(e.SaleSortBy={})),(function(o){o.schema={type:"object",properties:{id:{type:"string"},type:n.SaleType.schema,buyer:{type:"string"},seller:{type:"string"},price:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},itemId:{type:"string"},txHash:{type:"string"},timestamp:{type:"integer"},network:i.Network.schema,chainId:t.ChainId.schema},required:["id","buyer","seller","itemId","tokenId","price","contractAddress","timestamp","txHash","network","chainId"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.Sale||(e.Sale={}))})(Lm)),Lm}var Dm={},GP;function oF(){return GP||(GP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.RentalListingCreation=e.PeriodCreation=e.RentalsListingsSortBy=e.RentalsListingsFilterByCategory=e.RentalsListingSortDirection=e.RentalStatus=void 0;const a=He(),t=ui(),n=si();(function(o){o.OPEN="open",o.CANCELLED="cancelled",o.EXECUTED="executed",o.CLAIMED="claimed"})(e.RentalStatus||(e.RentalStatus={})),(function(o){o.ASC="asc",o.DESC="desc"})(e.RentalsListingSortDirection||(e.RentalsListingSortDirection={})),(function(o){o.PARCEL="parcel",o.ESTATE="estate"})(e.RentalsListingsFilterByCategory||(e.RentalsListingsFilterByCategory={})),(function(o){o.LAND_CREATION_DATE="land_creation_date",o.RENTAL_LISTING_DATE="rental_listing_date",o.RENTAL_DATE="rented_date",o.NAME="name",o.MAX_RENTAL_PRICE="max_rental_price",o.MIN_RENTAL_PRICE="min_rental_price"})(e.RentalsListingsSortBy||(e.RentalsListingsSortBy={}));var i;(function(o){o.schema={type:"object",properties:{minDays:{type:"integer",minimum:0,maximum:2147483647},maxDays:{type:"integer",minimum:0,maximum:2147483647},pricePerDay:{type:"string",pattern:"^[0-9]+$"}},additionalProperties:!1,required:["minDays","maxDays","pricePerDay"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(i=e.PeriodCreation||(e.PeriodCreation={})),(function(o){o.schema={type:"object",properties:{network:n.Network.schema,chainId:t.ChainId.schema,expiration:{type:"number",minimum:0},signature:{type:"string",minLength:1},tokenId:{type:"string",minLength:1},nonces:{type:"array",minItems:3,maxItems:3,items:{minLength:1,type:"string",pattern:"^[0-9]+$"}},contractAddress:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"},rentalContractAddress:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"},periods:{type:"array",minItems:1,maxItems:100,uniqueItems:!0,items:i.schema},target:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"}},additionalProperties:!1,required:["network","chainId","expiration","signature","nonces","tokenId","contractAddress","rentalContractAddress","periods","target"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.RentalListingCreation||(e.RentalListingCreation={}))})(Dm)),Dm}var qm={},KP;function sF(){return KP||(KP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AnalyticsDayDataSortBy=void 0,(function(a){a.DATE="date",a.MOST_SALES="most_sales"})(e.AnalyticsDayDataSortBy||(e.AnalyticsDayDataSortBy={}))})(qm)),qm}var km={},YP;function uF(){return YP||(YP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Store=void 0;const a=He();(function(t){t.schema={type:"object",properties:{id:{type:"string"},version:{type:"number"},owner:{type:"string"},description:{type:"string"},links:{type:"array",items:{type:"object",properties:{name:{type:"string"},url:{type:"string"}},required:["name","url"]}},images:{type:"array",items:{type:"object",properties:{name:{type:"string"},file:{type:"string"}},required:["name","file"]}}},required:["id","version","owner","description","links","images"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Store||(e.Store={}))})(km)),km}var Um={},XP;function lF(){return XP||(XP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.GenderFilterOption=e.WearableGender=void 0;const a=He();(function(t){t.MALE="male",t.FEMALE="female"})(e.WearableGender||(e.WearableGender={})),(function(t){t.MALE="male",t.FEMALE="female",t.UNISEX="unisex"})(e.GenderFilterOption||(e.GenderFilterOption={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.WearableGender||(e.WearableGender={}))})(Um)),Um}var Bm={},JP;function cF(){return JP||(JP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.World=e.isInsideWorldLimits=e.getWorld=void 0;const a=He();function t(){return{validWorldRanges:[{xMin:-150,yMin:-150,xMax:150,yMax:150},{xMin:62,yMin:151,xMax:162,yMax:158},{xMin:151,yMin:144,xMax:162,yMax:150},{xMin:151,yMin:59,xMax:163,yMax:143}]}}e.getWorld=t;function n(i,o){const u=t().validWorldRanges;for(const c of u)if(i>=c.xMin&&i<=c.xMax&&o>=c.yMin&&o<=c.yMax)return!0;return!1}e.isInsideWorldLimits=n,(function(i){i.schema={type:"object",required:["validWorldRanges"],properties:{validWorldRanges:{type:"array",default:[{xMin:-150,yMin:-150,xMax:150,yMax:150}],items:{type:"object",required:["xMin","yMin","xMax","yMax"],properties:{xMin:{type:"integer"},yMin:{type:"integer"},xMax:{type:"integer"},yMax:{type:"integer"}}}}},additionalProperties:!1},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.World||(e.World={}))})(Bm)),Bm}var Fm={},QP;function dF(){return QP||(QP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Bid=e.BidSortBy=void 0;const a=He(),t=ui(),n=Fb(),i=si();(function(o){o.RECENTLY_OFFERED="recently_offered",o.RECENTLY_UPDATED="recently_updated",o.MOST_EXPENSIVE="most_expensive"})(e.BidSortBy||(e.BidSortBy={})),(function(o){const u={properties:{id:{type:"string"},bidder:{type:"string"},seller:{type:"string"},price:{type:"string"},fingerprint:{type:"string"},status:n.ListingStatus.schema,contractAddress:{type:"string"},network:i.Network.schema,chainId:t.ChainId.schema,expiresAt:{type:"integer"},createdAt:{type:"integer"},updatedAt:{type:"integer"}},required:["id","bidder","seller","price","fingerprint","status","contractAddress","network","chainId","expiresAt","createdAt","updatedAt"]};o.schema={type:"object",required:[],oneOf:[{properties:Object.assign(Object.assign({},u.properties),{tradeId:{type:"string"},tokenId:{type:"string"}}),required:[...u.required,"tradeId","tokenId"]},{type:"object",properties:Object.assign(Object.assign({},u.properties),{tradeId:{type:"string"},itemId:{type:"string"}}),required:[...u.required,"tradeId","itemId"]},{type:"object",properties:Object.assign(Object.assign({},u.properties),{bidAddress:{type:"string"},blockchainId:{type:"string"},blockNumber:{type:"string"},tokenId:{type:"string"}}),required:[...u.required,"bidAddress","blockchainId","blockNumber","tokenId"]}]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.Bid||(e.Bid={}))})(Fm)),Fm}var Vm={},ZP;function fF(){return ZP||(ZP=1,Object.defineProperty(Vm,"__esModule",{value:!0})),Vm}var Hm={},$P;function pF(){return $P||($P=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TradeAssetDirection=e.TradeAssetType=e.TradeType=void 0,(function(a){a.BID="bid",a.PUBLIC_NFT_ORDER="public_nft_order",a.PUBLIC_ITEM_ORDER="public_item_order"})(e.TradeType||(e.TradeType={})),(function(a){a[a.ERC20=1]="ERC20",a[a.USD_PEGGED_MANA=2]="USD_PEGGED_MANA",a[a.ERC721=3]="ERC721",a[a.COLLECTION_ITEM=4]="COLLECTION_ITEM"})(e.TradeAssetType||(e.TradeAssetType={})),(function(a){a.SENT="sent",a.RECEIVED="received"})(e.TradeAssetDirection||(e.TradeAssetDirection={}))})(Hm)),Hm}var yo={},zm={},xP;function yF(){return xP||(xP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewCamera=void 0;const a=He();(function(t){t.STATIC="static",t.INTERACTIVE="interactive"})(e.PreviewCamera||(e.PreviewCamera={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewCamera||(e.PreviewCamera={}))})(zm)),zm}var Wm={},eI;function mF(){return eI||(eI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewUnityMode=void 0,(function(a){a.AUTH="authentication",a.BUILDER="builder",a.MARKETPLACE="marketplace",a.PROFILE="profile",a.CONFIG="configurator"})(e.PreviewUnityMode||(e.PreviewUnityMode={}))})(Wm)),Wm}var Gm={},tI;function hF(){return tI||(tI=1,Object.defineProperty(Gm,"__esModule",{value:!0})),Gm}var Km={},rI;function gF(){return rI||(rI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewEmoteEventType=void 0;const a=He();(function(t){t.ANIMATION_PLAY="animation_play",t.ANIMATION_PAUSE="animation_pause",t.ANIMATION_LOOP="animation_loop",t.ANIMATION_END="animation_end",t.ANIMATION_PLAYING="animation_playing"})(e.PreviewEmoteEventType||(e.PreviewEmoteEventType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewEmoteEventType||(e.PreviewEmoteEventType={}))})(Km)),Km}var Ym={},nI;function vF(){return nI||(nI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewEmote=void 0;const a=He();(function(t){t.IDLE="idle",t.WALK="walk",t.RUN="run",t.JUMP="jump",t.CLAP="clap",t.DAB="dab",t.DANCE="dance",t.FASHION="fashion",t.FASHION_2="fashion-2",t.FASHION_3="fashion-3",t.FASHION_4="fashion-4",t.LOVE="love",t.MONEY="money",t.FIST_PUMP="fist-pump",t.HEAD_EXPLODE="head-explode",t.WAVE="wave"})(e.PreviewEmote||(e.PreviewEmote={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewEmote||(e.PreviewEmote={}))})(Ym)),Ym}var Xm={},iI;function _F(){return iI||(iI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.sendMessage=e.PreviewRenderer=e.PreviewMessageType=void 0;const a=He();(function(n){n.READY="ready",n.LOAD="load",n.ERROR="error",n.UPDATE="update",n.CONTROLLER_REQUEST="controller_request",n.CONTROLLER_RESPONSE="controller_response",n.EMOTE_EVENT="emote_event"})(e.PreviewMessageType||(e.PreviewMessageType={})),(function(n){n.BABYLON="babylon",n.UNITY="unity"})(e.PreviewRenderer||(e.PreviewRenderer={})),(function(n){n.schema={type:"string",enum:Object.values(n)},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.PreviewMessageType||(e.PreviewMessageType={}));const t=(n,i,o,u="*")=>{const c={type:i,payload:o};n.postMessage(c,u)};e.sendMessage=t})(Xm)),Xm}var Jm={},aI;function EF(){return aI||(aI=1,Object.defineProperty(Jm,"__esModule",{value:!0})),Jm}var Qm={},oI;function bF(){return oI||(oI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewProjection=void 0;const a=He();(function(t){t.ORTHOGRAPHIC="orthographic",t.PERSPECTIVE="perspective"})(e.PreviewProjection||(e.PreviewProjection={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewProjection||(e.PreviewProjection={}))})(Qm)),Qm}var Zm={},sI;function wF(){return sI||(sI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewType=void 0;const a=He();(function(t){t.TEXTURE="texture",t.WEARABLE="wearable",t.AVATAR="avatar"})(e.PreviewType||(e.PreviewType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewType||(e.PreviewType={}))})(Zm)),Zm}var $m={},uI;function TF(){return uI||(uI=1,Object.defineProperty($m,"__esModule",{value:!0})),$m}var xm={},lI;function SF(){return lI||(lI=1,Object.defineProperty(xm,"__esModule",{value:!0})),xm}var eh={},cI;function OF(){return cI||(cI=1,Object.defineProperty(eh,"__esModule",{value:!0})),eh}var th={},dI;function AF(){return dI||(dI=1,Object.defineProperty(th,"__esModule",{value:!0})),th}var rh={},fI;function PF(){return fI||(fI=1,Object.defineProperty(rh,"__esModule",{value:!0})),rh}var nh={},pI;function IF(){return pI||(pI=1,Object.defineProperty(nh,"__esModule",{value:!0})),nh}var ih={},yI;function RF(){return yI||(yI=1,Object.defineProperty(ih,"__esModule",{value:!0})),ih}var ah={},mI;function MF(){return mI||(mI=1,Object.defineProperty(ah,"__esModule",{value:!0})),ah}var hI;function NF(){return hI||(hI=1,(function(e){var a=yo&&yo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=yo&&yo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(yF(),e),t(mF(),e),t(hF(),e),t(gF(),e),t(vF(),e),t(_F(),e),t(EF(),e),t(bF(),e),t(wF(),e),t(TF(),e),t(SF(),e),t(OF(),e),t(AF(),e),t(PF(),e),t(IF(),e),t(RF(),e),t(MF(),e)})(yo)),yo}var mo={},Bu={},gI;function CF(){if(gI)return Bu;gI=1,Object.defineProperty(Bu,"__esModule",{value:!0}),Bu.isSysLink=void 0;const e=a=>a!==null&&typeof a=="object"&&"sys"in a&&"id"in a.sys;return Bu.isSysLink=e,Bu}var Fu={},vI;function jF(){if(vI)return Fu;vI=1,Object.defineProperty(Fu,"__esModule",{value:!0}),Fu.ContentfulLocale=void 0;var e;return(function(a){a.enUS="en-US",a.es="es",a.zh="zh"})(e||(e={})),Fu.ContentfulLocale=e,Fu}var oh={},_I;function LF(){return _I||(_I=1,Object.defineProperty(oh,"__esModule",{value:!0})),oh}var EI;function DF(){return EI||(EI=1,(function(e){var a=mo&&mo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=mo&&mo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(CF(),e),t(jF(),e),t(LF(),e)})(mo)),mo}var bI;function qF(){return bI||(bI=1,(function(e){var a=po&&po.__createBinding||(Object.create?(function(K,ae,_e,be){be===void 0&&(be=_e);var ye=Object.getOwnPropertyDescriptor(ae,_e);(!ye||("get"in ye?!ae.__esModule:ye.writable||ye.configurable))&&(ye={enumerable:!0,get:function(){return ae[_e]}}),Object.defineProperty(K,be,ye)}):(function(K,ae,_e,be){be===void 0&&(be=_e),K[be]=ae[_e]})),t=po&&po.__exportStar||function(K,ae){for(var _e in K)_e!=="default"&&!Object.prototype.hasOwnProperty.call(ae,_e)&&a(ae,K,_e)};Object.defineProperty(e,"__esModule",{value:!0}),e.isInsideWorldLimits=e.getWorld=e.World=e.GenderFilterOption=e.WearableGender=e.Store=e.AnalyticsDayDataSortBy=e.PeriodCreation=e.RentalListingCreation=e.RentalsListingsSortBy=e.RentalsListingsFilterByCategory=e.RentalsListingSortDirection=e.RentalStatus=e.SaleSortBy=e.Sale=e.SaleType=e.Rarity=e.ProviderType=e.OrderSortBy=e.Order=e.CatalogSortDirection=e.CatalogSortBy=e.NFTSortBy=e.NFT=e.NFTCategory=e.Network=e.MintSortBy=e.Mint=e.MetaTransaction=e.ListingStatus=e.ItemSortBy=e.Item=e.ContractSortBy=e.Contract=e.CollectionSortBy=e.Collection=e.getChainId=e.ChainName=e.getURNProtocol=e.getChainName=e.ChainId=e.AccountSortBy=e.Account=void 0;var n=Q3();Object.defineProperty(e,"Account",{enumerable:!0,get:function(){return n.Account}}),Object.defineProperty(e,"AccountSortBy",{enumerable:!0,get:function(){return n.AccountSortBy}});var i=ui();Object.defineProperty(e,"ChainId",{enumerable:!0,get:function(){return i.ChainId}}),Object.defineProperty(e,"getChainName",{enumerable:!0,get:function(){return i.getChainName}}),Object.defineProperty(e,"getURNProtocol",{enumerable:!0,get:function(){return i.getURNProtocol}});var o=oq();Object.defineProperty(e,"ChainName",{enumerable:!0,get:function(){return o.ChainName}}),Object.defineProperty(e,"getChainId",{enumerable:!0,get:function(){return o.getChainId}});var u=Z3();Object.defineProperty(e,"Collection",{enumerable:!0,get:function(){return u.Collection}}),Object.defineProperty(e,"CollectionSortBy",{enumerable:!0,get:function(){return u.CollectionSortBy}});var c=$3();Object.defineProperty(e,"Contract",{enumerable:!0,get:function(){return c.Contract}}),Object.defineProperty(e,"ContractSortBy",{enumerable:!0,get:function(){return c.ContractSortBy}});var f=x3();Object.defineProperty(e,"Item",{enumerable:!0,get:function(){return f.Item}}),Object.defineProperty(e,"ItemSortBy",{enumerable:!0,get:function(){return f.ItemSortBy}});var p=Fb();Object.defineProperty(e,"ListingStatus",{enumerable:!0,get:function(){return p.ListingStatus}});var y=eF();Object.defineProperty(e,"MetaTransaction",{enumerable:!0,get:function(){return y.MetaTransaction}});var m=tF();Object.defineProperty(e,"Mint",{enumerable:!0,get:function(){return m.Mint}}),Object.defineProperty(e,"MintSortBy",{enumerable:!0,get:function(){return m.MintSortBy}});var g=si();Object.defineProperty(e,"Network",{enumerable:!0,get:function(){return g.Network}});var S=hf();Object.defineProperty(e,"NFTCategory",{enumerable:!0,get:function(){return S.NFTCategory}});var M=sq();Object.defineProperty(e,"NFT",{enumerable:!0,get:function(){return M.NFT}}),Object.defineProperty(e,"NFTSortBy",{enumerable:!0,get:function(){return M.NFTSortBy}});var R=rF();Object.defineProperty(e,"CatalogSortBy",{enumerable:!0,get:function(){return R.CatalogSortBy}}),Object.defineProperty(e,"CatalogSortDirection",{enumerable:!0,get:function(){return R.CatalogSortDirection}});var I=nF();Object.defineProperty(e,"Order",{enumerable:!0,get:function(){return I.Order}}),Object.defineProperty(e,"OrderSortBy",{enumerable:!0,get:function(){return I.OrderSortBy}});var N=iF();Object.defineProperty(e,"ProviderType",{enumerable:!0,get:function(){return N.ProviderType}});var E=yf();Object.defineProperty(e,"Rarity",{enumerable:!0,get:function(){return E.Rarity}});var P=uq();Object.defineProperty(e,"SaleType",{enumerable:!0,get:function(){return P.SaleType}});var T=aF();Object.defineProperty(e,"Sale",{enumerable:!0,get:function(){return T.Sale}}),Object.defineProperty(e,"SaleSortBy",{enumerable:!0,get:function(){return T.SaleSortBy}});var v=oF();Object.defineProperty(e,"RentalStatus",{enumerable:!0,get:function(){return v.RentalStatus}}),Object.defineProperty(e,"RentalsListingSortDirection",{enumerable:!0,get:function(){return v.RentalsListingSortDirection}}),Object.defineProperty(e,"RentalsListingsFilterByCategory",{enumerable:!0,get:function(){return v.RentalsListingsFilterByCategory}}),Object.defineProperty(e,"RentalsListingsSortBy",{enumerable:!0,get:function(){return v.RentalsListingsSortBy}}),Object.defineProperty(e,"RentalListingCreation",{enumerable:!0,get:function(){return v.RentalListingCreation}}),Object.defineProperty(e,"PeriodCreation",{enumerable:!0,get:function(){return v.PeriodCreation}});var O=sF();Object.defineProperty(e,"AnalyticsDayDataSortBy",{enumerable:!0,get:function(){return O.AnalyticsDayDataSortBy}});var C=uF();Object.defineProperty(e,"Store",{enumerable:!0,get:function(){return C.Store}});var z=lF();Object.defineProperty(e,"WearableGender",{enumerable:!0,get:function(){return z.WearableGender}}),Object.defineProperty(e,"GenderFilterOption",{enumerable:!0,get:function(){return z.GenderFilterOption}});var U=cF();Object.defineProperty(e,"World",{enumerable:!0,get:function(){return U.World}}),Object.defineProperty(e,"getWorld",{enumerable:!0,get:function(){return U.getWorld}}),Object.defineProperty(e,"isInsideWorldLimits",{enumerable:!0,get:function(){return U.isInsideWorldLimits}}),t(dF(),e),t(fF(),e),t(pF(),e),t(NF(),e),t(DF(),e)})(po)),po}var sh={},wI;function kF(){return wI||(wI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LinkerAuthorization=void 0;const a=He();(function(t){t.schema={type:"object",properties:{name:{type:"string"},desc:{type:"string"},startDate:{type:"string",nullable:!0},endDate:{type:"string",nullable:!0},contactInfo:{type:"object",properties:{name:{type:"string"}},required:["name"]},onlyDev:{type:"boolean",nullable:!0},addresses:{type:"array",items:{type:"string"},minItems:1},plots:{type:"array",items:{type:"string"},minItems:1}},required:["name","desc","contactInfo","addresses","plots"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.LinkerAuthorization||(e.LinkerAuthorization={}))})(sh)),sh}var ho={},uh={},Vu={},TI;function lq(){if(TI)return Vu;TI=1,Object.defineProperty(Vu,"__esModule",{value:!0}),Vu.isInExceptionBlock=void 0;function e(i,o){return i>=62&&i<=150&&o>=151&&o<=158}function a(i,o){return i>=151&&i<=162&&o>=144&&o<=158}function t(i,o){return i>=151&&i<=163&&o>=59&&o<=143}function n(i,o){return e(i,o)||a(i,o)||t(i,o)}return Vu.isInExceptionBlock=n,Vu}var SI;function UF(){return SI||(SI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Parcel=e.PARCEL_LIMITS=void 0;const a=He(),t=lq();e.PARCEL_LIMITS={minX:-150,maxX:150,minY:-150,maxY:150},(function(n){n._isInLimits={keyword:"_isInLimits",validate:function(S,M){return!M||typeof M.x!="number"||typeof M.y!="number"?!1:c(M)||(0,t.isInExceptionBlock)(M.x,M.y)},errors:!1},n.schema={type:"object",required:["x","y"],properties:{x:{type:"number"},y:{type:"number"}},_isInLimits:!0,additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema,[n._isInLimits]);function i({x:g,y:S}){return`${g},${S}`}n.parcelToString=i;function o(g){const S=g.match(/^(-?\d+),(-?\d+)$/);if(!S)return null;const[,M,R]=S,I=parseInt(M,10),N=parseInt(R,10);return{x:I,y:N}}n.stringToParcel=o;function u(g){const S=o(g);return S?n.validate(S):!1}n.isParcelStringValid=u;function c(g){const{x:S,y:M}=g;return S>=e.PARCEL_LIMITS.minX&&S<=e.PARCEL_LIMITS.maxX&&M>=e.PARCEL_LIMITS.minY&&M<=e.PARCEL_LIMITS.maxY}n.isInStandardBounds=c;function f(g){return(0,t.isInExceptionBlock)(g.x,g.y)}n.isExceptionParcel=f;function p(g){return c(g)||f(g)}n.isInBounds=p;function y(g){return n.validate(g)}n.isValid=y;function m(g){const S=o(g);return S?n.validate(S):!1}n.isValidString=m})(e.Parcel||(e.Parcel={}))})(uh)),uh}var go={},OI;function BF(){if(OI)return go;OI=1,Object.defineProperty(go,"__esModule",{value:!0}),go.validateUrlInstance=go.validateUrl=void 0;const e={allowLocalhost:!1,allowedPorts:[]};function a(S,M=2){let R=S;for(let I=0;I<M;I++)try{R=decodeURIComponent(R)}catch{break}return R.normalize("NFKC")}function t(S){return/[\u0000-\u001F\u007F-\u009F\u202A-\u202E\u2066-\u2069]/.test(S)}function n(S){return!!(S.username||S.password)}function i(S){return/\\/.test(S)}const o=["80","443"];function u(S,M){return!!S.port&&!M.includes(S.port)}function c(S){const M=S.toLowerCase();return!!(M==="localhost"||M.endsWith(".local")||/^(127\.|10\.|172\.(1[6-9]|2[0-9]|3[0-1])\.|192\.168\.|169\.254\.)/.test(M)||M==="::1"||M==="[::1]"||M.startsWith("fe80:")||M.startsWith("fc00:"))}function f(S){if(S.startsWith("//"))return null;try{return{url:new URL(S),wasRelative:!1}}catch{try{return{url:new URL(S,"https://example.com"),wasRelative:!0}}catch{return null}}}function p(S){const M=a(String(S).toLowerCase());return!(t(M)||i(M))}function y(S){return!(!S||S.includes("..")||S.includes("//")||t(S)||i(S))}function m(S,M={}){const R=Object.assign(Object.assign({},e),M),I=[...o,...R.allowedPorts];if(!S||S.length===0||S.length>4096||t(S)||i(S))return!1;const N=a(S);if(t(N)||i(N)||S.startsWith("//"))return!1;const E=f(S);if(!E)return!1;const{url:P,wasRelative:T}=E;if(P.protocol!=="http:"&&P.protocol!=="https:"&&P.protocol!==""||n(P)||i(S)||i(P.href)||!T&&(u(P,I)||!R.allowLocalhost&&P.hostname&&c(P.hostname))||!y(P.pathname)||P.pathname.length>2048)return!1;const v=Array.from(P.searchParams.entries());if(v.length>50||(P.search?P.search.startsWith("?")?P.search.length-1:P.search.length:0)>2048)return!1;for(const[C,z]of v)if(C.length===0||!p(C)||!p(z)||C.length>128||z.length>1024)return!1;return!(P.hash&&t(P.hash))}go.validateUrl=m;function g(S,M={}){return m(S.toString(),M)}return go.validateUrlInstance=g,go}var AI;function FF(){return AI||(AI=1,(function(e){var a=ho&&ho.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=ho&&ho.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(UF(),e),t(lq(),e),t(BF(),e)})(ho)),ho}var PI;function VF(){return PI||(PI=1,(function(e){var a=Yn&&Yn.__createBinding||(Object.create?(function(u,c,f,p){p===void 0&&(p=f);var y=Object.getOwnPropertyDescriptor(c,f);(!y||("get"in y?!c.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:function(){return c[f]}}),Object.defineProperty(u,p,y)}):(function(u,c,f,p){p===void 0&&(p=f),u[p]=c[f]})),t=Yn&&Yn.__setModuleDefault||(Object.create?(function(u,c){Object.defineProperty(u,"default",{enumerable:!0,value:c})}):function(u,c){u.default=c}),n=Yn&&Yn.__importStar||function(u){if(u&&u.__esModule)return u;var c={};if(u!=null)for(var f in u)f!=="default"&&Object.prototype.hasOwnProperty.call(u,f)&&a(c,u,f);return t(c,u),c},i=Yn&&Yn.__exportStar||function(u,c){for(var f in u)f!=="default"&&!Object.prototype.hasOwnProperty.call(c,f)&&a(c,u,f)};Object.defineProperty(e,"__esModule",{value:!0}),e.sdk=void 0;const o=n(J3());e.sdk=o,i(He(),e),i(qF(),e),i(Bb(),e),i(ts(),e),i(kF(),e),i(Dl(),e),i(tq(),e),i(aq(),e),i(FF(),e)})(Yn)),Yn}var jn=VF(),vo={},Hu={},Dd={exports:{}},qd={exports:{}},II;function Vb(){return II||(II=1,(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=t;function t(n){if(n==null)throw new TypeError("Expected a string but received a ".concat(n));if(n.constructor.name!=="String")throw new TypeError("Expected a string but received a ".concat(n.constructor.name))}e.exports=a.default,e.exports.default=a.default})(qd,qd.exports)),qd.exports}var kd={exports:{}},RI;function HF(){return RI||(RI=1,(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=n;function t(i){return Object.prototype.toString.call(i)==="[object RegExp]"}function n(i,o){for(var u=0;u<o.length;u++){var c=o[u];if(i===c||t(c)&&c.test(i))return!0}return!1}e.exports=a.default,e.exports.default=a.default})(kd,kd.exports)),kd.exports}var Ud={exports:{}},MI;function zF(){return MI||(MI=1,(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var t=function(i,o){return i.indexOf(o)!==-1};a.default=t,e.exports=a.default,e.exports.default=a.default})(Ud,Ud.exports)),Ud.exports}var Bd={exports:{}},Fd={exports:{}},NI;function cq(){return NI||(NI=1,(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=t;function t(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;for(var o in i)typeof n[o]>"u"&&(n[o]=i[o]);return n}e.exports=a.default,e.exports.default=a.default})(Fd,Fd.exports)),Fd.exports}var CI;function WF(){return CI||(CI=1,(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=u;var t=i(Vb()),n=i(cq());function i(c){return c&&c.__esModule?c:{default:c}}var o={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};function u(c,f){(0,t.default)(c),f=(0,n.default)(f,o),f.allow_trailing_dot&&c[c.length-1]==="."&&(c=c.substring(0,c.length-1)),f.allow_wildcard===!0&&c.indexOf("*.")===0&&(c=c.substring(2));var p=c.split("."),y=p[p.length-1];return f.require_tld&&(p.length<2||!f.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(y)||/\s/.test(y))||!f.allow_numeric_tld&&/^\d+$/.test(y)?!1:p.every(function(m){return!(m.length>63&&!f.ignore_max_length||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(m)||/[\uff01-\uff5e]/.test(m)||/^-|-$/.test(m)||!f.allow_underscores&&/_/.test(m))})}e.exports=a.default,e.exports.default=a.default})(Bd,Bd.exports)),Bd.exports}var Vd={exports:{}},jI;function GF(){return jI||(jI=1,(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=y;var t=n(Vb());function n(m){return m&&m.__esModule?m:{default:m}}function i(m){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},i(m)}var o="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",u="(".concat(o,"[.]){3}").concat(o),c=new RegExp("^".concat(u,"$")),f="(?:[0-9a-fA-F]{1,4})",p=new RegExp("^("+"(?:".concat(f,":){7}(?:").concat(f,"|:)|")+"(?:".concat(f,":){6}(?:").concat(u,"|:").concat(f,"|:)|")+"(?:".concat(f,":){5}(?::").concat(u,"|(:").concat(f,"){1,2}|:)|")+"(?:".concat(f,":){4}(?:(:").concat(f,"){0,1}:").concat(u,"|(:").concat(f,"){1,3}|:)|")+"(?:".concat(f,":){3}(?:(:").concat(f,"){0,2}:").concat(u,"|(:").concat(f,"){1,4}|:)|")+"(?:".concat(f,":){2}(?:(:").concat(f,"){0,3}:").concat(u,"|(:").concat(f,"){1,5}|:)|")+"(?:".concat(f,":){1}(?:(:").concat(f,"){0,4}:").concat(u,"|(:").concat(f,"){1,6}|:)|")+"(?::((?::".concat(f,"){0,5}:").concat(u,"|(?::").concat(f,"){1,7}|:))")+")(%[0-9a-zA-Z.]{1,})?$");function y(m){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,t.default)(m);var S=(i(g)==="object"?g.version:arguments[1])||"";return S?S.toString()==="4"?c.test(m):S.toString()==="6"?p.test(m):!1:y(m,{version:4})||y(m,{version:6})}e.exports=a.default,e.exports.default=a.default})(Vd,Vd.exports)),Vd.exports}var LI;function KF(){return LI||(LI=1,(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=N;var t=f(Vb()),n=f(HF()),i=f(zF()),o=f(WF()),u=f(GF()),c=f(cq());function f(E){return E&&E.__esModule?E:{default:E}}function p(E,P){return M(E)||S(E,P)||m(E,P)||y()}function y(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
19
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function m(E,P){if(E){if(typeof E=="string")return g(E,P);var T={}.toString.call(E).slice(8,-1);return T==="Object"&&E.constructor&&(T=E.constructor.name),T==="Map"||T==="Set"?Array.from(E):T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T)?g(E,P):void 0}}function g(E,P){(P==null||P>E.length)&&(P=E.length);for(var T=0,v=Array(P);T<P;T++)v[T]=E[T];return v}function S(E,P){var T=E==null?null:typeof Symbol<"u"&&E[Symbol.iterator]||E["@@iterator"];if(T!=null){var v,O,C,z,U=[],K=!0,ae=!1;try{if(C=(T=T.call(E)).next,P!==0)for(;!(K=(v=C.call(T)).done)&&(U.push(v.value),U.length!==P);K=!0);}catch(_e){ae=!0,O=_e}finally{try{if(!K&&T.return!=null&&(z=T.return(),Object(z)!==z))return}finally{if(ae)throw O}}return U}}function M(E){if(Array.isArray(E))return E}var R={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0,max_allowed_length:2084},I=/^\[([^\]]+)\](?::([0-9]+))?$/;function N(E,P){if((0,t.default)(E),!E||/[\s<>]/.test(E)||E.indexOf("mailto:")===0||(P=(0,c.default)(P,R),P.validate_length&&E.length>P.max_allowed_length)||!P.allow_fragments&&(0,i.default)(E,"#")||!P.allow_query_components&&((0,i.default)(E,"?")||(0,i.default)(E,"&")))return!1;var T,v,O,C,z,U,K,ae;K=E.split("#"),E=K.shift(),K=E.split("?"),E=K.shift();var _e=E.match(/^([a-z][a-z0-9+\-.]*):/i),be=!1,ye=function(de){return be=!0,T=de.toLowerCase(),P.require_valid_protocol&&P.protocols.indexOf(T)===-1?!1:E.substring(_e[0].length)};if(_e){var Me=_e[1],Ne=E.substring(_e[0].length),qe=Ne.slice(0,2)==="//";if(qe){if(E=ye(Me),E===!1)return!1}else{var we=Ne.indexOf("/"),ue=we===-1?Ne:Ne.substring(0,we),X=ue.indexOf("@");if(X!==-1){var j=ue.substring(0,X),B=/^[a-zA-Z0-9\-_.%:]*$/,k=B.test(j),L=/%[0-9a-fA-F]{2}/.test(j);if(k&&!L){if(P.require_protocol)return!1}else if(E=ye(Me),E===!1)return!1}else{var W=/^[0-9]/.test(Ne);if(W){if(P.require_protocol)return!1}else if(E=ye(Me),E===!1)return!1}}}else if(P.require_protocol)return!1;if(E.slice(0,2)==="//"){if(!be&&!P.allow_protocol_relative_urls)return!1;E=E.slice(2)}if(E==="")return!1;if(K=E.split("/"),E=K.shift(),E===""&&!P.require_host)return!0;if(K=E.split("@"),K.length>1){if(P.disallow_auth||K[0]===""||(v=K.shift(),v.indexOf(":")>=0&&v.split(":").length>2))return!1;var oe=v.split(":"),Re=p(oe,2),Se=Re[0],Ue=Re[1];if(Se===""&&Ue==="")return!1}C=K.join("@"),U=null,ae=null;var Ce=C.match(I);if(Ce?(O="",ae=Ce[1],U=Ce[2]||null):(K=C.split(":"),O=K.shift(),K.length&&(U=K.join(":"))),U!==null&&U.length>0){if(z=parseInt(U,10),!/^[0-9]+$/.test(U)||z<=0||z>65535)return!1}else if(P.require_port)return!1;return P.host_whitelist?(0,n.default)(O,P.host_whitelist):O===""&&!P.require_host?!0:!(!(0,u.default)(O)&&!(0,o.default)(O,P)&&(!ae||!(0,u.default)(ae,6))||(O=O||ae,P.host_blacklist&&(0,n.default)(O,P.host_blacklist)))}e.exports=a.default,e.exports.default=a.default})(Dd,Dd.exports)),Dd.exports}var Gi={},Hd={exports:{}},lh={},DI;function YF(){return DI||(DI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function a(U,K){return{validate:U,compare:K}}e.fullFormats={date:a(o,u),time:a(f,p),"date-time":a(m,g),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:R,"uri-reference":/^(?:[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,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:z,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:N,int32:{type:"number",validate:T},int64:{type:"number",validate:v},float:{type:"number",validate:O},double:{type:"number",validate:O},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:a(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,u),time:a(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,p),"date-time":a(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,g),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function t(U){return U%4===0&&(U%100!==0||U%400===0)}const n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31];function o(U){const K=n.exec(U);if(!K)return!1;const ae=+K[1],_e=+K[2],be=+K[3];return _e>=1&&_e<=12&&be>=1&&be<=(_e===2&&t(ae)?29:i[_e])}function u(U,K){if(U&&K)return U>K?1:U<K?-1:0}const c=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function f(U,K){const ae=c.exec(U);if(!ae)return!1;const _e=+ae[1],be=+ae[2],ye=+ae[3],Me=ae[5];return(_e<=23&&be<=59&&ye<=59||_e===23&&be===59&&ye===60)&&(!K||Me!=="")}function p(U,K){if(!(U&&K))return;const ae=c.exec(U),_e=c.exec(K);if(ae&&_e)return U=ae[1]+ae[2]+ae[3]+(ae[4]||""),K=_e[1]+_e[2]+_e[3]+(_e[4]||""),U>K?1:U<K?-1:0}const y=/t|\s/i;function m(U){const K=U.split(y);return K.length===2&&o(K[0])&&f(K[1],!0)}function g(U,K){if(!(U&&K))return;const[ae,_e]=U.split(y),[be,ye]=K.split(y),Me=u(ae,be);if(Me!==void 0)return Me||p(_e,ye)}const S=/\/|:/,M=/^(?:[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;function R(U){return S.test(U)&&M.test(U)}const I=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function N(U){return I.lastIndex=0,I.test(U)}const E=-2147483648,P=2**31-1;function T(U){return Number.isInteger(U)&&U<=P&&U>=E}function v(U){return Number.isInteger(U)}function O(){return!0}const C=/[^\\]\\Z/;function z(U){if(C.test(U))return!1;try{return new RegExp(U),!0}catch{return!1}}})(lh)),lh}var ch={},qI;function XF(){return qI||(qI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const a=xo(),t=bt(),n=t.operators,i={formatMaximum:{okStr:"<=",ok:n.LTE,fail:n.GT},formatMinimum:{okStr:">=",ok:n.GTE,fail:n.LT},formatExclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},formatExclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},o={message:({keyword:c,schemaCode:f})=>t.str`should be ${i[c].okStr} ${f}`,params:({keyword:c,schemaCode:f})=>t._`{comparison: ${i[c].okStr}, limit: ${f}}`};e.formatLimitDefinition={keyword:Object.keys(i),type:"string",schemaType:"string",$data:!0,error:o,code(c){const{gen:f,data:p,schemaCode:y,keyword:m,it:g}=c,{opts:S,self:M}=g;if(!S.validateFormats)return;const R=new a.KeywordCxt(g,M.RULES.all.format.definition,"format");R.$data?I():N();function I(){const P=f.scopeValue("formats",{ref:M.formats,code:S.code.formats}),T=f.const("fmt",t._`${P}[${R.schemaCode}]`);c.fail$data(t.or(t._`typeof ${T} != "object"`,t._`${T} instanceof RegExp`,t._`typeof ${T}.compare != "function"`,E(T)))}function N(){const P=R.schema,T=M.formats[P];if(!T||T===!0)return;if(typeof T!="object"||T instanceof RegExp||typeof T.compare!="function")throw new Error(`"${m}": format "${P}" does not define "compare" function`);const v=f.scopeValue("formats",{key:P,ref:T,code:S.code.formats?t._`${S.code.formats}${t.getProperty(P)}`:void 0});c.fail$data(E(v))}function E(P){return t._`${P}.compare(${p}, ${y}) ${i[m].fail} 0`}},dependencies:["format"]};const u=c=>(c.addKeyword(e.formatLimitDefinition),c);e.default=u})(ch)),ch}var kI;function JF(){return kI||(kI=1,(function(e,a){Object.defineProperty(a,"__esModule",{value:!0});const t=YF(),n=XF(),i=bt(),o=new i.Name("fullFormats"),u=new i.Name("fastFormats"),c=(p,y={keywords:!0})=>{if(Array.isArray(y))return f(p,y,t.fullFormats,o),p;const[m,g]=y.mode==="fast"?[t.fastFormats,u]:[t.fullFormats,o],S=y.formats||t.formatNames;return f(p,S,m,g),y.keywords&&n.default(p),p};c.get=(p,y="full")=>{const g=(y==="fast"?t.fastFormats:t.fullFormats)[p];if(!g)throw new Error(`Unknown format "${p}"`);return g};function f(p,y,m,g){var S,M;(S=(M=p.opts.code).formats)!==null&&S!==void 0||(M.formats=i._`require("ajv-formats/dist/formats").${g}`);for(const R of y)p.addFormat(R,m[R])}e.exports=a=c,Object.defineProperty(a,"__esModule",{value:!0}),a.default=c})(Hd,Hd.exports)),Hd.exports}var Zn={},_o={},Eo={},dh={},$n={},UI;function rt(){if(UI)return $n;UI=1;var e=$n&&$n.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty($n,"__esModule",{value:!0}),$n.validateType=$n.generateLazyValidator=$n.Ajv=void 0;const a=e(xo());$n.Ajv=a.default;const t=e(ff()),n=e(pf());function i(u,c){let f=null;const p=(y,m)=>{if(!f){const g=new a.default({$data:!0,allErrors:!0});(0,t.default)(g),(0,n.default)(g,{singleError:!0}),c?.forEach(S=>g.addKeyword(S)),f=g.compile(u),Object.defineProperty(p,"errors",{get(){return f?.errors}})}return f(y,m)};return p}$n.generateLazyValidator=i;function o(u,c){return u.validate(c)}return $n.validateType=o,$n}var BI;function QF(){return BI||(BI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SceneUpdate=e.SCENE_UPDATE=void 0;const a=rt();e.SCENE_UPDATE="SCENE_UPDATE",(function(t){t.schema={type:"object",properties:{type:{type:"string",enum:[e.SCENE_UPDATE]},payload:{type:"object",properties:{sceneId:{type:"string"},sceneType:{type:"string"}},additionalProperties:!1,required:["sceneId","sceneType"]}},required:["payload","type"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.SceneUpdate||(e.SceneUpdate={}))})(dh)),dh}var fh={},FI;function ZF(){return FI||(FI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Update=e.UPDATE=void 0;const a=rt();e.UPDATE="update",(function(t){t.schema={type:"object",properties:{type:{type:"string",enum:[e.UPDATE]}},required:["type"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Update||(e.Update={}))})(fh)),fh}var VI;function $F(){return VI||(VI=1,(function(e){var a=Eo&&Eo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Eo&&Eo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(QF(),e),t(ZF(),e)})(Eo)),Eo}var bo={},ph={},HI;function xF(){return HI||(HI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProjectType=void 0;const a=rt();(function(t){t.SCENE="scene",t.SMART_ITEM="smart-item",t.PORTABLE_EXPERIENCE="portable-experience",t.LIBRARY="library"})(e.ProjectType||(e.ProjectType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.ProjectType||(e.ProjectType={}))})(ph)),ph}var yh={},mh={},zI;function gf(){return zI||(zI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Rarity=void 0;const a=rt();(function(t){t.UNIQUE="unique",t.MYTHIC="mythic",t.LEGENDARY="legendary",t.EPIC="epic",t.RARE="rare",t.UNCOMMON="uncommon",t.COMMON="common"})(e.Rarity||(e.Rarity={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema);const n={[t.UNIQUE]:1,[t.MYTHIC]:10,[t.LEGENDARY]:100,[t.EPIC]:1e3,[t.RARE]:5e3,[t.UNCOMMON]:1e4,[t.COMMON]:1e5},i={[t.UNIQUE]:"#FFE617",[t.MYTHIC]:"#FB7DE3",[t.LEGENDARY]:"#A657ED",[t.EPIC]:"#6397F2",[t.RARE]:"#3AD682",[t.UNCOMMON]:"#FF8563",[t.COMMON]:"#D4E0E0"},o={[t.UNIQUE]:"#FFB626",[t.MYTHIC]:"#FF63E1",[t.LEGENDARY]:"#842DDA",[t.EPIC]:"#3D85E6",[t.RARE]:"#36CF75",[t.UNCOMMON]:"#ED6D4F",[t.COMMON]:"#ABC1C1"};function u(p){return n[p]}t.getMaxSupply=u;function c(p){return o[p]}t.getColor=c;function f(p){return[i[p],o[p]]}t.getGradient=f})(e.Rarity||(e.Rarity={}))})(mh)),mh}var hh={},WI;function rs(){return WI||(WI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WearableCategory=void 0;const a=rt();(function(t){t.EYEBROWS="eyebrows",t.EYES="eyes",t.FACIAL_HAIR="facial_hair",t.HAIR="hair",t.BODY_SHAPE="body_shape",t.MOUTH="mouth",t.UPPER_BODY="upper_body",t.LOWER_BODY="lower_body",t.FEET="feet",t.EARRING="earring",t.EYEWEAR="eyewear",t.HAT="hat",t.HELMET="helmet",t.MASK="mask",t.TIARA="tiara",t.TOP_HEAD="top_head",t.SKIN="skin",t.HANDS_WEAR="hands_wear"})(e.WearableCategory||(e.WearableCategory={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.WearableCategory||(e.WearableCategory={}))})(hh)),hh}var gh={},vh={},GI;function Hb(){return GI||(GI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BodyShape=void 0;const a=rt();(function(t){t.MALE="urn:decentraland:off-chain:base-avatars:BaseMale",t.FEMALE="urn:decentraland:off-chain:base-avatars:BaseFemale"})(e.BodyShape||(e.BodyShape={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.BodyShape||(e.BodyShape={}))})(vh)),vh}var _h={},Eh={},KI;function dq(){return KI||(KI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BodyPartCategory=void 0;const a=rt();(function(t){t.HEAD="head",t.HANDS="hands"})(e.BodyPartCategory||(e.BodyPartCategory={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.BodyPartCategory||(e.BodyPartCategory={}))})(Eh)),Eh}var YI;function zb(){return YI||(YI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.HideableWearableCategory=void 0;const a=rs(),t=rt(),n=dq();(function(i){i.schema={oneOf:[Object.assign({},a.WearableCategory.schema),Object.assign({},n.BodyPartCategory.schema)]},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.HideableWearableCategory||(e.HideableWearableCategory={}))})(_h)),_h}var XI;function Wb(){return XI||(XI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WearableRepresentation=void 0;const a=rt(),t=Hb(),n=zb();(function(i){i.schema={type:"object",properties:{bodyShapes:{type:"array",items:t.BodyShape.schema,minItems:1,uniqueItems:!0},mainFile:{type:"string",minLength:1},contents:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0,contains:{const:{$data:"2/mainFile"}}},overrideHides:{type:"array",items:n.HideableWearableCategory.schema},overrideReplaces:{type:"array",items:n.HideableWearableCategory.schema}},required:["bodyShapes","mainFile","contents","overrideHides","overrideReplaces"]},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.WearableRepresentation||(e.WearableRepresentation={}))})(gh)),gh}var wo={},To={},bh={},wh={},JI;function nu(){return JI||(JI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.IPFSv1=e.IPFSv2=e.EthAddress=e.Color3=void 0;const a=rt();(function(t){t.schema={type:"object",required:["r","g","b"],properties:{r:{type:"number",minimum:0,maximum:1},g:{type:"number",minimum:0,maximum:1},b:{type:"number",minimum:0,maximum:1}}};const n=(0,a.generateLazyValidator)(t.schema);t.validate=i=>n(i)})(e.Color3||(e.Color3={})),(function(t){t.schema={type:"string",pattern:"^0x[a-fA-F0-9]{40}$"};const n=new RegExp(t.schema.pattern);t.validate=i=>n.test(i)})(e.EthAddress||(e.EthAddress={})),(function(t){t.schema={type:"string",pattern:"^(ba)[a-zA-Z0-9]{57}$"};const n=new RegExp(t.schema.pattern);t.validate=i=>n.test(i)})(e.IPFSv2||(e.IPFSv2={})),(function(t){t.schema={type:"string",pattern:"^(Qm)[a-zA-Z0-9]{44}$"};const n=new RegExp(t.schema.pattern);t.validate=i=>n.test(i)})(e.IPFSv1||(e.IPFSv1={}))})(wh)),wh}var QI;function fq(){return QI||(QI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Avatar=e.Link=e.LinkUrl=e.AvatarInfo=e.Snapshots=void 0;const a=rs(),t=nu(),n=rt();var i;(function(f){f.schema={type:"object",required:["face256","body"],properties:{face256:t.IPFSv2.schema,body:t.IPFSv2.schema}},f.validate=(0,n.generateLazyValidator)(f.schema)})(i=e.Snapshots||(e.Snapshots={}));var o;(function(f){f.schema={type:"object",required:["bodyShape","eyes","hair","skin"],properties:{bodyShape:{type:"string"},eyes:{type:"object",required:["color"],properties:{color:t.Color3.schema}},hair:{type:"object",required:["color"],properties:{color:t.Color3.schema}},skin:{type:"object",required:["color"],properties:{color:t.Color3.schema}},wearables:{type:"array",items:{type:"string"}},forceRender:{type:"array",nullable:!0,items:a.WearableCategory.schema},emotes:{type:"array",items:{type:"object",properties:{slot:{type:"number"},urn:{type:"string"}},required:["slot","urn"]},nullable:!0},snapshots:i.schema},additionalProperties:!0},f.validate=(0,n.generateLazyValidator)(f.schema)})(o=e.AvatarInfo||(e.AvatarInfo={}));var u;(function(f){f.schema={type:"string",pattern:"^[(http(s)?):\\/\\/(www\\.)?a-zA-Z0-9@:%._\\+~#=]{2,256}\\.[a-z]{2,6}\\b([-a-zA-Z0-9@:%_\\+.~#?&//=]*)$"};const p=new RegExp(f.schema.pattern,"i");f.validate=y=>p.test(y)})(u=e.LinkUrl||(e.LinkUrl={}));var c;(function(f){f.schema={type:"object",required:["title","url"],properties:{title:{type:"string"},url:u.schema}}})(c=e.Link||(e.Link={})),(function(f){f.schema={type:"object",required:["name","description","ethAddress","version","tutorialStep","avatar","hasClaimedName"],properties:{userId:{type:"string"},name:{type:"string"},description:{type:"string"},links:{type:"array",maxItems:5,items:c.schema,nullable:!0},country:{nullable:!0,type:"string"},employmentStatus:{nullable:!0,type:"string"},gender:{nullable:!0,type:"string"},pronouns:{nullable:!0,type:"string"},relationshipStatus:{nullable:!0,type:"string"},sexualOrientation:{nullable:!0,type:"string"},language:{nullable:!0,type:"string"},profession:{nullable:!0,type:"string"},birthdate:{nullable:!0,type:"number"},realName:{nullable:!0,type:"string"},hobbies:{nullable:!0,type:"string"},ethAddress:t.EthAddress.schema,version:{type:"number"},tutorialStep:{type:"number"},email:{type:"string",nullable:!0},blocked:{type:"array",items:{type:"string"},nullable:!0},muted:{type:"array",items:{type:"string"},nullable:!0},interests:{type:"array",items:{type:"string"},nullable:!0},hasClaimedName:{type:"boolean"},hasConnectedWeb3:{type:"boolean",nullable:!0},avatar:o.schema},additionalProperties:!0},f.validate=(0,n.generateLazyValidator)(f.schema)})(e.Avatar||(e.Avatar={}))})(bh)),bh}var Th={},ZI;function eV(){return ZI||(ZI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Profile=void 0;const a=rt(),t=fq();(function(n){n.schema={type:"object",required:["avatars"],properties:{avatars:{type:"array",items:t.Avatar.schema}},additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.Profile||(e.Profile={}))})(Th)),Th}var $I;function tV(){return $I||($I=1,(function(e){var a=To&&To.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=To&&To.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(fq(),e),t(eV(),e)})(To)),To}var Sh={},Oh={},xI;function pq(){return xI||(xI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.FeatureToggles=e.portableExperiencesToggles=e.toggles=void 0;const a=rt();e.toggles=["enabled","disabled"],e.portableExperiencesToggles=[...e.toggles,"hideUi"],(function(t){t.schema={type:"object",properties:{voiceChat:{type:"string",enum:e.toggles,nullable:!0},portableExperiences:{type:"string",enum:e.portableExperiencesToggles,nullable:!0,errorMessage:`valid options are ${e.portableExperiencesToggles.join(", ")}`}},errorMessage:`valid options are ${e.toggles.join(", ")}`,required:[]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.FeatureToggles||(e.FeatureToggles={}))})(Oh)),Oh}var Ah={},eR;function yq(){return eR||(eR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WorldConfiguration=void 0;const a=rt();(function(t){t.schema={type:"object",properties:{name:{type:"string",nullable:!0},skybox:{type:"number",nullable:!0},minimapVisible:{type:"boolean",nullable:!0},miniMapConfig:{type:"object",nullable:!0,properties:{visible:{type:"boolean",nullable:!0},dataImage:{type:"string",nullable:!0},estateImage:{type:"string",nullable:!0}}},skyboxConfig:{type:"object",nullable:!0,properties:{fixedTime:{type:"number",nullable:!0},textures:{type:"array",nullable:!0,items:{type:"string"},oneOf:[{minItems:0,maxItems:0},{minItems:1,maxItems:1},{minItems:6,maxItems:6}],errorMessage:"customSkybox must be an array of 0, 1 or 6 strings"}}},fixedAdapter:{type:"string",nullable:!0},placesConfig:{type:"object",nullable:!0,properties:{optOut:{type:"boolean",nullable:!0}}}},required:[]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.WorldConfiguration||(e.WorldConfiguration={}))})(Ah)),Ah}var Ph={},tR;function mq(){return tR||(tR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SceneParcels=void 0;const a=rt();(function(t){t.schema={description:'Describes a scene, a set of parcels whose content is treated as the same entity. A list of parcels is listed, for which one of them is considered the "base" for positioning purposes.',type:"object",properties:{base:{type:"string",pattern:"^-?[0-9]+,-?[0-9]+$"},parcels:{type:"array",items:{type:"string",pattern:"^-?[0-9]+,-?[0-9]+$"},minItems:1}},additionalProperties:!0,required:["base","parcels"]},t.schemaValidator=(0,a.generateLazyValidator)(t.schema),t.validate=n=>t.schemaValidator(n)&&n.parcels.includes(n.base)})(e.SceneParcels||(e.SceneParcels={}))})(Ph)),Ph}var Ih={},zu={},rR;function Gb(){return rR||(rR=1,Object.defineProperty(zu,"__esModule",{value:!0}),zu.displayableProperties=void 0,zu.displayableProperties={menuBarIcon:{description:"Name of the file used as icon for the MenuBar",type:"string",nullable:!0}}),zu}var Rh={},nR;function hq(){return nR||(nR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Source=void 0;const a=rt();(function(t){t.schema={type:"object",properties:{version:{type:"number",nullable:!0},origin:{type:"string"},projectId:{type:"string"},point:{type:"object",properties:{x:{type:"integer"},y:{type:"integer"}},nullable:!0,required:["x","y"]},rotation:{type:"string",enum:["north","east","south","west"],nullable:!0},layout:{type:"object",properties:{rows:{type:"integer"},cols:{type:"integer"}},nullable:!0,required:["rows","cols"]},isEmpty:{type:"boolean",nullable:!0}},additionalProperties:!0,required:["origin","projectId"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Source||(e.Source={}))})(Rh)),Rh}var Mh={},iR;function gq(){return iR||(iR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SpawnPoint=void 0;const a=rt();(function(t){t.schema={type:"object",properties:{name:{type:"string",nullable:!0},position:{type:"object",oneOf:[{$ref:"#single-position"},{$ref:"#multi-position"}],required:["x","y","z"]},default:{type:"boolean",nullable:!0},cameraTarget:{type:"object",properties:{x:{type:"number"},y:{type:"number"},z:{type:"number"}},required:["x","y","z"],nullable:!0}},required:["position"],definitions:{"single-position":{$id:"#single-position",type:"object",properties:{x:{type:"number"},y:{type:"number"},z:{type:"number"}},required:["x","y","z"]},"multi-position":{$id:"#multi-position",type:"object",properties:{x:{type:"array",items:{type:"number"},minItems:1},y:{type:"array",items:{type:"number"},minItems:1},z:{type:"array",items:{type:"number"},minItems:1}},required:["x","y","z"]}}},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.SpawnPoint||(e.SpawnPoint={}))})(Mh)),Mh}var aR;function rV(){return aR||(aR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Scene=e.RequiredPermission=void 0;const a=rt(),t=Gb(),n=pq(),i=mq(),o=hq(),u=gq(),c=yq();var f;(function(p){p.ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE="ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE",p.ALLOW_TO_TRIGGER_AVATAR_EMOTE="ALLOW_TO_TRIGGER_AVATAR_EMOTE",p.ALLOW_MEDIA_HOSTNAMES="ALLOW_MEDIA_HOSTNAMES",p.USE_WEB3_API="USE_WEB3_API",p.USE_FETCH="USE_FETCH",p.USE_WEBSOCKET="USE_WEBSOCKET",p.OPEN_EXTERNAL_LINK="OPEN_EXTERNAL_LINK"})(f=e.RequiredPermission||(e.RequiredPermission={})),(function(p){p.schema={type:"object",properties:Object.assign(Object.assign({isPortableExperience:{description:"Define the current scene as a Portable Experience",type:"boolean",nullable:!0},main:{description:"File that contains the entry point of the scene's code",type:"string",minLength:1},scene:i.SceneParcels.schema},t.displayableProperties),{display:{description:"Information related to how should this land be displayed apart from the normal rendering of the scene",type:"object",properties:{title:{description:"A name so other users can identify what the contents of this land should be",type:"string",nullable:!0},favicon:{description:"DEPRECATED. Allow the land owner to set up a favicon to this land",type:"string",nullable:!0},description:{description:"A description that will be shown on client's nav map when the scene is selected",type:"string",nullable:!0},navmapThumbnail:{type:"string",nullable:!0}},nullable:!0,required:[]},owner:{type:"string",nullable:!0},contact:{description:"Describe different ways of contacting the land owner",type:"object",properties:{name:{type:"string",nullable:!0},email:{type:"string",nullable:!0},im:{type:"string",nullable:!0},url:{type:"string",nullable:!0}},nullable:!0,required:[]},tags:{type:"array",items:{type:"string",minLength:1},nullable:!0},source:Object.assign(Object.assign({},o.Source.schema),{nullable:!0}),spawnPoints:{type:"array",items:u.SpawnPoint.schema,nullable:!0},requiredPermissions:{type:"array",items:{type:"string",enum:Object.values(f)},uniqueItems:!0,nullable:!0},featureToggles:Object.assign(Object.assign({},n.FeatureToggles.schema),{nullable:!0}),worldConfiguration:Object.assign(Object.assign({},c.WorldConfiguration.schema),{nullable:!0}),allowedMediaHostnames:{type:"array",items:{type:"string"},nullable:!0}}),additionalProperties:!0,required:["main","scene"],dependencies:{requiredPermissions:{if:{properties:{requiredPermissions:{type:"array",contains:{const:f.ALLOW_MEDIA_HOSTNAMES}}}},then:{properties:{allowedMediaHostnames:{type:"array",items:{type:"string"},nullable:!1,minItems:1}},required:["allowedMediaHostnames"]},else:{properties:{allowedMediaHostnames:{type:["null","array"],nullable:!0,maxItems:0}}}}}},p.validate=(0,a.generateLazyValidator)(p.schema)})(e.Scene||(e.Scene={}))})(Ih)),Ih}var oR;function nV(){return oR||(oR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SpawnPoint=e.Source=e.RequiredPermission=e.Scene=e.SceneParcels=e.WorldConfiguration=e.FeatureToggles=void 0;var a=pq();Object.defineProperty(e,"FeatureToggles",{enumerable:!0,get:function(){return a.FeatureToggles}});var t=yq();Object.defineProperty(e,"WorldConfiguration",{enumerable:!0,get:function(){return t.WorldConfiguration}});var n=mq();Object.defineProperty(e,"SceneParcels",{enumerable:!0,get:function(){return n.SceneParcels}});var i=rV();Object.defineProperty(e,"Scene",{enumerable:!0,get:function(){return i.Scene}}),Object.defineProperty(e,"RequiredPermission",{enumerable:!0,get:function(){return i.RequiredPermission}});var o=hq();Object.defineProperty(e,"Source",{enumerable:!0,get:function(){return o.Source}});var u=gq();Object.defineProperty(e,"SpawnPoint",{enumerable:!0,get:function(){return u.SpawnPoint}})})(Sh)),Sh}var So={},Nh={},Ch={},sR;function vq(){return sR||(sR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Locale=void 0;const a=rt();(function(t){t.EN="en",t.ES="es"})(e.Locale||(e.Locale={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Locale||(e.Locale={}))})(Ch)),Ch}var uR;function _q(){return uR||(uR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.I18N=void 0;const a=rt(),t=vq();(function(n){n.schema={type:"object",properties:{code:t.Locale.schema,text:{type:"string"}},additionalProperties:!0,required:["code","text"]},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.I18N||(e.I18N={}))})(Nh)),Nh}var jh={},lR;function Eq(){return lR||(lR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Metrics=void 0;const a=rt();(function(t){t.schema={type:"object",properties:{triangles:{type:"number"},materials:{type:"number"},textures:{type:"number"},meshes:{type:"number"},bodies:{type:"number"},entities:{type:"number"}},required:["triangles","materials","textures","meshes","bodies","entities"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Metrics||(e.Metrics={}))})(jh)),jh}var Lh={},cR;function Kb(){return cR||(cR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isStandard=e.standardProperties=void 0;const a=gf(),t=rt();e.standardProperties={collectionAddress:{type:"string",nullable:!1},rarity:a.Rarity.schema};const n={type:"object",properties:Object.assign({},e.standardProperties),required:["collectionAddress","rarity"]},i=(0,t.generateLazyValidator)(n);function o(u){return i(u)}e.isStandard=o})(Lh)),Lh}var Dh={},qh={},dR;function bq(){return dR||(dR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MerkleProof=void 0;const a=rt();(function(t){t.schema={type:"object",properties:{proof:{type:"array",items:{type:"string"}},index:{type:"number"},hashingKeys:{type:"array",items:{type:"string"}},entityHash:{type:"string"}},required:["entityHash","hashingKeys","index","proof"],additionalProperties:!0},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.MerkleProof||(e.MerkleProof={}))})(qh)),qh}var fR;function Yb(){return fR||(fR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isThirdParty=e.thirdPartyProps=void 0;const a=rt(),t=bq();e.thirdPartyProps={merkleProof:t.MerkleProof.schema,content:{type:"object",nullable:!1,additionalProperties:{type:"string"},required:[]}};const n={type:"object",properties:Object.assign({},e.thirdPartyProps),required:["merkleProof","content"],_containsHashingKeys:!0},i={keyword:"_containsHashingKeys",validate:(c,f)=>{var p;const y=f;return!((p=y?.merkleProof)===null||p===void 0)&&p.hashingKeys?y.merkleProof.hashingKeys.every(m=>y.hasOwnProperty(m)):!1},errors:!1},o=(0,a.generateLazyValidator)(n,[i]);function u(c){return o(c)}e.isThirdParty=u})(Dh)),Dh}var kh={},Uh={},Ki={},pR;function wq(){if(pR)return Ki;pR=1,Object.defineProperty(Ki,"__esModule",{value:!0}),Ki.isBaseAvatar=Ki.requiredBaseItemProps=Ki.baseItemProperties=void 0;const e=_q(),a=Eq(),t=Gb();Ki.baseItemProperties=Object.assign(Object.assign({},t.displayableProperties),{id:{type:"string"},name:{type:"string"},description:{type:"string"},i18n:{type:"array",items:e.I18N.schema,minItems:1,uniqueItemProperties:["code"],errorMessage:'${0#} array should not have duplicates for "code"'},thumbnail:{type:"string"},image:{type:"string"},metrics:Object.assign(Object.assign({},a.Metrics.schema),{nullable:!0})}),Ki.requiredBaseItemProps=["id","name","description","i18n","thumbnail","image"];function n(i){if(!i||!i.id)return!1;const o=i.id.split(":"),u=o[1]==="decentraland",c=o[3]==="base-avatars";return o.length===5&&u&&c}return Ki.isBaseAvatar=n,Ki}var yR;function iV(){return yR||(yR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Wearable=void 0;const a=rt(),t=rs(),n=Wb(),i=wq(),o=Kb(),u=Yb(),c=zb();(function(f){f.schema={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({},i.baseItemProperties),o.standardProperties),u.thirdPartyProps),{data:{type:"object",properties:{replaces:{type:"array",items:c.HideableWearableCategory.schema},hides:{type:"array",items:c.HideableWearableCategory.schema},tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:n.WearableRepresentation.schema,minItems:1},category:t.WearableCategory.schema,removesDefaultHiding:{type:"array",nullable:!0,items:c.HideableWearableCategory.schema}},required:["replaces","hides","tags","representations","category"]}}),additionalProperties:!0,required:[],oneOf:[{required:["id","i18n"],prohibited:["merkleProof","content","collectionAddress","rarity"],_isBaseAvatar:!0},{required:[...i.requiredBaseItemProps,"data","collectionAddress","rarity"],prohibited:["merkleProof","content"]},{required:[...i.requiredBaseItemProps,"data","merkleProof","content"],prohibited:["collectionAddress","rarity"],_isThirdParty:!0}],errorMessage:{oneOf:"either standard XOR thirdparty properties conditions must be met"}};const p={keyword:"_isThirdParty",validate:(m,g)=>!m||(0,u.isThirdParty)(g),errors:!1},y={keyword:"_isBaseAvatar",validate:(m,g)=>!m||(0,i.isBaseAvatar)(g),errors:!1};f.validate=(0,a.generateLazyValidator)(f.schema,[p,y])})(e.Wearable||(e.Wearable={}))})(Uh)),Uh}var mR;function aV(){return mR||(mR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.HideableWearableCategory=e.BodyPartCategory=e.WearableCategory=e.Wearable=e.WearableRepresentation=void 0;var a=Wb();Object.defineProperty(e,"WearableRepresentation",{enumerable:!0,get:function(){return a.WearableRepresentation}});var t=iV();Object.defineProperty(e,"Wearable",{enumerable:!0,get:function(){return t.Wearable}});var n=rs();Object.defineProperty(e,"WearableCategory",{enumerable:!0,get:function(){return n.WearableCategory}});var i=dq();Object.defineProperty(e,"BodyPartCategory",{enumerable:!0,get:function(){return i.BodyPartCategory}});var o=zb();Object.defineProperty(e,"HideableWearableCategory",{enumerable:!0,get:function(){return o.HideableWearableCategory}})})(kh)),kh}var Bh={},Fh={},Vh={},Hh={},hR;function Tq(){return hR||(hR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteCategory=void 0;const a=rt();(function(t){t.DANCE="dance",t.STUNT="stunt",t.GREETINGS="greetings",t.FUN="fun",t.POSES="poses",t.REACTIONS="reactions",t.HORROR="horror",t.MISCELLANEOUS="miscellaneous"})(e.EmoteCategory||(e.EmoteCategory={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.EmoteCategory||(e.EmoteCategory={}))})(Hh)),Hh}var zh={},gR;function Sq(){return gR||(gR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteRepresentationADR74=void 0;const a=rt(),t=Hb();(function(n){n.schema={type:"object",properties:{bodyShapes:{type:"array",items:t.BodyShape.schema,minItems:1,uniqueItems:!0},mainFile:{type:"string",minLength:1},contents:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0,contains:{const:{$data:"2/mainFile"}},errorMessage:{contains:"contents should contain mainFile: ${1/mainFile}"}}},required:["bodyShapes","mainFile","contents"]},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.EmoteRepresentationADR74||(e.EmoteRepresentationADR74={}))})(zh)),zh}var vR;function Oq(){return vR||(vR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteDataADR74=void 0;const a=Tq(),t=rt(),n=Sq();(function(i){i.schema={type:"object",properties:{tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:n.EmoteRepresentationADR74.schema,minItems:1},category:a.EmoteCategory.schema,loop:{type:"boolean"}},required:["category","tags","representations","loop"],additionalProperties:!0},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.EmoteDataADR74||(e.EmoteDataADR74={}))})(Vh)),Vh}var _R;function oV(){return _R||(_R=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Emote=void 0;const a=Aq(),t=rt(),n=wq(),i=Kb(),o=Yb(),u=Oq();(function(c){c.schema={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({},n.baseItemProperties),i.standardProperties),o.thirdPartyProps),{emoteDataADR74:u.EmoteDataADR74.schema}),additionalProperties:!0,required:[...n.requiredBaseItemProps],oneOf:[{required:["emoteDataADR74"],oneOf:[{required:["collectionAddress","rarity"],prohibited:["merkleProof","content"],errorMessage:"standard properties conditions are not met"},{required:["merkleProof","content","id","name","description","i18n","image","thumbnail","emoteDataADR74"],_isThirdParty:!0,prohibited:["collectionAddress","rarity"],errorMessage:"thirdparty properties conditions are not met"}],errorMessage:{oneOf:"emote should have either standard or thirdparty properties"}}],errorMessage:{oneOf:'emote should have "emoteDataADR74" and match its schema'}};const f={keyword:"_isThirdParty",validate:(p,y)=>!p||(0,a.isThirdParty)(y),errors:!1};c.validate=(0,t.generateLazyValidator)(c.schema,[f])})(e.Emote||(e.Emote={}))})(Fh)),Fh}var Wh={},ER;function sV(){return ER||(ER=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmotePlayMode=void 0;const a=rt();(function(t){t.SIMPLE="simple",t.LOOP="loop"})(e.EmotePlayMode||(e.EmotePlayMode={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.EmotePlayMode||(e.EmotePlayMode={}))})(Wh)),Wh}var bR;function uV(){return bR||(bR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmotePlayMode=e.EmoteCategory=e.EmoteDataADR74=e.EmoteRepresentationADR74=e.Emote=void 0;var a=oV();Object.defineProperty(e,"Emote",{enumerable:!0,get:function(){return a.Emote}});var t=Sq();Object.defineProperty(e,"EmoteRepresentationADR74",{enumerable:!0,get:function(){return t.EmoteRepresentationADR74}});var n=Oq();Object.defineProperty(e,"EmoteDataADR74",{enumerable:!0,get:function(){return n.EmoteDataADR74}});var i=Tq();Object.defineProperty(e,"EmoteCategory",{enumerable:!0,get:function(){return i.EmoteCategory}});var o=sV();Object.defineProperty(e,"EmotePlayMode",{enumerable:!0,get:function(){return o.EmotePlayMode}})})(Bh)),Bh}var wR;function Aq(){return wR||(wR=1,(function(e){var a=So&&So.__createBinding||(Object.create?(function(p,y,m,g){g===void 0&&(g=m);var S=Object.getOwnPropertyDescriptor(y,m);(!S||("get"in S?!y.__esModule:S.writable||S.configurable))&&(S={enumerable:!0,get:function(){return y[m]}}),Object.defineProperty(p,g,S)}):(function(p,y,m,g){g===void 0&&(g=m),p[g]=y[m]})),t=So&&So.__exportStar||function(p,y){for(var m in p)m!=="default"&&!Object.prototype.hasOwnProperty.call(y,m)&&a(y,p,m)};Object.defineProperty(e,"__esModule",{value:!0}),e.isThirdParty=e.isStandard=e.BodyShape=e.Metrics=e.Locale=e.I18N=void 0;var n=_q();Object.defineProperty(e,"I18N",{enumerable:!0,get:function(){return n.I18N}});var i=vq();Object.defineProperty(e,"Locale",{enumerable:!0,get:function(){return i.Locale}});var o=Eq();Object.defineProperty(e,"Metrics",{enumerable:!0,get:function(){return o.Metrics}});var u=Hb();Object.defineProperty(e,"BodyShape",{enumerable:!0,get:function(){return u.BodyShape}});var c=Kb();Object.defineProperty(e,"isStandard",{enumerable:!0,get:function(){return c.isStandard}});var f=Yb();Object.defineProperty(e,"isThirdParty",{enumerable:!0,get:function(){return f.isThirdParty}}),t(aV(),e),t(uV(),e)})(So)),So}var Oo={},TR;function lV(){return TR||(TR=1,(function(e){var a=Oo&&Oo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Oo&&Oo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(bq(),e)})(Oo)),Oo}var Gh={},Kh={},SR;function Xb(){return SR||(SR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AuthChain=e.AuthLink=e.AuthLinkType=void 0;const a=rt();var t;(function(i){i.SIGNER="SIGNER",i.ECDSA_PERSONAL_EPHEMERAL="ECDSA_EPHEMERAL",i.ECDSA_PERSONAL_SIGNED_ENTITY="ECDSA_SIGNED_ENTITY",i.ECDSA_EIP_1654_EPHEMERAL="ECDSA_EIP_1654_EPHEMERAL",i.ECDSA_EIP_1654_SIGNED_ENTITY="ECDSA_EIP_1654_SIGNED_ENTITY"})(t=e.AuthLinkType||(e.AuthLinkType={}));var n;(function(i){i.schema={type:"object",properties:{type:{type:"string",enum:Object.values(t)},payload:{type:"string"},signature:{type:"string",nullable:!0}},required:["payload","type"],if:{properties:{type:{not:{const:t.SIGNER}}}},then:{required:["signature"]},else:{oneOf:[{properties:{signature:{type:"string",const:""}},required:["signature"]},{properties:{signature:{type:"null"}}}]}},i.validate=(0,a.generateLazyValidator)(i.schema)})(n=e.AuthLink||(e.AuthLink={})),(function(i){i.schema={type:"array",items:n.schema,minItems:1},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.AuthChain||(e.AuthChain={}))})(Kh)),Kh}var OR;function cV(){return OR||(OR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PointerChangesSyncDeployment=e.SnapshotSyncDeployment=void 0;const a=nu(),t=Xb(),n=rt();(function(i){i.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},authChain:t.AuthChain.schema,entityTimestamp:{type:"number",minimum:0}},oneOf:[{properties:{entityId:a.IPFSv1.schema}},{properties:{entityId:a.IPFSv2.schema}}],required:["entityId","entityType","pointers","entityTimestamp","authChain"]},i.validate=(0,n.generateLazyValidator)(i.schema)})(e.SnapshotSyncDeployment||(e.SnapshotSyncDeployment={})),(function(i){i.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},authChain:t.AuthChain.schema,entityTimestamp:{type:"number",minimum:0},localTimestamp:{type:"number",minimum:0}},oneOf:[{properties:{entityId:a.IPFSv1.schema}},{properties:{entityId:a.IPFSv2.schema}}],required:["entityId","entityType","pointers","localTimestamp","entityTimestamp","authChain"]},i.validate=(0,n.generateLazyValidator)(i.schema)})(e.PointerChangesSyncDeployment||(e.PointerChangesSyncDeployment={}))})(Gh)),Gh}var Yh={},Xh={},AR;function Pq(){return AR||(AR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ContentMapping=void 0;const a=nu(),t=rt();(function(n){n.schema={type:"object",properties:{file:{type:"string",minLength:1},hash:{type:"string",oneOf:[a.IPFSv1.schema,a.IPFSv2.schema]}},required:["file","hash"]},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.ContentMapping||(e.ContentMapping={}))})(Xh)),Xh}var PR;function dV(){return PR||(PR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Entity=e.EntityType=void 0;const a=nu(),t=Pq(),n=rt();(function(i){i.SCENE="scene",i.PROFILE="profile",i.WEARABLE="wearable",i.STORE="store",i.EMOTE="emote",i.OUTFITS="outfits"})(e.EntityType||(e.EntityType={})),(function(i){i.schema={type:"object",properties:{version:{type:"string",enum:["v3"]},id:{type:"string",oneOf:[a.IPFSv1.schema,a.IPFSv2.schema]},type:{type:"string"},pointers:{type:"array",items:{type:"string",minLength:1}},timestamp:{type:"number",minimum:0},content:{type:"array",items:t.ContentMapping.schema},metadata:{type:"object",nullable:!0}},required:["version","id","type","pointers","timestamp","content"]},i.validate=(0,n.generateLazyValidator)(i.schema)})(e.Entity||(e.Entity={}))})(Yh)),Yh}var Jh={},IR;function fV(){return IR||(IR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DeploymentWithAuthChain=void 0;const a=Xb(),t=rt();(function(n){n.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},localTimestamp:{type:"number",minimum:0},authChain:a.AuthChain.schema},required:["entityId","entityType","pointers","localTimestamp","authChain"]},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.DeploymentWithAuthChain||(e.DeploymentWithAuthChain={}))})(Jh)),Jh}var Ao={},Qh={},RR;function pV(){return RR||(RR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Outfits=e.Outfit=void 0;const a=rs(),t=nu(),n=rt();var i;(function(o){o.schema={type:"object",required:["bodyShape","eyes","hair","skin","wearables"],properties:{bodyShape:{type:"string"},eyes:{type:"object",required:["color"],properties:{color:t.Color3.schema}},hair:{type:"object",required:["color"],properties:{color:t.Color3.schema}},skin:{type:"object",required:["color"],properties:{color:t.Color3.schema}},wearables:{type:"array",items:{type:"string"}},forceRender:{type:"array",nullable:!0,items:a.WearableCategory.schema}},additionalProperties:!0},o.validate=(0,n.generateLazyValidator)(o.schema)})(i=e.Outfit||(e.Outfit={})),(function(o){o.schema={type:"object",required:["outfits","namesForExtraSlots"],properties:{outfits:{type:"array",items:{type:"object",required:["slot","outfit"],properties:{slot:{type:"number"},outfit:i.schema}}},namesForExtraSlots:{type:"array",uniqueItems:!0,items:{type:"string"}}},additionalProperties:!0},o.validate=(0,n.generateLazyValidator)(o.schema)})(e.Outfits||(e.Outfits={}))})(Qh)),Qh}var MR;function yV(){return MR||(MR=1,(function(e){var a=Ao&&Ao.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Ao&&Ao.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(pV(),e)})(Ao)),Ao}var NR;function Jb(){return NR||(NR=1,(function(e){var a=wo&&wo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=wo&&wo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(tV(),e),t(nV(),e),t(Aq(),e),t(Gb(),e),t(lV(),e),t(cV(),e),t(dV(),e),t(fV(),e),t(yV(),e)})(wo)),wo}var CR;function mV(){return CR||(CR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WearableJson=void 0;const a=gf(),t=rs(),n=Wb(),i=rt(),o=Jb();(function(u){u.schema={type:"object",properties:{description:{type:"string"},rarity:Object.assign(Object.assign({},a.Rarity.schema),{nullable:!0}),name:{type:"string"},data:{type:"object",properties:{replaces:{type:"array",items:t.WearableCategory.schema},hides:{type:"array",items:t.WearableCategory.schema},tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:n.WearableRepresentation.schema,minItems:1},category:t.WearableCategory.schema,removesDefaultHiding:{type:"array",nullable:!0,items:o.HideableWearableCategory.schema}},required:["replaces","hides","tags","representations","category"]}},additionalProperties:!0,required:["description","name","data"]},u.validate=(0,i.generateLazyValidator)(u.schema)})(e.WearableJson||(e.WearableJson={}))})(yh)),yh}var jR;function hV(){return jR||(jR=1,(function(e){var a=bo&&bo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=bo&&bo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(xF(),e),t(mV(),e)})(bo)),bo}var LR;function gV(){return LR||(LR=1,(function(e){var a=_o&&_o.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=_o&&_o.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t($F(),e),t(hV(),e)})(_o)),_o}var Zh={},$h={},xh={},DR;function Iq(){return DR||(DR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getChainId=e.ChainName=void 0;const a=rt(),t=ci();var n;(function(o){o.ETHEREUM_MAINNET="Ethereum Mainnet",o.ETHEREUM_ROPSTEN="Ropsten",o.ETHEREUM_RINKEBY="Rinkeby",o.ETHEREUM_GOERLI="Goerli",o.ETHEREUM_KOVAN="Kovan",o.ETHEREUM_SEPOLIA="Sepolia",o.MATIC_MAINNET="Polygon",o.MATIC_MUMBAI="Mumbai",o.AVALANCHE_MAINNET="Avalanche Mainnet",o.BINANCE_MAINNET="Binance Smart Chain Mainnet",o.ARBITRUM_MAINNET="Arbitrum One",o.OPTIMISM_MAINNET="Optimism Mainnet",o.FANTOM_MAINNET="Fantom Mainnet"})(n=e.ChainName||(e.ChainName={}));function i(o){switch(o){case n.ETHEREUM_MAINNET:return t.ChainId.ETHEREUM_MAINNET;case n.ETHEREUM_ROPSTEN:return t.ChainId.ETHEREUM_ROPSTEN;case n.ETHEREUM_RINKEBY:return t.ChainId.ETHEREUM_RINKEBY;case n.ETHEREUM_GOERLI:return t.ChainId.ETHEREUM_GOERLI;case n.ETHEREUM_KOVAN:return t.ChainId.ETHEREUM_KOVAN;case n.ETHEREUM_SEPOLIA:return t.ChainId.ETHEREUM_SEPOLIA;case n.MATIC_MAINNET:return t.ChainId.MATIC_MAINNET;case n.MATIC_MUMBAI:return t.ChainId.MATIC_MUMBAI;default:return null}}e.getChainId=i,(function(o){o.schema={type:"string",enum:Object.values(o)},o.validate=(0,a.generateLazyValidator)(o.schema)})(n=e.ChainName||(e.ChainName={}))})(xh)),xh}var eg={},qR;function li(){return qR||(qR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Network=void 0;const a=rt();(function(t){t.ETHEREUM="ETHEREUM",t.MATIC="MATIC"})(e.Network||(e.Network={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Network||(e.Network={}))})(eg)),eg}var kR;function ci(){return kR||(kR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getNetwork=e.getNetworkMapping=e.getURNProtocol=e.getChainName=e.ChainId=void 0;const a=rt(),t=Iq(),n=li();var i;(function(p){p[p.ETHEREUM_MAINNET=1]="ETHEREUM_MAINNET",p[p.ETHEREUM_ROPSTEN=3]="ETHEREUM_ROPSTEN",p[p.ETHEREUM_RINKEBY=4]="ETHEREUM_RINKEBY",p[p.ETHEREUM_GOERLI=5]="ETHEREUM_GOERLI",p[p.ETHEREUM_KOVAN=42]="ETHEREUM_KOVAN",p[p.ETHEREUM_SEPOLIA=11155111]="ETHEREUM_SEPOLIA",p[p.MATIC_MAINNET=137]="MATIC_MAINNET",p[p.MATIC_MUMBAI=80001]="MATIC_MUMBAI"})(i=e.ChainId||(e.ChainId={}));function o(p){switch(p){case i.ETHEREUM_MAINNET:return t.ChainName.ETHEREUM_MAINNET;case i.ETHEREUM_ROPSTEN:return t.ChainName.ETHEREUM_ROPSTEN;case i.ETHEREUM_RINKEBY:return t.ChainName.ETHEREUM_RINKEBY;case i.ETHEREUM_GOERLI:return t.ChainName.ETHEREUM_GOERLI;case i.ETHEREUM_KOVAN:return t.ChainName.ETHEREUM_KOVAN;case i.ETHEREUM_SEPOLIA:return t.ChainName.ETHEREUM_SEPOLIA;case i.MATIC_MAINNET:return t.ChainName.MATIC_MAINNET;case i.MATIC_MUMBAI:return t.ChainName.MATIC_MUMBAI;default:return null}}e.getChainName=o;function u(p){switch(p){case i.ETHEREUM_MAINNET:return"ethereum";case i.ETHEREUM_ROPSTEN:return"ropsten";case i.ETHEREUM_RINKEBY:return"rinkeby";case i.ETHEREUM_GOERLI:return"goerli";case i.ETHEREUM_KOVAN:return"kovan";case i.ETHEREUM_SEPOLIA:return"sepolia";case i.MATIC_MAINNET:return"matic";case i.MATIC_MUMBAI:return"mumbai";default:return""}}e.getURNProtocol=u;function c(p){switch(p){case i.ETHEREUM_MAINNET:return{[n.Network.ETHEREUM]:i.ETHEREUM_MAINNET,[n.Network.MATIC]:i.MATIC_MAINNET};case i.ETHEREUM_ROPSTEN:return{[n.Network.ETHEREUM]:i.ETHEREUM_ROPSTEN,[n.Network.MATIC]:i.MATIC_MUMBAI};case i.ETHEREUM_RINKEBY:return{[n.Network.ETHEREUM]:i.ETHEREUM_RINKEBY,[n.Network.MATIC]:i.MATIC_MUMBAI};case i.ETHEREUM_GOERLI:return{[n.Network.ETHEREUM]:i.ETHEREUM_GOERLI,[n.Network.MATIC]:i.MATIC_MUMBAI};case i.ETHEREUM_KOVAN:return{[n.Network.ETHEREUM]:i.ETHEREUM_KOVAN,[n.Network.MATIC]:i.MATIC_MUMBAI};case i.ETHEREUM_SEPOLIA:return{[n.Network.ETHEREUM]:i.ETHEREUM_SEPOLIA,[n.Network.MATIC]:i.MATIC_MUMBAI};case i.MATIC_MAINNET:return{[n.Network.ETHEREUM]:i.MATIC_MAINNET,[n.Network.MATIC]:i.MATIC_MAINNET};case i.MATIC_MUMBAI:return{[n.Network.ETHEREUM]:i.MATIC_MUMBAI,[n.Network.MATIC]:i.MATIC_MUMBAI};default:return{[n.Network.ETHEREUM]:i.ETHEREUM_MAINNET,[n.Network.MATIC]:i.MATIC_MAINNET}}}e.getNetworkMapping=c;function f(p){switch(p){case i.ETHEREUM_MAINNET:case i.ETHEREUM_ROPSTEN:case i.ETHEREUM_GOERLI:case i.ETHEREUM_KOVAN:case i.ETHEREUM_RINKEBY:case i.ETHEREUM_SEPOLIA:return n.Network.ETHEREUM;case i.MATIC_MAINNET:case i.MATIC_MUMBAI:return n.Network.MATIC}}e.getNetwork=f,(function(p){p.schema={type:"number",enum:Object.values(p)},p.validate=(0,a.generateLazyValidator)(p.schema)})(i=e.ChainId||(e.ChainId={}))})($h)),$h}var tg={},UR;function Qb(){return UR||(UR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ListingStatus=void 0;const a=rt();(function(t){t.OPEN="open",t.SOLD="sold",t.CANCELLED="cancelled"})(e.ListingStatus||(e.ListingStatus={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.ListingStatus||(e.ListingStatus={}))})(tg)),tg}var BR;function vV(){return BR||(BR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Bid=e.BidSortBy=void 0;const a=rt(),t=ci(),n=Qb(),i=li();(function(o){o.RECENTLY_OFFERED="recently_offered",o.RECENTLY_UPDATED="recently_updated",o.MOST_EXPENSIVE="most_expensive"})(e.BidSortBy||(e.BidSortBy={})),(function(o){o.schema={type:"object",properties:{id:{type:"string"},bidAddress:{type:"string"},bidder:{type:"string"},seller:{type:"string"},price:{type:"string"},fingerprint:{type:"string"},status:n.ListingStatus.schema,blockchainId:{type:"string"},blockNumber:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},network:i.Network.schema,chainId:t.ChainId.schema,expiresAt:{type:"integer"},createdAt:{type:"integer"},updatedAt:{type:"integer"}},required:["id","bidAddress","bidder","seller","price","fingerprint","status","blockchainId","blockNumber","contractAddress","tokenId","network","chainId","expiresAt","createdAt","updatedAt"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.Bid||(e.Bid={}))})(Zh)),Zh}var rg={},FR;function _V(){return FR||(FR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Account=e.AccountSortBy=void 0;const a=rt();(function(t){t.MOST_SALES="most_sales",t.MOST_PURCHASES="most_purchases",t.MOST_SPENT="most_spent",t.MOST_EARNED="most_earned",t.MOST_ROYALTIES="most_royalties",t.MOST_COLLECTIONS="most_collections"})(e.AccountSortBy||(e.AccountSortBy={})),(function(t){t.schema={type:"object",properties:{id:{type:"string"},address:{type:"string"},sales:{type:"integer"},purchases:{type:"integer"},spent:{type:"string"},earned:{type:"string"},royalties:{type:"string"},collections:{type:"number"}},required:["id","address","sales","purchases","spent","earned","royalties","collections"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Account||(e.Account={}))})(rg)),rg}var ng={},VR;function EV(){return VR||(VR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Collection=e.CollectionSortBy=void 0;const a=rt(),t=ci(),n=li();(function(i){i.NEWEST="newest",i.NAME="name",i.RECENTLY_REVIEWED="recently_reviewed",i.RECENTLY_LISTED="recently_listed",i.SIZE="size"})(e.CollectionSortBy||(e.CollectionSortBy={})),(function(i){i.schema={type:"object",properties:{urn:{type:"string"},creator:{type:"string"},name:{type:"string"},contractAddress:{type:"string"},size:{type:"integer"},isOnSale:{type:"boolean"},createdAt:{type:"integer"},updatedAt:{type:"integer"},reviewedAt:{type:"integer"},network:n.Network.schema,chainId:t.ChainId.schema,firstListedAt:{type:"integer",nullable:!0}},required:["urn","creator","name","contractAddress","isOnSale","size","createdAt","updatedAt","reviewedAt","network","chainId"]},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.Collection||(e.Collection={}))})(ng)),ng}var ig={},ag={},HR;function vf(){return HR||(HR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NFTCategory=void 0;const a=rt();(function(t){t.PARCEL="parcel",t.ESTATE="estate",t.WEARABLE="wearable",t.ENS="ens",t.EMOTE="emote"})(e.NFTCategory||(e.NFTCategory={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.NFTCategory||(e.NFTCategory={}))})(ag)),ag}var zR;function bV(){return zR||(zR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Contract=e.ContractSortBy=void 0;const a=rt(),t=ci(),n=li(),i=vf();(function(o){o.NAME="name"})(e.ContractSortBy||(e.ContractSortBy={})),(function(o){o.schema={type:"object",properties:{name:{type:"string"},address:{type:"string"},category:i.NFTCategory.schema,network:n.Network.schema,chainId:t.ChainId.schema},required:["name","address","category","network","chainId"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.Contract||(e.Contract={}))})(ig)),ig}var og={},sg={},WR;function Rq(){return WR||(WR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NFT=e.NFTSortBy=void 0;const a=rt(),t=ci(),n=Jb(),i=li(),o=vf(),u=gf(),c=rs();(function(f){f.NAME="name",f.NEWEST="newest",f.RECENTLY_LISTED="recently_listed",f.RECENTLY_SOLD="recently_sold",f.CHEAPEST="cheapest",f.RENTAL_LISTING_DATE="rental_listing_date",f.RENTAL_DATE="rented_date",f.MAX_RENTAL_PRICE="max_rental_price",f.MIN_RENTAL_PRICE="min_rental_price"})(e.NFTSortBy||(e.NFTSortBy={})),(function(f){f.schema={type:"object",properties:{id:{type:"string"},tokenId:{type:"string"},contractAddress:{type:"string"},activeOrderId:{type:"string",nullable:!0},openRentalId:{type:"string",nullable:!0},owner:{type:"string"},name:{type:"string"},image:{type:"string"},url:{type:"string"},data:{type:"object",nullable:!1,properties:{parcel:{type:"object",properties:{description:{type:["string"],nullable:!0},x:{type:"string"},y:{type:"string"},estate:{type:"object",properties:{tokenId:{type:"string"},name:{type:"string"}},required:["tokenId","name"],nullable:!0}},required:["description","x","y","estate"],nullable:!0},estate:{type:"object",properties:{description:{type:["string"],nullable:!0},size:{type:"integer"},parcels:{type:"array",items:{type:"object",properties:{x:{type:"number"},y:{type:"number"}},required:["x","y"]}}},required:["description","size","parcels"],nullable:!0},wearable:{type:"object",properties:{bodyShapes:{type:"array",items:n.BodyShape.schema},category:c.WearableCategory.schema,description:{type:"string"},rarity:u.Rarity.schema,isSmart:{type:"boolean"}},required:["bodyShapes","category","description","rarity","isSmart"],nullable:!0},ens:{type:"object",properties:{subdomain:{type:"string"}},required:["subdomain"],nullable:!0},emote:{type:"object",properties:{bodyShapes:{type:"array",items:n.BodyShape.schema},category:n.EmoteCategory.schema,description:{type:"string"},rarity:u.Rarity.schema,loop:{type:"boolean"},hasSound:{type:"boolean"},hasGeometry:{type:"boolean"}},required:["bodyShapes","category","description","rarity","loop"],nullable:!0}},required:[]},issuedId:{type:"string",nullable:!0},itemId:{type:"string",nullable:!0},category:o.NFTCategory.schema,network:i.Network.schema,chainId:t.ChainId.schema,createdAt:{type:"integer"},updatedAt:{type:"integer"},soldAt:{type:"integer"},urn:{type:"string",nullable:!0}},required:["id","tokenId","contractAddress","activeOrderId","openRentalId","owner","name","image","url","data","issuedId","itemId","category","network","chainId","createdAt","updatedAt","soldAt"]},f.validate=(0,a.generateLazyValidator)(f.schema)})(e.NFT||(e.NFT={}))})(sg)),sg}var GR;function wV(){return GR||(GR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Item=e.ItemSortBy=void 0;const a=rt(),t=ci(),n=li(),i=Rq(),o=vf();(function(u){u.NAME="name",u.NEWEST="newest",u.RECENTLY_REVIEWED="recently_reviewed",u.RECENTLY_SOLD="recently_sold",u.RECENTLY_LISTED="recently_listed",u.CHEAPEST="cheapest"})(e.ItemSortBy||(e.ItemSortBy={})),(function(u){u.schema={type:"object",properties:{id:{type:"string"},name:{type:"string"},thumbnail:{type:"string"},url:{type:"string"},category:o.NFTCategory.schema,contractAddress:{type:"string"},itemId:{type:"string"},rarity:{type:"string"},price:{type:"string"},available:{type:"integer"},isOnSale:{type:"boolean"},creator:{type:"string"},beneficiary:{type:"string",nullable:!0},data:i.NFT.schema.properties.data,network:n.Network.schema,chainId:t.ChainId.schema,urn:{type:"string"},createdAt:{type:"integer"},updatedAt:{type:"integer"},reviewedAt:{type:"integer"},soldAt:{type:"integer"},firstListedAt:{type:"integer",nullable:!0},picks:{type:"object",properties:{pickedByUser:{type:"boolean",nullable:!0},count:{type:"integer"}},required:["count"],nullable:!0},minPrice:{type:"string",nullable:!0},minListingPrice:{type:"string",nullable:!0},maxListingPrice:{type:"string",nullable:!0},listings:{type:"integer",nullable:!0},owners:{type:"integer",nullable:!0}},required:["id","name","thumbnail","url","category","contractAddress","itemId","rarity","price","available","isOnSale","creator","data","network","chainId","createdAt","updatedAt","soldAt"]},u.validate=(0,a.generateLazyValidator)(u.schema)})(e.Item||(e.Item={}))})(og)),og}var ug={},KR;function TV(){return KR||(KR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MetaTransaction=void 0;const a=rt();(function(t){t.schema={type:"object",properties:{from:{type:"string"},params:{type:"array",items:[{type:"string"},{type:"string"}],additionalItems:!1,minItems:2}},additionalProperties:!1,required:["from","params"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.MetaTransaction||(e.MetaTransaction={}))})(ug)),ug}var lg={},YR;function SV(){return YR||(YR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Mint=e.MintSortBy=void 0;const a=rt(),t=ci(),n=li();(function(i){i.RECENTLY_MINTED="recently_minted",i.MOST_EXPENSIVE="most_expensive"})(e.MintSortBy||(e.MintSortBy={})),(function(i){i.schema={type:"object",properties:{id:{type:"string"},creator:{type:"string"},beneficiary:{type:"string"},minter:{type:"string"},price:{type:"string",nullable:!0},contractAddress:{type:"string"},tokenId:{type:"string"},itemId:{type:"string"},issuedId:{type:"string"},timestamp:{type:"integer"},network:n.Network.schema,chainId:t.ChainId.schema},required:["id","creator","beneficiary","minter","itemId","tokenId","issuedId","contractAddress","price","timestamp","network","chainId"]},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.Mint||(e.Mint={}))})(lg)),lg}var cg={},XR;function OV(){return XR||(XR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CatalogSortDirection=e.CatalogSortBy=void 0,(function(a){a.NEWEST="newest",a.RECENTLY_SOLD="recently_sold",a.CHEAPEST="cheapest",a.MOST_EXPENSIVE="most_expensive",a.RECENTLY_LISTED="recently_listed"})(e.CatalogSortBy||(e.CatalogSortBy={})),(function(a){a.ASC="asc",a.DESC="desc"})(e.CatalogSortDirection||(e.CatalogSortDirection={}))})(cg)),cg}var dg={},JR;function AV(){return JR||(JR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Order=e.OrderSortBy=void 0;const a=rt(),t=ci(),n=Qb(),i=li();(function(o){o.RECENTLY_LISTED="recently_listed",o.RECENTLY_UPDATED="recently_updated",o.CHEAPEST="cheapest",o.ISSUED_ID_ASC="issued_id_asc",o.ISSUED_ID_DESC="issued_id_desc",o.OLDEST="oldest"})(e.OrderSortBy||(e.OrderSortBy={})),(function(o){o.schema={type:"object",properties:{id:{type:"string"},marketplaceAddress:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},owner:{type:"string"},buyer:{type:["string"],nullable:!0},price:{type:"string"},status:n.ListingStatus.schema,network:i.Network.schema,chainId:t.ChainId.schema,expiresAt:{type:"integer"},createdAt:{type:"integer"},updatedAt:{type:"integer"},issuedId:{type:"string"}},required:["id","marketplaceAddress","contractAddress","tokenId","owner","buyer","price","status","network","chainId","expiresAt","createdAt","updatedAt"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.Order||(e.Order={}))})(dg)),dg}var fg={},QR;function PV(){return QR||(QR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProviderType=void 0;const a=rt();(function(t){t.INJECTED="injected",t.MAGIC="magic",t.FORTMATIC="formatic",t.NETWORK="network",t.WALLET_CONNECT="wallet_connect",t.WALLET_CONNECT_V2="wallet_connect_v2",t.WALLET_LINK="wallet_link",t.METAMASK_MOBILE="metamask_mobile",t.AUTH_SERVER="auth_server"})(e.ProviderType||(e.ProviderType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.ProviderType||(e.ProviderType={}))})(fg)),fg}var pg={},ZR;function Mq(){return ZR||(ZR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SaleType=void 0;const a=rt();(function(t){t.ORDER="order",t.BID="bid",t.MINT="mint"})(e.SaleType||(e.SaleType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.SaleType||(e.SaleType={}))})(pg)),pg}var yg={},$R;function IV(){return $R||($R=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Sale=e.SaleSortBy=void 0;const a=rt(),t=ci(),n=Mq(),i=li();(function(o){o.RECENTLY_SOLD="recently_sold",o.MOST_EXPENSIVE="most_expensive"})(e.SaleSortBy||(e.SaleSortBy={})),(function(o){o.schema={type:"object",properties:{id:{type:"string"},type:n.SaleType.schema,buyer:{type:"string"},seller:{type:"string"},price:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},itemId:{type:"string"},txHash:{type:"string"},timestamp:{type:"integer"},network:i.Network.schema,chainId:t.ChainId.schema},required:["id","buyer","seller","itemId","tokenId","price","contractAddress","timestamp","txHash","network","chainId"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.Sale||(e.Sale={}))})(yg)),yg}var mg={},xR;function RV(){return xR||(xR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.RentalListingCreation=e.PeriodCreation=e.RentalsListingsSortBy=e.RentalsListingsFilterByCategory=e.RentalsListingSortDirection=e.RentalStatus=void 0;const a=rt(),t=ci(),n=li();(function(o){o.OPEN="open",o.CANCELLED="cancelled",o.EXECUTED="executed",o.CLAIMED="claimed"})(e.RentalStatus||(e.RentalStatus={})),(function(o){o.ASC="asc",o.DESC="desc"})(e.RentalsListingSortDirection||(e.RentalsListingSortDirection={})),(function(o){o.PARCEL="parcel",o.ESTATE="estate"})(e.RentalsListingsFilterByCategory||(e.RentalsListingsFilterByCategory={})),(function(o){o.LAND_CREATION_DATE="land_creation_date",o.RENTAL_LISTING_DATE="rental_listing_date",o.RENTAL_DATE="rented_date",o.NAME="name",o.MAX_RENTAL_PRICE="max_rental_price",o.MIN_RENTAL_PRICE="min_rental_price"})(e.RentalsListingsSortBy||(e.RentalsListingsSortBy={}));var i;(function(o){o.schema={type:"object",properties:{minDays:{type:"integer",minimum:0,maximum:2147483647},maxDays:{type:"integer",minimum:0,maximum:2147483647},pricePerDay:{type:"string",pattern:"^[0-9]+$"}},additionalProperties:!1,required:["minDays","maxDays","pricePerDay"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(i=e.PeriodCreation||(e.PeriodCreation={})),(function(o){o.schema={type:"object",properties:{network:n.Network.schema,chainId:t.ChainId.schema,expiration:{type:"number",minimum:0},signature:{type:"string",minLength:1},tokenId:{type:"string",minLength:1},nonces:{type:"array",minItems:3,maxItems:3,items:{minLength:1,type:"string",pattern:"^[0-9]+$"}},contractAddress:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"},rentalContractAddress:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"},periods:{type:"array",minItems:1,maxItems:100,uniqueItems:!0,items:i.schema},target:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"}},additionalProperties:!1,required:["network","chainId","expiration","signature","nonces","tokenId","contractAddress","rentalContractAddress","periods","target"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.RentalListingCreation||(e.RentalListingCreation={}))})(mg)),mg}var hg={},eM;function MV(){return eM||(eM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AnalyticsDayDataSortBy=void 0,(function(a){a.DATE="date",a.MOST_SALES="most_sales"})(e.AnalyticsDayDataSortBy||(e.AnalyticsDayDataSortBy={}))})(hg)),hg}var gg={},tM;function NV(){return tM||(tM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Store=void 0;const a=rt();(function(t){t.schema={type:"object",properties:{id:{type:"string"},version:{type:"number"},owner:{type:"string"},description:{type:"string"},links:{type:"array",items:{type:"object",properties:{name:{type:"string"},url:{type:"string"}},required:["name","url"]}},images:{type:"array",items:{type:"object",properties:{name:{type:"string"},file:{type:"string"}},required:["name","file"]}}},required:["id","version","owner","description","links","images"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Store||(e.Store={}))})(gg)),gg}var vg={},rM;function CV(){return rM||(rM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.GenderFilterOption=e.WearableGender=void 0;const a=rt();(function(t){t.MALE="male",t.FEMALE="female"})(e.WearableGender||(e.WearableGender={})),(function(t){t.MALE="male",t.FEMALE="female",t.UNISEX="unisex"})(e.GenderFilterOption||(e.GenderFilterOption={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.WearableGender||(e.WearableGender={}))})(vg)),vg}var _g={},nM;function jV(){return nM||(nM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.World=e.isInsideWorldLimits=e.getWorld=void 0;const a=rt();function t(){return{validWorldRanges:[{xMin:-150,yMin:-150,xMax:150,yMax:150},{xMin:62,yMin:151,xMax:162,yMax:158},{xMin:151,yMin:144,xMax:162,yMax:150},{xMin:151,yMin:59,xMax:163,yMax:143}]}}e.getWorld=t;function n(i,o){const u=t().validWorldRanges;for(const c of u)if(i>=c.xMin&&i<=c.xMax&&o>=c.yMin&&o<=c.yMax)return!0;return!1}e.isInsideWorldLimits=n,(function(i){i.schema={type:"object",required:["validWorldRanges"],properties:{validWorldRanges:{type:"array",default:[{xMin:-150,yMin:-150,xMax:150,yMax:150}],items:{type:"object",required:["xMin","yMin","xMax","yMax"],properties:{xMin:{type:"integer"},yMin:{type:"integer"},xMax:{type:"integer"},yMax:{type:"integer"}}}}},additionalProperties:!1},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.World||(e.World={}))})(_g)),_g}var Po={},Eg={},iM;function LV(){return iM||(iM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewCamera=void 0;const a=rt();(function(t){t.STATIC="static",t.INTERACTIVE="interactive"})(e.PreviewCamera||(e.PreviewCamera={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewCamera||(e.PreviewCamera={}))})(Eg)),Eg}var bg={},aM;function DV(){return aM||(aM=1,Object.defineProperty(bg,"__esModule",{value:!0})),bg}var wg={},oM;function qV(){return oM||(oM=1,Object.defineProperty(wg,"__esModule",{value:!0})),wg}var Tg={},sM;function kV(){return sM||(sM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewEmoteEventType=void 0;const a=rt();(function(t){t.ANIMATION_PLAY="animation_play",t.ANIMATION_PAUSE="animation_pause",t.ANIMATION_LOOP="animation_loop",t.ANIMATION_END="animation_end",t.ANIMATION_PLAYING="animation_playing"})(e.PreviewEmoteEventType||(e.PreviewEmoteEventType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewEmoteEventType||(e.PreviewEmoteEventType={}))})(Tg)),Tg}var Sg={},uM;function UV(){return uM||(uM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewEmote=void 0;const a=rt();(function(t){t.IDLE="idle",t.WALK="walk",t.RUN="run",t.JUMP="jump",t.CLAP="clap",t.DAB="dab",t.DANCE="dance",t.FASHION="fashion",t.FASHION_2="fashion-2",t.FASHION_3="fashion-3",t.FASHION_4="fashion-4",t.LOVE="love",t.MONEY="money",t.FIST_PUMP="fist-pump",t.HEAD_EXPLODE="head-explode",t.WAVE="wave"})(e.PreviewEmote||(e.PreviewEmote={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewEmote||(e.PreviewEmote={}))})(Sg)),Sg}var Og={},lM;function BV(){return lM||(lM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.sendMessage=e.PreviewMessageType=void 0;const a=rt();(function(n){n.READY="ready",n.LOAD="load",n.ERROR="error",n.UPDATE="update",n.CONTROLLER_REQUEST="controller_request",n.CONTROLLER_RESPONSE="controller_response",n.EMOTE_EVENT="emote_event"})(e.PreviewMessageType||(e.PreviewMessageType={})),(function(n){n.schema={type:"string",enum:Object.values(n)},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.PreviewMessageType||(e.PreviewMessageType={}));const t=(n,i,o,u="*")=>{const c={type:i,payload:o};n.postMessage(c,u)};e.sendMessage=t})(Og)),Og}var Ag={},cM;function FV(){return cM||(cM=1,Object.defineProperty(Ag,"__esModule",{value:!0})),Ag}var Pg={},dM;function VV(){return dM||(dM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewProjection=void 0;const a=rt();(function(t){t.ORTHOGRAPHIC="orthographic",t.PERSPECTIVE="perspective"})(e.PreviewProjection||(e.PreviewProjection={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewProjection||(e.PreviewProjection={}))})(Pg)),Pg}var Ig={},fM;function HV(){return fM||(fM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewType=void 0;const a=rt();(function(t){t.TEXTURE="texture",t.WEARABLE="wearable",t.AVATAR="avatar"})(e.PreviewType||(e.PreviewType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewType||(e.PreviewType={}))})(Ig)),Ig}var Rg={},pM;function zV(){return pM||(pM=1,Object.defineProperty(Rg,"__esModule",{value:!0})),Rg}var Mg={},yM;function WV(){return yM||(yM=1,Object.defineProperty(Mg,"__esModule",{value:!0})),Mg}var Ng={},mM;function GV(){return mM||(mM=1,Object.defineProperty(Ng,"__esModule",{value:!0})),Ng}var Cg={},hM;function KV(){return hM||(hM=1,Object.defineProperty(Cg,"__esModule",{value:!0})),Cg}var jg={},gM;function YV(){return gM||(gM=1,Object.defineProperty(jg,"__esModule",{value:!0})),jg}var Lg={},vM;function XV(){return vM||(vM=1,Object.defineProperty(Lg,"__esModule",{value:!0})),Lg}var Dg={},_M;function JV(){return _M||(_M=1,Object.defineProperty(Dg,"__esModule",{value:!0})),Dg}var qg={},EM;function QV(){return EM||(EM=1,Object.defineProperty(qg,"__esModule",{value:!0})),qg}var bM;function ZV(){return bM||(bM=1,(function(e){var a=Po&&Po.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Po&&Po.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(LV(),e),t(DV(),e),t(qV(),e),t(kV(),e),t(UV(),e),t(BV(),e),t(FV(),e),t(VV(),e),t(HV(),e),t(zV(),e),t(WV(),e),t(GV(),e),t(KV(),e),t(YV(),e),t(XV(),e),t(JV(),e),t(QV(),e)})(Po)),Po}var kg={},wM;function $V(){return wM||(wM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LinkerAuthorization=void 0;const a=rt();(function(t){t.schema={type:"object",properties:{name:{type:"string"},desc:{type:"string"},startDate:{type:"string",nullable:!0},endDate:{type:"string",nullable:!0},contactInfo:{type:"object",properties:{name:{type:"string"}},required:["name"]},addresses:{type:"array",items:{type:"string"},minItems:1},plots:{type:"array",items:{type:"string"},minItems:1}},required:["name","desc","contactInfo","addresses","plots"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.LinkerAuthorization||(e.LinkerAuthorization={}))})(kg)),kg}var TM;function xV(){return TM||(TM=1,(function(e){var a=Zn&&Zn.__createBinding||(Object.create?(function(ye,Me,Ne,qe){qe===void 0&&(qe=Ne);var we=Object.getOwnPropertyDescriptor(Me,Ne);(!we||("get"in we?!Me.__esModule:we.writable||we.configurable))&&(we={enumerable:!0,get:function(){return Me[Ne]}}),Object.defineProperty(ye,qe,we)}):(function(ye,Me,Ne,qe){qe===void 0&&(qe=Ne),ye[qe]=Me[Ne]})),t=Zn&&Zn.__setModuleDefault||(Object.create?(function(ye,Me){Object.defineProperty(ye,"default",{enumerable:!0,value:Me})}):function(ye,Me){ye.default=Me}),n=Zn&&Zn.__importStar||function(ye){if(ye&&ye.__esModule)return ye;var Me={};if(ye!=null)for(var Ne in ye)Ne!=="default"&&Object.prototype.hasOwnProperty.call(ye,Ne)&&a(Me,ye,Ne);return t(Me,ye),Me},i=Zn&&Zn.__exportStar||function(ye,Me){for(var Ne in ye)Ne!=="default"&&!Object.prototype.hasOwnProperty.call(Me,Ne)&&a(Me,ye,Ne)};Object.defineProperty(e,"__esModule",{value:!0}),e.sdk=e.isInsideWorldLimits=e.getWorld=e.World=e.GenderFilterOption=e.WearableGender=e.Store=e.AnalyticsDayDataSortBy=e.PeriodCreation=e.RentalListingCreation=e.RentalsListingsSortBy=e.RentalsListingsFilterByCategory=e.RentalsListingSortDirection=e.RentalStatus=e.SaleSortBy=e.Sale=e.SaleType=e.Rarity=e.ProviderType=e.OrderSortBy=e.Order=e.CatalogSortDirection=e.CatalogSortBy=e.NFTSortBy=e.NFT=e.NFTCategory=e.Network=e.MintSortBy=e.Mint=e.MetaTransaction=e.ListingStatus=e.ItemSortBy=e.Item=e.ContractSortBy=e.Contract=e.CollectionSortBy=e.Collection=e.getChainId=e.ChainName=e.getURNProtocol=e.getChainName=e.ChainId=e.AccountSortBy=e.Account=e.BidSortBy=e.Bid=void 0;const o=n(gV());e.sdk=o,i(rt(),e);var u=vV();Object.defineProperty(e,"Bid",{enumerable:!0,get:function(){return u.Bid}}),Object.defineProperty(e,"BidSortBy",{enumerable:!0,get:function(){return u.BidSortBy}});var c=_V();Object.defineProperty(e,"Account",{enumerable:!0,get:function(){return c.Account}}),Object.defineProperty(e,"AccountSortBy",{enumerable:!0,get:function(){return c.AccountSortBy}});var f=ci();Object.defineProperty(e,"ChainId",{enumerable:!0,get:function(){return f.ChainId}}),Object.defineProperty(e,"getChainName",{enumerable:!0,get:function(){return f.getChainName}}),Object.defineProperty(e,"getURNProtocol",{enumerable:!0,get:function(){return f.getURNProtocol}});var p=Iq();Object.defineProperty(e,"ChainName",{enumerable:!0,get:function(){return p.ChainName}}),Object.defineProperty(e,"getChainId",{enumerable:!0,get:function(){return p.getChainId}});var y=EV();Object.defineProperty(e,"Collection",{enumerable:!0,get:function(){return y.Collection}}),Object.defineProperty(e,"CollectionSortBy",{enumerable:!0,get:function(){return y.CollectionSortBy}});var m=bV();Object.defineProperty(e,"Contract",{enumerable:!0,get:function(){return m.Contract}}),Object.defineProperty(e,"ContractSortBy",{enumerable:!0,get:function(){return m.ContractSortBy}});var g=wV();Object.defineProperty(e,"Item",{enumerable:!0,get:function(){return g.Item}}),Object.defineProperty(e,"ItemSortBy",{enumerable:!0,get:function(){return g.ItemSortBy}});var S=Qb();Object.defineProperty(e,"ListingStatus",{enumerable:!0,get:function(){return S.ListingStatus}});var M=TV();Object.defineProperty(e,"MetaTransaction",{enumerable:!0,get:function(){return M.MetaTransaction}});var R=SV();Object.defineProperty(e,"Mint",{enumerable:!0,get:function(){return R.Mint}}),Object.defineProperty(e,"MintSortBy",{enumerable:!0,get:function(){return R.MintSortBy}});var I=li();Object.defineProperty(e,"Network",{enumerable:!0,get:function(){return I.Network}});var N=vf();Object.defineProperty(e,"NFTCategory",{enumerable:!0,get:function(){return N.NFTCategory}});var E=Rq();Object.defineProperty(e,"NFT",{enumerable:!0,get:function(){return E.NFT}}),Object.defineProperty(e,"NFTSortBy",{enumerable:!0,get:function(){return E.NFTSortBy}});var P=OV();Object.defineProperty(e,"CatalogSortBy",{enumerable:!0,get:function(){return P.CatalogSortBy}}),Object.defineProperty(e,"CatalogSortDirection",{enumerable:!0,get:function(){return P.CatalogSortDirection}});var T=AV();Object.defineProperty(e,"Order",{enumerable:!0,get:function(){return T.Order}}),Object.defineProperty(e,"OrderSortBy",{enumerable:!0,get:function(){return T.OrderSortBy}});var v=PV();Object.defineProperty(e,"ProviderType",{enumerable:!0,get:function(){return v.ProviderType}});var O=gf();Object.defineProperty(e,"Rarity",{enumerable:!0,get:function(){return O.Rarity}});var C=Mq();Object.defineProperty(e,"SaleType",{enumerable:!0,get:function(){return C.SaleType}});var z=IV();Object.defineProperty(e,"Sale",{enumerable:!0,get:function(){return z.Sale}}),Object.defineProperty(e,"SaleSortBy",{enumerable:!0,get:function(){return z.SaleSortBy}});var U=RV();Object.defineProperty(e,"RentalStatus",{enumerable:!0,get:function(){return U.RentalStatus}}),Object.defineProperty(e,"RentalsListingSortDirection",{enumerable:!0,get:function(){return U.RentalsListingSortDirection}}),Object.defineProperty(e,"RentalsListingsFilterByCategory",{enumerable:!0,get:function(){return U.RentalsListingsFilterByCategory}}),Object.defineProperty(e,"RentalsListingsSortBy",{enumerable:!0,get:function(){return U.RentalsListingsSortBy}}),Object.defineProperty(e,"RentalListingCreation",{enumerable:!0,get:function(){return U.RentalListingCreation}}),Object.defineProperty(e,"PeriodCreation",{enumerable:!0,get:function(){return U.PeriodCreation}});var K=MV();Object.defineProperty(e,"AnalyticsDayDataSortBy",{enumerable:!0,get:function(){return K.AnalyticsDayDataSortBy}});var ae=NV();Object.defineProperty(e,"Store",{enumerable:!0,get:function(){return ae.Store}});var _e=CV();Object.defineProperty(e,"WearableGender",{enumerable:!0,get:function(){return _e.WearableGender}}),Object.defineProperty(e,"GenderFilterOption",{enumerable:!0,get:function(){return _e.GenderFilterOption}});var be=jV();Object.defineProperty(e,"World",{enumerable:!0,get:function(){return be.World}}),Object.defineProperty(e,"getWorld",{enumerable:!0,get:function(){return be.getWorld}}),Object.defineProperty(e,"isInsideWorldLimits",{enumerable:!0,get:function(){return be.isInsideWorldLimits}}),i(ZV(),e),i(Jb(),e),i(nu(),e),i($V(),e),i(Xb(),e),i(Pq(),e)})(Zn)),Zn}var SM;function Nq(){if(SM)return Gi;SM=1,Object.defineProperty(Gi,"__esModule",{value:!0}),Gi.LocalStorageUtils=Gi.Action=Gi.SINGLE_SIGN_ON_TARGET=void 0;const e=xo(),a=JF(),t=xV();Gi.SINGLE_SIGN_ON_TARGET="single-sign-on";var n;(function(u){u.GET_IDENTITY="get-identity",u.SET_IDENTITY="set-identity",u.GET_CONNECTION_DATA="get-connection-data",u.SET_CONNECTION_DATA="set-connection-data",u.INIT="init"})(n||(Gi.Action=n={}));var i;(function(u){u.IDENTITY_KEY="single-sign-on-v2-identity",u.CONNECTION_DATA_KEY="single-sign-on-v2-connection-data";function c(g){o.validateAddress(g);const S=localStorage.getItem(m(g));if(!S)return null;const M=JSON.parse(S);o.validateAuthIdentity(M);const R={...M,expiration:new Date(M.expiration)};return R.expiration=new Date(R.expiration),R.expiration.getTime()<=Date.now()?null:R}u.getIdentity=c;function f(g,S){o.validateAddress(g);const M=m(g);S?(o.validateAuthIdentity(JSON.parse(JSON.stringify(S))),localStorage.setItem(M,JSON.stringify(S))):localStorage.removeItem(M)}u.setIdentity=f;function p(){const g=localStorage.getItem(u.CONNECTION_DATA_KEY);if(!g)return null;const S=JSON.parse(g);return o.validateConnectionData(S),S}u.getConnectionData=p;function y(g){g?(o.validateConnectionData(g),localStorage.setItem(u.CONNECTION_DATA_KEY,JSON.stringify(g))):localStorage.removeItem(u.CONNECTION_DATA_KEY)}u.setConnectionData=y;function m(g){return`${u.IDENTITY_KEY}-${g}`}})(i||(Gi.LocalStorageUtils=i={}));var o;return(function(u){const c=new e.default;(0,a.default)(c);const f={type:"string",pattern:"^0x[a-fA-F0-9]{40}$"},p={type:"object",properties:{provider:t.ProviderType.schema,address:f},required:["address","provider"],additionalProperties:!1},y={type:"object",properties:{authChain:t.AuthChain.schema,expiration:{type:"string",format:"date-time"},ephemeralIdentity:{type:"object",properties:{address:{type:"string"},privateKey:{type:"string"},publicKey:{type:"string"}},required:["address","privateKey","publicKey"],additionalProperties:!1}},required:["ephemeralIdentity","authChain","expiration"],additionalProperties:!1},m=c.compile(p),g=c.compile(y),S=c.compile(f);function M(N){if(!m(N))throw new Error(`Invalid connection data: ${JSON.stringify(m.errors)}`)}u.validateConnectionData=M;function R(N){if(!g(N))throw new Error(`Invalid auth identity: ${JSON.stringify(g.errors)}`)}u.validateAuthIdentity=R;function I(N){if(!S(N))throw new Error(`Invalid address: ${JSON.stringify(S.errors)}`)}u.validateAddress=I})(o||(o={})),Gi}var OM;function eH(){if(OM)return Hu;OM=1,Object.defineProperty(Hu,"__esModule",{value:!0}),Hu.SingleSignOn=void 0;const e=KF(),a=Nq(),t=a.SINGLE_SIGN_ON_TARGET;var n;(function(o){o[o.NOT_INITIALIZED=0]="NOT_INITIALIZED",o[o.INITIALIZING=1]="INITIALIZING",o[o.INITIALIZED=2]="INITIALIZED"})(n||(n={}));let i=class Cq{constructor(){this.initState=n.NOT_INITIALIZED,this.isLocal=!1,this.src=null,this.idCounter=1}static getInstance(){return this.instance||(this.instance=new Cq),this.instance}async init({src:u,isUrlOptions:c,timeout:f}={}){if(this.initState!==n.NOT_INITIALIZED){console.log("SSO cannot be initialized more than once");return}this.initState=n.INITIALIZING;try{if(!u)throw new Error("Using local by configuration");if(!(0,e.default)(u,{protocols:["https"],require_valid_protocol:!0,...c??{}}))throw new Error(`Invalid url: ${u}`);if(document.getElementById(t))throw new Error("SSO Element was not created by this client");const p=document.createElement("iframe");p.id=t,p.src=u,p.style.width="0",p.style.height="0",p.style.border="none",p.style.position="absolute",document.body.appendChild(p),await Promise.race([this.waitForInitMessage(),new Promise((y,m)=>setTimeout(()=>m(new Error("Initialization timeout")),f??2e3))]),console.log("SSO initialized")}catch(p){this.isLocal=!0,console.log("SSO initialized locally, reason: "+p.message)}this.initState=n.INITIALIZED,this.src=u??null}async setConnectionData(u){await this.handle(a.Action.SET_CONNECTION_DATA,u)}async getConnectionData(){return await this.handle(a.Action.GET_CONNECTION_DATA)}async setIdentity(u,c){await this.handle(a.Action.SET_IDENTITY,{address:u,identity:c})}async getIdentity(u){return await this.handle(a.Action.GET_IDENTITY,u)}async handle(u,c){if(this.initState!==n.INITIALIZED)throw new Error("SSO is not initialized");if(this.isLocal)switch(u){case a.Action.SET_CONNECTION_DATA:return a.LocalStorageUtils.setConnectionData(c);case a.Action.GET_CONNECTION_DATA:return a.LocalStorageUtils.getConnectionData();case a.Action.SET_IDENTITY:const{address:f,identity:p}=c;return a.LocalStorageUtils.setIdentity(f,p);case a.Action.GET_IDENTITY:return a.LocalStorageUtils.getIdentity(c);default:throw new Error("Unsupported action")}else{const f=this.getIframeWindow(),p=this.idCounter++,y=this.waitForActionResponse(p,u);return f.postMessage({target:a.SINGLE_SIGN_ON_TARGET,id:p,action:u,payload:c},this.src),y}}getIframeWindow(){const u=document.getElementById(t);if(!u)throw new Error("Unable to obtain the SSO iframe element");if(u.tagName!=="IFRAME")throw new Error("The SSO element is not an iframe");const c=u;if(new URL(c.src).origin!==new URL(this.src).origin)throw new Error("The SSO iframe src has been modified");const f=c.contentWindow;if(!f)throw new Error("Unable to obtain the SSO iframe window");return f}waitForInitMessage(){return new Promise((u,c)=>{const f=p=>{p.data.target!==a.SINGLE_SIGN_ON_TARGET||p.data.action!==a.Action.INIT||(window.removeEventListener("message",f),p.data.ok||c(new Error(p.data.payload)),u())};window.addEventListener("message",f)})}waitForActionResponse(u,c){return new Promise((f,p)=>{const y=({data:m})=>{m.target!==a.SINGLE_SIGN_ON_TARGET||m.id!==u||m.action!==c||(window.removeEventListener("message",y),m.ok?f(m.payload):p(m.payload))};window.addEventListener("message",y)})}};return Hu.SingleSignOn=i,i.instance=null,Hu}var AM;function tH(){return AM||(AM=1,(function(e){var a=vo&&vo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=vo&&vo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(eH(),e),t(Nq(),e)})(vo)),vo}var yb=tH(),Ug={},xn={},PM;function Xe(){if(PM)return xn;PM=1;var e=xn&&xn.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(xn,"__esModule",{value:!0}),xn.validateType=xn.generateLazyValidator=xn.Ajv=void 0;const a=e(xo());xn.Ajv=a.default;const t=e(ff()),n=e(pf());function i(u,c){let f=null;const p=(y,m)=>{if(!f){const g=new a.default({$data:!0,allErrors:!0});(0,t.default)(g),(0,n.default)(g,{singleError:!0}),c?.forEach(S=>g.addKeyword(S)),f=g.compile(u),Object.defineProperty(p,"errors",{get(){return f?.errors}})}return f(y,m)};return p}xn.generateLazyValidator=i;function o(u,c){return u.validate(c)}return xn.validateType=o,xn}var Bg={},IM;function jq(){return IM||(IM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getChainId=e.ChainName=void 0;const a=Xe(),t=Dn();var n;(function(o){o.ETHEREUM_MAINNET="Ethereum Mainnet",o.ETHEREUM_ROPSTEN="Ropsten",o.ETHEREUM_RINKEBY="Rinkeby",o.ETHEREUM_GOERLI="Goerli",o.ETHEREUM_KOVAN="Kovan",o.ETHEREUM_SEPOLIA="Sepolia",o.MATIC_MAINNET="Polygon",o.MATIC_MUMBAI="Mumbai",o.MATIC_AMOY="Amoy",o.AVALANCHE_MAINNET="Avalanche",o.BINANCE_MAINNET="Binance Smart Chain",o.ARBITRUM_MAINNET="Arbitrum",o.OPTIMISM_MAINNET="Optimism",o.FANTOM_MAINNET="Fantom"})(n=e.ChainName||(e.ChainName={}));function i(o){switch(o){case n.ETHEREUM_MAINNET:return t.ChainId.ETHEREUM_MAINNET;case n.ETHEREUM_ROPSTEN:return t.ChainId.ETHEREUM_ROPSTEN;case n.ETHEREUM_RINKEBY:return t.ChainId.ETHEREUM_RINKEBY;case n.ETHEREUM_GOERLI:return t.ChainId.ETHEREUM_GOERLI;case n.ETHEREUM_KOVAN:return t.ChainId.ETHEREUM_KOVAN;case n.ETHEREUM_SEPOLIA:return t.ChainId.ETHEREUM_SEPOLIA;case n.MATIC_MAINNET:return t.ChainId.MATIC_MAINNET;case n.MATIC_MUMBAI:return t.ChainId.MATIC_MUMBAI;case n.MATIC_AMOY:return t.ChainId.MATIC_AMOY;case n.AVALANCHE_MAINNET:return t.ChainId.AVALANCHE_MAINNET;case n.BINANCE_MAINNET:return t.ChainId.BSC_MAINNET;case n.ARBITRUM_MAINNET:return t.ChainId.ARBITRUM_MAINNET;case n.OPTIMISM_MAINNET:return t.ChainId.OPTIMISM_MAINNET;case n.FANTOM_MAINNET:return t.ChainId.FANTOM_MAINNET;default:return null}}e.getChainId=i,(function(o){o.schema={type:"string",enum:Object.values(o)},o.validate=(0,a.generateLazyValidator)(o.schema)})(n=e.ChainName||(e.ChainName={}))})(Bg)),Bg}var Fg={},RM;function di(){return RM||(RM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Network=void 0;const a=Xe();(function(t){t.ETHEREUM="ETHEREUM",t.MATIC="MATIC",t.AVALANCHE="AVALANCHE",t.BSC="BINANCE SMART CHAIN",t.OPTIMISM="OPTIMISM",t.ARBITRUM="ARBITRUM",t.FANTOM="FANTOM"})(e.Network||(e.Network={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Network||(e.Network={}))})(Fg)),Fg}var MM;function Dn(){return MM||(MM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getNetwork=e.getNetworkMapping=e.getURNProtocol=e.getChainName=e.ChainId=void 0;const a=Xe(),t=jq(),n=di();var i;(function(p){p[p.ETHEREUM_MAINNET=1]="ETHEREUM_MAINNET",p[p.ETHEREUM_ROPSTEN=3]="ETHEREUM_ROPSTEN",p[p.ETHEREUM_RINKEBY=4]="ETHEREUM_RINKEBY",p[p.ETHEREUM_GOERLI=5]="ETHEREUM_GOERLI",p[p.ETHEREUM_KOVAN=42]="ETHEREUM_KOVAN",p[p.ETHEREUM_SEPOLIA=11155111]="ETHEREUM_SEPOLIA",p[p.MATIC_MAINNET=137]="MATIC_MAINNET",p[p.MATIC_MUMBAI=80001]="MATIC_MUMBAI",p[p.MATIC_AMOY=80002]="MATIC_AMOY",p[p.BSC_MAINNET=56]="BSC_MAINNET",p[p.OPTIMISM_MAINNET=10]="OPTIMISM_MAINNET",p[p.ARBITRUM_MAINNET=42161]="ARBITRUM_MAINNET",p[p.FANTOM_MAINNET=250]="FANTOM_MAINNET",p[p.AVALANCHE_MAINNET=43114]="AVALANCHE_MAINNET"})(i=e.ChainId||(e.ChainId={}));function o(p){switch(p){case i.ETHEREUM_MAINNET:return t.ChainName.ETHEREUM_MAINNET;case i.ETHEREUM_ROPSTEN:return t.ChainName.ETHEREUM_ROPSTEN;case i.ETHEREUM_RINKEBY:return t.ChainName.ETHEREUM_RINKEBY;case i.ETHEREUM_GOERLI:return t.ChainName.ETHEREUM_GOERLI;case i.ETHEREUM_KOVAN:return t.ChainName.ETHEREUM_KOVAN;case i.ETHEREUM_SEPOLIA:return t.ChainName.ETHEREUM_SEPOLIA;case i.MATIC_MAINNET:return t.ChainName.MATIC_MAINNET;case i.MATIC_MUMBAI:return t.ChainName.MATIC_MUMBAI;case i.MATIC_AMOY:return t.ChainName.MATIC_AMOY;case i.BSC_MAINNET:return t.ChainName.BINANCE_MAINNET;case i.ARBITRUM_MAINNET:return t.ChainName.ARBITRUM_MAINNET;case i.OPTIMISM_MAINNET:return t.ChainName.OPTIMISM_MAINNET;case i.FANTOM_MAINNET:return t.ChainName.FANTOM_MAINNET;case i.AVALANCHE_MAINNET:return t.ChainName.AVALANCHE_MAINNET;default:return null}}e.getChainName=o;function u(p){switch(p){case i.ETHEREUM_MAINNET:return"ethereum";case i.ETHEREUM_ROPSTEN:return"ropsten";case i.ETHEREUM_RINKEBY:return"rinkeby";case i.ETHEREUM_GOERLI:return"goerli";case i.ETHEREUM_KOVAN:return"kovan";case i.ETHEREUM_SEPOLIA:return"sepolia";case i.MATIC_MAINNET:return"matic";case i.MATIC_MUMBAI:return"mumbai";case i.MATIC_AMOY:return"amoy";default:return""}}e.getURNProtocol=u;function c(p){const y={[n.Network.BSC]:i.BSC_MAINNET,[n.Network.OPTIMISM]:i.OPTIMISM_MAINNET,[n.Network.ARBITRUM]:i.ARBITRUM_MAINNET,[n.Network.FANTOM]:i.FANTOM_MAINNET,[n.Network.AVALANCHE]:i.AVALANCHE_MAINNET};switch(p){case i.ETHEREUM_MAINNET:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_MAINNET,[n.Network.MATIC]:i.MATIC_MAINNET},y);case i.ETHEREUM_ROPSTEN:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_ROPSTEN,[n.Network.MATIC]:i.MATIC_MUMBAI},y);case i.ETHEREUM_RINKEBY:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_RINKEBY,[n.Network.MATIC]:i.MATIC_MUMBAI},y);case i.ETHEREUM_GOERLI:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_GOERLI,[n.Network.MATIC]:i.MATIC_MUMBAI},y);case i.ETHEREUM_KOVAN:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_KOVAN,[n.Network.MATIC]:i.MATIC_MUMBAI},y);case i.ETHEREUM_SEPOLIA:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_SEPOLIA,[n.Network.MATIC]:i.MATIC_AMOY},y);case i.MATIC_MAINNET:return Object.assign({[n.Network.ETHEREUM]:i.MATIC_MAINNET,[n.Network.MATIC]:i.MATIC_MAINNET},y);case i.MATIC_MUMBAI:return Object.assign({[n.Network.ETHEREUM]:i.MATIC_MUMBAI,[n.Network.MATIC]:i.MATIC_MUMBAI},y);case i.MATIC_AMOY:return Object.assign({[n.Network.ETHEREUM]:i.MATIC_AMOY,[n.Network.MATIC]:i.MATIC_AMOY},y);default:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_MAINNET,[n.Network.MATIC]:i.MATIC_MAINNET},y)}}e.getNetworkMapping=c;function f(p){switch(p){case i.ETHEREUM_MAINNET:case i.ETHEREUM_ROPSTEN:case i.ETHEREUM_GOERLI:case i.ETHEREUM_KOVAN:case i.ETHEREUM_RINKEBY:case i.ETHEREUM_SEPOLIA:return n.Network.ETHEREUM;case i.MATIC_MAINNET:case i.MATIC_MUMBAI:case i.MATIC_AMOY:return n.Network.MATIC;case i.BSC_MAINNET:return n.Network.BSC;case i.OPTIMISM_MAINNET:return n.Network.OPTIMISM;case i.ARBITRUM_MAINNET:return n.Network.ARBITRUM;case i.FANTOM_MAINNET:return n.Network.FANTOM;case i.AVALANCHE_MAINNET:return n.Network.AVALANCHE}}e.getNetwork=f,(function(p){p.schema={type:"number",enum:Object.values(p)},p.validate=(0,a.generateLazyValidator)(p.schema)})(i=e.ChainId||(e.ChainId={}))})(Ug)),Ug}var wt=Dn(),Vg={},NM;function Lq(){return NM||(NM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProviderType=void 0;const a=Xe();(function(t){t.INJECTED="injected",t.MAGIC="magic",t.MAGIC_TEST="magic_test",t.FORTMATIC="formatic",t.NETWORK="network",t.WALLET_CONNECT="wallet_connect",t.WALLET_CONNECT_V2="wallet_connect_v2",t.WALLET_LINK="wallet_link",t.METAMASK_MOBILE="metamask_mobile",t.AUTH_SERVER="auth_server"})(e.ProviderType||(e.ProviderType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.ProviderType||(e.ProviderType={}))})(Vg)),Vg}var Ct=Lq(),Xi;(function(e){e.Update="Web3ReactUpdate",e.Error="Web3ReactError",e.Deactivate="Web3ReactDeactivate"})(Xi||(Xi={}));var zd={exports:{}},CM;function rH(){if(CM)return zd.exports;CM=1;var e=typeof Reflect=="object"?Reflect:null,a=e&&typeof e.apply=="function"?e.apply:function(v,O,C){return Function.prototype.apply.call(v,O,C)},t;e&&typeof e.ownKeys=="function"?t=e.ownKeys:Object.getOwnPropertySymbols?t=function(v){return Object.getOwnPropertyNames(v).concat(Object.getOwnPropertySymbols(v))}:t=function(v){return Object.getOwnPropertyNames(v)};function n(T){console&&console.warn&&console.warn(T)}var i=Number.isNaN||function(v){return v!==v};function o(){o.init.call(this)}zd.exports=o,zd.exports.once=N,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var u=10;function c(T){if(typeof T!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof T)}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(T){if(typeof T!="number"||T<0||i(T))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+T+".");u=T}}),o.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(v){if(typeof v!="number"||v<0||i(v))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+v+".");return this._maxListeners=v,this};function f(T){return T._maxListeners===void 0?o.defaultMaxListeners:T._maxListeners}o.prototype.getMaxListeners=function(){return f(this)},o.prototype.emit=function(v){for(var O=[],C=1;C<arguments.length;C++)O.push(arguments[C]);var z=v==="error",U=this._events;if(U!==void 0)z=z&&U.error===void 0;else if(!z)return!1;if(z){var K;if(O.length>0&&(K=O[0]),K instanceof Error)throw K;var ae=new Error("Unhandled error."+(K?" ("+K.message+")":""));throw ae.context=K,ae}var _e=U[v];if(_e===void 0)return!1;if(typeof _e=="function")a(_e,this,O);else for(var be=_e.length,ye=M(_e,be),C=0;C<be;++C)a(ye[C],this,O);return!0};function p(T,v,O,C){var z,U,K;if(c(O),U=T._events,U===void 0?(U=T._events=Object.create(null),T._eventsCount=0):(U.newListener!==void 0&&(T.emit("newListener",v,O.listener?O.listener:O),U=T._events),K=U[v]),K===void 0)K=U[v]=O,++T._eventsCount;else if(typeof K=="function"?K=U[v]=C?[O,K]:[K,O]:C?K.unshift(O):K.push(O),z=f(T),z>0&&K.length>z&&!K.warned){K.warned=!0;var ae=new Error("Possible EventEmitter memory leak detected. "+K.length+" "+String(v)+" listeners added. Use emitter.setMaxListeners() to increase limit");ae.name="MaxListenersExceededWarning",ae.emitter=T,ae.type=v,ae.count=K.length,n(ae)}return T}o.prototype.addListener=function(v,O){return p(this,v,O,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(v,O){return p(this,v,O,!0)};function y(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function m(T,v,O){var C={fired:!1,wrapFn:void 0,target:T,type:v,listener:O},z=y.bind(C);return z.listener=O,C.wrapFn=z,z}o.prototype.once=function(v,O){return c(O),this.on(v,m(this,v,O)),this},o.prototype.prependOnceListener=function(v,O){return c(O),this.prependListener(v,m(this,v,O)),this},o.prototype.removeListener=function(v,O){var C,z,U,K,ae;if(c(O),z=this._events,z===void 0)return this;if(C=z[v],C===void 0)return this;if(C===O||C.listener===O)--this._eventsCount===0?this._events=Object.create(null):(delete z[v],z.removeListener&&this.emit("removeListener",v,C.listener||O));else if(typeof C!="function"){for(U=-1,K=C.length-1;K>=0;K--)if(C[K]===O||C[K].listener===O){ae=C[K].listener,U=K;break}if(U<0)return this;U===0?C.shift():R(C,U),C.length===1&&(z[v]=C[0]),z.removeListener!==void 0&&this.emit("removeListener",v,ae||O)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(v){var O,C,z;if(C=this._events,C===void 0)return this;if(C.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):C[v]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete C[v]),this;if(arguments.length===0){var U=Object.keys(C),K;for(z=0;z<U.length;++z)K=U[z],K!=="removeListener"&&this.removeAllListeners(K);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(O=C[v],typeof O=="function")this.removeListener(v,O);else if(O!==void 0)for(z=O.length-1;z>=0;z--)this.removeListener(v,O[z]);return this};function g(T,v,O){var C=T._events;if(C===void 0)return[];var z=C[v];return z===void 0?[]:typeof z=="function"?O?[z.listener||z]:[z]:O?I(z):M(z,z.length)}o.prototype.listeners=function(v){return g(this,v,!0)},o.prototype.rawListeners=function(v){return g(this,v,!1)},o.listenerCount=function(T,v){return typeof T.listenerCount=="function"?T.listenerCount(v):S.call(T,v)},o.prototype.listenerCount=S;function S(T){var v=this._events;if(v!==void 0){var O=v[T];if(typeof O=="function")return 1;if(O!==void 0)return O.length}return 0}o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]};function M(T,v){for(var O=new Array(v),C=0;C<v;++C)O[C]=T[C];return O}function R(T,v){for(;v+1<T.length;v++)T[v]=T[v+1];T.pop()}function I(T){for(var v=new Array(T.length),O=0;O<v.length;++O)v[O]=T[O].listener||T[O];return v}function N(T,v){return new Promise(function(O,C){function z(K){T.removeListener(v,U),C(K)}function U(){typeof T.removeListener=="function"&&T.removeListener("error",z),O([].slice.call(arguments))}P(T,v,U,{once:!0}),v!=="error"&&E(T,z,{once:!0})})}function E(T,v,O){typeof T.on=="function"&&P(T,"error",v,O)}function P(T,v,O,C){if(typeof T.on=="function")C.once?T.once(v,O):T.on(v,O);else if(typeof T.addEventListener=="function")T.addEventListener(v,function z(U){C.once&&T.removeEventListener(v,z),O(U)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof T)}return zd.exports}var Dq=rH();const b6=B2(Dq);function nH(e,a){e.prototype=Object.create(a.prototype),e.prototype.constructor=e,e.__proto__=a}var iu=(function(e){nH(a,e);function a(n){var i,o=n===void 0?{}:n,u=o.supportedChainIds;return i=e.call(this)||this,i.supportedChainIds=u,i}var t=a.prototype;return t.emitUpdate=function(i){this.emit(Xi.Update,i)},t.emitError=function(i){this.emit(Xi.Error,i)},t.emitDeactivate=function(){this.emit(Xi.Deactivate)},a})(Dq.EventEmitter);const iH="modulepreload",aH=function(e){return"https://cdn.decentraland.org/@dcl-regenesislabs/mobile-hub/1.0.0-20717249605.commit-a29cf32/"+e},jM={},Pl=function(a,t,n){let i=Promise.resolve();if(t&&t.length>0){let f=function(p){return Promise.all(p.map(y=>Promise.resolve(y).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),c=u?.nonce||u?.getAttribute("nonce");i=f(t.map(p=>{if(p=aH(p),p in jM)return;jM[p]=!0;const y=p.endsWith(".css"),m=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${m}`))return;const g=document.createElement("link");if(g.rel=y?"stylesheet":iH,y||(g.as="script"),g.crossOrigin="",g.href=p,c&&g.setAttribute("nonce",c),document.head.appendChild(g),y)return new Promise((S,M)=>{g.addEventListener("load",S),g.addEventListener("error",()=>M(new Error(`Unable to preload CSS for ${p}`)))})}))}function o(u){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=u,window.dispatchEvent(c),!c.defaultPrevented)throw u}return i.then(u=>{for(const c of u||[])c.status==="rejected"&&o(c.reason);return a().catch(o)})};var ei={},Io={},Ro={},Hg={},LM;function oH(){return LM||(LM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SceneUpdate=e.SCENE_UPDATE=void 0;const a=Xe();e.SCENE_UPDATE="SCENE_UPDATE",(function(t){t.schema={type:"object",properties:{type:{type:"string",enum:[e.SCENE_UPDATE]},payload:{type:"object",properties:{sceneId:{type:"string"},sceneType:{type:"string"}},additionalProperties:!1,required:["sceneId","sceneType"]}},required:["payload","type"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.SceneUpdate||(e.SceneUpdate={}))})(Hg)),Hg}var zg={},DM;function sH(){return DM||(DM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Update=e.UPDATE=void 0;const a=Xe();e.UPDATE="update",(function(t){t.schema={type:"object",properties:{type:{type:"string",enum:[e.UPDATE]}},required:["type"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Update||(e.Update={}))})(zg)),zg}var qM;function uH(){return qM||(qM=1,(function(e){var a=Ro&&Ro.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Ro&&Ro.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(oH(),e),t(sH(),e)})(Ro)),Ro}var Mo={},Wg={},kM;function lH(){return kM||(kM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProjectType=void 0;const a=Xe();(function(t){t.SCENE="scene",t.SMART_ITEM="smart-item",t.PORTABLE_EXPERIENCE="portable-experience",t.LIBRARY="library"})(e.ProjectType||(e.ProjectType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.ProjectType||(e.ProjectType={}))})(Wg)),Wg}var Gg={},Kg={},UM;function _f(){return UM||(UM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Rarity=void 0;const a=Xe();(function(t){t.UNIQUE="unique",t.MYTHIC="mythic",t.EXOTIC="exotic",t.LEGENDARY="legendary",t.EPIC="epic",t.RARE="rare",t.UNCOMMON="uncommon",t.COMMON="common"})(e.Rarity||(e.Rarity={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema);const n={[t.UNIQUE]:1,[t.MYTHIC]:10,[t.EXOTIC]:50,[t.LEGENDARY]:100,[t.EPIC]:1e3,[t.RARE]:5e3,[t.UNCOMMON]:1e4,[t.COMMON]:1e5},i={[t.UNIQUE]:"#FFE617",[t.MYTHIC]:"#FB7DE3",[t.EXOTIC]:"#E4FFB8",[t.LEGENDARY]:"#A657ED",[t.EPIC]:"#6397F2",[t.RARE]:"#3AD682",[t.UNCOMMON]:"#FF8563",[t.COMMON]:"#D4E0E0"},o={[t.UNIQUE]:"#FFB626",[t.MYTHIC]:"#FF63E1",[t.EXOTIC]:"#CAFF73",[t.LEGENDARY]:"#842DDA",[t.EPIC]:"#3D85E6",[t.RARE]:"#36CF75",[t.UNCOMMON]:"#ED6D4F",[t.COMMON]:"#ABC1C1"};function u(y){return n[y]}t.getMaxSupply=u;function c(y){return o[y]}t.getColor=c;function f(){return[t.UNIQUE,t.MYTHIC,t.EXOTIC,t.LEGENDARY,t.EPIC,t.RARE,t.UNCOMMON,t.COMMON]}t.getRarities=f;function p(y){return[i[y],o[y]]}t.getGradient=p})(e.Rarity||(e.Rarity={}))})(Kg)),Kg}var Yg={},BM;function ns(){return BM||(BM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WearableCategory=void 0;const a=Xe();(function(t){t.EYEBROWS="eyebrows",t.EYES="eyes",t.FACIAL_HAIR="facial_hair",t.HAIR="hair",t.BODY_SHAPE="body_shape",t.MOUTH="mouth",t.UPPER_BODY="upper_body",t.LOWER_BODY="lower_body",t.FEET="feet",t.EARRING="earring",t.EYEWEAR="eyewear",t.HAT="hat",t.HELMET="helmet",t.MASK="mask",t.TIARA="tiara",t.TOP_HEAD="top_head",t.SKIN="skin",t.HANDS_WEAR="hands_wear"})(e.WearableCategory||(e.WearableCategory={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.WearableCategory||(e.WearableCategory={}))})(Yg)),Yg}var Xg={},Jg={},FM;function Zb(){return FM||(FM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BodyShape=void 0;const a=Xe();(function(t){t.MALE="urn:decentraland:off-chain:base-avatars:BaseMale",t.FEMALE="urn:decentraland:off-chain:base-avatars:BaseFemale"})(e.BodyShape||(e.BodyShape={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.BodyShape||(e.BodyShape={}))})(Jg)),Jg}var Qg={},Zg={},VM;function qq(){return VM||(VM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BodyPartCategory=void 0;const a=Xe();(function(t){t.HEAD="head",t.HANDS="hands"})(e.BodyPartCategory||(e.BodyPartCategory={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.BodyPartCategory||(e.BodyPartCategory={}))})(Zg)),Zg}var HM;function $b(){return HM||(HM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.HideableWearableCategory=void 0;const a=ns(),t=Xe(),n=qq();(function(i){i.schema={oneOf:[Object.assign({},a.WearableCategory.schema),Object.assign({},n.BodyPartCategory.schema)]},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.HideableWearableCategory||(e.HideableWearableCategory={}))})(Qg)),Qg}var zM;function xb(){return zM||(zM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WearableRepresentation=void 0;const a=Xe(),t=Zb(),n=$b();(function(i){i.schema={type:"object",properties:{bodyShapes:{type:"array",items:t.BodyShape.schema,minItems:1,uniqueItems:!0},mainFile:{type:"string",minLength:1},contents:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0,contains:{const:{$data:"2/mainFile"}}},overrideHides:{type:"array",items:n.HideableWearableCategory.schema},overrideReplaces:{type:"array",items:n.HideableWearableCategory.schema}},required:["bodyShapes","mainFile","contents","overrideHides","overrideReplaces"]},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.WearableRepresentation||(e.WearableRepresentation={}))})(Xg)),Xg}var No={},Co={},$g={},xg={},WM;function is(){return WM||(WM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.IPFSv1=e.IPFSv2=e.EthAddress=e.Color3=void 0;const a=Xe();(function(t){t.schema={type:"object",required:["r","g","b"],properties:{r:{type:"number",minimum:0,maximum:1},g:{type:"number",minimum:0,maximum:1},b:{type:"number",minimum:0,maximum:1}}};const n=(0,a.generateLazyValidator)(t.schema);t.validate=i=>n(i)})(e.Color3||(e.Color3={})),(function(t){t.schema={type:"string",pattern:"^0x[a-fA-F0-9]{40}$"};const n=new RegExp(t.schema.pattern);t.validate=i=>n.test(i)})(e.EthAddress||(e.EthAddress={})),(function(t){t.schema={type:"string",pattern:"^(ba)[a-zA-Z0-9]{57}$"};const n=new RegExp(t.schema.pattern);t.validate=i=>n.test(i)})(e.IPFSv2||(e.IPFSv2={})),(function(t){t.schema={type:"string",pattern:"^(Qm)[a-zA-Z0-9]{44}$"};const n=new RegExp(t.schema.pattern);t.validate=i=>n.test(i)})(e.IPFSv1||(e.IPFSv1={}))})(xg)),xg}var GM;function kq(){return GM||(GM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Avatar=e.Link=e.LinkUrl=e.AvatarInfo=e.Snapshots=void 0;const a=ns(),t=is(),n=Xe();var i;(function(f){f.schema={type:"object",required:["face256","body"],properties:{face256:t.IPFSv2.schema,body:t.IPFSv2.schema}},f.validate=(0,n.generateLazyValidator)(f.schema)})(i=e.Snapshots||(e.Snapshots={}));var o;(function(f){f.schema={type:"object",required:["bodyShape","eyes","hair","skin"],properties:{bodyShape:{type:"string"},eyes:{type:"object",required:["color"],properties:{color:t.Color3.schema}},hair:{type:"object",required:["color"],properties:{color:t.Color3.schema}},skin:{type:"object",required:["color"],properties:{color:t.Color3.schema}},wearables:{type:"array",items:{type:"string"}},forceRender:{type:"array",nullable:!0,items:a.WearableCategory.schema},emotes:{type:"array",items:{type:"object",properties:{slot:{type:"number"},urn:{type:"string"}},required:["slot","urn"]},nullable:!0},snapshots:i.schema},additionalProperties:!0},f.validate=(0,n.generateLazyValidator)(f.schema)})(o=e.AvatarInfo||(e.AvatarInfo={}));var u;(function(f){f.schema={type:"string",maxLength:2083,pattern:"^(?:https?):\\/\\/[^\\s/$.?#].[^\\s]*$"};const p=new RegExp(f.schema.pattern,"i");f.validate=y=>p.test(y)})(u=e.LinkUrl||(e.LinkUrl={}));var c;(function(f){f.schema={type:"object",required:["title","url"],properties:{title:{type:"string"},url:u.schema}}})(c=e.Link||(e.Link={})),(function(f){f.schema={type:"object",required:["name","description","ethAddress","version","tutorialStep","avatar","hasClaimedName"],properties:{userId:{type:"string"},name:{type:"string"},description:{type:"string"},links:{type:"array",maxItems:5,items:c.schema,nullable:!0},country:{nullable:!0,type:"string"},employmentStatus:{nullable:!0,type:"string"},gender:{nullable:!0,type:"string"},pronouns:{nullable:!0,type:"string"},relationshipStatus:{nullable:!0,type:"string"},sexualOrientation:{nullable:!0,type:"string"},language:{nullable:!0,type:"string"},profession:{nullable:!0,type:"string"},birthdate:{nullable:!0,type:"number"},realName:{nullable:!0,type:"string"},hobbies:{nullable:!0,type:"string"},ethAddress:t.EthAddress.schema,version:{type:"number"},tutorialStep:{type:"number"},email:{type:"string",nullable:!0},blocked:{type:"array",items:{type:"string"},nullable:!0},muted:{type:"array",items:{type:"string"},nullable:!0},interests:{type:"array",items:{type:"string"},nullable:!0},hasClaimedName:{type:"boolean"},hasConnectedWeb3:{type:"boolean",nullable:!0},avatar:o.schema},additionalProperties:!0},f.validate=(0,n.generateLazyValidator)(f.schema)})(e.Avatar||(e.Avatar={}))})($g)),$g}var ev={},KM;function cH(){return KM||(KM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Profile=void 0;const a=Xe(),t=kq();(function(n){n.schema={type:"object",required:["avatars"],properties:{avatars:{type:"array",items:t.Avatar.schema}},additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.Profile||(e.Profile={}))})(ev)),ev}var YM;function dH(){return YM||(YM=1,(function(e){var a=Co&&Co.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Co&&Co.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(kq(),e),t(cH(),e)})(Co)),Co}var tv={},rv={},XM;function Uq(){return XM||(XM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.FeatureToggles=e.portableExperiencesToggles=e.toggles=void 0;const a=Xe();e.toggles=["enabled","disabled"],e.portableExperiencesToggles=[...e.toggles,"hideUi"],(function(t){t.schema={type:"object",properties:{voiceChat:{type:"string",enum:e.toggles,nullable:!0},portableExperiences:{type:"string",enum:e.portableExperiencesToggles,nullable:!0,errorMessage:`valid options are ${e.portableExperiencesToggles.join(", ")}`}},errorMessage:`valid options are ${e.toggles.join(", ")}`,required:[]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.FeatureToggles||(e.FeatureToggles={}))})(rv)),rv}var nv={},JM;function Bq(){return JM||(JM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WorldConfiguration=void 0;const a=Xe();(function(t){t.schema={type:"object",properties:{name:{type:"string",nullable:!0},skybox:{type:"number",nullable:!0},minimapVisible:{type:"boolean",nullable:!0},miniMapConfig:{type:"object",nullable:!0,properties:{visible:{type:"boolean",nullable:!0},dataImage:{type:"string",nullable:!0},estateImage:{type:"string",nullable:!0}}},skyboxConfig:{type:"object",nullable:!0,properties:{fixedTime:{type:"number",nullable:!0},textures:{type:"array",nullable:!0,items:{type:"string"},oneOf:[{minItems:0,maxItems:0},{minItems:1,maxItems:1},{minItems:6,maxItems:6}],errorMessage:"customSkybox must be an array of 0, 1 or 6 strings"}}},fixedAdapter:{type:"string",nullable:!0},placesConfig:{type:"object",nullable:!0,properties:{optOut:{type:"boolean",nullable:!0}}}},required:[]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.WorldConfiguration||(e.WorldConfiguration={}))})(nv)),nv}var iv={},QM;function Fq(){return QM||(QM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SceneParcels=void 0;const a=Xe();(function(t){t.schema={description:'Describes a scene, a set of parcels whose content is treated as the same entity. A list of parcels is listed, for which one of them is considered the "base" for positioning purposes.',type:"object",properties:{base:{type:"string",pattern:"^-?[0-9]+,-?[0-9]+$"},parcels:{type:"array",items:{type:"string",pattern:"^-?[0-9]+,-?[0-9]+$"},minItems:1}},additionalProperties:!0,required:["base","parcels"]},t.schemaValidator=(0,a.generateLazyValidator)(t.schema),t.validate=n=>t.schemaValidator(n)&&n.parcels.includes(n.base)})(e.SceneParcels||(e.SceneParcels={}))})(iv)),iv}var av={},Wu={},ZM;function e0(){return ZM||(ZM=1,Object.defineProperty(Wu,"__esModule",{value:!0}),Wu.displayableProperties=void 0,Wu.displayableProperties={menuBarIcon:{description:"Name of the file used as icon for the MenuBar",type:"string",nullable:!0}}),Wu}var ov={},$M;function Vq(){return $M||($M=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Source=void 0;const a=Xe();(function(t){t.schema={type:"object",properties:{version:{type:"number",nullable:!0},origin:{type:"string"},projectId:{type:"string"},point:{type:"object",properties:{x:{type:"integer"},y:{type:"integer"}},nullable:!0,required:["x","y"]},rotation:{type:"string",enum:["north","east","south","west"],nullable:!0},layout:{type:"object",properties:{rows:{type:"integer"},cols:{type:"integer"}},nullable:!0,required:["rows","cols"]},isEmpty:{type:"boolean",nullable:!0}},additionalProperties:!0,required:["origin","projectId"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Source||(e.Source={}))})(ov)),ov}var sv={},xM;function Hq(){return xM||(xM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SpawnPoint=void 0;const a=Xe();(function(t){t.schema={type:"object",properties:{name:{type:"string",nullable:!0},position:{type:"object",oneOf:[{$ref:"#single-position"},{$ref:"#multi-position"}],required:["x","y","z"]},default:{type:"boolean",nullable:!0},cameraTarget:{type:"object",properties:{x:{type:"number"},y:{type:"number"},z:{type:"number"}},required:["x","y","z"],nullable:!0}},required:["position"],definitions:{"single-position":{$id:"#single-position",type:"object",properties:{x:{type:"number"},y:{type:"number"},z:{type:"number"}},required:["x","y","z"]},"multi-position":{$id:"#multi-position",type:"object",properties:{x:{type:"array",items:{type:"number"},minItems:1},y:{type:"array",items:{type:"number"},minItems:1},z:{type:"array",items:{type:"number"},minItems:1}},required:["x","y","z"]}}},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.SpawnPoint||(e.SpawnPoint={}))})(sv)),sv}var eN;function fH(){return eN||(eN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Scene=e.RequiredPermission=void 0;const a=Xe(),t=e0(),n=Uq(),i=Fq(),o=Vq(),u=Hq(),c=Bq();var f;(function(p){p.ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE="ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE",p.ALLOW_TO_TRIGGER_AVATAR_EMOTE="ALLOW_TO_TRIGGER_AVATAR_EMOTE",p.ALLOW_MEDIA_HOSTNAMES="ALLOW_MEDIA_HOSTNAMES",p.USE_WEB3_API="USE_WEB3_API",p.USE_FETCH="USE_FETCH",p.USE_WEBSOCKET="USE_WEBSOCKET",p.OPEN_EXTERNAL_LINK="OPEN_EXTERNAL_LINK"})(f=e.RequiredPermission||(e.RequiredPermission={})),(function(p){p.schema={type:"object",properties:Object.assign(Object.assign({isPortableExperience:{description:"Define the current scene as a Portable Experience",type:"boolean",nullable:!0},main:{description:"File that contains the entry point of the scene's code",type:"string",minLength:1},scene:i.SceneParcels.schema},t.displayableProperties),{display:{description:"Information related to how should this land be displayed apart from the normal rendering of the scene",type:"object",properties:{title:{description:"A name so other users can identify what the contents of this land should be",type:"string",nullable:!0},favicon:{description:"DEPRECATED. Allow the land owner to set up a favicon to this land",type:"string",nullable:!0},description:{description:"A description that will be shown on client's nav map when the scene is selected",type:"string",nullable:!0},navmapThumbnail:{type:"string",nullable:!0}},nullable:!0,required:[]},owner:{type:"string",nullable:!0},contact:{description:"Describe different ways of contacting the land owner",type:"object",properties:{name:{type:"string",nullable:!0},email:{type:"string",nullable:!0},im:{type:"string",nullable:!0},url:{type:"string",nullable:!0}},nullable:!0,required:[]},tags:{type:"array",items:{type:"string",minLength:1},nullable:!0},source:Object.assign(Object.assign({},o.Source.schema),{nullable:!0}),spawnPoints:{type:"array",items:u.SpawnPoint.schema,nullable:!0},requiredPermissions:{type:"array",items:{type:"string",enum:Object.values(f)},uniqueItems:!0,nullable:!0},featureToggles:Object.assign(Object.assign({},n.FeatureToggles.schema),{nullable:!0}),worldConfiguration:Object.assign(Object.assign({},c.WorldConfiguration.schema),{nullable:!0}),allowedMediaHostnames:{type:"array",items:{type:"string"},nullable:!0}}),additionalProperties:!0,required:["main","scene"],dependencies:{requiredPermissions:{if:{properties:{requiredPermissions:{type:"array",contains:{const:f.ALLOW_MEDIA_HOSTNAMES}}}},then:{properties:{allowedMediaHostnames:{type:"array",items:{type:"string"},nullable:!1,minItems:1}},required:["allowedMediaHostnames"]},else:{properties:{allowedMediaHostnames:{type:["null","array"],nullable:!0,maxItems:0}}}}}},p.validate=(0,a.generateLazyValidator)(p.schema)})(e.Scene||(e.Scene={}))})(av)),av}var tN;function pH(){return tN||(tN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SpawnPoint=e.Source=e.RequiredPermission=e.Scene=e.SceneParcels=e.WorldConfiguration=e.FeatureToggles=void 0;var a=Uq();Object.defineProperty(e,"FeatureToggles",{enumerable:!0,get:function(){return a.FeatureToggles}});var t=Bq();Object.defineProperty(e,"WorldConfiguration",{enumerable:!0,get:function(){return t.WorldConfiguration}});var n=Fq();Object.defineProperty(e,"SceneParcels",{enumerable:!0,get:function(){return n.SceneParcels}});var i=fH();Object.defineProperty(e,"Scene",{enumerable:!0,get:function(){return i.Scene}}),Object.defineProperty(e,"RequiredPermission",{enumerable:!0,get:function(){return i.RequiredPermission}});var o=Vq();Object.defineProperty(e,"Source",{enumerable:!0,get:function(){return o.Source}});var u=Hq();Object.defineProperty(e,"SpawnPoint",{enumerable:!0,get:function(){return u.SpawnPoint}})})(tv)),tv}var jo={},uv={},lv={},rN;function zq(){return rN||(rN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Locale=void 0;const a=Xe();(function(t){t.EN="en",t.ES="es"})(e.Locale||(e.Locale={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Locale||(e.Locale={}))})(lv)),lv}var nN;function Wq(){return nN||(nN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.I18N=void 0;const a=Xe(),t=zq();(function(n){n.schema={type:"object",properties:{code:t.Locale.schema,text:{type:"string"}},additionalProperties:!0,required:["code","text"]},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.I18N||(e.I18N={}))})(uv)),uv}var cv={},iN;function Gq(){return iN||(iN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Metrics=void 0;const a=Xe();(function(t){t.schema={type:"object",properties:{triangles:{type:"number"},materials:{type:"number"},textures:{type:"number"},meshes:{type:"number"},bodies:{type:"number"},entities:{type:"number"}},required:["triangles","materials","textures","meshes","bodies","entities"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Metrics||(e.Metrics={}))})(cv)),cv}var dv={},aN;function t0(){return aN||(aN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isStandard=e.standardProperties=void 0;const a=_f(),t=Xe();e.standardProperties={collectionAddress:{type:"string",nullable:!1},rarity:a.Rarity.schema};const n={type:"object",properties:Object.assign({},e.standardProperties),required:["collectionAddress","rarity"]},i=(0,t.generateLazyValidator)(n);function o(u){return i(u)}e.isStandard=o})(dv)),dv}var fv={},Lo={},pv={},oN;function yH(){return oN||(oN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MerkleProof=void 0;const a=Xe();(function(t){t.schema={type:"object",properties:{proof:{type:"array",items:{type:"string"}},index:{type:"number"},hashingKeys:{type:"array",items:{type:"string"}},entityHash:{type:"string"}},required:["entityHash","hashingKeys","index","proof"],additionalProperties:!0},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.MerkleProof||(e.MerkleProof={}))})(pv)),pv}var sN;function Kq(){return sN||(sN=1,(function(e){var a=Lo&&Lo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Lo&&Lo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(yH(),e)})(Lo)),Lo}var yv={},uN;function r0(){return uN||(uN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createMappingsHelper=e.AddMappingError=e.Mappings=e.Mapping=e.MultipleMapping=e.RangeMapping=e.AnyMapping=e.SingleMapping=e.ContractNetwork=e.MappingType=void 0;const a=Xe();var t;(function(m){m.SINGLE="single",m.ANY="any",m.MULTIPLE="multiple",m.RANGE="range"})(t=e.MappingType||(e.MappingType={}));var n;(function(m){m.MAINNET="mainnet",m.MATIC="matic",m.SEPOLIA="sepolia",m.AMOY="amoy"})(n=e.ContractNetwork||(e.ContractNetwork={}));var i;(function(m){m.schema={type:"object",properties:{type:{type:"string",const:t.SINGLE},id:{type:"string",pattern:"^[0-9]+$"}},required:["type","id"],additionalProperties:!1},m.validate=(0,a.generateLazyValidator)(m.schema)})(i=e.SingleMapping||(e.SingleMapping={}));var o;(function(m){m.schema={type:"object",properties:{type:{type:"string",const:t.ANY}},required:["type"],additionalProperties:!1},m.validate=(0,a.generateLazyValidator)(m.schema)})(o=e.AnyMapping||(e.AnyMapping={}));var u;(function(m){m._fromLessThanOrEqualTo={keyword:"_fromLessThanOrEqualTo",validate:function(S,M){if(!M||!M.from||!M.to)return!1;let{to:R,from:I}=M;return(typeof I!="bigint"||typeof R!="bigint")&&(I=BigInt(I),R=BigInt(R)),I<=R},errors:!1},m.schema={type:"object",properties:{type:{type:"string",const:t.RANGE},from:{type:"string",pattern:"^[0-9]+$"},to:{type:"string",pattern:"^[0-9]+$"}},required:["type","from","to"],additionalProperties:!1,_fromLessThanOrEqualTo:!0},m.validate=(0,a.generateLazyValidator)(m.schema,[m._fromLessThanOrEqualTo])})(u=e.RangeMapping||(e.RangeMapping={}));var c;(function(m){m.schema={type:"object",properties:{type:{type:"string",const:t.MULTIPLE},ids:{type:"array",items:{type:"string",pattern:"^[0-9]+$"},minItems:1,uniqueItems:!0}},required:["type","ids"],additionalProperties:!1},m.validate=(0,a.generateLazyValidator)(m.schema)})(c=e.MultipleMapping||(e.MultipleMapping={}));var f;(function(m){m.schema={type:"object",properties:{type:{type:"string",enum:Object.values(t)}},required:["type"],oneOf:[i.schema,o.schema,u.schema,c.schema]},m.validate=(0,a.generateLazyValidator)(m.schema,[u._fromLessThanOrEqualTo])})(f=e.Mapping||(e.Mapping={})),(function(m){m._isMappingsValid={keyword:"_isMappingsValid",validate:function(S,M){try{y(M)}catch{return!1}return!0},errors:!1},m.innerSchema={type:"object",patternProperties:{"^0x[0-9a-fA-F]{40}$":{type:"array",items:f.schema}},minProperties:1,required:[],additionalProperties:!1};const g=Object.values(n).reduce((S,M)=>(S[M]=m.innerSchema,S),{});m.schema={type:"object",properties:g,minProperties:1,additionalProperties:!1,_isMappingsValid:!0},m.validate=(0,a.generateLazyValidator)(m.schema,[u._fromLessThanOrEqualTo,m._isMappingsValid])})(e.Mappings||(e.Mappings={}));class p extends Error{constructor(g,S,M){super(g),this.existingMapping=S,this.conflictingMapping=M}}e.AddMappingError=p;function y(m={}){const g={};for(const[v,O]of Object.entries(m)){g[v]={};for(const[C,z]of Object.entries(O))for(const U of z)P(v,C,U)}function S(){return JSON.parse(JSON.stringify(g))}function M(v,O,C){const z=BigInt(v);return z>=BigInt(O)&&z<=BigInt(C)}function R(v,O){switch(O.type){case t.SINGLE:return v.id===O.id;case t.MULTIPLE:return O.ids.includes(v.id);case t.RANGE:return M(v.id,O.from,O.to);default:return!1}}function I(v,O){switch(O.type){case t.SINGLE:return v.ids.includes(O.id);case t.MULTIPLE:return v.ids.some(C=>O.ids.includes(C));case t.RANGE:return v.ids.some(C=>M(C,O.from,O.to));default:return!1}}function N(v,O){switch(O.type){case t.SINGLE:return M(O.id,v.from,v.to);case t.MULTIPLE:return O.ids.some(C=>M(C,v.from,v.to));case t.RANGE:return BigInt(v.from)<=BigInt(O.to)&&BigInt(v.to)>=BigInt(O.from)}}function E(v,O){if(v.type===t.ANY||O.type===t.ANY)return!0;switch(v.type){case t.SINGLE:return R(v,O);case t.MULTIPLE:return I(v,O);case t.RANGE:return N(v,O)}}function P(v,O,C){var z,U;const K=O.toLowerCase();g[v]=(z=g[v])!==null&&z!==void 0?z:{},g[v][K]=(U=g[v][K])!==null&&U!==void 0?U:[];for(const ae of g[v][K])if(E(ae,C))throw new p(`Cannot add mapping to contract ${K} on network ${v} because it overlaps with existing mapping`,ae,C);g[v][K].push(C)}function T(v,O,C){var z;return!((z=g[v])===null||z===void 0)&&z[O]?g[v][O].some(U=>{switch(U.type){case t.SINGLE:return U.id===C;case t.ANY:return!0;case t.MULTIPLE:return U.ids.includes(C);case t.RANGE:return BigInt(C)>=BigInt(U.from)&&BigInt(C)<=BigInt(U.to)}}):!1}return{addMapping:P,getMappings:S,includesNft:T}}e.createMappingsHelper=y})(yv)),yv}var lN;function n0(){return lN||(lN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isThirdParty=e.schema=void 0;const a=Xe(),t=Kq(),n=r0();e.schema={type:"object",properties:{merkleProof:t.MerkleProof.schema,content:{type:"object",nullable:!1,additionalProperties:{type:"string"},required:[]},mappings:Object.assign({nullable:!0},n.Mappings.schema)},required:["merkleProof","content"],_containsHashingKeys:!0};const i={keyword:"_containsHashingKeys",validate:function(c,f){var p;const y=f;return!((p=y?.merkleProof)===null||p===void 0)&&p.hashingKeys?y.merkleProof.hashingKeys.every(m=>y.hasOwnProperty(m)):!1},errors:!1},o=(0,a.generateLazyValidator)(e.schema,[i,n.RangeMapping._fromLessThanOrEqualTo,n.Mappings._isMappingsValid]);function u(c){return o(c)}e.isThirdParty=u})(fv)),fv}var mv={},hv={},ti={},cN;function Yq(){if(cN)return ti;cN=1,Object.defineProperty(ti,"__esModule",{value:!0}),ti.isBaseEmote=ti.isBaseAvatar=ti.requiredBaseItemProps=ti.baseItemProperties=void 0;const e=Wq(),a=Gq(),t=e0();ti.baseItemProperties=Object.assign(Object.assign({},t.displayableProperties),{id:{type:"string"},name:{type:"string"},description:{type:"string"},i18n:{type:"array",items:e.I18N.schema,minItems:1,uniqueItemProperties:["code"],errorMessage:'${0#} array should not have duplicates for "code"'},thumbnail:{type:"string"},image:{type:"string"},metrics:Object.assign(Object.assign({},a.Metrics.schema),{nullable:!0})}),ti.requiredBaseItemProps=["id","name","description","i18n","thumbnail","image"];function n(o){if(!o||!o.id)return!1;const u=o.id.split(":"),c=u[1]==="decentraland",f=u[3]==="base-avatars";return u.length===5&&c&&f}ti.isBaseAvatar=n;function i(o){if(!o||!o.id)return!1;const u=o.id.split(":");return u.length===5&&u[1]==="decentraland"&&u[3]==="base-emotes"}return ti.isBaseEmote=i,ti}var dN;function mH(){return dN||(dN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Wearable=void 0;const a=Xe(),t=ns(),n=xb(),i=Yq(),o=t0(),u=n0(),c=$b(),f=r0();(function(p){p.schema={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({},i.baseItemProperties),o.standardProperties),u.schema.properties.thirdPartyProps),{data:{type:"object",properties:{replaces:{type:"array",items:c.HideableWearableCategory.schema},hides:{type:"array",items:c.HideableWearableCategory.schema},tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:n.WearableRepresentation.schema,minItems:1},category:t.WearableCategory.schema,removesDefaultHiding:{type:"array",nullable:!0,items:c.HideableWearableCategory.schema},blockVrmExport:{type:"boolean",nullable:!0},outlineCompatible:{type:"boolean",nullable:!0}},required:["replaces","hides","tags","representations","category"]}}),additionalProperties:!0,required:[],oneOf:[{required:["id","i18n"],prohibited:["merkleProof","content","collectionAddress","rarity","mappings"],_isBaseAvatar:!0},{required:[...i.requiredBaseItemProps,"data","collectionAddress","rarity"],prohibited:["merkleProof","content","mappings"]},{required:[...i.requiredBaseItemProps,"data","merkleProof","content"],prohibited:["collectionAddress","rarity"],_isThirdParty:!0}],errorMessage:{oneOf:"either standard XOR thirdparty properties conditions must be met"}};const y={keyword:"_isThirdParty",validate:(g,S)=>!g||(0,u.isThirdParty)(S),errors:!1},m={keyword:"_isBaseAvatar",validate:(g,S)=>!g||(0,i.isBaseAvatar)(S),errors:!1};p.validate=(0,a.generateLazyValidator)(p.schema,[y,m,f.RangeMapping._fromLessThanOrEqualTo,f.Mappings._isMappingsValid])})(e.Wearable||(e.Wearable={}))})(hv)),hv}var fN;function hH(){return fN||(fN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.HideableWearableCategory=e.BodyPartCategory=e.WearableCategory=e.Wearable=e.WearableRepresentation=void 0;var a=xb();Object.defineProperty(e,"WearableRepresentation",{enumerable:!0,get:function(){return a.WearableRepresentation}});var t=mH();Object.defineProperty(e,"Wearable",{enumerable:!0,get:function(){return t.Wearable}});var n=ns();Object.defineProperty(e,"WearableCategory",{enumerable:!0,get:function(){return n.WearableCategory}});var i=qq();Object.defineProperty(e,"BodyPartCategory",{enumerable:!0,get:function(){return i.BodyPartCategory}});var o=$b();Object.defineProperty(e,"HideableWearableCategory",{enumerable:!0,get:function(){return o.HideableWearableCategory}})})(mv)),mv}var gv={},vv={},_v={},Ev={},pN;function Xq(){return pN||(pN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteCategory=void 0;const a=Xe();(function(t){t.DANCE="dance",t.STUNT="stunt",t.GREETINGS="greetings",t.FUN="fun",t.POSES="poses",t.REACTIONS="reactions",t.HORROR="horror",t.MISCELLANEOUS="miscellaneous"})(e.EmoteCategory||(e.EmoteCategory={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.EmoteCategory||(e.EmoteCategory={}))})(Ev)),Ev}var bv={},yN;function Jq(){return yN||(yN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteRepresentationADR74=void 0;const a=Xe(),t=Zb();(function(n){n.schema={type:"object",properties:{bodyShapes:{type:"array",items:t.BodyShape.schema,minItems:1,uniqueItems:!0},mainFile:{type:"string",minLength:1},contents:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0,contains:{const:{$data:"2/mainFile"}},errorMessage:{contains:"contents should contain mainFile: ${1/mainFile}"}}},required:["bodyShapes","mainFile","contents"]},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.EmoteRepresentationADR74||(e.EmoteRepresentationADR74={}))})(bv)),bv}var mN;function Qq(){return mN||(mN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteDataADR74=void 0;const a=Xq(),t=Xe(),n=Jq();(function(i){i.schema={type:"object",properties:{tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:n.EmoteRepresentationADR74.schema,minItems:1},category:a.EmoteCategory.schema,loop:{type:"boolean"}},required:["category","tags","representations","loop"],additionalProperties:!0},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.EmoteDataADR74||(e.EmoteDataADR74={}))})(_v)),_v}var hN;function gH(){return hN||(hN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Emote=void 0;const a=Zq(),t=Xe(),n=Yq(),i=t0(),o=n0(),u=Qq();(function(c){c.schema={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({},n.baseItemProperties),i.standardProperties),o.schema.properties),{emoteDataADR74:u.EmoteDataADR74.schema}),additionalProperties:!0,required:[...n.requiredBaseItemProps],oneOf:[{required:["emoteDataADR74"],oneOf:[{required:["id","i18n"],prohibited:["merkleProof","content","collectionAddress","rarity"],_isBaseEmote:!0},{required:["collectionAddress","rarity"],prohibited:["merkleProof","content"],errorMessage:"standard properties conditions are not met"},{required:["merkleProof","content","id","name","description","i18n","image","thumbnail","emoteDataADR74"],_isThirdParty:!0,prohibited:["collectionAddress","rarity"],errorMessage:"thirdparty properties conditions are not met"}],errorMessage:{oneOf:"emote should have either standard or thirdparty properties"}}],errorMessage:{oneOf:'emote should have "emoteDataADR74" and match its schema'}};const f={keyword:"_isThirdParty",validate:(y,m)=>!y||(0,a.isThirdParty)(m),errors:!1},p={keyword:"_isBaseEmote",validate:(y,m)=>!y||(0,n.isBaseEmote)(m),errors:!1};c.validate=(0,t.generateLazyValidator)(c.schema,[f,p,a.RangeMapping._fromLessThanOrEqualTo,a.Mappings._isMappingsValid])})(e.Emote||(e.Emote={}))})(vv)),vv}var wv={},gN;function vH(){return gN||(gN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmotePlayMode=void 0;const a=Xe();(function(t){t.SIMPLE="simple",t.LOOP="loop"})(e.EmotePlayMode||(e.EmotePlayMode={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.EmotePlayMode||(e.EmotePlayMode={}))})(wv)),wv}var vN;function _H(){return vN||(vN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmotePlayMode=e.EmoteCategory=e.EmoteDataADR74=e.EmoteRepresentationADR74=e.Emote=void 0;var a=gH();Object.defineProperty(e,"Emote",{enumerable:!0,get:function(){return a.Emote}});var t=Jq();Object.defineProperty(e,"EmoteRepresentationADR74",{enumerable:!0,get:function(){return t.EmoteRepresentationADR74}});var n=Qq();Object.defineProperty(e,"EmoteDataADR74",{enumerable:!0,get:function(){return n.EmoteDataADR74}});var i=Xq();Object.defineProperty(e,"EmoteCategory",{enumerable:!0,get:function(){return i.EmoteCategory}});var o=vH();Object.defineProperty(e,"EmotePlayMode",{enumerable:!0,get:function(){return o.EmotePlayMode}})})(gv)),gv}var _N;function Zq(){return _N||(_N=1,(function(e){var a=jo&&jo.__createBinding||(Object.create?(function(p,y,m,g){g===void 0&&(g=m);var S=Object.getOwnPropertyDescriptor(y,m);(!S||("get"in S?!y.__esModule:S.writable||S.configurable))&&(S={enumerable:!0,get:function(){return y[m]}}),Object.defineProperty(p,g,S)}):(function(p,y,m,g){g===void 0&&(g=m),p[g]=y[m]})),t=jo&&jo.__exportStar||function(p,y){for(var m in p)m!=="default"&&!Object.prototype.hasOwnProperty.call(y,m)&&a(y,p,m)};Object.defineProperty(e,"__esModule",{value:!0}),e.isThirdParty=e.isStandard=e.BodyShape=e.Metrics=e.Locale=e.I18N=void 0;var n=Wq();Object.defineProperty(e,"I18N",{enumerable:!0,get:function(){return n.I18N}});var i=zq();Object.defineProperty(e,"Locale",{enumerable:!0,get:function(){return i.Locale}});var o=Gq();Object.defineProperty(e,"Metrics",{enumerable:!0,get:function(){return o.Metrics}});var u=Zb();Object.defineProperty(e,"BodyShape",{enumerable:!0,get:function(){return u.BodyShape}});var c=t0();Object.defineProperty(e,"isStandard",{enumerable:!0,get:function(){return c.isStandard}});var f=n0();Object.defineProperty(e,"isThirdParty",{enumerable:!0,get:function(){return f.isThirdParty}}),t(r0(),e),t(hH(),e),t(_H(),e)})(jo)),jo}var Tv={},Sv={},EN;function Ef(){return EN||(EN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AuthChain=e.AuthLink=e.AuthLinkType=void 0;const a=Xe();var t;(function(i){i.SIGNER="SIGNER",i.ECDSA_PERSONAL_EPHEMERAL="ECDSA_EPHEMERAL",i.ECDSA_PERSONAL_SIGNED_ENTITY="ECDSA_SIGNED_ENTITY",i.ECDSA_EIP_1654_EPHEMERAL="ECDSA_EIP_1654_EPHEMERAL",i.ECDSA_EIP_1654_SIGNED_ENTITY="ECDSA_EIP_1654_SIGNED_ENTITY"})(t=e.AuthLinkType||(e.AuthLinkType={}));var n;(function(i){i.schema={type:"object",properties:{type:{type:"string",enum:Object.values(t)},payload:{type:"string"},signature:{type:"string",nullable:!0}},required:["payload","type"],if:{properties:{type:{not:{const:t.SIGNER}}}},then:{required:["signature"]},else:{oneOf:[{properties:{signature:{type:"string",const:""}},required:["signature"]},{properties:{signature:{type:"null"}}}]}},i.validate=(0,a.generateLazyValidator)(i.schema)})(n=e.AuthLink||(e.AuthLink={})),(function(i){i.schema={type:"array",items:n.schema,minItems:1},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.AuthChain||(e.AuthChain={}))})(Sv)),Sv}var bN;function EH(){return bN||(bN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PointerChangesSyncDeployment=e.SnapshotSyncDeployment=void 0;const a=is(),t=Ef(),n=Xe();(function(i){i.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},authChain:t.AuthChain.schema,entityTimestamp:{type:"number",minimum:0}},oneOf:[{properties:{entityId:a.IPFSv1.schema}},{properties:{entityId:a.IPFSv2.schema}}],required:["entityId","entityType","pointers","entityTimestamp","authChain"]},i.validate=(0,n.generateLazyValidator)(i.schema)})(e.SnapshotSyncDeployment||(e.SnapshotSyncDeployment={})),(function(i){i.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},authChain:t.AuthChain.schema,entityTimestamp:{type:"number",minimum:0},localTimestamp:{type:"number",minimum:0}},oneOf:[{properties:{entityId:a.IPFSv1.schema}},{properties:{entityId:a.IPFSv2.schema}}],required:["entityId","entityType","pointers","localTimestamp","entityTimestamp","authChain"]},i.validate=(0,n.generateLazyValidator)(i.schema)})(e.PointerChangesSyncDeployment||(e.PointerChangesSyncDeployment={}))})(Tv)),Tv}var Ov={},Av={},wN;function $q(){return wN||(wN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ContentMapping=void 0;const a=is(),t=Xe();(function(n){n.schema={type:"object",properties:{file:{type:"string",minLength:1},hash:{type:"string",oneOf:[a.IPFSv1.schema,a.IPFSv2.schema]}},required:["file","hash"]},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.ContentMapping||(e.ContentMapping={}))})(Av)),Av}var TN;function xq(){return TN||(TN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Entity=e.EntityType=void 0;const a=is(),t=$q(),n=Xe();(function(i){i.SCENE="scene",i.PROFILE="profile",i.WEARABLE="wearable",i.STORE="store",i.EMOTE="emote",i.OUTFITS="outfits"})(e.EntityType||(e.EntityType={})),(function(i){i.schema={type:"object",properties:{version:{type:"string",enum:["v3"]},id:{type:"string",oneOf:[a.IPFSv1.schema,a.IPFSv2.schema]},type:{type:"string"},pointers:{type:"array",items:{type:"string",minLength:1}},timestamp:{type:"number",minimum:0},content:{type:"array",items:t.ContentMapping.schema},metadata:{type:"object",nullable:!0}},required:["version","id","type","pointers","timestamp","content"]},i.validate=(0,n.generateLazyValidator)(i.schema)})(e.Entity||(e.Entity={}))})(Ov)),Ov}var Pv={},SN;function bH(){return SN||(SN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DeploymentWithAuthChain=void 0;const a=Ef(),t=Xe();(function(n){n.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},localTimestamp:{type:"number",minimum:0},authChain:a.AuthChain.schema},required:["entityId","entityType","pointers","localTimestamp","authChain"]},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.DeploymentWithAuthChain||(e.DeploymentWithAuthChain={}))})(Pv)),Pv}var Do={},Iv={},ON;function wH(){return ON||(ON=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Outfits=e.Outfit=void 0;const a=ns(),t=is(),n=Xe();var i;(function(o){o.schema={type:"object",required:["bodyShape","eyes","hair","skin","wearables"],properties:{bodyShape:{type:"string"},eyes:{type:"object",required:["color"],properties:{color:t.Color3.schema}},hair:{type:"object",required:["color"],properties:{color:t.Color3.schema}},skin:{type:"object",required:["color"],properties:{color:t.Color3.schema}},wearables:{type:"array",items:{type:"string"}},forceRender:{type:"array",nullable:!0,items:a.WearableCategory.schema}},additionalProperties:!0},o.validate=(0,n.generateLazyValidator)(o.schema)})(i=e.Outfit||(e.Outfit={})),(function(o){o.schema={type:"object",required:["outfits","namesForExtraSlots"],properties:{outfits:{type:"array",items:{type:"object",required:["slot","outfit"],properties:{slot:{type:"number"},outfit:i.schema}}},namesForExtraSlots:{type:"array",uniqueItems:!0,items:{type:"string"}}},additionalProperties:!0},o.validate=(0,n.generateLazyValidator)(o.schema)})(e.Outfits||(e.Outfits={}))})(Iv)),Iv}var AN;function TH(){return AN||(AN=1,(function(e){var a=Do&&Do.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Do&&Do.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(wH(),e)})(Do)),Do}var qo={},Rv={},PN;function ek(){return PN||(PN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NotificationType=void 0,(function(a){a.BADGE_GRANTED="badge_granted",a.BID_ACCEPTED="bid_accepted",a.BID_RECEIVED="bid_received",a.EVENTS_STARTED="events_started",a.EVENTS_STARTS_SOON="events_starts_soon",a.GOVERNANCE_ANNOUNCEMENT="governance_announcement",a.GOVERNANCE_AUTHORED_PROPOSAL_FINISHED="governance_authored_proposal_finished",a.GOVERNANCE_COAUTHOR_REQUESTED="governance_coauthor_requested",a.GOVERNANCE_CLIFF_ENDED="governance_cliff_ended",a.GOVERNANCE_NEW_COMMENT_ON_PROJECT_UPDATE="governance_new_comment_on_project_update",a.GOVERNANCE_NEW_COMMENT_ON_PROPOSAL="governance_new_comment_on_proposal",a.GOVERNANCE_PROPOSAL_ENACTED="governance_proposal_enacted",a.GOVERNANCE_VOTING_ENDED_VOTER="governance_voting_ended_voter",a.GOVERNANCE_PITCH_PASSED="governance_pitch_passed",a.GOVERNANCE_TENDER_PASSED="governance_tender_passed",a.GOVERNANCE_WHALE_VOTE="governance_whale_vote",a.GOVERNANCE_VOTED_ON_BEHALF="governance_voted_on_behalf",a.ITEM_SOLD="item_sold",a.ITEM_PUBLISHED="item_published",a.LAND_RENTAL_ENDED="rental_ended",a.LAND_RENTED="rental_started",a.REWARD_ASSIGNED="reward_assignment",a.REWARD_CAMPAIGN_OUT_OF_FUNDS="reward_campaign_out_of_funds",a.REWARD_CAMPAIGN_GAS_PRICE_HIGHER_THAN_EXPECTED="reward_campaign_gas_price_higher_than_expected",a.REWARD_CAMPAIGN_OUT_OF_STOCK="reward_campaign_out_of_stock",a.REWARD_DELAYED="reward_delayed",a.REWARD_IN_PROGRESS="reward_in_progress",a.ROYALTIES_EARNED="royalties_earned",a.SOCIAL_SERVICE_FRIENDSHIP_REQUEST="social_service_friendship_request",a.SOCIAL_SERVICE_FRIENDSHIP_ACCEPTED="social_service_friendship_accepted",a.WORLDS_ACCESS_RESTORED="worlds_access_restored",a.WORLDS_ACCESS_RESTRICTED="worlds_access_restricted",a.WORLDS_MISSING_RESOURCES="worlds_missing_resources",a.WORLDS_PERMISSION_GRANTED="worlds_permission_granted",a.WORLDS_PERMISSION_REVOKED="worlds_permission_revoked"})(e.NotificationType||(e.NotificationType={}))})(Rv)),Rv}var Mv={},Nv={},IN;function tk(){return IN||(IN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SubscriptionDetails=void 0;const a=Xe(),t=ek(),n={type:"object",required:["email","in_app"],properties:{email:{type:"boolean"},in_app:{type:"boolean"}}},i=Object.values(t.NotificationType).reduce((o,u)=>(o[u]=n,o),{});(function(o){o.schema={type:"object",required:["ignore_all_email","ignore_all_in_app","message_type"],properties:{ignore_all_email:{type:"boolean"},ignore_all_in_app:{type:"boolean"},message_type:{type:"object",required:Object.values(t.NotificationType),additionalProperties:!1,properties:i}}},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.SubscriptionDetails||(e.SubscriptionDetails={}))})(Nv)),Nv}var Cv={},RN;function rk(){return RN||(RN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Email=void 0,(function(a){a.schema={type:"string",pattern:"^[\\w\\-\\.]+@([\\w-]+\\.)+[\\w-]{2,}$"};const t=new RegExp(a.schema.pattern);a.validate=n=>t.test(n)})(e.Email||(e.Email={}))})(Cv)),Cv}var MN;function SH(){return MN||(MN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Subscription=void 0;const a=Xe(),t=tk(),n=is(),i=rk();(function(o){o.schema={type:"object",required:["address","details"],properties:{address:n.EthAddress.schema,email:Object.assign(Object.assign({},i.Email.schema),{nullable:!0}),details:t.SubscriptionDetails.schema}},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.Subscription||(e.Subscription={}))})(Mv)),Mv}var NN;function OH(){return NN||(NN=1,(function(e){var a=qo&&qo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=qo&&qo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(ek(),e),t(SH(),e),t(tk(),e)})(qo)),qo}var ko={},jv={},CN;function au(){return CN||(CN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Events=void 0,(function(a){(function(t){t.BLOCKCHAIN="blockchain",t.CATALYST_DEPLOYMENT="catalyst-deployment",t.WORLD="world",t.CLIENT="client",t.MARKETPLACE="marketplace",t.REWARDS="rewards",t.BADGE="badge",t.ASSET_BUNDLE="asset-bundle",t.SOCIAL_SERVICE="social-service"})(a.Type||(a.Type={})),(function(t){(function(n){n.BID_ACCEPTED="bid-accepted",n.ITEM_SOLD="item-sold",n.RENTAL_ENDED="land-rental-ended",n.RENTAL_STARTED="land-rental-started",n.ROYALTIES_EARNED="royalties-earned",n.COLLECTION_CREATED="collection-created",n.ITEM_PUBLISHED="item-published"})(t.Blockchain||(t.Blockchain={})),(function(n){n.BID_RECEIVED="bid-received"})(t.Marketplace||(t.Marketplace={})),(function(n){n.SCENE="scene",n.PROFILE="profile",n.WEARABLE="wearable",n.STORE="store",n.EMOTE="emote",n.OUTFITS="outfits"})(t.CatalystDeployment||(t.CatalystDeployment={})),(function(n){n.DEPLOYMENT="deployment"})(t.Worlds||(t.Worlds={})),(function(n){n.MOVE_TO_PARCEL="move-to-parcel",n.USED_EMOTE="used-emote",n.PASSPORT_OPENED="passport-opened",n.WALKED_DISTANCE="walked-distance",n.VERTICAL_HEIGHT_REACHED="vertical-height-reached"})(t.Client||(t.Client={})),(function(n){n.REWARD_IN_PROGRESS="reward-in-progress",n.REWARD_ASSIGNED="reward-assigned",n.CAMPAIGN_OUT_OF_FUNDS="campaign-out-of-funds",n.CAMPAIGN_GAS_PRICE_HIGHER_THAN_EXPECTED="campaign-gas-price-higher-than-expected",n.CAMPAIGN_OUT_OF_STOCK="campaign-out-of-stock",n.REWARD_DELAYED="reward-delayed"})(t.Rewards||(t.Rewards={})),(function(n){n.GRANTED="badge-granted"})(t.Badge||(t.Badge={})),(function(n){n.CONVERTED="converted",n.MANUALLY_QUEUED="manually-queued"})(t.AssetBundle||(t.AssetBundle={})),(function(n){n.FRIENDSHIP_REQUEST="friendship-request",n.FRIENDSHIP_ACCEPTED="friendship-accepted"})(t.SocialService||(t.SocialService={}))})(a.SubType||(a.SubType={}))})(e.Events||(e.Events={}))})(jv)),jv}var Lv={},jN;function AH(){return jN||(jN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CollectionCreatedEvent=e.RoyaltiesEarnedEvent=e.RentalStartedEvent=e.RentalEndedEvent=e.ItemPublishedEvent=e.ItemSoldEvent=e.BidAcceptedEvent=void 0;const a=Xe(),t=au();(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.BLOCKCHAIN},subType:{type:"string",const:t.Events.SubType.Blockchain.BID_ACCEPTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},image:{type:"string"},seller:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},link:{type:"string"},nftName:{type:"string",nullable:!0},price:{type:"string"},title:{type:"string"},description:{type:"string"},network:{type:"string"}},required:["address","image","seller","category","link","price","title","network"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.BidAcceptedEvent||(e.BidAcceptedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.BLOCKCHAIN},subType:{type:"string",const:t.Events.SubType.Blockchain.ITEM_SOLD},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},image:{type:"string"},buyer:{type:"string"},seller:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},link:{type:"string"},nftName:{type:"string",nullable:!0},tokenId:{type:"string"},network:{type:"string"},title:{type:"string"},description:{type:"string"}},required:["address","image","seller","category","link","network","title","description"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.ItemSoldEvent||(e.ItemSoldEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.BLOCKCHAIN},subType:{type:"string",const:t.Events.SubType.Blockchain.ITEM_PUBLISHED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{creator:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},itemId:{type:"string"},network:{type:"string"},urn:{type:"string"}},required:["creator","category","itemId","network","urn"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.ItemPublishedEvent||(e.ItemPublishedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.BLOCKCHAIN},subType:{type:"string",const:t.Events.SubType.Blockchain.RENTAL_ENDED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},contract:{type:"string"},land:{type:"string",nullable:!0},lessor:{type:"string"},tenant:{type:"string"},operator:{type:"string"},startedAt:{type:"string"},endedAt:{type:"string"},tokenId:{type:"string"},link:{type:"string"},title:{type:"string"},description:{type:"string",nullable:!0}},required:["address","contract","lessor","tenant","operator","startedAt","endedAt","tokenId","link","title"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.RentalEndedEvent||(e.RentalEndedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.BLOCKCHAIN},subType:{type:"string",const:t.Events.SubType.Blockchain.RENTAL_STARTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},contract:{type:"string"},land:{type:"string",nullable:!0},lessor:{type:"string"},tenant:{type:"string"},operator:{type:"string"},startedAt:{type:"string"},endedAt:{type:"string"},tokenId:{type:"string"},link:{type:"string"},title:{type:"string"},description:{type:"string",nullable:!0}},required:["address","contract","lessor","tenant","operator","startedAt","endedAt","tokenId","link","title"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.RentalStartedEvent||(e.RentalStartedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.BLOCKCHAIN},subType:{type:"string",const:t.Events.SubType.Blockchain.ROYALTIES_EARNED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},image:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},link:{type:"string"},nftName:{type:"string",nullable:!0},royaltiesCut:{type:"string"},royaltiesCollector:{type:"string"},network:{type:"string"},title:{type:"string"},description:{type:"string",nullable:!0}},required:["address","image","category","link","royaltiesCut","royaltiesCollector","network","title"]}},required:["type","subType","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.RoyaltiesEarnedEvent||(e.RoyaltiesEarnedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.BLOCKCHAIN},subType:{type:"string",const:t.Events.SubType.Blockchain.COLLECTION_CREATED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{creator:{type:"string"},name:{type:"string"}},required:["creator","name"]}},required:["type","subType","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.CollectionCreatedEvent||(e.CollectionCreatedEvent={}))})(Lv)),Lv}var Dv={},LN;function PH(){return LN||(LN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CatalystDeploymentEvent=void 0;const a=Ef(),t=Xe(),n=xq(),i=au();(function(o){o.schema={type:"object",properties:{type:{type:"string",const:i.Events.Type.CATALYST_DEPLOYMENT},subType:{type:"string",enum:Object.values(i.Events.SubType.CatalystDeployment)},key:{type:"string"},timestamp:{type:"number",minimum:1},entity:n.Entity.schema,authChain:a.AuthChain.schema},required:["type","subType","entity","authChain","key","timestamp"],additionalProperties:!1},o.validate=(0,t.generateLazyValidator)(o.schema)})(e.CatalystDeploymentEvent||(e.CatalystDeploymentEvent={}))})(Dv)),Dv}var qv={},DN;function IH(){return DN||(DN=1,Object.defineProperty(qv,"__esModule",{value:!0})),qv}var kv={},qN;function RH(){return qN||(qN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BidReceivedEvent=void 0;const a=Xe(),t=au();(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.MARKETPLACE},subType:{type:"string",const:t.Events.SubType.Marketplace.BID_RECEIVED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},image:{type:"string"},seller:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},link:{type:"string"},nftName:{type:"string",nullable:!0},price:{type:"string"},title:{type:"string"},description:{type:"string"},network:{type:"string"}},required:["address","image","seller","category","link","price","title","network"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.BidReceivedEvent||(e.BidReceivedEvent={}))})(kv)),kv}var Uv={},Gu={},kN;function MH(){if(kN)return Gu;kN=1,Object.defineProperty(Gu,"__esModule",{value:!0}),Gu.createEventSchema=void 0;function e(a,t,n){return{type:"object",properties:{type:{type:"string",const:a},subType:{type:"string",const:t},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:n},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1}}return Gu.createEventSchema=e,Gu}var UN;function NH(){return UN||(UN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.RewardDelayedEvent=e.CampaignOutOfStockEvent=e.CampaignGasPriceHigherThanExpectedEvent=e.CampaignOutOfFundsEvent=e.RewardAssignedEvent=e.RewardInProgressEvent=void 0;const a=Xe(),t=au(),n=MH(),i={type:"object",properties:{title:{type:"string"},description:{type:"string"},link:{type:"string",nullable:!0},beneficiary:{type:"string"},tokenName:{type:"string"},tokenImage:{type:"string"},tokenRarity:{type:"string",nullable:!0},tokenCategory:{type:"string",nullable:!0}},required:["title","description","beneficiary","tokenName","tokenImage"],additionalProperties:!1},o={type:"object",properties:{title:{type:"string"},description:{type:"string"},link:{type:"string",nullable:!0},owner:{type:"string"},campaignId:{type:"string"},campaignName:{type:"string"}},required:["title","description","owner","campaignId","campaignName"],additionalProperties:!1};(function(u){u.schema=(0,n.createEventSchema)(t.Events.Type.REWARDS,t.Events.SubType.Rewards.REWARD_IN_PROGRESS,i),u.validate=(0,a.generateLazyValidator)(u.schema)})(e.RewardInProgressEvent||(e.RewardInProgressEvent={})),(function(u){u.schema=(0,n.createEventSchema)(t.Events.Type.REWARDS,t.Events.SubType.Rewards.REWARD_ASSIGNED,i),u.validate=(0,a.generateLazyValidator)(u.schema)})(e.RewardAssignedEvent||(e.RewardAssignedEvent={})),(function(u){u.schema=(0,n.createEventSchema)(t.Events.Type.REWARDS,t.Events.SubType.Rewards.CAMPAIGN_OUT_OF_FUNDS,o),u.validate=(0,a.generateLazyValidator)(u.schema)})(e.CampaignOutOfFundsEvent||(e.CampaignOutOfFundsEvent={})),(function(u){u.schema=(0,n.createEventSchema)(t.Events.Type.REWARDS,t.Events.SubType.Rewards.CAMPAIGN_GAS_PRICE_HIGHER_THAN_EXPECTED,o),u.validate=(0,a.generateLazyValidator)(u.schema)})(e.CampaignGasPriceHigherThanExpectedEvent||(e.CampaignGasPriceHigherThanExpectedEvent={})),(function(u){u.schema=(0,n.createEventSchema)(t.Events.Type.REWARDS,t.Events.SubType.Rewards.CAMPAIGN_OUT_OF_STOCK,o),u.validate=(0,a.generateLazyValidator)(u.schema)})(e.CampaignOutOfStockEvent||(e.CampaignOutOfStockEvent={})),(function(u){u.schema=(0,n.createEventSchema)(t.Events.Type.REWARDS,t.Events.SubType.Rewards.REWARD_DELAYED,i),u.validate=(0,a.generateLazyValidator)(u.schema)})(e.RewardDelayedEvent||(e.RewardDelayedEvent={}))})(Uv)),Uv}var Bv={},BN;function CH(){return BN||(BN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.FriendshipAcceptedEvent=e.FriendshipRequestEvent=e.AssetBundleConversionManuallyQueuedEvent=e.AssetBundleConversionFinishedEvent=e.BadgeGrantedEvent=void 0;const a=Xe(),t=au();(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.BADGE},subType:{type:"string",const:t.Events.SubType.Badge.GRANTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{badgeId:{type:"string"},badgeTierName:{type:"string",nullable:!0},badgeName:{type:"string"},badgeImageUrl:{type:"string"},address:{type:"string"}},required:["badgeId","badgeName","badgeImageUrl","address"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.BadgeGrantedEvent||(e.BadgeGrantedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.ASSET_BUNDLE},subType:{type:"string",const:t.Events.SubType.AssetBundle.CONVERTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{entityId:{type:"string"},platform:{type:"string",enum:["windows","mac","webgl"]},statusCode:{type:"number"},isLods:{type:"boolean"},isWorld:{type:"boolean"}},required:["entityId","platform","statusCode","isLods","isWorld"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.AssetBundleConversionFinishedEvent||(e.AssetBundleConversionFinishedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.ASSET_BUNDLE},subType:{type:"string",const:t.Events.SubType.AssetBundle.MANUALLY_QUEUED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{entityId:{type:"string"},platform:{type:"string",enum:["windows","mac","webgl"]},isLods:{type:"boolean"},isPriority:{type:"boolean"}},required:["entityId","platform","isLods"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.AssetBundleConversionManuallyQueuedEvent||(e.AssetBundleConversionManuallyQueuedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.SOCIAL_SERVICE},subType:{type:"string",const:t.Events.SubType.SocialService.FRIENDSHIP_REQUEST},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{sender:{type:"object",properties:{address:{type:"string"},name:{type:"string"},profileImageUrl:{type:"string"}},required:["address","name","profileImageUrl"]},receiver:{type:"object",properties:{address:{type:"string"}},required:["address"]},message:{type:"string",nullable:!0}},required:["sender"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.FriendshipRequestEvent||(e.FriendshipRequestEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.SOCIAL_SERVICE},subType:{type:"string",const:t.Events.SubType.SocialService.FRIENDSHIP_ACCEPTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{sender:{type:"object",properties:{address:{type:"string"},name:{type:"string"},profileImageUrl:{type:"string"}},required:["address","name","profileImageUrl"]},receiver:{type:"object",properties:{address:{type:"string"}},required:["address"]}},required:["sender"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.FriendshipAcceptedEvent||(e.FriendshipAcceptedEvent={}))})(Bv)),Bv}var FN;function jH(){return FN||(FN=1,(function(e){var a=ko&&ko.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=ko&&ko.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(au(),e),t(AH(),e),t(PH(),e),t(IH(),e),t(RH(),e),t(NH(),e),t(CH(),e)})(ko)),ko}var VN;function i0(){return VN||(VN=1,(function(e){var a=No&&No.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=No&&No.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(dH(),e),t(pH(),e),t(Zq(),e),t(e0(),e),t(Kq(),e),t(EH(),e),t(xq(),e),t(bH(),e),t(TH(),e),t(OH(),e),t(jH(),e)})(No)),No}var HN;function LH(){return HN||(HN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WearableJson=void 0;const a=_f(),t=ns(),n=xb(),i=Xe(),o=i0();(function(u){u.schema={type:"object",properties:{description:{type:"string"},rarity:Object.assign(Object.assign({},a.Rarity.schema),{nullable:!0}),name:{type:"string"},data:{type:"object",properties:{replaces:{type:"array",items:t.WearableCategory.schema},hides:{type:"array",items:t.WearableCategory.schema},tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:n.WearableRepresentation.schema,minItems:1},category:t.WearableCategory.schema,removesDefaultHiding:{type:"array",nullable:!0,items:o.HideableWearableCategory.schema},blockVrmExport:{type:"boolean",nullable:!0},outlineCompatible:{type:"boolean",nullable:!0}},required:["replaces","hides","tags","representations","category"]}},additionalProperties:!0,required:["description","name","data"]},u.validate=(0,i.generateLazyValidator)(u.schema)})(e.WearableJson||(e.WearableJson={}))})(Gg)),Gg}var zN;function DH(){return zN||(zN=1,(function(e){var a=Mo&&Mo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Mo&&Mo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(lH(),e),t(LH(),e)})(Mo)),Mo}var WN;function qH(){return WN||(WN=1,(function(e){var a=Io&&Io.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Io&&Io.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(uH(),e),t(DH(),e)})(Io)),Io}var Uo={},Fv={},GN;function kH(){return GN||(GN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Account=e.AccountSortBy=void 0;const a=Xe();(function(t){t.MOST_SALES="most_sales",t.MOST_PURCHASES="most_purchases",t.MOST_SPENT="most_spent",t.MOST_EARNED="most_earned",t.MOST_ROYALTIES="most_royalties",t.MOST_COLLECTIONS="most_collections"})(e.AccountSortBy||(e.AccountSortBy={})),(function(t){t.schema={type:"object",properties:{id:{type:"string"},address:{type:"string"},sales:{type:"integer"},purchases:{type:"integer"},spent:{type:"string"},earned:{type:"string"},royalties:{type:"string"},collections:{type:"number"}},required:["id","address","sales","purchases","spent","earned","royalties","collections"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Account||(e.Account={}))})(Fv)),Fv}var Vv={},KN;function UH(){return KN||(KN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Collection=e.CollectionSortBy=void 0;const a=Xe(),t=Dn(),n=di();(function(i){i.NEWEST="newest",i.NAME="name",i.RECENTLY_REVIEWED="recently_reviewed",i.RECENTLY_LISTED="recently_listed",i.SIZE="size"})(e.CollectionSortBy||(e.CollectionSortBy={})),(function(i){i.schema={type:"object",properties:{urn:{type:"string"},creator:{type:"string"},name:{type:"string"},contractAddress:{type:"string"},size:{type:"integer"},isOnSale:{type:"boolean"},createdAt:{type:"integer"},updatedAt:{type:"integer"},reviewedAt:{type:"integer"},network:n.Network.schema,chainId:t.ChainId.schema,firstListedAt:{type:"integer",nullable:!0}},required:["urn","creator","name","contractAddress","isOnSale","size","createdAt","updatedAt","reviewedAt","network","chainId"]},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.Collection||(e.Collection={}))})(Vv)),Vv}var Hv={},zv={},YN;function bf(){return YN||(YN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NFTCategory=void 0;const a=Xe();(function(t){t.PARCEL="parcel",t.ESTATE="estate",t.WEARABLE="wearable",t.ENS="ens",t.EMOTE="emote"})(e.NFTCategory||(e.NFTCategory={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.NFTCategory||(e.NFTCategory={}))})(zv)),zv}var XN;function BH(){return XN||(XN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Contract=e.ContractSortBy=void 0;const a=Xe(),t=Dn(),n=di(),i=bf();(function(o){o.NAME="name"})(e.ContractSortBy||(e.ContractSortBy={})),(function(o){o.schema={type:"object",properties:{name:{type:"string"},address:{type:"string"},category:i.NFTCategory.schema,network:n.Network.schema,chainId:t.ChainId.schema},required:["name","address","category","network","chainId"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.Contract||(e.Contract={}))})(Hv)),Hv}var Wv={},Gv={},JN;function nk(){return JN||(JN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NFT=e.NFTSortBy=void 0;const a=Xe(),t=Dn(),n=i0(),i=di(),o=bf(),u=_f(),c=ns();(function(f){f.NAME="name",f.NEWEST="newest",f.RECENTLY_LISTED="recently_listed",f.RECENTLY_SOLD="recently_sold",f.CHEAPEST="cheapest",f.RENTAL_LISTING_DATE="rental_listing_date",f.RENTAL_DATE="rented_date",f.MAX_RENTAL_PRICE="max_rental_price",f.MIN_RENTAL_PRICE="min_rental_price"})(e.NFTSortBy||(e.NFTSortBy={})),(function(f){f.schema={type:"object",properties:{id:{type:"string"},tokenId:{type:"string"},contractAddress:{type:"string"},activeOrderId:{type:"string",nullable:!0},utility:{type:"string",nullable:!0},openRentalId:{type:"string",nullable:!0},owner:{type:"string"},name:{type:"string"},image:{type:"string"},url:{type:"string"},data:{type:"object",nullable:!1,properties:{parcel:{type:"object",properties:{description:{type:["string"],nullable:!0},x:{type:"string"},y:{type:"string"},estate:{type:"object",properties:{tokenId:{type:"string"},name:{type:"string"}},required:["tokenId","name"],nullable:!0}},required:["description","x","y","estate"],nullable:!0},estate:{type:"object",properties:{description:{type:["string"],nullable:!0},size:{type:"integer"},parcels:{type:"array",items:{type:"object",properties:{x:{type:"number"},y:{type:"number"}},required:["x","y"]}}},required:["description","size","parcels"],nullable:!0},wearable:{type:"object",properties:{bodyShapes:{type:"array",items:n.BodyShape.schema},category:c.WearableCategory.schema,description:{type:"string"},rarity:u.Rarity.schema,isSmart:{type:"boolean"}},required:["bodyShapes","category","description","rarity","isSmart"],nullable:!0},ens:{type:"object",properties:{subdomain:{type:"string"}},required:["subdomain"],nullable:!0},emote:{type:"object",properties:{bodyShapes:{type:"array",items:n.BodyShape.schema},category:n.EmoteCategory.schema,description:{type:"string"},rarity:u.Rarity.schema,loop:{type:"boolean"},hasSound:{type:"boolean"},hasGeometry:{type:"boolean"}},required:["bodyShapes","category","description","rarity","loop"],nullable:!0}},required:[]},issuedId:{type:"string",nullable:!0},itemId:{type:"string",nullable:!0},category:o.NFTCategory.schema,network:i.Network.schema,chainId:t.ChainId.schema,createdAt:{type:"integer"},updatedAt:{type:"integer"},soldAt:{type:"integer"},urn:{type:"string",nullable:!0}},required:["id","tokenId","contractAddress","activeOrderId","openRentalId","owner","name","image","url","data","issuedId","itemId","category","network","chainId","createdAt","updatedAt","soldAt"]},f.validate=(0,a.generateLazyValidator)(f.schema)})(e.NFT||(e.NFT={}))})(Gv)),Gv}var QN;function FH(){return QN||(QN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Item=e.ItemSortBy=void 0;const a=Xe(),t=Dn(),n=di(),i=nk(),o=bf();(function(u){u.NAME="name",u.NEWEST="newest",u.RECENTLY_REVIEWED="recently_reviewed",u.RECENTLY_SOLD="recently_sold",u.RECENTLY_LISTED="recently_listed",u.CHEAPEST="cheapest"})(e.ItemSortBy||(e.ItemSortBy={})),(function(u){u.schema={type:"object",properties:{id:{type:"string"},name:{type:"string"},thumbnail:{type:"string"},url:{type:"string"},category:o.NFTCategory.schema,contractAddress:{type:"string"},itemId:{type:"string"},rarity:{type:"string"},price:{type:"string"},available:{type:"integer"},isOnSale:{type:"boolean"},creator:{type:"string"},beneficiary:{type:"string",nullable:!0},tradeId:{type:"string",nullable:!0},data:i.NFT.schema.properties.data,network:n.Network.schema,chainId:t.ChainId.schema,urn:{type:"string"},createdAt:{type:"integer"},updatedAt:{type:"integer"},reviewedAt:{type:"integer"},soldAt:{type:"integer"},firstListedAt:{type:"integer",nullable:!0},picks:{type:"object",properties:{pickedByUser:{type:"boolean",nullable:!0},count:{type:"integer"}},required:["count"],nullable:!0},minPrice:{type:"string",nullable:!0},utility:{type:"string",nullable:!0},minListingPrice:{type:"string",nullable:!0},maxListingPrice:{type:"string",nullable:!0},listings:{type:"integer",nullable:!0},owners:{type:"integer",nullable:!0},tradeExpiresAt:{type:"integer",nullable:!0}},required:["id","name","thumbnail","url","category","contractAddress","itemId","rarity","price","available","isOnSale","creator","data","network","chainId","createdAt","updatedAt","soldAt"]},u.validate=(0,a.generateLazyValidator)(u.schema)})(e.Item||(e.Item={}))})(Wv)),Wv}var Kv={},ZN;function a0(){return ZN||(ZN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ListingStatus=void 0;const a=Xe();(function(t){t.OPEN="open",t.SOLD="sold",t.CANCELLED="cancelled"})(e.ListingStatus||(e.ListingStatus={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.ListingStatus||(e.ListingStatus={}))})(Kv)),Kv}var Yv={},$N;function VH(){return $N||($N=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MetaTransaction=void 0;const a=Xe();(function(t){t.schema={type:"object",properties:{from:{type:"string"},params:{type:"array",items:[{type:"string"},{type:"string"}],additionalItems:!1,minItems:2}},additionalProperties:!1,required:["from","params"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.MetaTransaction||(e.MetaTransaction={}))})(Yv)),Yv}var Xv={},xN;function HH(){return xN||(xN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Mint=e.MintSortBy=void 0;const a=Xe(),t=Dn(),n=di();(function(i){i.RECENTLY_MINTED="recently_minted",i.MOST_EXPENSIVE="most_expensive"})(e.MintSortBy||(e.MintSortBy={})),(function(i){i.schema={type:"object",properties:{id:{type:"string"},creator:{type:"string"},beneficiary:{type:"string"},minter:{type:"string"},price:{type:"string",nullable:!0},contractAddress:{type:"string"},tokenId:{type:"string"},itemId:{type:"string"},issuedId:{type:"string"},timestamp:{type:"integer"},network:n.Network.schema,chainId:t.ChainId.schema},required:["id","creator","beneficiary","minter","itemId","tokenId","issuedId","contractAddress","price","timestamp","network","chainId"]},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.Mint||(e.Mint={}))})(Xv)),Xv}var Jv={},eC;function zH(){return eC||(eC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CatalogSortDirection=e.CatalogSortBy=void 0,(function(a){a.NEWEST="newest",a.RECENTLY_SOLD="recently_sold",a.CHEAPEST="cheapest",a.MOST_EXPENSIVE="most_expensive",a.RECENTLY_LISTED="recently_listed"})(e.CatalogSortBy||(e.CatalogSortBy={})),(function(a){a.ASC="asc",a.DESC="desc"})(e.CatalogSortDirection||(e.CatalogSortDirection={}))})(Jv)),Jv}var Qv={},tC;function WH(){return tC||(tC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Order=e.OrderSortBy=void 0;const a=Xe(),t=Dn(),n=a0(),i=di();(function(o){o.RECENTLY_LISTED="recently_listed",o.RECENTLY_UPDATED="recently_updated",o.CHEAPEST="cheapest",o.ISSUED_ID_ASC="issued_id_asc",o.ISSUED_ID_DESC="issued_id_desc",o.OLDEST="oldest"})(e.OrderSortBy||(e.OrderSortBy={})),(function(o){o.schema={type:"object",properties:{id:{type:"string"},marketplaceAddress:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},owner:{type:"string"},buyer:{type:["string"],nullable:!0},price:{type:"string"},status:n.ListingStatus.schema,network:i.Network.schema,chainId:t.ChainId.schema,expiresAt:{type:"integer"},createdAt:{type:"integer"},updatedAt:{type:"integer"},issuedId:{type:"string"},tradeId:{type:"string",nullable:!0}},required:["id","marketplaceAddress","contractAddress","tokenId","owner","buyer","price","status","network","chainId","expiresAt","createdAt","updatedAt"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.Order||(e.Order={}))})(Qv)),Qv}var Zv={},rC;function ik(){return rC||(rC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SaleType=void 0;const a=Xe();(function(t){t.ORDER="order",t.BID="bid",t.MINT="mint"})(e.SaleType||(e.SaleType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.SaleType||(e.SaleType={}))})(Zv)),Zv}var $v={},nC;function GH(){return nC||(nC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Sale=e.SaleSortBy=void 0;const a=Xe(),t=Dn(),n=ik(),i=di();(function(o){o.RECENTLY_SOLD="recently_sold",o.MOST_EXPENSIVE="most_expensive"})(e.SaleSortBy||(e.SaleSortBy={})),(function(o){o.schema={type:"object",properties:{id:{type:"string"},type:n.SaleType.schema,buyer:{type:"string"},seller:{type:"string"},price:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},itemId:{type:"string"},txHash:{type:"string"},timestamp:{type:"integer"},network:i.Network.schema,chainId:t.ChainId.schema},required:["id","buyer","seller","itemId","tokenId","price","contractAddress","timestamp","txHash","network","chainId"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.Sale||(e.Sale={}))})($v)),$v}var xv={},iC;function KH(){return iC||(iC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.RentalListingCreation=e.PeriodCreation=e.RentalsListingsSortBy=e.RentalsListingsFilterByCategory=e.RentalsListingSortDirection=e.RentalStatus=void 0;const a=Xe(),t=Dn(),n=di();(function(o){o.OPEN="open",o.CANCELLED="cancelled",o.EXECUTED="executed",o.CLAIMED="claimed"})(e.RentalStatus||(e.RentalStatus={})),(function(o){o.ASC="asc",o.DESC="desc"})(e.RentalsListingSortDirection||(e.RentalsListingSortDirection={})),(function(o){o.PARCEL="parcel",o.ESTATE="estate"})(e.RentalsListingsFilterByCategory||(e.RentalsListingsFilterByCategory={})),(function(o){o.LAND_CREATION_DATE="land_creation_date",o.RENTAL_LISTING_DATE="rental_listing_date",o.RENTAL_DATE="rented_date",o.NAME="name",o.MAX_RENTAL_PRICE="max_rental_price",o.MIN_RENTAL_PRICE="min_rental_price"})(e.RentalsListingsSortBy||(e.RentalsListingsSortBy={}));var i;(function(o){o.schema={type:"object",properties:{minDays:{type:"integer",minimum:0,maximum:2147483647},maxDays:{type:"integer",minimum:0,maximum:2147483647},pricePerDay:{type:"string",pattern:"^[0-9]+$"}},additionalProperties:!1,required:["minDays","maxDays","pricePerDay"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(i=e.PeriodCreation||(e.PeriodCreation={})),(function(o){o.schema={type:"object",properties:{network:n.Network.schema,chainId:t.ChainId.schema,expiration:{type:"number",minimum:0},signature:{type:"string",minLength:1},tokenId:{type:"string",minLength:1},nonces:{type:"array",minItems:3,maxItems:3,items:{minLength:1,type:"string",pattern:"^[0-9]+$"}},contractAddress:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"},rentalContractAddress:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"},periods:{type:"array",minItems:1,maxItems:100,uniqueItems:!0,items:i.schema},target:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"}},additionalProperties:!1,required:["network","chainId","expiration","signature","nonces","tokenId","contractAddress","rentalContractAddress","periods","target"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.RentalListingCreation||(e.RentalListingCreation={}))})(xv)),xv}var e_={},aC;function YH(){return aC||(aC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AnalyticsDayDataSortBy=void 0,(function(a){a.DATE="date",a.MOST_SALES="most_sales"})(e.AnalyticsDayDataSortBy||(e.AnalyticsDayDataSortBy={}))})(e_)),e_}var t_={},oC;function XH(){return oC||(oC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Store=void 0;const a=Xe();(function(t){t.schema={type:"object",properties:{id:{type:"string"},version:{type:"number"},owner:{type:"string"},description:{type:"string"},links:{type:"array",items:{type:"object",properties:{name:{type:"string"},url:{type:"string"}},required:["name","url"]}},images:{type:"array",items:{type:"object",properties:{name:{type:"string"},file:{type:"string"}},required:["name","file"]}}},required:["id","version","owner","description","links","images"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Store||(e.Store={}))})(t_)),t_}var r_={},sC;function JH(){return sC||(sC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.GenderFilterOption=e.WearableGender=void 0;const a=Xe();(function(t){t.MALE="male",t.FEMALE="female"})(e.WearableGender||(e.WearableGender={})),(function(t){t.MALE="male",t.FEMALE="female",t.UNISEX="unisex"})(e.GenderFilterOption||(e.GenderFilterOption={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.WearableGender||(e.WearableGender={}))})(r_)),r_}var n_={},uC;function QH(){return uC||(uC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.World=e.isInsideWorldLimits=e.getWorld=void 0;const a=Xe();function t(){return{validWorldRanges:[{xMin:-150,yMin:-150,xMax:150,yMax:150},{xMin:62,yMin:151,xMax:162,yMax:158},{xMin:151,yMin:144,xMax:162,yMax:150},{xMin:151,yMin:59,xMax:163,yMax:143}]}}e.getWorld=t;function n(i,o){const u=t().validWorldRanges;for(const c of u)if(i>=c.xMin&&i<=c.xMax&&o>=c.yMin&&o<=c.yMax)return!0;return!1}e.isInsideWorldLimits=n,(function(i){i.schema={type:"object",required:["validWorldRanges"],properties:{validWorldRanges:{type:"array",default:[{xMin:-150,yMin:-150,xMax:150,yMax:150}],items:{type:"object",required:["xMin","yMin","xMax","yMax"],properties:{xMin:{type:"integer"},yMin:{type:"integer"},xMax:{type:"integer"},yMax:{type:"integer"}}}}},additionalProperties:!1},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.World||(e.World={}))})(n_)),n_}var i_={},lC;function ZH(){return lC||(lC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Bid=e.BidSortBy=void 0;const a=Xe(),t=Dn(),n=a0(),i=di();(function(o){o.RECENTLY_OFFERED="recently_offered",o.RECENTLY_UPDATED="recently_updated",o.MOST_EXPENSIVE="most_expensive"})(e.BidSortBy||(e.BidSortBy={})),(function(o){const u={properties:{id:{type:"string"},bidder:{type:"string"},seller:{type:"string"},price:{type:"string"},fingerprint:{type:"string"},status:n.ListingStatus.schema,contractAddress:{type:"string"},network:i.Network.schema,chainId:t.ChainId.schema,expiresAt:{type:"integer"},createdAt:{type:"integer"},updatedAt:{type:"integer"}},required:["id","bidder","seller","price","fingerprint","status","contractAddress","network","chainId","expiresAt","createdAt","updatedAt"]};o.schema={type:"object",required:[],oneOf:[{properties:Object.assign(Object.assign({},u.properties),{tradeId:{type:"string"},tokenId:{type:"string"}}),required:[...u.required,"tradeId","tokenId"]},{type:"object",properties:Object.assign(Object.assign({},u.properties),{tradeId:{type:"string"},itemId:{type:"string"}}),required:[...u.required,"tradeId","itemId"]},{type:"object",properties:Object.assign(Object.assign({},u.properties),{bidAddress:{type:"string"},blockchainId:{type:"string"},blockNumber:{type:"string"},tokenId:{type:"string"}}),required:[...u.required,"bidAddress","blockchainId","blockNumber","tokenId"]}]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.Bid||(e.Bid={}))})(i_)),i_}var a_={},cC;function $H(){return cC||(cC=1,Object.defineProperty(a_,"__esModule",{value:!0})),a_}var o_={},dC;function xH(){return dC||(dC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TradeAssetDirection=e.TradeAssetType=e.TradeType=void 0,(function(a){a.BID="bid",a.PUBLIC_NFT_ORDER="public_nft_order",a.PUBLIC_ITEM_ORDER="public_item_order"})(e.TradeType||(e.TradeType={})),(function(a){a[a.ERC20=1]="ERC20",a[a.USD_PEGGED_MANA=2]="USD_PEGGED_MANA",a[a.ERC721=3]="ERC721",a[a.COLLECTION_ITEM=4]="COLLECTION_ITEM"})(e.TradeAssetType||(e.TradeAssetType={})),(function(a){a.SENT="sent",a.RECEIVED="received"})(e.TradeAssetDirection||(e.TradeAssetDirection={}))})(o_)),o_}var Bo={},s_={},fC;function e4(){return fC||(fC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewCamera=void 0;const a=Xe();(function(t){t.STATIC="static",t.INTERACTIVE="interactive"})(e.PreviewCamera||(e.PreviewCamera={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewCamera||(e.PreviewCamera={}))})(s_)),s_}var u_={},pC;function t4(){return pC||(pC=1,Object.defineProperty(u_,"__esModule",{value:!0})),u_}var l_={},yC;function r4(){return yC||(yC=1,Object.defineProperty(l_,"__esModule",{value:!0})),l_}var c_={},mC;function n4(){return mC||(mC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewEmoteEventType=void 0;const a=Xe();(function(t){t.ANIMATION_PLAY="animation_play",t.ANIMATION_PAUSE="animation_pause",t.ANIMATION_LOOP="animation_loop",t.ANIMATION_END="animation_end",t.ANIMATION_PLAYING="animation_playing"})(e.PreviewEmoteEventType||(e.PreviewEmoteEventType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewEmoteEventType||(e.PreviewEmoteEventType={}))})(c_)),c_}var d_={},hC;function i4(){return hC||(hC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewEmote=void 0;const a=Xe();(function(t){t.IDLE="idle",t.WALK="walk",t.RUN="run",t.JUMP="jump",t.CLAP="clap",t.DAB="dab",t.DANCE="dance",t.FASHION="fashion",t.FASHION_2="fashion-2",t.FASHION_3="fashion-3",t.FASHION_4="fashion-4",t.LOVE="love",t.MONEY="money",t.FIST_PUMP="fist-pump",t.HEAD_EXPLODE="head-explode",t.WAVE="wave"})(e.PreviewEmote||(e.PreviewEmote={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewEmote||(e.PreviewEmote={}))})(d_)),d_}var f_={},gC;function a4(){return gC||(gC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.sendMessage=e.PreviewMessageType=void 0;const a=Xe();(function(n){n.READY="ready",n.LOAD="load",n.ERROR="error",n.UPDATE="update",n.CONTROLLER_REQUEST="controller_request",n.CONTROLLER_RESPONSE="controller_response",n.EMOTE_EVENT="emote_event"})(e.PreviewMessageType||(e.PreviewMessageType={})),(function(n){n.schema={type:"string",enum:Object.values(n)},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.PreviewMessageType||(e.PreviewMessageType={}));const t=(n,i,o,u="*")=>{const c={type:i,payload:o};n.postMessage(c,u)};e.sendMessage=t})(f_)),f_}var p_={},vC;function o4(){return vC||(vC=1,Object.defineProperty(p_,"__esModule",{value:!0})),p_}var y_={},_C;function s4(){return _C||(_C=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewProjection=void 0;const a=Xe();(function(t){t.ORTHOGRAPHIC="orthographic",t.PERSPECTIVE="perspective"})(e.PreviewProjection||(e.PreviewProjection={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewProjection||(e.PreviewProjection={}))})(y_)),y_}var m_={},EC;function u4(){return EC||(EC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewType=void 0;const a=Xe();(function(t){t.TEXTURE="texture",t.WEARABLE="wearable",t.AVATAR="avatar"})(e.PreviewType||(e.PreviewType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewType||(e.PreviewType={}))})(m_)),m_}var h_={},bC;function l4(){return bC||(bC=1,Object.defineProperty(h_,"__esModule",{value:!0})),h_}var g_={},wC;function c4(){return wC||(wC=1,Object.defineProperty(g_,"__esModule",{value:!0})),g_}var v_={},TC;function d4(){return TC||(TC=1,Object.defineProperty(v_,"__esModule",{value:!0})),v_}var __={},SC;function f4(){return SC||(SC=1,Object.defineProperty(__,"__esModule",{value:!0})),__}var E_={},OC;function p4(){return OC||(OC=1,Object.defineProperty(E_,"__esModule",{value:!0})),E_}var b_={},AC;function y4(){return AC||(AC=1,Object.defineProperty(b_,"__esModule",{value:!0})),b_}var w_={},PC;function m4(){return PC||(PC=1,Object.defineProperty(w_,"__esModule",{value:!0})),w_}var T_={},IC;function h4(){return IC||(IC=1,Object.defineProperty(T_,"__esModule",{value:!0})),T_}var RC;function g4(){return RC||(RC=1,(function(e){var a=Bo&&Bo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Bo&&Bo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(e4(),e),t(t4(),e),t(r4(),e),t(n4(),e),t(i4(),e),t(a4(),e),t(o4(),e),t(s4(),e),t(u4(),e),t(l4(),e),t(c4(),e),t(d4(),e),t(f4(),e),t(p4(),e),t(y4(),e),t(m4(),e),t(h4(),e)})(Bo)),Bo}var Fo={},Ku={},MC;function v4(){if(MC)return Ku;MC=1,Object.defineProperty(Ku,"__esModule",{value:!0}),Ku.isSysLink=void 0;const e=a=>a!==null&&typeof a=="object"&&"sys"in a&&"id"in a.sys;return Ku.isSysLink=e,Ku}var Yu={},NC;function _4(){if(NC)return Yu;NC=1,Object.defineProperty(Yu,"__esModule",{value:!0}),Yu.ContentfulLocale=void 0;var e;return(function(a){a.enUS="en-US",a.es="es",a.zh="zh"})(e||(e={})),Yu.ContentfulLocale=e,Yu}var S_={},CC;function E4(){return CC||(CC=1,Object.defineProperty(S_,"__esModule",{value:!0})),S_}var jC;function b4(){return jC||(jC=1,(function(e){var a=Fo&&Fo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Fo&&Fo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(v4(),e),t(_4(),e),t(E4(),e)})(Fo)),Fo}var LC;function w4(){return LC||(LC=1,(function(e){var a=Uo&&Uo.__createBinding||(Object.create?(function(K,ae,_e,be){be===void 0&&(be=_e);var ye=Object.getOwnPropertyDescriptor(ae,_e);(!ye||("get"in ye?!ae.__esModule:ye.writable||ye.configurable))&&(ye={enumerable:!0,get:function(){return ae[_e]}}),Object.defineProperty(K,be,ye)}):(function(K,ae,_e,be){be===void 0&&(be=_e),K[be]=ae[_e]})),t=Uo&&Uo.__exportStar||function(K,ae){for(var _e in K)_e!=="default"&&!Object.prototype.hasOwnProperty.call(ae,_e)&&a(ae,K,_e)};Object.defineProperty(e,"__esModule",{value:!0}),e.isInsideWorldLimits=e.getWorld=e.World=e.GenderFilterOption=e.WearableGender=e.Store=e.AnalyticsDayDataSortBy=e.PeriodCreation=e.RentalListingCreation=e.RentalsListingsSortBy=e.RentalsListingsFilterByCategory=e.RentalsListingSortDirection=e.RentalStatus=e.SaleSortBy=e.Sale=e.SaleType=e.Rarity=e.ProviderType=e.OrderSortBy=e.Order=e.CatalogSortDirection=e.CatalogSortBy=e.NFTSortBy=e.NFT=e.NFTCategory=e.Network=e.MintSortBy=e.Mint=e.MetaTransaction=e.ListingStatus=e.ItemSortBy=e.Item=e.ContractSortBy=e.Contract=e.CollectionSortBy=e.Collection=e.getChainId=e.ChainName=e.getURNProtocol=e.getChainName=e.ChainId=e.AccountSortBy=e.Account=void 0;var n=kH();Object.defineProperty(e,"Account",{enumerable:!0,get:function(){return n.Account}}),Object.defineProperty(e,"AccountSortBy",{enumerable:!0,get:function(){return n.AccountSortBy}});var i=Dn();Object.defineProperty(e,"ChainId",{enumerable:!0,get:function(){return i.ChainId}}),Object.defineProperty(e,"getChainName",{enumerable:!0,get:function(){return i.getChainName}}),Object.defineProperty(e,"getURNProtocol",{enumerable:!0,get:function(){return i.getURNProtocol}});var o=jq();Object.defineProperty(e,"ChainName",{enumerable:!0,get:function(){return o.ChainName}}),Object.defineProperty(e,"getChainId",{enumerable:!0,get:function(){return o.getChainId}});var u=UH();Object.defineProperty(e,"Collection",{enumerable:!0,get:function(){return u.Collection}}),Object.defineProperty(e,"CollectionSortBy",{enumerable:!0,get:function(){return u.CollectionSortBy}});var c=BH();Object.defineProperty(e,"Contract",{enumerable:!0,get:function(){return c.Contract}}),Object.defineProperty(e,"ContractSortBy",{enumerable:!0,get:function(){return c.ContractSortBy}});var f=FH();Object.defineProperty(e,"Item",{enumerable:!0,get:function(){return f.Item}}),Object.defineProperty(e,"ItemSortBy",{enumerable:!0,get:function(){return f.ItemSortBy}});var p=a0();Object.defineProperty(e,"ListingStatus",{enumerable:!0,get:function(){return p.ListingStatus}});var y=VH();Object.defineProperty(e,"MetaTransaction",{enumerable:!0,get:function(){return y.MetaTransaction}});var m=HH();Object.defineProperty(e,"Mint",{enumerable:!0,get:function(){return m.Mint}}),Object.defineProperty(e,"MintSortBy",{enumerable:!0,get:function(){return m.MintSortBy}});var g=di();Object.defineProperty(e,"Network",{enumerable:!0,get:function(){return g.Network}});var S=bf();Object.defineProperty(e,"NFTCategory",{enumerable:!0,get:function(){return S.NFTCategory}});var M=nk();Object.defineProperty(e,"NFT",{enumerable:!0,get:function(){return M.NFT}}),Object.defineProperty(e,"NFTSortBy",{enumerable:!0,get:function(){return M.NFTSortBy}});var R=zH();Object.defineProperty(e,"CatalogSortBy",{enumerable:!0,get:function(){return R.CatalogSortBy}}),Object.defineProperty(e,"CatalogSortDirection",{enumerable:!0,get:function(){return R.CatalogSortDirection}});var I=WH();Object.defineProperty(e,"Order",{enumerable:!0,get:function(){return I.Order}}),Object.defineProperty(e,"OrderSortBy",{enumerable:!0,get:function(){return I.OrderSortBy}});var N=Lq();Object.defineProperty(e,"ProviderType",{enumerable:!0,get:function(){return N.ProviderType}});var E=_f();Object.defineProperty(e,"Rarity",{enumerable:!0,get:function(){return E.Rarity}});var P=ik();Object.defineProperty(e,"SaleType",{enumerable:!0,get:function(){return P.SaleType}});var T=GH();Object.defineProperty(e,"Sale",{enumerable:!0,get:function(){return T.Sale}}),Object.defineProperty(e,"SaleSortBy",{enumerable:!0,get:function(){return T.SaleSortBy}});var v=KH();Object.defineProperty(e,"RentalStatus",{enumerable:!0,get:function(){return v.RentalStatus}}),Object.defineProperty(e,"RentalsListingSortDirection",{enumerable:!0,get:function(){return v.RentalsListingSortDirection}}),Object.defineProperty(e,"RentalsListingsFilterByCategory",{enumerable:!0,get:function(){return v.RentalsListingsFilterByCategory}}),Object.defineProperty(e,"RentalsListingsSortBy",{enumerable:!0,get:function(){return v.RentalsListingsSortBy}}),Object.defineProperty(e,"RentalListingCreation",{enumerable:!0,get:function(){return v.RentalListingCreation}}),Object.defineProperty(e,"PeriodCreation",{enumerable:!0,get:function(){return v.PeriodCreation}});var O=YH();Object.defineProperty(e,"AnalyticsDayDataSortBy",{enumerable:!0,get:function(){return O.AnalyticsDayDataSortBy}});var C=XH();Object.defineProperty(e,"Store",{enumerable:!0,get:function(){return C.Store}});var z=JH();Object.defineProperty(e,"WearableGender",{enumerable:!0,get:function(){return z.WearableGender}}),Object.defineProperty(e,"GenderFilterOption",{enumerable:!0,get:function(){return z.GenderFilterOption}});var U=QH();Object.defineProperty(e,"World",{enumerable:!0,get:function(){return U.World}}),Object.defineProperty(e,"getWorld",{enumerable:!0,get:function(){return U.getWorld}}),Object.defineProperty(e,"isInsideWorldLimits",{enumerable:!0,get:function(){return U.isInsideWorldLimits}}),t(ZH(),e),t($H(),e),t(xH(),e),t(g4(),e),t(b4(),e)})(Uo)),Uo}var O_={},DC;function T4(){return DC||(DC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LinkerAuthorization=void 0;const a=Xe();(function(t){t.schema={type:"object",properties:{name:{type:"string"},desc:{type:"string"},startDate:{type:"string",nullable:!0},endDate:{type:"string",nullable:!0},contactInfo:{type:"object",properties:{name:{type:"string"}},required:["name"]},onlyDev:{type:"boolean",nullable:!0},addresses:{type:"array",items:{type:"string"},minItems:1},plots:{type:"array",items:{type:"string"},minItems:1}},required:["name","desc","contactInfo","addresses","plots"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.LinkerAuthorization||(e.LinkerAuthorization={}))})(O_)),O_}var qC;function S4(){return qC||(qC=1,(function(e){var a=ei&&ei.__createBinding||(Object.create?(function(u,c,f,p){p===void 0&&(p=f);var y=Object.getOwnPropertyDescriptor(c,f);(!y||("get"in y?!c.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:function(){return c[f]}}),Object.defineProperty(u,p,y)}):(function(u,c,f,p){p===void 0&&(p=f),u[p]=c[f]})),t=ei&&ei.__setModuleDefault||(Object.create?(function(u,c){Object.defineProperty(u,"default",{enumerable:!0,value:c})}):function(u,c){u.default=c}),n=ei&&ei.__importStar||function(u){if(u&&u.__esModule)return u;var c={};if(u!=null)for(var f in u)f!=="default"&&Object.prototype.hasOwnProperty.call(u,f)&&a(c,u,f);return t(c,u),c},i=ei&&ei.__exportStar||function(u,c){for(var f in u)f!=="default"&&!Object.prototype.hasOwnProperty.call(c,f)&&a(c,u,f)};Object.defineProperty(e,"__esModule",{value:!0}),e.sdk=void 0;const o=n(qH());e.sdk=o,i(Xe(),e),i(w4(),e),i(i0(),e),i(is(),e),i(T4(),e),i(Ef(),e),i($q(),e),i(rk(),e)})(ei)),ei}var eu=S4();const O4=Object.freeze({storageKey:"decentraland-connect-storage-key",[Ct.ProviderType.INJECTED]:{},[Ct.ProviderType.FORTMATIC]:{apiKeys:{[wt.ChainId.ETHEREUM_MAINNET]:"pk_live_F8E24DF8DD5BCBC5",[wt.ChainId.ETHEREUM_SEPOLIA]:"pk_test_5B728BEFE5C10911"},urls:Js(Ct.ProviderType.FORTMATIC)},[Ct.ProviderType.NETWORK]:{urls:Js(Ct.ProviderType.NETWORK)},[Ct.ProviderType.WALLET_LINK]:{appName:"Decentraland",urls:Js(Ct.ProviderType.WALLET_LINK)},[Ct.ProviderType.WALLET_CONNECT_V2]:{projectId:"61570c542c2d66c659492e5b24a41522",urls:Js(Ct.ProviderType.WALLET_CONNECT_V2),chains:{[wt.ChainId.ETHEREUM_MAINNET]:{chains:[wt.ChainId.ETHEREUM_MAINNET],optionalChains:[wt.ChainId.MATIC_MAINNET,wt.ChainId.ARBITRUM_MAINNET,wt.ChainId.OPTIMISM_MAINNET,wt.ChainId.AVALANCHE_MAINNET,wt.ChainId.BSC_MAINNET,wt.ChainId.FANTOM_MAINNET]},[wt.ChainId.ETHEREUM_SEPOLIA]:{chains:[wt.ChainId.ETHEREUM_SEPOLIA],optionalChains:[wt.ChainId.MATIC_AMOY]}}},[Ct.ProviderType.MAGIC]:{apiKey:"pk_live_212568025B158355",urls:Js(Ct.ProviderType.MAGIC),chains:[wt.ChainId.ETHEREUM_MAINNET,wt.ChainId.ETHEREUM_SEPOLIA,wt.ChainId.MATIC_MAINNET,wt.ChainId.MATIC_AMOY,wt.ChainId.OPTIMISM_MAINNET,wt.ChainId.ARBITRUM_MAINNET,wt.ChainId.AVALANCHE_MAINNET,wt.ChainId.BSC_MAINNET,wt.ChainId.FANTOM_MAINNET]},[Ct.ProviderType.MAGIC_TEST]:{apiKey:"pk_live_CE856A4938B36648",urls:Js(Ct.ProviderType.MAGIC),chains:[wt.ChainId.ETHEREUM_MAINNET,wt.ChainId.ETHEREUM_SEPOLIA,wt.ChainId.MATIC_MAINNET,wt.ChainId.MATIC_AMOY,wt.ChainId.OPTIMISM_MAINNET,wt.ChainId.ARBITRUM_MAINNET,wt.ChainId.AVALANCHE_MAINNET,wt.ChainId.BSC_MAINNET,wt.ChainId.FANTOM_MAINNET]}});function Qi(){return O4}function Js(e){const a={[wt.ChainId.ETHEREUM_MAINNET]:"https://rpc.decentraland.org/mainnet",[wt.ChainId.ETHEREUM_SEPOLIA]:"https://rpc.decentraland.org/sepolia",[wt.ChainId.MATIC_MAINNET]:"https://rpc.decentraland.org/polygon",[wt.ChainId.MATIC_AMOY]:"https://rpc.decentraland.org/amoy",[wt.ChainId.ARBITRUM_MAINNET]:"https://rpc.decentraland.org/arbitrum",[wt.ChainId.OPTIMISM_MAINNET]:"https://rpc.decentraland.org/optimism",[wt.ChainId.AVALANCHE_MAINNET]:"https://rpc.decentraland.org/avalanche",[wt.ChainId.BSC_MAINNET]:"https://rpc.decentraland.org/binance",[wt.ChainId.FANTOM_MAINNET]:"https://rpc.decentraland.org/fantom"};let t="";switch(e){case Ct.ProviderType.WALLET_LINK:t="walletlink";break;case Ct.ProviderType.FORTMATIC:t="fortmatic";break;case Ct.ProviderType.MAGIC:t="magic";break;case Ct.ProviderType.MAGIC_TEST:t="magic";break;case Ct.ProviderType.WALLET_CONNECT_V2:t="walletconnect-v2";break;case Ct.ProviderType.AUTH_SERVER:t="auth-server";break}if(t)for(const n in a)a[n]+=`?project=${t}`;return a}class A4 extends iu{constructor(a){const t=Qi()[eu.ProviderType.FORTMATIC],n=Object.keys(t.apiKeys).map(i=>Number(i));if(!n.includes(a))throw new Error(`Invariant error: Unsupported chainId ${a}`);super({supportedChainIds:n}),this.apiKey=t.apiKeys[a],this.chainId=a,this.rpcUrl=t.urls[a]}async activate(){if(!this.fortmatic){const{default:t}=await Pl(async()=>{const{default:n}=await import("./fortmatic-Ck-Id1f0.js").then(i=>i.f);return{default:n}},[]);this.fortmatic=new t(this.apiKey,{rpcUrl:this.rpcUrl,chainId:this.chainId})}const a=await this.fortmatic.getProvider().enable().then(t=>t[0]);return{provider:this.fortmatic.getProvider(),chainId:this.chainId,account:a}}getApiKey(){return this.apiKey}async getProvider(){return this.fortmatic.getProvider()}async getChainId(){return this.chainId}async getAccount(){return this.fortmatic.getProvider().send("eth_accounts").then(a=>a[0])}deactivate(){}close(){return this.fortmatic.user.logout()}}function mb(){return mb=Object.assign||function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},mb.apply(this,arguments)}function o0(e,a){e.prototype=Object.create(a.prototype),e.prototype.constructor=e,e.__proto__=a}function hb(e){return hb=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},hb(e)}function tf(e,a){return tf=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},tf(e,a)}function P4(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Zd(e,a,t){return P4()?Zd=Reflect.construct:Zd=function(i,o,u){var c=[null];c.push.apply(c,o);var f=Function.bind.apply(i,c),p=new f;return u&&tf(p,u.prototype),p},Zd.apply(null,arguments)}function I4(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function rf(e){var a=typeof Map=="function"?new Map:void 0;return rf=function(n){if(n===null||!I4(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof a<"u"){if(a.has(n))return a.get(n);a.set(n,i)}function i(){return Zd(n,arguments,hb(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),tf(i,n)},rf(e)}function Wd(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}typeof Symbol<"u"&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")));typeof Symbol<"u"&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));function Qs(e,a){try{var t=e()}catch(n){return a(n)}return t&&t.then?t.then(void 0,a):t}function Ai(e){return e.hasOwnProperty("result")?e.result:e}var A_=(function(e){o0(a,e);function a(){var t;return t=e.call(this)||this,t.name=t.constructor.name,t.message="No Ethereum provider was found on window.ethereum.",t}return a})(rf(Error)),R4=(function(e){o0(a,e);function a(){var t;return t=e.call(this)||this,t.name=t.constructor.name,t.message="The user rejected the request.",t}return a})(rf(Error)),M4=(function(e){o0(a,e);function a(n){var i;return i=e.call(this,n)||this,i.handleNetworkChanged=i.handleNetworkChanged.bind(Wd(i)),i.handleChainChanged=i.handleChainChanged.bind(Wd(i)),i.handleAccountsChanged=i.handleAccountsChanged.bind(Wd(i)),i.handleClose=i.handleClose.bind(Wd(i)),i}var t=a.prototype;return t.handleChainChanged=function(i){this.emitUpdate({chainId:i,provider:window.ethereum})},t.handleAccountsChanged=function(i){i.length===0?this.emitDeactivate():this.emitUpdate({account:i[0]})},t.handleClose=function(i,o){this.emitDeactivate()},t.handleNetworkChanged=function(i){this.emitUpdate({chainId:i,provider:window.ethereum})},t.activate=function(){try{var i=function(y){if(o)return y;function m(){return mb({provider:window.ethereum},c?{account:c}:{})}var g=(function(){if(!c)return Promise.resolve(window.ethereum.enable().then(function(S){return S&&Ai(S)[0]})).then(function(S){c=S})})();return g&&g.then?g.then(m):m(g)},o=!1,u=this;if(!window.ethereum)throw new A_;window.ethereum.on&&(window.ethereum.on("chainChanged",u.handleChainChanged),window.ethereum.on("accountsChanged",u.handleAccountsChanged),window.ethereum.on("close",u.handleClose),window.ethereum.on("networkChanged",u.handleNetworkChanged)),window.ethereum.isMetaMask&&(window.ethereum.autoRefreshOnNetworkChange=!1);var c,f=Qs(function(){return Promise.resolve(window.ethereum.send("eth_requestAccounts").then(function(p){return Ai(p)[0]})).then(function(p){c=p})},function(p){if(p.code===4001)throw new R4});return Promise.resolve(f&&f.then?f.then(i):i(f))}catch(p){return Promise.reject(p)}},t.getProvider=function(){try{return Promise.resolve(window.ethereum)}catch(i){return Promise.reject(i)}},t.getChainId=function(){try{var i=function(){function f(){if(!o)try{o=Ai(window.ethereum.send({method:"net_version"}))}catch{}return o||(window.ethereum.isDapper?o=Ai(window.ethereum.cachedResults.net_version):o=window.ethereum.chainId||window.ethereum.netVersion||window.ethereum.networkVersion||window.ethereum._chainId),o}var p=(function(){if(!o){var y=Qs(function(){return Promise.resolve(window.ethereum.send("net_version").then(Ai)).then(function(m){o=m})},function(){});if(y&&y.then)return y.then(function(){})}})();return p&&p.then?p.then(f):f(p)};if(!window.ethereum)throw new A_;var o,u=Qs(function(){return Promise.resolve(window.ethereum.send("eth_chainId").then(Ai)).then(function(c){o=c})},function(){});return Promise.resolve(u&&u.then?u.then(i):i(u))}catch(c){return Promise.reject(c)}},t.getAccount=function(){try{var i=function(){function f(){return o||(o=Ai(window.ethereum.send({method:"eth_accounts"}))[0]),o}var p=(function(){if(!o){var y=Qs(function(){return Promise.resolve(window.ethereum.enable().then(function(m){return Ai(m)[0]})).then(function(m){o=m})},function(){});if(y&&y.then)return y.then(function(){})}})();return p&&p.then?p.then(f):f(p)};if(!window.ethereum)throw new A_;var o,u=Qs(function(){return Promise.resolve(window.ethereum.send("eth_accounts").then(function(c){return Ai(c)[0]})).then(function(c){o=c})},function(){});return Promise.resolve(u&&u.then?u.then(i):i(u))}catch(c){return Promise.reject(c)}},t.deactivate=function(){window.ethereum&&window.ethereum.removeListener&&(window.ethereum.removeListener("chainChanged",this.handleChainChanged),window.ethereum.removeListener("accountsChanged",this.handleAccountsChanged),window.ethereum.removeListener("close",this.handleClose),window.ethereum.removeListener("networkChanged",this.handleNetworkChanged))},t.isAuthorized=function(){try{return window.ethereum?Promise.resolve(Qs(function(){return Promise.resolve(window.ethereum.send("eth_accounts").then(function(i){return Ai(i).length>0}))},function(){return!1})):Promise.resolve(!1)}catch(i){return Promise.reject(i)}},a})(iu);class N4 extends Error{constructor(){super("There was an error unlocking your wallet. Please be sure your wallet is unlocked and try again."),this.name="ErrorUnlockingWallet"}}const C4=60*1e3;class j4 extends M4{constructor(a){super({supportedChainIds:[a]})}async activate(){const a=new Promise((n,i)=>{setTimeout(()=>{i(new N4)},C4)}),t=super.activate();return Promise.race([t,a])}}var L4="Invariant failed";function kC(e,a){throw new Error(L4)}function ak(e,a){e.prototype=Object.create(a.prototype),e.prototype.constructor=e,Il(e,a)}function gb(e){return gb=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},gb(e)}function Il(e,a){return Il=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Il(e,a)}function D4(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function $d(e,a,t){return D4()?$d=Reflect.construct:$d=function(i,o,u){var c=[null];c.push.apply(c,o);var f=Function.bind.apply(i,c),p=new f;return u&&Il(p,u.prototype),p},$d.apply(null,arguments)}function q4(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function vb(e){var a=typeof Map=="function"?new Map:void 0;return vb=function(n){if(n===null||!q4(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof a<"u"){if(a.has(n))return a.get(n);a.set(n,i)}function i(){return $d(n,arguments,gb(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Il(i,n)},vb(e)}var P_=(function(e){ak(a,e);function a(t,n,i){var o;return o=e.call(this)||this,o.code=n,o.data=i,o.name=o.constructor.name,o.message=t,o}return a})(vb(Error)),k4=function(a,t){var n=this,i=this;this.isMetaMask=!1,this.sendAsync=function(u,c){console.log("sendAsync",u.method,u.params),i.request(u.method,u.params).then(function(f){return c(null,{jsonrpc:"2.0",id:u.id,result:f})}).catch(function(f){return c(f,null)})},this.request=function(u,c){try{return typeof u!="string"&&(c=u.params,u=u.method),Promise.resolve(fetch(n.url,{method:"POST",body:JSON.stringify({jsonrpc:"2.0",id:1,method:u,params:c}),headers:{"Content-Type":"application/json"}})).then(function(f){if(!f.ok)throw new P_(f.status+": "+f.statusText,-32e3);return Promise.resolve(f.json()).then(function(p){if("error"in p){var y,m,g;throw new P_(p==null||(y=p.error)==null?void 0:y.message,p==null||(m=p.error)==null?void 0:m.code,p==null||(g=p.error)==null?void 0:g.data)}else{if("result"in p)return p.result;throw new P_("Received unexpected JSON-RPC response to "+u+" request.",-32e3,p)}})})}catch(f){return Promise.reject(f)}},this.chainId=a,this.url=t;var o=new URL(t);this.host=o.host,this.path=o.pathname},U4=(function(e){ak(a,e);function a(n){var i,o=n.urls,u=n.defaultChainId;return u||Object.keys(o).length===1||kC(),i=e.call(this,{supportedChainIds:Object.keys(o).map(function(c){return Number(c)})})||this,i.currentChainId=u||Number(Object.keys(o)[0]),i.providers=Object.keys(o).reduce(function(c,f){return c[Number(f)]=new k4(Number(f),o[Number(f)]),c},{}),i}var t=a.prototype;return t.activate=function(){try{var i=this;return Promise.resolve({provider:i.providers[i.currentChainId],chainId:i.currentChainId,account:null})}catch(o){return Promise.reject(o)}},t.getProvider=function(){try{var i=this;return Promise.resolve(i.providers[i.currentChainId])}catch(o){return Promise.reject(o)}},t.getChainId=function(){try{var i=this;return Promise.resolve(i.currentChainId)}catch(o){return Promise.reject(o)}},t.getAccount=function(){return Promise.resolve(null)},t.deactivate=function(){},t.changeChainId=function(i){Object.keys(this.providers).includes(i.toString())||kC(),this.currentChainId=i,this.emitUpdate({provider:this.providers[this.currentChainId],chainId:i})},a})(iu);class B4 extends U4{constructor(a){super({urls:Qi()[Ct.ProviderType.NETWORK].urls,defaultChainId:a})}}function _b(){return _b=Object.assign||function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},_b.apply(this,arguments)}function F4(e,a){e.prototype=Object.create(a.prototype),e.prototype.constructor=e,Eb(e,a)}function Eb(e,a){return Eb=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Eb(e,a)}function UC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var V4=1,H4=(function(e){F4(a,e);function a(n){var i,o=n.url,u=n.appName,c=n.appLogoUrl,f=n.darkMode,p=n.supportedChainIds;return i=e.call(this,{supportedChainIds:p})||this,i.url=o,i.appName=u,i.appLogoUrl=c,i.darkMode=f||!1,i.handleChainChanged=i.handleChainChanged.bind(UC(i)),i.handleAccountsChanged=i.handleAccountsChanged.bind(UC(i)),i}var t=a.prototype;return t.activate=function(){try{var i=this,o=function(){return Promise.resolve(i.provider.request({method:"eth_requestAccounts"})).then(function(f){var p=f[0];return i.provider.on("chainChanged",i.handleChainChanged),i.provider.on("accountsChanged",i.handleAccountsChanged),{provider:i.provider,account:p}})},u=(function(){if(window.ethereum&&window.ethereum.isCoinbaseWallet===!0)i.provider=window.ethereum;else{var c=(function(){if(!i.walletLink)return Promise.resolve(Pl(()=>import("./index-DOy_7bz6.js").then(f=>f.i),[]).then(function(f){var p;return(p=f?.default)!=null?p:f})).then(function(f){i.walletLink=new f(_b({appName:i.appName,darkMode:i.darkMode},i.appLogoUrl?{appLogoUrl:i.appLogoUrl}:{})),i.provider=i.walletLink.makeWeb3Provider(i.url,V4)})})();if(c&&c.then)return c.then(function(){})}})();return Promise.resolve(u&&u.then?u.then(o):o(u))}catch(c){return Promise.reject(c)}},t.getProvider=function(){try{var i=this;return Promise.resolve(i.provider)}catch(o){return Promise.reject(o)}},t.getChainId=function(){try{var i=this;return Promise.resolve(i.provider.chainId)}catch(o){return Promise.reject(o)}},t.getAccount=function(){try{var i=this;return Promise.resolve(i.provider.request({method:"eth_requestAccounts"})).then(function(o){return o[0]})}catch(o){return Promise.reject(o)}},t.deactivate=function(){this.provider.removeListener("chainChanged",this.handleChainChanged),this.provider.removeListener("accountsChanged",this.handleAccountsChanged)},t.close=function(){try{var i=this;return i.provider.close(),i.emitDeactivate(),Promise.resolve()}catch(o){return Promise.reject(o)}},t.handleChainChanged=function(i){this.emitUpdate({chainId:i})},t.handleAccountsChanged=function(i){this.emitUpdate({account:i[0]})},a})(iu);class z4 extends H4{constructor(a){const t=Qi()[eu.ProviderType.WALLET_LINK];super({url:t.urls[a],appName:t.appName,supportedChainIds:[a]})}}class Pi extends iu{constructor(a){super({supportedChainIds:(()=>{const{chains:t,optionalChains:n}=Pi.configuration.chains[a];return[...t,...n]})()}),this.desiredChainId=a,this.activate=async()=>{const t=await Pl(()=>import("./index-DrVdGUjk.js").then(i=>i.R),[]).then(i=>{const{chains:o,optionalChains:u}=Pi.configuration.chains[this.desiredChainId];return i.default.init({projectId:Pi.configuration.projectId,rpcMap:Pi.configuration.urls,chains:o,optionalChains:u,showQrModal:!0,disableProviderPing:!0,qrModalOptions:{themeVariables:{"--wcm-z-index":"3000"}},methods:["eth_sendTransaction","personal_sign"],optionalMethods:["eth_accounts","eth_requestAccounts","eth_sign","eth_signTypedData_v4","wallet_switchEthereumChain","wallet_addEthereumChain"],events:["chainChanged","accountsChanged"],optionalEvents:["disconnect"]})}),n=await t.enable();return t.on("accountsChanged",this.handleAccountsChanged),t.on("chainChanged",this.handleChainChanged),t.on("disconnect",this.handleDisconnect),this.provider=t,{chainId:t.chainId,account:n[0],provider:t}},this.getProvider=async()=>{if(!this.provider)throw new Error("Provider is undefined");return this.provider},this.getChainId=async()=>{if(!this.provider)throw new Error("Provider is undefined");return this.provider.chainId},this.getAccount=async()=>{if(!this.provider)throw new Error("Provider is undefined");return this.provider.accounts[0]},this.getWalletName=()=>this.provider?.session?.peer.metadata.name,this.deactivate=()=>{},this.close=async()=>{if(this.provider)return this.provider.removeListener("accountsChanged",this.handleAccountsChanged).removeListener("chainChanged",this.handleChainChanged).removeListener("disconnect",this.handleDisconnect).disconnect()},this.handleAccountsChanged=t=>{this.emitUpdate({account:t[0]})},this.handleChainChanged=t=>{this.emitUpdate({chainId:t})},this.handleDisconnect=()=>{if(!this.provider)throw new Error("Provider is undefined");return this.emitDeactivate()}}}Pi.configuration=Qi()[eu.ProviderType.WALLET_CONNECT_V2];Pi.clearStorage=e=>{e.removeRegExp(new RegExp("^wc@2:"))};class ok extends iu{constructor(a,t=!1){super({supportedChainIds:Qi()[eu.ProviderType.MAGIC].chains}),this.isTest=t,this.activate=async()=>{if(this.magic=await this.buildMagicInstance(this.chainId),!await this.magic.user.isLoggedIn())throw new Error("Magic: user isn't logged in");const i=await this.getProvider(),o=await i.request({method:"eth_accounts"});return this.account=o[0]??null,{provider:i,chainId:this.chainId,account:this.account}},this.getProvider=async()=>{if(!this.magic)throw new Error("Magic: instance was not initialized");const n=await this.magic.wallet.getProvider();return{...n,isMagic:!0,request:new Proxy(n.request,{apply:async(i,o,u)=>{if(u[0]?.method==="wallet_switchEthereumChain")try{const c=parseInt(u[0]?.params[0]?.chainId,16);return this.supportedChainIds&&!this.supportedChainIds.includes(c)?{code:2020202,message:"Unsupported Magic ChainId"}:(this.magic=await this.buildMagicInstance(c),this.emitUpdate({chainId:c}),null)}catch{return{code:2020201,message:"Error changing the Magic ChainId"}}return i.bind(n)(...u)}}),sendAsync:new Proxy(n.send,{apply:async(i,o,u)=>i.bind(n)(...u)})}},this.getChainId=async()=>{if(!this.magic)throw new Error("Magic: instance was not initialized");return this.chainId},this.getAccount=async()=>{if(!this.magic)throw new Error("Magic: instance was not initialized");return this.account},this.deactivate=()=>{},this.buildMagicInstance=async n=>{const{Magic:i}=await Pl(async()=>{const{Magic:c}=await import("./index-8e4wv-tH.js");return{Magic:c}},__vite__mapDeps([0,1])),{OAuthExtension:o}=await Pl(async()=>{const{OAuthExtension:c}=await import("./index-QHMvomuf.js");return{OAuthExtension:c}},__vite__mapDeps([2,1])),u=Qi()[this.isTest?eu.ProviderType.MAGIC_TEST:eu.ProviderType.MAGIC];return new i(u.apiKey,{extensions:[new o],network:{rpcUrl:u.urls[n],chainId:n}})},this.chainId=a,this.account=null}close(){if(!this.magic)throw new Error("Magic: instance was not initialized");return this.magic.user.logout()}}class W4 extends ok{constructor(a){super(a,!0)}}class G4{}class K4 extends G4{get(a){const t=window.localStorage.getItem(a);return t===null?void 0:t}set(a,t){window.localStorage.setItem(a,t)}remove(a){window.localStorage.removeItem(a)}removeRegExp(a){for(let t=localStorage.length-1;t>=0;t--){const n=localStorage.key(t);n&&a.test(n)&&localStorage.removeItem(n)}}}class nf{constructor(a){this.provider=a,this.id=0,this.on=(t,n)=>this.provider.on(t,n),this.emit=(t,...n)=>this.provider.emit(t,n),this.removeListener=(t,n)=>this.provider.removeListener(t,n),this.request=async({method:t,params:n})=>this.isModernProvider()?this.provider.request({method:t,params:n}):this.send(t,n),this.sendAsync=async(t,n)=>this.hasSendAsync()?this.provider.sendAsync(t,(i,o)=>{o&&!o.hasOwnProperty("result")?n(i,{id:0,jsonrpc:"2.0",result:o}):n(i,o)}):this.send(t,n)}static adapt(a){const t=new nf(a);return{...a,on:t.on,emit:t.emit,removeListener:t.removeListener,request:t.request,sendAsync:t.sendAsync,send:t.send.bind(t)}}async send(a,t){let n,i,o;const u=typeof t=="function";if(u){const c=a;i=c.params||[],n=c.method,o=t}else n=a,i=t||[],o=(c,f)=>{if(c)throw c;return f};if(this.isModernProvider()){const[c,f]=await this.provider.request({method:n,params:i}).then(y=>[null,y]).catch(y=>[y,void 0]);return o(c,u?{id:"",jsonrpc:"2.0",result:f}:f)}else{this.patchOldMobile();const[c,f]=u?await new Promise(p=>this.provider.send(a,(y,m)=>{p([y,m])})):await new Promise(p=>this.provider.send({jsonrpc:"2.0",id:++this.id,method:n,params:i},(y,m)=>{p([m&&m.hasOwnProperty("error")?m.error:y,m&&m.hasOwnProperty("result")?m.result:m])}));return o(c,f)}}isModernProvider(){return typeof this.provider.request=="function"}hasSendAsync(){return typeof this.provider.sendAsync=="function"}patchOldMobile(){this.provider&&!this.provider.isDapper&&!this.provider.isFortmatic&&!this.provider.isMetamask&&this.hasSendAsync()&&this.provider.send!==this.provider.sendAsync&&(this.provider.send=this.provider.sendAsync)}}class Y4{constructor(a){this.storage=a,this.getWalletName=()=>{if(this.connector instanceof Pi)return this.connector.getWalletName()},this.clearConnectionData=()=>{const{storageKey:t}=Qi();this.storage.remove(t),Pi.clearStorage(this.storage)},this.handleWeb3ReactDeactivate=async()=>{try{await this.disconnect()}catch(t){console.error(t)}}}async connect(a,t=wt.ChainId.ETHEREUM_MAINNET){if(this.connector)try{await this.disconnect()}catch(c){console.error("Error disconnecting previous connection",c)}const n=this.buildConnector(a,t);n.on(Xi.Deactivate,this.handleWeb3ReactDeactivate);let{provider:i,account:o}={};try{const c=await n.activate();i=c.provider,o=c.account}catch(c){throw console.error("Error activating the connector",c),c}(a===Ct.ProviderType.MAGIC||a===Ct.ProviderType.MAGIC_TEST)&&n.on(Xi.Update,({chainId:c})=>{c&&this.setConnectionData(a,c)});let u=t;if(a===Ct.ProviderType.INJECTED){const c=await i.request({method:"eth_chainId"});u=c?parseInt(c,16):u}return this.connector=n,this.setConnectionData(a,u),{provider:nf.adapt(i),providerType:a,account:o||"",chainId:u}}isConnected(){return!!this.connector&&!!this.getConnectionData()}async tryPreviousConnection(){const a=this.getConnectionData();if(!a)throw new Error("Could not find a valid provider. Make sure to call the `connect` method first");if(this.connector)return{provider:await this.connector.getProvider(),providerType:a.providerType,chainId:a.chainId,account:await this.connector.getAccount()};const t=this.promiseOfConnection?await this.promiseOfConnection:await(this.promiseOfConnection=this.connect(a.providerType,a.chainId));return this.promiseOfConnection=void 0,{...t,chainId:this.getConnectionData().chainId}}getAvailableProviders(){const a=[Ct.ProviderType.FORTMATIC,Ct.ProviderType.WALLET_CONNECT,Ct.ProviderType.WALLET_LINK];return typeof window<"u"&&window.ethereum!==void 0?a.unshift(Ct.ProviderType.INJECTED):a.unshift(Ct.ProviderType.METAMASK_MOBILE),a}async disconnect(){this.connector&&(this.connector.removeAllListeners(Xi.Deactivate),this.connector.removeAllListeners(Xi.Update),this.connector.deactivate(),this.isClosableConnector()&&await this.connector.close()),this.clearConnectionData(),this.connector=void 0}async getProvider(){if(!this.connector)throw new Error("No valid connector found. Please .connect() first");return this.connector.getProvider()}async createProvider(a,t=wt.ChainId.ETHEREUM_MAINNET){const i=await this.buildConnector(a,t).getProvider();return nf.adapt(i)}buildConnector(a,t){switch(a){case Ct.ProviderType.INJECTED:return new j4(t);case Ct.ProviderType.FORTMATIC:return new A4(t);case Ct.ProviderType.MAGIC:return new ok(t);case Ct.ProviderType.MAGIC_TEST:return new W4(t);case Ct.ProviderType.WALLET_LINK:return new z4(t);case Ct.ProviderType.NETWORK:return new B4(t);case Ct.ProviderType.WALLET_CONNECT_V2:return new Pi(t);default:throw new Error(`Invalid provider ${a}`)}}getConnectionData(){const{storageKey:a}=Qi(),t=this.storage.get(a);return t?JSON.parse(t):void 0}setConnectionData(a,t){const{storageKey:n}=Qi(),i=JSON.stringify({providerType:a,chainId:t});this.storage.set(n,i)}isClosableConnector(){return this.connector&&typeof this.connector.close<"u"}}const I_=new Y4(new K4),X4=e=>/^decentraland.(zone|org|today)$/.test(e),J4=async(e,a="https://peer.decentraland.org")=>{try{const n=await(await fetch(`${a}/lambdas/profiles`,{method:"POST",body:JSON.stringify({ids:[e]})})).json();return n.length>0&&n[0]?.avatars?.length>0?n[0].avatars[0]:void 0}catch(t){console.error("Error fetching avatar:",t);return}},Q4=e=>({shouldUseBasePath:X4,fetchAvatar:a=>J4(a),...e,debug:e.debug??!1}),Z4=e=>({[jn.ChainId.ETHEREUM_MAINNET]:"Ethereum Mainnet",[jn.ChainId.ETHEREUM_SEPOLIA]:"Ethereum Sepolia",[jn.ChainId.MATIC_MAINNET]:"Polygon Mainnet",[jn.ChainId.MATIC_AMOY]:"Polygon Amoy"})[e]||`Chain ID ${e}`,$4=e=>{const a="0x"+e.toString(16),t=Z4(e);switch(e){case jn.ChainId.MATIC_MAINNET:return{chainId:a,chainName:t,nativeCurrency:{name:"POL",symbol:"POL",decimals:18},rpcUrls:["https://rpc-mainnet.maticvigil.com/"],blockExplorerUrls:["https://polygonscan.com/"]};case jn.ChainId.MATIC_AMOY:return{chainId:a,chainName:t,nativeCurrency:{name:"POL",symbol:"POL",decimals:18},rpcUrls:["https://rpc-amoy.polygon.technology/"],blockExplorerUrls:["https://www.oklink.com/amoy"]};case jn.ChainId.ETHEREUM_SEPOLIA:return{chainId:a,chainName:t,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:["https://sepolia.infura.io/v3/"],blockExplorerUrls:["https://sepolia.etherscan.io"]};default:return{chainId:"0x1",chainName:"Ethereum Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:["https://mainnet.infura.io/v3/"],blockExplorerUrls:["https://etherscan.io"]}}},BC=async e=>{const a=await e.request({method:"eth_chainId"});return parseInt(a,16)},Vr=(e,a,t=!1)=>{t&&typeof console<"u"&&console.log(`[Auth] ${e}`,a||"")},x4=(e,a,t)=>{const i=new URLSearchParams(t).get("redirectTo"),o=e.shouldUseBasePath?.(window.location.host)?e.basePath:"",u=i?`${o}${i}`:`${o}${a}${t}`;return`${e.authUrl}/login?redirectTo=${encodeURIComponent(window.location.origin+u)}`},sk=fe.createContext(void 0),ez=({children:e,config:a})=>{const{pathname:t,search:n}=Sa(),i=fe.useMemo(()=>Q4(a),[a]),[o,u]=fe.useState(),[c,f]=fe.useState(),[p,y]=fe.useState(!1),[m,g]=fe.useState(!1),[S,M]=fe.useState(i.defaultChainId),R=fe.useCallback(()=>{Vr("Initiating sign in",{pathname:t,search:n},i.debug);const P=x4(i,t,n);Vr("Redirecting to auth",{redirectUrl:P},i.debug),window.location.replace(P)},[t,n,i]),I=fe.useCallback(()=>{try{Vr("Signing out",{wallet:o},i.debug),I_.disconnect(),o&&yb.LocalStorageUtils.setIdentity(o,null),u(void 0),f(void 0),y(!1),Vr("Sign out completed",void 0,i.debug)}catch(P){console.error("Error during sign-out:",P)}},[o,i.debug]),N=fe.useCallback(async(P=jn.ChainId.ETHEREUM_MAINNET)=>{try{Vr("Changing network",{from:S,to:P},i.debug);const T=await I_.getProvider();if(!T){console.error("No provider available to switch network"),M(jn.ChainId.ETHEREUM_MAINNET);return}M(P);try{await T.request({method:"wallet_switchEthereumChain",params:[{chainId:"0x"+P.toString(16)}]});const v=await BC(T);v!==P&&console.warn("Chain ID did not change as expected"),Vr("Network changed successfully",{chainId:v},i.debug)}catch(v){const O=v;O.code===4902?(Vr("Adding new chain to wallet",{chainId:P},i.debug),await T.request({method:"wallet_addEthereumChain",params:[$4(P)]}),await BC(T)!==P&&(console.warn("Chain ID not set after adding network"),M(jn.ChainId.ETHEREUM_MAINNET))):(console.error("Error switching network:",O),M(jn.ChainId.ETHEREUM_MAINNET))}}catch(T){console.error("Error during network change:",T),M(jn.ChainId.ETHEREUM_MAINNET)}},[S,i.debug]);fe.useEffect(()=>{(async()=>{try{g(!0),Vr("Checking auth status",void 0,i.debug);try{const{account:T,chainId:v}=await I_.tryPreviousConnection();if(T){Vr("Previous connection found",{address:T,chainId:v},i.debug),u(T),M(v);let O=!1;try{const C=yb.LocalStorageUtils.getIdentity(T);if(C&&C.expiration){const z=new Date(C.expiration),U=new Date;U.getTime()<=z.getTime()?(Vr("Identity valid",{expiration:z},i.debug),O=!0):Vr("Identity expired",{expiration:z,now:U},i.debug)}else Vr("No identity found",void 0,i.debug)}catch(C){console.error("Error checking identity:",C)}if(y(O),O&&i.fetchAvatar)try{Vr("Fetching avatar",{address:T},i.debug);const C=await i.fetchAvatar(T);C&&(f(C),Vr("Avatar fetched successfully",C,i.debug))}catch(C){console.error("Error fetching avatar:",C)}}else Vr("No previous connection found",void 0,i.debug)}catch(T){Vr("Previous connection failed",T,i.debug)}}catch(T){console.error("Error checking auth status:",T)}finally{g(!1)}})()},[i.debug,i.fetchAvatar]);const E={wallet:o,avatar:c,chainId:S,isSignedIn:p,isConnecting:m,signIn:R,signOut:I,changeNetwork:N};return Ie.jsx(sk.Provider,{value:E,children:e})},s0=e=>{const a=fe.useContext(sk);if(a===void 0)throw new Error("useAuth must be used within an AuthProvider");return a};var Vo={},ri={},wl={exports:{}};var tz=wl.exports,FC;function wf(){return FC||(FC=1,(function(e,a){(function(t,n){n(a)})(tz,(function(t){function n(_){if(_.jsonrpc="2.0",!_.id||typeof _.id!="number"||Math.floor(_.id)!==_.id)throw new Error(`Invalid RPC message(invalid id) message: ${JSON.stringify(_)}`);if(!_.method||typeof _.method!="string"||_.method.trim().length===0)throw new Error(`Invalid RPC message(invalid method) message: ${JSON.stringify(_)}`);if(!_.params||typeof _.params!="object")throw new Error(`Invalid RPC message(invalid params) message: ${JSON.stringify(_)}`);return _}var i={};function o(){let _,A;const q=new Promise(((Y,x)=>{_=ne=>{Y(ne),q.isPending=!1},A=ne=>{x(ne),q.isPending=!1}})).catch((Y=>Promise.reject(Y)));return q.resolve=_,q.reject=A,"finally"in q||(q.finally=Y=>{q.then(Y),q.catch(Y)}),q.isPending=!0,q}Object.defineProperty(i,"__esModule",{value:!0});var u=i.future=o;i.default=o;var c={exports:{}};(function(_){(function(){var A="input is invalid type",q=typeof window=="object",Y=q?window:{};Y.JS_SHA3_NO_WINDOW&&(q=!1);var x=!q&&typeof self=="object";!Y.JS_SHA3_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node?Y=U2:x&&(Y=self);var ne=!Y.JS_SHA3_NO_COMMON_JS&&_.exports,Oe=!Y.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",Ve="0123456789abcdef".split(""),it=[4,1024,262144,67108864],st=[0,8,16,24],fr=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],Ht=[224,256,384,512],ze=[128,256],_r=["hex","buffer","arrayBuffer","array","digest"],zt={128:168,256:136};!Y.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(b){return Object.prototype.toString.call(b)==="[object Array]"}),!Oe||!Y.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(b){return typeof b=="object"&&b.buffer&&b.buffer.constructor===ArrayBuffer});for(var Dt=function(b,V,Q){return function(G){return new Mt(b,V,b).update(G)[Q]()}},Tr=function(b,V,Q){return function(G,ee){return new Mt(b,V,ee).update(G)[Q]()}},Tn=function(b,V,Q){return function(G,ee,$,re){return nr["cshake"+b].update(G,ee,$,re)[Q]()}},Kr=function(b,V,Q){return function(G,ee,$,re){return nr["kmac"+b].update(G,ee,$,re)[Q]()}},Er=function(b,V,Q,G){for(var ee=0;ee<_r.length;++ee){var $=_r[ee];b[$]=V(Q,G,$)}return b},Sn=function(b,V){var Q=Dt(b,V,"hex");return Q.create=function(){return new Mt(b,V,b)},Q.update=function(G){return Q.create().update(G)},Er(Q,Dt,b,V)},tn=[{name:"keccak",padding:[1,256,65536,16777216],bits:Ht,createMethod:Sn},{name:"sha3",padding:[6,1536,393216,100663296],bits:Ht,createMethod:Sn},{name:"shake",padding:[31,7936,2031616,520093696],bits:ze,createMethod:function(b,V){var Q=Tr(b,V,"hex");return Q.create=function(G){return new Mt(b,V,G)},Q.update=function(G,ee){return Q.create(ee).update(G)},Er(Q,Tr,b,V)}},{name:"cshake",padding:it,bits:ze,createMethod:function(b,V){var Q=zt[b],G=Tn(b,0,"hex");return G.create=function(ee,$,re){return $||re?new Mt(b,V,ee).bytepad([$,re],Q):nr["shake"+b].create(ee)},G.update=function(ee,$,re,pe){return G.create($,re,pe).update(ee)},Er(G,Tn,b,V)}},{name:"kmac",padding:it,bits:ze,createMethod:function(b,V){var Q=zt[b],G=Kr(b,0,"hex");return G.create=function(ee,$,re){return new lr(b,V,$).bytepad(["KMAC",re],Q).bytepad([ee],Q)},G.update=function(ee,$,re,pe){return G.create(ee,re,pe).update($)},Er(G,Kr,b,V)}}],nr={},qr=[],pr=0;pr<tn.length;++pr)for(var On=tn[pr],Be=On.bits,fn=0;fn<Be.length;++fn){var Un=On.name+"_"+Be[fn];if(qr.push(Un),nr[Un]=On.createMethod(Be[fn],On.padding),On.name!=="sha3"){var hi=On.name+Be[fn];qr.push(hi),nr[hi]=nr[Un]}}function Mt(b,V,Q){this.blocks=[],this.s=[],this.padding=V,this.outputBits=Q,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(b<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=Q>>5,this.extraBytes=(31&Q)>>3;for(var G=0;G<50;++G)this.s[G]=0}function lr(b,V,Q){Mt.call(this,b,V,Q)}Mt.prototype.update=function(b){if(this.finalized)throw new Error("finalize already called");var V,Q=typeof b;if(Q!=="string"){if(Q!=="object")throw new Error(A);if(b===null)throw new Error(A);if(Oe&&b.constructor===ArrayBuffer)b=new Uint8Array(b);else if(!(Array.isArray(b)||Oe&&ArrayBuffer.isView(b)))throw new Error(A);V=!0}for(var G,ee,$=this.blocks,re=this.byteCount,pe=b.length,ge=this.blockCount,he=0,We=this.s;he<pe;){if(this.reset)for(this.reset=!1,$[0]=this.block,G=1;G<ge+1;++G)$[G]=0;if(V)for(G=this.start;he<pe&&G<re;++he)$[G>>2]|=b[he]<<st[3&G++];else for(G=this.start;he<pe&&G<re;++he)(ee=b.charCodeAt(he))<128?$[G>>2]|=ee<<st[3&G++]:ee<2048?($[G>>2]|=(192|ee>>6)<<st[3&G++],$[G>>2]|=(128|63&ee)<<st[3&G++]):ee<55296||ee>=57344?($[G>>2]|=(224|ee>>12)<<st[3&G++],$[G>>2]|=(128|ee>>6&63)<<st[3&G++],$[G>>2]|=(128|63&ee)<<st[3&G++]):(ee=65536+((1023&ee)<<10|1023&b.charCodeAt(++he)),$[G>>2]|=(240|ee>>18)<<st[3&G++],$[G>>2]|=(128|ee>>12&63)<<st[3&G++],$[G>>2]|=(128|ee>>6&63)<<st[3&G++],$[G>>2]|=(128|63&ee)<<st[3&G++]);if(this.lastByteIndex=G,G>=re){for(this.start=G-re,this.block=$[ge],G=0;G<ge;++G)We[G]^=$[G];H(We),this.reset=!0}else this.start=G}return this},Mt.prototype.encode=function(b,V){var Q=255&b,G=1,ee=[Q];for(Q=255&(b>>=8);Q>0;)ee.unshift(Q),Q=255&(b>>=8),++G;return V?ee.push(G):ee.unshift(G),this.update(ee),ee.length},Mt.prototype.encodeString=function(b){var V,Q=typeof b;if(Q!=="string"){if(Q!=="object")throw new Error(A);if(b===null)throw new Error(A);if(Oe&&b.constructor===ArrayBuffer)b=new Uint8Array(b);else if(!(Array.isArray(b)||Oe&&ArrayBuffer.isView(b)))throw new Error(A);V=!0}var G=0,ee=b.length;if(V)G=ee;else for(var $=0;$<b.length;++$){var re=b.charCodeAt($);re<128?G+=1:re<2048?G+=2:re<55296||re>=57344?G+=3:(re=65536+((1023&re)<<10|1023&b.charCodeAt(++$)),G+=4)}return G+=this.encode(8*G),this.update(b),G},Mt.prototype.bytepad=function(b,V){for(var Q=this.encode(V),G=0;G<b.length;++G)Q+=this.encodeString(b[G]);var ee=V-Q%V,$=[];return $.length=ee,this.update($),this},Mt.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var b=this.blocks,V=this.lastByteIndex,Q=this.blockCount,G=this.s;if(b[V>>2]|=this.padding[3&V],this.lastByteIndex===this.byteCount)for(b[0]=b[Q],V=1;V<Q+1;++V)b[V]=0;for(b[Q-1]|=2147483648,V=0;V<Q;++V)G[V]^=b[V];H(G)}},Mt.prototype.toString=Mt.prototype.hex=function(){this.finalize();for(var b,V=this.blockCount,Q=this.s,G=this.outputBlocks,ee=this.extraBytes,$=0,re=0,pe="";re<G;){for($=0;$<V&&re<G;++$,++re)b=Q[$],pe+=Ve[b>>4&15]+Ve[15&b]+Ve[b>>12&15]+Ve[b>>8&15]+Ve[b>>20&15]+Ve[b>>16&15]+Ve[b>>28&15]+Ve[b>>24&15];re%V==0&&(H(Q),$=0)}return ee&&(b=Q[$],pe+=Ve[b>>4&15]+Ve[15&b],ee>1&&(pe+=Ve[b>>12&15]+Ve[b>>8&15]),ee>2&&(pe+=Ve[b>>20&15]+Ve[b>>16&15])),pe},Mt.prototype.arrayBuffer=function(){this.finalize();var b,V=this.blockCount,Q=this.s,G=this.outputBlocks,ee=this.extraBytes,$=0,re=0,pe=this.outputBits>>3;b=ee?new ArrayBuffer(G+1<<2):new ArrayBuffer(pe);for(var ge=new Uint32Array(b);re<G;){for($=0;$<V&&re<G;++$,++re)ge[re]=Q[$];re%V==0&&H(Q)}return ee&&(ge[$]=Q[$],b=b.slice(0,pe)),b},Mt.prototype.buffer=Mt.prototype.arrayBuffer,Mt.prototype.digest=Mt.prototype.array=function(){this.finalize();for(var b,V,Q=this.blockCount,G=this.s,ee=this.outputBlocks,$=this.extraBytes,re=0,pe=0,ge=[];pe<ee;){for(re=0;re<Q&&pe<ee;++re,++pe)b=pe<<2,V=G[re],ge[b]=255&V,ge[b+1]=V>>8&255,ge[b+2]=V>>16&255,ge[b+3]=V>>24&255;pe%Q==0&&H(G)}return $&&(b=pe<<2,V=G[re],ge[b]=255&V,$>1&&(ge[b+1]=V>>8&255),$>2&&(ge[b+2]=V>>16&255)),ge},lr.prototype=new Mt,lr.prototype.finalize=function(){return this.encode(this.outputBits,!0),Mt.prototype.finalize.call(this)};var H=function(b){var V,Q,G,ee,$,re,pe,ge,he,We,dt,yt,St,Wt,Yt,Pt,Nt,Qt,Bn,gi,vi,Mr,An,mr,cr,Gt,cs,ds,na,fs,ps,ys,Ma,ms,hs,gs,vs,_s,Es,bs,ia,_i,ws,Na,Ca,ja,La,Da,Fn,Ts,Ss,Os,qa,ka,Ei,bi,As,ji,Ps,Ua,aa,oa,Ba;for(G=0;G<48;G+=2)ee=b[0]^b[10]^b[20]^b[30]^b[40],$=b[1]^b[11]^b[21]^b[31]^b[41],re=b[2]^b[12]^b[22]^b[32]^b[42],pe=b[3]^b[13]^b[23]^b[33]^b[43],ge=b[4]^b[14]^b[24]^b[34]^b[44],he=b[5]^b[15]^b[25]^b[35]^b[45],We=b[6]^b[16]^b[26]^b[36]^b[46],dt=b[7]^b[17]^b[27]^b[37]^b[47],V=(yt=b[8]^b[18]^b[28]^b[38]^b[48])^(re<<1|pe>>>31),Q=(St=b[9]^b[19]^b[29]^b[39]^b[49])^(pe<<1|re>>>31),b[0]^=V,b[1]^=Q,b[10]^=V,b[11]^=Q,b[20]^=V,b[21]^=Q,b[30]^=V,b[31]^=Q,b[40]^=V,b[41]^=Q,V=ee^(ge<<1|he>>>31),Q=$^(he<<1|ge>>>31),b[2]^=V,b[3]^=Q,b[12]^=V,b[13]^=Q,b[22]^=V,b[23]^=Q,b[32]^=V,b[33]^=Q,b[42]^=V,b[43]^=Q,V=re^(We<<1|dt>>>31),Q=pe^(dt<<1|We>>>31),b[4]^=V,b[5]^=Q,b[14]^=V,b[15]^=Q,b[24]^=V,b[25]^=Q,b[34]^=V,b[35]^=Q,b[44]^=V,b[45]^=Q,V=ge^(yt<<1|St>>>31),Q=he^(St<<1|yt>>>31),b[6]^=V,b[7]^=Q,b[16]^=V,b[17]^=Q,b[26]^=V,b[27]^=Q,b[36]^=V,b[37]^=Q,b[46]^=V,b[47]^=Q,V=We^(ee<<1|$>>>31),Q=dt^($<<1|ee>>>31),b[8]^=V,b[9]^=Q,b[18]^=V,b[19]^=Q,b[28]^=V,b[29]^=Q,b[38]^=V,b[39]^=Q,b[48]^=V,b[49]^=Q,Wt=b[0],Yt=b[1],ja=b[11]<<4|b[10]>>>28,La=b[10]<<4|b[11]>>>28,ds=b[20]<<3|b[21]>>>29,na=b[21]<<3|b[20]>>>29,Ua=b[31]<<9|b[30]>>>23,aa=b[30]<<9|b[31]>>>23,_i=b[40]<<18|b[41]>>>14,ws=b[41]<<18|b[40]>>>14,ms=b[2]<<1|b[3]>>>31,hs=b[3]<<1|b[2]>>>31,Pt=b[13]<<12|b[12]>>>20,Nt=b[12]<<12|b[13]>>>20,Da=b[22]<<10|b[23]>>>22,Fn=b[23]<<10|b[22]>>>22,fs=b[33]<<13|b[32]>>>19,ps=b[32]<<13|b[33]>>>19,oa=b[42]<<2|b[43]>>>30,Ba=b[43]<<2|b[42]>>>30,ka=b[5]<<30|b[4]>>>2,Ei=b[4]<<30|b[5]>>>2,gs=b[14]<<6|b[15]>>>26,vs=b[15]<<6|b[14]>>>26,Qt=b[25]<<11|b[24]>>>21,Bn=b[24]<<11|b[25]>>>21,Ts=b[34]<<15|b[35]>>>17,Ss=b[35]<<15|b[34]>>>17,ys=b[45]<<29|b[44]>>>3,Ma=b[44]<<29|b[45]>>>3,mr=b[6]<<28|b[7]>>>4,cr=b[7]<<28|b[6]>>>4,bi=b[17]<<23|b[16]>>>9,As=b[16]<<23|b[17]>>>9,_s=b[26]<<25|b[27]>>>7,Es=b[27]<<25|b[26]>>>7,gi=b[36]<<21|b[37]>>>11,vi=b[37]<<21|b[36]>>>11,Os=b[47]<<24|b[46]>>>8,qa=b[46]<<24|b[47]>>>8,Na=b[8]<<27|b[9]>>>5,Ca=b[9]<<27|b[8]>>>5,Gt=b[18]<<20|b[19]>>>12,cs=b[19]<<20|b[18]>>>12,ji=b[29]<<7|b[28]>>>25,Ps=b[28]<<7|b[29]>>>25,bs=b[38]<<8|b[39]>>>24,ia=b[39]<<8|b[38]>>>24,Mr=b[48]<<14|b[49]>>>18,An=b[49]<<14|b[48]>>>18,b[0]=Wt^~Pt&Qt,b[1]=Yt^~Nt&Bn,b[10]=mr^~Gt&ds,b[11]=cr^~cs&na,b[20]=ms^~gs&_s,b[21]=hs^~vs&Es,b[30]=Na^~ja&Da,b[31]=Ca^~La&Fn,b[40]=ka^~bi&ji,b[41]=Ei^~As&Ps,b[2]=Pt^~Qt&gi,b[3]=Nt^~Bn&vi,b[12]=Gt^~ds&fs,b[13]=cs^~na&ps,b[22]=gs^~_s&bs,b[23]=vs^~Es&ia,b[32]=ja^~Da&Ts,b[33]=La^~Fn&Ss,b[42]=bi^~ji&Ua,b[43]=As^~Ps&aa,b[4]=Qt^~gi&Mr,b[5]=Bn^~vi&An,b[14]=ds^~fs&ys,b[15]=na^~ps&Ma,b[24]=_s^~bs&_i,b[25]=Es^~ia&ws,b[34]=Da^~Ts&Os,b[35]=Fn^~Ss&qa,b[44]=ji^~Ua&oa,b[45]=Ps^~aa&Ba,b[6]=gi^~Mr&Wt,b[7]=vi^~An&Yt,b[16]=fs^~ys&mr,b[17]=ps^~Ma&cr,b[26]=bs^~_i&ms,b[27]=ia^~ws&hs,b[36]=Ts^~Os&Na,b[37]=Ss^~qa&Ca,b[46]=Ua^~oa&ka,b[47]=aa^~Ba&Ei,b[8]=Mr^~Wt&Pt,b[9]=An^~Yt&Nt,b[18]=ys^~mr&Gt,b[19]=Ma^~cr&cs,b[28]=_i^~ms&gs,b[29]=ws^~hs&vs,b[38]=Os^~Na&ja,b[39]=qa^~Ca&La,b[48]=oa^~ka&bi,b[49]=Ba^~Ei&As,b[0]^=fr[G],b[1]^=fr[G+1]};if(ne)_.exports=nr;else for(pr=0;pr<qr.length;++pr)Y[qr[pr]]=nr[qr[pr]]})()})(c);var f=c.exports,p=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,y=Math.ceil,m=Math.floor,g="[BigNumber Error] ",S=g+"Number primitive has more than 15 significant digits: ",M=1e14,R=14,I=9007199254740991,N=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],E=1e7,P=1e9;function T(_){var A=0|_;return _>0||_===A?A:A-1}function v(_){for(var A,q,Y=1,x=_.length,ne=_[0]+"";Y<x;){for(A=_[Y++]+"",q=R-A.length;q--;A="0"+A);ne+=A}for(x=ne.length;ne.charCodeAt(--x)===48;);return ne.slice(0,x+1||1)}function O(_,A){var q,Y,x=_.c,ne=A.c,Oe=_.s,Ve=A.s,it=_.e,st=A.e;if(!Oe||!Ve)return null;if(q=x&&!x[0],Y=ne&&!ne[0],q||Y)return q?Y?0:-Ve:Oe;if(Oe!=Ve)return Oe;if(q=Oe<0,Y=it==st,!x||!ne)return Y?0:!x^q?1:-1;if(!Y)return it>st^q?1:-1;for(Ve=(it=x.length)<(st=ne.length)?it:st,Oe=0;Oe<Ve;Oe++)if(x[Oe]!=ne[Oe])return x[Oe]>ne[Oe]^q?1:-1;return it==st?0:it>st^q?1:-1}function C(_,A,q,Y){if(_<A||_>q||_!==m(_))throw Error(g+(Y||"Argument")+(typeof _=="number"?_<A||_>q?" out of range: ":" not an integer: ":" not a primitive number: ")+String(_))}function z(_){var A=_.c.length-1;return T(_.e/R)==A&&_.c[A]%2!=0}function U(_,A){return(_.length>1?_.charAt(0)+"."+_.slice(1):_)+(A<0?"e":"e+")+A}function K(_,A,q){var Y,x;if(A<0){for(x=q+".";++A;x+=q);_=x+_}else if(++A>(Y=_.length)){for(x=q,A-=Y;--A;x+=q);_+=x}else A<Y&&(_=_.slice(0,A)+"."+_.slice(A));return _}var ae=(function _(A){var q,Y,x,ne,Oe,Ve,it,st,fr,Ht,ze=Be.prototype={constructor:Be,toString:null,valueOf:null},_r=new Be(1),zt=20,Dt=4,Tr=-7,Tn=21,Kr=-1e7,Er=1e7,Sn=!1,tn=1,nr=0,qr={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},pr="0123456789abcdefghijklmnopqrstuvwxyz",On=!0;function Be(H,b){var V,Q,G,ee,$,re,pe,ge,he=this;if(!(he instanceof Be))return new Be(H,b);if(b==null){if(H&&H._isBigNumber===!0)return he.s=H.s,void(!H.c||H.e>Er?he.c=he.e=null:H.e<Kr?he.c=[he.e=0]:(he.e=H.e,he.c=H.c.slice()));if((re=typeof H=="number")&&0*H==0){if(he.s=1/H<0?(H=-H,-1):1,H===~~H){for(ee=0,$=H;$>=10;$/=10,ee++);return void(ee>Er?he.c=he.e=null:(he.e=ee,he.c=[H]))}ge=String(H)}else{if(!p.test(ge=String(H)))return x(he,ge,re);he.s=ge.charCodeAt(0)==45?(ge=ge.slice(1),-1):1}(ee=ge.indexOf("."))>-1&&(ge=ge.replace(".","")),($=ge.search(/e/i))>0?(ee<0&&(ee=$),ee+=+ge.slice($+1),ge=ge.substring(0,$)):ee<0&&(ee=ge.length)}else{if(C(b,2,pr.length,"Base"),b==10&&On)return Mt(he=new Be(H),zt+he.e+1,Dt);if(ge=String(H),re=typeof H=="number"){if(0*H!=0)return x(he,ge,re,b);if(he.s=1/H<0?(ge=ge.slice(1),-1):1,Be.DEBUG&&ge.replace(/^0\.0*|\./,"").length>15)throw Error(S+H)}else he.s=ge.charCodeAt(0)===45?(ge=ge.slice(1),-1):1;for(V=pr.slice(0,b),ee=$=0,pe=ge.length;$<pe;$++)if(V.indexOf(Q=ge.charAt($))<0){if(Q=="."){if($>ee){ee=pe;continue}}else if(!G&&(ge==ge.toUpperCase()&&(ge=ge.toLowerCase())||ge==ge.toLowerCase()&&(ge=ge.toUpperCase()))){G=!0,$=-1,ee=0;continue}return x(he,String(H),re,b)}re=!1,(ee=(ge=Y(ge,b,10,he.s)).indexOf("."))>-1?ge=ge.replace(".",""):ee=ge.length}for($=0;ge.charCodeAt($)===48;$++);for(pe=ge.length;ge.charCodeAt(--pe)===48;);if(ge=ge.slice($,++pe)){if(pe-=$,re&&Be.DEBUG&&pe>15&&(H>I||H!==m(H)))throw Error(S+he.s*H);if((ee=ee-$-1)>Er)he.c=he.e=null;else if(ee<Kr)he.c=[he.e=0];else{if(he.e=ee,he.c=[],$=(ee+1)%R,ee<0&&($+=R),$<pe){for($&&he.c.push(+ge.slice(0,$)),pe-=R;$<pe;)he.c.push(+ge.slice($,$+=R));$=R-(ge=ge.slice($)).length}else $-=pe;for(;$--;ge+="0");he.c.push(+ge)}}else he.c=[he.e=0]}function fn(H,b,V,Q){var G,ee,$,re,pe;if(V==null?V=Dt:C(V,0,8),!H.c)return H.toString();if(G=H.c[0],$=H.e,b==null)pe=v(H.c),pe=Q==1||Q==2&&($<=Tr||$>=Tn)?U(pe,$):K(pe,$,"0");else if(ee=(H=Mt(new Be(H),b,V)).e,re=(pe=v(H.c)).length,Q==1||Q==2&&(b<=ee||ee<=Tr)){for(;re<b;pe+="0",re++);pe=U(pe,ee)}else if(b-=$,pe=K(pe,ee,"0"),ee+1>re){if(--b>0)for(pe+=".";b--;pe+="0");}else if((b+=ee-re)>0)for(ee+1==re&&(pe+=".");b--;pe+="0");return H.s<0&&G?"-"+pe:pe}function Un(H,b){for(var V,Q=1,G=new Be(H[0]);Q<H.length;Q++){if(!(V=new Be(H[Q])).s){G=V;break}b.call(G,V)&&(G=V)}return G}function hi(H,b,V){for(var Q=1,G=b.length;!b[--G];b.pop());for(G=b[0];G>=10;G/=10,Q++);return(V=Q+V*R-1)>Er?H.c=H.e=null:V<Kr?H.c=[H.e=0]:(H.e=V,H.c=b),H}function Mt(H,b,V,Q){var G,ee,$,re,pe,ge,he,We=H.c,dt=N;if(We){e:{for(G=1,re=We[0];re>=10;re/=10,G++);if((ee=b-G)<0)ee+=R,$=b,he=(pe=We[ge=0])/dt[G-$-1]%10|0;else if((ge=y((ee+1)/R))>=We.length){if(!Q)break e;for(;We.length<=ge;We.push(0));pe=he=0,G=1,$=(ee%=R)-R+1}else{for(pe=re=We[ge],G=1;re>=10;re/=10,G++);he=($=(ee%=R)-R+G)<0?0:pe/dt[G-$-1]%10|0}if(Q=Q||b<0||We[ge+1]!=null||($<0?pe:pe%dt[G-$-1]),Q=V<4?(he||Q)&&(V==0||V==(H.s<0?3:2)):he>5||he==5&&(V==4||Q||V==6&&(ee>0?$>0?pe/dt[G-$]:0:We[ge-1])%10&1||V==(H.s<0?8:7)),b<1||!We[0])return We.length=0,Q?(b-=H.e+1,We[0]=dt[(R-b%R)%R],H.e=-b||0):We[0]=H.e=0,H;if(ee==0?(We.length=ge,re=1,ge--):(We.length=ge+1,re=dt[R-ee],We[ge]=$>0?m(pe/dt[G-$]%dt[$])*re:0),Q)for(;;){if(ge==0){for(ee=1,$=We[0];$>=10;$/=10,ee++);for($=We[0]+=re,re=1;$>=10;$/=10,re++);ee!=re&&(H.e++,We[0]==M&&(We[0]=1));break}if(We[ge]+=re,We[ge]!=M)break;We[ge--]=0,re=1}for(ee=We.length;We[--ee]===0;We.pop());}H.e>Er?H.c=H.e=null:H.e<Kr&&(H.c=[H.e=0])}return H}function lr(H){var b,V=H.e;return V===null?H.toString():(b=v(H.c),b=V<=Tr||V>=Tn?U(b,V):K(b,V,"0"),H.s<0?"-"+b:b)}return Be.clone=_,Be.ROUND_UP=0,Be.ROUND_DOWN=1,Be.ROUND_CEIL=2,Be.ROUND_FLOOR=3,Be.ROUND_HALF_UP=4,Be.ROUND_HALF_DOWN=5,Be.ROUND_HALF_EVEN=6,Be.ROUND_HALF_CEIL=7,Be.ROUND_HALF_FLOOR=8,Be.EUCLID=9,Be.config=Be.set=function(H){var b,V;if(H!=null){if(typeof H!="object")throw Error(g+"Object expected: "+H);if(H.hasOwnProperty(b="DECIMAL_PLACES")&&(C(V=H[b],0,P,b),zt=V),H.hasOwnProperty(b="ROUNDING_MODE")&&(C(V=H[b],0,8,b),Dt=V),H.hasOwnProperty(b="EXPONENTIAL_AT")&&((V=H[b])&&V.pop?(C(V[0],-P,0,b),C(V[1],0,P,b),Tr=V[0],Tn=V[1]):(C(V,-P,P,b),Tr=-(Tn=V<0?-V:V))),H.hasOwnProperty(b="RANGE"))if((V=H[b])&&V.pop)C(V[0],-P,-1,b),C(V[1],1,P,b),Kr=V[0],Er=V[1];else{if(C(V,-P,P,b),!V)throw Error(g+b+" cannot be zero: "+V);Kr=-(Er=V<0?-V:V)}if(H.hasOwnProperty(b="CRYPTO")){if((V=H[b])!==!!V)throw Error(g+b+" not true or false: "+V);if(V){if(typeof crypto>"u"||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Sn=!V,Error(g+"crypto unavailable");Sn=V}else Sn=V}if(H.hasOwnProperty(b="MODULO_MODE")&&(C(V=H[b],0,9,b),tn=V),H.hasOwnProperty(b="POW_PRECISION")&&(C(V=H[b],0,P,b),nr=V),H.hasOwnProperty(b="FORMAT")){if(typeof(V=H[b])!="object")throw Error(g+b+" not an object: "+V);qr=V}if(H.hasOwnProperty(b="ALPHABET")){if(typeof(V=H[b])!="string"||/^.?$|[+\-.\s]|(.).*\1/.test(V))throw Error(g+b+" invalid: "+V);On=V.slice(0,10)=="0123456789",pr=V}}return{DECIMAL_PLACES:zt,ROUNDING_MODE:Dt,EXPONENTIAL_AT:[Tr,Tn],RANGE:[Kr,Er],CRYPTO:Sn,MODULO_MODE:tn,POW_PRECISION:nr,FORMAT:qr,ALPHABET:pr}},Be.isBigNumber=function(H){if(!H||H._isBigNumber!==!0)return!1;if(!Be.DEBUG)return!0;var b,V,Q=H.c,G=H.e,ee=H.s;e:if({}.toString.call(Q)=="[object Array]"){if((ee===1||ee===-1)&&G>=-P&&G<=P&&G===m(G)){if(Q[0]===0){if(G===0&&Q.length===1)return!0;break e}if((b=(G+1)%R)<1&&(b+=R),String(Q[0]).length==b){for(b=0;b<Q.length;b++)if((V=Q[b])<0||V>=M||V!==m(V))break e;if(V!==0)return!0}}}else if(Q===null&&G===null&&(ee===null||ee===1||ee===-1))return!0;throw Error(g+"Invalid BigNumber: "+H)},Be.maximum=Be.max=function(){return Un(arguments,ze.lt)},Be.minimum=Be.min=function(){return Un(arguments,ze.gt)},Be.random=(ne=9007199254740992,Oe=Math.random()*ne&2097151?function(){return m(Math.random()*ne)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(H){var b,V,Q,G,ee,$=0,re=[],pe=new Be(_r);if(H==null?H=zt:C(H,0,P),G=y(H/R),Sn)if(crypto.getRandomValues){for(b=crypto.getRandomValues(new Uint32Array(G*=2));$<G;)(ee=131072*b[$]+(b[$+1]>>>11))>=9e15?(V=crypto.getRandomValues(new Uint32Array(2)),b[$]=V[0],b[$+1]=V[1]):(re.push(ee%1e14),$+=2);$=G/2}else{if(!crypto.randomBytes)throw Sn=!1,Error(g+"crypto unavailable");for(b=crypto.randomBytes(G*=7);$<G;)(ee=281474976710656*(31&b[$])+1099511627776*b[$+1]+4294967296*b[$+2]+16777216*b[$+3]+(b[$+4]<<16)+(b[$+5]<<8)+b[$+6])>=9e15?crypto.randomBytes(7).copy(b,$):(re.push(ee%1e14),$+=7);$=G/7}if(!Sn)for(;$<G;)(ee=Oe())<9e15&&(re[$++]=ee%1e14);for(G=re[--$],H%=R,G&&H&&(ee=N[R-H],re[$]=m(G/ee)*ee);re[$]===0;re.pop(),$--);if($<0)re=[Q=0];else{for(Q=-1;re[0]===0;re.splice(0,1),Q-=R);for($=1,ee=re[0];ee>=10;ee/=10,$++);$<R&&(Q-=R-$)}return pe.e=Q,pe.c=re,pe}),Be.sum=function(){for(var H=1,b=arguments,V=new Be(b[0]);H<b.length;)V=V.plus(b[H++]);return V},Y=(function(){var H="0123456789";function b(V,Q,G,ee){for(var $,re,pe=[0],ge=0,he=V.length;ge<he;){for(re=pe.length;re--;pe[re]*=Q);for(pe[0]+=ee.indexOf(V.charAt(ge++)),$=0;$<pe.length;$++)pe[$]>G-1&&(pe[$+1]==null&&(pe[$+1]=0),pe[$+1]+=pe[$]/G|0,pe[$]%=G)}return pe.reverse()}return function(V,Q,G,ee,$){var re,pe,ge,he,We,dt,yt,St,Wt=V.indexOf("."),Yt=zt,Pt=Dt;for(Wt>=0&&(he=nr,nr=0,V=V.replace(".",""),dt=(St=new Be(Q)).pow(V.length-Wt),nr=he,St.c=b(K(v(dt.c),dt.e,"0"),10,G,H),St.e=St.c.length),ge=he=(yt=b(V,Q,G,$?(re=pr,H):(re=H,pr))).length;yt[--he]==0;yt.pop());if(!yt[0])return re.charAt(0);if(Wt<0?--ge:(dt.c=yt,dt.e=ge,dt.s=ee,yt=(dt=q(dt,St,Yt,Pt,G)).c,We=dt.r,ge=dt.e),Wt=yt[pe=ge+Yt+1],he=G/2,We=We||pe<0||yt[pe+1]!=null,We=Pt<4?(Wt!=null||We)&&(Pt==0||Pt==(dt.s<0?3:2)):Wt>he||Wt==he&&(Pt==4||We||Pt==6&&1&yt[pe-1]||Pt==(dt.s<0?8:7)),pe<1||!yt[0])V=We?K(re.charAt(1),-Yt,re.charAt(0)):re.charAt(0);else{if(yt.length=pe,We)for(--G;++yt[--pe]>G;)yt[pe]=0,pe||(++ge,yt=[1].concat(yt));for(he=yt.length;!yt[--he];);for(Wt=0,V="";Wt<=he;V+=re.charAt(yt[Wt++]));V=K(V,ge,re.charAt(0))}return V}})(),q=(function(){function H(Q,G,ee){var $,re,pe,ge,he=0,We=Q.length,dt=G%E,yt=G/E|0;for(Q=Q.slice();We--;)he=((re=dt*(pe=Q[We]%E)+($=yt*pe+(ge=Q[We]/E|0)*dt)%E*E+he)/ee|0)+($/E|0)+yt*ge,Q[We]=re%ee;return he&&(Q=[he].concat(Q)),Q}function b(Q,G,ee,$){var re,pe;if(ee!=$)pe=ee>$?1:-1;else for(re=pe=0;re<ee;re++)if(Q[re]!=G[re]){pe=Q[re]>G[re]?1:-1;break}return pe}function V(Q,G,ee,$){for(var re=0;ee--;)Q[ee]-=re,re=Q[ee]<G[ee]?1:0,Q[ee]=re*$+Q[ee]-G[ee];for(;!Q[0]&&Q.length>1;Q.splice(0,1));}return function(Q,G,ee,$,re){var pe,ge,he,We,dt,yt,St,Wt,Yt,Pt,Nt,Qt,Bn,gi,vi,Mr,An,mr=Q.s==G.s?1:-1,cr=Q.c,Gt=G.c;if(!(cr&&cr[0]&&Gt&&Gt[0]))return new Be(Q.s&&G.s&&(cr?!Gt||cr[0]!=Gt[0]:Gt)?cr&&cr[0]==0||!Gt?0*mr:mr/0:NaN);for(Yt=(Wt=new Be(mr)).c=[],mr=ee+(ge=Q.e-G.e)+1,re||(re=M,ge=T(Q.e/R)-T(G.e/R),mr=mr/R|0),he=0;Gt[he]==(cr[he]||0);he++);if(Gt[he]>(cr[he]||0)&&ge--,mr<0)Yt.push(1),We=!0;else{for(gi=cr.length,Mr=Gt.length,he=0,mr+=2,(dt=m(re/(Gt[0]+1)))>1&&(Gt=H(Gt,dt,re),cr=H(cr,dt,re),Mr=Gt.length,gi=cr.length),Bn=Mr,Nt=(Pt=cr.slice(0,Mr)).length;Nt<Mr;Pt[Nt++]=0);An=Gt.slice(),An=[0].concat(An),vi=Gt[0],Gt[1]>=re/2&&vi++;do{if(dt=0,(pe=b(Gt,Pt,Mr,Nt))<0){if(Qt=Pt[0],Mr!=Nt&&(Qt=Qt*re+(Pt[1]||0)),(dt=m(Qt/vi))>1)for(dt>=re&&(dt=re-1),St=(yt=H(Gt,dt,re)).length,Nt=Pt.length;b(yt,Pt,St,Nt)==1;)dt--,V(yt,Mr<St?An:Gt,St,re),St=yt.length,pe=1;else dt==0&&(pe=dt=1),St=(yt=Gt.slice()).length;if(St<Nt&&(yt=[0].concat(yt)),V(Pt,yt,Nt,re),Nt=Pt.length,pe==-1)for(;b(Gt,Pt,Mr,Nt)<1;)dt++,V(Pt,Mr<Nt?An:Gt,Nt,re),Nt=Pt.length}else pe===0&&(dt++,Pt=[0]);Yt[he++]=dt,Pt[0]?Pt[Nt++]=cr[Bn]||0:(Pt=[cr[Bn]],Nt=1)}while((Bn++<gi||Pt[0]!=null)&&mr--);We=Pt[0]!=null,Yt[0]||Yt.splice(0,1)}if(re==M){for(he=1,mr=Yt[0];mr>=10;mr/=10,he++);Mt(Wt,ee+(Wt.e=he+ge*R-1)+1,$,We)}else Wt.e=ge,Wt.r=+We;return Wt}})(),Ve=/^(-?)0([xbo])(?=\w[\w.]*$)/i,it=/^([^.]+)\.$/,st=/^\.([^.]+)$/,fr=/^-?(Infinity|NaN)$/,Ht=/^\s*\+(?=[\w.])|^\s+|\s+$/g,x=function(H,b,V,Q){var G,ee=V?b:b.replace(Ht,"");if(fr.test(ee))H.s=isNaN(ee)?null:ee<0?-1:1;else{if(!V&&(ee=ee.replace(Ve,(function($,re,pe){return G=(pe=pe.toLowerCase())=="x"?16:pe=="b"?2:8,Q&&Q!=G?$:re})),Q&&(G=Q,ee=ee.replace(it,"$1").replace(st,"0.$1")),b!=ee))return new Be(ee,G);if(Be.DEBUG)throw Error(g+"Not a"+(Q?" base "+Q:"")+" number: "+b);H.s=null}H.c=H.e=null},ze.absoluteValue=ze.abs=function(){var H=new Be(this);return H.s<0&&(H.s=1),H},ze.comparedTo=function(H,b){return O(this,new Be(H,b))},ze.decimalPlaces=ze.dp=function(H,b){var V,Q,G,ee=this;if(H!=null)return C(H,0,P),b==null?b=Dt:C(b,0,8),Mt(new Be(ee),H+ee.e+1,b);if(!(V=ee.c))return null;if(Q=((G=V.length-1)-T(this.e/R))*R,G=V[G])for(;G%10==0;G/=10,Q--);return Q<0&&(Q=0),Q},ze.dividedBy=ze.div=function(H,b){return q(this,new Be(H,b),zt,Dt)},ze.dividedToIntegerBy=ze.idiv=function(H,b){return q(this,new Be(H,b),0,1)},ze.exponentiatedBy=ze.pow=function(H,b){var V,Q,G,ee,$,re,pe,ge,he=this;if((H=new Be(H)).c&&!H.isInteger())throw Error(g+"Exponent not an integer: "+lr(H));if(b!=null&&(b=new Be(b)),$=H.e>14,!he.c||!he.c[0]||he.c[0]==1&&!he.e&&he.c.length==1||!H.c||!H.c[0])return ge=new Be(Math.pow(+lr(he),$?H.s*(2-z(H)):+lr(H))),b?ge.mod(b):ge;if(re=H.s<0,b){if(b.c?!b.c[0]:!b.s)return new Be(NaN);(Q=!re&&he.isInteger()&&b.isInteger())&&(he=he.mod(b))}else{if(H.e>9&&(he.e>0||he.e<-1||(he.e==0?he.c[0]>1||$&&he.c[1]>=24e7:he.c[0]<8e13||$&&he.c[0]<=9999975e7)))return ee=he.s<0&&z(H)?-0:0,he.e>-1&&(ee=1/ee),new Be(re?1/ee:ee);nr&&(ee=y(nr/R+2))}for($?(V=new Be(.5),re&&(H.s=1),pe=z(H)):pe=(G=Math.abs(+lr(H)))%2,ge=new Be(_r);;){if(pe){if(!(ge=ge.times(he)).c)break;ee?ge.c.length>ee&&(ge.c.length=ee):Q&&(ge=ge.mod(b))}if(G){if((G=m(G/2))===0)break;pe=G%2}else if(Mt(H=H.times(V),H.e+1,1),H.e>14)pe=z(H);else{if((G=+lr(H))==0)break;pe=G%2}he=he.times(he),ee?he.c&&he.c.length>ee&&(he.c.length=ee):Q&&(he=he.mod(b))}return Q?ge:(re&&(ge=_r.div(ge)),b?ge.mod(b):ee?Mt(ge,nr,Dt,void 0):ge)},ze.integerValue=function(H){var b=new Be(this);return H==null?H=Dt:C(H,0,8),Mt(b,b.e+1,H)},ze.isEqualTo=ze.eq=function(H,b){return O(this,new Be(H,b))===0},ze.isFinite=function(){return!!this.c},ze.isGreaterThan=ze.gt=function(H,b){return O(this,new Be(H,b))>0},ze.isGreaterThanOrEqualTo=ze.gte=function(H,b){return(b=O(this,new Be(H,b)))===1||b===0},ze.isInteger=function(){return!!this.c&&T(this.e/R)>this.c.length-2},ze.isLessThan=ze.lt=function(H,b){return O(this,new Be(H,b))<0},ze.isLessThanOrEqualTo=ze.lte=function(H,b){return(b=O(this,new Be(H,b)))===-1||b===0},ze.isNaN=function(){return!this.s},ze.isNegative=function(){return this.s<0},ze.isPositive=function(){return this.s>0},ze.isZero=function(){return!!this.c&&this.c[0]==0},ze.minus=function(H,b){var V,Q,G,ee,$=this,re=$.s;if(b=(H=new Be(H,b)).s,!re||!b)return new Be(NaN);if(re!=b)return H.s=-b,$.plus(H);var pe=$.e/R,ge=H.e/R,he=$.c,We=H.c;if(!pe||!ge){if(!he||!We)return he?(H.s=-b,H):new Be(We?$:NaN);if(!he[0]||!We[0])return We[0]?(H.s=-b,H):new Be(he[0]?$:Dt==3?-0:0)}if(pe=T(pe),ge=T(ge),he=he.slice(),re=pe-ge){for((ee=re<0)?(re=-re,G=he):(ge=pe,G=We),G.reverse(),b=re;b--;G.push(0));G.reverse()}else for(Q=(ee=(re=he.length)<(b=We.length))?re:b,re=b=0;b<Q;b++)if(he[b]!=We[b]){ee=he[b]<We[b];break}if(ee&&(G=he,he=We,We=G,H.s=-H.s),(b=(Q=We.length)-(V=he.length))>0)for(;b--;he[V++]=0);for(b=M-1;Q>re;){if(he[--Q]<We[Q]){for(V=Q;V&&!he[--V];he[V]=b);--he[V],he[Q]+=M}he[Q]-=We[Q]}for(;he[0]==0;he.splice(0,1),--ge);return he[0]?hi(H,he,ge):(H.s=Dt==3?-1:1,H.c=[H.e=0],H)},ze.modulo=ze.mod=function(H,b){var V,Q,G=this;return H=new Be(H,b),!G.c||!H.s||H.c&&!H.c[0]?new Be(NaN):!H.c||G.c&&!G.c[0]?new Be(G):(tn==9?(Q=H.s,H.s=1,V=q(G,H,0,3),H.s=Q,V.s*=Q):V=q(G,H,0,tn),(H=G.minus(V.times(H))).c[0]||tn!=1||(H.s=G.s),H)},ze.multipliedBy=ze.times=function(H,b){var V,Q,G,ee,$,re,pe,ge,he,We,dt,yt,St,Wt,Yt,Pt=this,Nt=Pt.c,Qt=(H=new Be(H,b)).c;if(!(Nt&&Qt&&Nt[0]&&Qt[0]))return!Pt.s||!H.s||Nt&&!Nt[0]&&!Qt||Qt&&!Qt[0]&&!Nt?H.c=H.e=H.s=null:(H.s*=Pt.s,Nt&&Qt?(H.c=[0],H.e=0):H.c=H.e=null),H;for(Q=T(Pt.e/R)+T(H.e/R),H.s*=Pt.s,(pe=Nt.length)<(We=Qt.length)&&(St=Nt,Nt=Qt,Qt=St,G=pe,pe=We,We=G),G=pe+We,St=[];G--;St.push(0));for(Wt=M,Yt=E,G=We;--G>=0;){for(V=0,dt=Qt[G]%Yt,yt=Qt[G]/Yt|0,ee=G+($=pe);ee>G;)V=((ge=dt*(ge=Nt[--$]%Yt)+(re=yt*ge+(he=Nt[$]/Yt|0)*dt)%Yt*Yt+St[ee]+V)/Wt|0)+(re/Yt|0)+yt*he,St[ee--]=ge%Wt;St[ee]=V}return V?++Q:St.splice(0,1),hi(H,St,Q)},ze.negated=function(){var H=new Be(this);return H.s=-H.s||null,H},ze.plus=function(H,b){var V,Q=this,G=Q.s;if(b=(H=new Be(H,b)).s,!G||!b)return new Be(NaN);if(G!=b)return H.s=-b,Q.minus(H);var ee=Q.e/R,$=H.e/R,re=Q.c,pe=H.c;if(!ee||!$){if(!re||!pe)return new Be(G/0);if(!re[0]||!pe[0])return pe[0]?H:new Be(re[0]?Q:0*G)}if(ee=T(ee),$=T($),re=re.slice(),G=ee-$){for(G>0?($=ee,V=pe):(G=-G,V=re),V.reverse();G--;V.push(0));V.reverse()}for((G=re.length)-(b=pe.length)<0&&(V=pe,pe=re,re=V,b=G),G=0;b;)G=(re[--b]=re[b]+pe[b]+G)/M|0,re[b]=M===re[b]?0:re[b]%M;return G&&(re=[G].concat(re),++$),hi(H,re,$)},ze.precision=ze.sd=function(H,b){var V,Q,G,ee=this;if(H!=null&&H!==!!H)return C(H,1,P),b==null?b=Dt:C(b,0,8),Mt(new Be(ee),H,b);if(!(V=ee.c))return null;if(Q=(G=V.length-1)*R+1,G=V[G]){for(;G%10==0;G/=10,Q--);for(G=V[0];G>=10;G/=10,Q++);}return H&&ee.e+1>Q&&(Q=ee.e+1),Q},ze.shiftedBy=function(H){return C(H,-9007199254740991,I),this.times("1e"+H)},ze.squareRoot=ze.sqrt=function(){var H,b,V,Q,G,ee=this,$=ee.c,re=ee.s,pe=ee.e,ge=zt+4,he=new Be("0.5");if(re!==1||!$||!$[0])return new Be(!re||re<0&&(!$||$[0])?NaN:$?ee:1/0);if((re=Math.sqrt(+lr(ee)))==0||re==1/0?(((b=v($)).length+pe)%2==0&&(b+="0"),re=Math.sqrt(+b),pe=T((pe+1)/2)-(pe<0||pe%2),V=new Be(b=re==1/0?"5e"+pe:(b=re.toExponential()).slice(0,b.indexOf("e")+1)+pe)):V=new Be(re+""),V.c[0]){for((re=(pe=V.e)+ge)<3&&(re=0);;)if(G=V,V=he.times(G.plus(q(ee,G,ge,1))),v(G.c).slice(0,re)===(b=v(V.c)).slice(0,re)){if(V.e<pe&&--re,(b=b.slice(re-3,re+1))!="9999"&&(Q||b!="4999")){+b&&(+b.slice(1)||b.charAt(0)!="5")||(Mt(V,V.e+zt+2,1),H=!V.times(V).eq(ee));break}if(!Q&&(Mt(G,G.e+zt+2,0),G.times(G).eq(ee))){V=G;break}ge+=4,re+=4,Q=1}}return Mt(V,V.e+zt+1,Dt,H)},ze.toExponential=function(H,b){return H!=null&&(C(H,0,P),H++),fn(this,H,b,1)},ze.toFixed=function(H,b){return H!=null&&(C(H,0,P),H=H+this.e+1),fn(this,H,b)},ze.toFormat=function(H,b,V){var Q,G=this;if(V==null)H!=null&&b&&typeof b=="object"?(V=b,b=null):H&&typeof H=="object"?(V=H,H=b=null):V=qr;else if(typeof V!="object")throw Error(g+"Argument not an object: "+V);if(Q=G.toFixed(H,b),G.c){var ee,$=Q.split("."),re=+V.groupSize,pe=+V.secondaryGroupSize,ge=V.groupSeparator||"",he=$[0],We=$[1],dt=G.s<0,yt=dt?he.slice(1):he,St=yt.length;if(pe&&(ee=re,re=pe,pe=ee,St-=ee),re>0&&St>0){for(ee=St%re||re,he=yt.substr(0,ee);ee<St;ee+=re)he+=ge+yt.substr(ee,re);pe>0&&(he+=ge+yt.slice(ee)),dt&&(he="-"+he)}Q=We?he+(V.decimalSeparator||"")+((pe=+V.fractionGroupSize)?We.replace(new RegExp("\\d{"+pe+"}\\B","g"),"$&"+(V.fractionGroupSeparator||"")):We):he}return(V.prefix||"")+Q+(V.suffix||"")},ze.toFraction=function(H){var b,V,Q,G,ee,$,re,pe,ge,he,We,dt,yt=this,St=yt.c;if(H!=null&&(!(re=new Be(H)).isInteger()&&(re.c||re.s!==1)||re.lt(_r)))throw Error(g+"Argument "+(re.isInteger()?"out of range: ":"not an integer: ")+lr(re));if(!St)return new Be(yt);for(b=new Be(_r),ge=V=new Be(_r),Q=pe=new Be(_r),dt=v(St),ee=b.e=dt.length-yt.e-1,b.c[0]=N[($=ee%R)<0?R+$:$],H=!H||re.comparedTo(b)>0?ee>0?b:ge:re,$=Er,Er=1/0,re=new Be(dt),pe.c[0]=0;he=q(re,b,0,1),(G=V.plus(he.times(Q))).comparedTo(H)!=1;)V=Q,Q=G,ge=pe.plus(he.times(G=ge)),pe=G,b=re.minus(he.times(G=b)),re=G;return G=q(H.minus(V),Q,0,1),pe=pe.plus(G.times(ge)),V=V.plus(G.times(Q)),pe.s=ge.s=yt.s,We=q(ge,Q,ee*=2,Dt).minus(yt).abs().comparedTo(q(pe,V,ee,Dt).minus(yt).abs())<1?[ge,Q]:[pe,V],Er=$,We},ze.toNumber=function(){return+lr(this)},ze.toPrecision=function(H,b){return H!=null&&C(H,1,P),fn(this,H,b,2)},ze.toString=function(H){var b,V=this,Q=V.s,G=V.e;return G===null?Q?(b="Infinity",Q<0&&(b="-"+b)):b="NaN":(H==null?b=G<=Tr||G>=Tn?U(v(V.c),G):K(v(V.c),G,"0"):H===10&&On?b=K(v((V=Mt(new Be(V),zt+G+1,Dt)).c),V.e,"0"):(C(H,2,pr.length,"Base"),b=Y(K(v(V.c),G,"0"),10,H,Q,!0)),Q<0&&V.c[0]&&(b="-"+b)),b},ze.valueOf=ze.toJSON=function(){return lr(this)},ze._isBigNumber=!0,ze[Symbol.toStringTag]="BigNumber",ze[Symbol.for("nodejs.util.inspect.custom")]=ze.valueOf,A!=null&&Be.set(A),Be})();const _e={ROUNDING_MODE:ae.ROUND_DOWN};function be(_){return new TextEncoder().encode(_)}function ye(_){return typeof _=="string"?ye(we(_)):new TextDecoder().decode(_)}ae.config(_e);const Me="UNKNOWN_ERROR",Ne="INVALID_ARGUMENT";function qe(_,A=Me,q={}){const Y=[];Object.keys(q).forEach((Oe=>{try{Y.push(Oe+"="+JSON.stringify(q[Oe]))}catch{Y.push(Oe+"="+JSON.stringify(q[Oe].toString()))}}));const x=_;Y.length&&(_+=" ("+Y.join(", ")+")");const ne=new Error(_);return ne.reason=x,ne.code=A,Object.keys(q).forEach((function(Oe){ne[Oe]=q[Oe]})),ne}function we(_){if(typeof _!="string")throw new Error("hexToBytes only accept strings, got: "+typeof _);if(_.substr(0,2)==="0x")return we(_.substr(2));const A=new Uint8Array(Math.ceil(_.length/2));let q=0;for(let Y=0;Y<_.length;Y+=2){const x=parseInt(_.substr(Y,2),16);if(isNaN(x))throw new Error("Cannot read hex string:"+JSON.stringify(_));A[q]=x,q++}return A}function ue(_){return Array.from(_).map((A=>A.toString(16).padStart(2,"0"))).join("")}function X(_,A){if(typeof _=="string"){if(A&&A.encoding==="hex"&&typeof _=="string"){let q=_;q.length>2&&q.substr(0,2)==="0x"&&(q=q.substr(2));const Y=we(q);return f.keccak256(Y)}return f.keccak256(be(_))}return f.keccak256(_)}const j={noether:"0",wei:"1",kwei:"1000",Kwei:"1000",babbage:"1000",femtoether:"1000",mwei:"1000000",Mwei:"1000000",lovelace:"1000000",picoether:"1000000",gwei:"1000000000",Gwei:"1000000000",shannon:"1000000000",nanoether:"1000000000",nano:"1000000000",szabo:"1000000000000",microether:"1000000000000",micro:"1000000000000",finney:"1000000000000000",milliether:"1000000000000000",milli:"1000000000000000",ether:"1000000000000000000",kether:"1000000000000000000000",grand:"1000000000000000000000",mether:"1000000000000000000000000",gether:"1000000000000000000000000000",tether:"1000000000000000000000000000000"};function B(_,A,q){return new Array(A-_.length+1).join(q||"0")+_}function k(_){let A="",q=0;const Y=_.length;for(_.substring(0,2)==="0x"&&(q=2);q<Y;q+=2){const x=parseInt(_.substr(q,2),16);A+=String.fromCharCode(x)}return A}function L(_){return $r(_)&&_.name&&_.name.indexOf("(")!==-1?_.name:_.name+"("+oe(!1,_.inputs||[]).join(",")+")"}function W(..._){const A=_.reduce(((x,ne)=>x+ne.length),0),q=new Uint8Array(A);let Y=0;for(const x of _)q.set(x,Y),Y+=x.length;return q}function oe(_,A){const q=[];return A.forEach((function(Y){if(typeof Y.components=="object"){if(Y.type.substring(0,5)!=="tuple")throw new Error("components found but type is not tuple; report on GitHub");let x="";const ne=Y.type.indexOf("[");ne>=0&&(x=Y.type.substring(ne));const Oe=oe(_,Y.components);q.push("("+Oe.join(",")+")"+x)}else q.push(Y.type)})),q}function Re(_){const A=_.indexOf("("),q=_.indexOf(")");return A!==-1&&q!==-1?_.substr(0,A):_}function Se(_){const A=_.indexOf("("),q=_.indexOf(")");return A!==-1&&q!==-1?_.substr(A+1,q-A-1).replace(" ",""):""}function Ue(_){return _==null?_:Lt(_).toNumber()}function Ce(_){return Lt(_).toNumber()}function se(_){return Pr(_)?_.toString(10):""+_}function de(_){return typeof _=="string"&&!_.startsWith("0x")&&/^[A-Za-z0-9]+$/.test(_)?"0x"+_:Je(_)}function Ae(_){if(typeof _=="string")return _.startsWith("0x")&&/^[A-Za-z0-9]+$/.test(_)?Je(_):"0x"+ue(be(_));if(_ instanceof Uint8Array)return"0x"+ue(_);throw new Error(`toStringData: Error trying to convert ${_} (${typeof _}) to a hex string.`)}function je(_){return typeof _=="boolean"?_:Lt(_).toNumber()!==0}function Ye(_){const A=Lt(_),q=A.toString(16);return A.isLessThan(0)?"-0x"+q.substr(1):"0x"+q}function Je(_){if(_n(_))return Ye(+_);if(Pr(_))return Ye(_);if(vn(_)){const A=_;if(A.indexOf("-0x")===0)return Ye(A);if(A.indexOf("0x")===0)return A;if(!isFinite(A))return ue(be(A))}if(_ instanceof Uint8Array)return"0x"+ue(_);if(xr(_)||$r(_))throw new Error("toHex can only be called with scalar values, not objects or arrays");return Ye(_)}function Vt(_){const A=_?_.toLowerCase():"ether",q=j[A];if(q===void 0)throw new Error("This unit doesn't exists, please use the one of the following units"+JSON.stringify(j,null,2));return new ae(q,10)}function Lt(_){let A=_||0;return Pr(A)?A:(typeof A=="string"&&(A=A.trim()),typeof A!="string"||A.indexOf("0x")!==0&&A.indexOf("-0x")!==0?A instanceof Uint8Array?new ae(ue(A),16):new ae(A,10):new ae(A.replace("0x","").toLowerCase(),16))}function rr(_){return new ae(new Array(_).fill("1").join(""),2)}function Bt(_,A=256){const q=Lt(_).integerValue();return q.isLessThan(0)?rr(A).plus(q).plus(1):q}function Ft(_,A){return B(_.toString(2),A,"0")[0]==="1"}function zr(_){if(typeof _!="string")throw qe("invalid address",Ne,{arg:"address",value:_});if(_.trim().match(/^(0x)?[0-9a-fA-F]{40}$/))return _.trim().substring(0,2)!=="0x"&&(_="0x"+_),cn(_);throw qe("invalid address",Ne,{arg:"address",value:_})}function sr(_,A=256){if(Ft(_,A)){const q=rr(A);return _.minus(q).minus(1)}return _}function gn(_){return/^0x[0-9a-f]{40}$/i.test(_)}function Qr(_){return!!/^(0x)?[0-9a-f]{40}$/i.test(_)&&(!(!/^(0x)?[0-9a-f]{40}$/.test(_)&&!/^(0x)?[0-9A-F]{40}$/.test(_))||Zr(_))}function Zr(_){const A=_.replace("0x",""),q=X(A.toLowerCase());for(let Y=0;Y<40;Y++)if(parseInt(q[Y],16)>7&&A[Y].toUpperCase()!==A[Y]||parseInt(q[Y],16)<=7&&A[Y].toLowerCase()!==A[Y])return!1;return!0}function cn(_){if(_===void 0)return"";const A=_.toLowerCase().replace("0x",""),q=X(A);let Y="0x";for(let x=0;x<A.length;x++)parseInt(q[x],16)>7?Y+=A[x].toUpperCase():Y+=A[x];return Y}function ur(_){if(!Array.isArray(_))throw new Error(`Value was not an array: ${JSON.stringify(_)}`);return _}function dn(_){return gn(_)?_:/^[0-9a-f]{40}$/.test(_)?"0x"+_:"0x"+B(Je(_).substr(2),40)}function Pr(_){return _ instanceof ae}function vn(_){return typeof _=="string"||_&&_.constructor&&_.constructor.name==="String"}function $r(_){return _!==null&&!Array.isArray(_)&&typeof _=="object"}function _n(_){return typeof _=="boolean"}function xr(_){return Array.isArray(_)}var ea,En;function Ri(_,A){if(!_)throw new Error("jsonrpc method should be specified!");if(typeof _!="string")throw new Error(`jsonrpc must be a string, got ${typeof _}!`);return t.messageId++,{jsonrpc:"2.0",id:t.messageId,method:_,params:A||[]}}function Mi(_){return Array.isArray(_)?_.every(A):A(_);function A(q){return!!q&&(q.error===void 0||q.error===null)&&q.jsonrpc==="2.0"&&q.id!==null&&"result"in q&&q.result!==void 0}}t.TransactionStatus=void 0,(ea=t.TransactionStatus||(t.TransactionStatus={})).pending="pending",ea.confirmed="confirmed",ea.failed="failed",t.TransactionType=void 0,(En=t.TransactionType||(t.TransactionType={})).queued="queued",En.dropped="dropped",En.replaced="replaced",En.pending="pending",En.reverted="reverted",En.confirmed="confirmed",t.messageId=0;function yi(_){return Lt(_)}function Ni(_){return _==="latest"||_==="pending"||_==="earliest"}function Ir(_){return _===void 0?"latest":Ot(_)}function Ot(_){return _==null?null:Ni(_)?_:Je(_)}function Wr(_){return _.from&&(_.from=Pe(_.from)),_.to&&(_.to=Pe(_.to)),_.gasPrice!==void 0&&(_.gasPrice=Ye(_.gasPrice)),_.gas!==void 0&&(_.gas=Ye(_.gas)),_.value!==void 0&&(_.value=Ye(_.value)),_.nonce!==void 0&&(_.nonce=Ye(_.nonce)),_.data&&!_.data.startsWith("0x")&&/^[A-Za-z0-9]+$/.test(_.data)&&(_.data="0x"+_.data),_}function en(_){if(typeof _!="string")throw new Error("The provided input for transactionId is not a string, got: "+JSON.stringify(_));if(_.indexOf("0x")!==0)throw new Error("TransactionID must start with 0x, got: "+JSON.stringify(_));if(_.length!==66)throw new Error("TransactionID must be a 32 byte hex, got: "+JSON.stringify(_));return _}function te(_){if(typeof _!="object")throw new Error("Did not provide transaction options");if(!_.from)throw new Error('Missing "from" in transaction options');return _.from=Pe(_.from),_.to&&(_.to=Pe(_.to)),_.gasPrice!==void 0&&(_.gasPrice=Ye(_.gasPrice)),_.gas!==void 0&&(_.gas=Ye(_.gas)),_.value!==void 0&&(_.value=Ye(_.value)),_.nonce!==void 0&&(_.nonce=Ye(_.nonce)),_.data&&!_.data.startsWith("0x")&&/^[A-Za-z0-9]+$/.test(_.data)&&(_.data="0x"+_.data),_}function F(_){return _?(_.blockNumber!==null&&(_.blockNumber=Ce(_.blockNumber)),_.transactionIndex!==null&&(_.transactionIndex=Ce(_.transactionIndex)),_.nonce=Ce(_.nonce),_.gas=Ce(_.gas),_.gasPrice=Lt(_.gasPrice),_.value=Lt(_.value),_):null}function Z(_){return _?(_.blockNumber!==null&&(_.blockNumber=Ce(_.blockNumber)),_.transactionIndex!==null&&(_.transactionIndex=Ce(_.transactionIndex)),_.cumulativeGasUsed=Ce(_.cumulativeGasUsed),_.gasUsed=Ce(_.gasUsed),_.logs&&xr(_.logs)&&(_.logs=_.logs.map((function(A){return Te(A)}))),_.status=Ce(_.status||""),_):null}function ce(_){return _?(_.gasLimit=Ce(_.gasLimit),_.gasUsed=Ce(_.gasUsed),_.size=Ce(_.size),_.timestamp=Ce(_.timestamp),_.number!==null&&(_.number=Ce(_.number)),_.difficulty=Lt(_.difficulty),_.totalDifficulty=Lt(_.totalDifficulty),xr(_.transactions)&&_.transactions.forEach((function(A,q){vn(A)||(_.transactions[q]=F(A)||_.transactions[q])})),_):null}function Te(_){return _&&(_.blockNumber&&(_.blockNumber=Ce(_.blockNumber)),_.transactionIndex&&(_.transactionIndex=Ce(_.transactionIndex)),_.logIndex&&(_.logIndex=Ce(_.logIndex)),_)}function Pe(_){if(gn(_))return _;if(Qr(_))return"0x"+_;throw new Error(`Invalid address: ${JSON.stringify(_)}`)}function Ge(_){return _}function Ke(_){return _&&(_.startingBlock=Ce(_.startingBlock),_.currentBlock=Ce(_.currentBlock),_.highestBlock=Ce(_.highestBlock),_.knownStates&&(_.knownStates=Ce(_.knownStates),_.pulledStates=Ce(_.pulledStates)),_)}function mt(_){if(_===null)throw qe("cannot convert null value to array",Ne,{arg:"value",value:_});if(_ instanceof Uint8Array)return new Uint8Array(_);if(typeof _=="string"){const A=_.match(/^(0x)?[0-9a-fA-F]*$/);if(!A)throw qe("invalid hexidecimal string",Ne,{arg:"value",value:_});if(A[1]!=="0x")throw qe("hex string must have 0x prefix",Ne,{arg:"value",value:_});(_=_.substring(2)).length%2&&(_="0"+_);const q=[];for(let Y=0;Y<_.length;Y+=2)q.push(parseInt(_.substr(Y,2),16));return new Uint8Array(q)}if((function(A){if(!A||parseInt(String(A.length))!==A.length||typeof A=="string")return!1;for(let q=0;q<A.length;q++){const Y=A[q];if(Y<0||Y>=256||parseInt(String(Y))!==Y)return!1}return!0})(_))return new Uint8Array(_);throw qe("invalid arrayify value",void 0,{arg:"value",value:_,type:typeof _})}function ut(_,A,q){Object.defineProperty(_,A,{enumerable:!0,value:q,writable:!1})}const _t=new ae(-1),Tt=new ae(0),At=new ae(1),xt=new ae("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function Jt(_){return(function(A,q){function Y(Oe){return new Error('unexpected character "'+A[Oe]+'" at position '+Oe+' in "'+A+'"')}const x={type:"",name:"",state:{allowType:!0}};let ne=x;for(let Oe=0;Oe<A.length;Oe++){const Ve=A[Oe];switch(Ve){case"(":if(!ne.state.allowParams)throw Y(Oe);ne.state.allowType=!1,ne.type=gr(ne.type),ne.components=[{type:"",name:"",parent:ne,state:{allowType:!0}}],ne=ne.components[0];break;case")":delete ne.state,ne.name==="indexed"&&(ne.indexed=!0,ne.name=""),ne.type=gr(ne.type);const it=ne;if(ne=ne.parent,!ne)throw Y(Oe);delete it.parent,ne.state.allowParams=!1,ne.state.allowName=!0,ne.state.allowArray=!0;break;case",":delete ne.state,ne.name==="indexed"&&(ne.indexed=!0,ne.name=""),ne.type=gr(ne.type);const st={type:"",name:"",parent:ne.parent,state:{allowType:!0}};ne.parent.components.push(st),delete ne.parent,ne=st;break;case" ":ne.state.allowType&&ne.type!==""&&(ne.type=gr(ne.type),delete ne.state.allowType,ne.state.allowName=!0,ne.state.allowParams=!0),ne.state.allowName&&ne.name!==""&&(ne.name==="indexed"?(ne.indexed=!0,ne.name=""):ne.state.allowName=!1);break;case"[":if(!ne.state.allowArray)throw Y(Oe);ne.type+=Ve,ne.state.allowArray=!1,ne.state.allowName=!1,ne.state.readArray=!0;break;case"]":if(!ne.state.readArray)throw Y(Oe);ne.type+=Ve,ne.state.readArray=!1,ne.state.allowArray=!0,ne.state.allowName=!0;break;default:if(ne.state.allowType)ne.type+=Ve,ne.state.allowParams=!0,ne.state.allowArray=!0;else if(ne.state.allowName)ne.name+=Ve,delete ne.state.allowArray;else{if(!ne.state.readArray)throw Y(Oe);ne.type+=Ve}}}if(ne.parent)throw new Error("unexpected eof");return delete x.state,ne.name==="indexed"&&(ne.indexed=!0,ne.name=""),x.type=gr(x.type),x})(_)}function gr(_){return _.match(/^uint($|[^1-9])/)?_="uint256"+_.substring(4):_.match(/^int($|[^1-9])/)&&(_="int256"+_.substring(3)),_}const Dr=new RegExp(/^bytes([0-9]*)$/),bn=new RegExp(/^(u?int)([0-9]*)$/),qn=new RegExp(/^(.*)\[([0-9]*)\]$/),ta=function(_,A){const q=_.match(bn);return q&&parseInt(q[2])<=48?A.toNumber():A};class Rr{constructor(A,q,Y,x="",ne){this.coerceFunc=A,this.name=q,this.type=Y,this.localName=x,this.dynamic=ne}}class mi extends Rr{constructor(A){super(A.coerceFunc,A.name,A.type,void 0,A.dynamic),ut(this,"coder",A)}encode(A){return this.coder.encode(A)}decode(A,q){return this.coder.decode(A,q)}}class uu extends Rr{constructor(A,q){super(A,"null","",q,!1)}encode(A){return mt([])}decode(A,q){if(q>A.length)throw new Error("invalid null");return{consumed:0,value:this.coerceFunc("null",void 0)}}}function Oa(_,A){return new ae(_.toString(2).substr(-A),2)}class kl extends Rr{constructor(A,q,Y,x){const ne=(Y?"int":"uint")+8*q;super(A,ne,ne,x,!1),this.size=q,this.signed=Y}encode(A){try{let q=Lt(A);if(this.signed){let x=Oa(xt,8*this.size-1);if(q.gt(x))throw new Error("out-of-bounds");if(x=x.plus(At).multipliedBy(_t),q.lt(x))throw new Error("out-of-bounds")}else if(q.lt(Tt)||q.gt(Oa(xt,8*this.size)))throw new Error("out-of-bounds");q=Oa(Bt(q,8*this.size),8*this.size),this.signed&&(q=Bt(sr(q,8*this.size),256));const Y=B(Bt(q).toString(16),64);if(Y.indexOf("NaN")!==-1)throw qe("invalid number value, NaN",Ne,{arg:this.localName,coderType:this.name,value:A,v:q,twosComplement:Bt(q),twosComplement16:Bt(q).toString(16),pad:B(Bt(q).toString(16),64),size:this.size});return we(Y)}catch(q){throw qe("invalid number value",Ne,{arg:this.localName,coderType:this.name,value:A,message:q.toString()})}}decode(A,q){if(A.length<q+32)throw qe("insufficient data for "+this.name+" type",Ne,{arg:this.localName,coderType:this.name,value:Je(A.slice(q,q+32))});const Y=32-this.size;let x=new ae(ue(A.slice(q+Y,q+32)),16);return x=this.signed?sr(x,8*this.size):Oa(x,8*this.size),{consumed:32,value:this.coerceFunc(this.name,x)}}}const kn=new kl((function(_,A){return A}),32,!1,"none");class er extends Rr{constructor(A,q,Y){const x="bytes"+q;super(A,x,x,Y,!1),this.length=q}encode(A){const q=new Uint8Array(32);try{if(typeof A=="string"&&A.length%2!=0)throw new Error("hex string cannot be odd-length");const Y=mt(A);if(Y.length>this.length)throw new Error("incorrect data length");q.set(Y)}catch(Y){throw qe("invalid "+this.name+" value. Use hex strings or Uint8Array",Ne,{arg:this.localName,coderType:this.name,value:Y.value||A,details:Y.message})}return q}decode(A,q){if(A.length<q+32)throw qe("insufficient data for "+this.name+" type",Ne,{arg:this.localName,coderType:this.name,value:Je(A.slice(q,q+32))});return{consumed:32,value:this.coerceFunc(this.name,A.slice(q,q+this.length))}}}function Ul(_){const A=32*Math.ceil(_.length/32),q=new Uint8Array(A-_.length);return W(kn.encode(_.length),_,q)}function ss(_,A,q){if(_.length<A+32)throw qe("insufficient data for dynamicBytes length",Ne,{arg:q,coderType:"dynamicBytes",value:Je(_.slice(A,A+32))});let Y=kn.decode(_,A).value;try{Y=Y.toNumber()}catch(x){throw x("dynamic bytes count too large",Ne,{arg:q,coderType:"dynamicBytes",value:Y.toString()})}if(_.length<A+32+Y)throw qe("insufficient data for dynamicBytes type",Ne,{arg:q,coderType:"dynamicBytes",value:Je(_.slice(A,A+32+Y))});return{consumed:32+32*Math.ceil(Y/32),value:_.slice(A+32,A+32+Y)}}function Aa(_){return 32*Math.ceil(_/32)}function Pa(_,A){if(!Array.isArray(A)){if(!A||typeof A!="object")throw qe("invalid tuple value",Ne,{coderType:"tuple",value:A});{const it=[];_.forEach((function(st){it.push(A[st.localName])})),A=it}}if(_.length!==A.length)throw qe("types/value length mismatch",Ne,{coderType:"tuple",value:A});const q=[];_.forEach((function(it,st){q.push({dynamic:it.dynamic,value:it.encode(A[st])})}));let Y=0,x=0;q.forEach((function(it){it.dynamic?(Y+=32,x+=Aa(it.value.length)):Y+=Aa(it.value.length)}));let ne=0,Oe=Y;const Ve=new Uint8Array(Y+x);return q.forEach((function(it){it.dynamic?(Ve.set(kn.encode(Oe),ne),ne+=32,Ve.set(it.value,Oe),Oe+=Aa(it.value.length)):(Ve.set(it.value,ne),ne+=Aa(it.value.length))})),Ve}class Pf extends Array{}class Bl extends Rr{constructor(A,q,Y,x){super(A,"array",q.type+"["+(Y>=0?Y:"")+"]",x,Y===-1||q.dynamic),this.coder=q,this.length=Y}encode(A){if(!Array.isArray(A))throw qe("expected array value",Ne,{arg:this.localName,coderType:"array",value:A});let q=this.length,Y=new Uint8Array(0);q===-1&&(q=A.length,Y=kn.encode(q)),(function(ne,Oe,Ve){if(Ve||(Ve=""),ne<Oe)throw qe("missing argument"+Ve,"MISSING_ARGUMENT",{count:ne,expectedCount:Oe});if(ne>Oe)throw qe("too many arguments"+Ve,"UNEXPECTED_ARGUMENT",{count:ne,expectedCount:Oe})})(q,A.length,"in coder array"+(this.localName?" "+this.localName:""));const x=[];for(let ne=0;ne<A.length;ne++)x.push(this.coder);return W(Y,Pa(x,A))}decode(A,q){let Y=0,x=this.length;if(x===-1){let Ve;try{Ve=kn.decode(A,q)}catch(it){throw qe("insufficient data for dynamic array length",Ne,{arg:this.localName,coderType:"array",value:it.value})}try{x=Ve.value.toNumber()}catch{throw qe("array count too large",Ne,{arg:this.localName,coderType:"array",value:Ve.value.toString()})}Y+=Ve.consumed,q+=Ve.consumed}const ne=[];for(let Ve=0;Ve<x;Ve++)ne.push(new mi(this.coder));const Oe=(function(Ve,it,st){const fr=st;let Ht=0;const ze=[];return Ve.forEach((function(_r){let zt;if(_r.dynamic){const Dt=kn.decode(it,st);zt=_r.decode(it,fr+Dt.value.toNumber()),zt.consumed=Dt.consumed}else zt=_r.decode(it,st);zt.value!==void 0&&ze.push(zt.value),st+=zt.consumed,Ht+=zt.consumed})),{value:ze,consumed:Ht}})(ne,A,q);return Oe.consumed+=Y,Oe.value=this.coerceFunc(this.type,Oe.value),Oe}}class ra extends Rr{constructor(A,q,Y){let x=!1;const ne=[];q.forEach((function(Oe){Oe.dynamic&&(x=!0),ne.push(Oe.type)})),super(A,"tuple","tuple("+ne.join(",")+")",Y,x),this.coders=q}encode(A){return Pa(this.coders,A)}decode(A,q){const Y=(function(x,ne,Oe){const Ve=Oe;let it=0;const st=new Pf;return x.forEach((function(fr){let Ht;if(fr.dynamic){const ze=kn.decode(ne,Oe);Ht=fr.decode(ne,Ve+ze.value.toNumber()),Ht.consumed=ze.consumed}else Ht=fr.decode(ne,Oe);Ht.value!==void 0&&st.push(Ht.value),Oe+=Ht.consumed,it+=Ht.consumed})),x.forEach((function(fr,Ht){let ze=fr.localName;ze&&(ze==="length"&&(ze="_length"),st[ze]!==null&&st[ze]!==void 0||(st[ze]=st[Ht]))})),{value:st,consumed:it}})(this.coders,A,q);return Y.value=this.coerceFunc(this.type,Y.value),Y}}const wn={address:class extends Rr{constructor(_,A){super(_,"address","address",A,!1)}encode(_){const A=new Uint8Array(32),q=_.trim();if(!Qr(q))throw qe("invalid address format",Ne,{arg:this.localName,coderType:"address",value:_});try{A.set(we(Pe(q)),12)}catch(Y){throw qe(`invalid address (${Y.message})`,Ne,{arg:this.localName,coderType:"address",value:_})}return A}decode(_,A){if(_.length<A+32)throw qe("insufficuent data for address type",Ne,{arg:this.localName,coderType:"address",value:Je(_.slice(A,A+32)),missingBytes:A+32-_.length});return{consumed:32,value:this.coerceFunc("address",zr(Je(_.slice(A+12,A+32))))}}},bool:class extends Rr{constructor(_,A){super(_,"bool","bool",A,!1)}encode(_){return kn.encode(_?1:0)}decode(_,A){try{const q=kn.decode(_,A);return{consumed:q.consumed,value:this.coerceFunc("bool",!q.value.isZero())}}catch(q){throw q.reason==="insufficient data for uint256 type"?qe("insufficient data for boolean type",Ne,{arg:this.localName,coderType:"boolean",value:q.value}):q}}},string:class extends Rr{constructor(_,A){super(_,"string","string",A,!0)}encode(_){if(typeof _!="string")throw qe("invalid string value",Ne,{arg:this.localName,coderType:"string",value:_});return Ul(be(_))}decode(_,A){const q=ss(_,A,this.localName);return q.value=this.coerceFunc("string",ye(q.value)),q}},bytes:class extends Rr{constructor(_,A){super(_,"bytes","bytes",A,!0)}encode(_){try{return Ul(mt(_))}catch(A){throw A("invalid bytes value",Ne,{arg:this.localName,coderType:"bytes",value:A.value})}}decode(_,A){const q=ss(_,A,this.localName);return q.value=this.coerceFunc("bytes",q.value),q}},function:class extends er{constructor(_,A){super(_,24,A)}}};function us(_,A){const q=wn[A.type];if(q)return new q(_,A.name);let Y=A.type.match(bn);if(Y){const x=parseInt(Y[2]||"256");if(x===0||x>256||x%8!=0)throw qe("invalid "+Y[1]+" bit length",Ne,{arg:"param",value:A});return new kl(_,x/8,Y[1]==="int",A.name)}if(Y=A.type.match(Dr),Y){const x=parseInt(Y[1]);if(x===0||x>32)throw qe("invalid bytes length",Ne,{arg:"param",value:A});return new er(_,x,A.name)}if(Y=A.type.match(qn),Y){const x=Object.assign({},A),ne=parseInt(Y[2]||"-1");return x.type=Y[1],new Bl(_,us(_,x),ne,A.name)}if(A.type.substring(0,5)==="tuple")return(function(x,ne,Oe){ne||(ne=[]);const Ve=ne.map((it=>us(x,it)));return new ra(x,Ve,Oe)})(_,A.components,A.name);if(A.type==="")return new uu(_,A.name);throw qe("invalid type",Ne,{arg:"type",value:A.type,fullType:A})}class Gr{constructor(A){(function(q,Y){if(!(q instanceof Y))throw qe("missing new","MISSING_NEW",{name:Y.name})})(this,Gr),A||(A=ta),ut(this,"coerceFunc",A)}encode(A,q){if(A.length!==q.length)throw qe("types/values length mismatch",Ne,{count:{types:A.length,values:q.length},value:{types:A,values:q}});const Y=A.map((x=>typeof x=="string"?Jt(x):x)).map((x=>us(this.coerceFunc,x)));return new ra(this.coerceFunc,Y,"_").encode(q)}decode(A,q){const Y=A.map((x=>typeof x=="string"?Jt(x):x)).map((x=>us(this.coerceFunc,x)));return new ra(this.coerceFunc,Y,"_").decode(q,0).value}}const Fl=new Gr;var Vl,et;function $e(_,A,q,Y){var x,ne=arguments.length,Oe=ne<3?A:Y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Oe=Reflect.decorate(_,A,q,Y);else for(var Ve=_.length-1;Ve>=0;Ve--)(x=_[Ve])&&(Oe=(ne<3?x(Oe):ne>3?x(A,q,Oe):x(A,q))||Oe);return ne>3&&Oe&&Object.defineProperty(A,q,Oe),Oe}function xe(_,A){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(_,A)}t.coder=void 0,(Vl=t.coder||(t.coder={})).encodeParams=function(_,A){return ue(Fl.encode(_,A))},Vl.decodeParams=function(_,A){if(_.length>0&&(!A||A==="0x"||A==="0X"))throw new Error("Returned values aren't valid, did it run Out of Gas? You might also see this error if you are not using the correct ABI for the contract you are retrieving data from, requesting data from a block number that does not exist, or querying a node which is not fully synced.");return Fl.decode(_,we("0x"+A.replace(/0x/i,"")))},typeof SuppressedError=="function"&&SuppressedError;class ft{constructor(A){this.callName=A.callName,this.params=A.params||0,this.inputFormatter=A.inputFormatter||null,this.outputFormatter=A.outputFormatter}validateArgs(A){if(A.length!==this.params)throw q=this.callName,Y=A.length,x=this.params,new Error(`Invalid number of input parameters to RPC method "${q}" given: ${Y}, expected: ${x}`);var q,Y,x}formatInput(A){return this.inputFormatter?this.inputFormatter.map((function(q,Y){return q?q(A[Y]):A[Y]})):A}formatOutput(A){return A!==null?this.outputFormatter(A):null}toPayload(A){const q=this.formatInput(A);return this.validateArgs(q),{method:this.callName,params:q}}async execute(A,...q){const Y=this.toPayload(q);if(!A)throw new Error("Missing RequestManager in method#exec");const x=await A.sendAsync(Y);return this.formatOutput(x)}}class vr{constructor(A){this.getter=A.getter,this.outputFormatter=A.outputFormatter}formatOutput(A){return this.outputFormatter(A)}async execute(A,...q){const Y=await A.sendAsync({method:this.getter,params:[]});return this.formatOutput(Y)}}function Hl(_){return new Promise((A=>setTimeout(A,_)))}t.eth=void 0,(et=t.eth||(t.eth={})).eth_getBalance=new ft({callName:"eth_getBalance",params:2,inputFormatter:[Pe,Ir],outputFormatter:yi}),et.eth_getStorageAt=new ft({callName:"eth_getStorageAt",params:3,inputFormatter:[Pe,Je,Ir],outputFormatter:de}),et.eth_getCode=new ft({callName:"eth_getCode",params:2,inputFormatter:[Pe,Ir],outputFormatter:de}),et.eth_getBlockByHash=new ft({callName:"eth_getBlockByHash",params:2,inputFormatter:[Ot,function(_){return!!_}],outputFormatter:ce}),et.eth_getBlockByNumber=new ft({callName:"eth_getBlockByNumber",params:2,inputFormatter:[Ot,function(_){return!!_}],outputFormatter:ce}),et.eth_getUncleByBlockHashAndIndex=new ft({callName:"eth_getUncleByBlockHashAndIndex",params:2,inputFormatter:[Ot,Je],outputFormatter:ce}),et.eth_getUncleByBlockNumberAndIndex=new ft({callName:"eth_getUncleByBlockNumberAndIndex",params:2,inputFormatter:[Ot,Je],outputFormatter:ce}),et.eth_getBlockTransactionCountByHash=new ft({callName:"eth_getBlockTransactionCountByHash",params:1,inputFormatter:[Ot],outputFormatter:Ce}),et.eth_getBlockTransactionCountByNumber=new ft({callName:"eth_getBlockTransactionCountByNumber",params:1,inputFormatter:[Ot],outputFormatter:Ce}),et.eth_getUncleCountByBlockHash=new ft({callName:"eth_getUncleCountByBlockHash",params:1,inputFormatter:[Ot],outputFormatter:Ce}),et.eth_getUncleCountByBlockNumber=new ft({callName:"eth_getUncleCountByBlockNumber",params:1,inputFormatter:[Ot],outputFormatter:Ce}),et.eth_getTransactionByHash=new ft({callName:"eth_getTransactionByHash",params:1,inputFormatter:[en],outputFormatter:F}),et.eth_getTransactionByBlockHashAndIndex=new ft({callName:"eth_getTransactionByBlockHashAndIndex",params:2,inputFormatter:[Ot,Je],outputFormatter:F}),et.eth_getTransactionByBlockNumberAndIndex=new ft({callName:"eth_getTransactionByBlockNumberAndIndex",params:2,inputFormatter:[Ot,Je],outputFormatter:F}),et.eth_getTransactionReceipt=new ft({callName:"eth_getTransactionReceipt",params:1,inputFormatter:[en],outputFormatter:Z}),et.eth_getTransactionCount=new ft({callName:"eth_getTransactionCount",params:2,inputFormatter:[Pe,Ir],outputFormatter:Ce}),et.eth_sendRawTransaction=new ft({callName:"eth_sendRawTransaction",params:1,inputFormatter:[null],outputFormatter:de}),et.web3_sha3=new ft({callName:"web3_sha3",params:1,inputFormatter:[null],outputFormatter:de}),et.eth_sendTransaction=new ft({callName:"eth_sendTransaction",params:1,inputFormatter:[te],outputFormatter:de}),et.eth_sign=new ft({callName:"eth_sign",params:2,inputFormatter:[Pe,null],outputFormatter:de}),et.eth_call=new ft({callName:"eth_call",params:2,inputFormatter:[Wr,Ir],outputFormatter:de}),et.eth_estimateGas=new ft({callName:"eth_estimateGas",params:1,inputFormatter:[Wr],outputFormatter:Ce}),et.eth_submitWork=new ft({callName:"eth_submitWork",params:3,inputFormatter:[null,null,null],outputFormatter:je}),et.eth_getWork=new ft({callName:"eth_getWork",params:0,inputFormatter:[],outputFormatter:ur}),et.eth_coinbase=new vr({getter:"eth_coinbase",outputFormatter:dn}),et.eth_mining=new vr({getter:"eth_mining",outputFormatter:je}),et.eth_hashrate=new vr({getter:"eth_hashrate",outputFormatter:Ce}),et.eth_syncing=new vr({getter:"eth_syncing",outputFormatter:Ke}),et.eth_gasPrice=new vr({getter:"eth_gasPrice",outputFormatter:yi}),et.eth_accounts=new vr({getter:"eth_accounts",outputFormatter:ur}),et.eth_blockNumber=new vr({getter:"eth_blockNumber",outputFormatter:Ce}),et.eth_protocolVersion=new vr({getter:"eth_protocolVersion",outputFormatter:Ce}),et.web3_clientVersion=new vr({getter:"web3_clientVersion",outputFormatter:se}),et.net_version=new vr({getter:"net_version",outputFormatter:se}),et.shh_version=new ft({callName:"shh_version",params:0,inputFormatter:[],outputFormatter:Ce}),et.shh_post=new ft({callName:"shh_post",params:1,inputFormatter:[null],outputFormatter:je}),et.personal_newAccount=new ft({callName:"personal_newAccount",params:1,inputFormatter:[null],outputFormatter:dn}),et.personal_importRawKey=new ft({callName:"personal_importRawKey",params:2,inputFormatter:[null,null],outputFormatter:dn}),et.personal_sign=new ft({callName:"personal_sign",params:3,inputFormatter:[Ae,Pe,null],outputFormatter:de}),et.personal_ecRecover=new ft({callName:"personal_ecRecover",params:2,inputFormatter:[Ae,null],outputFormatter:dn}),et.personal_unlockAccount=new ft({callName:"personal_unlockAccount",params:3,inputFormatter:[Pe,null,Ue],outputFormatter:je}),et.personal_sendTransaction=new ft({callName:"personal_sendTransaction",params:2,inputFormatter:[te,null],outputFormatter:de}),et.personal_lockAccount=new ft({callName:"personal_lockAccount",params:1,inputFormatter:[Pe],outputFormatter:je}),et.personal_listAccounts=new vr({getter:"personal_listAccounts",outputFormatter:ur}),et.net_listening=new vr({getter:"net_listening",outputFormatter:je}),et.net_peerCount=new vr({getter:"net_peerCount",outputFormatter:Ce}),et.eth_newFilter=new ft({callName:"eth_newFilter",params:1,inputFormatter:[Ge],outputFormatter:Je}),et.eth_getLogs=new ft({callName:"eth_getLogs",params:1,inputFormatter:[ur],outputFormatter:ur}),et.eth_newBlockFilter=new ft({callName:"eth_newBlockFilter",params:0,inputFormatter:[],outputFormatter:Je}),et.eth_newPendingTransactionFilter=new ft({callName:"eth_newPendingTransactionFilter",params:0,inputFormatter:[],outputFormatter:Je}),et.eth_uninstallFilter=new ft({callName:"eth_uninstallFilter",params:1,inputFormatter:[Je],outputFormatter:je}),et.eth_getFilterLogs=new ft({callName:"eth_getFilterLogs",params:1,inputFormatter:[Je],outputFormatter:ur}),et.eth_getFilterChanges=new ft({callName:"eth_getFilterChanges",params:1,inputFormatter:[Je],outputFormatter:ur}),et.eth_submitHashrate=new ft({callName:"eth_submitHashrate",params:2,inputFormatter:[null,null],outputFormatter:je}),et.shh_newIdentity=new ft({callName:"shh_newIdentity",params:0,inputFormatter:[],outputFormatter:de}),et.shh_hasIdentity=new ft({callName:"shh_hasIdentity",params:1,inputFormatter:[null],outputFormatter:je}),et.shh_newGroup=new ft({callName:"shh_newGroup",params:0,inputFormatter:[],outputFormatter:de}),et.shh_addToGroup=new ft({callName:"shh_addToGroup",params:1,inputFormatter:[null],outputFormatter:je}),et.shh_newFilter=new ft({callName:"shh_newFilter",params:1,inputFormatter:[null],outputFormatter:Je}),et.shh_uninstallFilter=new ft({callName:"shh_uninstallFilter",params:1,inputFormatter:[null],outputFormatter:je}),et.shh_getLogs=new ft({callName:"shh_getLogs",params:1,inputFormatter:[null],outputFormatter:ur}),et.shh_getFilterMessages=new ft({callName:"shh_getFilterMessages",params:1,inputFormatter:[null],outputFormatter:ur}),et.shh_getFilterChanges=new ft({callName:"shh_getFilterChanges",params:1,inputFormatter:[null],outputFormatter:ur}),et.shh_getMessages=new ft({callName:"shh_getMessages",params:1,inputFormatter:[null],outputFormatter:ur});function at(_,A){const q=t.eth[A];if(!q)throw new Error(`Could not find the method/property named ${A.toString()}`);Object.defineProperty(_,A,{value:function(...Y){return q.execute(this,...Y)}})}class Ze{constructor(A){this.provider=A,this.requests=new Map}async sendAsync(A){const q=await this.provider;if(!q)throw new Error("Provider not set or invalid");const Y=Ri(A.method,A.params),x=u();return this.requests.set(Y.id,x),q.sendAsync(Y,((ne,Oe)=>{this.requests.delete(Y.id),ne?x.reject(ne):Mi(Oe)?x.resolve(Oe.result):x.reject((function(Ve){const it=Ve&&Ve.error&&Ve.error.message?Ve.error.message:"Invalid JSON RPC response: "+JSON.stringify(Ve);return new Error(it)})(Oe))})),x}setProvider(A){this.provider=A}async getConfirmedTransaction(A){const q=await this.waitForCompletion(A);if(this.isFailure(q))throw new Error(`Transaction "${A}" failed`);return q}async waitForCompletion(A,q){const Y=en(A);if(await this.isTxDropped(Y,q)){const x=await this.getTransactionAndReceipt(Y);return Object.assign(Object.assign({},x),{status:t.TransactionStatus.failed})}for(;;){const x=await this.getTransactionAndReceipt(Y);if(!this.isPending(x)&&x.receipt)return Object.assign(Object.assign({},x),{status:this.isFailure(x)?t.TransactionStatus.failed:t.TransactionStatus.confirmed});await Hl(2e3)}}async getTransaction(A){let q,Y=null;const x=en(A);try{const Oe=(await this.eth_accounts())[0];Oe&&(Y=await this.eth_getTransactionCount(Oe,"latest"))}catch{Y=null}try{if(q=await this.eth_getTransactionByHash(x),q===null)return null}catch{return null}if(q.blockNumber===null){if(Y!==null){if(q.nonce<Y)return{hash:x,type:t.TransactionType.replaced,nonce:q.nonce};if(q.nonce>Y)return{hash:x,type:t.TransactionType.queued,nonce:q.nonce}}return Object.assign({type:t.TransactionType.pending},q)}let ne;try{if(ne=await this.eth_getTransactionReceipt(x),ne===null||ne.status===0)return Object.assign({type:t.TransactionType.reverted},q)}catch{return null}return Object.assign(Object.assign({type:t.TransactionType.confirmed},q),{receipt:ne})}async isTxDropped(A,q=15){let Y=q;for(;Y>0;){if(await this.getTransactionAndReceipt(A)!==null)return!1;Y-=1,await Hl(2e3)}return!0}async getTransactionAndReceipt(A){A=en(A);const[q,Y]=await Promise.all([this.eth_getTransactionByHash(A),this.eth_getTransactionReceipt(A)]);return Object.assign(Object.assign({},q),{receipt:Y})}isPending(A){return A&&A.blockNumber===null}isFailure(A){return A&&(!A.receipt||A.receipt.status===0)}}$e([at,xe("design:type",Function)],Ze.prototype,"web3_clientVersion",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"web3_sha3",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"net_version",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"net_peerCount",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"net_listening",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_protocolVersion",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_syncing",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_coinbase",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_mining",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_hashrate",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_gasPrice",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_accounts",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_blockNumber",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getBalance",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getStorageAt",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getTransactionCount",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getBlockTransactionCountByHash",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getBlockTransactionCountByNumber",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getUncleCountByBlockHash",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getUncleCountByBlockNumber",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getCode",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_sign",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_sendTransaction",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_sendRawTransaction",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_call",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_estimateGas",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getBlockByHash",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getBlockByNumber",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getTransactionByHash",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getTransactionByBlockHashAndIndex",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getTransactionByBlockNumberAndIndex",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getTransactionReceipt",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getUncleByBlockHashAndIndex",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getUncleByBlockNumberAndIndex",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_newFilter",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_newBlockFilter",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_newPendingTransactionFilter",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_uninstallFilter",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getFilterChanges",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getFilterLogs",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getLogs",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getWork",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_submitWork",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_submitHashrate",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"shh_post",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"shh_version",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"shh_newIdentity",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"shh_hasIdentity",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"shh_newGroup",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"shh_addToGroup",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"shh_newFilter",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"shh_uninstallFilter",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"shh_getFilterChanges",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"shh_getMessages",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"personal_unlockAccount",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"personal_newAccount",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"personal_listAccounts",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"personal_lockAccount",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"personal_importRawKey",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"personal_sendTransaction",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"personal_sign",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"personal_ecRecover",void 0);class lu{constructor(A){this.json=A,this._inputTypes=A.inputs||[],this._outputTypes=A.outputs||[],this._constant=!!A.constant,this._payable=!!A.payable||A.stateMutability==="payable",this.needsToBeTransaction=this._payable||"constant"in A&&!A.constant||A.stateMutability==="nonpayable",this._name=L(A)}extractDefaultBlock(A){return A.length>this._inputTypes.length&&!$r(A[A.length-1])&&Ir(A.pop())||"latest"}validateArgs(A){if(A.some((ne=>ne===void 0)))throw new Error("Invalid call, some arguments are undefined");const q=A.filter((function(ne){return!($r(ne)===!0&&xr(ne)===!1&&Pr(ne)===!1&&!(ne instanceof Uint8Array))}));if(q.length!==this._inputTypes.length)throw Y=q.length,x=this._inputTypes.length,new Error(`Invalid number of arguments to Solidity function. given: ${Y}, expected: ${x}`);var Y,x}toPayload(A){let q={to:void 0,data:void 0,value:void 0,from:void 0};A.length>this._inputTypes.length&&$r(A[A.length-1])&&(q=A.pop()),this.validateArgs(A);const Y=this.signature();let x=t.coder.encodeParams(this._inputTypes,A);return x.indexOf("0x")===0&&(x=x.substr(2)),q.data="0x"+Y+x,q}signature(){return X(this._name).slice(0,8)}unpackOutput(A){if(!A)return;const q=A.length>=2?A.slice(2):A,Y=t.coder.decodeParams(this._outputTypes,q);return Y.length===1?Y[0]:Y}async execute(A,q,...Y){if(!A)throw new Error(`Cannot call function ${this.displayName()} because there is no requestManager`);if(this.needsToBeTransaction){const x=this.toPayload(Y);if(x.to=q,x.value>0&&!this._payable)throw new Error("Cannot send value to non-payable function");if(!x.from)throw new Error('Missing "from" in transaction options');return await A.eth_sendTransaction(x)}{const x=this.extractDefaultBlock(Y),ne=this.toPayload(Y);ne.to=q;const Oe=await A.eth_call(ne,x);return this.unpackOutput(Oe)}}estimateGas(A,q,...Y){if(!(A instanceof Ze))throw new Error("estimateGas needs to receive a RequestManager as first argument");const x=this.toPayload(Y);return x.to=q,A.eth_estimateGas(x)}displayName(){return Re(this._name)}typeName(){return Se(this._name)||"void"}attachToContract(A){const q=this.displayName(),Y=Object.assign(((...x)=>this.execute(A.requestManager,A.address,...x)),{estimateGas:this.estimateGas.bind(this,A.requestManager,A.address),toPayload:(...x)=>this.toPayload(x),toRPCMessage:(...x)=>{const ne=this.extractDefaultBlock(x),Oe=this.toPayload(x);return Oe.to=A.address,{method:"eth_call",params:[Oe,ne]}},unpackOutput:x=>this.unpackOutput(x)});A[q]||(A[q]=Y),A[q][this.typeName()]=Y}}function ls(_){if(_==null)return null;const A=String(_).toString();return A.indexOf("0x")===0?A:ue(be(A))}class Ci{constructor(A){this.requestManager=A,this.isStarted=!1,this.isDisposed=!1,this.formatter=q=>q,this.filterId=u(),this.callbacks=[],this.stopSemaphore=u()}async watch(A){if(this.isDisposed)throw new Error("The filter was disposed");A&&(this.callbacks.push(A),this.isStarted||await this.start())}async start(){if(this.isDisposed)throw new Error("The filter was disposed");if(!this.isStarted){this.isStarted=!0;try{const A=await this.getNewFilter();if(!A)throw new Error("Could not create a filter, response: "+JSON.stringify(A));this.filterId.resolve(A)}catch(A){throw A}this.stopSemaphore=u(),await this.poll()}}async stop(){if(!this.isStarted||this.isDisposed)return;this.isDisposed=!0;const A=await this.filterId;if(this.isStarted=!1,this.stopSemaphore&&await this.stopSemaphore,await this.uninstall()!==!0)throw new Error(`Couldn't stop the eth filter: ${A}`)}async poll(){if(this.isStarted){if(this.callbacks.length){const q=await this.getChanges();q&&this.callbacks.forEach((Y=>{this.formatter?q.forEach((x=>{Y(this.formatter(x))})):q.forEach((x=>Y(x)))}))}this.stopSemaphore.resolve(1),this.isStarted&&(this.stopSemaphore=u(),setTimeout((A=()=>this.poll(),function(){A().catch((q=>console.error(q)))}),500))}else this.stopSemaphore.resolve(1);var A}}class Ia extends Ci{constructor(A,q,Y=(x=>x)){super(A),this.requestManager=A,this.options=q,this.formatter=Y,this.options=this.options||{},this.options.topics=this.options.topics||[],this.options.topics=this.options.topics.map((function(x){return ls(x)})),this.options={topics:this.options.topics,address:this.options.address?this.options.address:void 0,fromBlock:typeof this.options.fromBlock=="number"||typeof this.options.fromBlock=="string"?Ot(this.options.fromBlock)||void 0:"latest",toBlock:typeof this.options.toBlock=="number"||typeof this.options.toBlock=="string"?Ot(this.options.toBlock)||void 0:"latest"}}async getLogs(){this.isStarted||await this.start();const A=await this.filterId;return this.requestManager.eth_getFilterLogs(A)}async getNewFilter(){return this.requestManager.eth_newFilter(this.options)}async getChanges(){const A=await this.filterId;return this.requestManager.eth_getFilterChanges(A)}async uninstall(){const A=await this.filterId;return this.requestManager.eth_uninstallFilter(A)}}class Ra{constructor(A,q,Y){this.requestManager=A,this.address=Y,this._anonymous=!1,this._params=q.inputs||[],this._name=L(q),this._anonymous=q.anonymous||!1}types(A){return this._params.filter((function(q){return q.indexed===A}))}displayName(){return Re(this._name)}typeName(){return Se(this._name)||"void"}signature(){return X(this._name)}encode(A={},q={}){const Y={topics:[],address:this.address};q.fromBlock!==void 0&&(Y.fromBlock=Ot(q.fromBlock)||void 0),q.toBlock!==void 0&&(Y.toBlock=Ot(q.toBlock)||void 0),Y.topics=Y.topics||[],this._anonymous||Y.topics.push("0x"+this.signature());const x=this._params.filter((function(ne){return ne.indexed===!0})).map((function(ne){const Oe=A[ne.name];return Oe==null?null:xr(Oe)?Oe.map((function(Ve){return"0x"+t.coder.encodeParams([ne],[Ve])})):"0x"+t.coder.encodeParams([ne],[Oe])}));return Y.topics=Y.topics.concat(x),Y}decode(A){A.data=A.data||"",A.topics=A.topics||[];const q=(this._anonymous?A.topics:A.topics.slice(1)).map((function(Ve){return Ve.slice(2)})).join(""),Y=t.coder.decodeParams(this.types(!0),q),x=A.data.slice(2),ne=t.coder.decodeParams(this.types(!1),x),Oe=this._params.reduce((function(Ve,it){return Ve[it.name]=it.indexed?Y.shift():ne.shift(),Ve}),{});return Object.assign(Object.assign({},Te(A)),{event:this.displayName(),address:A.address,args:Oe})}async execute(A,q){const Y=this.encode(A,q),x=this.decode.bind(this);return new Ia(this.requestManager,Y,x)}attachToContract(A){const q=this.execute.bind(this),Y=this.displayName();A.events[Y]||(A.events[Y]=q),A.events[Y][this.typeName()]=this.execute.bind(this,A)}}class Ut{constructor(A,q,Y){this._requestManager=A,this._json=q,this._address=Y}encode(A={}){const q={address:this._address};return A.fromBlock!==void 0&&(q.fromBlock=Ot(A.fromBlock)||void 0),A.toBlock!==void 0&&(q.toBlock=Ot(A.toBlock)||void 0),q}decode(A){A.data=A.data||"";const q=xr(A.topics)&&vn(A.topics[0])?A.topics[0].slice(2):"",Y=this._json.filter((function(x){return q===X(L(x))}))[0];return Y?new Ra(this._requestManager,Y,this._address).decode(A):Te(A)}async execute(A){const q=this.encode(A),Y=this.decode.bind(this);return new Ia(this._requestManager,q,Y)}getAllEventsFunction(){return this.execute.bind(this)}}class cu{constructor(A,q,Y){var x;this.requestManager=A,this.abi=q,this.address=Y,this.events={},this.transactionHash=null,this.address=Y,this.abi=q,(x=this).abi.filter((function(ne){return ne.type==="function"})).map((function(ne){return new lu(ne)})).forEach((function(ne){ne.attachToContract(x)})),this.allEvents=(function(ne){const Oe=ne.abi.filter((function(it){return it.type==="event"})),Ve=new Ut(ne.requestManager,Oe,ne.address);return Oe.map((function(it){return new Ra(ne.requestManager,it,ne.address)})).forEach((function(it){it.attachToContract(ne)})),Ve.getAllEventsFunction()})(this)}}t.AbstractFilter=Ci,t.BigNumber=ae,t.Contract=cu,t.ContractFactory=class{constructor(_,A){this.requestManager=_,this.abi=A}async deploy(..._){let A;const q=_[_.length-1];if($r(q)&&!xr(q)&&(A=_.pop()),!A)throw new Error("Missing options object");if(!A.data||typeof A.data!="string")throw new Error("Invalid options.data");if(Ce(A.value)>0&&!(this.abi.filter((function(st){return st.type==="constructor"&&st.inputs.length===_.length}))[0]||{}).payable)throw new Error("Cannot send value to non-payable constructor");const Y=(x=this.abi,ne=_,x.filter((function(st){return st.type==="constructor"&&st.inputs&&st.inputs.length===ne.length})).map((function(st){return st.inputs||[]})).map((function(st){return t.coder.encodeParams(st,ne)}))[0]||"");var x,ne;A.data+=Y,A.gas||(A.gas=await this.requestManager.eth_estimateGas(A));const Oe=await this.requestManager.eth_sendTransaction(A);if(!Oe)throw new Error("Error while sending contract creation transaction. A TxHash was not retrieved");const Ve=await(async function(st,fr){const Ht=u();let ze=0;const _r=()=>{ze++,ze>50?Ht.reject(new Error("Contract transaction couldn't be found after 50 blocks")):st.eth_getTransactionReceipt(fr).then((Tr=>{Tr&&Tr.blockHash?Ht.resolve(Tr):setTimeout(_r,1e3)}),(Tr=>Ht.reject(Tr)))};_r();const zt=await Ht,Dt=await st.eth_getCode(zt.contractAddress,"latest");if(Dt&&Dt.length>3)return zt.contractAddress;throw Object.assign(new Error("The contract code couldn't be stored, please check your gas amount."),{response:Dt,receipt:zt})})(this.requestManager,Oe),it=await this.at(Ve);return it.transactionHash=Oe,it}async at(_){if(!Qr(_))throw new TypeError(`Invalid address ${JSON.stringify(_)}`);return new cu(this.requestManager,this.abi,_)}},t.EthBlockFilter=class extends Ia{constructor(_){super(_,{})}async getNewFilter(){return this.requestManager.eth_newBlockFilter()}},t.EthFilter=Ia,t.EthPendingTransactionFilter=class extends Ia{constructor(_){super(_,{})}async getNewFilter(){return this.requestManager.eth_newPendingTransactionFilter()}},t.HTTPProvider=class{constructor(_,A={}){this.host=_,this.options=A,this.debug=!1,this.host=_||"http://localhost:8545"}send(){throw new Error("Sync requests are deprecated")}sendAsync(_,A){try{let q=null;q=_ instanceof Array?_.map((ne=>n(ne))):n(_);const Y=this.options.fetch||globalThis.fetch;if(Y===void 0)throw new Error("There is no global fetch object nor it was provided. Please install and import isomorphic-fetch");const x={body:JSON.stringify(q),method:"POST",headers:Object.assign(Object.assign({},this.options.headers),{"Content-Type":"application/json"})};this.debug&&console.log("SEND >> "+x.body),Y(this.host,x).then((async ne=>{if(ne.ok){const Oe=await ne.json();this.debug&&console.log("RECV << "+JSON.stringify(Oe)),Oe.error?A(Object.assign(new Error(Oe.error.json||Oe.error),Oe.error)):A(null,Oe)}else this.debug&&console.log("ERR << "+JSON.stringify(ne)),A(new Error("External error. response code: "+ne.status))}),(ne=>{this.debug&&console.log("ERR << "+JSON.stringify(ne)),A(ne)}))}catch(q){this.debug&&console.log("ERR << "+JSON.stringify(q)),A(q)}}},t.Method=ft,t.Property=vr,t.RequestManager=Ze,t.SHHFilter=class extends Ci{constructor(_,A){super(_),this.requestManager=_,this.options=A,this.options=this.options||{topics:[]},this.options.topics=this.options.topics||[],this.options.topics=this.options.topics.map((function(q){return ls(q)})),this.options={topics:this.options.topics,to:this.options.to}}async getMessages(){const _=await this.filterId;return this.requestManager.shh_getMessages(_)}async getNewFilter(){return this.requestManager.shh_newFilter(this.options)}async getChanges(){const _=await this.filterId;return this.requestManager.shh_getFilterChanges(_)}async uninstall(){const _=await this.filterId;return this.requestManager.shh_uninstallFilter(_)}},t.SolidityEvent=Ra,t.SolidityFunction=lu,t.WebSocketProvider=class{constructor(_,A={}){this.url=_,this.options=A,this.isDisposed=!1,this.responseCallbacks=new Map,this.notificationCallbacks=new Set,this.debug=!1,this.lastChunk="",this.connect()}dispose(){this.isDisposed=!0;const _=this.connection;this.timeout(new Error("Provider disposed.")),_.then((A=>A.close())).catch((A=>{this.debug&&console.error(A)}))}send(){throw new Error("Sync requests are deprecated")}sendAsync(_,A){const q=[];let Y;if(_ instanceof Array)Y=Promise.all(_.map((x=>{const ne=u();try{const Oe=n(x);q.push(Oe),this.responseCallbacks.set(Oe.id,ne)}catch(Oe){ne.reject(Oe)}return ne})));else{const x=u();try{const ne=n(_);q.push(ne),this.responseCallbacks.set(ne.id,x)}catch(ne){x.reject(ne)}Y=x}Y.then((x=>A(null,x)),(x=>A(x))),this.connection.then((x=>{q.forEach((ne=>{const Oe=JSON.stringify(ne);this.debug&&console.log("SEND >> "+Oe),x.send(Oe)}))}),(x=>{A(x)}))}parseResponse(_){const A=[];return _.replace(/\}[\n\r]?\{/g,"}|--|{").replace(/\}\][\n\r]?\[\{/g,"}]|--|[{").replace(/\}[\n\r]?\[\{/g,"}|--|[{").replace(/\}\][\n\r]?\{/g,"}]|--|{").split("|--|").forEach((q=>{let Y=q;this.lastChunk&&(Y=this.lastChunk+Y);let x=null;try{x=JSON.parse(Y)}catch{return this.lastChunk=Y,clearTimeout(this.lastChunkTimeout),void(this.lastChunkTimeout=setTimeout((()=>{this.timeout()}),15e3))}clearTimeout(this.lastChunkTimeout),this.lastChunk="",x&&A.push(x)})),A}processMessage(_){if("id"in _){const A=_.id,q=this.responseCallbacks.get(A);if(!q)return void console.error("Error: Received a response for an unknown request",_);this.responseCallbacks.delete(A),_.error!==void 0&&_.error!==null?q.reject(Object.assign(new Error(_.error.message||_.error),_.error)):"result"in _&&q.resolve(_)}else this.notificationCallbacks.forEach((A=>A(null,_)))}timeout(_){this.connection&&this.connection.isPending||(this.connection=u());const A=_||new Error("Connection timeout");this.responseCallbacks.forEach((q=>q.reject(A))),this.responseCallbacks.clear(),this.isDisposed||setTimeout((()=>this.connect()),1e3)}connect(){this.connection&&!this.connection.isPending&&this.connection.then((q=>q.close())).catch((q=>{this.debug&&console.error(q)})),this.connection&&this.connection.isPending||(this.connection=u()),this.lastChunk="";const _=this.options.WebSocketConstructor||(typeof WebSocket<"u"?WebSocket:void 0);if(!_)throw new Error("Please provide a WebSocketConstructor");const A=new _(this.url,this.options.protocol);A.onopen=()=>{this.connection.resolve(A)},A.onerror=q=>{const Y=new Error("Error in web socket");Y.data=q,this.timeout(Y)},A.onclose=q=>{this.timeout(new Error(`Connection closed (${q&&q.reason||"Unknown reason"})`))},A.onmessage=q=>{const Y=typeof q.data=="string"?q.data:"";this.debug&&console.log("RECV << "+q.data),this.parseResponse(Y).forEach((x=>{x instanceof Array?x.forEach((ne=>this.processMessage(ne))):this.processMessage(x)}))}}},t.bytesToHex=ue,t.bytesToUtf8String=ye,t.concatBytes=W,t.default=Ze,t.extractDisplayName=Re,t.extractTypeName=Se,t.fromAscii=function(_,A=0){let q="";for(let Y=0;Y<_.length;Y++){const x=_.charCodeAt(Y).toString(16);q+=x.length<2?"0"+x:x}return"0x"+q.padEnd(A,"0")},t.fromDecimal=Ye,t.fromTwosComplement=sr,t.fromWei=function(_,A){const q=Lt(_).dividedBy(Vt(A));return Pr(_)?q:q.toString(10)},t.getAddress=zr,t.getValueOfUnit=Vt,t.hexToBytes=we,t.inputAddressFormatter=Pe,t.inputBlockNumberFormatter=Ot,t.inputCallFormatter=Wr,t.inputDefaultBlockNumberFormatter=Ir,t.inputFilterOptions=Ge,t.inputPostFormatter=function(_){return _?(_.ttl=Ye(_.ttl),_.workToProve=Ye(_.workToProve),_.priority=Ye(_.priority),xr(_.topics)||(_.topics=_.topics?[_.topics]:[]),_.topics=_.topics.map((function(A){return A.indexOf("0x")===0?A:"0x"+ue(be(A))})),_):null},t.inputTransactionFormatter=te,t.inputTransactionId=en,t.isAddress=Qr,t.isArray=xr,t.isBigNumber=Pr,t.isBloom=function(_){return!!/^(0x)?[0-9a-f]{512}$/i.test(_)&&!!/^(0x)?[0-9a-f]{512}$/i.test(_)},t.isBoolean=_n,t.isChecksumAddress=Zr,t.isFunction=function(_){return typeof _=="function"},t.isHex=function(_){return typeof _=="string"&&/^0x[0-9a-fA-F]+$/.test(_)},t.isJson=function(_){try{return!!JSON.parse(_)}catch{return!1}},t.isObject=$r,t.isPredefinedBlockNumber=Ni,t.isStrictAddress=gn,t.isString=vn,t.isTopic=function(_){return!!/^(0x)?[0-9a-f]{64}$/i.test(_)&&!!/^(0x)?[0-9a-f]{64}$/i.test(_)},t.isValidResponse=Mi,t.outputBigNumberFormatter=yi,t.outputBlockFormatter=ce,t.outputLogFormatter=Te,t.outputPostFormatter=function(_){return _?(_.expiry=Ce(_.expiry),_.sent=Ce(_.sent),_.ttl=Ce(_.ttl),_.workProved=Ce(_.workProved),_.topics||(_.topics=[]),_.topics=_.topics.map((function(A){return k(A)})),_):null},t.outputSyncingFormatter=Ke,t.outputTransactionFormatter=F,t.outputTransactionReceiptFormatter=Z,t.padLeft=B,t.padRight=function(_,A,q){return _+new Array(A-_.length+1).join(q||"0")},t.sha3=X,t.signedIsNegative=Ft,t.stringToUtf8Bytes=be,t.toAddress=dn,t.toArray=ur,t.toAscii=k,t.toBatchPayload=function(_){return _.map((function(A){return Ri(A.method,A.params)}))},t.toBigNumber=Lt,t.toBoolean=je,t.toChecksumAddress=cn,t.toData=de,t.toDecimal=Ce,t.toHex=Je,t.toJsonRpcRequest=Ri,t.toNullDecimal=Ue,t.toString=se,t.toStringData=Ae,t.toTwosComplement=Bt,t.toWei=function(_,A){const q=Lt(_).times(Vt(A));return Pr(_)?q:q.toString(10)},t.transformToFullName=L,Object.defineProperty(t,"__esModule",{value:!0})}))})(wl,wl.exports)),wl.exports}var Xu={},VC;function rz(){if(VC)return Xu;VC=1,Object.defineProperty(Xu,"__esModule",{value:!0}),Xu.SignatureValidator=void 0;const e=wf();async function a(t,n){const i=[{constant:!0,inputs:[{name:"hash",type:"bytes32"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"magicValue",type:"bytes4"}],payable:!1,stateMutability:"view",type:"function"}];return await new e.ContractFactory(t,i).at(n)}return Xu.SignatureValidator=a,Xu}var R_={},ni={},Ho={},zo={},M_={},ii={},HC;function nt(){if(HC)return ii;HC=1;var e=ii&&ii.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(ii,"__esModule",{value:!0}),ii.validateType=ii.generateLazyValidator=ii.Ajv=void 0;const a=e(xo());ii.Ajv=a.default;const t=e(ff()),n=e(pf());function i(u,c){let f=null;const p=(y,m)=>{if(!f){const g=new a.default({$data:!0,allErrors:!0});(0,t.default)(g),(0,n.default)(g,{singleError:!0}),c?.forEach(S=>g.addKeyword(S)),f=g.compile(u),Object.defineProperty(p,"errors",{get(){return f?.errors}})}return f(y,m)};return p}ii.generateLazyValidator=i;function o(u,c){return u.validate(c)}return ii.validateType=o,ii}var zC;function nz(){return zC||(zC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SceneUpdate=e.SCENE_UPDATE=void 0;const a=nt();e.SCENE_UPDATE="SCENE_UPDATE",(function(t){t.schema={type:"object",properties:{type:{type:"string",enum:[e.SCENE_UPDATE]},payload:{type:"object",properties:{sceneId:{type:"string"},sceneType:{type:"string"}},additionalProperties:!1,required:["sceneId","sceneType"]}},required:["payload","type"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.SceneUpdate||(e.SceneUpdate={}))})(M_)),M_}var N_={},WC;function iz(){return WC||(WC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Update=e.UPDATE=void 0;const a=nt();e.UPDATE="update",(function(t){t.schema={type:"object",properties:{type:{type:"string",enum:[e.UPDATE]}},required:["type"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Update||(e.Update={}))})(N_)),N_}var GC;function az(){return GC||(GC=1,(function(e){var a=zo&&zo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=zo&&zo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(nz(),e),t(iz(),e)})(zo)),zo}var Wo={},C_={},KC;function oz(){return KC||(KC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProjectType=void 0;const a=nt();(function(t){t.SCENE="scene",t.SMART_ITEM="smart-item",t.PORTABLE_EXPERIENCE="portable-experience",t.LIBRARY="library"})(e.ProjectType||(e.ProjectType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.ProjectType||(e.ProjectType={}))})(C_)),C_}var j_={},L_={},YC;function Tf(){return YC||(YC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Rarity=void 0;const a=nt();(function(t){t.UNIQUE="unique",t.MYTHIC="mythic",t.LEGENDARY="legendary",t.EPIC="epic",t.RARE="rare",t.UNCOMMON="uncommon",t.COMMON="common"})(e.Rarity||(e.Rarity={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema);const n={[t.UNIQUE]:1,[t.MYTHIC]:10,[t.LEGENDARY]:100,[t.EPIC]:1e3,[t.RARE]:5e3,[t.UNCOMMON]:1e4,[t.COMMON]:1e5},i={[t.UNIQUE]:"#FFE617",[t.MYTHIC]:"#FB7DE3",[t.LEGENDARY]:"#A657ED",[t.EPIC]:"#6397F2",[t.RARE]:"#3AD682",[t.UNCOMMON]:"#FF8563",[t.COMMON]:"#D4E0E0"},o={[t.UNIQUE]:"#FFB626",[t.MYTHIC]:"#FF63E1",[t.LEGENDARY]:"#842DDA",[t.EPIC]:"#3D85E6",[t.RARE]:"#36CF75",[t.UNCOMMON]:"#ED6D4F",[t.COMMON]:"#ABC1C1"};function u(p){return n[p]}t.getMaxSupply=u;function c(p){return o[p]}t.getColor=c;function f(p){return[i[p],o[p]]}t.getGradient=f})(e.Rarity||(e.Rarity={}))})(L_)),L_}var D_={},XC;function as(){return XC||(XC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WearableCategory=void 0;const a=nt();(function(t){t.EYEBROWS="eyebrows",t.EYES="eyes",t.FACIAL_HAIR="facial_hair",t.HAIR="hair",t.BODY_SHAPE="body_shape",t.MOUTH="mouth",t.UPPER_BODY="upper_body",t.LOWER_BODY="lower_body",t.FEET="feet",t.EARRING="earring",t.EYEWEAR="eyewear",t.HAT="hat",t.HELMET="helmet",t.MASK="mask",t.TIARA="tiara",t.TOP_HEAD="top_head",t.SKIN="skin",t.HANDS_WEAR="hands_wear"})(e.WearableCategory||(e.WearableCategory={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.WearableCategory||(e.WearableCategory={}))})(D_)),D_}var q_={},k_={},JC;function u0(){return JC||(JC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BodyShape=void 0;const a=nt();(function(t){t.MALE="urn:decentraland:off-chain:base-avatars:BaseMale",t.FEMALE="urn:decentraland:off-chain:base-avatars:BaseFemale"})(e.BodyShape||(e.BodyShape={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.BodyShape||(e.BodyShape={}))})(k_)),k_}var U_={},B_={},QC;function uk(){return QC||(QC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BodyPartCategory=void 0;const a=nt();(function(t){t.HEAD="head",t.HANDS="hands"})(e.BodyPartCategory||(e.BodyPartCategory={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.BodyPartCategory||(e.BodyPartCategory={}))})(B_)),B_}var ZC;function l0(){return ZC||(ZC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.HideableWearableCategory=void 0;const a=as(),t=nt(),n=uk();(function(i){i.schema={oneOf:[Object.assign({},a.WearableCategory.schema),Object.assign({},n.BodyPartCategory.schema)]},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.HideableWearableCategory||(e.HideableWearableCategory={}))})(U_)),U_}var $C;function c0(){return $C||($C=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WearableRepresentation=void 0;const a=nt(),t=u0(),n=l0();(function(i){i.schema={type:"object",properties:{bodyShapes:{type:"array",items:t.BodyShape.schema,minItems:1,uniqueItems:!0},mainFile:{type:"string",minLength:1},contents:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0,contains:{const:{$data:"2/mainFile"}}},overrideHides:{type:"array",items:n.HideableWearableCategory.schema},overrideReplaces:{type:"array",items:n.HideableWearableCategory.schema}},required:["bodyShapes","mainFile","contents","overrideHides","overrideReplaces"]},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.WearableRepresentation||(e.WearableRepresentation={}))})(q_)),q_}var Go={},Ko={},F_={},V_={},xC;function ou(){return xC||(xC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.IPFSv1=e.IPFSv2=e.EthAddress=e.Color3=void 0;const a=nt();(function(t){t.schema={type:"object",required:["r","g","b"],properties:{r:{type:"number",minimum:0,maximum:1},g:{type:"number",minimum:0,maximum:1},b:{type:"number",minimum:0,maximum:1}}};const n=(0,a.generateLazyValidator)(t.schema);t.validate=i=>n(i)})(e.Color3||(e.Color3={})),(function(t){t.schema={type:"string",pattern:"^0x[a-fA-F0-9]{40}$"};const n=new RegExp(t.schema.pattern);t.validate=i=>n.test(i)})(e.EthAddress||(e.EthAddress={})),(function(t){t.schema={type:"string",pattern:"^(ba)[a-zA-Z0-9]{57}$"};const n=new RegExp(t.schema.pattern);t.validate=i=>n.test(i)})(e.IPFSv2||(e.IPFSv2={})),(function(t){t.schema={type:"string",pattern:"^(Qm)[a-zA-Z0-9]{44}$"};const n=new RegExp(t.schema.pattern);t.validate=i=>n.test(i)})(e.IPFSv1||(e.IPFSv1={}))})(V_)),V_}var ej;function lk(){return ej||(ej=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Avatar=e.Link=e.LinkUrl=e.AvatarInfo=e.Snapshots=void 0;const a=as(),t=ou(),n=nt();var i;(function(f){f.schema={type:"object",required:["face256","body"],properties:{face256:t.IPFSv2.schema,body:t.IPFSv2.schema}},f.validate=(0,n.generateLazyValidator)(f.schema)})(i=e.Snapshots||(e.Snapshots={}));var o;(function(f){f.schema={type:"object",required:["bodyShape","eyes","hair","skin"],properties:{bodyShape:{type:"string"},eyes:{type:"object",required:["color"],properties:{color:t.Color3.schema}},hair:{type:"object",required:["color"],properties:{color:t.Color3.schema}},skin:{type:"object",required:["color"],properties:{color:t.Color3.schema}},wearables:{type:"array",items:{type:"string"}},forceRender:{type:"array",nullable:!0,items:a.WearableCategory.schema},emotes:{type:"array",items:{type:"object",properties:{slot:{type:"number"},urn:{type:"string"}},required:["slot","urn"]},nullable:!0},snapshots:i.schema},additionalProperties:!0},f.validate=(0,n.generateLazyValidator)(f.schema)})(o=e.AvatarInfo||(e.AvatarInfo={}));var u;(function(f){f.schema={type:"string",pattern:"^[(http(s)?):\\/\\/(www\\.)?a-zA-Z0-9@:%._\\+~#=]{2,256}\\.[a-z]{2,6}\\b([-a-zA-Z0-9@:%_\\+.~#?&//=]*)$"};const p=new RegExp(f.schema.pattern,"i");f.validate=y=>p.test(y)})(u=e.LinkUrl||(e.LinkUrl={}));var c;(function(f){f.schema={type:"object",required:["title","url"],properties:{title:{type:"string"},url:u.schema}}})(c=e.Link||(e.Link={})),(function(f){f.schema={type:"object",required:["name","description","ethAddress","version","tutorialStep","avatar","hasClaimedName"],properties:{userId:{type:"string"},name:{type:"string"},description:{type:"string"},links:{type:"array",maxItems:5,items:c.schema,nullable:!0},country:{nullable:!0,type:"string"},employmentStatus:{nullable:!0,type:"string"},gender:{nullable:!0,type:"string"},pronouns:{nullable:!0,type:"string"},relationshipStatus:{nullable:!0,type:"string"},sexualOrientation:{nullable:!0,type:"string"},language:{nullable:!0,type:"string"},profession:{nullable:!0,type:"string"},birthdate:{nullable:!0,type:"number"},realName:{nullable:!0,type:"string"},hobbies:{nullable:!0,type:"string"},ethAddress:t.EthAddress.schema,version:{type:"number"},tutorialStep:{type:"number"},email:{type:"string",nullable:!0},blocked:{type:"array",items:{type:"string"},nullable:!0},muted:{type:"array",items:{type:"string"},nullable:!0},interests:{type:"array",items:{type:"string"},nullable:!0},hasClaimedName:{type:"boolean"},hasConnectedWeb3:{type:"boolean",nullable:!0},avatar:o.schema},additionalProperties:!0},f.validate=(0,n.generateLazyValidator)(f.schema)})(e.Avatar||(e.Avatar={}))})(F_)),F_}var H_={},tj;function sz(){return tj||(tj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Profile=void 0;const a=nt(),t=lk();(function(n){n.schema={type:"object",required:["avatars"],properties:{avatars:{type:"array",items:t.Avatar.schema}},additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.Profile||(e.Profile={}))})(H_)),H_}var rj;function uz(){return rj||(rj=1,(function(e){var a=Ko&&Ko.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Ko&&Ko.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(lk(),e),t(sz(),e)})(Ko)),Ko}var z_={},W_={},nj;function ck(){return nj||(nj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.FeatureToggles=e.portableExperiencesToggles=e.toggles=void 0;const a=nt();e.toggles=["enabled","disabled"],e.portableExperiencesToggles=[...e.toggles,"hideUi"],(function(t){t.schema={type:"object",properties:{voiceChat:{type:"string",enum:e.toggles,nullable:!0},portableExperiences:{type:"string",enum:e.portableExperiencesToggles,nullable:!0,errorMessage:`valid options are ${e.portableExperiencesToggles.join(", ")}`}},errorMessage:`valid options are ${e.toggles.join(", ")}`,required:[]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.FeatureToggles||(e.FeatureToggles={}))})(W_)),W_}var G_={},ij;function dk(){return ij||(ij=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WorldConfiguration=void 0;const a=nt();(function(t){t.schema={type:"object",properties:{name:{type:"string",nullable:!0},skybox:{type:"number",nullable:!0},minimapVisible:{type:"boolean",nullable:!0},miniMapConfig:{type:"object",nullable:!0,properties:{visible:{type:"boolean",nullable:!0},dataImage:{type:"string",nullable:!0},estateImage:{type:"string",nullable:!0}}},skyboxConfig:{type:"object",nullable:!0,properties:{fixedTime:{type:"number",nullable:!0},textures:{type:"array",nullable:!0,items:{type:"string"},oneOf:[{minItems:0,maxItems:0},{minItems:1,maxItems:1},{minItems:6,maxItems:6}],errorMessage:"customSkybox must be an array of 0, 1 or 6 strings"}}},fixedAdapter:{type:"string",nullable:!0},placesConfig:{type:"object",nullable:!0,properties:{optOut:{type:"boolean",nullable:!0}}}},required:[]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.WorldConfiguration||(e.WorldConfiguration={}))})(G_)),G_}var K_={},aj;function fk(){return aj||(aj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SceneParcels=void 0;const a=nt();(function(t){t.schema={description:'Describes a scene, a set of parcels whose content is treated as the same entity. A list of parcels is listed, for which one of them is considered the "base" for positioning purposes.',type:"object",properties:{base:{type:"string",pattern:"^-?[0-9]+,-?[0-9]+$"},parcels:{type:"array",items:{type:"string",pattern:"^-?[0-9]+,-?[0-9]+$"},minItems:1}},additionalProperties:!0,required:["base","parcels"]},t.schemaValidator=(0,a.generateLazyValidator)(t.schema),t.validate=n=>t.schemaValidator(n)&&n.parcels.includes(n.base)})(e.SceneParcels||(e.SceneParcels={}))})(K_)),K_}var Y_={},Ju={},oj;function d0(){return oj||(oj=1,Object.defineProperty(Ju,"__esModule",{value:!0}),Ju.displayableProperties=void 0,Ju.displayableProperties={menuBarIcon:{description:"Name of the file used as icon for the MenuBar",type:"string",nullable:!0}}),Ju}var X_={},sj;function pk(){return sj||(sj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Source=void 0;const a=nt();(function(t){t.schema={type:"object",properties:{version:{type:"number",nullable:!0},origin:{type:"string"},projectId:{type:"string"},point:{type:"object",properties:{x:{type:"integer"},y:{type:"integer"}},nullable:!0,required:["x","y"]},rotation:{type:"string",enum:["north","east","south","west"],nullable:!0},layout:{type:"object",properties:{rows:{type:"integer"},cols:{type:"integer"}},nullable:!0,required:["rows","cols"]},isEmpty:{type:"boolean",nullable:!0}},additionalProperties:!0,required:["origin","projectId"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Source||(e.Source={}))})(X_)),X_}var J_={},uj;function yk(){return uj||(uj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SpawnPoint=void 0;const a=nt();(function(t){t.schema={type:"object",properties:{name:{type:"string",nullable:!0},position:{type:"object",oneOf:[{$ref:"#single-position"},{$ref:"#multi-position"}],required:["x","y","z"]},default:{type:"boolean",nullable:!0},cameraTarget:{type:"object",properties:{x:{type:"number"},y:{type:"number"},z:{type:"number"}},required:["x","y","z"],nullable:!0}},required:["position"],definitions:{"single-position":{$id:"#single-position",type:"object",properties:{x:{type:"number"},y:{type:"number"},z:{type:"number"}},required:["x","y","z"]},"multi-position":{$id:"#multi-position",type:"object",properties:{x:{type:"array",items:{type:"number"},minItems:1},y:{type:"array",items:{type:"number"},minItems:1},z:{type:"array",items:{type:"number"},minItems:1}},required:["x","y","z"]}}},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.SpawnPoint||(e.SpawnPoint={}))})(J_)),J_}var lj;function lz(){return lj||(lj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Scene=e.RequiredPermission=void 0;const a=nt(),t=d0(),n=ck(),i=fk(),o=pk(),u=yk(),c=dk();var f;(function(p){p.ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE="ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE",p.ALLOW_TO_TRIGGER_AVATAR_EMOTE="ALLOW_TO_TRIGGER_AVATAR_EMOTE",p.ALLOW_MEDIA_HOSTNAMES="ALLOW_MEDIA_HOSTNAMES",p.USE_WEB3_API="USE_WEB3_API",p.USE_FETCH="USE_FETCH",p.USE_WEBSOCKET="USE_WEBSOCKET",p.OPEN_EXTERNAL_LINK="OPEN_EXTERNAL_LINK"})(f=e.RequiredPermission||(e.RequiredPermission={})),(function(p){p.schema={type:"object",properties:Object.assign(Object.assign({isPortableExperience:{description:"Define the current scene as a Portable Experience",type:"boolean",nullable:!0},main:{description:"File that contains the entry point of the scene's code",type:"string",minLength:1},scene:i.SceneParcels.schema},t.displayableProperties),{display:{description:"Information related to how should this land be displayed apart from the normal rendering of the scene",type:"object",properties:{title:{description:"A name so other users can identify what the contents of this land should be",type:"string",nullable:!0},favicon:{description:"DEPRECATED. Allow the land owner to set up a favicon to this land",type:"string",nullable:!0},description:{description:"A description that will be shown on client's nav map when the scene is selected",type:"string",nullable:!0},navmapThumbnail:{type:"string",nullable:!0}},nullable:!0,required:[]},owner:{type:"string",nullable:!0},contact:{description:"Describe different ways of contacting the land owner",type:"object",properties:{name:{type:"string",nullable:!0},email:{type:"string",nullable:!0},im:{type:"string",nullable:!0},url:{type:"string",nullable:!0}},nullable:!0,required:[]},tags:{type:"array",items:{type:"string",minLength:1},nullable:!0},source:Object.assign(Object.assign({},o.Source.schema),{nullable:!0}),spawnPoints:{type:"array",items:u.SpawnPoint.schema,nullable:!0},requiredPermissions:{type:"array",items:{type:"string",enum:Object.values(f)},uniqueItems:!0,nullable:!0},featureToggles:Object.assign(Object.assign({},n.FeatureToggles.schema),{nullable:!0}),worldConfiguration:Object.assign(Object.assign({},c.WorldConfiguration.schema),{nullable:!0}),allowedMediaHostnames:{type:"array",items:{type:"string"},nullable:!0}}),additionalProperties:!0,required:["main","scene"],dependencies:{requiredPermissions:{if:{properties:{requiredPermissions:{type:"array",contains:{const:f.ALLOW_MEDIA_HOSTNAMES}}}},then:{properties:{allowedMediaHostnames:{type:"array",items:{type:"string"},nullable:!1,minItems:1}},required:["allowedMediaHostnames"]},else:{properties:{allowedMediaHostnames:{type:["null","array"],nullable:!0,maxItems:0}}}}}},p.validate=(0,a.generateLazyValidator)(p.schema)})(e.Scene||(e.Scene={}))})(Y_)),Y_}var cj;function cz(){return cj||(cj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SpawnPoint=e.Source=e.RequiredPermission=e.Scene=e.SceneParcels=e.WorldConfiguration=e.FeatureToggles=void 0;var a=ck();Object.defineProperty(e,"FeatureToggles",{enumerable:!0,get:function(){return a.FeatureToggles}});var t=dk();Object.defineProperty(e,"WorldConfiguration",{enumerable:!0,get:function(){return t.WorldConfiguration}});var n=fk();Object.defineProperty(e,"SceneParcels",{enumerable:!0,get:function(){return n.SceneParcels}});var i=lz();Object.defineProperty(e,"Scene",{enumerable:!0,get:function(){return i.Scene}}),Object.defineProperty(e,"RequiredPermission",{enumerable:!0,get:function(){return i.RequiredPermission}});var o=pk();Object.defineProperty(e,"Source",{enumerable:!0,get:function(){return o.Source}});var u=yk();Object.defineProperty(e,"SpawnPoint",{enumerable:!0,get:function(){return u.SpawnPoint}})})(z_)),z_}var Yo={},Q_={},Z_={},dj;function mk(){return dj||(dj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Locale=void 0;const a=nt();(function(t){t.EN="en",t.ES="es"})(e.Locale||(e.Locale={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Locale||(e.Locale={}))})(Z_)),Z_}var fj;function hk(){return fj||(fj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.I18N=void 0;const a=nt(),t=mk();(function(n){n.schema={type:"object",properties:{code:t.Locale.schema,text:{type:"string"}},additionalProperties:!0,required:["code","text"]},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.I18N||(e.I18N={}))})(Q_)),Q_}var $_={},pj;function gk(){return pj||(pj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Metrics=void 0;const a=nt();(function(t){t.schema={type:"object",properties:{triangles:{type:"number"},materials:{type:"number"},textures:{type:"number"},meshes:{type:"number"},bodies:{type:"number"},entities:{type:"number"}},required:["triangles","materials","textures","meshes","bodies","entities"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Metrics||(e.Metrics={}))})($_)),$_}var x_={},yj;function f0(){return yj||(yj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isStandard=e.standardProperties=void 0;const a=Tf(),t=nt();e.standardProperties={collectionAddress:{type:"string",nullable:!1},rarity:a.Rarity.schema};const n={type:"object",properties:Object.assign({},e.standardProperties),required:["collectionAddress","rarity"]},i=(0,t.generateLazyValidator)(n);function o(u){return i(u)}e.isStandard=o})(x_)),x_}var eE={},tE={},mj;function vk(){return mj||(mj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MerkleProof=void 0;const a=nt();(function(t){t.schema={type:"object",properties:{proof:{type:"array",items:{type:"string"}},index:{type:"number"},hashingKeys:{type:"array",items:{type:"string"}},entityHash:{type:"string"}},required:["entityHash","hashingKeys","index","proof"],additionalProperties:!0},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.MerkleProof||(e.MerkleProof={}))})(tE)),tE}var hj;function p0(){return hj||(hj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isThirdParty=e.thirdPartyProps=void 0;const a=nt(),t=vk();e.thirdPartyProps={merkleProof:t.MerkleProof.schema,content:{type:"object",nullable:!1,additionalProperties:{type:"string"},required:[]}};const n={type:"object",properties:Object.assign({},e.thirdPartyProps),required:["merkleProof","content"],_containsHashingKeys:!0},i={keyword:"_containsHashingKeys",validate:(c,f)=>{var p;const y=f;return!((p=y?.merkleProof)===null||p===void 0)&&p.hashingKeys?y.merkleProof.hashingKeys.every(m=>y.hasOwnProperty(m)):!1},errors:!1},o=(0,a.generateLazyValidator)(n,[i]);function u(c){return o(c)}e.isThirdParty=u})(eE)),eE}var rE={},nE={},Yi={},gj;function _k(){if(gj)return Yi;gj=1,Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.isBaseAvatar=Yi.requiredBaseItemProps=Yi.baseItemProperties=void 0;const e=hk(),a=gk(),t=d0();Yi.baseItemProperties=Object.assign(Object.assign({},t.displayableProperties),{id:{type:"string"},name:{type:"string"},description:{type:"string"},i18n:{type:"array",items:e.I18N.schema,minItems:1,uniqueItemProperties:["code"],errorMessage:'${0#} array should not have duplicates for "code"'},thumbnail:{type:"string"},image:{type:"string"},metrics:Object.assign(Object.assign({},a.Metrics.schema),{nullable:!0})}),Yi.requiredBaseItemProps=["id","name","description","i18n","thumbnail","image"];function n(i){if(!i||!i.id)return!1;const o=i.id.split(":"),u=o[1]==="decentraland",c=o[3]==="base-avatars";return o.length===5&&u&&c}return Yi.isBaseAvatar=n,Yi}var vj;function dz(){return vj||(vj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Wearable=void 0;const a=nt(),t=as(),n=c0(),i=_k(),o=f0(),u=p0(),c=l0();(function(f){f.schema={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({},i.baseItemProperties),o.standardProperties),u.thirdPartyProps),{data:{type:"object",properties:{replaces:{type:"array",items:c.HideableWearableCategory.schema},hides:{type:"array",items:c.HideableWearableCategory.schema},tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:n.WearableRepresentation.schema,minItems:1},category:t.WearableCategory.schema,removesDefaultHiding:{type:"array",nullable:!0,items:c.HideableWearableCategory.schema}},required:["replaces","hides","tags","representations","category"]}}),additionalProperties:!0,required:[],oneOf:[{required:["id","i18n"],prohibited:["merkleProof","content","collectionAddress","rarity"],_isBaseAvatar:!0},{required:[...i.requiredBaseItemProps,"data","collectionAddress","rarity"],prohibited:["merkleProof","content"]},{required:[...i.requiredBaseItemProps,"data","merkleProof","content"],prohibited:["collectionAddress","rarity"],_isThirdParty:!0}],errorMessage:{oneOf:"either standard XOR thirdparty properties conditions must be met"}};const p={keyword:"_isThirdParty",validate:(m,g)=>!m||(0,u.isThirdParty)(g),errors:!1},y={keyword:"_isBaseAvatar",validate:(m,g)=>!m||(0,i.isBaseAvatar)(g),errors:!1};f.validate=(0,a.generateLazyValidator)(f.schema,[p,y])})(e.Wearable||(e.Wearable={}))})(nE)),nE}var _j;function fz(){return _j||(_j=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.HideableWearableCategory=e.BodyPartCategory=e.WearableCategory=e.Wearable=e.WearableRepresentation=void 0;var a=c0();Object.defineProperty(e,"WearableRepresentation",{enumerable:!0,get:function(){return a.WearableRepresentation}});var t=dz();Object.defineProperty(e,"Wearable",{enumerable:!0,get:function(){return t.Wearable}});var n=as();Object.defineProperty(e,"WearableCategory",{enumerable:!0,get:function(){return n.WearableCategory}});var i=uk();Object.defineProperty(e,"BodyPartCategory",{enumerable:!0,get:function(){return i.BodyPartCategory}});var o=l0();Object.defineProperty(e,"HideableWearableCategory",{enumerable:!0,get:function(){return o.HideableWearableCategory}})})(rE)),rE}var iE={},aE={},oE={},sE={},Ej;function Ek(){return Ej||(Ej=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteCategory=void 0;const a=nt();(function(t){t.DANCE="dance",t.STUNT="stunt",t.GREETINGS="greetings",t.FUN="fun",t.POSES="poses",t.REACTIONS="reactions",t.HORROR="horror",t.MISCELLANEOUS="miscellaneous"})(e.EmoteCategory||(e.EmoteCategory={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.EmoteCategory||(e.EmoteCategory={}))})(sE)),sE}var uE={},bj;function bk(){return bj||(bj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteRepresentationADR74=void 0;const a=nt(),t=u0();(function(n){n.schema={type:"object",properties:{bodyShapes:{type:"array",items:t.BodyShape.schema,minItems:1,uniqueItems:!0},mainFile:{type:"string",minLength:1},contents:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0,contains:{const:{$data:"2/mainFile"}},errorMessage:{contains:"contents should contain mainFile: ${1/mainFile}"}}},required:["bodyShapes","mainFile","contents"]},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.EmoteRepresentationADR74||(e.EmoteRepresentationADR74={}))})(uE)),uE}var wj;function wk(){return wj||(wj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteDataADR74=void 0;const a=Ek(),t=nt(),n=bk();(function(i){i.schema={type:"object",properties:{tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:n.EmoteRepresentationADR74.schema,minItems:1},category:a.EmoteCategory.schema,loop:{type:"boolean"}},required:["category","tags","representations","loop"],additionalProperties:!0},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.EmoteDataADR74||(e.EmoteDataADR74={}))})(oE)),oE}var Tj;function pz(){return Tj||(Tj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Emote=void 0;const a=Tk(),t=nt(),n=_k(),i=f0(),o=p0(),u=wk();(function(c){c.schema={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({},n.baseItemProperties),i.standardProperties),o.thirdPartyProps),{emoteDataADR74:u.EmoteDataADR74.schema}),additionalProperties:!0,required:[...n.requiredBaseItemProps],oneOf:[{required:["emoteDataADR74"],oneOf:[{required:["collectionAddress","rarity"],prohibited:["merkleProof","content"],errorMessage:"standard properties conditions are not met"},{required:["merkleProof","content","id","name","description","i18n","image","thumbnail","emoteDataADR74"],_isThirdParty:!0,prohibited:["collectionAddress","rarity"],errorMessage:"thirdparty properties conditions are not met"}],errorMessage:{oneOf:"emote should have either standard or thirdparty properties"}}],errorMessage:{oneOf:'emote should have "emoteDataADR74" and match its schema'}};const f={keyword:"_isThirdParty",validate:(p,y)=>!p||(0,a.isThirdParty)(y),errors:!1};c.validate=(0,t.generateLazyValidator)(c.schema,[f])})(e.Emote||(e.Emote={}))})(aE)),aE}var lE={},Sj;function yz(){return Sj||(Sj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmotePlayMode=void 0;const a=nt();(function(t){t.SIMPLE="simple",t.LOOP="loop"})(e.EmotePlayMode||(e.EmotePlayMode={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.EmotePlayMode||(e.EmotePlayMode={}))})(lE)),lE}var Oj;function mz(){return Oj||(Oj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmotePlayMode=e.EmoteCategory=e.EmoteDataADR74=e.EmoteRepresentationADR74=e.Emote=void 0;var a=pz();Object.defineProperty(e,"Emote",{enumerable:!0,get:function(){return a.Emote}});var t=bk();Object.defineProperty(e,"EmoteRepresentationADR74",{enumerable:!0,get:function(){return t.EmoteRepresentationADR74}});var n=wk();Object.defineProperty(e,"EmoteDataADR74",{enumerable:!0,get:function(){return n.EmoteDataADR74}});var i=Ek();Object.defineProperty(e,"EmoteCategory",{enumerable:!0,get:function(){return i.EmoteCategory}});var o=yz();Object.defineProperty(e,"EmotePlayMode",{enumerable:!0,get:function(){return o.EmotePlayMode}})})(iE)),iE}var Aj;function Tk(){return Aj||(Aj=1,(function(e){var a=Yo&&Yo.__createBinding||(Object.create?(function(p,y,m,g){g===void 0&&(g=m);var S=Object.getOwnPropertyDescriptor(y,m);(!S||("get"in S?!y.__esModule:S.writable||S.configurable))&&(S={enumerable:!0,get:function(){return y[m]}}),Object.defineProperty(p,g,S)}):(function(p,y,m,g){g===void 0&&(g=m),p[g]=y[m]})),t=Yo&&Yo.__exportStar||function(p,y){for(var m in p)m!=="default"&&!Object.prototype.hasOwnProperty.call(y,m)&&a(y,p,m)};Object.defineProperty(e,"__esModule",{value:!0}),e.isThirdParty=e.isStandard=e.BodyShape=e.Metrics=e.Locale=e.I18N=void 0;var n=hk();Object.defineProperty(e,"I18N",{enumerable:!0,get:function(){return n.I18N}});var i=mk();Object.defineProperty(e,"Locale",{enumerable:!0,get:function(){return i.Locale}});var o=gk();Object.defineProperty(e,"Metrics",{enumerable:!0,get:function(){return o.Metrics}});var u=u0();Object.defineProperty(e,"BodyShape",{enumerable:!0,get:function(){return u.BodyShape}});var c=f0();Object.defineProperty(e,"isStandard",{enumerable:!0,get:function(){return c.isStandard}});var f=p0();Object.defineProperty(e,"isThirdParty",{enumerable:!0,get:function(){return f.isThirdParty}}),t(fz(),e),t(mz(),e)})(Yo)),Yo}var Xo={},Pj;function hz(){return Pj||(Pj=1,(function(e){var a=Xo&&Xo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Xo&&Xo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(vk(),e)})(Xo)),Xo}var cE={},dE={},Ij;function y0(){return Ij||(Ij=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AuthChain=e.AuthLink=e.AuthLinkType=void 0;const a=nt();var t;(function(i){i.SIGNER="SIGNER",i.ECDSA_PERSONAL_EPHEMERAL="ECDSA_EPHEMERAL",i.ECDSA_PERSONAL_SIGNED_ENTITY="ECDSA_SIGNED_ENTITY",i.ECDSA_EIP_1654_EPHEMERAL="ECDSA_EIP_1654_EPHEMERAL",i.ECDSA_EIP_1654_SIGNED_ENTITY="ECDSA_EIP_1654_SIGNED_ENTITY"})(t=e.AuthLinkType||(e.AuthLinkType={}));var n;(function(i){i.schema={type:"object",properties:{type:{type:"string",enum:Object.values(t)},payload:{type:"string"},signature:{type:"string",nullable:!0}},required:["payload","type"],if:{properties:{type:{not:{const:t.SIGNER}}}},then:{required:["signature"]},else:{oneOf:[{properties:{signature:{type:"string",const:""}},required:["signature"]},{properties:{signature:{type:"null"}}}]}},i.validate=(0,a.generateLazyValidator)(i.schema)})(n=e.AuthLink||(e.AuthLink={})),(function(i){i.schema={type:"array",items:n.schema,minItems:1},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.AuthChain||(e.AuthChain={}))})(dE)),dE}var Rj;function gz(){return Rj||(Rj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PointerChangesSyncDeployment=e.SnapshotSyncDeployment=void 0;const a=ou(),t=y0(),n=nt();(function(i){i.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},authChain:t.AuthChain.schema,entityTimestamp:{type:"number",minimum:0}},oneOf:[{properties:{entityId:a.IPFSv1.schema}},{properties:{entityId:a.IPFSv2.schema}}],required:["entityId","entityType","pointers","entityTimestamp","authChain"]},i.validate=(0,n.generateLazyValidator)(i.schema)})(e.SnapshotSyncDeployment||(e.SnapshotSyncDeployment={})),(function(i){i.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},authChain:t.AuthChain.schema,entityTimestamp:{type:"number",minimum:0},localTimestamp:{type:"number",minimum:0}},oneOf:[{properties:{entityId:a.IPFSv1.schema}},{properties:{entityId:a.IPFSv2.schema}}],required:["entityId","entityType","pointers","localTimestamp","entityTimestamp","authChain"]},i.validate=(0,n.generateLazyValidator)(i.schema)})(e.PointerChangesSyncDeployment||(e.PointerChangesSyncDeployment={}))})(cE)),cE}var fE={},pE={},Mj;function Sk(){return Mj||(Mj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ContentMapping=void 0;const a=ou(),t=nt();(function(n){n.schema={type:"object",properties:{file:{type:"string",minLength:1},hash:{type:"string",oneOf:[a.IPFSv1.schema,a.IPFSv2.schema]}},required:["file","hash"]},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.ContentMapping||(e.ContentMapping={}))})(pE)),pE}var Nj;function vz(){return Nj||(Nj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Entity=e.EntityType=void 0;const a=ou(),t=Sk(),n=nt();(function(i){i.SCENE="scene",i.PROFILE="profile",i.WEARABLE="wearable",i.STORE="store",i.EMOTE="emote",i.OUTFITS="outfits"})(e.EntityType||(e.EntityType={})),(function(i){i.schema={type:"object",properties:{version:{type:"string",enum:["v3"]},id:{type:"string",oneOf:[a.IPFSv1.schema,a.IPFSv2.schema]},type:{type:"string"},pointers:{type:"array",items:{type:"string",minLength:1}},timestamp:{type:"number",minimum:0},content:{type:"array",items:t.ContentMapping.schema},metadata:{type:"object",nullable:!0}},required:["version","id","type","pointers","timestamp","content"]},i.validate=(0,n.generateLazyValidator)(i.schema)})(e.Entity||(e.Entity={}))})(fE)),fE}var yE={},Cj;function _z(){return Cj||(Cj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DeploymentWithAuthChain=void 0;const a=y0(),t=nt();(function(n){n.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},localTimestamp:{type:"number",minimum:0},authChain:a.AuthChain.schema},required:["entityId","entityType","pointers","localTimestamp","authChain"]},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.DeploymentWithAuthChain||(e.DeploymentWithAuthChain={}))})(yE)),yE}var Jo={},mE={},jj;function Ez(){return jj||(jj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Outfits=e.Outfit=void 0;const a=as(),t=ou(),n=nt();var i;(function(o){o.schema={type:"object",required:["bodyShape","eyes","hair","skin","wearables"],properties:{bodyShape:{type:"string"},eyes:{type:"object",required:["color"],properties:{color:t.Color3.schema}},hair:{type:"object",required:["color"],properties:{color:t.Color3.schema}},skin:{type:"object",required:["color"],properties:{color:t.Color3.schema}},wearables:{type:"array",items:{type:"string"}},forceRender:{type:"array",nullable:!0,items:a.WearableCategory.schema}},additionalProperties:!0},o.validate=(0,n.generateLazyValidator)(o.schema)})(i=e.Outfit||(e.Outfit={})),(function(o){o.schema={type:"object",required:["outfits","namesForExtraSlots"],properties:{outfits:{type:"array",items:{type:"object",required:["slot","outfit"],properties:{slot:{type:"number"},outfit:i.schema}}},namesForExtraSlots:{type:"array",uniqueItems:!0,items:{type:"string"}}},additionalProperties:!0},o.validate=(0,n.generateLazyValidator)(o.schema)})(e.Outfits||(e.Outfits={}))})(mE)),mE}var Lj;function bz(){return Lj||(Lj=1,(function(e){var a=Jo&&Jo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Jo&&Jo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(Ez(),e)})(Jo)),Jo}var Dj;function m0(){return Dj||(Dj=1,(function(e){var a=Go&&Go.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Go&&Go.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(uz(),e),t(cz(),e),t(Tk(),e),t(d0(),e),t(hz(),e),t(gz(),e),t(vz(),e),t(_z(),e),t(bz(),e)})(Go)),Go}var qj;function wz(){return qj||(qj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WearableJson=void 0;const a=Tf(),t=as(),n=c0(),i=nt(),o=m0();(function(u){u.schema={type:"object",properties:{description:{type:"string"},rarity:Object.assign(Object.assign({},a.Rarity.schema),{nullable:!0}),name:{type:"string"},data:{type:"object",properties:{replaces:{type:"array",items:t.WearableCategory.schema},hides:{type:"array",items:t.WearableCategory.schema},tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:n.WearableRepresentation.schema,minItems:1},category:t.WearableCategory.schema,removesDefaultHiding:{type:"array",nullable:!0,items:o.HideableWearableCategory.schema}},required:["replaces","hides","tags","representations","category"]}},additionalProperties:!0,required:["description","name","data"]},u.validate=(0,i.generateLazyValidator)(u.schema)})(e.WearableJson||(e.WearableJson={}))})(j_)),j_}var kj;function Tz(){return kj||(kj=1,(function(e){var a=Wo&&Wo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Wo&&Wo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(oz(),e),t(wz(),e)})(Wo)),Wo}var Uj;function Sz(){return Uj||(Uj=1,(function(e){var a=Ho&&Ho.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Ho&&Ho.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(az(),e),t(Tz(),e)})(Ho)),Ho}var hE={},gE={},vE={},Bj;function Ok(){return Bj||(Bj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getChainId=e.ChainName=void 0;const a=nt(),t=pi();var n;(function(o){o.ETHEREUM_MAINNET="Ethereum Mainnet",o.ETHEREUM_ROPSTEN="Ropsten",o.ETHEREUM_RINKEBY="Rinkeby",o.ETHEREUM_GOERLI="Goerli",o.ETHEREUM_KOVAN="Kovan",o.ETHEREUM_SEPOLIA="Sepolia",o.MATIC_MAINNET="Polygon",o.MATIC_MUMBAI="Mumbai",o.AVALANCHE_MAINNET="Avalanche Mainnet",o.BINANCE_MAINNET="Binance Smart Chain Mainnet",o.ARBITRUM_MAINNET="Arbitrum One",o.OPTIMISM_MAINNET="Optimism Mainnet",o.FANTOM_MAINNET="Fantom Mainnet"})(n=e.ChainName||(e.ChainName={}));function i(o){switch(o){case n.ETHEREUM_MAINNET:return t.ChainId.ETHEREUM_MAINNET;case n.ETHEREUM_ROPSTEN:return t.ChainId.ETHEREUM_ROPSTEN;case n.ETHEREUM_RINKEBY:return t.ChainId.ETHEREUM_RINKEBY;case n.ETHEREUM_GOERLI:return t.ChainId.ETHEREUM_GOERLI;case n.ETHEREUM_KOVAN:return t.ChainId.ETHEREUM_KOVAN;case n.ETHEREUM_SEPOLIA:return t.ChainId.ETHEREUM_SEPOLIA;case n.MATIC_MAINNET:return t.ChainId.MATIC_MAINNET;case n.MATIC_MUMBAI:return t.ChainId.MATIC_MUMBAI;default:return null}}e.getChainId=i,(function(o){o.schema={type:"string",enum:Object.values(o)},o.validate=(0,a.generateLazyValidator)(o.schema)})(n=e.ChainName||(e.ChainName={}))})(vE)),vE}var _E={},Fj;function fi(){return Fj||(Fj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Network=void 0;const a=nt();(function(t){t.ETHEREUM="ETHEREUM",t.MATIC="MATIC"})(e.Network||(e.Network={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Network||(e.Network={}))})(_E)),_E}var Vj;function pi(){return Vj||(Vj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getNetwork=e.getNetworkMapping=e.getURNProtocol=e.getChainName=e.ChainId=void 0;const a=nt(),t=Ok(),n=fi();var i;(function(p){p[p.ETHEREUM_MAINNET=1]="ETHEREUM_MAINNET",p[p.ETHEREUM_ROPSTEN=3]="ETHEREUM_ROPSTEN",p[p.ETHEREUM_RINKEBY=4]="ETHEREUM_RINKEBY",p[p.ETHEREUM_GOERLI=5]="ETHEREUM_GOERLI",p[p.ETHEREUM_KOVAN=42]="ETHEREUM_KOVAN",p[p.ETHEREUM_SEPOLIA=11155111]="ETHEREUM_SEPOLIA",p[p.MATIC_MAINNET=137]="MATIC_MAINNET",p[p.MATIC_MUMBAI=80001]="MATIC_MUMBAI"})(i=e.ChainId||(e.ChainId={}));function o(p){switch(p){case i.ETHEREUM_MAINNET:return t.ChainName.ETHEREUM_MAINNET;case i.ETHEREUM_ROPSTEN:return t.ChainName.ETHEREUM_ROPSTEN;case i.ETHEREUM_RINKEBY:return t.ChainName.ETHEREUM_RINKEBY;case i.ETHEREUM_GOERLI:return t.ChainName.ETHEREUM_GOERLI;case i.ETHEREUM_KOVAN:return t.ChainName.ETHEREUM_KOVAN;case i.ETHEREUM_SEPOLIA:return t.ChainName.ETHEREUM_SEPOLIA;case i.MATIC_MAINNET:return t.ChainName.MATIC_MAINNET;case i.MATIC_MUMBAI:return t.ChainName.MATIC_MUMBAI;default:return null}}e.getChainName=o;function u(p){switch(p){case i.ETHEREUM_MAINNET:return"ethereum";case i.ETHEREUM_ROPSTEN:return"ropsten";case i.ETHEREUM_RINKEBY:return"rinkeby";case i.ETHEREUM_GOERLI:return"goerli";case i.ETHEREUM_KOVAN:return"kovan";case i.ETHEREUM_SEPOLIA:return"sepolia";case i.MATIC_MAINNET:return"matic";case i.MATIC_MUMBAI:return"mumbai";default:return""}}e.getURNProtocol=u;function c(p){switch(p){case i.ETHEREUM_MAINNET:return{[n.Network.ETHEREUM]:i.ETHEREUM_MAINNET,[n.Network.MATIC]:i.MATIC_MAINNET};case i.ETHEREUM_ROPSTEN:return{[n.Network.ETHEREUM]:i.ETHEREUM_ROPSTEN,[n.Network.MATIC]:i.MATIC_MUMBAI};case i.ETHEREUM_RINKEBY:return{[n.Network.ETHEREUM]:i.ETHEREUM_RINKEBY,[n.Network.MATIC]:i.MATIC_MUMBAI};case i.ETHEREUM_GOERLI:return{[n.Network.ETHEREUM]:i.ETHEREUM_GOERLI,[n.Network.MATIC]:i.MATIC_MUMBAI};case i.ETHEREUM_KOVAN:return{[n.Network.ETHEREUM]:i.ETHEREUM_KOVAN,[n.Network.MATIC]:i.MATIC_MUMBAI};case i.ETHEREUM_SEPOLIA:return{[n.Network.ETHEREUM]:i.ETHEREUM_SEPOLIA,[n.Network.MATIC]:i.MATIC_MUMBAI};case i.MATIC_MAINNET:return{[n.Network.ETHEREUM]:i.MATIC_MAINNET,[n.Network.MATIC]:i.MATIC_MAINNET};case i.MATIC_MUMBAI:return{[n.Network.ETHEREUM]:i.MATIC_MUMBAI,[n.Network.MATIC]:i.MATIC_MUMBAI};default:return{[n.Network.ETHEREUM]:i.ETHEREUM_MAINNET,[n.Network.MATIC]:i.MATIC_MAINNET}}}e.getNetworkMapping=c;function f(p){switch(p){case i.ETHEREUM_MAINNET:case i.ETHEREUM_ROPSTEN:case i.ETHEREUM_GOERLI:case i.ETHEREUM_KOVAN:case i.ETHEREUM_RINKEBY:case i.ETHEREUM_SEPOLIA:return n.Network.ETHEREUM;case i.MATIC_MAINNET:case i.MATIC_MUMBAI:return n.Network.MATIC}}e.getNetwork=f,(function(p){p.schema={type:"number",enum:Object.values(p)},p.validate=(0,a.generateLazyValidator)(p.schema)})(i=e.ChainId||(e.ChainId={}))})(gE)),gE}var EE={},Hj;function h0(){return Hj||(Hj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ListingStatus=void 0;const a=nt();(function(t){t.OPEN="open",t.SOLD="sold",t.CANCELLED="cancelled"})(e.ListingStatus||(e.ListingStatus={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.ListingStatus||(e.ListingStatus={}))})(EE)),EE}var zj;function Oz(){return zj||(zj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Bid=e.BidSortBy=void 0;const a=nt(),t=pi(),n=h0(),i=fi();(function(o){o.RECENTLY_OFFERED="recently_offered",o.RECENTLY_UPDATED="recently_updated",o.MOST_EXPENSIVE="most_expensive"})(e.BidSortBy||(e.BidSortBy={})),(function(o){o.schema={type:"object",properties:{id:{type:"string"},bidAddress:{type:"string"},bidder:{type:"string"},seller:{type:"string"},price:{type:"string"},fingerprint:{type:"string"},status:n.ListingStatus.schema,blockchainId:{type:"string"},blockNumber:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},network:i.Network.schema,chainId:t.ChainId.schema,expiresAt:{type:"integer"},createdAt:{type:"integer"},updatedAt:{type:"integer"}},required:["id","bidAddress","bidder","seller","price","fingerprint","status","blockchainId","blockNumber","contractAddress","tokenId","network","chainId","expiresAt","createdAt","updatedAt"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.Bid||(e.Bid={}))})(hE)),hE}var bE={},Wj;function Az(){return Wj||(Wj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Account=e.AccountSortBy=void 0;const a=nt();(function(t){t.MOST_SALES="most_sales",t.MOST_PURCHASES="most_purchases",t.MOST_SPENT="most_spent",t.MOST_EARNED="most_earned",t.MOST_ROYALTIES="most_royalties",t.MOST_COLLECTIONS="most_collections"})(e.AccountSortBy||(e.AccountSortBy={})),(function(t){t.schema={type:"object",properties:{id:{type:"string"},address:{type:"string"},sales:{type:"integer"},purchases:{type:"integer"},spent:{type:"string"},earned:{type:"string"},royalties:{type:"string"},collections:{type:"number"}},required:["id","address","sales","purchases","spent","earned","royalties","collections"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Account||(e.Account={}))})(bE)),bE}var wE={},Gj;function Pz(){return Gj||(Gj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Collection=e.CollectionSortBy=void 0;const a=nt(),t=pi(),n=fi();(function(i){i.NEWEST="newest",i.NAME="name",i.RECENTLY_REVIEWED="recently_reviewed",i.RECENTLY_LISTED="recently_listed",i.SIZE="size"})(e.CollectionSortBy||(e.CollectionSortBy={})),(function(i){i.schema={type:"object",properties:{urn:{type:"string"},creator:{type:"string"},name:{type:"string"},contractAddress:{type:"string"},size:{type:"integer"},isOnSale:{type:"boolean"},createdAt:{type:"integer"},updatedAt:{type:"integer"},reviewedAt:{type:"integer"},network:n.Network.schema,chainId:t.ChainId.schema,firstListedAt:{type:"integer",nullable:!0}},required:["urn","creator","name","contractAddress","isOnSale","size","createdAt","updatedAt","reviewedAt","network","chainId"]},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.Collection||(e.Collection={}))})(wE)),wE}var TE={},SE={},Kj;function Sf(){return Kj||(Kj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NFTCategory=void 0;const a=nt();(function(t){t.PARCEL="parcel",t.ESTATE="estate",t.WEARABLE="wearable",t.ENS="ens",t.EMOTE="emote"})(e.NFTCategory||(e.NFTCategory={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.NFTCategory||(e.NFTCategory={}))})(SE)),SE}var Yj;function Iz(){return Yj||(Yj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Contract=e.ContractSortBy=void 0;const a=nt(),t=pi(),n=fi(),i=Sf();(function(o){o.NAME="name"})(e.ContractSortBy||(e.ContractSortBy={})),(function(o){o.schema={type:"object",properties:{name:{type:"string"},address:{type:"string"},category:i.NFTCategory.schema,network:n.Network.schema,chainId:t.ChainId.schema},required:["name","address","category","network","chainId"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.Contract||(e.Contract={}))})(TE)),TE}var OE={},AE={},Xj;function Ak(){return Xj||(Xj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NFT=e.NFTSortBy=void 0;const a=nt(),t=pi(),n=m0(),i=fi(),o=Sf(),u=Tf(),c=as();(function(f){f.NAME="name",f.NEWEST="newest",f.RECENTLY_LISTED="recently_listed",f.RECENTLY_SOLD="recently_sold",f.CHEAPEST="cheapest",f.RENTAL_LISTING_DATE="rental_listing_date",f.RENTAL_DATE="rented_date",f.MAX_RENTAL_PRICE="max_rental_price",f.MIN_RENTAL_PRICE="min_rental_price"})(e.NFTSortBy||(e.NFTSortBy={})),(function(f){f.schema={type:"object",properties:{id:{type:"string"},tokenId:{type:"string"},contractAddress:{type:"string"},activeOrderId:{type:"string",nullable:!0},openRentalId:{type:"string",nullable:!0},owner:{type:"string"},name:{type:"string"},image:{type:"string"},url:{type:"string"},data:{type:"object",nullable:!1,properties:{parcel:{type:"object",properties:{description:{type:["string"],nullable:!0},x:{type:"string"},y:{type:"string"},estate:{type:"object",properties:{tokenId:{type:"string"},name:{type:"string"}},required:["tokenId","name"],nullable:!0}},required:["description","x","y","estate"],nullable:!0},estate:{type:"object",properties:{description:{type:["string"],nullable:!0},size:{type:"integer"},parcels:{type:"array",items:{type:"object",properties:{x:{type:"number"},y:{type:"number"}},required:["x","y"]}}},required:["description","size","parcels"],nullable:!0},wearable:{type:"object",properties:{bodyShapes:{type:"array",items:n.BodyShape.schema},category:c.WearableCategory.schema,description:{type:"string"},rarity:u.Rarity.schema,isSmart:{type:"boolean"}},required:["bodyShapes","category","description","rarity","isSmart"],nullable:!0},ens:{type:"object",properties:{subdomain:{type:"string"}},required:["subdomain"],nullable:!0},emote:{type:"object",properties:{bodyShapes:{type:"array",items:n.BodyShape.schema},category:n.EmoteCategory.schema,description:{type:"string"},rarity:u.Rarity.schema,loop:{type:"boolean"},hasSound:{type:"boolean"},hasGeometry:{type:"boolean"}},required:["bodyShapes","category","description","rarity","loop"],nullable:!0}},required:[]},issuedId:{type:"string",nullable:!0},itemId:{type:"string",nullable:!0},category:o.NFTCategory.schema,network:i.Network.schema,chainId:t.ChainId.schema,createdAt:{type:"integer"},updatedAt:{type:"integer"},soldAt:{type:"integer"},urn:{type:"string",nullable:!0}},required:["id","tokenId","contractAddress","activeOrderId","openRentalId","owner","name","image","url","data","issuedId","itemId","category","network","chainId","createdAt","updatedAt","soldAt"]},f.validate=(0,a.generateLazyValidator)(f.schema)})(e.NFT||(e.NFT={}))})(AE)),AE}var Jj;function Rz(){return Jj||(Jj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Item=e.ItemSortBy=void 0;const a=nt(),t=pi(),n=fi(),i=Ak(),o=Sf();(function(u){u.NAME="name",u.NEWEST="newest",u.RECENTLY_REVIEWED="recently_reviewed",u.RECENTLY_SOLD="recently_sold",u.RECENTLY_LISTED="recently_listed",u.CHEAPEST="cheapest"})(e.ItemSortBy||(e.ItemSortBy={})),(function(u){u.schema={type:"object",properties:{id:{type:"string"},name:{type:"string"},thumbnail:{type:"string"},url:{type:"string"},category:o.NFTCategory.schema,contractAddress:{type:"string"},itemId:{type:"string"},rarity:{type:"string"},price:{type:"string"},available:{type:"integer"},isOnSale:{type:"boolean"},creator:{type:"string"},beneficiary:{type:"string",nullable:!0},data:i.NFT.schema.properties.data,network:n.Network.schema,chainId:t.ChainId.schema,urn:{type:"string"},createdAt:{type:"integer"},updatedAt:{type:"integer"},reviewedAt:{type:"integer"},soldAt:{type:"integer"},firstListedAt:{type:"integer",nullable:!0},picks:{type:"object",properties:{pickedByUser:{type:"boolean",nullable:!0},count:{type:"integer"}},required:["count"],nullable:!0},minPrice:{type:"string",nullable:!0},minListingPrice:{type:"string",nullable:!0},maxListingPrice:{type:"string",nullable:!0},listings:{type:"integer",nullable:!0},owners:{type:"integer",nullable:!0}},required:["id","name","thumbnail","url","category","contractAddress","itemId","rarity","price","available","isOnSale","creator","data","network","chainId","createdAt","updatedAt","soldAt"]},u.validate=(0,a.generateLazyValidator)(u.schema)})(e.Item||(e.Item={}))})(OE)),OE}var PE={},Qj;function Mz(){return Qj||(Qj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MetaTransaction=void 0;const a=nt();(function(t){t.schema={type:"object",properties:{from:{type:"string"},params:{type:"array",items:[{type:"string"},{type:"string"}],additionalItems:!1,minItems:2}},additionalProperties:!1,required:["from","params"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.MetaTransaction||(e.MetaTransaction={}))})(PE)),PE}var IE={},Zj;function Nz(){return Zj||(Zj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Mint=e.MintSortBy=void 0;const a=nt(),t=pi(),n=fi();(function(i){i.RECENTLY_MINTED="recently_minted",i.MOST_EXPENSIVE="most_expensive"})(e.MintSortBy||(e.MintSortBy={})),(function(i){i.schema={type:"object",properties:{id:{type:"string"},creator:{type:"string"},beneficiary:{type:"string"},minter:{type:"string"},price:{type:"string",nullable:!0},contractAddress:{type:"string"},tokenId:{type:"string"},itemId:{type:"string"},issuedId:{type:"string"},timestamp:{type:"integer"},network:n.Network.schema,chainId:t.ChainId.schema},required:["id","creator","beneficiary","minter","itemId","tokenId","issuedId","contractAddress","price","timestamp","network","chainId"]},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.Mint||(e.Mint={}))})(IE)),IE}var RE={},$j;function Cz(){return $j||($j=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CatalogSortDirection=e.CatalogSortBy=void 0,(function(a){a.NEWEST="newest",a.RECENTLY_SOLD="recently_sold",a.CHEAPEST="cheapest",a.MOST_EXPENSIVE="most_expensive",a.RECENTLY_LISTED="recently_listed"})(e.CatalogSortBy||(e.CatalogSortBy={})),(function(a){a.ASC="asc",a.DESC="desc"})(e.CatalogSortDirection||(e.CatalogSortDirection={}))})(RE)),RE}var ME={},xj;function jz(){return xj||(xj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Order=e.OrderSortBy=void 0;const a=nt(),t=pi(),n=h0(),i=fi();(function(o){o.RECENTLY_LISTED="recently_listed",o.RECENTLY_UPDATED="recently_updated",o.CHEAPEST="cheapest",o.ISSUED_ID_ASC="issued_id_asc",o.ISSUED_ID_DESC="issued_id_desc",o.OLDEST="oldest"})(e.OrderSortBy||(e.OrderSortBy={})),(function(o){o.schema={type:"object",properties:{id:{type:"string"},marketplaceAddress:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},owner:{type:"string"},buyer:{type:["string"],nullable:!0},price:{type:"string"},status:n.ListingStatus.schema,network:i.Network.schema,chainId:t.ChainId.schema,expiresAt:{type:"integer"},createdAt:{type:"integer"},updatedAt:{type:"integer"},issuedId:{type:"string"}},required:["id","marketplaceAddress","contractAddress","tokenId","owner","buyer","price","status","network","chainId","expiresAt","createdAt","updatedAt"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.Order||(e.Order={}))})(ME)),ME}var NE={},eL;function Lz(){return eL||(eL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProviderType=void 0;const a=nt();(function(t){t.INJECTED="injected",t.MAGIC="magic",t.FORTMATIC="formatic",t.NETWORK="network",t.WALLET_CONNECT="wallet_connect",t.WALLET_CONNECT_V2="wallet_connect_v2",t.WALLET_LINK="wallet_link",t.METAMASK_MOBILE="metamask_mobile",t.AUTH_SERVER="auth_server"})(e.ProviderType||(e.ProviderType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.ProviderType||(e.ProviderType={}))})(NE)),NE}var CE={},tL;function Pk(){return tL||(tL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SaleType=void 0;const a=nt();(function(t){t.ORDER="order",t.BID="bid",t.MINT="mint"})(e.SaleType||(e.SaleType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.SaleType||(e.SaleType={}))})(CE)),CE}var jE={},rL;function Dz(){return rL||(rL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Sale=e.SaleSortBy=void 0;const a=nt(),t=pi(),n=Pk(),i=fi();(function(o){o.RECENTLY_SOLD="recently_sold",o.MOST_EXPENSIVE="most_expensive"})(e.SaleSortBy||(e.SaleSortBy={})),(function(o){o.schema={type:"object",properties:{id:{type:"string"},type:n.SaleType.schema,buyer:{type:"string"},seller:{type:"string"},price:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},itemId:{type:"string"},txHash:{type:"string"},timestamp:{type:"integer"},network:i.Network.schema,chainId:t.ChainId.schema},required:["id","buyer","seller","itemId","tokenId","price","contractAddress","timestamp","txHash","network","chainId"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.Sale||(e.Sale={}))})(jE)),jE}var LE={},nL;function qz(){return nL||(nL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.RentalListingCreation=e.PeriodCreation=e.RentalsListingsSortBy=e.RentalsListingsFilterByCategory=e.RentalsListingSortDirection=e.RentalStatus=void 0;const a=nt(),t=pi(),n=fi();(function(o){o.OPEN="open",o.CANCELLED="cancelled",o.EXECUTED="executed",o.CLAIMED="claimed"})(e.RentalStatus||(e.RentalStatus={})),(function(o){o.ASC="asc",o.DESC="desc"})(e.RentalsListingSortDirection||(e.RentalsListingSortDirection={})),(function(o){o.PARCEL="parcel",o.ESTATE="estate"})(e.RentalsListingsFilterByCategory||(e.RentalsListingsFilterByCategory={})),(function(o){o.LAND_CREATION_DATE="land_creation_date",o.RENTAL_LISTING_DATE="rental_listing_date",o.RENTAL_DATE="rented_date",o.NAME="name",o.MAX_RENTAL_PRICE="max_rental_price",o.MIN_RENTAL_PRICE="min_rental_price"})(e.RentalsListingsSortBy||(e.RentalsListingsSortBy={}));var i;(function(o){o.schema={type:"object",properties:{minDays:{type:"integer",minimum:0,maximum:2147483647},maxDays:{type:"integer",minimum:0,maximum:2147483647},pricePerDay:{type:"string",pattern:"^[0-9]+$"}},additionalProperties:!1,required:["minDays","maxDays","pricePerDay"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(i=e.PeriodCreation||(e.PeriodCreation={})),(function(o){o.schema={type:"object",properties:{network:n.Network.schema,chainId:t.ChainId.schema,expiration:{type:"number",minimum:0},signature:{type:"string",minLength:1},tokenId:{type:"string",minLength:1},nonces:{type:"array",minItems:3,maxItems:3,items:{minLength:1,type:"string",pattern:"^[0-9]+$"}},contractAddress:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"},rentalContractAddress:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"},periods:{type:"array",minItems:1,maxItems:100,uniqueItems:!0,items:i.schema},target:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"}},additionalProperties:!1,required:["network","chainId","expiration","signature","nonces","tokenId","contractAddress","rentalContractAddress","periods","target"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.RentalListingCreation||(e.RentalListingCreation={}))})(LE)),LE}var DE={},iL;function kz(){return iL||(iL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AnalyticsDayDataSortBy=void 0,(function(a){a.DATE="date",a.MOST_SALES="most_sales"})(e.AnalyticsDayDataSortBy||(e.AnalyticsDayDataSortBy={}))})(DE)),DE}var qE={},aL;function Uz(){return aL||(aL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Store=void 0;const a=nt();(function(t){t.schema={type:"object",properties:{id:{type:"string"},version:{type:"number"},owner:{type:"string"},description:{type:"string"},links:{type:"array",items:{type:"object",properties:{name:{type:"string"},url:{type:"string"}},required:["name","url"]}},images:{type:"array",items:{type:"object",properties:{name:{type:"string"},file:{type:"string"}},required:["name","file"]}}},required:["id","version","owner","description","links","images"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Store||(e.Store={}))})(qE)),qE}var kE={},oL;function Bz(){return oL||(oL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.GenderFilterOption=e.WearableGender=void 0;const a=nt();(function(t){t.MALE="male",t.FEMALE="female"})(e.WearableGender||(e.WearableGender={})),(function(t){t.MALE="male",t.FEMALE="female",t.UNISEX="unisex"})(e.GenderFilterOption||(e.GenderFilterOption={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.WearableGender||(e.WearableGender={}))})(kE)),kE}var UE={},sL;function Fz(){return sL||(sL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.World=e.isInsideWorldLimits=e.getWorld=void 0;const a=nt();function t(){return{validWorldRanges:[{xMin:-150,yMin:-150,xMax:150,yMax:150},{xMin:62,yMin:151,xMax:162,yMax:158},{xMin:151,yMin:144,xMax:162,yMax:150},{xMin:151,yMin:59,xMax:163,yMax:143}]}}e.getWorld=t;function n(i,o){const u=t().validWorldRanges;for(const c of u)if(i>=c.xMin&&i<=c.xMax&&o>=c.yMin&&o<=c.yMax)return!0;return!1}e.isInsideWorldLimits=n,(function(i){i.schema={type:"object",required:["validWorldRanges"],properties:{validWorldRanges:{type:"array",default:[{xMin:-150,yMin:-150,xMax:150,yMax:150}],items:{type:"object",required:["xMin","yMin","xMax","yMax"],properties:{xMin:{type:"integer"},yMin:{type:"integer"},xMax:{type:"integer"},yMax:{type:"integer"}}}}},additionalProperties:!1},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.World||(e.World={}))})(UE)),UE}var Qo={},BE={},uL;function Vz(){return uL||(uL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewCamera=void 0;const a=nt();(function(t){t.STATIC="static",t.INTERACTIVE="interactive"})(e.PreviewCamera||(e.PreviewCamera={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewCamera||(e.PreviewCamera={}))})(BE)),BE}var FE={},lL;function Hz(){return lL||(lL=1,Object.defineProperty(FE,"__esModule",{value:!0})),FE}var VE={},cL;function zz(){return cL||(cL=1,Object.defineProperty(VE,"__esModule",{value:!0})),VE}var HE={},dL;function Wz(){return dL||(dL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewEmoteEventType=void 0;const a=nt();(function(t){t.ANIMATION_PLAY="animation_play",t.ANIMATION_PAUSE="animation_pause",t.ANIMATION_LOOP="animation_loop",t.ANIMATION_END="animation_end",t.ANIMATION_PLAYING="animation_playing"})(e.PreviewEmoteEventType||(e.PreviewEmoteEventType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewEmoteEventType||(e.PreviewEmoteEventType={}))})(HE)),HE}var zE={},fL;function Gz(){return fL||(fL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewEmote=void 0;const a=nt();(function(t){t.IDLE="idle",t.WALK="walk",t.RUN="run",t.JUMP="jump",t.CLAP="clap",t.DAB="dab",t.DANCE="dance",t.FASHION="fashion",t.FASHION_2="fashion-2",t.FASHION_3="fashion-3",t.FASHION_4="fashion-4",t.LOVE="love",t.MONEY="money",t.FIST_PUMP="fist-pump",t.HEAD_EXPLODE="head-explode",t.WAVE="wave"})(e.PreviewEmote||(e.PreviewEmote={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewEmote||(e.PreviewEmote={}))})(zE)),zE}var WE={},pL;function Kz(){return pL||(pL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.sendMessage=e.PreviewMessageType=void 0;const a=nt();(function(n){n.READY="ready",n.LOAD="load",n.ERROR="error",n.UPDATE="update",n.CONTROLLER_REQUEST="controller_request",n.CONTROLLER_RESPONSE="controller_response",n.EMOTE_EVENT="emote_event"})(e.PreviewMessageType||(e.PreviewMessageType={})),(function(n){n.schema={type:"string",enum:Object.values(n)},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.PreviewMessageType||(e.PreviewMessageType={}));const t=(n,i,o,u="*")=>{const c={type:i,payload:o};n.postMessage(c,u)};e.sendMessage=t})(WE)),WE}var GE={},yL;function Yz(){return yL||(yL=1,Object.defineProperty(GE,"__esModule",{value:!0})),GE}var KE={},mL;function Xz(){return mL||(mL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewProjection=void 0;const a=nt();(function(t){t.ORTHOGRAPHIC="orthographic",t.PERSPECTIVE="perspective"})(e.PreviewProjection||(e.PreviewProjection={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewProjection||(e.PreviewProjection={}))})(KE)),KE}var YE={},hL;function Jz(){return hL||(hL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewType=void 0;const a=nt();(function(t){t.TEXTURE="texture",t.WEARABLE="wearable",t.AVATAR="avatar"})(e.PreviewType||(e.PreviewType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewType||(e.PreviewType={}))})(YE)),YE}var XE={},gL;function Qz(){return gL||(gL=1,Object.defineProperty(XE,"__esModule",{value:!0})),XE}var JE={},vL;function Zz(){return vL||(vL=1,Object.defineProperty(JE,"__esModule",{value:!0})),JE}var QE={},_L;function $z(){return _L||(_L=1,Object.defineProperty(QE,"__esModule",{value:!0})),QE}var ZE={},EL;function xz(){return EL||(EL=1,Object.defineProperty(ZE,"__esModule",{value:!0})),ZE}var $E={},bL;function e5(){return bL||(bL=1,Object.defineProperty($E,"__esModule",{value:!0})),$E}var xE={},wL;function t5(){return wL||(wL=1,Object.defineProperty(xE,"__esModule",{value:!0})),xE}var eb={},TL;function r5(){return TL||(TL=1,Object.defineProperty(eb,"__esModule",{value:!0})),eb}var tb={},SL;function n5(){return SL||(SL=1,Object.defineProperty(tb,"__esModule",{value:!0})),tb}var OL;function i5(){return OL||(OL=1,(function(e){var a=Qo&&Qo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Qo&&Qo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(Vz(),e),t(Hz(),e),t(zz(),e),t(Wz(),e),t(Gz(),e),t(Kz(),e),t(Yz(),e),t(Xz(),e),t(Jz(),e),t(Qz(),e),t(Zz(),e),t($z(),e),t(xz(),e),t(e5(),e),t(t5(),e),t(r5(),e),t(n5(),e)})(Qo)),Qo}var rb={},AL;function a5(){return AL||(AL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LinkerAuthorization=void 0;const a=nt();(function(t){t.schema={type:"object",properties:{name:{type:"string"},desc:{type:"string"},startDate:{type:"string",nullable:!0},endDate:{type:"string",nullable:!0},contactInfo:{type:"object",properties:{name:{type:"string"}},required:["name"]},addresses:{type:"array",items:{type:"string"},minItems:1},plots:{type:"array",items:{type:"string"},minItems:1}},required:["name","desc","contactInfo","addresses","plots"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.LinkerAuthorization||(e.LinkerAuthorization={}))})(rb)),rb}var PL;function o5(){return PL||(PL=1,(function(e){var a=ni&&ni.__createBinding||(Object.create?(function(ye,Me,Ne,qe){qe===void 0&&(qe=Ne);var we=Object.getOwnPropertyDescriptor(Me,Ne);(!we||("get"in we?!Me.__esModule:we.writable||we.configurable))&&(we={enumerable:!0,get:function(){return Me[Ne]}}),Object.defineProperty(ye,qe,we)}):(function(ye,Me,Ne,qe){qe===void 0&&(qe=Ne),ye[qe]=Me[Ne]})),t=ni&&ni.__setModuleDefault||(Object.create?(function(ye,Me){Object.defineProperty(ye,"default",{enumerable:!0,value:Me})}):function(ye,Me){ye.default=Me}),n=ni&&ni.__importStar||function(ye){if(ye&&ye.__esModule)return ye;var Me={};if(ye!=null)for(var Ne in ye)Ne!=="default"&&Object.prototype.hasOwnProperty.call(ye,Ne)&&a(Me,ye,Ne);return t(Me,ye),Me},i=ni&&ni.__exportStar||function(ye,Me){for(var Ne in ye)Ne!=="default"&&!Object.prototype.hasOwnProperty.call(Me,Ne)&&a(Me,ye,Ne)};Object.defineProperty(e,"__esModule",{value:!0}),e.sdk=e.isInsideWorldLimits=e.getWorld=e.World=e.GenderFilterOption=e.WearableGender=e.Store=e.AnalyticsDayDataSortBy=e.PeriodCreation=e.RentalListingCreation=e.RentalsListingsSortBy=e.RentalsListingsFilterByCategory=e.RentalsListingSortDirection=e.RentalStatus=e.SaleSortBy=e.Sale=e.SaleType=e.Rarity=e.ProviderType=e.OrderSortBy=e.Order=e.CatalogSortDirection=e.CatalogSortBy=e.NFTSortBy=e.NFT=e.NFTCategory=e.Network=e.MintSortBy=e.Mint=e.MetaTransaction=e.ListingStatus=e.ItemSortBy=e.Item=e.ContractSortBy=e.Contract=e.CollectionSortBy=e.Collection=e.getChainId=e.ChainName=e.getURNProtocol=e.getChainName=e.ChainId=e.AccountSortBy=e.Account=e.BidSortBy=e.Bid=void 0;const o=n(Sz());e.sdk=o,i(nt(),e);var u=Oz();Object.defineProperty(e,"Bid",{enumerable:!0,get:function(){return u.Bid}}),Object.defineProperty(e,"BidSortBy",{enumerable:!0,get:function(){return u.BidSortBy}});var c=Az();Object.defineProperty(e,"Account",{enumerable:!0,get:function(){return c.Account}}),Object.defineProperty(e,"AccountSortBy",{enumerable:!0,get:function(){return c.AccountSortBy}});var f=pi();Object.defineProperty(e,"ChainId",{enumerable:!0,get:function(){return f.ChainId}}),Object.defineProperty(e,"getChainName",{enumerable:!0,get:function(){return f.getChainName}}),Object.defineProperty(e,"getURNProtocol",{enumerable:!0,get:function(){return f.getURNProtocol}});var p=Ok();Object.defineProperty(e,"ChainName",{enumerable:!0,get:function(){return p.ChainName}}),Object.defineProperty(e,"getChainId",{enumerable:!0,get:function(){return p.getChainId}});var y=Pz();Object.defineProperty(e,"Collection",{enumerable:!0,get:function(){return y.Collection}}),Object.defineProperty(e,"CollectionSortBy",{enumerable:!0,get:function(){return y.CollectionSortBy}});var m=Iz();Object.defineProperty(e,"Contract",{enumerable:!0,get:function(){return m.Contract}}),Object.defineProperty(e,"ContractSortBy",{enumerable:!0,get:function(){return m.ContractSortBy}});var g=Rz();Object.defineProperty(e,"Item",{enumerable:!0,get:function(){return g.Item}}),Object.defineProperty(e,"ItemSortBy",{enumerable:!0,get:function(){return g.ItemSortBy}});var S=h0();Object.defineProperty(e,"ListingStatus",{enumerable:!0,get:function(){return S.ListingStatus}});var M=Mz();Object.defineProperty(e,"MetaTransaction",{enumerable:!0,get:function(){return M.MetaTransaction}});var R=Nz();Object.defineProperty(e,"Mint",{enumerable:!0,get:function(){return R.Mint}}),Object.defineProperty(e,"MintSortBy",{enumerable:!0,get:function(){return R.MintSortBy}});var I=fi();Object.defineProperty(e,"Network",{enumerable:!0,get:function(){return I.Network}});var N=Sf();Object.defineProperty(e,"NFTCategory",{enumerable:!0,get:function(){return N.NFTCategory}});var E=Ak();Object.defineProperty(e,"NFT",{enumerable:!0,get:function(){return E.NFT}}),Object.defineProperty(e,"NFTSortBy",{enumerable:!0,get:function(){return E.NFTSortBy}});var P=Cz();Object.defineProperty(e,"CatalogSortBy",{enumerable:!0,get:function(){return P.CatalogSortBy}}),Object.defineProperty(e,"CatalogSortDirection",{enumerable:!0,get:function(){return P.CatalogSortDirection}});var T=jz();Object.defineProperty(e,"Order",{enumerable:!0,get:function(){return T.Order}}),Object.defineProperty(e,"OrderSortBy",{enumerable:!0,get:function(){return T.OrderSortBy}});var v=Lz();Object.defineProperty(e,"ProviderType",{enumerable:!0,get:function(){return v.ProviderType}});var O=Tf();Object.defineProperty(e,"Rarity",{enumerable:!0,get:function(){return O.Rarity}});var C=Pk();Object.defineProperty(e,"SaleType",{enumerable:!0,get:function(){return C.SaleType}});var z=Dz();Object.defineProperty(e,"Sale",{enumerable:!0,get:function(){return z.Sale}}),Object.defineProperty(e,"SaleSortBy",{enumerable:!0,get:function(){return z.SaleSortBy}});var U=qz();Object.defineProperty(e,"RentalStatus",{enumerable:!0,get:function(){return U.RentalStatus}}),Object.defineProperty(e,"RentalsListingSortDirection",{enumerable:!0,get:function(){return U.RentalsListingSortDirection}}),Object.defineProperty(e,"RentalsListingsFilterByCategory",{enumerable:!0,get:function(){return U.RentalsListingsFilterByCategory}}),Object.defineProperty(e,"RentalsListingsSortBy",{enumerable:!0,get:function(){return U.RentalsListingsSortBy}}),Object.defineProperty(e,"RentalListingCreation",{enumerable:!0,get:function(){return U.RentalListingCreation}}),Object.defineProperty(e,"PeriodCreation",{enumerable:!0,get:function(){return U.PeriodCreation}});var K=kz();Object.defineProperty(e,"AnalyticsDayDataSortBy",{enumerable:!0,get:function(){return K.AnalyticsDayDataSortBy}});var ae=Uz();Object.defineProperty(e,"Store",{enumerable:!0,get:function(){return ae.Store}});var _e=Bz();Object.defineProperty(e,"WearableGender",{enumerable:!0,get:function(){return _e.WearableGender}}),Object.defineProperty(e,"GenderFilterOption",{enumerable:!0,get:function(){return _e.GenderFilterOption}});var be=Fz();Object.defineProperty(e,"World",{enumerable:!0,get:function(){return be.World}}),Object.defineProperty(e,"getWorld",{enumerable:!0,get:function(){return be.getWorld}}),Object.defineProperty(e,"isInsideWorldLimits",{enumerable:!0,get:function(){return be.isInsideWorldLimits}}),i(i5(),e),i(m0(),e),i(ou(),e),i(a5(),e),i(y0(),e),i(Sk(),e)})(ni)),ni}var IL;function Ik(){return IL||(IL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AuthLink=e.AuthLinkType=e.AuthChain=void 0;const a=o5();Object.defineProperty(e,"AuthChain",{enumerable:!0,get:function(){return a.AuthChain}}),Object.defineProperty(e,"AuthLinkType",{enumerable:!0,get:function(){return a.AuthLinkType}}),Object.defineProperty(e,"AuthLink",{enumerable:!0,get:function(){return a.AuthLink}})})(R_)),R_}var Qu={},RL;function s5(){if(RL)return Qu;RL=1,Object.defineProperty(Qu,"__esModule",{value:!0}),Qu.moveMinutes=void 0;function e(a){const t=new Date;return t.setMinutes(t.getMinutes()+a),t}return Qu.moveMinutes=e,Qu}var Gd={},ML;function u5(){if(ML)return Gd;ML=1,Object.defineProperty(Gd,"__esModule",{value:!0});const e=wf();class a{constructor(n,i=!0){this.requestManager=n,this.checkedBlocks={},this.saveBlocks=i,i&&(this.savedBlocks={}),this.requests=0}async fillBlockTime(){const n=await this.getBlockWrapper("latest"),i=await this.getBlockWrapper(1);this.blockTime=(n.timestamp-i.timestamp)/Number(n.number)-1,this.firstTimestamp=i.timestamp}async getDate(n,i=!0){const o=n/1e3,u=Date.now()/1e3;if((typeof this.firstTimestamp>"u"||typeof this.blockTime>"u")&&await this.fillBlockTime(),o<this.firstTimestamp)return{block:1,timestamp:o};if(o>=u||o>this.savedBlocks.latest.timestamp)return{block:(0,e.toBigNumber)(await this.requestManager.eth_blockNumber()).toNumber(),timestamp:o};this.checkedBlocks[o]=[];const c=await this.getBlockWrapper(Math.ceil((o-this.firstTimestamp/this.blockTime)/1e3));return{block:await this.findBetter(o,c,i),timestamp:o}}async findBetter(n,i,o,u=this.blockTime){if(await this.isBetterBlock(n,i,o))return i.number;const c=n-i.timestamp;let f=Math.ceil(c/u);f===0&&(f=c<0?-1:1);const p=await this.getBlockWrapper(this.getNextBlock(n,i.number,f));return u=Math.abs((i.timestamp-p.timestamp)/(i.number-p.number)),this.findBetter(n,p,o,u)}async isBetterBlock(n,i,o){const u=i.timestamp;if(o){if(u<n)return!1;const c=await this.getBlockWrapper(i.number-1);if(u>=n&&c.timestamp<n)return!0}else{if(u>=n)return!1;const c=await this.getBlockWrapper(i.number+1);if(u<n&&c.timestamp>=n)return!0}return!1}getNextBlock(n,i,o){const u=i+o;return this.checkedBlocks[n].includes(u)?this.getNextBlock(n,i,o<0?++o:--o):(this.checkedBlocks[n].push(u),u)}async getBlockWrapper(n){if(!this.saveBlocks){const o=await this.requestManager.eth_getBlockByNumber(n,!1);return{number:(0,e.toBigNumber)(o.number).toNumber(),timestamp:(0,e.toBigNumber)(o.timestamp).toNumber()}}if(this.savedBlocks[n.toString()])return this.savedBlocks[n];if(typeof n=="number"&&this.savedBlocks.latest&&this.savedBlocks.latest.number<=n)return this.savedBlocks.latest;const{timestamp:i}=await this.requestManager.eth_getBlockByNumber(n,!1);return this.savedBlocks[n.toString()]={number:(0,e.toBigNumber)(n==="latest"?await this.requestManager.eth_blockNumber():n).toNumber(),timestamp:(0,e.toBigNumber)(i).toNumber()},this.requests++,this.savedBlocks[n.toString()]}}return Gd.default=a,Gd}var Lr={},nb={},ib={},Hr={},NL;function g0(){if(NL)return Hr;NL=1,Object.defineProperty(Hr,"__esModule",{value:!0}),Hr.output=Hr.exists=Hr.hash=Hr.bytes=Hr.bool=Hr.number=void 0;function e(c){if(!Number.isSafeInteger(c)||c<0)throw new Error(`Wrong positive integer: ${c}`)}Hr.number=e;function a(c){if(typeof c!="boolean")throw new Error(`Expected boolean, not ${c}`)}Hr.bool=a;function t(c,...f){if(!(c instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(f.length>0&&!f.includes(c.length))throw new TypeError(`Expected Uint8Array of length ${f}, not of length=${c.length}`)}Hr.bytes=t;function n(c){if(typeof c!="function"||typeof c.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");e(c.outputLen),e(c.blockLen)}Hr.hash=n;function i(c,f=!0){if(c.destroyed)throw new Error("Hash instance has been destroyed");if(f&&c.finished)throw new Error("Hash#digest() has already been called")}Hr.exists=i;function o(c,f){t(c);const p=f.outputLen;if(c.length<p)throw new Error(`digestInto() expects output buffer of length at least ${p}`)}Hr.output=o;const u={number:e,bool:a,bytes:t,hash:n,exists:i,output:o};return Hr.default=u,Hr}var ab={},Zu={},CL;function l5(){return CL||(CL=1,Object.defineProperty(Zu,"__esModule",{value:!0}),Zu.crypto=void 0,Zu.crypto={node:void 0,web:typeof self=="object"&&"crypto"in self?self.crypto:void 0}),Zu}var jL;function Rl(){return jL||(jL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.randomBytes=e.wrapConstructorWithOpts=e.wrapConstructor=e.checkOpts=e.Hash=e.concatBytes=e.toBytes=e.utf8ToBytes=e.asyncLoop=e.nextTick=e.hexToBytes=e.bytesToHex=e.isLE=e.rotr=e.createView=e.u32=e.u8=void 0;const a=l5(),t=T=>new Uint8Array(T.buffer,T.byteOffset,T.byteLength);e.u8=t;const n=T=>new Uint32Array(T.buffer,T.byteOffset,Math.floor(T.byteLength/4));e.u32=n;const i=T=>new DataView(T.buffer,T.byteOffset,T.byteLength);e.createView=i;const o=(T,v)=>T<<32-v|T>>>v;if(e.rotr=o,e.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68,!e.isLE)throw new Error("Non little-endian hardware is not supported");const u=Array.from({length:256},(T,v)=>v.toString(16).padStart(2,"0"));function c(T){if(!(T instanceof Uint8Array))throw new Error("Uint8Array expected");let v="";for(let O=0;O<T.length;O++)v+=u[T[O]];return v}e.bytesToHex=c;function f(T){if(typeof T!="string")throw new TypeError("hexToBytes: expected string, got "+typeof T);if(T.length%2)throw new Error("hexToBytes: received invalid unpadded hex");const v=new Uint8Array(T.length/2);for(let O=0;O<v.length;O++){const C=O*2,z=T.slice(C,C+2),U=Number.parseInt(z,16);if(Number.isNaN(U)||U<0)throw new Error("Invalid byte sequence");v[O]=U}return v}e.hexToBytes=f;const p=async()=>{};e.nextTick=p;async function y(T,v,O){let C=Date.now();for(let z=0;z<T;z++){O(z);const U=Date.now()-C;U>=0&&U<v||(await(0,e.nextTick)(),C+=U)}}e.asyncLoop=y;function m(T){if(typeof T!="string")throw new TypeError(`utf8ToBytes expected string, got ${typeof T}`);return new TextEncoder().encode(T)}e.utf8ToBytes=m;function g(T){if(typeof T=="string"&&(T=m(T)),!(T instanceof Uint8Array))throw new TypeError(`Expected input type is Uint8Array (got ${typeof T})`);return T}e.toBytes=g;function S(...T){if(!T.every(C=>C instanceof Uint8Array))throw new Error("Uint8Array list expected");if(T.length===1)return T[0];const v=T.reduce((C,z)=>C+z.length,0),O=new Uint8Array(v);for(let C=0,z=0;C<T.length;C++){const U=T[C];O.set(U,z),z+=U.length}return O}e.concatBytes=S;class M{clone(){return this._cloneInto()}}e.Hash=M;const R=T=>Object.prototype.toString.call(T)==="[object Object]"&&T.constructor===Object;function I(T,v){if(v!==void 0&&(typeof v!="object"||!R(v)))throw new TypeError("Options should be object or undefined");return Object.assign(T,v)}e.checkOpts=I;function N(T){const v=C=>T().update(g(C)).digest(),O=T();return v.outputLen=O.outputLen,v.blockLen=O.blockLen,v.create=()=>T(),v}e.wrapConstructor=N;function E(T){const v=(C,z)=>T(z).update(g(C)).digest(),O=T({});return v.outputLen=O.outputLen,v.blockLen=O.blockLen,v.create=C=>T(C),v}e.wrapConstructorWithOpts=E;function P(T=32){if(a.crypto.web)return a.crypto.web.getRandomValues(new Uint8Array(T));if(a.crypto.node)return new Uint8Array(a.crypto.node.randomBytes(T).buffer);throw new Error("The environment doesn't have randomBytes function")}e.randomBytes=P})(ab)),ab}var LL;function c5(){return LL||(LL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.hmac=void 0;const a=g0(),t=Rl();class n extends t.Hash{constructor(u,c){super(),this.finished=!1,this.destroyed=!1,a.default.hash(u);const f=(0,t.toBytes)(c);if(this.iHash=u.create(),typeof this.iHash.update!="function")throw new TypeError("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const p=this.blockLen,y=new Uint8Array(p);y.set(f.length>p?u.create().update(f).digest():f);for(let m=0;m<y.length;m++)y[m]^=54;this.iHash.update(y),this.oHash=u.create();for(let m=0;m<y.length;m++)y[m]^=106;this.oHash.update(y),y.fill(0)}update(u){return a.default.exists(this),this.iHash.update(u),this}digestInto(u){a.default.exists(this),a.default.bytes(u,this.outputLen),this.finished=!0,this.iHash.digestInto(u),this.oHash.update(u),this.oHash.digestInto(u),this.destroy()}digest(){const u=new Uint8Array(this.oHash.outputLen);return this.digestInto(u),u}_cloneInto(u){u||(u=Object.create(Object.getPrototypeOf(this),{}));const{oHash:c,iHash:f,finished:p,destroyed:y,blockLen:m,outputLen:g}=this;return u=u,u.finished=p,u.destroyed=y,u.blockLen=m,u.outputLen=g,u.oHash=c._cloneInto(u.oHash),u.iHash=f._cloneInto(u.iHash),u}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const i=(o,u,c)=>new n(o,u).update(c).digest();e.hmac=i,e.hmac.create=(o,u)=>new n(o,u)})(ib)),ib}var Zo={},$u={},DL;function d5(){if(DL)return $u;DL=1,Object.defineProperty($u,"__esModule",{value:!0}),$u.SHA2=void 0;const e=g0(),a=Rl();function t(i,o,u,c){if(typeof i.setBigUint64=="function")return i.setBigUint64(o,u,c);const f=BigInt(32),p=BigInt(4294967295),y=Number(u>>f&p),m=Number(u&p),g=c?4:0,S=c?0:4;i.setUint32(o+g,y,c),i.setUint32(o+S,m,c)}class n extends a.Hash{constructor(o,u,c,f){super(),this.blockLen=o,this.outputLen=u,this.padOffset=c,this.isLE=f,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(o),this.view=(0,a.createView)(this.buffer)}update(o){e.default.exists(this);const{view:u,buffer:c,blockLen:f}=this;o=(0,a.toBytes)(o);const p=o.length;for(let y=0;y<p;){const m=Math.min(f-this.pos,p-y);if(m===f){const g=(0,a.createView)(o);for(;f<=p-y;y+=f)this.process(g,y);continue}c.set(o.subarray(y,y+m),this.pos),this.pos+=m,y+=m,this.pos===f&&(this.process(u,0),this.pos=0)}return this.length+=o.length,this.roundClean(),this}digestInto(o){e.default.exists(this),e.default.output(o,this),this.finished=!0;const{buffer:u,view:c,blockLen:f,isLE:p}=this;let{pos:y}=this;u[y++]=128,this.buffer.subarray(y).fill(0),this.padOffset>f-y&&(this.process(c,0),y=0);for(let R=y;R<f;R++)u[R]=0;t(c,f-8,BigInt(this.length*8),p),this.process(c,0);const m=(0,a.createView)(o),g=this.outputLen;if(g%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const S=g/4,M=this.get();if(S>M.length)throw new Error("_sha2: outputLen bigger than state");for(let R=0;R<S;R++)m.setUint32(4*R,M[R],p)}digest(){const{buffer:o,outputLen:u}=this;this.digestInto(o);const c=o.slice(0,u);return this.destroy(),c}_cloneInto(o){o||(o=new this.constructor),o.set(...this.get());const{blockLen:u,buffer:c,length:f,finished:p,destroyed:y,pos:m}=this;return o.length=f,o.pos=m,o.finished=p,o.destroyed=y,f%u&&o.buffer.set(c),o}}return $u.SHA2=n,$u}var qL;function Rk(){if(qL)return Zo;qL=1,Object.defineProperty(Zo,"__esModule",{value:!0}),Zo.sha224=Zo.sha256=void 0;const e=d5(),a=Rl(),t=(p,y,m)=>p&y^~p&m,n=(p,y,m)=>p&y^p&m^y&m,i=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),o=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),u=new Uint32Array(64);class c extends e.SHA2{constructor(){super(64,32,8,!1),this.A=o[0]|0,this.B=o[1]|0,this.C=o[2]|0,this.D=o[3]|0,this.E=o[4]|0,this.F=o[5]|0,this.G=o[6]|0,this.H=o[7]|0}get(){const{A:y,B:m,C:g,D:S,E:M,F:R,G:I,H:N}=this;return[y,m,g,S,M,R,I,N]}set(y,m,g,S,M,R,I,N){this.A=y|0,this.B=m|0,this.C=g|0,this.D=S|0,this.E=M|0,this.F=R|0,this.G=I|0,this.H=N|0}process(y,m){for(let T=0;T<16;T++,m+=4)u[T]=y.getUint32(m,!1);for(let T=16;T<64;T++){const v=u[T-15],O=u[T-2],C=(0,a.rotr)(v,7)^(0,a.rotr)(v,18)^v>>>3,z=(0,a.rotr)(O,17)^(0,a.rotr)(O,19)^O>>>10;u[T]=z+u[T-7]+C+u[T-16]|0}let{A:g,B:S,C:M,D:R,E:I,F:N,G:E,H:P}=this;for(let T=0;T<64;T++){const v=(0,a.rotr)(I,6)^(0,a.rotr)(I,11)^(0,a.rotr)(I,25),O=P+v+t(I,N,E)+i[T]+u[T]|0,z=((0,a.rotr)(g,2)^(0,a.rotr)(g,13)^(0,a.rotr)(g,22))+n(g,S,M)|0;P=E,E=N,N=I,I=R+O|0,R=M,M=S,S=g,g=O+z|0}g=g+this.A|0,S=S+this.B|0,M=M+this.C|0,R=R+this.D|0,I=I+this.E|0,N=N+this.F|0,E=E+this.G|0,P=P+this.H|0,this.set(g,S,M,R,I,N,E,P)}roundClean(){u.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class f extends c{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}return Zo.sha256=(0,a.wrapConstructor)(()=>new c),Zo.sha224=(0,a.wrapConstructor)(()=>new f),Zo}var ob={};const f5={},p5=Object.freeze(Object.defineProperty({__proto__:null,default:f5},Symbol.toStringTag,{value:"Module"})),y5=F2(p5);var kL;function UL(){return kL||(kL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.utils=e.schnorr=e.verify=e.signSync=e.sign=e.getSharedSecret=e.recoverPublicKey=e.getPublicKey=e.Signature=e.Point=e.CURVE=void 0;const a=y5,t=BigInt(0),n=BigInt(1),i=BigInt(2),o=BigInt(3),u=BigInt(8),c=Object.freeze({a:t,b:BigInt(7),P:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:n,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee")});e.CURVE=c;const f=(te,F)=>(te+F/i)/F,p={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar(te){const{n:F}=c,Z=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),ce=-n*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),Te=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),Pe=Z,Ge=BigInt("0x100000000000000000000000000000000"),Ke=f(Pe*te,F),mt=f(-ce*te,F);let ut=k(te-Ke*Z-mt*Te,F),_t=k(-Ke*ce-mt*Pe,F);const Tt=ut>Ge,At=_t>Ge;if(Tt&&(ut=F-ut),At&&(_t=F-_t),ut>Ge||_t>Ge)throw new Error("splitScalarEndo: Endomorphism failed, k="+te);return{k1neg:Tt,k1:ut,k2neg:At,k2:_t}}},y=32,m=32,g=32,S=y+1,M=2*y+1;function R(te){const{a:F,b:Z}=c,ce=k(te*te),Te=k(ce*te);return k(Te+F*te+Z)}const I=c.a===t;class N extends Error{constructor(F){super(F)}}function E(te){if(!(te instanceof P))throw new TypeError("JacobianPoint expected")}class P{constructor(F,Z,ce){this.x=F,this.y=Z,this.z=ce}static fromAffine(F){if(!(F instanceof O))throw new TypeError("JacobianPoint#fromAffine: expected Point");return F.equals(O.ZERO)?P.ZERO:new P(F.x,F.y,n)}static toAffineBatch(F){const Z=Re(F.map(ce=>ce.z));return F.map((ce,Te)=>ce.toAffine(Z[Te]))}static normalizeZ(F){return P.toAffineBatch(F).map(P.fromAffine)}equals(F){E(F);const{x:Z,y:ce,z:Te}=this,{x:Pe,y:Ge,z:Ke}=F,mt=k(Te*Te),ut=k(Ke*Ke),_t=k(Z*ut),Tt=k(Pe*mt),At=k(k(ce*Ke)*ut),xt=k(k(Ge*Te)*mt);return _t===Tt&&At===xt}negate(){return new P(this.x,k(-this.y),this.z)}double(){const{x:F,y:Z,z:ce}=this,Te=k(F*F),Pe=k(Z*Z),Ge=k(Pe*Pe),Ke=F+Pe,mt=k(i*(k(Ke*Ke)-Te-Ge)),ut=k(o*Te),_t=k(ut*ut),Tt=k(_t-i*mt),At=k(ut*(mt-Tt)-u*Ge),xt=k(i*Z*ce);return new P(Tt,At,xt)}add(F){E(F);const{x:Z,y:ce,z:Te}=this,{x:Pe,y:Ge,z:Ke}=F;if(Pe===t||Ge===t)return this;if(Z===t||ce===t)return F;const mt=k(Te*Te),ut=k(Ke*Ke),_t=k(Z*ut),Tt=k(Pe*mt),At=k(k(ce*Ke)*ut),xt=k(k(Ge*Te)*mt),Jt=k(Tt-_t),gr=k(xt-At);if(Jt===t)return gr===t?this.double():P.ZERO;const Dr=k(Jt*Jt),bn=k(Jt*Dr),qn=k(_t*Dr),ta=k(gr*gr-bn-i*qn),Rr=k(gr*(qn-ta)-At*bn),mi=k(Te*Ke*Jt);return new P(ta,Rr,mi)}subtract(F){return this.add(F.negate())}multiplyUnsafe(F){const Z=P.ZERO;if(typeof F=="bigint"&&F===t)return Z;let ce=B(F);if(ce===n)return this;if(!I){let Tt=Z,At=this;for(;ce>t;)ce&n&&(Tt=Tt.add(At)),At=At.double(),ce>>=n;return Tt}let{k1neg:Te,k1:Pe,k2neg:Ge,k2:Ke}=p.splitScalar(ce),mt=Z,ut=Z,_t=this;for(;Pe>t||Ke>t;)Pe&n&&(mt=mt.add(_t)),Ke&n&&(ut=ut.add(_t)),_t=_t.double(),Pe>>=n,Ke>>=n;return Te&&(mt=mt.negate()),Ge&&(ut=ut.negate()),ut=new P(k(ut.x*p.beta),ut.y,ut.z),mt.add(ut)}precomputeWindow(F){const Z=I?128/F+1:256/F+1,ce=[];let Te=this,Pe=Te;for(let Ge=0;Ge<Z;Ge++){Pe=Te,ce.push(Pe);for(let Ke=1;Ke<2**(F-1);Ke++)Pe=Pe.add(Te),ce.push(Pe);Te=Pe.double()}return ce}wNAF(F,Z){!Z&&this.equals(P.BASE)&&(Z=O.BASE);const ce=Z&&Z._WINDOW_SIZE||1;if(256%ce)throw new Error("Point#wNAF: Invalid precomputation window, must be power of 2");let Te=Z&&v.get(Z);Te||(Te=this.precomputeWindow(ce),Z&&ce!==1&&(Te=P.normalizeZ(Te),v.set(Z,Te)));let Pe=P.ZERO,Ge=P.BASE;const Ke=1+(I?128/ce:256/ce),mt=2**(ce-1),ut=BigInt(2**ce-1),_t=2**ce,Tt=BigInt(ce);for(let At=0;At<Ke;At++){const xt=At*mt;let Jt=Number(F&ut);F>>=Tt,Jt>mt&&(Jt-=_t,F+=n);const gr=xt,Dr=xt+Math.abs(Jt)-1,bn=At%2!==0,qn=Jt<0;Jt===0?Ge=Ge.add(T(bn,Te[gr])):Pe=Pe.add(T(qn,Te[Dr]))}return{p:Pe,f:Ge}}multiply(F,Z){let ce=B(F),Te,Pe;if(I){const{k1neg:Ge,k1:Ke,k2neg:mt,k2:ut}=p.splitScalar(ce);let{p:_t,f:Tt}=this.wNAF(Ke,Z),{p:At,f:xt}=this.wNAF(ut,Z);_t=T(Ge,_t),At=T(mt,At),At=new P(k(At.x*p.beta),At.y,At.z),Te=_t.add(At),Pe=Tt.add(xt)}else{const{p:Ge,f:Ke}=this.wNAF(ce,Z);Te=Ge,Pe=Ke}return P.normalizeZ([Te,Pe])[0]}toAffine(F){const{x:Z,y:ce,z:Te}=this,Pe=this.equals(P.ZERO);F==null&&(F=Pe?u:oe(Te));const Ge=F,Ke=k(Ge*Ge),mt=k(Ke*Ge),ut=k(Z*Ke),_t=k(ce*mt),Tt=k(Te*Ge);if(Pe)return O.ZERO;if(Tt!==n)throw new Error("invZ was invalid");return new O(ut,_t)}}P.BASE=new P(c.Gx,c.Gy,n),P.ZERO=new P(t,n,t);function T(te,F){const Z=F.negate();return te?Z:F}const v=new WeakMap;class O{constructor(F,Z){this.x=F,this.y=Z}_setWindowSize(F){this._WINDOW_SIZE=F,v.delete(this)}hasEvenY(){return this.y%i===t}static fromCompressedHex(F){const Z=F.length===32,ce=X(Z?F:F.subarray(1));if(!je(ce))throw new Error("Point is not on curve");const Te=R(ce);let Pe=W(Te);const Ge=(Pe&n)===n;Z?Ge&&(Pe=k(-Pe)):(F[0]&1)===1!==Ge&&(Pe=k(-Pe));const Ke=new O(ce,Pe);return Ke.assertValidity(),Ke}static fromUncompressedHex(F){const Z=X(F.subarray(1,y+1)),ce=X(F.subarray(y+1,y*2+1)),Te=new O(Z,ce);return Te.assertValidity(),Te}static fromHex(F){const Z=j(F),ce=Z.length,Te=Z[0];if(ce===y)return this.fromCompressedHex(Z);if(ce===S&&(Te===2||Te===3))return this.fromCompressedHex(Z);if(ce===M&&Te===4)return this.fromUncompressedHex(Z);throw new Error(`Point.fromHex: received invalid point. Expected 32-${S} compressed bytes or ${M} uncompressed bytes, not ${ce}`)}static fromPrivateKey(F){return O.BASE.multiply(Je(F))}static fromSignature(F,Z,ce){const{r:Te,s:Pe}=Lt(Z);if(![0,1,2,3].includes(ce))throw new Error("Cannot recover: invalid recovery bit");const Ge=Ue(j(F)),{n:Ke}=c,mt=ce===2||ce===3?Te+Ke:Te,ut=oe(mt,Ke),_t=k(-Ge*ut,Ke),Tt=k(Pe*ut,Ke),At=ce&1?"03":"02",xt=O.fromHex(At+Me(mt)),Jt=O.BASE.multiplyAndAddUnsafe(xt,_t,Tt);if(!Jt)throw new Error("Cannot recover signature: point at infinify");return Jt.assertValidity(),Jt}toRawBytes(F=!1){return ue(this.toHex(F))}toHex(F=!1){const Z=Me(this.x);return F?`${this.hasEvenY()?"02":"03"}${Z}`:`04${Z}${Me(this.y)}`}toHexX(){return this.toHex(!0).slice(2)}toRawX(){return this.toRawBytes(!0).slice(1)}assertValidity(){const F="Point is not on elliptic curve",{x:Z,y:ce}=this;if(!je(Z)||!je(ce))throw new Error(F);const Te=k(ce*ce),Pe=R(Z);if(k(Te-Pe)!==t)throw new Error(F)}equals(F){return this.x===F.x&&this.y===F.y}negate(){return new O(this.x,k(-this.y))}double(){return P.fromAffine(this).double().toAffine()}add(F){return P.fromAffine(this).add(P.fromAffine(F)).toAffine()}subtract(F){return this.add(F.negate())}multiply(F){return P.fromAffine(this).multiply(F,this).toAffine()}multiplyAndAddUnsafe(F,Z,ce){const Te=P.fromAffine(this),Pe=Z===t||Z===n||this!==O.BASE?Te.multiplyUnsafe(Z):Te.multiply(Z),Ge=P.fromAffine(F).multiplyUnsafe(ce),Ke=Pe.add(Ge);return Ke.equals(P.ZERO)?void 0:Ke.toAffine()}}e.Point=O,O.BASE=new O(c.Gx,c.Gy),O.ZERO=new O(t,t);function C(te){return Number.parseInt(te[0],16)>=8?"00"+te:te}function z(te){if(te.length<2||te[0]!==2)throw new Error(`Invalid signature integer tag: ${be(te)}`);const F=te[1],Z=te.subarray(2,F+2);if(!F||Z.length!==F)throw new Error("Invalid signature integer: wrong length");if(Z[0]===0&&Z[1]<=127)throw new Error("Invalid signature integer: trailing length");return{data:X(Z),left:te.subarray(F+2)}}function U(te){if(te.length<2||te[0]!=48)throw new Error(`Invalid signature tag: ${be(te)}`);if(te[1]!==te.length-2)throw new Error("Invalid signature: incorrect length");const{data:F,left:Z}=z(te.subarray(2)),{data:ce,left:Te}=z(Z);if(Te.length)throw new Error(`Invalid signature: left bytes after parsing: ${be(Te)}`);return{r:F,s:ce}}class K{constructor(F,Z){this.r=F,this.s=Z,this.assertValidity()}static fromCompact(F){const Z=F instanceof Uint8Array,ce="Signature.fromCompact";if(typeof F!="string"&&!Z)throw new TypeError(`${ce}: Expected string or Uint8Array`);const Te=Z?be(F):F;if(Te.length!==128)throw new Error(`${ce}: Expected 64-byte hex`);return new K(we(Te.slice(0,64)),we(Te.slice(64,128)))}static fromDER(F){const Z=F instanceof Uint8Array;if(typeof F!="string"&&!Z)throw new TypeError("Signature.fromDER: Expected string or Uint8Array");const{r:ce,s:Te}=U(Z?F:ue(F));return new K(ce,Te)}static fromHex(F){return this.fromDER(F)}assertValidity(){const{r:F,s:Z}=this;if(!Ae(F))throw new Error("Invalid Signature: r must be 0 < r < n");if(!Ae(Z))throw new Error("Invalid Signature: s must be 0 < s < n")}hasHighS(){const F=c.n>>n;return this.s>F}normalizeS(){return this.hasHighS()?new K(this.r,k(-this.s,c.n)):this}toDERRawBytes(){return ue(this.toDERHex())}toDERHex(){const F=C(qe(this.s)),Z=C(qe(this.r)),ce=F.length/2,Te=Z.length/2,Pe=qe(ce),Ge=qe(Te);return`30${qe(Te+ce+4)}02${Ge}${Z}02${Pe}${F}`}toRawBytes(){return this.toDERRawBytes()}toHex(){return this.toDERHex()}toCompactRawBytes(){return ue(this.toCompactHex())}toCompactHex(){return Me(this.r)+Me(this.s)}}e.Signature=K;function ae(...te){if(!te.every(ce=>ce instanceof Uint8Array))throw new Error("Uint8Array list expected");if(te.length===1)return te[0];const F=te.reduce((ce,Te)=>ce+Te.length,0),Z=new Uint8Array(F);for(let ce=0,Te=0;ce<te.length;ce++){const Pe=te[ce];Z.set(Pe,Te),Te+=Pe.length}return Z}const _e=Array.from({length:256},(te,F)=>F.toString(16).padStart(2,"0"));function be(te){if(!(te instanceof Uint8Array))throw new Error("Expected Uint8Array");let F="";for(let Z=0;Z<te.length;Z++)F+=_e[te[Z]];return F}const ye=BigInt("0x10000000000000000000000000000000000000000000000000000000000000000");function Me(te){if(typeof te!="bigint")throw new Error("Expected bigint");if(!(t<=te&&te<ye))throw new Error("Expected number 0 <= n < 2^256");return te.toString(16).padStart(64,"0")}function Ne(te){const F=ue(Me(te));if(F.length!==32)throw new Error("Error: expected 32 bytes");return F}function qe(te){const F=te.toString(16);return F.length&1?`0${F}`:F}function we(te){if(typeof te!="string")throw new TypeError("hexToNumber: expected string, got "+typeof te);return BigInt(`0x${te}`)}function ue(te){if(typeof te!="string")throw new TypeError("hexToBytes: expected string, got "+typeof te);if(te.length%2)throw new Error("hexToBytes: received invalid unpadded hex"+te.length);const F=new Uint8Array(te.length/2);for(let Z=0;Z<F.length;Z++){const ce=Z*2,Te=te.slice(ce,ce+2),Pe=Number.parseInt(Te,16);if(Number.isNaN(Pe)||Pe<0)throw new Error("Invalid byte sequence");F[Z]=Pe}return F}function X(te){return we(be(te))}function j(te){return te instanceof Uint8Array?Uint8Array.from(te):ue(te)}function B(te){if(typeof te=="number"&&Number.isSafeInteger(te)&&te>0)return BigInt(te);if(typeof te=="bigint"&&Ae(te))return te;throw new TypeError("Expected valid private scalar: 0 < scalar < curve.n")}function k(te,F=c.P){const Z=te%F;return Z>=t?Z:F+Z}function L(te,F){const{P:Z}=c;let ce=te;for(;F-- >t;)ce*=ce,ce%=Z;return ce}function W(te){const{P:F}=c,Z=BigInt(6),ce=BigInt(11),Te=BigInt(22),Pe=BigInt(23),Ge=BigInt(44),Ke=BigInt(88),mt=te*te*te%F,ut=mt*mt*te%F,_t=L(ut,o)*ut%F,Tt=L(_t,o)*ut%F,At=L(Tt,i)*mt%F,xt=L(At,ce)*At%F,Jt=L(xt,Te)*xt%F,gr=L(Jt,Ge)*Jt%F,Dr=L(gr,Ke)*gr%F,bn=L(Dr,Ge)*Jt%F,qn=L(bn,o)*ut%F,ta=L(qn,Pe)*xt%F,Rr=L(ta,Z)*mt%F,mi=L(Rr,i);if(mi*mi%F!==te)throw new Error("Cannot find square root");return mi}function oe(te,F=c.P){if(te===t||F<=t)throw new Error(`invert: expected positive integers, got n=${te} mod=${F}`);let Z=k(te,F),ce=F,Te=t,Pe=n;for(;Z!==t;){const Ke=ce/Z,mt=ce%Z,ut=Te-Pe*Ke;ce=Z,Z=mt,Te=Pe,Pe=ut}if(ce!==n)throw new Error("invert: does not exist");return k(Te,F)}function Re(te,F=c.P){const Z=new Array(te.length),ce=te.reduce((Pe,Ge,Ke)=>Ge===t?Pe:(Z[Ke]=Pe,k(Pe*Ge,F)),n),Te=oe(ce,F);return te.reduceRight((Pe,Ge,Ke)=>Ge===t?Pe:(Z[Ke]=k(Pe*Z[Ke],F),k(Pe*Ge,F)),Te),Z}function Se(te){const F=te.length*8-m*8,Z=X(te);return F>0?Z>>BigInt(F):Z}function Ue(te,F=!1){const Z=Se(te);if(F)return Z;const{n:ce}=c;return Z>=ce?Z-ce:Z}let Ce,se;class de{constructor(F,Z){if(this.hashLen=F,this.qByteLen=Z,typeof F!="number"||F<2)throw new Error("hashLen must be a number");if(typeof Z!="number"||Z<2)throw new Error("qByteLen must be a number");this.v=new Uint8Array(F).fill(1),this.k=new Uint8Array(F).fill(0),this.counter=0}hmac(...F){return e.utils.hmacSha256(this.k,...F)}hmacSync(...F){return se(this.k,...F)}checkSync(){if(typeof se!="function")throw new N("hmacSha256Sync needs to be set")}incr(){if(this.counter>=1e3)throw new Error("Tried 1,000 k values for sign(), all were invalid");this.counter+=1}async reseed(F=new Uint8Array){this.k=await this.hmac(this.v,Uint8Array.from([0]),F),this.v=await this.hmac(this.v),F.length!==0&&(this.k=await this.hmac(this.v,Uint8Array.from([1]),F),this.v=await this.hmac(this.v))}reseedSync(F=new Uint8Array){this.checkSync(),this.k=this.hmacSync(this.v,Uint8Array.from([0]),F),this.v=this.hmacSync(this.v),F.length!==0&&(this.k=this.hmacSync(this.v,Uint8Array.from([1]),F),this.v=this.hmacSync(this.v))}async generate(){this.incr();let F=0;const Z=[];for(;F<this.qByteLen;){this.v=await this.hmac(this.v);const ce=this.v.slice();Z.push(ce),F+=this.v.length}return ae(...Z)}generateSync(){this.checkSync(),this.incr();let F=0;const Z=[];for(;F<this.qByteLen;){this.v=this.hmacSync(this.v);const ce=this.v.slice();Z.push(ce),F+=this.v.length}return ae(...Z)}}function Ae(te){return t<te&&te<c.n}function je(te){return t<te&&te<c.P}function Ye(te,F,Z,ce=!0){const{n:Te}=c,Pe=Ue(te,!0);if(!Ae(Pe))return;const Ge=oe(Pe,Te),Ke=O.BASE.multiply(Pe),mt=k(Ke.x,Te);if(mt===t)return;const ut=k(Ge*k(F+Z*mt,Te),Te);if(ut===t)return;let _t=new K(mt,ut),Tt=(Ke.x===_t.r?0:2)|Number(Ke.y&n);return ce&&_t.hasHighS()&&(_t=_t.normalizeS(),Tt^=1),{sig:_t,recovery:Tt}}function Je(te){let F;if(typeof te=="bigint")F=te;else if(typeof te=="number"&&Number.isSafeInteger(te)&&te>0)F=BigInt(te);else if(typeof te=="string"){if(te.length!==2*m)throw new Error("Expected 32 bytes of private key");F=we(te)}else if(te instanceof Uint8Array){if(te.length!==m)throw new Error("Expected 32 bytes of private key");F=X(te)}else throw new TypeError("Expected valid private key");if(!Ae(F))throw new Error("Expected private key: 0 < key < n");return F}function Vt(te){return te instanceof O?(te.assertValidity(),te):O.fromHex(te)}function Lt(te){if(te instanceof K)return te.assertValidity(),te;try{return K.fromDER(te)}catch{return K.fromCompact(te)}}function rr(te,F=!1){return O.fromPrivateKey(te).toRawBytes(F)}e.getPublicKey=rr;function Bt(te,F,Z,ce=!1){return O.fromSignature(te,F,Z).toRawBytes(ce)}e.recoverPublicKey=Bt;function Ft(te){const F=te instanceof Uint8Array,Z=typeof te=="string",ce=(F||Z)&&te.length;return F?ce===S||ce===M:Z?ce===S*2||ce===M*2:te instanceof O}function zr(te,F,Z=!1){if(Ft(te))throw new TypeError("getSharedSecret: first arg must be private key");if(!Ft(F))throw new TypeError("getSharedSecret: second arg must be public key");const ce=Vt(F);return ce.assertValidity(),ce.multiply(Je(te)).toRawBytes(Z)}e.getSharedSecret=zr;function sr(te){const F=te.length>y?te.slice(0,y):te;return X(F)}function gn(te){const F=sr(te),Z=k(F,c.n);return Qr(Z<t?F:Z)}function Qr(te){return Ne(te)}function Zr(te,F,Z){if(te==null)throw new Error(`sign: expected valid message hash, not "${te}"`);const ce=j(te),Te=Je(F),Pe=[Qr(Te),gn(ce)];if(Z!=null){Z===!0&&(Z=e.utils.randomBytes(y));const mt=j(Z);if(mt.length!==y)throw new Error(`sign: Expected ${y} bytes of extra data`);Pe.push(mt)}const Ge=ae(...Pe),Ke=sr(ce);return{seed:Ge,m:Ke,d:Te}}function cn(te,F){const{sig:Z,recovery:ce}=te,{der:Te,recovered:Pe}=Object.assign({canonical:!0,der:!0},F),Ge=Te?Z.toDERRawBytes():Z.toCompactRawBytes();return Pe?[Ge,ce]:Ge}async function ur(te,F,Z={}){const{seed:ce,m:Te,d:Pe}=Zr(te,F,Z.extraEntropy),Ge=new de(g,m);await Ge.reseed(ce);let Ke;for(;!(Ke=Ye(await Ge.generate(),Te,Pe,Z.canonical));)await Ge.reseed();return cn(Ke,Z)}e.sign=ur;function dn(te,F,Z={}){const{seed:ce,m:Te,d:Pe}=Zr(te,F,Z.extraEntropy),Ge=new de(g,m);Ge.reseedSync(ce);let Ke;for(;!(Ke=Ye(Ge.generateSync(),Te,Pe,Z.canonical));)Ge.reseedSync();return cn(Ke,Z)}e.signSync=dn;const Pr={strict:!0};function vn(te,F,Z,ce=Pr){let Te;try{Te=Lt(te),F=j(F)}catch{return!1}const{r:Pe,s:Ge}=Te;if(ce.strict&&Te.hasHighS())return!1;const Ke=Ue(F);let mt;try{mt=Vt(Z)}catch{return!1}const{n:ut}=c,_t=oe(Ge,ut),Tt=k(Ke*_t,ut),At=k(Pe*_t,ut),xt=O.BASE.multiplyAndAddUnsafe(mt,Tt,At);return xt?k(xt.x,ut)===Pe:!1}e.verify=vn;function $r(te){return k(X(te),c.n)}class _n{constructor(F,Z){this.r=F,this.s=Z,this.assertValidity()}static fromHex(F){const Z=j(F);if(Z.length!==64)throw new TypeError(`SchnorrSignature.fromHex: expected 64 bytes, not ${Z.length}`);const ce=X(Z.subarray(0,32)),Te=X(Z.subarray(32,64));return new _n(ce,Te)}assertValidity(){const{r:F,s:Z}=this;if(!je(F)||!Ae(Z))throw new Error("Invalid signature")}toHex(){return Me(this.r)+Me(this.s)}toRawBytes(){return ue(this.toHex())}}function xr(te){return O.fromPrivateKey(te).toRawX()}class ea{constructor(F,Z,ce=e.utils.randomBytes()){if(F==null)throw new TypeError(`sign: Expected valid message, not "${F}"`);this.m=j(F);const{x:Te,scalar:Pe}=this.getScalar(Je(Z));if(this.px=Te,this.d=Pe,this.rand=j(ce),this.rand.length!==32)throw new TypeError("sign: Expected 32 bytes of aux randomness")}getScalar(F){const Z=O.fromPrivateKey(F),ce=Z.hasEvenY()?F:c.n-F;return{point:Z,scalar:ce,x:Z.toRawX()}}initNonce(F,Z){return Ne(F^X(Z))}finalizeNonce(F){const Z=k(X(F),c.n);if(Z===t)throw new Error("sign: Creation of signature failed. k is zero");const{point:ce,x:Te,scalar:Pe}=this.getScalar(Z);return{R:ce,rx:Te,k:Pe}}finalizeSig(F,Z,ce,Te){return new _n(F.x,k(Z+ce*Te,c.n)).toRawBytes()}error(){throw new Error("sign: Invalid signature produced")}async calc(){const{m:F,d:Z,px:ce,rand:Te}=this,Pe=e.utils.taggedHash,Ge=this.initNonce(Z,await Pe(Wr.aux,Te)),{R:Ke,rx:mt,k:ut}=this.finalizeNonce(await Pe(Wr.nonce,Ge,ce,F)),_t=$r(await Pe(Wr.challenge,mt,ce,F)),Tt=this.finalizeSig(Ke,ut,_t,Z);return await Ni(Tt,F,ce)||this.error(),Tt}calcSync(){const{m:F,d:Z,px:ce,rand:Te}=this,Pe=e.utils.taggedHashSync,Ge=this.initNonce(Z,Pe(Wr.aux,Te)),{R:Ke,rx:mt,k:ut}=this.finalizeNonce(Pe(Wr.nonce,Ge,ce,F)),_t=$r(Pe(Wr.challenge,mt,ce,F)),Tt=this.finalizeSig(Ke,ut,_t,Z);return Ir(Tt,F,ce)||this.error(),Tt}}async function En(te,F,Z){return new ea(te,F,Z).calc()}function Ri(te,F,Z){return new ea(te,F,Z).calcSync()}function Mi(te,F,Z){const ce=te instanceof _n,Te=ce?te:_n.fromHex(te);return ce&&Te.assertValidity(),{...Te,m:j(F),P:Vt(Z)}}function yi(te,F,Z,ce){const Te=O.BASE.multiplyAndAddUnsafe(F,Je(Z),k(-ce,c.n));return!(!Te||!Te.hasEvenY()||Te.x!==te)}async function Ni(te,F,Z){try{const{r:ce,s:Te,m:Pe,P:Ge}=Mi(te,F,Z),Ke=$r(await e.utils.taggedHash(Wr.challenge,Ne(ce),Ge.toRawX(),Pe));return yi(ce,Ge,Te,Ke)}catch{return!1}}function Ir(te,F,Z){try{const{r:ce,s:Te,m:Pe,P:Ge}=Mi(te,F,Z),Ke=$r(e.utils.taggedHashSync(Wr.challenge,Ne(ce),Ge.toRawX(),Pe));return yi(ce,Ge,Te,Ke)}catch(ce){if(ce instanceof N)throw ce;return!1}}e.schnorr={Signature:_n,getPublicKey:xr,sign:En,verify:Ni,signSync:Ri,verifySync:Ir},O.BASE._setWindowSize(8);const Ot={node:a,web:typeof self=="object"&&"crypto"in self?self.crypto:void 0},Wr={challenge:"BIP0340/challenge",aux:"BIP0340/aux",nonce:"BIP0340/nonce"},en={};e.utils={bytesToHex:be,hexToBytes:ue,concatBytes:ae,mod:k,invert:oe,isValidPrivateKey(te){try{return Je(te),!0}catch{return!1}},_bigintTo32Bytes:Ne,_normalizePrivateKey:Je,hashToPrivateKey:te=>{te=j(te);const F=m+8;if(te.length<F||te.length>1024)throw new Error("Expected valid bytes of private key as per FIPS 186");const Z=k(X(te),c.n-n)+n;return Ne(Z)},randomBytes:(te=32)=>{if(Ot.web)return Ot.web.getRandomValues(new Uint8Array(te));if(Ot.node){const{randomBytes:F}=Ot.node;return Uint8Array.from(F(te))}else throw new Error("The environment doesn't have randomBytes function")},randomPrivateKey:()=>e.utils.hashToPrivateKey(e.utils.randomBytes(m+8)),precompute(te=8,F=O.BASE){const Z=F===O.BASE?F:new O(F.x,F.y);return Z._setWindowSize(te),Z.multiply(o),Z},sha256:async(...te)=>{if(Ot.web){const F=await Ot.web.subtle.digest("SHA-256",ae(...te));return new Uint8Array(F)}else if(Ot.node){const{createHash:F}=Ot.node,Z=F("sha256");return te.forEach(ce=>Z.update(ce)),Uint8Array.from(Z.digest())}else throw new Error("The environment doesn't have sha256 function")},hmacSha256:async(te,...F)=>{if(Ot.web){const Z=await Ot.web.subtle.importKey("raw",te,{name:"HMAC",hash:{name:"SHA-256"}},!1,["sign"]),ce=ae(...F),Te=await Ot.web.subtle.sign("HMAC",Z,ce);return new Uint8Array(Te)}else if(Ot.node){const{createHmac:Z}=Ot.node,ce=Z("sha256",te);return F.forEach(Te=>ce.update(Te)),Uint8Array.from(ce.digest())}else throw new Error("The environment doesn't have hmac-sha256 function")},sha256Sync:void 0,hmacSha256Sync:void 0,taggedHash:async(te,...F)=>{let Z=en[te];if(Z===void 0){const ce=await e.utils.sha256(Uint8Array.from(te,Te=>Te.charCodeAt(0)));Z=ae(ce,ce),en[te]=Z}return e.utils.sha256(Z,...F)},taggedHashSync:(te,...F)=>{if(typeof Ce!="function")throw new N("sha256Sync is undefined, you need to set it");let Z=en[te];if(Z===void 0){const ce=Ce(Uint8Array.from(te,Te=>Te.charCodeAt(0)));Z=ae(ce,ce),en[te]=Z}return Ce(Z,...F)},_JacobianPoint:P},Object.defineProperties(e.utils,{sha256Sync:{configurable:!1,get(){return Ce},set(te){Ce||(Ce=te)}},hmacSha256Sync:{configurable:!1,get(){return se},set(te){se||(se=te)}}})})(ob)),ob}var BL;function v0(){return BL||(BL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.schnorr=e.Signature=e.Point=e.CURVE=e.utils=e.getSharedSecret=e.recoverPublicKey=e.verify=e.signSync=e.sign=e.getPublicKey=void 0;const a=c5(),t=Rk(),n=UL();var i=UL();Object.defineProperty(e,"getPublicKey",{enumerable:!0,get:function(){return i.getPublicKey}}),Object.defineProperty(e,"sign",{enumerable:!0,get:function(){return i.sign}}),Object.defineProperty(e,"signSync",{enumerable:!0,get:function(){return i.signSync}}),Object.defineProperty(e,"verify",{enumerable:!0,get:function(){return i.verify}}),Object.defineProperty(e,"recoverPublicKey",{enumerable:!0,get:function(){return i.recoverPublicKey}}),Object.defineProperty(e,"getSharedSecret",{enumerable:!0,get:function(){return i.getSharedSecret}}),Object.defineProperty(e,"utils",{enumerable:!0,get:function(){return i.utils}}),Object.defineProperty(e,"CURVE",{enumerable:!0,get:function(){return i.CURVE}}),Object.defineProperty(e,"Point",{enumerable:!0,get:function(){return i.Point}}),Object.defineProperty(e,"Signature",{enumerable:!0,get:function(){return i.Signature}}),Object.defineProperty(e,"schnorr",{enumerable:!0,get:function(){return i.schnorr}}),n.utils.hmacSha256Sync=(o,...u)=>{const c=a.hmac.create(t.sha256,o);return u.forEach(f=>c.update(f)),c.digest()}})(nb)),nb}var vt={};function FL(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Tl={exports:{}},VL=Tl.exports,HL;function Mk(){return HL||(HL=1,(function(e,a){var t=VL&&VL.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(a,"__esModule",{value:!0}),a.crypto=a.wrapHash=a.equalsBytes=a.hexToBytes=a.bytesToUtf8=a.utf8ToBytes=a.createView=a.concatBytes=a.toHex=a.bytesToHex=a.assertBytes=a.assertBool=void 0;const n=t(g0()),i=Rl(),o=n.default.bool;a.assertBool=o;const u=n.default.bytes;a.assertBytes=u;var c=Rl();Object.defineProperty(a,"bytesToHex",{enumerable:!0,get:function(){return c.bytesToHex}}),Object.defineProperty(a,"toHex",{enumerable:!0,get:function(){return c.bytesToHex}}),Object.defineProperty(a,"concatBytes",{enumerable:!0,get:function(){return c.concatBytes}}),Object.defineProperty(a,"createView",{enumerable:!0,get:function(){return c.createView}}),Object.defineProperty(a,"utf8ToBytes",{enumerable:!0,get:function(){return c.utf8ToBytes}});function f(g){if(!(g instanceof Uint8Array))throw new TypeError(`bytesToUtf8 expected Uint8Array, got ${typeof g}`);return new TextDecoder().decode(g)}a.bytesToUtf8=f;function p(g){const S=g.startsWith("0x")?g.substring(2):g;return(0,i.hexToBytes)(S)}a.hexToBytes=p;function y(g,S){if(g.length!==S.length)return!1;for(let M=0;M<g.length;M++)if(g[M]!==S[M])return!1;return!0}a.equalsBytes=y;function m(g){return S=>(n.default.bytes(S),g(S))}a.wrapHash=m,a.crypto=(()=>{const g=typeof self=="object"&&"crypto"in self?self.crypto:void 0,S=typeof FL=="function"&&FL.bind(e);return{node:S&&!g?S("crypto"):void 0,web:g}})()})(Tl,Tl.exports)),Tl.exports}var zL;function m5(){if(zL)return vt;zL=1;var e=vt&&vt.__createBinding||(Object.create?(function(ue,X,j,B){B===void 0&&(B=j);var k=Object.getOwnPropertyDescriptor(X,j);(!k||("get"in k?!X.__esModule:k.writable||k.configurable))&&(k={enumerable:!0,get:function(){return X[j]}}),Object.defineProperty(ue,B,k)}):(function(ue,X,j,B){B===void 0&&(B=j),ue[B]=X[j]})),a=vt&&vt.__setModuleDefault||(Object.create?(function(ue,X){Object.defineProperty(ue,"default",{enumerable:!0,value:X})}):function(ue,X){ue.default=X}),t=vt&&vt.__importStar||function(ue){if(ue&&ue.__esModule)return ue;var X={};if(ue!=null)for(var j in ue)j!=="default"&&Object.prototype.hasOwnProperty.call(ue,j)&&e(X,ue,j);return a(X,ue),X};Object.defineProperty(vt,"__esModule",{value:!0}),vt.contextRandomize=vt.ecdh=vt.signatureNormalize=vt.signatureImport=vt.signatureExport=vt.privateKeyTweakMul=vt.publicKeyTweakMul=vt.publicKeyTweakAdd=vt.publicKeyCombine=vt.publicKeyNegate=vt.privateKeyNegate=vt.privateKeyTweakAdd=vt.ecdsaVerify=vt.ecdsaRecover=vt.ecdsaSign=vt.publicKeyConvert=vt.publicKeyVerify=vt.publicKeyCreate=vt.privateKeyVerify=vt.createPrivateKey=vt.createPrivateKeySync=void 0;const n=Rk(),i=t(v0()),o=Mk();function u(ue){if(typeof ue!="string")throw new TypeError("hexToNumber: expected string, got "+typeof ue);return BigInt(`0x${ue}`)}const c=ue=>u((0,o.toHex)(ue)),f=ue=>ue.toString(16).padStart(64,"0"),p=ue=>(0,o.hexToBytes)(f(ue)),{mod:y}=i.utils,m=i.CURVE.n;function g(ue=B=>new Uint8Array(B),X,j){return typeof ue=="function"&&(ue=ue(X)),(0,o.assertBytes)(ue,X),j&&ue.set(j),ue}function S(ue){return(0,o.assertBytes)(ue,64),i.Signature.fromCompact(ue)}function M(){return i.utils.randomPrivateKey()}vt.createPrivateKeySync=M;async function R(){return M()}vt.createPrivateKey=R;function I(ue){return(0,o.assertBytes)(ue,32),i.utils.isValidPrivateKey(ue)}vt.privateKeyVerify=I;function N(ue,X=!0,j){(0,o.assertBytes)(ue,32),(0,o.assertBool)(X);const B=i.getPublicKey(ue,X);return g(j,X?33:65,B)}vt.publicKeyCreate=N;function E(ue){(0,o.assertBytes)(ue,33,65);try{return i.Point.fromHex(ue),!0}catch{return!1}}vt.publicKeyVerify=E;function P(ue,X=!0,j){(0,o.assertBytes)(ue,33,65),(0,o.assertBool)(X);const B=i.Point.fromHex(ue).toRawBytes(X);return g(j,X?33:65,B)}vt.publicKeyConvert=P;function T(ue,X,j={noncefn:void 0,data:void 0},B){if((0,o.assertBytes)(ue,32),(0,o.assertBytes)(X,32),typeof j!="object"||j===null)throw new TypeError("secp256k1.ecdsaSign: options should be object");if(j&&(j.noncefn!==void 0||j.data!==void 0))throw new Error("Secp256k1: noncefn && data is unsupported");const[k,L]=i.signSync(ue,X,{recovered:!0,der:!1});return{signature:g(B,64,k),recid:L}}vt.ecdsaSign=T;function v(ue,X,j,B=!0,k){(0,o.assertBytes)(j,32),(0,o.assertBool)(B);const L=S(ue).toHex(),W=i.Point.fromSignature(j,L,X);return g(k,B?33:65,W.toRawBytes(B))}vt.ecdsaRecover=v;function O(ue,X,j){(0,o.assertBytes)(ue,64),(0,o.assertBytes)(X,32),(0,o.assertBytes)(j,33,65),(0,o.assertBytes)(ue,64);const B=c(ue.slice(0,32)),k=c(ue.slice(32,64));if(B>=m||k>=m)throw new Error("Cannot parse signature");const L=i.Point.fromHex(j);let W;try{W=S(ue)}catch{return!1}return i.verify(W,X,L)}vt.ecdsaVerify=O;function C(ue,X){(0,o.assertBytes)(ue,32),(0,o.assertBytes)(X,32);let j=c(X);if(j===0n)throw new Error("Tweak must not be zero");if(j>=m)throw new Error("Tweak bigger than curve order");if(j+=c(ue),j>=m&&(j-=m),j===0n)throw new Error("The tweak was out of range or the resulted private key is invalid");return ue.set((0,o.hexToBytes)(f(j))),ue}vt.privateKeyTweakAdd=C;function z(ue){(0,o.assertBytes)(ue,32);const X=y(-c(ue),m);return ue.set((0,o.hexToBytes)(f(X))),ue}vt.privateKeyNegate=z;function U(ue,X=!0,j){(0,o.assertBytes)(ue,33,65),(0,o.assertBool)(X);const B=i.Point.fromHex(ue).negate();return g(j,X?33:65,B.toRawBytes(X))}vt.publicKeyNegate=U;function K(ue,X=!0,j){if(!Array.isArray(ue)||!ue.length)throw new TypeError(`Expected array with one or more items, not ${ue}`);for(const k of ue)(0,o.assertBytes)(k,33,65);(0,o.assertBool)(X);const B=ue.map(k=>i.Point.fromHex(k)).reduce((k,L)=>k.add(L),i.Point.ZERO);if(B.equals(i.Point.ZERO))throw new Error("Combined result must not be zero");return g(j,X?33:65,B.toRawBytes(X))}vt.publicKeyCombine=K;function ae(ue,X,j=!0,B){(0,o.assertBytes)(ue,33,65),(0,o.assertBytes)(X,32),(0,o.assertBool)(j);const k=i.Point.fromHex(ue),L=i.Point.fromPrivateKey(X),W=k.add(L);if(L.equals(i.Point.ZERO)||W.equals(i.Point.ZERO))throw new Error("Tweak must not be zero");return g(B,j?33:65,W.toRawBytes(j))}vt.publicKeyTweakAdd=ae;function _e(ue,X,j=!0,B){(0,o.assertBytes)(ue,33,65),(0,o.assertBytes)(X,32),(0,o.assertBool)(j);const k=c(X);if(k===0n)throw new Error("Tweak must not be zero");if(k<=1||k>=m)throw new Error("Tweak is zero or bigger than curve order");const L=i.Point.fromHex(ue).multiply(k);return g(B,j?33:65,L.toRawBytes(j))}vt.publicKeyTweakMul=_e;function be(ue,X){(0,o.assertBytes)(ue,32),(0,o.assertBytes)(X,32);const j=c(X);if(j<=1||j>=m)throw new Error("Tweak is zero or bigger than curve order");const B=y(j*c(ue),m);if(B===0n)throw new Error("The tweak was out of range or the resulted private key is invalid");return ue.set((0,o.hexToBytes)(f(B))),ue}vt.privateKeyTweakMul=be;function ye(ue,X){const j=S(ue).toRawBytes();return g(X,72,S(ue).toRawBytes()).slice(0,j.length)}vt.signatureExport=ye;function Me(ue,X){(0,o.assertBytes)(ue);const j=i.Signature.fromDER(ue);return g(X,64,(0,o.hexToBytes)(j.toCompactHex()))}vt.signatureImport=Me;function Ne(ue){const X=S(ue);return X.s>m/2n&&ue.set(p(m-X.s),32),ue}vt.signatureNormalize=Ne;function qe(ue,X,j={},B){if((0,o.assertBytes)(ue,33,65),(0,o.assertBytes)(X,32),typeof j!="object"||j===null)throw new TypeError("secp256k1.ecdh: options should be object");j.data!==void 0&&(0,o.assertBytes)(j.data);const k=i.Point.fromHex(i.getSharedSecret(X,ue));if(j.hashfn===void 0)return g(B,32,(0,n.sha256)(k.toRawBytes(!0)));if(typeof j.hashfn!="function")throw new TypeError("secp256k1.ecdh: options.hashfn should be function");j.xbuf!==void 0&&(0,o.assertBytes)(j.xbuf,32),j.ybuf!==void 0&&(0,o.assertBytes)(j.ybuf,32),(0,o.assertBytes)(B,32);const L=j.xbuf||new Uint8Array(32);L.set(p(k.x));const W=j.ybuf||new Uint8Array(32);W.set(p(k.y));const oe=j.hashfn(L,W,j.data);if(!(oe instanceof Uint8Array)||oe.length!==32)throw new Error("secp256k1.ecdh: invalid options.hashfn output");return g(B,32,oe)}vt.ecdh=qe;function we(ue){ue!==null&&(0,o.assertBytes)(ue,32)}return vt.contextRandomize=we,vt}var WL;function Nk(){if(WL)return Lr;WL=1,Object.defineProperty(Lr,"__esModule",{value:!0}),Lr.createUnsafeIdentity=Lr.computeAddress=Lr.ethSign=Lr.createEthereumMessageHash=Lr.sign=Lr.recoverAddressFromEthSignature=Lr.recoverPublicKey=void 0;const e=wf(),a=v0(),t=m5();function n(m,g){if(m.length!==65)throw new Error("Invalid signature length"+m.length);const S=m.slice(0,m.length-1),M=m[64]===28?1:0;return(0,t.ecdsaRecover)(S,M,g,!1).slice(1)}Lr.recoverPublicKey=n;function i(m){if(m.length!==65)throw new Error("Invalid ethereum signature");const g=m[64];if(g===0||g===1){const S=new Uint8Array(m);return S[64]=g+27,S}return m}function o(m,g){if(typeof m=="string"){if((0,e.isHex)(m))return o((0,e.hexToBytes)(m),g);throw new Error("String signatures must be encoded in hex")}return p(n(i(m),c(g)))}Lr.recoverAddressFromEthSignature=o;function u(m,g){const S=(0,t.ecdsaSign)(g,m),M=S.recid===1?"1c":"1b";return(0,e.toHex)(S.signature)+M}Lr.sign=u;function c(m){const g=typeof m=="string"?(0,e.stringToUtf8Bytes)(m):m,S=(0,e.concatBytes)((0,e.stringToUtf8Bytes)(`Ethereum Signed Message:
|
|
19
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function m(E,P){if(E){if(typeof E=="string")return g(E,P);var T={}.toString.call(E).slice(8,-1);return T==="Object"&&E.constructor&&(T=E.constructor.name),T==="Map"||T==="Set"?Array.from(E):T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T)?g(E,P):void 0}}function g(E,P){(P==null||P>E.length)&&(P=E.length);for(var T=0,v=Array(P);T<P;T++)v[T]=E[T];return v}function S(E,P){var T=E==null?null:typeof Symbol<"u"&&E[Symbol.iterator]||E["@@iterator"];if(T!=null){var v,O,C,z,U=[],K=!0,ae=!1;try{if(C=(T=T.call(E)).next,P!==0)for(;!(K=(v=C.call(T)).done)&&(U.push(v.value),U.length!==P);K=!0);}catch(_e){ae=!0,O=_e}finally{try{if(!K&&T.return!=null&&(z=T.return(),Object(z)!==z))return}finally{if(ae)throw O}}return U}}function M(E){if(Array.isArray(E))return E}var R={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0,max_allowed_length:2084},I=/^\[([^\]]+)\](?::([0-9]+))?$/;function N(E,P){if((0,t.default)(E),!E||/[\s<>]/.test(E)||E.indexOf("mailto:")===0||(P=(0,c.default)(P,R),P.validate_length&&E.length>P.max_allowed_length)||!P.allow_fragments&&(0,i.default)(E,"#")||!P.allow_query_components&&((0,i.default)(E,"?")||(0,i.default)(E,"&")))return!1;var T,v,O,C,z,U,K,ae;K=E.split("#"),E=K.shift(),K=E.split("?"),E=K.shift();var _e=E.match(/^([a-z][a-z0-9+\-.]*):/i),be=!1,ye=function(de){return be=!0,T=de.toLowerCase(),P.require_valid_protocol&&P.protocols.indexOf(T)===-1?!1:E.substring(_e[0].length)};if(_e){var Me=_e[1],Ne=E.substring(_e[0].length),qe=Ne.slice(0,2)==="//";if(qe){if(E=ye(Me),E===!1)return!1}else{var we=Ne.indexOf("/"),ue=we===-1?Ne:Ne.substring(0,we),X=ue.indexOf("@");if(X!==-1){var j=ue.substring(0,X),B=/^[a-zA-Z0-9\-_.%:]*$/,k=B.test(j),L=/%[0-9a-fA-F]{2}/.test(j);if(k&&!L){if(P.require_protocol)return!1}else if(E=ye(Me),E===!1)return!1}else{var W=/^[0-9]/.test(Ne);if(W){if(P.require_protocol)return!1}else if(E=ye(Me),E===!1)return!1}}}else if(P.require_protocol)return!1;if(E.slice(0,2)==="//"){if(!be&&!P.allow_protocol_relative_urls)return!1;E=E.slice(2)}if(E==="")return!1;if(K=E.split("/"),E=K.shift(),E===""&&!P.require_host)return!0;if(K=E.split("@"),K.length>1){if(P.disallow_auth||K[0]===""||(v=K.shift(),v.indexOf(":")>=0&&v.split(":").length>2))return!1;var oe=v.split(":"),Re=p(oe,2),Se=Re[0],Ue=Re[1];if(Se===""&&Ue==="")return!1}C=K.join("@"),U=null,ae=null;var Ce=C.match(I);if(Ce?(O="",ae=Ce[1],U=Ce[2]||null):(K=C.split(":"),O=K.shift(),K.length&&(U=K.join(":"))),U!==null&&U.length>0){if(z=parseInt(U,10),!/^[0-9]+$/.test(U)||z<=0||z>65535)return!1}else if(P.require_port)return!1;return P.host_whitelist?(0,n.default)(O,P.host_whitelist):O===""&&!P.require_host?!0:!(!(0,u.default)(O)&&!(0,o.default)(O,P)&&(!ae||!(0,u.default)(ae,6))||(O=O||ae,P.host_blacklist&&(0,n.default)(O,P.host_blacklist)))}e.exports=a.default,e.exports.default=a.default})(Dd,Dd.exports)),Dd.exports}var Gi={},Hd={exports:{}},lh={},DI;function YF(){return DI||(DI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function a(U,K){return{validate:U,compare:K}}e.fullFormats={date:a(o,u),time:a(f,p),"date-time":a(m,g),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:R,"uri-reference":/^(?:[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,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:z,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:N,int32:{type:"number",validate:T},int64:{type:"number",validate:v},float:{type:"number",validate:O},double:{type:"number",validate:O},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:a(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,u),time:a(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,p),"date-time":a(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,g),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function t(U){return U%4===0&&(U%100!==0||U%400===0)}const n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31];function o(U){const K=n.exec(U);if(!K)return!1;const ae=+K[1],_e=+K[2],be=+K[3];return _e>=1&&_e<=12&&be>=1&&be<=(_e===2&&t(ae)?29:i[_e])}function u(U,K){if(U&&K)return U>K?1:U<K?-1:0}const c=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function f(U,K){const ae=c.exec(U);if(!ae)return!1;const _e=+ae[1],be=+ae[2],ye=+ae[3],Me=ae[5];return(_e<=23&&be<=59&&ye<=59||_e===23&&be===59&&ye===60)&&(!K||Me!=="")}function p(U,K){if(!(U&&K))return;const ae=c.exec(U),_e=c.exec(K);if(ae&&_e)return U=ae[1]+ae[2]+ae[3]+(ae[4]||""),K=_e[1]+_e[2]+_e[3]+(_e[4]||""),U>K?1:U<K?-1:0}const y=/t|\s/i;function m(U){const K=U.split(y);return K.length===2&&o(K[0])&&f(K[1],!0)}function g(U,K){if(!(U&&K))return;const[ae,_e]=U.split(y),[be,ye]=K.split(y),Me=u(ae,be);if(Me!==void 0)return Me||p(_e,ye)}const S=/\/|:/,M=/^(?:[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;function R(U){return S.test(U)&&M.test(U)}const I=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function N(U){return I.lastIndex=0,I.test(U)}const E=-2147483648,P=2**31-1;function T(U){return Number.isInteger(U)&&U<=P&&U>=E}function v(U){return Number.isInteger(U)}function O(){return!0}const C=/[^\\]\\Z/;function z(U){if(C.test(U))return!1;try{return new RegExp(U),!0}catch{return!1}}})(lh)),lh}var ch={},qI;function XF(){return qI||(qI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const a=xo(),t=bt(),n=t.operators,i={formatMaximum:{okStr:"<=",ok:n.LTE,fail:n.GT},formatMinimum:{okStr:">=",ok:n.GTE,fail:n.LT},formatExclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},formatExclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},o={message:({keyword:c,schemaCode:f})=>t.str`should be ${i[c].okStr} ${f}`,params:({keyword:c,schemaCode:f})=>t._`{comparison: ${i[c].okStr}, limit: ${f}}`};e.formatLimitDefinition={keyword:Object.keys(i),type:"string",schemaType:"string",$data:!0,error:o,code(c){const{gen:f,data:p,schemaCode:y,keyword:m,it:g}=c,{opts:S,self:M}=g;if(!S.validateFormats)return;const R=new a.KeywordCxt(g,M.RULES.all.format.definition,"format");R.$data?I():N();function I(){const P=f.scopeValue("formats",{ref:M.formats,code:S.code.formats}),T=f.const("fmt",t._`${P}[${R.schemaCode}]`);c.fail$data(t.or(t._`typeof ${T} != "object"`,t._`${T} instanceof RegExp`,t._`typeof ${T}.compare != "function"`,E(T)))}function N(){const P=R.schema,T=M.formats[P];if(!T||T===!0)return;if(typeof T!="object"||T instanceof RegExp||typeof T.compare!="function")throw new Error(`"${m}": format "${P}" does not define "compare" function`);const v=f.scopeValue("formats",{key:P,ref:T,code:S.code.formats?t._`${S.code.formats}${t.getProperty(P)}`:void 0});c.fail$data(E(v))}function E(P){return t._`${P}.compare(${p}, ${y}) ${i[m].fail} 0`}},dependencies:["format"]};const u=c=>(c.addKeyword(e.formatLimitDefinition),c);e.default=u})(ch)),ch}var kI;function JF(){return kI||(kI=1,(function(e,a){Object.defineProperty(a,"__esModule",{value:!0});const t=YF(),n=XF(),i=bt(),o=new i.Name("fullFormats"),u=new i.Name("fastFormats"),c=(p,y={keywords:!0})=>{if(Array.isArray(y))return f(p,y,t.fullFormats,o),p;const[m,g]=y.mode==="fast"?[t.fastFormats,u]:[t.fullFormats,o],S=y.formats||t.formatNames;return f(p,S,m,g),y.keywords&&n.default(p),p};c.get=(p,y="full")=>{const g=(y==="fast"?t.fastFormats:t.fullFormats)[p];if(!g)throw new Error(`Unknown format "${p}"`);return g};function f(p,y,m,g){var S,M;(S=(M=p.opts.code).formats)!==null&&S!==void 0||(M.formats=i._`require("ajv-formats/dist/formats").${g}`);for(const R of y)p.addFormat(R,m[R])}e.exports=a=c,Object.defineProperty(a,"__esModule",{value:!0}),a.default=c})(Hd,Hd.exports)),Hd.exports}var Zn={},_o={},Eo={},dh={},$n={},UI;function rt(){if(UI)return $n;UI=1;var e=$n&&$n.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty($n,"__esModule",{value:!0}),$n.validateType=$n.generateLazyValidator=$n.Ajv=void 0;const a=e(xo());$n.Ajv=a.default;const t=e(ff()),n=e(pf());function i(u,c){let f=null;const p=(y,m)=>{if(!f){const g=new a.default({$data:!0,allErrors:!0});(0,t.default)(g),(0,n.default)(g,{singleError:!0}),c?.forEach(S=>g.addKeyword(S)),f=g.compile(u),Object.defineProperty(p,"errors",{get(){return f?.errors}})}return f(y,m)};return p}$n.generateLazyValidator=i;function o(u,c){return u.validate(c)}return $n.validateType=o,$n}var BI;function QF(){return BI||(BI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SceneUpdate=e.SCENE_UPDATE=void 0;const a=rt();e.SCENE_UPDATE="SCENE_UPDATE",(function(t){t.schema={type:"object",properties:{type:{type:"string",enum:[e.SCENE_UPDATE]},payload:{type:"object",properties:{sceneId:{type:"string"},sceneType:{type:"string"}},additionalProperties:!1,required:["sceneId","sceneType"]}},required:["payload","type"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.SceneUpdate||(e.SceneUpdate={}))})(dh)),dh}var fh={},FI;function ZF(){return FI||(FI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Update=e.UPDATE=void 0;const a=rt();e.UPDATE="update",(function(t){t.schema={type:"object",properties:{type:{type:"string",enum:[e.UPDATE]}},required:["type"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Update||(e.Update={}))})(fh)),fh}var VI;function $F(){return VI||(VI=1,(function(e){var a=Eo&&Eo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Eo&&Eo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(QF(),e),t(ZF(),e)})(Eo)),Eo}var bo={},ph={},HI;function xF(){return HI||(HI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProjectType=void 0;const a=rt();(function(t){t.SCENE="scene",t.SMART_ITEM="smart-item",t.PORTABLE_EXPERIENCE="portable-experience",t.LIBRARY="library"})(e.ProjectType||(e.ProjectType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.ProjectType||(e.ProjectType={}))})(ph)),ph}var yh={},mh={},zI;function gf(){return zI||(zI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Rarity=void 0;const a=rt();(function(t){t.UNIQUE="unique",t.MYTHIC="mythic",t.LEGENDARY="legendary",t.EPIC="epic",t.RARE="rare",t.UNCOMMON="uncommon",t.COMMON="common"})(e.Rarity||(e.Rarity={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema);const n={[t.UNIQUE]:1,[t.MYTHIC]:10,[t.LEGENDARY]:100,[t.EPIC]:1e3,[t.RARE]:5e3,[t.UNCOMMON]:1e4,[t.COMMON]:1e5},i={[t.UNIQUE]:"#FFE617",[t.MYTHIC]:"#FB7DE3",[t.LEGENDARY]:"#A657ED",[t.EPIC]:"#6397F2",[t.RARE]:"#3AD682",[t.UNCOMMON]:"#FF8563",[t.COMMON]:"#D4E0E0"},o={[t.UNIQUE]:"#FFB626",[t.MYTHIC]:"#FF63E1",[t.LEGENDARY]:"#842DDA",[t.EPIC]:"#3D85E6",[t.RARE]:"#36CF75",[t.UNCOMMON]:"#ED6D4F",[t.COMMON]:"#ABC1C1"};function u(p){return n[p]}t.getMaxSupply=u;function c(p){return o[p]}t.getColor=c;function f(p){return[i[p],o[p]]}t.getGradient=f})(e.Rarity||(e.Rarity={}))})(mh)),mh}var hh={},WI;function rs(){return WI||(WI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WearableCategory=void 0;const a=rt();(function(t){t.EYEBROWS="eyebrows",t.EYES="eyes",t.FACIAL_HAIR="facial_hair",t.HAIR="hair",t.BODY_SHAPE="body_shape",t.MOUTH="mouth",t.UPPER_BODY="upper_body",t.LOWER_BODY="lower_body",t.FEET="feet",t.EARRING="earring",t.EYEWEAR="eyewear",t.HAT="hat",t.HELMET="helmet",t.MASK="mask",t.TIARA="tiara",t.TOP_HEAD="top_head",t.SKIN="skin",t.HANDS_WEAR="hands_wear"})(e.WearableCategory||(e.WearableCategory={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.WearableCategory||(e.WearableCategory={}))})(hh)),hh}var gh={},vh={},GI;function Hb(){return GI||(GI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BodyShape=void 0;const a=rt();(function(t){t.MALE="urn:decentraland:off-chain:base-avatars:BaseMale",t.FEMALE="urn:decentraland:off-chain:base-avatars:BaseFemale"})(e.BodyShape||(e.BodyShape={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.BodyShape||(e.BodyShape={}))})(vh)),vh}var _h={},Eh={},KI;function dq(){return KI||(KI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BodyPartCategory=void 0;const a=rt();(function(t){t.HEAD="head",t.HANDS="hands"})(e.BodyPartCategory||(e.BodyPartCategory={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.BodyPartCategory||(e.BodyPartCategory={}))})(Eh)),Eh}var YI;function zb(){return YI||(YI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.HideableWearableCategory=void 0;const a=rs(),t=rt(),n=dq();(function(i){i.schema={oneOf:[Object.assign({},a.WearableCategory.schema),Object.assign({},n.BodyPartCategory.schema)]},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.HideableWearableCategory||(e.HideableWearableCategory={}))})(_h)),_h}var XI;function Wb(){return XI||(XI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WearableRepresentation=void 0;const a=rt(),t=Hb(),n=zb();(function(i){i.schema={type:"object",properties:{bodyShapes:{type:"array",items:t.BodyShape.schema,minItems:1,uniqueItems:!0},mainFile:{type:"string",minLength:1},contents:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0,contains:{const:{$data:"2/mainFile"}}},overrideHides:{type:"array",items:n.HideableWearableCategory.schema},overrideReplaces:{type:"array",items:n.HideableWearableCategory.schema}},required:["bodyShapes","mainFile","contents","overrideHides","overrideReplaces"]},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.WearableRepresentation||(e.WearableRepresentation={}))})(gh)),gh}var wo={},To={},bh={},wh={},JI;function nu(){return JI||(JI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.IPFSv1=e.IPFSv2=e.EthAddress=e.Color3=void 0;const a=rt();(function(t){t.schema={type:"object",required:["r","g","b"],properties:{r:{type:"number",minimum:0,maximum:1},g:{type:"number",minimum:0,maximum:1},b:{type:"number",minimum:0,maximum:1}}};const n=(0,a.generateLazyValidator)(t.schema);t.validate=i=>n(i)})(e.Color3||(e.Color3={})),(function(t){t.schema={type:"string",pattern:"^0x[a-fA-F0-9]{40}$"};const n=new RegExp(t.schema.pattern);t.validate=i=>n.test(i)})(e.EthAddress||(e.EthAddress={})),(function(t){t.schema={type:"string",pattern:"^(ba)[a-zA-Z0-9]{57}$"};const n=new RegExp(t.schema.pattern);t.validate=i=>n.test(i)})(e.IPFSv2||(e.IPFSv2={})),(function(t){t.schema={type:"string",pattern:"^(Qm)[a-zA-Z0-9]{44}$"};const n=new RegExp(t.schema.pattern);t.validate=i=>n.test(i)})(e.IPFSv1||(e.IPFSv1={}))})(wh)),wh}var QI;function fq(){return QI||(QI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Avatar=e.Link=e.LinkUrl=e.AvatarInfo=e.Snapshots=void 0;const a=rs(),t=nu(),n=rt();var i;(function(f){f.schema={type:"object",required:["face256","body"],properties:{face256:t.IPFSv2.schema,body:t.IPFSv2.schema}},f.validate=(0,n.generateLazyValidator)(f.schema)})(i=e.Snapshots||(e.Snapshots={}));var o;(function(f){f.schema={type:"object",required:["bodyShape","eyes","hair","skin"],properties:{bodyShape:{type:"string"},eyes:{type:"object",required:["color"],properties:{color:t.Color3.schema}},hair:{type:"object",required:["color"],properties:{color:t.Color3.schema}},skin:{type:"object",required:["color"],properties:{color:t.Color3.schema}},wearables:{type:"array",items:{type:"string"}},forceRender:{type:"array",nullable:!0,items:a.WearableCategory.schema},emotes:{type:"array",items:{type:"object",properties:{slot:{type:"number"},urn:{type:"string"}},required:["slot","urn"]},nullable:!0},snapshots:i.schema},additionalProperties:!0},f.validate=(0,n.generateLazyValidator)(f.schema)})(o=e.AvatarInfo||(e.AvatarInfo={}));var u;(function(f){f.schema={type:"string",pattern:"^[(http(s)?):\\/\\/(www\\.)?a-zA-Z0-9@:%._\\+~#=]{2,256}\\.[a-z]{2,6}\\b([-a-zA-Z0-9@:%_\\+.~#?&//=]*)$"};const p=new RegExp(f.schema.pattern,"i");f.validate=y=>p.test(y)})(u=e.LinkUrl||(e.LinkUrl={}));var c;(function(f){f.schema={type:"object",required:["title","url"],properties:{title:{type:"string"},url:u.schema}}})(c=e.Link||(e.Link={})),(function(f){f.schema={type:"object",required:["name","description","ethAddress","version","tutorialStep","avatar","hasClaimedName"],properties:{userId:{type:"string"},name:{type:"string"},description:{type:"string"},links:{type:"array",maxItems:5,items:c.schema,nullable:!0},country:{nullable:!0,type:"string"},employmentStatus:{nullable:!0,type:"string"},gender:{nullable:!0,type:"string"},pronouns:{nullable:!0,type:"string"},relationshipStatus:{nullable:!0,type:"string"},sexualOrientation:{nullable:!0,type:"string"},language:{nullable:!0,type:"string"},profession:{nullable:!0,type:"string"},birthdate:{nullable:!0,type:"number"},realName:{nullable:!0,type:"string"},hobbies:{nullable:!0,type:"string"},ethAddress:t.EthAddress.schema,version:{type:"number"},tutorialStep:{type:"number"},email:{type:"string",nullable:!0},blocked:{type:"array",items:{type:"string"},nullable:!0},muted:{type:"array",items:{type:"string"},nullable:!0},interests:{type:"array",items:{type:"string"},nullable:!0},hasClaimedName:{type:"boolean"},hasConnectedWeb3:{type:"boolean",nullable:!0},avatar:o.schema},additionalProperties:!0},f.validate=(0,n.generateLazyValidator)(f.schema)})(e.Avatar||(e.Avatar={}))})(bh)),bh}var Th={},ZI;function eV(){return ZI||(ZI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Profile=void 0;const a=rt(),t=fq();(function(n){n.schema={type:"object",required:["avatars"],properties:{avatars:{type:"array",items:t.Avatar.schema}},additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.Profile||(e.Profile={}))})(Th)),Th}var $I;function tV(){return $I||($I=1,(function(e){var a=To&&To.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=To&&To.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(fq(),e),t(eV(),e)})(To)),To}var Sh={},Oh={},xI;function pq(){return xI||(xI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.FeatureToggles=e.portableExperiencesToggles=e.toggles=void 0;const a=rt();e.toggles=["enabled","disabled"],e.portableExperiencesToggles=[...e.toggles,"hideUi"],(function(t){t.schema={type:"object",properties:{voiceChat:{type:"string",enum:e.toggles,nullable:!0},portableExperiences:{type:"string",enum:e.portableExperiencesToggles,nullable:!0,errorMessage:`valid options are ${e.portableExperiencesToggles.join(", ")}`}},errorMessage:`valid options are ${e.toggles.join(", ")}`,required:[]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.FeatureToggles||(e.FeatureToggles={}))})(Oh)),Oh}var Ah={},eR;function yq(){return eR||(eR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WorldConfiguration=void 0;const a=rt();(function(t){t.schema={type:"object",properties:{name:{type:"string",nullable:!0},skybox:{type:"number",nullable:!0},minimapVisible:{type:"boolean",nullable:!0},miniMapConfig:{type:"object",nullable:!0,properties:{visible:{type:"boolean",nullable:!0},dataImage:{type:"string",nullable:!0},estateImage:{type:"string",nullable:!0}}},skyboxConfig:{type:"object",nullable:!0,properties:{fixedTime:{type:"number",nullable:!0},textures:{type:"array",nullable:!0,items:{type:"string"},oneOf:[{minItems:0,maxItems:0},{minItems:1,maxItems:1},{minItems:6,maxItems:6}],errorMessage:"customSkybox must be an array of 0, 1 or 6 strings"}}},fixedAdapter:{type:"string",nullable:!0},placesConfig:{type:"object",nullable:!0,properties:{optOut:{type:"boolean",nullable:!0}}}},required:[]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.WorldConfiguration||(e.WorldConfiguration={}))})(Ah)),Ah}var Ph={},tR;function mq(){return tR||(tR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SceneParcels=void 0;const a=rt();(function(t){t.schema={description:'Describes a scene, a set of parcels whose content is treated as the same entity. A list of parcels is listed, for which one of them is considered the "base" for positioning purposes.',type:"object",properties:{base:{type:"string",pattern:"^-?[0-9]+,-?[0-9]+$"},parcels:{type:"array",items:{type:"string",pattern:"^-?[0-9]+,-?[0-9]+$"},minItems:1}},additionalProperties:!0,required:["base","parcels"]},t.schemaValidator=(0,a.generateLazyValidator)(t.schema),t.validate=n=>t.schemaValidator(n)&&n.parcels.includes(n.base)})(e.SceneParcels||(e.SceneParcels={}))})(Ph)),Ph}var Ih={},zu={},rR;function Gb(){return rR||(rR=1,Object.defineProperty(zu,"__esModule",{value:!0}),zu.displayableProperties=void 0,zu.displayableProperties={menuBarIcon:{description:"Name of the file used as icon for the MenuBar",type:"string",nullable:!0}}),zu}var Rh={},nR;function hq(){return nR||(nR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Source=void 0;const a=rt();(function(t){t.schema={type:"object",properties:{version:{type:"number",nullable:!0},origin:{type:"string"},projectId:{type:"string"},point:{type:"object",properties:{x:{type:"integer"},y:{type:"integer"}},nullable:!0,required:["x","y"]},rotation:{type:"string",enum:["north","east","south","west"],nullable:!0},layout:{type:"object",properties:{rows:{type:"integer"},cols:{type:"integer"}},nullable:!0,required:["rows","cols"]},isEmpty:{type:"boolean",nullable:!0}},additionalProperties:!0,required:["origin","projectId"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Source||(e.Source={}))})(Rh)),Rh}var Mh={},iR;function gq(){return iR||(iR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SpawnPoint=void 0;const a=rt();(function(t){t.schema={type:"object",properties:{name:{type:"string",nullable:!0},position:{type:"object",oneOf:[{$ref:"#single-position"},{$ref:"#multi-position"}],required:["x","y","z"]},default:{type:"boolean",nullable:!0},cameraTarget:{type:"object",properties:{x:{type:"number"},y:{type:"number"},z:{type:"number"}},required:["x","y","z"],nullable:!0}},required:["position"],definitions:{"single-position":{$id:"#single-position",type:"object",properties:{x:{type:"number"},y:{type:"number"},z:{type:"number"}},required:["x","y","z"]},"multi-position":{$id:"#multi-position",type:"object",properties:{x:{type:"array",items:{type:"number"},minItems:1},y:{type:"array",items:{type:"number"},minItems:1},z:{type:"array",items:{type:"number"},minItems:1}},required:["x","y","z"]}}},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.SpawnPoint||(e.SpawnPoint={}))})(Mh)),Mh}var aR;function rV(){return aR||(aR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Scene=e.RequiredPermission=void 0;const a=rt(),t=Gb(),n=pq(),i=mq(),o=hq(),u=gq(),c=yq();var f;(function(p){p.ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE="ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE",p.ALLOW_TO_TRIGGER_AVATAR_EMOTE="ALLOW_TO_TRIGGER_AVATAR_EMOTE",p.ALLOW_MEDIA_HOSTNAMES="ALLOW_MEDIA_HOSTNAMES",p.USE_WEB3_API="USE_WEB3_API",p.USE_FETCH="USE_FETCH",p.USE_WEBSOCKET="USE_WEBSOCKET",p.OPEN_EXTERNAL_LINK="OPEN_EXTERNAL_LINK"})(f=e.RequiredPermission||(e.RequiredPermission={})),(function(p){p.schema={type:"object",properties:Object.assign(Object.assign({isPortableExperience:{description:"Define the current scene as a Portable Experience",type:"boolean",nullable:!0},main:{description:"File that contains the entry point of the scene's code",type:"string",minLength:1},scene:i.SceneParcels.schema},t.displayableProperties),{display:{description:"Information related to how should this land be displayed apart from the normal rendering of the scene",type:"object",properties:{title:{description:"A name so other users can identify what the contents of this land should be",type:"string",nullable:!0},favicon:{description:"DEPRECATED. Allow the land owner to set up a favicon to this land",type:"string",nullable:!0},description:{description:"A description that will be shown on client's nav map when the scene is selected",type:"string",nullable:!0},navmapThumbnail:{type:"string",nullable:!0}},nullable:!0,required:[]},owner:{type:"string",nullable:!0},contact:{description:"Describe different ways of contacting the land owner",type:"object",properties:{name:{type:"string",nullable:!0},email:{type:"string",nullable:!0},im:{type:"string",nullable:!0},url:{type:"string",nullable:!0}},nullable:!0,required:[]},tags:{type:"array",items:{type:"string",minLength:1},nullable:!0},source:Object.assign(Object.assign({},o.Source.schema),{nullable:!0}),spawnPoints:{type:"array",items:u.SpawnPoint.schema,nullable:!0},requiredPermissions:{type:"array",items:{type:"string",enum:Object.values(f)},uniqueItems:!0,nullable:!0},featureToggles:Object.assign(Object.assign({},n.FeatureToggles.schema),{nullable:!0}),worldConfiguration:Object.assign(Object.assign({},c.WorldConfiguration.schema),{nullable:!0}),allowedMediaHostnames:{type:"array",items:{type:"string"},nullable:!0}}),additionalProperties:!0,required:["main","scene"],dependencies:{requiredPermissions:{if:{properties:{requiredPermissions:{type:"array",contains:{const:f.ALLOW_MEDIA_HOSTNAMES}}}},then:{properties:{allowedMediaHostnames:{type:"array",items:{type:"string"},nullable:!1,minItems:1}},required:["allowedMediaHostnames"]},else:{properties:{allowedMediaHostnames:{type:["null","array"],nullable:!0,maxItems:0}}}}}},p.validate=(0,a.generateLazyValidator)(p.schema)})(e.Scene||(e.Scene={}))})(Ih)),Ih}var oR;function nV(){return oR||(oR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SpawnPoint=e.Source=e.RequiredPermission=e.Scene=e.SceneParcels=e.WorldConfiguration=e.FeatureToggles=void 0;var a=pq();Object.defineProperty(e,"FeatureToggles",{enumerable:!0,get:function(){return a.FeatureToggles}});var t=yq();Object.defineProperty(e,"WorldConfiguration",{enumerable:!0,get:function(){return t.WorldConfiguration}});var n=mq();Object.defineProperty(e,"SceneParcels",{enumerable:!0,get:function(){return n.SceneParcels}});var i=rV();Object.defineProperty(e,"Scene",{enumerable:!0,get:function(){return i.Scene}}),Object.defineProperty(e,"RequiredPermission",{enumerable:!0,get:function(){return i.RequiredPermission}});var o=hq();Object.defineProperty(e,"Source",{enumerable:!0,get:function(){return o.Source}});var u=gq();Object.defineProperty(e,"SpawnPoint",{enumerable:!0,get:function(){return u.SpawnPoint}})})(Sh)),Sh}var So={},Nh={},Ch={},sR;function vq(){return sR||(sR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Locale=void 0;const a=rt();(function(t){t.EN="en",t.ES="es"})(e.Locale||(e.Locale={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Locale||(e.Locale={}))})(Ch)),Ch}var uR;function _q(){return uR||(uR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.I18N=void 0;const a=rt(),t=vq();(function(n){n.schema={type:"object",properties:{code:t.Locale.schema,text:{type:"string"}},additionalProperties:!0,required:["code","text"]},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.I18N||(e.I18N={}))})(Nh)),Nh}var jh={},lR;function Eq(){return lR||(lR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Metrics=void 0;const a=rt();(function(t){t.schema={type:"object",properties:{triangles:{type:"number"},materials:{type:"number"},textures:{type:"number"},meshes:{type:"number"},bodies:{type:"number"},entities:{type:"number"}},required:["triangles","materials","textures","meshes","bodies","entities"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Metrics||(e.Metrics={}))})(jh)),jh}var Lh={},cR;function Kb(){return cR||(cR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isStandard=e.standardProperties=void 0;const a=gf(),t=rt();e.standardProperties={collectionAddress:{type:"string",nullable:!1},rarity:a.Rarity.schema};const n={type:"object",properties:Object.assign({},e.standardProperties),required:["collectionAddress","rarity"]},i=(0,t.generateLazyValidator)(n);function o(u){return i(u)}e.isStandard=o})(Lh)),Lh}var Dh={},qh={},dR;function bq(){return dR||(dR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MerkleProof=void 0;const a=rt();(function(t){t.schema={type:"object",properties:{proof:{type:"array",items:{type:"string"}},index:{type:"number"},hashingKeys:{type:"array",items:{type:"string"}},entityHash:{type:"string"}},required:["entityHash","hashingKeys","index","proof"],additionalProperties:!0},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.MerkleProof||(e.MerkleProof={}))})(qh)),qh}var fR;function Yb(){return fR||(fR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isThirdParty=e.thirdPartyProps=void 0;const a=rt(),t=bq();e.thirdPartyProps={merkleProof:t.MerkleProof.schema,content:{type:"object",nullable:!1,additionalProperties:{type:"string"},required:[]}};const n={type:"object",properties:Object.assign({},e.thirdPartyProps),required:["merkleProof","content"],_containsHashingKeys:!0},i={keyword:"_containsHashingKeys",validate:(c,f)=>{var p;const y=f;return!((p=y?.merkleProof)===null||p===void 0)&&p.hashingKeys?y.merkleProof.hashingKeys.every(m=>y.hasOwnProperty(m)):!1},errors:!1},o=(0,a.generateLazyValidator)(n,[i]);function u(c){return o(c)}e.isThirdParty=u})(Dh)),Dh}var kh={},Uh={},Ki={},pR;function wq(){if(pR)return Ki;pR=1,Object.defineProperty(Ki,"__esModule",{value:!0}),Ki.isBaseAvatar=Ki.requiredBaseItemProps=Ki.baseItemProperties=void 0;const e=_q(),a=Eq(),t=Gb();Ki.baseItemProperties=Object.assign(Object.assign({},t.displayableProperties),{id:{type:"string"},name:{type:"string"},description:{type:"string"},i18n:{type:"array",items:e.I18N.schema,minItems:1,uniqueItemProperties:["code"],errorMessage:'${0#} array should not have duplicates for "code"'},thumbnail:{type:"string"},image:{type:"string"},metrics:Object.assign(Object.assign({},a.Metrics.schema),{nullable:!0})}),Ki.requiredBaseItemProps=["id","name","description","i18n","thumbnail","image"];function n(i){if(!i||!i.id)return!1;const o=i.id.split(":"),u=o[1]==="decentraland",c=o[3]==="base-avatars";return o.length===5&&u&&c}return Ki.isBaseAvatar=n,Ki}var yR;function iV(){return yR||(yR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Wearable=void 0;const a=rt(),t=rs(),n=Wb(),i=wq(),o=Kb(),u=Yb(),c=zb();(function(f){f.schema={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({},i.baseItemProperties),o.standardProperties),u.thirdPartyProps),{data:{type:"object",properties:{replaces:{type:"array",items:c.HideableWearableCategory.schema},hides:{type:"array",items:c.HideableWearableCategory.schema},tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:n.WearableRepresentation.schema,minItems:1},category:t.WearableCategory.schema,removesDefaultHiding:{type:"array",nullable:!0,items:c.HideableWearableCategory.schema}},required:["replaces","hides","tags","representations","category"]}}),additionalProperties:!0,required:[],oneOf:[{required:["id","i18n"],prohibited:["merkleProof","content","collectionAddress","rarity"],_isBaseAvatar:!0},{required:[...i.requiredBaseItemProps,"data","collectionAddress","rarity"],prohibited:["merkleProof","content"]},{required:[...i.requiredBaseItemProps,"data","merkleProof","content"],prohibited:["collectionAddress","rarity"],_isThirdParty:!0}],errorMessage:{oneOf:"either standard XOR thirdparty properties conditions must be met"}};const p={keyword:"_isThirdParty",validate:(m,g)=>!m||(0,u.isThirdParty)(g),errors:!1},y={keyword:"_isBaseAvatar",validate:(m,g)=>!m||(0,i.isBaseAvatar)(g),errors:!1};f.validate=(0,a.generateLazyValidator)(f.schema,[p,y])})(e.Wearable||(e.Wearable={}))})(Uh)),Uh}var mR;function aV(){return mR||(mR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.HideableWearableCategory=e.BodyPartCategory=e.WearableCategory=e.Wearable=e.WearableRepresentation=void 0;var a=Wb();Object.defineProperty(e,"WearableRepresentation",{enumerable:!0,get:function(){return a.WearableRepresentation}});var t=iV();Object.defineProperty(e,"Wearable",{enumerable:!0,get:function(){return t.Wearable}});var n=rs();Object.defineProperty(e,"WearableCategory",{enumerable:!0,get:function(){return n.WearableCategory}});var i=dq();Object.defineProperty(e,"BodyPartCategory",{enumerable:!0,get:function(){return i.BodyPartCategory}});var o=zb();Object.defineProperty(e,"HideableWearableCategory",{enumerable:!0,get:function(){return o.HideableWearableCategory}})})(kh)),kh}var Bh={},Fh={},Vh={},Hh={},hR;function Tq(){return hR||(hR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteCategory=void 0;const a=rt();(function(t){t.DANCE="dance",t.STUNT="stunt",t.GREETINGS="greetings",t.FUN="fun",t.POSES="poses",t.REACTIONS="reactions",t.HORROR="horror",t.MISCELLANEOUS="miscellaneous"})(e.EmoteCategory||(e.EmoteCategory={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.EmoteCategory||(e.EmoteCategory={}))})(Hh)),Hh}var zh={},gR;function Sq(){return gR||(gR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteRepresentationADR74=void 0;const a=rt(),t=Hb();(function(n){n.schema={type:"object",properties:{bodyShapes:{type:"array",items:t.BodyShape.schema,minItems:1,uniqueItems:!0},mainFile:{type:"string",minLength:1},contents:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0,contains:{const:{$data:"2/mainFile"}},errorMessage:{contains:"contents should contain mainFile: ${1/mainFile}"}}},required:["bodyShapes","mainFile","contents"]},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.EmoteRepresentationADR74||(e.EmoteRepresentationADR74={}))})(zh)),zh}var vR;function Oq(){return vR||(vR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteDataADR74=void 0;const a=Tq(),t=rt(),n=Sq();(function(i){i.schema={type:"object",properties:{tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:n.EmoteRepresentationADR74.schema,minItems:1},category:a.EmoteCategory.schema,loop:{type:"boolean"}},required:["category","tags","representations","loop"],additionalProperties:!0},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.EmoteDataADR74||(e.EmoteDataADR74={}))})(Vh)),Vh}var _R;function oV(){return _R||(_R=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Emote=void 0;const a=Aq(),t=rt(),n=wq(),i=Kb(),o=Yb(),u=Oq();(function(c){c.schema={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({},n.baseItemProperties),i.standardProperties),o.thirdPartyProps),{emoteDataADR74:u.EmoteDataADR74.schema}),additionalProperties:!0,required:[...n.requiredBaseItemProps],oneOf:[{required:["emoteDataADR74"],oneOf:[{required:["collectionAddress","rarity"],prohibited:["merkleProof","content"],errorMessage:"standard properties conditions are not met"},{required:["merkleProof","content","id","name","description","i18n","image","thumbnail","emoteDataADR74"],_isThirdParty:!0,prohibited:["collectionAddress","rarity"],errorMessage:"thirdparty properties conditions are not met"}],errorMessage:{oneOf:"emote should have either standard or thirdparty properties"}}],errorMessage:{oneOf:'emote should have "emoteDataADR74" and match its schema'}};const f={keyword:"_isThirdParty",validate:(p,y)=>!p||(0,a.isThirdParty)(y),errors:!1};c.validate=(0,t.generateLazyValidator)(c.schema,[f])})(e.Emote||(e.Emote={}))})(Fh)),Fh}var Wh={},ER;function sV(){return ER||(ER=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmotePlayMode=void 0;const a=rt();(function(t){t.SIMPLE="simple",t.LOOP="loop"})(e.EmotePlayMode||(e.EmotePlayMode={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.EmotePlayMode||(e.EmotePlayMode={}))})(Wh)),Wh}var bR;function uV(){return bR||(bR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmotePlayMode=e.EmoteCategory=e.EmoteDataADR74=e.EmoteRepresentationADR74=e.Emote=void 0;var a=oV();Object.defineProperty(e,"Emote",{enumerable:!0,get:function(){return a.Emote}});var t=Sq();Object.defineProperty(e,"EmoteRepresentationADR74",{enumerable:!0,get:function(){return t.EmoteRepresentationADR74}});var n=Oq();Object.defineProperty(e,"EmoteDataADR74",{enumerable:!0,get:function(){return n.EmoteDataADR74}});var i=Tq();Object.defineProperty(e,"EmoteCategory",{enumerable:!0,get:function(){return i.EmoteCategory}});var o=sV();Object.defineProperty(e,"EmotePlayMode",{enumerable:!0,get:function(){return o.EmotePlayMode}})})(Bh)),Bh}var wR;function Aq(){return wR||(wR=1,(function(e){var a=So&&So.__createBinding||(Object.create?(function(p,y,m,g){g===void 0&&(g=m);var S=Object.getOwnPropertyDescriptor(y,m);(!S||("get"in S?!y.__esModule:S.writable||S.configurable))&&(S={enumerable:!0,get:function(){return y[m]}}),Object.defineProperty(p,g,S)}):(function(p,y,m,g){g===void 0&&(g=m),p[g]=y[m]})),t=So&&So.__exportStar||function(p,y){for(var m in p)m!=="default"&&!Object.prototype.hasOwnProperty.call(y,m)&&a(y,p,m)};Object.defineProperty(e,"__esModule",{value:!0}),e.isThirdParty=e.isStandard=e.BodyShape=e.Metrics=e.Locale=e.I18N=void 0;var n=_q();Object.defineProperty(e,"I18N",{enumerable:!0,get:function(){return n.I18N}});var i=vq();Object.defineProperty(e,"Locale",{enumerable:!0,get:function(){return i.Locale}});var o=Eq();Object.defineProperty(e,"Metrics",{enumerable:!0,get:function(){return o.Metrics}});var u=Hb();Object.defineProperty(e,"BodyShape",{enumerable:!0,get:function(){return u.BodyShape}});var c=Kb();Object.defineProperty(e,"isStandard",{enumerable:!0,get:function(){return c.isStandard}});var f=Yb();Object.defineProperty(e,"isThirdParty",{enumerable:!0,get:function(){return f.isThirdParty}}),t(aV(),e),t(uV(),e)})(So)),So}var Oo={},TR;function lV(){return TR||(TR=1,(function(e){var a=Oo&&Oo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Oo&&Oo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(bq(),e)})(Oo)),Oo}var Gh={},Kh={},SR;function Xb(){return SR||(SR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AuthChain=e.AuthLink=e.AuthLinkType=void 0;const a=rt();var t;(function(i){i.SIGNER="SIGNER",i.ECDSA_PERSONAL_EPHEMERAL="ECDSA_EPHEMERAL",i.ECDSA_PERSONAL_SIGNED_ENTITY="ECDSA_SIGNED_ENTITY",i.ECDSA_EIP_1654_EPHEMERAL="ECDSA_EIP_1654_EPHEMERAL",i.ECDSA_EIP_1654_SIGNED_ENTITY="ECDSA_EIP_1654_SIGNED_ENTITY"})(t=e.AuthLinkType||(e.AuthLinkType={}));var n;(function(i){i.schema={type:"object",properties:{type:{type:"string",enum:Object.values(t)},payload:{type:"string"},signature:{type:"string",nullable:!0}},required:["payload","type"],if:{properties:{type:{not:{const:t.SIGNER}}}},then:{required:["signature"]},else:{oneOf:[{properties:{signature:{type:"string",const:""}},required:["signature"]},{properties:{signature:{type:"null"}}}]}},i.validate=(0,a.generateLazyValidator)(i.schema)})(n=e.AuthLink||(e.AuthLink={})),(function(i){i.schema={type:"array",items:n.schema,minItems:1},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.AuthChain||(e.AuthChain={}))})(Kh)),Kh}var OR;function cV(){return OR||(OR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PointerChangesSyncDeployment=e.SnapshotSyncDeployment=void 0;const a=nu(),t=Xb(),n=rt();(function(i){i.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},authChain:t.AuthChain.schema,entityTimestamp:{type:"number",minimum:0}},oneOf:[{properties:{entityId:a.IPFSv1.schema}},{properties:{entityId:a.IPFSv2.schema}}],required:["entityId","entityType","pointers","entityTimestamp","authChain"]},i.validate=(0,n.generateLazyValidator)(i.schema)})(e.SnapshotSyncDeployment||(e.SnapshotSyncDeployment={})),(function(i){i.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},authChain:t.AuthChain.schema,entityTimestamp:{type:"number",minimum:0},localTimestamp:{type:"number",minimum:0}},oneOf:[{properties:{entityId:a.IPFSv1.schema}},{properties:{entityId:a.IPFSv2.schema}}],required:["entityId","entityType","pointers","localTimestamp","entityTimestamp","authChain"]},i.validate=(0,n.generateLazyValidator)(i.schema)})(e.PointerChangesSyncDeployment||(e.PointerChangesSyncDeployment={}))})(Gh)),Gh}var Yh={},Xh={},AR;function Pq(){return AR||(AR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ContentMapping=void 0;const a=nu(),t=rt();(function(n){n.schema={type:"object",properties:{file:{type:"string",minLength:1},hash:{type:"string",oneOf:[a.IPFSv1.schema,a.IPFSv2.schema]}},required:["file","hash"]},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.ContentMapping||(e.ContentMapping={}))})(Xh)),Xh}var PR;function dV(){return PR||(PR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Entity=e.EntityType=void 0;const a=nu(),t=Pq(),n=rt();(function(i){i.SCENE="scene",i.PROFILE="profile",i.WEARABLE="wearable",i.STORE="store",i.EMOTE="emote",i.OUTFITS="outfits"})(e.EntityType||(e.EntityType={})),(function(i){i.schema={type:"object",properties:{version:{type:"string",enum:["v3"]},id:{type:"string",oneOf:[a.IPFSv1.schema,a.IPFSv2.schema]},type:{type:"string"},pointers:{type:"array",items:{type:"string",minLength:1}},timestamp:{type:"number",minimum:0},content:{type:"array",items:t.ContentMapping.schema},metadata:{type:"object",nullable:!0}},required:["version","id","type","pointers","timestamp","content"]},i.validate=(0,n.generateLazyValidator)(i.schema)})(e.Entity||(e.Entity={}))})(Yh)),Yh}var Jh={},IR;function fV(){return IR||(IR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DeploymentWithAuthChain=void 0;const a=Xb(),t=rt();(function(n){n.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},localTimestamp:{type:"number",minimum:0},authChain:a.AuthChain.schema},required:["entityId","entityType","pointers","localTimestamp","authChain"]},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.DeploymentWithAuthChain||(e.DeploymentWithAuthChain={}))})(Jh)),Jh}var Ao={},Qh={},RR;function pV(){return RR||(RR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Outfits=e.Outfit=void 0;const a=rs(),t=nu(),n=rt();var i;(function(o){o.schema={type:"object",required:["bodyShape","eyes","hair","skin","wearables"],properties:{bodyShape:{type:"string"},eyes:{type:"object",required:["color"],properties:{color:t.Color3.schema}},hair:{type:"object",required:["color"],properties:{color:t.Color3.schema}},skin:{type:"object",required:["color"],properties:{color:t.Color3.schema}},wearables:{type:"array",items:{type:"string"}},forceRender:{type:"array",nullable:!0,items:a.WearableCategory.schema}},additionalProperties:!0},o.validate=(0,n.generateLazyValidator)(o.schema)})(i=e.Outfit||(e.Outfit={})),(function(o){o.schema={type:"object",required:["outfits","namesForExtraSlots"],properties:{outfits:{type:"array",items:{type:"object",required:["slot","outfit"],properties:{slot:{type:"number"},outfit:i.schema}}},namesForExtraSlots:{type:"array",uniqueItems:!0,items:{type:"string"}}},additionalProperties:!0},o.validate=(0,n.generateLazyValidator)(o.schema)})(e.Outfits||(e.Outfits={}))})(Qh)),Qh}var MR;function yV(){return MR||(MR=1,(function(e){var a=Ao&&Ao.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Ao&&Ao.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(pV(),e)})(Ao)),Ao}var NR;function Jb(){return NR||(NR=1,(function(e){var a=wo&&wo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=wo&&wo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(tV(),e),t(nV(),e),t(Aq(),e),t(Gb(),e),t(lV(),e),t(cV(),e),t(dV(),e),t(fV(),e),t(yV(),e)})(wo)),wo}var CR;function mV(){return CR||(CR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WearableJson=void 0;const a=gf(),t=rs(),n=Wb(),i=rt(),o=Jb();(function(u){u.schema={type:"object",properties:{description:{type:"string"},rarity:Object.assign(Object.assign({},a.Rarity.schema),{nullable:!0}),name:{type:"string"},data:{type:"object",properties:{replaces:{type:"array",items:t.WearableCategory.schema},hides:{type:"array",items:t.WearableCategory.schema},tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:n.WearableRepresentation.schema,minItems:1},category:t.WearableCategory.schema,removesDefaultHiding:{type:"array",nullable:!0,items:o.HideableWearableCategory.schema}},required:["replaces","hides","tags","representations","category"]}},additionalProperties:!0,required:["description","name","data"]},u.validate=(0,i.generateLazyValidator)(u.schema)})(e.WearableJson||(e.WearableJson={}))})(yh)),yh}var jR;function hV(){return jR||(jR=1,(function(e){var a=bo&&bo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=bo&&bo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(xF(),e),t(mV(),e)})(bo)),bo}var LR;function gV(){return LR||(LR=1,(function(e){var a=_o&&_o.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=_o&&_o.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t($F(),e),t(hV(),e)})(_o)),_o}var Zh={},$h={},xh={},DR;function Iq(){return DR||(DR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getChainId=e.ChainName=void 0;const a=rt(),t=ci();var n;(function(o){o.ETHEREUM_MAINNET="Ethereum Mainnet",o.ETHEREUM_ROPSTEN="Ropsten",o.ETHEREUM_RINKEBY="Rinkeby",o.ETHEREUM_GOERLI="Goerli",o.ETHEREUM_KOVAN="Kovan",o.ETHEREUM_SEPOLIA="Sepolia",o.MATIC_MAINNET="Polygon",o.MATIC_MUMBAI="Mumbai",o.AVALANCHE_MAINNET="Avalanche Mainnet",o.BINANCE_MAINNET="Binance Smart Chain Mainnet",o.ARBITRUM_MAINNET="Arbitrum One",o.OPTIMISM_MAINNET="Optimism Mainnet",o.FANTOM_MAINNET="Fantom Mainnet"})(n=e.ChainName||(e.ChainName={}));function i(o){switch(o){case n.ETHEREUM_MAINNET:return t.ChainId.ETHEREUM_MAINNET;case n.ETHEREUM_ROPSTEN:return t.ChainId.ETHEREUM_ROPSTEN;case n.ETHEREUM_RINKEBY:return t.ChainId.ETHEREUM_RINKEBY;case n.ETHEREUM_GOERLI:return t.ChainId.ETHEREUM_GOERLI;case n.ETHEREUM_KOVAN:return t.ChainId.ETHEREUM_KOVAN;case n.ETHEREUM_SEPOLIA:return t.ChainId.ETHEREUM_SEPOLIA;case n.MATIC_MAINNET:return t.ChainId.MATIC_MAINNET;case n.MATIC_MUMBAI:return t.ChainId.MATIC_MUMBAI;default:return null}}e.getChainId=i,(function(o){o.schema={type:"string",enum:Object.values(o)},o.validate=(0,a.generateLazyValidator)(o.schema)})(n=e.ChainName||(e.ChainName={}))})(xh)),xh}var eg={},qR;function li(){return qR||(qR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Network=void 0;const a=rt();(function(t){t.ETHEREUM="ETHEREUM",t.MATIC="MATIC"})(e.Network||(e.Network={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Network||(e.Network={}))})(eg)),eg}var kR;function ci(){return kR||(kR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getNetwork=e.getNetworkMapping=e.getURNProtocol=e.getChainName=e.ChainId=void 0;const a=rt(),t=Iq(),n=li();var i;(function(p){p[p.ETHEREUM_MAINNET=1]="ETHEREUM_MAINNET",p[p.ETHEREUM_ROPSTEN=3]="ETHEREUM_ROPSTEN",p[p.ETHEREUM_RINKEBY=4]="ETHEREUM_RINKEBY",p[p.ETHEREUM_GOERLI=5]="ETHEREUM_GOERLI",p[p.ETHEREUM_KOVAN=42]="ETHEREUM_KOVAN",p[p.ETHEREUM_SEPOLIA=11155111]="ETHEREUM_SEPOLIA",p[p.MATIC_MAINNET=137]="MATIC_MAINNET",p[p.MATIC_MUMBAI=80001]="MATIC_MUMBAI"})(i=e.ChainId||(e.ChainId={}));function o(p){switch(p){case i.ETHEREUM_MAINNET:return t.ChainName.ETHEREUM_MAINNET;case i.ETHEREUM_ROPSTEN:return t.ChainName.ETHEREUM_ROPSTEN;case i.ETHEREUM_RINKEBY:return t.ChainName.ETHEREUM_RINKEBY;case i.ETHEREUM_GOERLI:return t.ChainName.ETHEREUM_GOERLI;case i.ETHEREUM_KOVAN:return t.ChainName.ETHEREUM_KOVAN;case i.ETHEREUM_SEPOLIA:return t.ChainName.ETHEREUM_SEPOLIA;case i.MATIC_MAINNET:return t.ChainName.MATIC_MAINNET;case i.MATIC_MUMBAI:return t.ChainName.MATIC_MUMBAI;default:return null}}e.getChainName=o;function u(p){switch(p){case i.ETHEREUM_MAINNET:return"ethereum";case i.ETHEREUM_ROPSTEN:return"ropsten";case i.ETHEREUM_RINKEBY:return"rinkeby";case i.ETHEREUM_GOERLI:return"goerli";case i.ETHEREUM_KOVAN:return"kovan";case i.ETHEREUM_SEPOLIA:return"sepolia";case i.MATIC_MAINNET:return"matic";case i.MATIC_MUMBAI:return"mumbai";default:return""}}e.getURNProtocol=u;function c(p){switch(p){case i.ETHEREUM_MAINNET:return{[n.Network.ETHEREUM]:i.ETHEREUM_MAINNET,[n.Network.MATIC]:i.MATIC_MAINNET};case i.ETHEREUM_ROPSTEN:return{[n.Network.ETHEREUM]:i.ETHEREUM_ROPSTEN,[n.Network.MATIC]:i.MATIC_MUMBAI};case i.ETHEREUM_RINKEBY:return{[n.Network.ETHEREUM]:i.ETHEREUM_RINKEBY,[n.Network.MATIC]:i.MATIC_MUMBAI};case i.ETHEREUM_GOERLI:return{[n.Network.ETHEREUM]:i.ETHEREUM_GOERLI,[n.Network.MATIC]:i.MATIC_MUMBAI};case i.ETHEREUM_KOVAN:return{[n.Network.ETHEREUM]:i.ETHEREUM_KOVAN,[n.Network.MATIC]:i.MATIC_MUMBAI};case i.ETHEREUM_SEPOLIA:return{[n.Network.ETHEREUM]:i.ETHEREUM_SEPOLIA,[n.Network.MATIC]:i.MATIC_MUMBAI};case i.MATIC_MAINNET:return{[n.Network.ETHEREUM]:i.MATIC_MAINNET,[n.Network.MATIC]:i.MATIC_MAINNET};case i.MATIC_MUMBAI:return{[n.Network.ETHEREUM]:i.MATIC_MUMBAI,[n.Network.MATIC]:i.MATIC_MUMBAI};default:return{[n.Network.ETHEREUM]:i.ETHEREUM_MAINNET,[n.Network.MATIC]:i.MATIC_MAINNET}}}e.getNetworkMapping=c;function f(p){switch(p){case i.ETHEREUM_MAINNET:case i.ETHEREUM_ROPSTEN:case i.ETHEREUM_GOERLI:case i.ETHEREUM_KOVAN:case i.ETHEREUM_RINKEBY:case i.ETHEREUM_SEPOLIA:return n.Network.ETHEREUM;case i.MATIC_MAINNET:case i.MATIC_MUMBAI:return n.Network.MATIC}}e.getNetwork=f,(function(p){p.schema={type:"number",enum:Object.values(p)},p.validate=(0,a.generateLazyValidator)(p.schema)})(i=e.ChainId||(e.ChainId={}))})($h)),$h}var tg={},UR;function Qb(){return UR||(UR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ListingStatus=void 0;const a=rt();(function(t){t.OPEN="open",t.SOLD="sold",t.CANCELLED="cancelled"})(e.ListingStatus||(e.ListingStatus={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.ListingStatus||(e.ListingStatus={}))})(tg)),tg}var BR;function vV(){return BR||(BR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Bid=e.BidSortBy=void 0;const a=rt(),t=ci(),n=Qb(),i=li();(function(o){o.RECENTLY_OFFERED="recently_offered",o.RECENTLY_UPDATED="recently_updated",o.MOST_EXPENSIVE="most_expensive"})(e.BidSortBy||(e.BidSortBy={})),(function(o){o.schema={type:"object",properties:{id:{type:"string"},bidAddress:{type:"string"},bidder:{type:"string"},seller:{type:"string"},price:{type:"string"},fingerprint:{type:"string"},status:n.ListingStatus.schema,blockchainId:{type:"string"},blockNumber:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},network:i.Network.schema,chainId:t.ChainId.schema,expiresAt:{type:"integer"},createdAt:{type:"integer"},updatedAt:{type:"integer"}},required:["id","bidAddress","bidder","seller","price","fingerprint","status","blockchainId","blockNumber","contractAddress","tokenId","network","chainId","expiresAt","createdAt","updatedAt"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.Bid||(e.Bid={}))})(Zh)),Zh}var rg={},FR;function _V(){return FR||(FR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Account=e.AccountSortBy=void 0;const a=rt();(function(t){t.MOST_SALES="most_sales",t.MOST_PURCHASES="most_purchases",t.MOST_SPENT="most_spent",t.MOST_EARNED="most_earned",t.MOST_ROYALTIES="most_royalties",t.MOST_COLLECTIONS="most_collections"})(e.AccountSortBy||(e.AccountSortBy={})),(function(t){t.schema={type:"object",properties:{id:{type:"string"},address:{type:"string"},sales:{type:"integer"},purchases:{type:"integer"},spent:{type:"string"},earned:{type:"string"},royalties:{type:"string"},collections:{type:"number"}},required:["id","address","sales","purchases","spent","earned","royalties","collections"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Account||(e.Account={}))})(rg)),rg}var ng={},VR;function EV(){return VR||(VR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Collection=e.CollectionSortBy=void 0;const a=rt(),t=ci(),n=li();(function(i){i.NEWEST="newest",i.NAME="name",i.RECENTLY_REVIEWED="recently_reviewed",i.RECENTLY_LISTED="recently_listed",i.SIZE="size"})(e.CollectionSortBy||(e.CollectionSortBy={})),(function(i){i.schema={type:"object",properties:{urn:{type:"string"},creator:{type:"string"},name:{type:"string"},contractAddress:{type:"string"},size:{type:"integer"},isOnSale:{type:"boolean"},createdAt:{type:"integer"},updatedAt:{type:"integer"},reviewedAt:{type:"integer"},network:n.Network.schema,chainId:t.ChainId.schema,firstListedAt:{type:"integer",nullable:!0}},required:["urn","creator","name","contractAddress","isOnSale","size","createdAt","updatedAt","reviewedAt","network","chainId"]},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.Collection||(e.Collection={}))})(ng)),ng}var ig={},ag={},HR;function vf(){return HR||(HR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NFTCategory=void 0;const a=rt();(function(t){t.PARCEL="parcel",t.ESTATE="estate",t.WEARABLE="wearable",t.ENS="ens",t.EMOTE="emote"})(e.NFTCategory||(e.NFTCategory={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.NFTCategory||(e.NFTCategory={}))})(ag)),ag}var zR;function bV(){return zR||(zR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Contract=e.ContractSortBy=void 0;const a=rt(),t=ci(),n=li(),i=vf();(function(o){o.NAME="name"})(e.ContractSortBy||(e.ContractSortBy={})),(function(o){o.schema={type:"object",properties:{name:{type:"string"},address:{type:"string"},category:i.NFTCategory.schema,network:n.Network.schema,chainId:t.ChainId.schema},required:["name","address","category","network","chainId"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.Contract||(e.Contract={}))})(ig)),ig}var og={},sg={},WR;function Rq(){return WR||(WR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NFT=e.NFTSortBy=void 0;const a=rt(),t=ci(),n=Jb(),i=li(),o=vf(),u=gf(),c=rs();(function(f){f.NAME="name",f.NEWEST="newest",f.RECENTLY_LISTED="recently_listed",f.RECENTLY_SOLD="recently_sold",f.CHEAPEST="cheapest",f.RENTAL_LISTING_DATE="rental_listing_date",f.RENTAL_DATE="rented_date",f.MAX_RENTAL_PRICE="max_rental_price",f.MIN_RENTAL_PRICE="min_rental_price"})(e.NFTSortBy||(e.NFTSortBy={})),(function(f){f.schema={type:"object",properties:{id:{type:"string"},tokenId:{type:"string"},contractAddress:{type:"string"},activeOrderId:{type:"string",nullable:!0},openRentalId:{type:"string",nullable:!0},owner:{type:"string"},name:{type:"string"},image:{type:"string"},url:{type:"string"},data:{type:"object",nullable:!1,properties:{parcel:{type:"object",properties:{description:{type:["string"],nullable:!0},x:{type:"string"},y:{type:"string"},estate:{type:"object",properties:{tokenId:{type:"string"},name:{type:"string"}},required:["tokenId","name"],nullable:!0}},required:["description","x","y","estate"],nullable:!0},estate:{type:"object",properties:{description:{type:["string"],nullable:!0},size:{type:"integer"},parcels:{type:"array",items:{type:"object",properties:{x:{type:"number"},y:{type:"number"}},required:["x","y"]}}},required:["description","size","parcels"],nullable:!0},wearable:{type:"object",properties:{bodyShapes:{type:"array",items:n.BodyShape.schema},category:c.WearableCategory.schema,description:{type:"string"},rarity:u.Rarity.schema,isSmart:{type:"boolean"}},required:["bodyShapes","category","description","rarity","isSmart"],nullable:!0},ens:{type:"object",properties:{subdomain:{type:"string"}},required:["subdomain"],nullable:!0},emote:{type:"object",properties:{bodyShapes:{type:"array",items:n.BodyShape.schema},category:n.EmoteCategory.schema,description:{type:"string"},rarity:u.Rarity.schema,loop:{type:"boolean"},hasSound:{type:"boolean"},hasGeometry:{type:"boolean"}},required:["bodyShapes","category","description","rarity","loop"],nullable:!0}},required:[]},issuedId:{type:"string",nullable:!0},itemId:{type:"string",nullable:!0},category:o.NFTCategory.schema,network:i.Network.schema,chainId:t.ChainId.schema,createdAt:{type:"integer"},updatedAt:{type:"integer"},soldAt:{type:"integer"},urn:{type:"string",nullable:!0}},required:["id","tokenId","contractAddress","activeOrderId","openRentalId","owner","name","image","url","data","issuedId","itemId","category","network","chainId","createdAt","updatedAt","soldAt"]},f.validate=(0,a.generateLazyValidator)(f.schema)})(e.NFT||(e.NFT={}))})(sg)),sg}var GR;function wV(){return GR||(GR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Item=e.ItemSortBy=void 0;const a=rt(),t=ci(),n=li(),i=Rq(),o=vf();(function(u){u.NAME="name",u.NEWEST="newest",u.RECENTLY_REVIEWED="recently_reviewed",u.RECENTLY_SOLD="recently_sold",u.RECENTLY_LISTED="recently_listed",u.CHEAPEST="cheapest"})(e.ItemSortBy||(e.ItemSortBy={})),(function(u){u.schema={type:"object",properties:{id:{type:"string"},name:{type:"string"},thumbnail:{type:"string"},url:{type:"string"},category:o.NFTCategory.schema,contractAddress:{type:"string"},itemId:{type:"string"},rarity:{type:"string"},price:{type:"string"},available:{type:"integer"},isOnSale:{type:"boolean"},creator:{type:"string"},beneficiary:{type:"string",nullable:!0},data:i.NFT.schema.properties.data,network:n.Network.schema,chainId:t.ChainId.schema,urn:{type:"string"},createdAt:{type:"integer"},updatedAt:{type:"integer"},reviewedAt:{type:"integer"},soldAt:{type:"integer"},firstListedAt:{type:"integer",nullable:!0},picks:{type:"object",properties:{pickedByUser:{type:"boolean",nullable:!0},count:{type:"integer"}},required:["count"],nullable:!0},minPrice:{type:"string",nullable:!0},minListingPrice:{type:"string",nullable:!0},maxListingPrice:{type:"string",nullable:!0},listings:{type:"integer",nullable:!0},owners:{type:"integer",nullable:!0}},required:["id","name","thumbnail","url","category","contractAddress","itemId","rarity","price","available","isOnSale","creator","data","network","chainId","createdAt","updatedAt","soldAt"]},u.validate=(0,a.generateLazyValidator)(u.schema)})(e.Item||(e.Item={}))})(og)),og}var ug={},KR;function TV(){return KR||(KR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MetaTransaction=void 0;const a=rt();(function(t){t.schema={type:"object",properties:{from:{type:"string"},params:{type:"array",items:[{type:"string"},{type:"string"}],additionalItems:!1,minItems:2}},additionalProperties:!1,required:["from","params"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.MetaTransaction||(e.MetaTransaction={}))})(ug)),ug}var lg={},YR;function SV(){return YR||(YR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Mint=e.MintSortBy=void 0;const a=rt(),t=ci(),n=li();(function(i){i.RECENTLY_MINTED="recently_minted",i.MOST_EXPENSIVE="most_expensive"})(e.MintSortBy||(e.MintSortBy={})),(function(i){i.schema={type:"object",properties:{id:{type:"string"},creator:{type:"string"},beneficiary:{type:"string"},minter:{type:"string"},price:{type:"string",nullable:!0},contractAddress:{type:"string"},tokenId:{type:"string"},itemId:{type:"string"},issuedId:{type:"string"},timestamp:{type:"integer"},network:n.Network.schema,chainId:t.ChainId.schema},required:["id","creator","beneficiary","minter","itemId","tokenId","issuedId","contractAddress","price","timestamp","network","chainId"]},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.Mint||(e.Mint={}))})(lg)),lg}var cg={},XR;function OV(){return XR||(XR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CatalogSortDirection=e.CatalogSortBy=void 0,(function(a){a.NEWEST="newest",a.RECENTLY_SOLD="recently_sold",a.CHEAPEST="cheapest",a.MOST_EXPENSIVE="most_expensive",a.RECENTLY_LISTED="recently_listed"})(e.CatalogSortBy||(e.CatalogSortBy={})),(function(a){a.ASC="asc",a.DESC="desc"})(e.CatalogSortDirection||(e.CatalogSortDirection={}))})(cg)),cg}var dg={},JR;function AV(){return JR||(JR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Order=e.OrderSortBy=void 0;const a=rt(),t=ci(),n=Qb(),i=li();(function(o){o.RECENTLY_LISTED="recently_listed",o.RECENTLY_UPDATED="recently_updated",o.CHEAPEST="cheapest",o.ISSUED_ID_ASC="issued_id_asc",o.ISSUED_ID_DESC="issued_id_desc",o.OLDEST="oldest"})(e.OrderSortBy||(e.OrderSortBy={})),(function(o){o.schema={type:"object",properties:{id:{type:"string"},marketplaceAddress:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},owner:{type:"string"},buyer:{type:["string"],nullable:!0},price:{type:"string"},status:n.ListingStatus.schema,network:i.Network.schema,chainId:t.ChainId.schema,expiresAt:{type:"integer"},createdAt:{type:"integer"},updatedAt:{type:"integer"},issuedId:{type:"string"}},required:["id","marketplaceAddress","contractAddress","tokenId","owner","buyer","price","status","network","chainId","expiresAt","createdAt","updatedAt"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.Order||(e.Order={}))})(dg)),dg}var fg={},QR;function PV(){return QR||(QR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProviderType=void 0;const a=rt();(function(t){t.INJECTED="injected",t.MAGIC="magic",t.FORTMATIC="formatic",t.NETWORK="network",t.WALLET_CONNECT="wallet_connect",t.WALLET_CONNECT_V2="wallet_connect_v2",t.WALLET_LINK="wallet_link",t.METAMASK_MOBILE="metamask_mobile",t.AUTH_SERVER="auth_server"})(e.ProviderType||(e.ProviderType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.ProviderType||(e.ProviderType={}))})(fg)),fg}var pg={},ZR;function Mq(){return ZR||(ZR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SaleType=void 0;const a=rt();(function(t){t.ORDER="order",t.BID="bid",t.MINT="mint"})(e.SaleType||(e.SaleType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.SaleType||(e.SaleType={}))})(pg)),pg}var yg={},$R;function IV(){return $R||($R=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Sale=e.SaleSortBy=void 0;const a=rt(),t=ci(),n=Mq(),i=li();(function(o){o.RECENTLY_SOLD="recently_sold",o.MOST_EXPENSIVE="most_expensive"})(e.SaleSortBy||(e.SaleSortBy={})),(function(o){o.schema={type:"object",properties:{id:{type:"string"},type:n.SaleType.schema,buyer:{type:"string"},seller:{type:"string"},price:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},itemId:{type:"string"},txHash:{type:"string"},timestamp:{type:"integer"},network:i.Network.schema,chainId:t.ChainId.schema},required:["id","buyer","seller","itemId","tokenId","price","contractAddress","timestamp","txHash","network","chainId"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.Sale||(e.Sale={}))})(yg)),yg}var mg={},xR;function RV(){return xR||(xR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.RentalListingCreation=e.PeriodCreation=e.RentalsListingsSortBy=e.RentalsListingsFilterByCategory=e.RentalsListingSortDirection=e.RentalStatus=void 0;const a=rt(),t=ci(),n=li();(function(o){o.OPEN="open",o.CANCELLED="cancelled",o.EXECUTED="executed",o.CLAIMED="claimed"})(e.RentalStatus||(e.RentalStatus={})),(function(o){o.ASC="asc",o.DESC="desc"})(e.RentalsListingSortDirection||(e.RentalsListingSortDirection={})),(function(o){o.PARCEL="parcel",o.ESTATE="estate"})(e.RentalsListingsFilterByCategory||(e.RentalsListingsFilterByCategory={})),(function(o){o.LAND_CREATION_DATE="land_creation_date",o.RENTAL_LISTING_DATE="rental_listing_date",o.RENTAL_DATE="rented_date",o.NAME="name",o.MAX_RENTAL_PRICE="max_rental_price",o.MIN_RENTAL_PRICE="min_rental_price"})(e.RentalsListingsSortBy||(e.RentalsListingsSortBy={}));var i;(function(o){o.schema={type:"object",properties:{minDays:{type:"integer",minimum:0,maximum:2147483647},maxDays:{type:"integer",minimum:0,maximum:2147483647},pricePerDay:{type:"string",pattern:"^[0-9]+$"}},additionalProperties:!1,required:["minDays","maxDays","pricePerDay"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(i=e.PeriodCreation||(e.PeriodCreation={})),(function(o){o.schema={type:"object",properties:{network:n.Network.schema,chainId:t.ChainId.schema,expiration:{type:"number",minimum:0},signature:{type:"string",minLength:1},tokenId:{type:"string",minLength:1},nonces:{type:"array",minItems:3,maxItems:3,items:{minLength:1,type:"string",pattern:"^[0-9]+$"}},contractAddress:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"},rentalContractAddress:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"},periods:{type:"array",minItems:1,maxItems:100,uniqueItems:!0,items:i.schema},target:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"}},additionalProperties:!1,required:["network","chainId","expiration","signature","nonces","tokenId","contractAddress","rentalContractAddress","periods","target"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.RentalListingCreation||(e.RentalListingCreation={}))})(mg)),mg}var hg={},eM;function MV(){return eM||(eM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AnalyticsDayDataSortBy=void 0,(function(a){a.DATE="date",a.MOST_SALES="most_sales"})(e.AnalyticsDayDataSortBy||(e.AnalyticsDayDataSortBy={}))})(hg)),hg}var gg={},tM;function NV(){return tM||(tM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Store=void 0;const a=rt();(function(t){t.schema={type:"object",properties:{id:{type:"string"},version:{type:"number"},owner:{type:"string"},description:{type:"string"},links:{type:"array",items:{type:"object",properties:{name:{type:"string"},url:{type:"string"}},required:["name","url"]}},images:{type:"array",items:{type:"object",properties:{name:{type:"string"},file:{type:"string"}},required:["name","file"]}}},required:["id","version","owner","description","links","images"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Store||(e.Store={}))})(gg)),gg}var vg={},rM;function CV(){return rM||(rM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.GenderFilterOption=e.WearableGender=void 0;const a=rt();(function(t){t.MALE="male",t.FEMALE="female"})(e.WearableGender||(e.WearableGender={})),(function(t){t.MALE="male",t.FEMALE="female",t.UNISEX="unisex"})(e.GenderFilterOption||(e.GenderFilterOption={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.WearableGender||(e.WearableGender={}))})(vg)),vg}var _g={},nM;function jV(){return nM||(nM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.World=e.isInsideWorldLimits=e.getWorld=void 0;const a=rt();function t(){return{validWorldRanges:[{xMin:-150,yMin:-150,xMax:150,yMax:150},{xMin:62,yMin:151,xMax:162,yMax:158},{xMin:151,yMin:144,xMax:162,yMax:150},{xMin:151,yMin:59,xMax:163,yMax:143}]}}e.getWorld=t;function n(i,o){const u=t().validWorldRanges;for(const c of u)if(i>=c.xMin&&i<=c.xMax&&o>=c.yMin&&o<=c.yMax)return!0;return!1}e.isInsideWorldLimits=n,(function(i){i.schema={type:"object",required:["validWorldRanges"],properties:{validWorldRanges:{type:"array",default:[{xMin:-150,yMin:-150,xMax:150,yMax:150}],items:{type:"object",required:["xMin","yMin","xMax","yMax"],properties:{xMin:{type:"integer"},yMin:{type:"integer"},xMax:{type:"integer"},yMax:{type:"integer"}}}}},additionalProperties:!1},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.World||(e.World={}))})(_g)),_g}var Po={},Eg={},iM;function LV(){return iM||(iM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewCamera=void 0;const a=rt();(function(t){t.STATIC="static",t.INTERACTIVE="interactive"})(e.PreviewCamera||(e.PreviewCamera={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewCamera||(e.PreviewCamera={}))})(Eg)),Eg}var bg={},aM;function DV(){return aM||(aM=1,Object.defineProperty(bg,"__esModule",{value:!0})),bg}var wg={},oM;function qV(){return oM||(oM=1,Object.defineProperty(wg,"__esModule",{value:!0})),wg}var Tg={},sM;function kV(){return sM||(sM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewEmoteEventType=void 0;const a=rt();(function(t){t.ANIMATION_PLAY="animation_play",t.ANIMATION_PAUSE="animation_pause",t.ANIMATION_LOOP="animation_loop",t.ANIMATION_END="animation_end",t.ANIMATION_PLAYING="animation_playing"})(e.PreviewEmoteEventType||(e.PreviewEmoteEventType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewEmoteEventType||(e.PreviewEmoteEventType={}))})(Tg)),Tg}var Sg={},uM;function UV(){return uM||(uM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewEmote=void 0;const a=rt();(function(t){t.IDLE="idle",t.WALK="walk",t.RUN="run",t.JUMP="jump",t.CLAP="clap",t.DAB="dab",t.DANCE="dance",t.FASHION="fashion",t.FASHION_2="fashion-2",t.FASHION_3="fashion-3",t.FASHION_4="fashion-4",t.LOVE="love",t.MONEY="money",t.FIST_PUMP="fist-pump",t.HEAD_EXPLODE="head-explode",t.WAVE="wave"})(e.PreviewEmote||(e.PreviewEmote={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewEmote||(e.PreviewEmote={}))})(Sg)),Sg}var Og={},lM;function BV(){return lM||(lM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.sendMessage=e.PreviewMessageType=void 0;const a=rt();(function(n){n.READY="ready",n.LOAD="load",n.ERROR="error",n.UPDATE="update",n.CONTROLLER_REQUEST="controller_request",n.CONTROLLER_RESPONSE="controller_response",n.EMOTE_EVENT="emote_event"})(e.PreviewMessageType||(e.PreviewMessageType={})),(function(n){n.schema={type:"string",enum:Object.values(n)},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.PreviewMessageType||(e.PreviewMessageType={}));const t=(n,i,o,u="*")=>{const c={type:i,payload:o};n.postMessage(c,u)};e.sendMessage=t})(Og)),Og}var Ag={},cM;function FV(){return cM||(cM=1,Object.defineProperty(Ag,"__esModule",{value:!0})),Ag}var Pg={},dM;function VV(){return dM||(dM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewProjection=void 0;const a=rt();(function(t){t.ORTHOGRAPHIC="orthographic",t.PERSPECTIVE="perspective"})(e.PreviewProjection||(e.PreviewProjection={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewProjection||(e.PreviewProjection={}))})(Pg)),Pg}var Ig={},fM;function HV(){return fM||(fM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewType=void 0;const a=rt();(function(t){t.TEXTURE="texture",t.WEARABLE="wearable",t.AVATAR="avatar"})(e.PreviewType||(e.PreviewType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewType||(e.PreviewType={}))})(Ig)),Ig}var Rg={},pM;function zV(){return pM||(pM=1,Object.defineProperty(Rg,"__esModule",{value:!0})),Rg}var Mg={},yM;function WV(){return yM||(yM=1,Object.defineProperty(Mg,"__esModule",{value:!0})),Mg}var Ng={},mM;function GV(){return mM||(mM=1,Object.defineProperty(Ng,"__esModule",{value:!0})),Ng}var Cg={},hM;function KV(){return hM||(hM=1,Object.defineProperty(Cg,"__esModule",{value:!0})),Cg}var jg={},gM;function YV(){return gM||(gM=1,Object.defineProperty(jg,"__esModule",{value:!0})),jg}var Lg={},vM;function XV(){return vM||(vM=1,Object.defineProperty(Lg,"__esModule",{value:!0})),Lg}var Dg={},_M;function JV(){return _M||(_M=1,Object.defineProperty(Dg,"__esModule",{value:!0})),Dg}var qg={},EM;function QV(){return EM||(EM=1,Object.defineProperty(qg,"__esModule",{value:!0})),qg}var bM;function ZV(){return bM||(bM=1,(function(e){var a=Po&&Po.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Po&&Po.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(LV(),e),t(DV(),e),t(qV(),e),t(kV(),e),t(UV(),e),t(BV(),e),t(FV(),e),t(VV(),e),t(HV(),e),t(zV(),e),t(WV(),e),t(GV(),e),t(KV(),e),t(YV(),e),t(XV(),e),t(JV(),e),t(QV(),e)})(Po)),Po}var kg={},wM;function $V(){return wM||(wM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LinkerAuthorization=void 0;const a=rt();(function(t){t.schema={type:"object",properties:{name:{type:"string"},desc:{type:"string"},startDate:{type:"string",nullable:!0},endDate:{type:"string",nullable:!0},contactInfo:{type:"object",properties:{name:{type:"string"}},required:["name"]},addresses:{type:"array",items:{type:"string"},minItems:1},plots:{type:"array",items:{type:"string"},minItems:1}},required:["name","desc","contactInfo","addresses","plots"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.LinkerAuthorization||(e.LinkerAuthorization={}))})(kg)),kg}var TM;function xV(){return TM||(TM=1,(function(e){var a=Zn&&Zn.__createBinding||(Object.create?(function(ye,Me,Ne,qe){qe===void 0&&(qe=Ne);var we=Object.getOwnPropertyDescriptor(Me,Ne);(!we||("get"in we?!Me.__esModule:we.writable||we.configurable))&&(we={enumerable:!0,get:function(){return Me[Ne]}}),Object.defineProperty(ye,qe,we)}):(function(ye,Me,Ne,qe){qe===void 0&&(qe=Ne),ye[qe]=Me[Ne]})),t=Zn&&Zn.__setModuleDefault||(Object.create?(function(ye,Me){Object.defineProperty(ye,"default",{enumerable:!0,value:Me})}):function(ye,Me){ye.default=Me}),n=Zn&&Zn.__importStar||function(ye){if(ye&&ye.__esModule)return ye;var Me={};if(ye!=null)for(var Ne in ye)Ne!=="default"&&Object.prototype.hasOwnProperty.call(ye,Ne)&&a(Me,ye,Ne);return t(Me,ye),Me},i=Zn&&Zn.__exportStar||function(ye,Me){for(var Ne in ye)Ne!=="default"&&!Object.prototype.hasOwnProperty.call(Me,Ne)&&a(Me,ye,Ne)};Object.defineProperty(e,"__esModule",{value:!0}),e.sdk=e.isInsideWorldLimits=e.getWorld=e.World=e.GenderFilterOption=e.WearableGender=e.Store=e.AnalyticsDayDataSortBy=e.PeriodCreation=e.RentalListingCreation=e.RentalsListingsSortBy=e.RentalsListingsFilterByCategory=e.RentalsListingSortDirection=e.RentalStatus=e.SaleSortBy=e.Sale=e.SaleType=e.Rarity=e.ProviderType=e.OrderSortBy=e.Order=e.CatalogSortDirection=e.CatalogSortBy=e.NFTSortBy=e.NFT=e.NFTCategory=e.Network=e.MintSortBy=e.Mint=e.MetaTransaction=e.ListingStatus=e.ItemSortBy=e.Item=e.ContractSortBy=e.Contract=e.CollectionSortBy=e.Collection=e.getChainId=e.ChainName=e.getURNProtocol=e.getChainName=e.ChainId=e.AccountSortBy=e.Account=e.BidSortBy=e.Bid=void 0;const o=n(gV());e.sdk=o,i(rt(),e);var u=vV();Object.defineProperty(e,"Bid",{enumerable:!0,get:function(){return u.Bid}}),Object.defineProperty(e,"BidSortBy",{enumerable:!0,get:function(){return u.BidSortBy}});var c=_V();Object.defineProperty(e,"Account",{enumerable:!0,get:function(){return c.Account}}),Object.defineProperty(e,"AccountSortBy",{enumerable:!0,get:function(){return c.AccountSortBy}});var f=ci();Object.defineProperty(e,"ChainId",{enumerable:!0,get:function(){return f.ChainId}}),Object.defineProperty(e,"getChainName",{enumerable:!0,get:function(){return f.getChainName}}),Object.defineProperty(e,"getURNProtocol",{enumerable:!0,get:function(){return f.getURNProtocol}});var p=Iq();Object.defineProperty(e,"ChainName",{enumerable:!0,get:function(){return p.ChainName}}),Object.defineProperty(e,"getChainId",{enumerable:!0,get:function(){return p.getChainId}});var y=EV();Object.defineProperty(e,"Collection",{enumerable:!0,get:function(){return y.Collection}}),Object.defineProperty(e,"CollectionSortBy",{enumerable:!0,get:function(){return y.CollectionSortBy}});var m=bV();Object.defineProperty(e,"Contract",{enumerable:!0,get:function(){return m.Contract}}),Object.defineProperty(e,"ContractSortBy",{enumerable:!0,get:function(){return m.ContractSortBy}});var g=wV();Object.defineProperty(e,"Item",{enumerable:!0,get:function(){return g.Item}}),Object.defineProperty(e,"ItemSortBy",{enumerable:!0,get:function(){return g.ItemSortBy}});var S=Qb();Object.defineProperty(e,"ListingStatus",{enumerable:!0,get:function(){return S.ListingStatus}});var M=TV();Object.defineProperty(e,"MetaTransaction",{enumerable:!0,get:function(){return M.MetaTransaction}});var R=SV();Object.defineProperty(e,"Mint",{enumerable:!0,get:function(){return R.Mint}}),Object.defineProperty(e,"MintSortBy",{enumerable:!0,get:function(){return R.MintSortBy}});var I=li();Object.defineProperty(e,"Network",{enumerable:!0,get:function(){return I.Network}});var N=vf();Object.defineProperty(e,"NFTCategory",{enumerable:!0,get:function(){return N.NFTCategory}});var E=Rq();Object.defineProperty(e,"NFT",{enumerable:!0,get:function(){return E.NFT}}),Object.defineProperty(e,"NFTSortBy",{enumerable:!0,get:function(){return E.NFTSortBy}});var P=OV();Object.defineProperty(e,"CatalogSortBy",{enumerable:!0,get:function(){return P.CatalogSortBy}}),Object.defineProperty(e,"CatalogSortDirection",{enumerable:!0,get:function(){return P.CatalogSortDirection}});var T=AV();Object.defineProperty(e,"Order",{enumerable:!0,get:function(){return T.Order}}),Object.defineProperty(e,"OrderSortBy",{enumerable:!0,get:function(){return T.OrderSortBy}});var v=PV();Object.defineProperty(e,"ProviderType",{enumerable:!0,get:function(){return v.ProviderType}});var O=gf();Object.defineProperty(e,"Rarity",{enumerable:!0,get:function(){return O.Rarity}});var C=Mq();Object.defineProperty(e,"SaleType",{enumerable:!0,get:function(){return C.SaleType}});var z=IV();Object.defineProperty(e,"Sale",{enumerable:!0,get:function(){return z.Sale}}),Object.defineProperty(e,"SaleSortBy",{enumerable:!0,get:function(){return z.SaleSortBy}});var U=RV();Object.defineProperty(e,"RentalStatus",{enumerable:!0,get:function(){return U.RentalStatus}}),Object.defineProperty(e,"RentalsListingSortDirection",{enumerable:!0,get:function(){return U.RentalsListingSortDirection}}),Object.defineProperty(e,"RentalsListingsFilterByCategory",{enumerable:!0,get:function(){return U.RentalsListingsFilterByCategory}}),Object.defineProperty(e,"RentalsListingsSortBy",{enumerable:!0,get:function(){return U.RentalsListingsSortBy}}),Object.defineProperty(e,"RentalListingCreation",{enumerable:!0,get:function(){return U.RentalListingCreation}}),Object.defineProperty(e,"PeriodCreation",{enumerable:!0,get:function(){return U.PeriodCreation}});var K=MV();Object.defineProperty(e,"AnalyticsDayDataSortBy",{enumerable:!0,get:function(){return K.AnalyticsDayDataSortBy}});var ae=NV();Object.defineProperty(e,"Store",{enumerable:!0,get:function(){return ae.Store}});var _e=CV();Object.defineProperty(e,"WearableGender",{enumerable:!0,get:function(){return _e.WearableGender}}),Object.defineProperty(e,"GenderFilterOption",{enumerable:!0,get:function(){return _e.GenderFilterOption}});var be=jV();Object.defineProperty(e,"World",{enumerable:!0,get:function(){return be.World}}),Object.defineProperty(e,"getWorld",{enumerable:!0,get:function(){return be.getWorld}}),Object.defineProperty(e,"isInsideWorldLimits",{enumerable:!0,get:function(){return be.isInsideWorldLimits}}),i(ZV(),e),i(Jb(),e),i(nu(),e),i($V(),e),i(Xb(),e),i(Pq(),e)})(Zn)),Zn}var SM;function Nq(){if(SM)return Gi;SM=1,Object.defineProperty(Gi,"__esModule",{value:!0}),Gi.LocalStorageUtils=Gi.Action=Gi.SINGLE_SIGN_ON_TARGET=void 0;const e=xo(),a=JF(),t=xV();Gi.SINGLE_SIGN_ON_TARGET="single-sign-on";var n;(function(u){u.GET_IDENTITY="get-identity",u.SET_IDENTITY="set-identity",u.GET_CONNECTION_DATA="get-connection-data",u.SET_CONNECTION_DATA="set-connection-data",u.INIT="init"})(n||(Gi.Action=n={}));var i;(function(u){u.IDENTITY_KEY="single-sign-on-v2-identity",u.CONNECTION_DATA_KEY="single-sign-on-v2-connection-data";function c(g){o.validateAddress(g);const S=localStorage.getItem(m(g));if(!S)return null;const M=JSON.parse(S);o.validateAuthIdentity(M);const R={...M,expiration:new Date(M.expiration)};return R.expiration=new Date(R.expiration),R.expiration.getTime()<=Date.now()?null:R}u.getIdentity=c;function f(g,S){o.validateAddress(g);const M=m(g);S?(o.validateAuthIdentity(JSON.parse(JSON.stringify(S))),localStorage.setItem(M,JSON.stringify(S))):localStorage.removeItem(M)}u.setIdentity=f;function p(){const g=localStorage.getItem(u.CONNECTION_DATA_KEY);if(!g)return null;const S=JSON.parse(g);return o.validateConnectionData(S),S}u.getConnectionData=p;function y(g){g?(o.validateConnectionData(g),localStorage.setItem(u.CONNECTION_DATA_KEY,JSON.stringify(g))):localStorage.removeItem(u.CONNECTION_DATA_KEY)}u.setConnectionData=y;function m(g){return`${u.IDENTITY_KEY}-${g}`}})(i||(Gi.LocalStorageUtils=i={}));var o;return(function(u){const c=new e.default;(0,a.default)(c);const f={type:"string",pattern:"^0x[a-fA-F0-9]{40}$"},p={type:"object",properties:{provider:t.ProviderType.schema,address:f},required:["address","provider"],additionalProperties:!1},y={type:"object",properties:{authChain:t.AuthChain.schema,expiration:{type:"string",format:"date-time"},ephemeralIdentity:{type:"object",properties:{address:{type:"string"},privateKey:{type:"string"},publicKey:{type:"string"}},required:["address","privateKey","publicKey"],additionalProperties:!1}},required:["ephemeralIdentity","authChain","expiration"],additionalProperties:!1},m=c.compile(p),g=c.compile(y),S=c.compile(f);function M(N){if(!m(N))throw new Error(`Invalid connection data: ${JSON.stringify(m.errors)}`)}u.validateConnectionData=M;function R(N){if(!g(N))throw new Error(`Invalid auth identity: ${JSON.stringify(g.errors)}`)}u.validateAuthIdentity=R;function I(N){if(!S(N))throw new Error(`Invalid address: ${JSON.stringify(S.errors)}`)}u.validateAddress=I})(o||(o={})),Gi}var OM;function eH(){if(OM)return Hu;OM=1,Object.defineProperty(Hu,"__esModule",{value:!0}),Hu.SingleSignOn=void 0;const e=KF(),a=Nq(),t=a.SINGLE_SIGN_ON_TARGET;var n;(function(o){o[o.NOT_INITIALIZED=0]="NOT_INITIALIZED",o[o.INITIALIZING=1]="INITIALIZING",o[o.INITIALIZED=2]="INITIALIZED"})(n||(n={}));let i=class Cq{constructor(){this.initState=n.NOT_INITIALIZED,this.isLocal=!1,this.src=null,this.idCounter=1}static getInstance(){return this.instance||(this.instance=new Cq),this.instance}async init({src:u,isUrlOptions:c,timeout:f}={}){if(this.initState!==n.NOT_INITIALIZED){console.log("SSO cannot be initialized more than once");return}this.initState=n.INITIALIZING;try{if(!u)throw new Error("Using local by configuration");if(!(0,e.default)(u,{protocols:["https"],require_valid_protocol:!0,...c??{}}))throw new Error(`Invalid url: ${u}`);if(document.getElementById(t))throw new Error("SSO Element was not created by this client");const p=document.createElement("iframe");p.id=t,p.src=u,p.style.width="0",p.style.height="0",p.style.border="none",p.style.position="absolute",document.body.appendChild(p),await Promise.race([this.waitForInitMessage(),new Promise((y,m)=>setTimeout(()=>m(new Error("Initialization timeout")),f??2e3))]),console.log("SSO initialized")}catch(p){this.isLocal=!0,console.log("SSO initialized locally, reason: "+p.message)}this.initState=n.INITIALIZED,this.src=u??null}async setConnectionData(u){await this.handle(a.Action.SET_CONNECTION_DATA,u)}async getConnectionData(){return await this.handle(a.Action.GET_CONNECTION_DATA)}async setIdentity(u,c){await this.handle(a.Action.SET_IDENTITY,{address:u,identity:c})}async getIdentity(u){return await this.handle(a.Action.GET_IDENTITY,u)}async handle(u,c){if(this.initState!==n.INITIALIZED)throw new Error("SSO is not initialized");if(this.isLocal)switch(u){case a.Action.SET_CONNECTION_DATA:return a.LocalStorageUtils.setConnectionData(c);case a.Action.GET_CONNECTION_DATA:return a.LocalStorageUtils.getConnectionData();case a.Action.SET_IDENTITY:const{address:f,identity:p}=c;return a.LocalStorageUtils.setIdentity(f,p);case a.Action.GET_IDENTITY:return a.LocalStorageUtils.getIdentity(c);default:throw new Error("Unsupported action")}else{const f=this.getIframeWindow(),p=this.idCounter++,y=this.waitForActionResponse(p,u);return f.postMessage({target:a.SINGLE_SIGN_ON_TARGET,id:p,action:u,payload:c},this.src),y}}getIframeWindow(){const u=document.getElementById(t);if(!u)throw new Error("Unable to obtain the SSO iframe element");if(u.tagName!=="IFRAME")throw new Error("The SSO element is not an iframe");const c=u;if(new URL(c.src).origin!==new URL(this.src).origin)throw new Error("The SSO iframe src has been modified");const f=c.contentWindow;if(!f)throw new Error("Unable to obtain the SSO iframe window");return f}waitForInitMessage(){return new Promise((u,c)=>{const f=p=>{p.data.target!==a.SINGLE_SIGN_ON_TARGET||p.data.action!==a.Action.INIT||(window.removeEventListener("message",f),p.data.ok||c(new Error(p.data.payload)),u())};window.addEventListener("message",f)})}waitForActionResponse(u,c){return new Promise((f,p)=>{const y=({data:m})=>{m.target!==a.SINGLE_SIGN_ON_TARGET||m.id!==u||m.action!==c||(window.removeEventListener("message",y),m.ok?f(m.payload):p(m.payload))};window.addEventListener("message",y)})}};return Hu.SingleSignOn=i,i.instance=null,Hu}var AM;function tH(){return AM||(AM=1,(function(e){var a=vo&&vo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=vo&&vo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(eH(),e),t(Nq(),e)})(vo)),vo}var yb=tH(),Ug={},xn={},PM;function Xe(){if(PM)return xn;PM=1;var e=xn&&xn.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(xn,"__esModule",{value:!0}),xn.validateType=xn.generateLazyValidator=xn.Ajv=void 0;const a=e(xo());xn.Ajv=a.default;const t=e(ff()),n=e(pf());function i(u,c){let f=null;const p=(y,m)=>{if(!f){const g=new a.default({$data:!0,allErrors:!0});(0,t.default)(g),(0,n.default)(g,{singleError:!0}),c?.forEach(S=>g.addKeyword(S)),f=g.compile(u),Object.defineProperty(p,"errors",{get(){return f?.errors}})}return f(y,m)};return p}xn.generateLazyValidator=i;function o(u,c){return u.validate(c)}return xn.validateType=o,xn}var Bg={},IM;function jq(){return IM||(IM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getChainId=e.ChainName=void 0;const a=Xe(),t=Dn();var n;(function(o){o.ETHEREUM_MAINNET="Ethereum Mainnet",o.ETHEREUM_ROPSTEN="Ropsten",o.ETHEREUM_RINKEBY="Rinkeby",o.ETHEREUM_GOERLI="Goerli",o.ETHEREUM_KOVAN="Kovan",o.ETHEREUM_SEPOLIA="Sepolia",o.MATIC_MAINNET="Polygon",o.MATIC_MUMBAI="Mumbai",o.MATIC_AMOY="Amoy",o.AVALANCHE_MAINNET="Avalanche",o.BINANCE_MAINNET="Binance Smart Chain",o.ARBITRUM_MAINNET="Arbitrum",o.OPTIMISM_MAINNET="Optimism",o.FANTOM_MAINNET="Fantom"})(n=e.ChainName||(e.ChainName={}));function i(o){switch(o){case n.ETHEREUM_MAINNET:return t.ChainId.ETHEREUM_MAINNET;case n.ETHEREUM_ROPSTEN:return t.ChainId.ETHEREUM_ROPSTEN;case n.ETHEREUM_RINKEBY:return t.ChainId.ETHEREUM_RINKEBY;case n.ETHEREUM_GOERLI:return t.ChainId.ETHEREUM_GOERLI;case n.ETHEREUM_KOVAN:return t.ChainId.ETHEREUM_KOVAN;case n.ETHEREUM_SEPOLIA:return t.ChainId.ETHEREUM_SEPOLIA;case n.MATIC_MAINNET:return t.ChainId.MATIC_MAINNET;case n.MATIC_MUMBAI:return t.ChainId.MATIC_MUMBAI;case n.MATIC_AMOY:return t.ChainId.MATIC_AMOY;case n.AVALANCHE_MAINNET:return t.ChainId.AVALANCHE_MAINNET;case n.BINANCE_MAINNET:return t.ChainId.BSC_MAINNET;case n.ARBITRUM_MAINNET:return t.ChainId.ARBITRUM_MAINNET;case n.OPTIMISM_MAINNET:return t.ChainId.OPTIMISM_MAINNET;case n.FANTOM_MAINNET:return t.ChainId.FANTOM_MAINNET;default:return null}}e.getChainId=i,(function(o){o.schema={type:"string",enum:Object.values(o)},o.validate=(0,a.generateLazyValidator)(o.schema)})(n=e.ChainName||(e.ChainName={}))})(Bg)),Bg}var Fg={},RM;function di(){return RM||(RM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Network=void 0;const a=Xe();(function(t){t.ETHEREUM="ETHEREUM",t.MATIC="MATIC",t.AVALANCHE="AVALANCHE",t.BSC="BINANCE SMART CHAIN",t.OPTIMISM="OPTIMISM",t.ARBITRUM="ARBITRUM",t.FANTOM="FANTOM"})(e.Network||(e.Network={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Network||(e.Network={}))})(Fg)),Fg}var MM;function Dn(){return MM||(MM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getNetwork=e.getNetworkMapping=e.getURNProtocol=e.getChainName=e.ChainId=void 0;const a=Xe(),t=jq(),n=di();var i;(function(p){p[p.ETHEREUM_MAINNET=1]="ETHEREUM_MAINNET",p[p.ETHEREUM_ROPSTEN=3]="ETHEREUM_ROPSTEN",p[p.ETHEREUM_RINKEBY=4]="ETHEREUM_RINKEBY",p[p.ETHEREUM_GOERLI=5]="ETHEREUM_GOERLI",p[p.ETHEREUM_KOVAN=42]="ETHEREUM_KOVAN",p[p.ETHEREUM_SEPOLIA=11155111]="ETHEREUM_SEPOLIA",p[p.MATIC_MAINNET=137]="MATIC_MAINNET",p[p.MATIC_MUMBAI=80001]="MATIC_MUMBAI",p[p.MATIC_AMOY=80002]="MATIC_AMOY",p[p.BSC_MAINNET=56]="BSC_MAINNET",p[p.OPTIMISM_MAINNET=10]="OPTIMISM_MAINNET",p[p.ARBITRUM_MAINNET=42161]="ARBITRUM_MAINNET",p[p.FANTOM_MAINNET=250]="FANTOM_MAINNET",p[p.AVALANCHE_MAINNET=43114]="AVALANCHE_MAINNET"})(i=e.ChainId||(e.ChainId={}));function o(p){switch(p){case i.ETHEREUM_MAINNET:return t.ChainName.ETHEREUM_MAINNET;case i.ETHEREUM_ROPSTEN:return t.ChainName.ETHEREUM_ROPSTEN;case i.ETHEREUM_RINKEBY:return t.ChainName.ETHEREUM_RINKEBY;case i.ETHEREUM_GOERLI:return t.ChainName.ETHEREUM_GOERLI;case i.ETHEREUM_KOVAN:return t.ChainName.ETHEREUM_KOVAN;case i.ETHEREUM_SEPOLIA:return t.ChainName.ETHEREUM_SEPOLIA;case i.MATIC_MAINNET:return t.ChainName.MATIC_MAINNET;case i.MATIC_MUMBAI:return t.ChainName.MATIC_MUMBAI;case i.MATIC_AMOY:return t.ChainName.MATIC_AMOY;case i.BSC_MAINNET:return t.ChainName.BINANCE_MAINNET;case i.ARBITRUM_MAINNET:return t.ChainName.ARBITRUM_MAINNET;case i.OPTIMISM_MAINNET:return t.ChainName.OPTIMISM_MAINNET;case i.FANTOM_MAINNET:return t.ChainName.FANTOM_MAINNET;case i.AVALANCHE_MAINNET:return t.ChainName.AVALANCHE_MAINNET;default:return null}}e.getChainName=o;function u(p){switch(p){case i.ETHEREUM_MAINNET:return"ethereum";case i.ETHEREUM_ROPSTEN:return"ropsten";case i.ETHEREUM_RINKEBY:return"rinkeby";case i.ETHEREUM_GOERLI:return"goerli";case i.ETHEREUM_KOVAN:return"kovan";case i.ETHEREUM_SEPOLIA:return"sepolia";case i.MATIC_MAINNET:return"matic";case i.MATIC_MUMBAI:return"mumbai";case i.MATIC_AMOY:return"amoy";default:return""}}e.getURNProtocol=u;function c(p){const y={[n.Network.BSC]:i.BSC_MAINNET,[n.Network.OPTIMISM]:i.OPTIMISM_MAINNET,[n.Network.ARBITRUM]:i.ARBITRUM_MAINNET,[n.Network.FANTOM]:i.FANTOM_MAINNET,[n.Network.AVALANCHE]:i.AVALANCHE_MAINNET};switch(p){case i.ETHEREUM_MAINNET:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_MAINNET,[n.Network.MATIC]:i.MATIC_MAINNET},y);case i.ETHEREUM_ROPSTEN:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_ROPSTEN,[n.Network.MATIC]:i.MATIC_MUMBAI},y);case i.ETHEREUM_RINKEBY:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_RINKEBY,[n.Network.MATIC]:i.MATIC_MUMBAI},y);case i.ETHEREUM_GOERLI:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_GOERLI,[n.Network.MATIC]:i.MATIC_MUMBAI},y);case i.ETHEREUM_KOVAN:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_KOVAN,[n.Network.MATIC]:i.MATIC_MUMBAI},y);case i.ETHEREUM_SEPOLIA:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_SEPOLIA,[n.Network.MATIC]:i.MATIC_AMOY},y);case i.MATIC_MAINNET:return Object.assign({[n.Network.ETHEREUM]:i.MATIC_MAINNET,[n.Network.MATIC]:i.MATIC_MAINNET},y);case i.MATIC_MUMBAI:return Object.assign({[n.Network.ETHEREUM]:i.MATIC_MUMBAI,[n.Network.MATIC]:i.MATIC_MUMBAI},y);case i.MATIC_AMOY:return Object.assign({[n.Network.ETHEREUM]:i.MATIC_AMOY,[n.Network.MATIC]:i.MATIC_AMOY},y);default:return Object.assign({[n.Network.ETHEREUM]:i.ETHEREUM_MAINNET,[n.Network.MATIC]:i.MATIC_MAINNET},y)}}e.getNetworkMapping=c;function f(p){switch(p){case i.ETHEREUM_MAINNET:case i.ETHEREUM_ROPSTEN:case i.ETHEREUM_GOERLI:case i.ETHEREUM_KOVAN:case i.ETHEREUM_RINKEBY:case i.ETHEREUM_SEPOLIA:return n.Network.ETHEREUM;case i.MATIC_MAINNET:case i.MATIC_MUMBAI:case i.MATIC_AMOY:return n.Network.MATIC;case i.BSC_MAINNET:return n.Network.BSC;case i.OPTIMISM_MAINNET:return n.Network.OPTIMISM;case i.ARBITRUM_MAINNET:return n.Network.ARBITRUM;case i.FANTOM_MAINNET:return n.Network.FANTOM;case i.AVALANCHE_MAINNET:return n.Network.AVALANCHE}}e.getNetwork=f,(function(p){p.schema={type:"number",enum:Object.values(p)},p.validate=(0,a.generateLazyValidator)(p.schema)})(i=e.ChainId||(e.ChainId={}))})(Ug)),Ug}var wt=Dn(),Vg={},NM;function Lq(){return NM||(NM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProviderType=void 0;const a=Xe();(function(t){t.INJECTED="injected",t.MAGIC="magic",t.MAGIC_TEST="magic_test",t.FORTMATIC="formatic",t.NETWORK="network",t.WALLET_CONNECT="wallet_connect",t.WALLET_CONNECT_V2="wallet_connect_v2",t.WALLET_LINK="wallet_link",t.METAMASK_MOBILE="metamask_mobile",t.AUTH_SERVER="auth_server"})(e.ProviderType||(e.ProviderType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.ProviderType||(e.ProviderType={}))})(Vg)),Vg}var Ct=Lq(),Xi;(function(e){e.Update="Web3ReactUpdate",e.Error="Web3ReactError",e.Deactivate="Web3ReactDeactivate"})(Xi||(Xi={}));var zd={exports:{}},CM;function rH(){if(CM)return zd.exports;CM=1;var e=typeof Reflect=="object"?Reflect:null,a=e&&typeof e.apply=="function"?e.apply:function(v,O,C){return Function.prototype.apply.call(v,O,C)},t;e&&typeof e.ownKeys=="function"?t=e.ownKeys:Object.getOwnPropertySymbols?t=function(v){return Object.getOwnPropertyNames(v).concat(Object.getOwnPropertySymbols(v))}:t=function(v){return Object.getOwnPropertyNames(v)};function n(T){console&&console.warn&&console.warn(T)}var i=Number.isNaN||function(v){return v!==v};function o(){o.init.call(this)}zd.exports=o,zd.exports.once=N,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var u=10;function c(T){if(typeof T!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof T)}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(T){if(typeof T!="number"||T<0||i(T))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+T+".");u=T}}),o.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(v){if(typeof v!="number"||v<0||i(v))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+v+".");return this._maxListeners=v,this};function f(T){return T._maxListeners===void 0?o.defaultMaxListeners:T._maxListeners}o.prototype.getMaxListeners=function(){return f(this)},o.prototype.emit=function(v){for(var O=[],C=1;C<arguments.length;C++)O.push(arguments[C]);var z=v==="error",U=this._events;if(U!==void 0)z=z&&U.error===void 0;else if(!z)return!1;if(z){var K;if(O.length>0&&(K=O[0]),K instanceof Error)throw K;var ae=new Error("Unhandled error."+(K?" ("+K.message+")":""));throw ae.context=K,ae}var _e=U[v];if(_e===void 0)return!1;if(typeof _e=="function")a(_e,this,O);else for(var be=_e.length,ye=M(_e,be),C=0;C<be;++C)a(ye[C],this,O);return!0};function p(T,v,O,C){var z,U,K;if(c(O),U=T._events,U===void 0?(U=T._events=Object.create(null),T._eventsCount=0):(U.newListener!==void 0&&(T.emit("newListener",v,O.listener?O.listener:O),U=T._events),K=U[v]),K===void 0)K=U[v]=O,++T._eventsCount;else if(typeof K=="function"?K=U[v]=C?[O,K]:[K,O]:C?K.unshift(O):K.push(O),z=f(T),z>0&&K.length>z&&!K.warned){K.warned=!0;var ae=new Error("Possible EventEmitter memory leak detected. "+K.length+" "+String(v)+" listeners added. Use emitter.setMaxListeners() to increase limit");ae.name="MaxListenersExceededWarning",ae.emitter=T,ae.type=v,ae.count=K.length,n(ae)}return T}o.prototype.addListener=function(v,O){return p(this,v,O,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(v,O){return p(this,v,O,!0)};function y(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function m(T,v,O){var C={fired:!1,wrapFn:void 0,target:T,type:v,listener:O},z=y.bind(C);return z.listener=O,C.wrapFn=z,z}o.prototype.once=function(v,O){return c(O),this.on(v,m(this,v,O)),this},o.prototype.prependOnceListener=function(v,O){return c(O),this.prependListener(v,m(this,v,O)),this},o.prototype.removeListener=function(v,O){var C,z,U,K,ae;if(c(O),z=this._events,z===void 0)return this;if(C=z[v],C===void 0)return this;if(C===O||C.listener===O)--this._eventsCount===0?this._events=Object.create(null):(delete z[v],z.removeListener&&this.emit("removeListener",v,C.listener||O));else if(typeof C!="function"){for(U=-1,K=C.length-1;K>=0;K--)if(C[K]===O||C[K].listener===O){ae=C[K].listener,U=K;break}if(U<0)return this;U===0?C.shift():R(C,U),C.length===1&&(z[v]=C[0]),z.removeListener!==void 0&&this.emit("removeListener",v,ae||O)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(v){var O,C,z;if(C=this._events,C===void 0)return this;if(C.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):C[v]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete C[v]),this;if(arguments.length===0){var U=Object.keys(C),K;for(z=0;z<U.length;++z)K=U[z],K!=="removeListener"&&this.removeAllListeners(K);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(O=C[v],typeof O=="function")this.removeListener(v,O);else if(O!==void 0)for(z=O.length-1;z>=0;z--)this.removeListener(v,O[z]);return this};function g(T,v,O){var C=T._events;if(C===void 0)return[];var z=C[v];return z===void 0?[]:typeof z=="function"?O?[z.listener||z]:[z]:O?I(z):M(z,z.length)}o.prototype.listeners=function(v){return g(this,v,!0)},o.prototype.rawListeners=function(v){return g(this,v,!1)},o.listenerCount=function(T,v){return typeof T.listenerCount=="function"?T.listenerCount(v):S.call(T,v)},o.prototype.listenerCount=S;function S(T){var v=this._events;if(v!==void 0){var O=v[T];if(typeof O=="function")return 1;if(O!==void 0)return O.length}return 0}o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]};function M(T,v){for(var O=new Array(v),C=0;C<v;++C)O[C]=T[C];return O}function R(T,v){for(;v+1<T.length;v++)T[v]=T[v+1];T.pop()}function I(T){for(var v=new Array(T.length),O=0;O<v.length;++O)v[O]=T[O].listener||T[O];return v}function N(T,v){return new Promise(function(O,C){function z(K){T.removeListener(v,U),C(K)}function U(){typeof T.removeListener=="function"&&T.removeListener("error",z),O([].slice.call(arguments))}P(T,v,U,{once:!0}),v!=="error"&&E(T,z,{once:!0})})}function E(T,v,O){typeof T.on=="function"&&P(T,"error",v,O)}function P(T,v,O,C){if(typeof T.on=="function")C.once?T.once(v,O):T.on(v,O);else if(typeof T.addEventListener=="function")T.addEventListener(v,function z(U){C.once&&T.removeEventListener(v,z),O(U)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof T)}return zd.exports}var Dq=rH();const b6=B2(Dq);function nH(e,a){e.prototype=Object.create(a.prototype),e.prototype.constructor=e,e.__proto__=a}var iu=(function(e){nH(a,e);function a(n){var i,o=n===void 0?{}:n,u=o.supportedChainIds;return i=e.call(this)||this,i.supportedChainIds=u,i}var t=a.prototype;return t.emitUpdate=function(i){this.emit(Xi.Update,i)},t.emitError=function(i){this.emit(Xi.Error,i)},t.emitDeactivate=function(){this.emit(Xi.Deactivate)},a})(Dq.EventEmitter);const iH="modulepreload",aH=function(e){return"https://cdn.decentraland.org/@dcl-regenesislabs/mobile-hub/1.0.0-20717561427.commit-3ab1660/"+e},jM={},Pl=function(a,t,n){let i=Promise.resolve();if(t&&t.length>0){let f=function(p){return Promise.all(p.map(y=>Promise.resolve(y).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),c=u?.nonce||u?.getAttribute("nonce");i=f(t.map(p=>{if(p=aH(p),p in jM)return;jM[p]=!0;const y=p.endsWith(".css"),m=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${m}`))return;const g=document.createElement("link");if(g.rel=y?"stylesheet":iH,y||(g.as="script"),g.crossOrigin="",g.href=p,c&&g.setAttribute("nonce",c),document.head.appendChild(g),y)return new Promise((S,M)=>{g.addEventListener("load",S),g.addEventListener("error",()=>M(new Error(`Unable to preload CSS for ${p}`)))})}))}function o(u){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=u,window.dispatchEvent(c),!c.defaultPrevented)throw u}return i.then(u=>{for(const c of u||[])c.status==="rejected"&&o(c.reason);return a().catch(o)})};var ei={},Io={},Ro={},Hg={},LM;function oH(){return LM||(LM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SceneUpdate=e.SCENE_UPDATE=void 0;const a=Xe();e.SCENE_UPDATE="SCENE_UPDATE",(function(t){t.schema={type:"object",properties:{type:{type:"string",enum:[e.SCENE_UPDATE]},payload:{type:"object",properties:{sceneId:{type:"string"},sceneType:{type:"string"}},additionalProperties:!1,required:["sceneId","sceneType"]}},required:["payload","type"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.SceneUpdate||(e.SceneUpdate={}))})(Hg)),Hg}var zg={},DM;function sH(){return DM||(DM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Update=e.UPDATE=void 0;const a=Xe();e.UPDATE="update",(function(t){t.schema={type:"object",properties:{type:{type:"string",enum:[e.UPDATE]}},required:["type"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Update||(e.Update={}))})(zg)),zg}var qM;function uH(){return qM||(qM=1,(function(e){var a=Ro&&Ro.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Ro&&Ro.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(oH(),e),t(sH(),e)})(Ro)),Ro}var Mo={},Wg={},kM;function lH(){return kM||(kM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProjectType=void 0;const a=Xe();(function(t){t.SCENE="scene",t.SMART_ITEM="smart-item",t.PORTABLE_EXPERIENCE="portable-experience",t.LIBRARY="library"})(e.ProjectType||(e.ProjectType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.ProjectType||(e.ProjectType={}))})(Wg)),Wg}var Gg={},Kg={},UM;function _f(){return UM||(UM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Rarity=void 0;const a=Xe();(function(t){t.UNIQUE="unique",t.MYTHIC="mythic",t.EXOTIC="exotic",t.LEGENDARY="legendary",t.EPIC="epic",t.RARE="rare",t.UNCOMMON="uncommon",t.COMMON="common"})(e.Rarity||(e.Rarity={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema);const n={[t.UNIQUE]:1,[t.MYTHIC]:10,[t.EXOTIC]:50,[t.LEGENDARY]:100,[t.EPIC]:1e3,[t.RARE]:5e3,[t.UNCOMMON]:1e4,[t.COMMON]:1e5},i={[t.UNIQUE]:"#FFE617",[t.MYTHIC]:"#FB7DE3",[t.EXOTIC]:"#E4FFB8",[t.LEGENDARY]:"#A657ED",[t.EPIC]:"#6397F2",[t.RARE]:"#3AD682",[t.UNCOMMON]:"#FF8563",[t.COMMON]:"#D4E0E0"},o={[t.UNIQUE]:"#FFB626",[t.MYTHIC]:"#FF63E1",[t.EXOTIC]:"#CAFF73",[t.LEGENDARY]:"#842DDA",[t.EPIC]:"#3D85E6",[t.RARE]:"#36CF75",[t.UNCOMMON]:"#ED6D4F",[t.COMMON]:"#ABC1C1"};function u(y){return n[y]}t.getMaxSupply=u;function c(y){return o[y]}t.getColor=c;function f(){return[t.UNIQUE,t.MYTHIC,t.EXOTIC,t.LEGENDARY,t.EPIC,t.RARE,t.UNCOMMON,t.COMMON]}t.getRarities=f;function p(y){return[i[y],o[y]]}t.getGradient=p})(e.Rarity||(e.Rarity={}))})(Kg)),Kg}var Yg={},BM;function ns(){return BM||(BM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WearableCategory=void 0;const a=Xe();(function(t){t.EYEBROWS="eyebrows",t.EYES="eyes",t.FACIAL_HAIR="facial_hair",t.HAIR="hair",t.BODY_SHAPE="body_shape",t.MOUTH="mouth",t.UPPER_BODY="upper_body",t.LOWER_BODY="lower_body",t.FEET="feet",t.EARRING="earring",t.EYEWEAR="eyewear",t.HAT="hat",t.HELMET="helmet",t.MASK="mask",t.TIARA="tiara",t.TOP_HEAD="top_head",t.SKIN="skin",t.HANDS_WEAR="hands_wear"})(e.WearableCategory||(e.WearableCategory={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.WearableCategory||(e.WearableCategory={}))})(Yg)),Yg}var Xg={},Jg={},FM;function Zb(){return FM||(FM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BodyShape=void 0;const a=Xe();(function(t){t.MALE="urn:decentraland:off-chain:base-avatars:BaseMale",t.FEMALE="urn:decentraland:off-chain:base-avatars:BaseFemale"})(e.BodyShape||(e.BodyShape={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.BodyShape||(e.BodyShape={}))})(Jg)),Jg}var Qg={},Zg={},VM;function qq(){return VM||(VM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BodyPartCategory=void 0;const a=Xe();(function(t){t.HEAD="head",t.HANDS="hands"})(e.BodyPartCategory||(e.BodyPartCategory={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.BodyPartCategory||(e.BodyPartCategory={}))})(Zg)),Zg}var HM;function $b(){return HM||(HM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.HideableWearableCategory=void 0;const a=ns(),t=Xe(),n=qq();(function(i){i.schema={oneOf:[Object.assign({},a.WearableCategory.schema),Object.assign({},n.BodyPartCategory.schema)]},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.HideableWearableCategory||(e.HideableWearableCategory={}))})(Qg)),Qg}var zM;function xb(){return zM||(zM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WearableRepresentation=void 0;const a=Xe(),t=Zb(),n=$b();(function(i){i.schema={type:"object",properties:{bodyShapes:{type:"array",items:t.BodyShape.schema,minItems:1,uniqueItems:!0},mainFile:{type:"string",minLength:1},contents:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0,contains:{const:{$data:"2/mainFile"}}},overrideHides:{type:"array",items:n.HideableWearableCategory.schema},overrideReplaces:{type:"array",items:n.HideableWearableCategory.schema}},required:["bodyShapes","mainFile","contents","overrideHides","overrideReplaces"]},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.WearableRepresentation||(e.WearableRepresentation={}))})(Xg)),Xg}var No={},Co={},$g={},xg={},WM;function is(){return WM||(WM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.IPFSv1=e.IPFSv2=e.EthAddress=e.Color3=void 0;const a=Xe();(function(t){t.schema={type:"object",required:["r","g","b"],properties:{r:{type:"number",minimum:0,maximum:1},g:{type:"number",minimum:0,maximum:1},b:{type:"number",minimum:0,maximum:1}}};const n=(0,a.generateLazyValidator)(t.schema);t.validate=i=>n(i)})(e.Color3||(e.Color3={})),(function(t){t.schema={type:"string",pattern:"^0x[a-fA-F0-9]{40}$"};const n=new RegExp(t.schema.pattern);t.validate=i=>n.test(i)})(e.EthAddress||(e.EthAddress={})),(function(t){t.schema={type:"string",pattern:"^(ba)[a-zA-Z0-9]{57}$"};const n=new RegExp(t.schema.pattern);t.validate=i=>n.test(i)})(e.IPFSv2||(e.IPFSv2={})),(function(t){t.schema={type:"string",pattern:"^(Qm)[a-zA-Z0-9]{44}$"};const n=new RegExp(t.schema.pattern);t.validate=i=>n.test(i)})(e.IPFSv1||(e.IPFSv1={}))})(xg)),xg}var GM;function kq(){return GM||(GM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Avatar=e.Link=e.LinkUrl=e.AvatarInfo=e.Snapshots=void 0;const a=ns(),t=is(),n=Xe();var i;(function(f){f.schema={type:"object",required:["face256","body"],properties:{face256:t.IPFSv2.schema,body:t.IPFSv2.schema}},f.validate=(0,n.generateLazyValidator)(f.schema)})(i=e.Snapshots||(e.Snapshots={}));var o;(function(f){f.schema={type:"object",required:["bodyShape","eyes","hair","skin"],properties:{bodyShape:{type:"string"},eyes:{type:"object",required:["color"],properties:{color:t.Color3.schema}},hair:{type:"object",required:["color"],properties:{color:t.Color3.schema}},skin:{type:"object",required:["color"],properties:{color:t.Color3.schema}},wearables:{type:"array",items:{type:"string"}},forceRender:{type:"array",nullable:!0,items:a.WearableCategory.schema},emotes:{type:"array",items:{type:"object",properties:{slot:{type:"number"},urn:{type:"string"}},required:["slot","urn"]},nullable:!0},snapshots:i.schema},additionalProperties:!0},f.validate=(0,n.generateLazyValidator)(f.schema)})(o=e.AvatarInfo||(e.AvatarInfo={}));var u;(function(f){f.schema={type:"string",maxLength:2083,pattern:"^(?:https?):\\/\\/[^\\s/$.?#].[^\\s]*$"};const p=new RegExp(f.schema.pattern,"i");f.validate=y=>p.test(y)})(u=e.LinkUrl||(e.LinkUrl={}));var c;(function(f){f.schema={type:"object",required:["title","url"],properties:{title:{type:"string"},url:u.schema}}})(c=e.Link||(e.Link={})),(function(f){f.schema={type:"object",required:["name","description","ethAddress","version","tutorialStep","avatar","hasClaimedName"],properties:{userId:{type:"string"},name:{type:"string"},description:{type:"string"},links:{type:"array",maxItems:5,items:c.schema,nullable:!0},country:{nullable:!0,type:"string"},employmentStatus:{nullable:!0,type:"string"},gender:{nullable:!0,type:"string"},pronouns:{nullable:!0,type:"string"},relationshipStatus:{nullable:!0,type:"string"},sexualOrientation:{nullable:!0,type:"string"},language:{nullable:!0,type:"string"},profession:{nullable:!0,type:"string"},birthdate:{nullable:!0,type:"number"},realName:{nullable:!0,type:"string"},hobbies:{nullable:!0,type:"string"},ethAddress:t.EthAddress.schema,version:{type:"number"},tutorialStep:{type:"number"},email:{type:"string",nullable:!0},blocked:{type:"array",items:{type:"string"},nullable:!0},muted:{type:"array",items:{type:"string"},nullable:!0},interests:{type:"array",items:{type:"string"},nullable:!0},hasClaimedName:{type:"boolean"},hasConnectedWeb3:{type:"boolean",nullable:!0},avatar:o.schema},additionalProperties:!0},f.validate=(0,n.generateLazyValidator)(f.schema)})(e.Avatar||(e.Avatar={}))})($g)),$g}var ev={},KM;function cH(){return KM||(KM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Profile=void 0;const a=Xe(),t=kq();(function(n){n.schema={type:"object",required:["avatars"],properties:{avatars:{type:"array",items:t.Avatar.schema}},additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.Profile||(e.Profile={}))})(ev)),ev}var YM;function dH(){return YM||(YM=1,(function(e){var a=Co&&Co.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Co&&Co.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(kq(),e),t(cH(),e)})(Co)),Co}var tv={},rv={},XM;function Uq(){return XM||(XM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.FeatureToggles=e.portableExperiencesToggles=e.toggles=void 0;const a=Xe();e.toggles=["enabled","disabled"],e.portableExperiencesToggles=[...e.toggles,"hideUi"],(function(t){t.schema={type:"object",properties:{voiceChat:{type:"string",enum:e.toggles,nullable:!0},portableExperiences:{type:"string",enum:e.portableExperiencesToggles,nullable:!0,errorMessage:`valid options are ${e.portableExperiencesToggles.join(", ")}`}},errorMessage:`valid options are ${e.toggles.join(", ")}`,required:[]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.FeatureToggles||(e.FeatureToggles={}))})(rv)),rv}var nv={},JM;function Bq(){return JM||(JM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WorldConfiguration=void 0;const a=Xe();(function(t){t.schema={type:"object",properties:{name:{type:"string",nullable:!0},skybox:{type:"number",nullable:!0},minimapVisible:{type:"boolean",nullable:!0},miniMapConfig:{type:"object",nullable:!0,properties:{visible:{type:"boolean",nullable:!0},dataImage:{type:"string",nullable:!0},estateImage:{type:"string",nullable:!0}}},skyboxConfig:{type:"object",nullable:!0,properties:{fixedTime:{type:"number",nullable:!0},textures:{type:"array",nullable:!0,items:{type:"string"},oneOf:[{minItems:0,maxItems:0},{minItems:1,maxItems:1},{minItems:6,maxItems:6}],errorMessage:"customSkybox must be an array of 0, 1 or 6 strings"}}},fixedAdapter:{type:"string",nullable:!0},placesConfig:{type:"object",nullable:!0,properties:{optOut:{type:"boolean",nullable:!0}}}},required:[]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.WorldConfiguration||(e.WorldConfiguration={}))})(nv)),nv}var iv={},QM;function Fq(){return QM||(QM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SceneParcels=void 0;const a=Xe();(function(t){t.schema={description:'Describes a scene, a set of parcels whose content is treated as the same entity. A list of parcels is listed, for which one of them is considered the "base" for positioning purposes.',type:"object",properties:{base:{type:"string",pattern:"^-?[0-9]+,-?[0-9]+$"},parcels:{type:"array",items:{type:"string",pattern:"^-?[0-9]+,-?[0-9]+$"},minItems:1}},additionalProperties:!0,required:["base","parcels"]},t.schemaValidator=(0,a.generateLazyValidator)(t.schema),t.validate=n=>t.schemaValidator(n)&&n.parcels.includes(n.base)})(e.SceneParcels||(e.SceneParcels={}))})(iv)),iv}var av={},Wu={},ZM;function e0(){return ZM||(ZM=1,Object.defineProperty(Wu,"__esModule",{value:!0}),Wu.displayableProperties=void 0,Wu.displayableProperties={menuBarIcon:{description:"Name of the file used as icon for the MenuBar",type:"string",nullable:!0}}),Wu}var ov={},$M;function Vq(){return $M||($M=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Source=void 0;const a=Xe();(function(t){t.schema={type:"object",properties:{version:{type:"number",nullable:!0},origin:{type:"string"},projectId:{type:"string"},point:{type:"object",properties:{x:{type:"integer"},y:{type:"integer"}},nullable:!0,required:["x","y"]},rotation:{type:"string",enum:["north","east","south","west"],nullable:!0},layout:{type:"object",properties:{rows:{type:"integer"},cols:{type:"integer"}},nullable:!0,required:["rows","cols"]},isEmpty:{type:"boolean",nullable:!0}},additionalProperties:!0,required:["origin","projectId"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Source||(e.Source={}))})(ov)),ov}var sv={},xM;function Hq(){return xM||(xM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SpawnPoint=void 0;const a=Xe();(function(t){t.schema={type:"object",properties:{name:{type:"string",nullable:!0},position:{type:"object",oneOf:[{$ref:"#single-position"},{$ref:"#multi-position"}],required:["x","y","z"]},default:{type:"boolean",nullable:!0},cameraTarget:{type:"object",properties:{x:{type:"number"},y:{type:"number"},z:{type:"number"}},required:["x","y","z"],nullable:!0}},required:["position"],definitions:{"single-position":{$id:"#single-position",type:"object",properties:{x:{type:"number"},y:{type:"number"},z:{type:"number"}},required:["x","y","z"]},"multi-position":{$id:"#multi-position",type:"object",properties:{x:{type:"array",items:{type:"number"},minItems:1},y:{type:"array",items:{type:"number"},minItems:1},z:{type:"array",items:{type:"number"},minItems:1}},required:["x","y","z"]}}},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.SpawnPoint||(e.SpawnPoint={}))})(sv)),sv}var eN;function fH(){return eN||(eN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Scene=e.RequiredPermission=void 0;const a=Xe(),t=e0(),n=Uq(),i=Fq(),o=Vq(),u=Hq(),c=Bq();var f;(function(p){p.ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE="ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE",p.ALLOW_TO_TRIGGER_AVATAR_EMOTE="ALLOW_TO_TRIGGER_AVATAR_EMOTE",p.ALLOW_MEDIA_HOSTNAMES="ALLOW_MEDIA_HOSTNAMES",p.USE_WEB3_API="USE_WEB3_API",p.USE_FETCH="USE_FETCH",p.USE_WEBSOCKET="USE_WEBSOCKET",p.OPEN_EXTERNAL_LINK="OPEN_EXTERNAL_LINK"})(f=e.RequiredPermission||(e.RequiredPermission={})),(function(p){p.schema={type:"object",properties:Object.assign(Object.assign({isPortableExperience:{description:"Define the current scene as a Portable Experience",type:"boolean",nullable:!0},main:{description:"File that contains the entry point of the scene's code",type:"string",minLength:1},scene:i.SceneParcels.schema},t.displayableProperties),{display:{description:"Information related to how should this land be displayed apart from the normal rendering of the scene",type:"object",properties:{title:{description:"A name so other users can identify what the contents of this land should be",type:"string",nullable:!0},favicon:{description:"DEPRECATED. Allow the land owner to set up a favicon to this land",type:"string",nullable:!0},description:{description:"A description that will be shown on client's nav map when the scene is selected",type:"string",nullable:!0},navmapThumbnail:{type:"string",nullable:!0}},nullable:!0,required:[]},owner:{type:"string",nullable:!0},contact:{description:"Describe different ways of contacting the land owner",type:"object",properties:{name:{type:"string",nullable:!0},email:{type:"string",nullable:!0},im:{type:"string",nullable:!0},url:{type:"string",nullable:!0}},nullable:!0,required:[]},tags:{type:"array",items:{type:"string",minLength:1},nullable:!0},source:Object.assign(Object.assign({},o.Source.schema),{nullable:!0}),spawnPoints:{type:"array",items:u.SpawnPoint.schema,nullable:!0},requiredPermissions:{type:"array",items:{type:"string",enum:Object.values(f)},uniqueItems:!0,nullable:!0},featureToggles:Object.assign(Object.assign({},n.FeatureToggles.schema),{nullable:!0}),worldConfiguration:Object.assign(Object.assign({},c.WorldConfiguration.schema),{nullable:!0}),allowedMediaHostnames:{type:"array",items:{type:"string"},nullable:!0}}),additionalProperties:!0,required:["main","scene"],dependencies:{requiredPermissions:{if:{properties:{requiredPermissions:{type:"array",contains:{const:f.ALLOW_MEDIA_HOSTNAMES}}}},then:{properties:{allowedMediaHostnames:{type:"array",items:{type:"string"},nullable:!1,minItems:1}},required:["allowedMediaHostnames"]},else:{properties:{allowedMediaHostnames:{type:["null","array"],nullable:!0,maxItems:0}}}}}},p.validate=(0,a.generateLazyValidator)(p.schema)})(e.Scene||(e.Scene={}))})(av)),av}var tN;function pH(){return tN||(tN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SpawnPoint=e.Source=e.RequiredPermission=e.Scene=e.SceneParcels=e.WorldConfiguration=e.FeatureToggles=void 0;var a=Uq();Object.defineProperty(e,"FeatureToggles",{enumerable:!0,get:function(){return a.FeatureToggles}});var t=Bq();Object.defineProperty(e,"WorldConfiguration",{enumerable:!0,get:function(){return t.WorldConfiguration}});var n=Fq();Object.defineProperty(e,"SceneParcels",{enumerable:!0,get:function(){return n.SceneParcels}});var i=fH();Object.defineProperty(e,"Scene",{enumerable:!0,get:function(){return i.Scene}}),Object.defineProperty(e,"RequiredPermission",{enumerable:!0,get:function(){return i.RequiredPermission}});var o=Vq();Object.defineProperty(e,"Source",{enumerable:!0,get:function(){return o.Source}});var u=Hq();Object.defineProperty(e,"SpawnPoint",{enumerable:!0,get:function(){return u.SpawnPoint}})})(tv)),tv}var jo={},uv={},lv={},rN;function zq(){return rN||(rN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Locale=void 0;const a=Xe();(function(t){t.EN="en",t.ES="es"})(e.Locale||(e.Locale={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Locale||(e.Locale={}))})(lv)),lv}var nN;function Wq(){return nN||(nN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.I18N=void 0;const a=Xe(),t=zq();(function(n){n.schema={type:"object",properties:{code:t.Locale.schema,text:{type:"string"}},additionalProperties:!0,required:["code","text"]},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.I18N||(e.I18N={}))})(uv)),uv}var cv={},iN;function Gq(){return iN||(iN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Metrics=void 0;const a=Xe();(function(t){t.schema={type:"object",properties:{triangles:{type:"number"},materials:{type:"number"},textures:{type:"number"},meshes:{type:"number"},bodies:{type:"number"},entities:{type:"number"}},required:["triangles","materials","textures","meshes","bodies","entities"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Metrics||(e.Metrics={}))})(cv)),cv}var dv={},aN;function t0(){return aN||(aN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isStandard=e.standardProperties=void 0;const a=_f(),t=Xe();e.standardProperties={collectionAddress:{type:"string",nullable:!1},rarity:a.Rarity.schema};const n={type:"object",properties:Object.assign({},e.standardProperties),required:["collectionAddress","rarity"]},i=(0,t.generateLazyValidator)(n);function o(u){return i(u)}e.isStandard=o})(dv)),dv}var fv={},Lo={},pv={},oN;function yH(){return oN||(oN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MerkleProof=void 0;const a=Xe();(function(t){t.schema={type:"object",properties:{proof:{type:"array",items:{type:"string"}},index:{type:"number"},hashingKeys:{type:"array",items:{type:"string"}},entityHash:{type:"string"}},required:["entityHash","hashingKeys","index","proof"],additionalProperties:!0},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.MerkleProof||(e.MerkleProof={}))})(pv)),pv}var sN;function Kq(){return sN||(sN=1,(function(e){var a=Lo&&Lo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Lo&&Lo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(yH(),e)})(Lo)),Lo}var yv={},uN;function r0(){return uN||(uN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createMappingsHelper=e.AddMappingError=e.Mappings=e.Mapping=e.MultipleMapping=e.RangeMapping=e.AnyMapping=e.SingleMapping=e.ContractNetwork=e.MappingType=void 0;const a=Xe();var t;(function(m){m.SINGLE="single",m.ANY="any",m.MULTIPLE="multiple",m.RANGE="range"})(t=e.MappingType||(e.MappingType={}));var n;(function(m){m.MAINNET="mainnet",m.MATIC="matic",m.SEPOLIA="sepolia",m.AMOY="amoy"})(n=e.ContractNetwork||(e.ContractNetwork={}));var i;(function(m){m.schema={type:"object",properties:{type:{type:"string",const:t.SINGLE},id:{type:"string",pattern:"^[0-9]+$"}},required:["type","id"],additionalProperties:!1},m.validate=(0,a.generateLazyValidator)(m.schema)})(i=e.SingleMapping||(e.SingleMapping={}));var o;(function(m){m.schema={type:"object",properties:{type:{type:"string",const:t.ANY}},required:["type"],additionalProperties:!1},m.validate=(0,a.generateLazyValidator)(m.schema)})(o=e.AnyMapping||(e.AnyMapping={}));var u;(function(m){m._fromLessThanOrEqualTo={keyword:"_fromLessThanOrEqualTo",validate:function(S,M){if(!M||!M.from||!M.to)return!1;let{to:R,from:I}=M;return(typeof I!="bigint"||typeof R!="bigint")&&(I=BigInt(I),R=BigInt(R)),I<=R},errors:!1},m.schema={type:"object",properties:{type:{type:"string",const:t.RANGE},from:{type:"string",pattern:"^[0-9]+$"},to:{type:"string",pattern:"^[0-9]+$"}},required:["type","from","to"],additionalProperties:!1,_fromLessThanOrEqualTo:!0},m.validate=(0,a.generateLazyValidator)(m.schema,[m._fromLessThanOrEqualTo])})(u=e.RangeMapping||(e.RangeMapping={}));var c;(function(m){m.schema={type:"object",properties:{type:{type:"string",const:t.MULTIPLE},ids:{type:"array",items:{type:"string",pattern:"^[0-9]+$"},minItems:1,uniqueItems:!0}},required:["type","ids"],additionalProperties:!1},m.validate=(0,a.generateLazyValidator)(m.schema)})(c=e.MultipleMapping||(e.MultipleMapping={}));var f;(function(m){m.schema={type:"object",properties:{type:{type:"string",enum:Object.values(t)}},required:["type"],oneOf:[i.schema,o.schema,u.schema,c.schema]},m.validate=(0,a.generateLazyValidator)(m.schema,[u._fromLessThanOrEqualTo])})(f=e.Mapping||(e.Mapping={})),(function(m){m._isMappingsValid={keyword:"_isMappingsValid",validate:function(S,M){try{y(M)}catch{return!1}return!0},errors:!1},m.innerSchema={type:"object",patternProperties:{"^0x[0-9a-fA-F]{40}$":{type:"array",items:f.schema}},minProperties:1,required:[],additionalProperties:!1};const g=Object.values(n).reduce((S,M)=>(S[M]=m.innerSchema,S),{});m.schema={type:"object",properties:g,minProperties:1,additionalProperties:!1,_isMappingsValid:!0},m.validate=(0,a.generateLazyValidator)(m.schema,[u._fromLessThanOrEqualTo,m._isMappingsValid])})(e.Mappings||(e.Mappings={}));class p extends Error{constructor(g,S,M){super(g),this.existingMapping=S,this.conflictingMapping=M}}e.AddMappingError=p;function y(m={}){const g={};for(const[v,O]of Object.entries(m)){g[v]={};for(const[C,z]of Object.entries(O))for(const U of z)P(v,C,U)}function S(){return JSON.parse(JSON.stringify(g))}function M(v,O,C){const z=BigInt(v);return z>=BigInt(O)&&z<=BigInt(C)}function R(v,O){switch(O.type){case t.SINGLE:return v.id===O.id;case t.MULTIPLE:return O.ids.includes(v.id);case t.RANGE:return M(v.id,O.from,O.to);default:return!1}}function I(v,O){switch(O.type){case t.SINGLE:return v.ids.includes(O.id);case t.MULTIPLE:return v.ids.some(C=>O.ids.includes(C));case t.RANGE:return v.ids.some(C=>M(C,O.from,O.to));default:return!1}}function N(v,O){switch(O.type){case t.SINGLE:return M(O.id,v.from,v.to);case t.MULTIPLE:return O.ids.some(C=>M(C,v.from,v.to));case t.RANGE:return BigInt(v.from)<=BigInt(O.to)&&BigInt(v.to)>=BigInt(O.from)}}function E(v,O){if(v.type===t.ANY||O.type===t.ANY)return!0;switch(v.type){case t.SINGLE:return R(v,O);case t.MULTIPLE:return I(v,O);case t.RANGE:return N(v,O)}}function P(v,O,C){var z,U;const K=O.toLowerCase();g[v]=(z=g[v])!==null&&z!==void 0?z:{},g[v][K]=(U=g[v][K])!==null&&U!==void 0?U:[];for(const ae of g[v][K])if(E(ae,C))throw new p(`Cannot add mapping to contract ${K} on network ${v} because it overlaps with existing mapping`,ae,C);g[v][K].push(C)}function T(v,O,C){var z;return!((z=g[v])===null||z===void 0)&&z[O]?g[v][O].some(U=>{switch(U.type){case t.SINGLE:return U.id===C;case t.ANY:return!0;case t.MULTIPLE:return U.ids.includes(C);case t.RANGE:return BigInt(C)>=BigInt(U.from)&&BigInt(C)<=BigInt(U.to)}}):!1}return{addMapping:P,getMappings:S,includesNft:T}}e.createMappingsHelper=y})(yv)),yv}var lN;function n0(){return lN||(lN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isThirdParty=e.schema=void 0;const a=Xe(),t=Kq(),n=r0();e.schema={type:"object",properties:{merkleProof:t.MerkleProof.schema,content:{type:"object",nullable:!1,additionalProperties:{type:"string"},required:[]},mappings:Object.assign({nullable:!0},n.Mappings.schema)},required:["merkleProof","content"],_containsHashingKeys:!0};const i={keyword:"_containsHashingKeys",validate:function(c,f){var p;const y=f;return!((p=y?.merkleProof)===null||p===void 0)&&p.hashingKeys?y.merkleProof.hashingKeys.every(m=>y.hasOwnProperty(m)):!1},errors:!1},o=(0,a.generateLazyValidator)(e.schema,[i,n.RangeMapping._fromLessThanOrEqualTo,n.Mappings._isMappingsValid]);function u(c){return o(c)}e.isThirdParty=u})(fv)),fv}var mv={},hv={},ti={},cN;function Yq(){if(cN)return ti;cN=1,Object.defineProperty(ti,"__esModule",{value:!0}),ti.isBaseEmote=ti.isBaseAvatar=ti.requiredBaseItemProps=ti.baseItemProperties=void 0;const e=Wq(),a=Gq(),t=e0();ti.baseItemProperties=Object.assign(Object.assign({},t.displayableProperties),{id:{type:"string"},name:{type:"string"},description:{type:"string"},i18n:{type:"array",items:e.I18N.schema,minItems:1,uniqueItemProperties:["code"],errorMessage:'${0#} array should not have duplicates for "code"'},thumbnail:{type:"string"},image:{type:"string"},metrics:Object.assign(Object.assign({},a.Metrics.schema),{nullable:!0})}),ti.requiredBaseItemProps=["id","name","description","i18n","thumbnail","image"];function n(o){if(!o||!o.id)return!1;const u=o.id.split(":"),c=u[1]==="decentraland",f=u[3]==="base-avatars";return u.length===5&&c&&f}ti.isBaseAvatar=n;function i(o){if(!o||!o.id)return!1;const u=o.id.split(":");return u.length===5&&u[1]==="decentraland"&&u[3]==="base-emotes"}return ti.isBaseEmote=i,ti}var dN;function mH(){return dN||(dN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Wearable=void 0;const a=Xe(),t=ns(),n=xb(),i=Yq(),o=t0(),u=n0(),c=$b(),f=r0();(function(p){p.schema={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({},i.baseItemProperties),o.standardProperties),u.schema.properties.thirdPartyProps),{data:{type:"object",properties:{replaces:{type:"array",items:c.HideableWearableCategory.schema},hides:{type:"array",items:c.HideableWearableCategory.schema},tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:n.WearableRepresentation.schema,minItems:1},category:t.WearableCategory.schema,removesDefaultHiding:{type:"array",nullable:!0,items:c.HideableWearableCategory.schema},blockVrmExport:{type:"boolean",nullable:!0},outlineCompatible:{type:"boolean",nullable:!0}},required:["replaces","hides","tags","representations","category"]}}),additionalProperties:!0,required:[],oneOf:[{required:["id","i18n"],prohibited:["merkleProof","content","collectionAddress","rarity","mappings"],_isBaseAvatar:!0},{required:[...i.requiredBaseItemProps,"data","collectionAddress","rarity"],prohibited:["merkleProof","content","mappings"]},{required:[...i.requiredBaseItemProps,"data","merkleProof","content"],prohibited:["collectionAddress","rarity"],_isThirdParty:!0}],errorMessage:{oneOf:"either standard XOR thirdparty properties conditions must be met"}};const y={keyword:"_isThirdParty",validate:(g,S)=>!g||(0,u.isThirdParty)(S),errors:!1},m={keyword:"_isBaseAvatar",validate:(g,S)=>!g||(0,i.isBaseAvatar)(S),errors:!1};p.validate=(0,a.generateLazyValidator)(p.schema,[y,m,f.RangeMapping._fromLessThanOrEqualTo,f.Mappings._isMappingsValid])})(e.Wearable||(e.Wearable={}))})(hv)),hv}var fN;function hH(){return fN||(fN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.HideableWearableCategory=e.BodyPartCategory=e.WearableCategory=e.Wearable=e.WearableRepresentation=void 0;var a=xb();Object.defineProperty(e,"WearableRepresentation",{enumerable:!0,get:function(){return a.WearableRepresentation}});var t=mH();Object.defineProperty(e,"Wearable",{enumerable:!0,get:function(){return t.Wearable}});var n=ns();Object.defineProperty(e,"WearableCategory",{enumerable:!0,get:function(){return n.WearableCategory}});var i=qq();Object.defineProperty(e,"BodyPartCategory",{enumerable:!0,get:function(){return i.BodyPartCategory}});var o=$b();Object.defineProperty(e,"HideableWearableCategory",{enumerable:!0,get:function(){return o.HideableWearableCategory}})})(mv)),mv}var gv={},vv={},_v={},Ev={},pN;function Xq(){return pN||(pN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteCategory=void 0;const a=Xe();(function(t){t.DANCE="dance",t.STUNT="stunt",t.GREETINGS="greetings",t.FUN="fun",t.POSES="poses",t.REACTIONS="reactions",t.HORROR="horror",t.MISCELLANEOUS="miscellaneous"})(e.EmoteCategory||(e.EmoteCategory={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.EmoteCategory||(e.EmoteCategory={}))})(Ev)),Ev}var bv={},yN;function Jq(){return yN||(yN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteRepresentationADR74=void 0;const a=Xe(),t=Zb();(function(n){n.schema={type:"object",properties:{bodyShapes:{type:"array",items:t.BodyShape.schema,minItems:1,uniqueItems:!0},mainFile:{type:"string",minLength:1},contents:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0,contains:{const:{$data:"2/mainFile"}},errorMessage:{contains:"contents should contain mainFile: ${1/mainFile}"}}},required:["bodyShapes","mainFile","contents"]},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.EmoteRepresentationADR74||(e.EmoteRepresentationADR74={}))})(bv)),bv}var mN;function Qq(){return mN||(mN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteDataADR74=void 0;const a=Xq(),t=Xe(),n=Jq();(function(i){i.schema={type:"object",properties:{tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:n.EmoteRepresentationADR74.schema,minItems:1},category:a.EmoteCategory.schema,loop:{type:"boolean"}},required:["category","tags","representations","loop"],additionalProperties:!0},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.EmoteDataADR74||(e.EmoteDataADR74={}))})(_v)),_v}var hN;function gH(){return hN||(hN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Emote=void 0;const a=Zq(),t=Xe(),n=Yq(),i=t0(),o=n0(),u=Qq();(function(c){c.schema={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({},n.baseItemProperties),i.standardProperties),o.schema.properties),{emoteDataADR74:u.EmoteDataADR74.schema}),additionalProperties:!0,required:[...n.requiredBaseItemProps],oneOf:[{required:["emoteDataADR74"],oneOf:[{required:["id","i18n"],prohibited:["merkleProof","content","collectionAddress","rarity"],_isBaseEmote:!0},{required:["collectionAddress","rarity"],prohibited:["merkleProof","content"],errorMessage:"standard properties conditions are not met"},{required:["merkleProof","content","id","name","description","i18n","image","thumbnail","emoteDataADR74"],_isThirdParty:!0,prohibited:["collectionAddress","rarity"],errorMessage:"thirdparty properties conditions are not met"}],errorMessage:{oneOf:"emote should have either standard or thirdparty properties"}}],errorMessage:{oneOf:'emote should have "emoteDataADR74" and match its schema'}};const f={keyword:"_isThirdParty",validate:(y,m)=>!y||(0,a.isThirdParty)(m),errors:!1},p={keyword:"_isBaseEmote",validate:(y,m)=>!y||(0,n.isBaseEmote)(m),errors:!1};c.validate=(0,t.generateLazyValidator)(c.schema,[f,p,a.RangeMapping._fromLessThanOrEqualTo,a.Mappings._isMappingsValid])})(e.Emote||(e.Emote={}))})(vv)),vv}var wv={},gN;function vH(){return gN||(gN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmotePlayMode=void 0;const a=Xe();(function(t){t.SIMPLE="simple",t.LOOP="loop"})(e.EmotePlayMode||(e.EmotePlayMode={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.EmotePlayMode||(e.EmotePlayMode={}))})(wv)),wv}var vN;function _H(){return vN||(vN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmotePlayMode=e.EmoteCategory=e.EmoteDataADR74=e.EmoteRepresentationADR74=e.Emote=void 0;var a=gH();Object.defineProperty(e,"Emote",{enumerable:!0,get:function(){return a.Emote}});var t=Jq();Object.defineProperty(e,"EmoteRepresentationADR74",{enumerable:!0,get:function(){return t.EmoteRepresentationADR74}});var n=Qq();Object.defineProperty(e,"EmoteDataADR74",{enumerable:!0,get:function(){return n.EmoteDataADR74}});var i=Xq();Object.defineProperty(e,"EmoteCategory",{enumerable:!0,get:function(){return i.EmoteCategory}});var o=vH();Object.defineProperty(e,"EmotePlayMode",{enumerable:!0,get:function(){return o.EmotePlayMode}})})(gv)),gv}var _N;function Zq(){return _N||(_N=1,(function(e){var a=jo&&jo.__createBinding||(Object.create?(function(p,y,m,g){g===void 0&&(g=m);var S=Object.getOwnPropertyDescriptor(y,m);(!S||("get"in S?!y.__esModule:S.writable||S.configurable))&&(S={enumerable:!0,get:function(){return y[m]}}),Object.defineProperty(p,g,S)}):(function(p,y,m,g){g===void 0&&(g=m),p[g]=y[m]})),t=jo&&jo.__exportStar||function(p,y){for(var m in p)m!=="default"&&!Object.prototype.hasOwnProperty.call(y,m)&&a(y,p,m)};Object.defineProperty(e,"__esModule",{value:!0}),e.isThirdParty=e.isStandard=e.BodyShape=e.Metrics=e.Locale=e.I18N=void 0;var n=Wq();Object.defineProperty(e,"I18N",{enumerable:!0,get:function(){return n.I18N}});var i=zq();Object.defineProperty(e,"Locale",{enumerable:!0,get:function(){return i.Locale}});var o=Gq();Object.defineProperty(e,"Metrics",{enumerable:!0,get:function(){return o.Metrics}});var u=Zb();Object.defineProperty(e,"BodyShape",{enumerable:!0,get:function(){return u.BodyShape}});var c=t0();Object.defineProperty(e,"isStandard",{enumerable:!0,get:function(){return c.isStandard}});var f=n0();Object.defineProperty(e,"isThirdParty",{enumerable:!0,get:function(){return f.isThirdParty}}),t(r0(),e),t(hH(),e),t(_H(),e)})(jo)),jo}var Tv={},Sv={},EN;function Ef(){return EN||(EN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AuthChain=e.AuthLink=e.AuthLinkType=void 0;const a=Xe();var t;(function(i){i.SIGNER="SIGNER",i.ECDSA_PERSONAL_EPHEMERAL="ECDSA_EPHEMERAL",i.ECDSA_PERSONAL_SIGNED_ENTITY="ECDSA_SIGNED_ENTITY",i.ECDSA_EIP_1654_EPHEMERAL="ECDSA_EIP_1654_EPHEMERAL",i.ECDSA_EIP_1654_SIGNED_ENTITY="ECDSA_EIP_1654_SIGNED_ENTITY"})(t=e.AuthLinkType||(e.AuthLinkType={}));var n;(function(i){i.schema={type:"object",properties:{type:{type:"string",enum:Object.values(t)},payload:{type:"string"},signature:{type:"string",nullable:!0}},required:["payload","type"],if:{properties:{type:{not:{const:t.SIGNER}}}},then:{required:["signature"]},else:{oneOf:[{properties:{signature:{type:"string",const:""}},required:["signature"]},{properties:{signature:{type:"null"}}}]}},i.validate=(0,a.generateLazyValidator)(i.schema)})(n=e.AuthLink||(e.AuthLink={})),(function(i){i.schema={type:"array",items:n.schema,minItems:1},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.AuthChain||(e.AuthChain={}))})(Sv)),Sv}var bN;function EH(){return bN||(bN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PointerChangesSyncDeployment=e.SnapshotSyncDeployment=void 0;const a=is(),t=Ef(),n=Xe();(function(i){i.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},authChain:t.AuthChain.schema,entityTimestamp:{type:"number",minimum:0}},oneOf:[{properties:{entityId:a.IPFSv1.schema}},{properties:{entityId:a.IPFSv2.schema}}],required:["entityId","entityType","pointers","entityTimestamp","authChain"]},i.validate=(0,n.generateLazyValidator)(i.schema)})(e.SnapshotSyncDeployment||(e.SnapshotSyncDeployment={})),(function(i){i.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},authChain:t.AuthChain.schema,entityTimestamp:{type:"number",minimum:0},localTimestamp:{type:"number",minimum:0}},oneOf:[{properties:{entityId:a.IPFSv1.schema}},{properties:{entityId:a.IPFSv2.schema}}],required:["entityId","entityType","pointers","localTimestamp","entityTimestamp","authChain"]},i.validate=(0,n.generateLazyValidator)(i.schema)})(e.PointerChangesSyncDeployment||(e.PointerChangesSyncDeployment={}))})(Tv)),Tv}var Ov={},Av={},wN;function $q(){return wN||(wN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ContentMapping=void 0;const a=is(),t=Xe();(function(n){n.schema={type:"object",properties:{file:{type:"string",minLength:1},hash:{type:"string",oneOf:[a.IPFSv1.schema,a.IPFSv2.schema]}},required:["file","hash"]},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.ContentMapping||(e.ContentMapping={}))})(Av)),Av}var TN;function xq(){return TN||(TN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Entity=e.EntityType=void 0;const a=is(),t=$q(),n=Xe();(function(i){i.SCENE="scene",i.PROFILE="profile",i.WEARABLE="wearable",i.STORE="store",i.EMOTE="emote",i.OUTFITS="outfits"})(e.EntityType||(e.EntityType={})),(function(i){i.schema={type:"object",properties:{version:{type:"string",enum:["v3"]},id:{type:"string",oneOf:[a.IPFSv1.schema,a.IPFSv2.schema]},type:{type:"string"},pointers:{type:"array",items:{type:"string",minLength:1}},timestamp:{type:"number",minimum:0},content:{type:"array",items:t.ContentMapping.schema},metadata:{type:"object",nullable:!0}},required:["version","id","type","pointers","timestamp","content"]},i.validate=(0,n.generateLazyValidator)(i.schema)})(e.Entity||(e.Entity={}))})(Ov)),Ov}var Pv={},SN;function bH(){return SN||(SN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DeploymentWithAuthChain=void 0;const a=Ef(),t=Xe();(function(n){n.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},localTimestamp:{type:"number",minimum:0},authChain:a.AuthChain.schema},required:["entityId","entityType","pointers","localTimestamp","authChain"]},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.DeploymentWithAuthChain||(e.DeploymentWithAuthChain={}))})(Pv)),Pv}var Do={},Iv={},ON;function wH(){return ON||(ON=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Outfits=e.Outfit=void 0;const a=ns(),t=is(),n=Xe();var i;(function(o){o.schema={type:"object",required:["bodyShape","eyes","hair","skin","wearables"],properties:{bodyShape:{type:"string"},eyes:{type:"object",required:["color"],properties:{color:t.Color3.schema}},hair:{type:"object",required:["color"],properties:{color:t.Color3.schema}},skin:{type:"object",required:["color"],properties:{color:t.Color3.schema}},wearables:{type:"array",items:{type:"string"}},forceRender:{type:"array",nullable:!0,items:a.WearableCategory.schema}},additionalProperties:!0},o.validate=(0,n.generateLazyValidator)(o.schema)})(i=e.Outfit||(e.Outfit={})),(function(o){o.schema={type:"object",required:["outfits","namesForExtraSlots"],properties:{outfits:{type:"array",items:{type:"object",required:["slot","outfit"],properties:{slot:{type:"number"},outfit:i.schema}}},namesForExtraSlots:{type:"array",uniqueItems:!0,items:{type:"string"}}},additionalProperties:!0},o.validate=(0,n.generateLazyValidator)(o.schema)})(e.Outfits||(e.Outfits={}))})(Iv)),Iv}var AN;function TH(){return AN||(AN=1,(function(e){var a=Do&&Do.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Do&&Do.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(wH(),e)})(Do)),Do}var qo={},Rv={},PN;function ek(){return PN||(PN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NotificationType=void 0,(function(a){a.BADGE_GRANTED="badge_granted",a.BID_ACCEPTED="bid_accepted",a.BID_RECEIVED="bid_received",a.EVENTS_STARTED="events_started",a.EVENTS_STARTS_SOON="events_starts_soon",a.GOVERNANCE_ANNOUNCEMENT="governance_announcement",a.GOVERNANCE_AUTHORED_PROPOSAL_FINISHED="governance_authored_proposal_finished",a.GOVERNANCE_COAUTHOR_REQUESTED="governance_coauthor_requested",a.GOVERNANCE_CLIFF_ENDED="governance_cliff_ended",a.GOVERNANCE_NEW_COMMENT_ON_PROJECT_UPDATE="governance_new_comment_on_project_update",a.GOVERNANCE_NEW_COMMENT_ON_PROPOSAL="governance_new_comment_on_proposal",a.GOVERNANCE_PROPOSAL_ENACTED="governance_proposal_enacted",a.GOVERNANCE_VOTING_ENDED_VOTER="governance_voting_ended_voter",a.GOVERNANCE_PITCH_PASSED="governance_pitch_passed",a.GOVERNANCE_TENDER_PASSED="governance_tender_passed",a.GOVERNANCE_WHALE_VOTE="governance_whale_vote",a.GOVERNANCE_VOTED_ON_BEHALF="governance_voted_on_behalf",a.ITEM_SOLD="item_sold",a.ITEM_PUBLISHED="item_published",a.LAND_RENTAL_ENDED="rental_ended",a.LAND_RENTED="rental_started",a.REWARD_ASSIGNED="reward_assignment",a.REWARD_CAMPAIGN_OUT_OF_FUNDS="reward_campaign_out_of_funds",a.REWARD_CAMPAIGN_GAS_PRICE_HIGHER_THAN_EXPECTED="reward_campaign_gas_price_higher_than_expected",a.REWARD_CAMPAIGN_OUT_OF_STOCK="reward_campaign_out_of_stock",a.REWARD_DELAYED="reward_delayed",a.REWARD_IN_PROGRESS="reward_in_progress",a.ROYALTIES_EARNED="royalties_earned",a.SOCIAL_SERVICE_FRIENDSHIP_REQUEST="social_service_friendship_request",a.SOCIAL_SERVICE_FRIENDSHIP_ACCEPTED="social_service_friendship_accepted",a.WORLDS_ACCESS_RESTORED="worlds_access_restored",a.WORLDS_ACCESS_RESTRICTED="worlds_access_restricted",a.WORLDS_MISSING_RESOURCES="worlds_missing_resources",a.WORLDS_PERMISSION_GRANTED="worlds_permission_granted",a.WORLDS_PERMISSION_REVOKED="worlds_permission_revoked"})(e.NotificationType||(e.NotificationType={}))})(Rv)),Rv}var Mv={},Nv={},IN;function tk(){return IN||(IN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SubscriptionDetails=void 0;const a=Xe(),t=ek(),n={type:"object",required:["email","in_app"],properties:{email:{type:"boolean"},in_app:{type:"boolean"}}},i=Object.values(t.NotificationType).reduce((o,u)=>(o[u]=n,o),{});(function(o){o.schema={type:"object",required:["ignore_all_email","ignore_all_in_app","message_type"],properties:{ignore_all_email:{type:"boolean"},ignore_all_in_app:{type:"boolean"},message_type:{type:"object",required:Object.values(t.NotificationType),additionalProperties:!1,properties:i}}},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.SubscriptionDetails||(e.SubscriptionDetails={}))})(Nv)),Nv}var Cv={},RN;function rk(){return RN||(RN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Email=void 0,(function(a){a.schema={type:"string",pattern:"^[\\w\\-\\.]+@([\\w-]+\\.)+[\\w-]{2,}$"};const t=new RegExp(a.schema.pattern);a.validate=n=>t.test(n)})(e.Email||(e.Email={}))})(Cv)),Cv}var MN;function SH(){return MN||(MN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Subscription=void 0;const a=Xe(),t=tk(),n=is(),i=rk();(function(o){o.schema={type:"object",required:["address","details"],properties:{address:n.EthAddress.schema,email:Object.assign(Object.assign({},i.Email.schema),{nullable:!0}),details:t.SubscriptionDetails.schema}},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.Subscription||(e.Subscription={}))})(Mv)),Mv}var NN;function OH(){return NN||(NN=1,(function(e){var a=qo&&qo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=qo&&qo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(ek(),e),t(SH(),e),t(tk(),e)})(qo)),qo}var ko={},jv={},CN;function au(){return CN||(CN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Events=void 0,(function(a){(function(t){t.BLOCKCHAIN="blockchain",t.CATALYST_DEPLOYMENT="catalyst-deployment",t.WORLD="world",t.CLIENT="client",t.MARKETPLACE="marketplace",t.REWARDS="rewards",t.BADGE="badge",t.ASSET_BUNDLE="asset-bundle",t.SOCIAL_SERVICE="social-service"})(a.Type||(a.Type={})),(function(t){(function(n){n.BID_ACCEPTED="bid-accepted",n.ITEM_SOLD="item-sold",n.RENTAL_ENDED="land-rental-ended",n.RENTAL_STARTED="land-rental-started",n.ROYALTIES_EARNED="royalties-earned",n.COLLECTION_CREATED="collection-created",n.ITEM_PUBLISHED="item-published"})(t.Blockchain||(t.Blockchain={})),(function(n){n.BID_RECEIVED="bid-received"})(t.Marketplace||(t.Marketplace={})),(function(n){n.SCENE="scene",n.PROFILE="profile",n.WEARABLE="wearable",n.STORE="store",n.EMOTE="emote",n.OUTFITS="outfits"})(t.CatalystDeployment||(t.CatalystDeployment={})),(function(n){n.DEPLOYMENT="deployment"})(t.Worlds||(t.Worlds={})),(function(n){n.MOVE_TO_PARCEL="move-to-parcel",n.USED_EMOTE="used-emote",n.PASSPORT_OPENED="passport-opened",n.WALKED_DISTANCE="walked-distance",n.VERTICAL_HEIGHT_REACHED="vertical-height-reached"})(t.Client||(t.Client={})),(function(n){n.REWARD_IN_PROGRESS="reward-in-progress",n.REWARD_ASSIGNED="reward-assigned",n.CAMPAIGN_OUT_OF_FUNDS="campaign-out-of-funds",n.CAMPAIGN_GAS_PRICE_HIGHER_THAN_EXPECTED="campaign-gas-price-higher-than-expected",n.CAMPAIGN_OUT_OF_STOCK="campaign-out-of-stock",n.REWARD_DELAYED="reward-delayed"})(t.Rewards||(t.Rewards={})),(function(n){n.GRANTED="badge-granted"})(t.Badge||(t.Badge={})),(function(n){n.CONVERTED="converted",n.MANUALLY_QUEUED="manually-queued"})(t.AssetBundle||(t.AssetBundle={})),(function(n){n.FRIENDSHIP_REQUEST="friendship-request",n.FRIENDSHIP_ACCEPTED="friendship-accepted"})(t.SocialService||(t.SocialService={}))})(a.SubType||(a.SubType={}))})(e.Events||(e.Events={}))})(jv)),jv}var Lv={},jN;function AH(){return jN||(jN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CollectionCreatedEvent=e.RoyaltiesEarnedEvent=e.RentalStartedEvent=e.RentalEndedEvent=e.ItemPublishedEvent=e.ItemSoldEvent=e.BidAcceptedEvent=void 0;const a=Xe(),t=au();(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.BLOCKCHAIN},subType:{type:"string",const:t.Events.SubType.Blockchain.BID_ACCEPTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},image:{type:"string"},seller:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},link:{type:"string"},nftName:{type:"string",nullable:!0},price:{type:"string"},title:{type:"string"},description:{type:"string"},network:{type:"string"}},required:["address","image","seller","category","link","price","title","network"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.BidAcceptedEvent||(e.BidAcceptedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.BLOCKCHAIN},subType:{type:"string",const:t.Events.SubType.Blockchain.ITEM_SOLD},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},image:{type:"string"},buyer:{type:"string"},seller:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},link:{type:"string"},nftName:{type:"string",nullable:!0},tokenId:{type:"string"},network:{type:"string"},title:{type:"string"},description:{type:"string"}},required:["address","image","seller","category","link","network","title","description"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.ItemSoldEvent||(e.ItemSoldEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.BLOCKCHAIN},subType:{type:"string",const:t.Events.SubType.Blockchain.ITEM_PUBLISHED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{creator:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},itemId:{type:"string"},network:{type:"string"},urn:{type:"string"}},required:["creator","category","itemId","network","urn"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.ItemPublishedEvent||(e.ItemPublishedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.BLOCKCHAIN},subType:{type:"string",const:t.Events.SubType.Blockchain.RENTAL_ENDED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},contract:{type:"string"},land:{type:"string",nullable:!0},lessor:{type:"string"},tenant:{type:"string"},operator:{type:"string"},startedAt:{type:"string"},endedAt:{type:"string"},tokenId:{type:"string"},link:{type:"string"},title:{type:"string"},description:{type:"string",nullable:!0}},required:["address","contract","lessor","tenant","operator","startedAt","endedAt","tokenId","link","title"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.RentalEndedEvent||(e.RentalEndedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.BLOCKCHAIN},subType:{type:"string",const:t.Events.SubType.Blockchain.RENTAL_STARTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},contract:{type:"string"},land:{type:"string",nullable:!0},lessor:{type:"string"},tenant:{type:"string"},operator:{type:"string"},startedAt:{type:"string"},endedAt:{type:"string"},tokenId:{type:"string"},link:{type:"string"},title:{type:"string"},description:{type:"string",nullable:!0}},required:["address","contract","lessor","tenant","operator","startedAt","endedAt","tokenId","link","title"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.RentalStartedEvent||(e.RentalStartedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.BLOCKCHAIN},subType:{type:"string",const:t.Events.SubType.Blockchain.ROYALTIES_EARNED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},image:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},link:{type:"string"},nftName:{type:"string",nullable:!0},royaltiesCut:{type:"string"},royaltiesCollector:{type:"string"},network:{type:"string"},title:{type:"string"},description:{type:"string",nullable:!0}},required:["address","image","category","link","royaltiesCut","royaltiesCollector","network","title"]}},required:["type","subType","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.RoyaltiesEarnedEvent||(e.RoyaltiesEarnedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.BLOCKCHAIN},subType:{type:"string",const:t.Events.SubType.Blockchain.COLLECTION_CREATED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{creator:{type:"string"},name:{type:"string"}},required:["creator","name"]}},required:["type","subType","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.CollectionCreatedEvent||(e.CollectionCreatedEvent={}))})(Lv)),Lv}var Dv={},LN;function PH(){return LN||(LN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CatalystDeploymentEvent=void 0;const a=Ef(),t=Xe(),n=xq(),i=au();(function(o){o.schema={type:"object",properties:{type:{type:"string",const:i.Events.Type.CATALYST_DEPLOYMENT},subType:{type:"string",enum:Object.values(i.Events.SubType.CatalystDeployment)},key:{type:"string"},timestamp:{type:"number",minimum:1},entity:n.Entity.schema,authChain:a.AuthChain.schema},required:["type","subType","entity","authChain","key","timestamp"],additionalProperties:!1},o.validate=(0,t.generateLazyValidator)(o.schema)})(e.CatalystDeploymentEvent||(e.CatalystDeploymentEvent={}))})(Dv)),Dv}var qv={},DN;function IH(){return DN||(DN=1,Object.defineProperty(qv,"__esModule",{value:!0})),qv}var kv={},qN;function RH(){return qN||(qN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BidReceivedEvent=void 0;const a=Xe(),t=au();(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.MARKETPLACE},subType:{type:"string",const:t.Events.SubType.Marketplace.BID_RECEIVED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{address:{type:"string"},image:{type:"string"},seller:{type:"string"},category:{type:"string"},rarity:{type:"string",nullable:!0},link:{type:"string"},nftName:{type:"string",nullable:!0},price:{type:"string"},title:{type:"string"},description:{type:"string"},network:{type:"string"}},required:["address","image","seller","category","link","price","title","network"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.BidReceivedEvent||(e.BidReceivedEvent={}))})(kv)),kv}var Uv={},Gu={},kN;function MH(){if(kN)return Gu;kN=1,Object.defineProperty(Gu,"__esModule",{value:!0}),Gu.createEventSchema=void 0;function e(a,t,n){return{type:"object",properties:{type:{type:"string",const:a},subType:{type:"string",const:t},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:n},required:["type","subType","key","timestamp","metadata"],additionalProperties:!1}}return Gu.createEventSchema=e,Gu}var UN;function NH(){return UN||(UN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.RewardDelayedEvent=e.CampaignOutOfStockEvent=e.CampaignGasPriceHigherThanExpectedEvent=e.CampaignOutOfFundsEvent=e.RewardAssignedEvent=e.RewardInProgressEvent=void 0;const a=Xe(),t=au(),n=MH(),i={type:"object",properties:{title:{type:"string"},description:{type:"string"},link:{type:"string",nullable:!0},beneficiary:{type:"string"},tokenName:{type:"string"},tokenImage:{type:"string"},tokenRarity:{type:"string",nullable:!0},tokenCategory:{type:"string",nullable:!0}},required:["title","description","beneficiary","tokenName","tokenImage"],additionalProperties:!1},o={type:"object",properties:{title:{type:"string"},description:{type:"string"},link:{type:"string",nullable:!0},owner:{type:"string"},campaignId:{type:"string"},campaignName:{type:"string"}},required:["title","description","owner","campaignId","campaignName"],additionalProperties:!1};(function(u){u.schema=(0,n.createEventSchema)(t.Events.Type.REWARDS,t.Events.SubType.Rewards.REWARD_IN_PROGRESS,i),u.validate=(0,a.generateLazyValidator)(u.schema)})(e.RewardInProgressEvent||(e.RewardInProgressEvent={})),(function(u){u.schema=(0,n.createEventSchema)(t.Events.Type.REWARDS,t.Events.SubType.Rewards.REWARD_ASSIGNED,i),u.validate=(0,a.generateLazyValidator)(u.schema)})(e.RewardAssignedEvent||(e.RewardAssignedEvent={})),(function(u){u.schema=(0,n.createEventSchema)(t.Events.Type.REWARDS,t.Events.SubType.Rewards.CAMPAIGN_OUT_OF_FUNDS,o),u.validate=(0,a.generateLazyValidator)(u.schema)})(e.CampaignOutOfFundsEvent||(e.CampaignOutOfFundsEvent={})),(function(u){u.schema=(0,n.createEventSchema)(t.Events.Type.REWARDS,t.Events.SubType.Rewards.CAMPAIGN_GAS_PRICE_HIGHER_THAN_EXPECTED,o),u.validate=(0,a.generateLazyValidator)(u.schema)})(e.CampaignGasPriceHigherThanExpectedEvent||(e.CampaignGasPriceHigherThanExpectedEvent={})),(function(u){u.schema=(0,n.createEventSchema)(t.Events.Type.REWARDS,t.Events.SubType.Rewards.CAMPAIGN_OUT_OF_STOCK,o),u.validate=(0,a.generateLazyValidator)(u.schema)})(e.CampaignOutOfStockEvent||(e.CampaignOutOfStockEvent={})),(function(u){u.schema=(0,n.createEventSchema)(t.Events.Type.REWARDS,t.Events.SubType.Rewards.REWARD_DELAYED,i),u.validate=(0,a.generateLazyValidator)(u.schema)})(e.RewardDelayedEvent||(e.RewardDelayedEvent={}))})(Uv)),Uv}var Bv={},BN;function CH(){return BN||(BN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.FriendshipAcceptedEvent=e.FriendshipRequestEvent=e.AssetBundleConversionManuallyQueuedEvent=e.AssetBundleConversionFinishedEvent=e.BadgeGrantedEvent=void 0;const a=Xe(),t=au();(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.BADGE},subType:{type:"string",const:t.Events.SubType.Badge.GRANTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{badgeId:{type:"string"},badgeTierName:{type:"string",nullable:!0},badgeName:{type:"string"},badgeImageUrl:{type:"string"},address:{type:"string"}},required:["badgeId","badgeName","badgeImageUrl","address"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.BadgeGrantedEvent||(e.BadgeGrantedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.ASSET_BUNDLE},subType:{type:"string",const:t.Events.SubType.AssetBundle.CONVERTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{entityId:{type:"string"},platform:{type:"string",enum:["windows","mac","webgl"]},statusCode:{type:"number"},isLods:{type:"boolean"},isWorld:{type:"boolean"}},required:["entityId","platform","statusCode","isLods","isWorld"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.AssetBundleConversionFinishedEvent||(e.AssetBundleConversionFinishedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.ASSET_BUNDLE},subType:{type:"string",const:t.Events.SubType.AssetBundle.MANUALLY_QUEUED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{entityId:{type:"string"},platform:{type:"string",enum:["windows","mac","webgl"]},isLods:{type:"boolean"},isPriority:{type:"boolean"}},required:["entityId","platform","isLods"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.AssetBundleConversionManuallyQueuedEvent||(e.AssetBundleConversionManuallyQueuedEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.SOCIAL_SERVICE},subType:{type:"string",const:t.Events.SubType.SocialService.FRIENDSHIP_REQUEST},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{sender:{type:"object",properties:{address:{type:"string"},name:{type:"string"},profileImageUrl:{type:"string"}},required:["address","name","profileImageUrl"]},receiver:{type:"object",properties:{address:{type:"string"}},required:["address"]},message:{type:"string",nullable:!0}},required:["sender"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.FriendshipRequestEvent||(e.FriendshipRequestEvent={})),(function(n){n.schema={type:"object",properties:{type:{type:"string",const:t.Events.Type.SOCIAL_SERVICE},subType:{type:"string",const:t.Events.SubType.SocialService.FRIENDSHIP_ACCEPTED},key:{type:"string"},timestamp:{type:"number",minimum:0},metadata:{type:"object",properties:{sender:{type:"object",properties:{address:{type:"string"},name:{type:"string"},profileImageUrl:{type:"string"}},required:["address","name","profileImageUrl"]},receiver:{type:"object",properties:{address:{type:"string"}},required:["address"]}},required:["sender"]}},required:["type","subType","key","timestamp","metadata"],additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.FriendshipAcceptedEvent||(e.FriendshipAcceptedEvent={}))})(Bv)),Bv}var FN;function jH(){return FN||(FN=1,(function(e){var a=ko&&ko.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=ko&&ko.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(au(),e),t(AH(),e),t(PH(),e),t(IH(),e),t(RH(),e),t(NH(),e),t(CH(),e)})(ko)),ko}var VN;function i0(){return VN||(VN=1,(function(e){var a=No&&No.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=No&&No.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(dH(),e),t(pH(),e),t(Zq(),e),t(e0(),e),t(Kq(),e),t(EH(),e),t(xq(),e),t(bH(),e),t(TH(),e),t(OH(),e),t(jH(),e)})(No)),No}var HN;function LH(){return HN||(HN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WearableJson=void 0;const a=_f(),t=ns(),n=xb(),i=Xe(),o=i0();(function(u){u.schema={type:"object",properties:{description:{type:"string"},rarity:Object.assign(Object.assign({},a.Rarity.schema),{nullable:!0}),name:{type:"string"},data:{type:"object",properties:{replaces:{type:"array",items:t.WearableCategory.schema},hides:{type:"array",items:t.WearableCategory.schema},tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:n.WearableRepresentation.schema,minItems:1},category:t.WearableCategory.schema,removesDefaultHiding:{type:"array",nullable:!0,items:o.HideableWearableCategory.schema},blockVrmExport:{type:"boolean",nullable:!0},outlineCompatible:{type:"boolean",nullable:!0}},required:["replaces","hides","tags","representations","category"]}},additionalProperties:!0,required:["description","name","data"]},u.validate=(0,i.generateLazyValidator)(u.schema)})(e.WearableJson||(e.WearableJson={}))})(Gg)),Gg}var zN;function DH(){return zN||(zN=1,(function(e){var a=Mo&&Mo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Mo&&Mo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(lH(),e),t(LH(),e)})(Mo)),Mo}var WN;function qH(){return WN||(WN=1,(function(e){var a=Io&&Io.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Io&&Io.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(uH(),e),t(DH(),e)})(Io)),Io}var Uo={},Fv={},GN;function kH(){return GN||(GN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Account=e.AccountSortBy=void 0;const a=Xe();(function(t){t.MOST_SALES="most_sales",t.MOST_PURCHASES="most_purchases",t.MOST_SPENT="most_spent",t.MOST_EARNED="most_earned",t.MOST_ROYALTIES="most_royalties",t.MOST_COLLECTIONS="most_collections"})(e.AccountSortBy||(e.AccountSortBy={})),(function(t){t.schema={type:"object",properties:{id:{type:"string"},address:{type:"string"},sales:{type:"integer"},purchases:{type:"integer"},spent:{type:"string"},earned:{type:"string"},royalties:{type:"string"},collections:{type:"number"}},required:["id","address","sales","purchases","spent","earned","royalties","collections"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Account||(e.Account={}))})(Fv)),Fv}var Vv={},KN;function UH(){return KN||(KN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Collection=e.CollectionSortBy=void 0;const a=Xe(),t=Dn(),n=di();(function(i){i.NEWEST="newest",i.NAME="name",i.RECENTLY_REVIEWED="recently_reviewed",i.RECENTLY_LISTED="recently_listed",i.SIZE="size"})(e.CollectionSortBy||(e.CollectionSortBy={})),(function(i){i.schema={type:"object",properties:{urn:{type:"string"},creator:{type:"string"},name:{type:"string"},contractAddress:{type:"string"},size:{type:"integer"},isOnSale:{type:"boolean"},createdAt:{type:"integer"},updatedAt:{type:"integer"},reviewedAt:{type:"integer"},network:n.Network.schema,chainId:t.ChainId.schema,firstListedAt:{type:"integer",nullable:!0}},required:["urn","creator","name","contractAddress","isOnSale","size","createdAt","updatedAt","reviewedAt","network","chainId"]},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.Collection||(e.Collection={}))})(Vv)),Vv}var Hv={},zv={},YN;function bf(){return YN||(YN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NFTCategory=void 0;const a=Xe();(function(t){t.PARCEL="parcel",t.ESTATE="estate",t.WEARABLE="wearable",t.ENS="ens",t.EMOTE="emote"})(e.NFTCategory||(e.NFTCategory={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.NFTCategory||(e.NFTCategory={}))})(zv)),zv}var XN;function BH(){return XN||(XN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Contract=e.ContractSortBy=void 0;const a=Xe(),t=Dn(),n=di(),i=bf();(function(o){o.NAME="name"})(e.ContractSortBy||(e.ContractSortBy={})),(function(o){o.schema={type:"object",properties:{name:{type:"string"},address:{type:"string"},category:i.NFTCategory.schema,network:n.Network.schema,chainId:t.ChainId.schema},required:["name","address","category","network","chainId"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.Contract||(e.Contract={}))})(Hv)),Hv}var Wv={},Gv={},JN;function nk(){return JN||(JN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NFT=e.NFTSortBy=void 0;const a=Xe(),t=Dn(),n=i0(),i=di(),o=bf(),u=_f(),c=ns();(function(f){f.NAME="name",f.NEWEST="newest",f.RECENTLY_LISTED="recently_listed",f.RECENTLY_SOLD="recently_sold",f.CHEAPEST="cheapest",f.RENTAL_LISTING_DATE="rental_listing_date",f.RENTAL_DATE="rented_date",f.MAX_RENTAL_PRICE="max_rental_price",f.MIN_RENTAL_PRICE="min_rental_price"})(e.NFTSortBy||(e.NFTSortBy={})),(function(f){f.schema={type:"object",properties:{id:{type:"string"},tokenId:{type:"string"},contractAddress:{type:"string"},activeOrderId:{type:"string",nullable:!0},utility:{type:"string",nullable:!0},openRentalId:{type:"string",nullable:!0},owner:{type:"string"},name:{type:"string"},image:{type:"string"},url:{type:"string"},data:{type:"object",nullable:!1,properties:{parcel:{type:"object",properties:{description:{type:["string"],nullable:!0},x:{type:"string"},y:{type:"string"},estate:{type:"object",properties:{tokenId:{type:"string"},name:{type:"string"}},required:["tokenId","name"],nullable:!0}},required:["description","x","y","estate"],nullable:!0},estate:{type:"object",properties:{description:{type:["string"],nullable:!0},size:{type:"integer"},parcels:{type:"array",items:{type:"object",properties:{x:{type:"number"},y:{type:"number"}},required:["x","y"]}}},required:["description","size","parcels"],nullable:!0},wearable:{type:"object",properties:{bodyShapes:{type:"array",items:n.BodyShape.schema},category:c.WearableCategory.schema,description:{type:"string"},rarity:u.Rarity.schema,isSmart:{type:"boolean"}},required:["bodyShapes","category","description","rarity","isSmart"],nullable:!0},ens:{type:"object",properties:{subdomain:{type:"string"}},required:["subdomain"],nullable:!0},emote:{type:"object",properties:{bodyShapes:{type:"array",items:n.BodyShape.schema},category:n.EmoteCategory.schema,description:{type:"string"},rarity:u.Rarity.schema,loop:{type:"boolean"},hasSound:{type:"boolean"},hasGeometry:{type:"boolean"}},required:["bodyShapes","category","description","rarity","loop"],nullable:!0}},required:[]},issuedId:{type:"string",nullable:!0},itemId:{type:"string",nullable:!0},category:o.NFTCategory.schema,network:i.Network.schema,chainId:t.ChainId.schema,createdAt:{type:"integer"},updatedAt:{type:"integer"},soldAt:{type:"integer"},urn:{type:"string",nullable:!0}},required:["id","tokenId","contractAddress","activeOrderId","openRentalId","owner","name","image","url","data","issuedId","itemId","category","network","chainId","createdAt","updatedAt","soldAt"]},f.validate=(0,a.generateLazyValidator)(f.schema)})(e.NFT||(e.NFT={}))})(Gv)),Gv}var QN;function FH(){return QN||(QN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Item=e.ItemSortBy=void 0;const a=Xe(),t=Dn(),n=di(),i=nk(),o=bf();(function(u){u.NAME="name",u.NEWEST="newest",u.RECENTLY_REVIEWED="recently_reviewed",u.RECENTLY_SOLD="recently_sold",u.RECENTLY_LISTED="recently_listed",u.CHEAPEST="cheapest"})(e.ItemSortBy||(e.ItemSortBy={})),(function(u){u.schema={type:"object",properties:{id:{type:"string"},name:{type:"string"},thumbnail:{type:"string"},url:{type:"string"},category:o.NFTCategory.schema,contractAddress:{type:"string"},itemId:{type:"string"},rarity:{type:"string"},price:{type:"string"},available:{type:"integer"},isOnSale:{type:"boolean"},creator:{type:"string"},beneficiary:{type:"string",nullable:!0},tradeId:{type:"string",nullable:!0},data:i.NFT.schema.properties.data,network:n.Network.schema,chainId:t.ChainId.schema,urn:{type:"string"},createdAt:{type:"integer"},updatedAt:{type:"integer"},reviewedAt:{type:"integer"},soldAt:{type:"integer"},firstListedAt:{type:"integer",nullable:!0},picks:{type:"object",properties:{pickedByUser:{type:"boolean",nullable:!0},count:{type:"integer"}},required:["count"],nullable:!0},minPrice:{type:"string",nullable:!0},utility:{type:"string",nullable:!0},minListingPrice:{type:"string",nullable:!0},maxListingPrice:{type:"string",nullable:!0},listings:{type:"integer",nullable:!0},owners:{type:"integer",nullable:!0},tradeExpiresAt:{type:"integer",nullable:!0}},required:["id","name","thumbnail","url","category","contractAddress","itemId","rarity","price","available","isOnSale","creator","data","network","chainId","createdAt","updatedAt","soldAt"]},u.validate=(0,a.generateLazyValidator)(u.schema)})(e.Item||(e.Item={}))})(Wv)),Wv}var Kv={},ZN;function a0(){return ZN||(ZN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ListingStatus=void 0;const a=Xe();(function(t){t.OPEN="open",t.SOLD="sold",t.CANCELLED="cancelled"})(e.ListingStatus||(e.ListingStatus={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.ListingStatus||(e.ListingStatus={}))})(Kv)),Kv}var Yv={},$N;function VH(){return $N||($N=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MetaTransaction=void 0;const a=Xe();(function(t){t.schema={type:"object",properties:{from:{type:"string"},params:{type:"array",items:[{type:"string"},{type:"string"}],additionalItems:!1,minItems:2}},additionalProperties:!1,required:["from","params"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.MetaTransaction||(e.MetaTransaction={}))})(Yv)),Yv}var Xv={},xN;function HH(){return xN||(xN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Mint=e.MintSortBy=void 0;const a=Xe(),t=Dn(),n=di();(function(i){i.RECENTLY_MINTED="recently_minted",i.MOST_EXPENSIVE="most_expensive"})(e.MintSortBy||(e.MintSortBy={})),(function(i){i.schema={type:"object",properties:{id:{type:"string"},creator:{type:"string"},beneficiary:{type:"string"},minter:{type:"string"},price:{type:"string",nullable:!0},contractAddress:{type:"string"},tokenId:{type:"string"},itemId:{type:"string"},issuedId:{type:"string"},timestamp:{type:"integer"},network:n.Network.schema,chainId:t.ChainId.schema},required:["id","creator","beneficiary","minter","itemId","tokenId","issuedId","contractAddress","price","timestamp","network","chainId"]},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.Mint||(e.Mint={}))})(Xv)),Xv}var Jv={},eC;function zH(){return eC||(eC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CatalogSortDirection=e.CatalogSortBy=void 0,(function(a){a.NEWEST="newest",a.RECENTLY_SOLD="recently_sold",a.CHEAPEST="cheapest",a.MOST_EXPENSIVE="most_expensive",a.RECENTLY_LISTED="recently_listed"})(e.CatalogSortBy||(e.CatalogSortBy={})),(function(a){a.ASC="asc",a.DESC="desc"})(e.CatalogSortDirection||(e.CatalogSortDirection={}))})(Jv)),Jv}var Qv={},tC;function WH(){return tC||(tC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Order=e.OrderSortBy=void 0;const a=Xe(),t=Dn(),n=a0(),i=di();(function(o){o.RECENTLY_LISTED="recently_listed",o.RECENTLY_UPDATED="recently_updated",o.CHEAPEST="cheapest",o.ISSUED_ID_ASC="issued_id_asc",o.ISSUED_ID_DESC="issued_id_desc",o.OLDEST="oldest"})(e.OrderSortBy||(e.OrderSortBy={})),(function(o){o.schema={type:"object",properties:{id:{type:"string"},marketplaceAddress:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},owner:{type:"string"},buyer:{type:["string"],nullable:!0},price:{type:"string"},status:n.ListingStatus.schema,network:i.Network.schema,chainId:t.ChainId.schema,expiresAt:{type:"integer"},createdAt:{type:"integer"},updatedAt:{type:"integer"},issuedId:{type:"string"},tradeId:{type:"string",nullable:!0}},required:["id","marketplaceAddress","contractAddress","tokenId","owner","buyer","price","status","network","chainId","expiresAt","createdAt","updatedAt"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.Order||(e.Order={}))})(Qv)),Qv}var Zv={},rC;function ik(){return rC||(rC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SaleType=void 0;const a=Xe();(function(t){t.ORDER="order",t.BID="bid",t.MINT="mint"})(e.SaleType||(e.SaleType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.SaleType||(e.SaleType={}))})(Zv)),Zv}var $v={},nC;function GH(){return nC||(nC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Sale=e.SaleSortBy=void 0;const a=Xe(),t=Dn(),n=ik(),i=di();(function(o){o.RECENTLY_SOLD="recently_sold",o.MOST_EXPENSIVE="most_expensive"})(e.SaleSortBy||(e.SaleSortBy={})),(function(o){o.schema={type:"object",properties:{id:{type:"string"},type:n.SaleType.schema,buyer:{type:"string"},seller:{type:"string"},price:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},itemId:{type:"string"},txHash:{type:"string"},timestamp:{type:"integer"},network:i.Network.schema,chainId:t.ChainId.schema},required:["id","buyer","seller","itemId","tokenId","price","contractAddress","timestamp","txHash","network","chainId"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.Sale||(e.Sale={}))})($v)),$v}var xv={},iC;function KH(){return iC||(iC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.RentalListingCreation=e.PeriodCreation=e.RentalsListingsSortBy=e.RentalsListingsFilterByCategory=e.RentalsListingSortDirection=e.RentalStatus=void 0;const a=Xe(),t=Dn(),n=di();(function(o){o.OPEN="open",o.CANCELLED="cancelled",o.EXECUTED="executed",o.CLAIMED="claimed"})(e.RentalStatus||(e.RentalStatus={})),(function(o){o.ASC="asc",o.DESC="desc"})(e.RentalsListingSortDirection||(e.RentalsListingSortDirection={})),(function(o){o.PARCEL="parcel",o.ESTATE="estate"})(e.RentalsListingsFilterByCategory||(e.RentalsListingsFilterByCategory={})),(function(o){o.LAND_CREATION_DATE="land_creation_date",o.RENTAL_LISTING_DATE="rental_listing_date",o.RENTAL_DATE="rented_date",o.NAME="name",o.MAX_RENTAL_PRICE="max_rental_price",o.MIN_RENTAL_PRICE="min_rental_price"})(e.RentalsListingsSortBy||(e.RentalsListingsSortBy={}));var i;(function(o){o.schema={type:"object",properties:{minDays:{type:"integer",minimum:0,maximum:2147483647},maxDays:{type:"integer",minimum:0,maximum:2147483647},pricePerDay:{type:"string",pattern:"^[0-9]+$"}},additionalProperties:!1,required:["minDays","maxDays","pricePerDay"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(i=e.PeriodCreation||(e.PeriodCreation={})),(function(o){o.schema={type:"object",properties:{network:n.Network.schema,chainId:t.ChainId.schema,expiration:{type:"number",minimum:0},signature:{type:"string",minLength:1},tokenId:{type:"string",minLength:1},nonces:{type:"array",minItems:3,maxItems:3,items:{minLength:1,type:"string",pattern:"^[0-9]+$"}},contractAddress:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"},rentalContractAddress:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"},periods:{type:"array",minItems:1,maxItems:100,uniqueItems:!0,items:i.schema},target:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"}},additionalProperties:!1,required:["network","chainId","expiration","signature","nonces","tokenId","contractAddress","rentalContractAddress","periods","target"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.RentalListingCreation||(e.RentalListingCreation={}))})(xv)),xv}var e_={},aC;function YH(){return aC||(aC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AnalyticsDayDataSortBy=void 0,(function(a){a.DATE="date",a.MOST_SALES="most_sales"})(e.AnalyticsDayDataSortBy||(e.AnalyticsDayDataSortBy={}))})(e_)),e_}var t_={},oC;function XH(){return oC||(oC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Store=void 0;const a=Xe();(function(t){t.schema={type:"object",properties:{id:{type:"string"},version:{type:"number"},owner:{type:"string"},description:{type:"string"},links:{type:"array",items:{type:"object",properties:{name:{type:"string"},url:{type:"string"}},required:["name","url"]}},images:{type:"array",items:{type:"object",properties:{name:{type:"string"},file:{type:"string"}},required:["name","file"]}}},required:["id","version","owner","description","links","images"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Store||(e.Store={}))})(t_)),t_}var r_={},sC;function JH(){return sC||(sC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.GenderFilterOption=e.WearableGender=void 0;const a=Xe();(function(t){t.MALE="male",t.FEMALE="female"})(e.WearableGender||(e.WearableGender={})),(function(t){t.MALE="male",t.FEMALE="female",t.UNISEX="unisex"})(e.GenderFilterOption||(e.GenderFilterOption={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.WearableGender||(e.WearableGender={}))})(r_)),r_}var n_={},uC;function QH(){return uC||(uC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.World=e.isInsideWorldLimits=e.getWorld=void 0;const a=Xe();function t(){return{validWorldRanges:[{xMin:-150,yMin:-150,xMax:150,yMax:150},{xMin:62,yMin:151,xMax:162,yMax:158},{xMin:151,yMin:144,xMax:162,yMax:150},{xMin:151,yMin:59,xMax:163,yMax:143}]}}e.getWorld=t;function n(i,o){const u=t().validWorldRanges;for(const c of u)if(i>=c.xMin&&i<=c.xMax&&o>=c.yMin&&o<=c.yMax)return!0;return!1}e.isInsideWorldLimits=n,(function(i){i.schema={type:"object",required:["validWorldRanges"],properties:{validWorldRanges:{type:"array",default:[{xMin:-150,yMin:-150,xMax:150,yMax:150}],items:{type:"object",required:["xMin","yMin","xMax","yMax"],properties:{xMin:{type:"integer"},yMin:{type:"integer"},xMax:{type:"integer"},yMax:{type:"integer"}}}}},additionalProperties:!1},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.World||(e.World={}))})(n_)),n_}var i_={},lC;function ZH(){return lC||(lC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Bid=e.BidSortBy=void 0;const a=Xe(),t=Dn(),n=a0(),i=di();(function(o){o.RECENTLY_OFFERED="recently_offered",o.RECENTLY_UPDATED="recently_updated",o.MOST_EXPENSIVE="most_expensive"})(e.BidSortBy||(e.BidSortBy={})),(function(o){const u={properties:{id:{type:"string"},bidder:{type:"string"},seller:{type:"string"},price:{type:"string"},fingerprint:{type:"string"},status:n.ListingStatus.schema,contractAddress:{type:"string"},network:i.Network.schema,chainId:t.ChainId.schema,expiresAt:{type:"integer"},createdAt:{type:"integer"},updatedAt:{type:"integer"}},required:["id","bidder","seller","price","fingerprint","status","contractAddress","network","chainId","expiresAt","createdAt","updatedAt"]};o.schema={type:"object",required:[],oneOf:[{properties:Object.assign(Object.assign({},u.properties),{tradeId:{type:"string"},tokenId:{type:"string"}}),required:[...u.required,"tradeId","tokenId"]},{type:"object",properties:Object.assign(Object.assign({},u.properties),{tradeId:{type:"string"},itemId:{type:"string"}}),required:[...u.required,"tradeId","itemId"]},{type:"object",properties:Object.assign(Object.assign({},u.properties),{bidAddress:{type:"string"},blockchainId:{type:"string"},blockNumber:{type:"string"},tokenId:{type:"string"}}),required:[...u.required,"bidAddress","blockchainId","blockNumber","tokenId"]}]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.Bid||(e.Bid={}))})(i_)),i_}var a_={},cC;function $H(){return cC||(cC=1,Object.defineProperty(a_,"__esModule",{value:!0})),a_}var o_={},dC;function xH(){return dC||(dC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TradeAssetDirection=e.TradeAssetType=e.TradeType=void 0,(function(a){a.BID="bid",a.PUBLIC_NFT_ORDER="public_nft_order",a.PUBLIC_ITEM_ORDER="public_item_order"})(e.TradeType||(e.TradeType={})),(function(a){a[a.ERC20=1]="ERC20",a[a.USD_PEGGED_MANA=2]="USD_PEGGED_MANA",a[a.ERC721=3]="ERC721",a[a.COLLECTION_ITEM=4]="COLLECTION_ITEM"})(e.TradeAssetType||(e.TradeAssetType={})),(function(a){a.SENT="sent",a.RECEIVED="received"})(e.TradeAssetDirection||(e.TradeAssetDirection={}))})(o_)),o_}var Bo={},s_={},fC;function e4(){return fC||(fC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewCamera=void 0;const a=Xe();(function(t){t.STATIC="static",t.INTERACTIVE="interactive"})(e.PreviewCamera||(e.PreviewCamera={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewCamera||(e.PreviewCamera={}))})(s_)),s_}var u_={},pC;function t4(){return pC||(pC=1,Object.defineProperty(u_,"__esModule",{value:!0})),u_}var l_={},yC;function r4(){return yC||(yC=1,Object.defineProperty(l_,"__esModule",{value:!0})),l_}var c_={},mC;function n4(){return mC||(mC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewEmoteEventType=void 0;const a=Xe();(function(t){t.ANIMATION_PLAY="animation_play",t.ANIMATION_PAUSE="animation_pause",t.ANIMATION_LOOP="animation_loop",t.ANIMATION_END="animation_end",t.ANIMATION_PLAYING="animation_playing"})(e.PreviewEmoteEventType||(e.PreviewEmoteEventType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewEmoteEventType||(e.PreviewEmoteEventType={}))})(c_)),c_}var d_={},hC;function i4(){return hC||(hC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewEmote=void 0;const a=Xe();(function(t){t.IDLE="idle",t.WALK="walk",t.RUN="run",t.JUMP="jump",t.CLAP="clap",t.DAB="dab",t.DANCE="dance",t.FASHION="fashion",t.FASHION_2="fashion-2",t.FASHION_3="fashion-3",t.FASHION_4="fashion-4",t.LOVE="love",t.MONEY="money",t.FIST_PUMP="fist-pump",t.HEAD_EXPLODE="head-explode",t.WAVE="wave"})(e.PreviewEmote||(e.PreviewEmote={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewEmote||(e.PreviewEmote={}))})(d_)),d_}var f_={},gC;function a4(){return gC||(gC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.sendMessage=e.PreviewMessageType=void 0;const a=Xe();(function(n){n.READY="ready",n.LOAD="load",n.ERROR="error",n.UPDATE="update",n.CONTROLLER_REQUEST="controller_request",n.CONTROLLER_RESPONSE="controller_response",n.EMOTE_EVENT="emote_event"})(e.PreviewMessageType||(e.PreviewMessageType={})),(function(n){n.schema={type:"string",enum:Object.values(n)},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.PreviewMessageType||(e.PreviewMessageType={}));const t=(n,i,o,u="*")=>{const c={type:i,payload:o};n.postMessage(c,u)};e.sendMessage=t})(f_)),f_}var p_={},vC;function o4(){return vC||(vC=1,Object.defineProperty(p_,"__esModule",{value:!0})),p_}var y_={},_C;function s4(){return _C||(_C=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewProjection=void 0;const a=Xe();(function(t){t.ORTHOGRAPHIC="orthographic",t.PERSPECTIVE="perspective"})(e.PreviewProjection||(e.PreviewProjection={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewProjection||(e.PreviewProjection={}))})(y_)),y_}var m_={},EC;function u4(){return EC||(EC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewType=void 0;const a=Xe();(function(t){t.TEXTURE="texture",t.WEARABLE="wearable",t.AVATAR="avatar"})(e.PreviewType||(e.PreviewType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewType||(e.PreviewType={}))})(m_)),m_}var h_={},bC;function l4(){return bC||(bC=1,Object.defineProperty(h_,"__esModule",{value:!0})),h_}var g_={},wC;function c4(){return wC||(wC=1,Object.defineProperty(g_,"__esModule",{value:!0})),g_}var v_={},TC;function d4(){return TC||(TC=1,Object.defineProperty(v_,"__esModule",{value:!0})),v_}var __={},SC;function f4(){return SC||(SC=1,Object.defineProperty(__,"__esModule",{value:!0})),__}var E_={},OC;function p4(){return OC||(OC=1,Object.defineProperty(E_,"__esModule",{value:!0})),E_}var b_={},AC;function y4(){return AC||(AC=1,Object.defineProperty(b_,"__esModule",{value:!0})),b_}var w_={},PC;function m4(){return PC||(PC=1,Object.defineProperty(w_,"__esModule",{value:!0})),w_}var T_={},IC;function h4(){return IC||(IC=1,Object.defineProperty(T_,"__esModule",{value:!0})),T_}var RC;function g4(){return RC||(RC=1,(function(e){var a=Bo&&Bo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Bo&&Bo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(e4(),e),t(t4(),e),t(r4(),e),t(n4(),e),t(i4(),e),t(a4(),e),t(o4(),e),t(s4(),e),t(u4(),e),t(l4(),e),t(c4(),e),t(d4(),e),t(f4(),e),t(p4(),e),t(y4(),e),t(m4(),e),t(h4(),e)})(Bo)),Bo}var Fo={},Ku={},MC;function v4(){if(MC)return Ku;MC=1,Object.defineProperty(Ku,"__esModule",{value:!0}),Ku.isSysLink=void 0;const e=a=>a!==null&&typeof a=="object"&&"sys"in a&&"id"in a.sys;return Ku.isSysLink=e,Ku}var Yu={},NC;function _4(){if(NC)return Yu;NC=1,Object.defineProperty(Yu,"__esModule",{value:!0}),Yu.ContentfulLocale=void 0;var e;return(function(a){a.enUS="en-US",a.es="es",a.zh="zh"})(e||(e={})),Yu.ContentfulLocale=e,Yu}var S_={},CC;function E4(){return CC||(CC=1,Object.defineProperty(S_,"__esModule",{value:!0})),S_}var jC;function b4(){return jC||(jC=1,(function(e){var a=Fo&&Fo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Fo&&Fo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(v4(),e),t(_4(),e),t(E4(),e)})(Fo)),Fo}var LC;function w4(){return LC||(LC=1,(function(e){var a=Uo&&Uo.__createBinding||(Object.create?(function(K,ae,_e,be){be===void 0&&(be=_e);var ye=Object.getOwnPropertyDescriptor(ae,_e);(!ye||("get"in ye?!ae.__esModule:ye.writable||ye.configurable))&&(ye={enumerable:!0,get:function(){return ae[_e]}}),Object.defineProperty(K,be,ye)}):(function(K,ae,_e,be){be===void 0&&(be=_e),K[be]=ae[_e]})),t=Uo&&Uo.__exportStar||function(K,ae){for(var _e in K)_e!=="default"&&!Object.prototype.hasOwnProperty.call(ae,_e)&&a(ae,K,_e)};Object.defineProperty(e,"__esModule",{value:!0}),e.isInsideWorldLimits=e.getWorld=e.World=e.GenderFilterOption=e.WearableGender=e.Store=e.AnalyticsDayDataSortBy=e.PeriodCreation=e.RentalListingCreation=e.RentalsListingsSortBy=e.RentalsListingsFilterByCategory=e.RentalsListingSortDirection=e.RentalStatus=e.SaleSortBy=e.Sale=e.SaleType=e.Rarity=e.ProviderType=e.OrderSortBy=e.Order=e.CatalogSortDirection=e.CatalogSortBy=e.NFTSortBy=e.NFT=e.NFTCategory=e.Network=e.MintSortBy=e.Mint=e.MetaTransaction=e.ListingStatus=e.ItemSortBy=e.Item=e.ContractSortBy=e.Contract=e.CollectionSortBy=e.Collection=e.getChainId=e.ChainName=e.getURNProtocol=e.getChainName=e.ChainId=e.AccountSortBy=e.Account=void 0;var n=kH();Object.defineProperty(e,"Account",{enumerable:!0,get:function(){return n.Account}}),Object.defineProperty(e,"AccountSortBy",{enumerable:!0,get:function(){return n.AccountSortBy}});var i=Dn();Object.defineProperty(e,"ChainId",{enumerable:!0,get:function(){return i.ChainId}}),Object.defineProperty(e,"getChainName",{enumerable:!0,get:function(){return i.getChainName}}),Object.defineProperty(e,"getURNProtocol",{enumerable:!0,get:function(){return i.getURNProtocol}});var o=jq();Object.defineProperty(e,"ChainName",{enumerable:!0,get:function(){return o.ChainName}}),Object.defineProperty(e,"getChainId",{enumerable:!0,get:function(){return o.getChainId}});var u=UH();Object.defineProperty(e,"Collection",{enumerable:!0,get:function(){return u.Collection}}),Object.defineProperty(e,"CollectionSortBy",{enumerable:!0,get:function(){return u.CollectionSortBy}});var c=BH();Object.defineProperty(e,"Contract",{enumerable:!0,get:function(){return c.Contract}}),Object.defineProperty(e,"ContractSortBy",{enumerable:!0,get:function(){return c.ContractSortBy}});var f=FH();Object.defineProperty(e,"Item",{enumerable:!0,get:function(){return f.Item}}),Object.defineProperty(e,"ItemSortBy",{enumerable:!0,get:function(){return f.ItemSortBy}});var p=a0();Object.defineProperty(e,"ListingStatus",{enumerable:!0,get:function(){return p.ListingStatus}});var y=VH();Object.defineProperty(e,"MetaTransaction",{enumerable:!0,get:function(){return y.MetaTransaction}});var m=HH();Object.defineProperty(e,"Mint",{enumerable:!0,get:function(){return m.Mint}}),Object.defineProperty(e,"MintSortBy",{enumerable:!0,get:function(){return m.MintSortBy}});var g=di();Object.defineProperty(e,"Network",{enumerable:!0,get:function(){return g.Network}});var S=bf();Object.defineProperty(e,"NFTCategory",{enumerable:!0,get:function(){return S.NFTCategory}});var M=nk();Object.defineProperty(e,"NFT",{enumerable:!0,get:function(){return M.NFT}}),Object.defineProperty(e,"NFTSortBy",{enumerable:!0,get:function(){return M.NFTSortBy}});var R=zH();Object.defineProperty(e,"CatalogSortBy",{enumerable:!0,get:function(){return R.CatalogSortBy}}),Object.defineProperty(e,"CatalogSortDirection",{enumerable:!0,get:function(){return R.CatalogSortDirection}});var I=WH();Object.defineProperty(e,"Order",{enumerable:!0,get:function(){return I.Order}}),Object.defineProperty(e,"OrderSortBy",{enumerable:!0,get:function(){return I.OrderSortBy}});var N=Lq();Object.defineProperty(e,"ProviderType",{enumerable:!0,get:function(){return N.ProviderType}});var E=_f();Object.defineProperty(e,"Rarity",{enumerable:!0,get:function(){return E.Rarity}});var P=ik();Object.defineProperty(e,"SaleType",{enumerable:!0,get:function(){return P.SaleType}});var T=GH();Object.defineProperty(e,"Sale",{enumerable:!0,get:function(){return T.Sale}}),Object.defineProperty(e,"SaleSortBy",{enumerable:!0,get:function(){return T.SaleSortBy}});var v=KH();Object.defineProperty(e,"RentalStatus",{enumerable:!0,get:function(){return v.RentalStatus}}),Object.defineProperty(e,"RentalsListingSortDirection",{enumerable:!0,get:function(){return v.RentalsListingSortDirection}}),Object.defineProperty(e,"RentalsListingsFilterByCategory",{enumerable:!0,get:function(){return v.RentalsListingsFilterByCategory}}),Object.defineProperty(e,"RentalsListingsSortBy",{enumerable:!0,get:function(){return v.RentalsListingsSortBy}}),Object.defineProperty(e,"RentalListingCreation",{enumerable:!0,get:function(){return v.RentalListingCreation}}),Object.defineProperty(e,"PeriodCreation",{enumerable:!0,get:function(){return v.PeriodCreation}});var O=YH();Object.defineProperty(e,"AnalyticsDayDataSortBy",{enumerable:!0,get:function(){return O.AnalyticsDayDataSortBy}});var C=XH();Object.defineProperty(e,"Store",{enumerable:!0,get:function(){return C.Store}});var z=JH();Object.defineProperty(e,"WearableGender",{enumerable:!0,get:function(){return z.WearableGender}}),Object.defineProperty(e,"GenderFilterOption",{enumerable:!0,get:function(){return z.GenderFilterOption}});var U=QH();Object.defineProperty(e,"World",{enumerable:!0,get:function(){return U.World}}),Object.defineProperty(e,"getWorld",{enumerable:!0,get:function(){return U.getWorld}}),Object.defineProperty(e,"isInsideWorldLimits",{enumerable:!0,get:function(){return U.isInsideWorldLimits}}),t(ZH(),e),t($H(),e),t(xH(),e),t(g4(),e),t(b4(),e)})(Uo)),Uo}var O_={},DC;function T4(){return DC||(DC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LinkerAuthorization=void 0;const a=Xe();(function(t){t.schema={type:"object",properties:{name:{type:"string"},desc:{type:"string"},startDate:{type:"string",nullable:!0},endDate:{type:"string",nullable:!0},contactInfo:{type:"object",properties:{name:{type:"string"}},required:["name"]},onlyDev:{type:"boolean",nullable:!0},addresses:{type:"array",items:{type:"string"},minItems:1},plots:{type:"array",items:{type:"string"},minItems:1}},required:["name","desc","contactInfo","addresses","plots"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.LinkerAuthorization||(e.LinkerAuthorization={}))})(O_)),O_}var qC;function S4(){return qC||(qC=1,(function(e){var a=ei&&ei.__createBinding||(Object.create?(function(u,c,f,p){p===void 0&&(p=f);var y=Object.getOwnPropertyDescriptor(c,f);(!y||("get"in y?!c.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:function(){return c[f]}}),Object.defineProperty(u,p,y)}):(function(u,c,f,p){p===void 0&&(p=f),u[p]=c[f]})),t=ei&&ei.__setModuleDefault||(Object.create?(function(u,c){Object.defineProperty(u,"default",{enumerable:!0,value:c})}):function(u,c){u.default=c}),n=ei&&ei.__importStar||function(u){if(u&&u.__esModule)return u;var c={};if(u!=null)for(var f in u)f!=="default"&&Object.prototype.hasOwnProperty.call(u,f)&&a(c,u,f);return t(c,u),c},i=ei&&ei.__exportStar||function(u,c){for(var f in u)f!=="default"&&!Object.prototype.hasOwnProperty.call(c,f)&&a(c,u,f)};Object.defineProperty(e,"__esModule",{value:!0}),e.sdk=void 0;const o=n(qH());e.sdk=o,i(Xe(),e),i(w4(),e),i(i0(),e),i(is(),e),i(T4(),e),i(Ef(),e),i($q(),e),i(rk(),e)})(ei)),ei}var eu=S4();const O4=Object.freeze({storageKey:"decentraland-connect-storage-key",[Ct.ProviderType.INJECTED]:{},[Ct.ProviderType.FORTMATIC]:{apiKeys:{[wt.ChainId.ETHEREUM_MAINNET]:"pk_live_F8E24DF8DD5BCBC5",[wt.ChainId.ETHEREUM_SEPOLIA]:"pk_test_5B728BEFE5C10911"},urls:Js(Ct.ProviderType.FORTMATIC)},[Ct.ProviderType.NETWORK]:{urls:Js(Ct.ProviderType.NETWORK)},[Ct.ProviderType.WALLET_LINK]:{appName:"Decentraland",urls:Js(Ct.ProviderType.WALLET_LINK)},[Ct.ProviderType.WALLET_CONNECT_V2]:{projectId:"61570c542c2d66c659492e5b24a41522",urls:Js(Ct.ProviderType.WALLET_CONNECT_V2),chains:{[wt.ChainId.ETHEREUM_MAINNET]:{chains:[wt.ChainId.ETHEREUM_MAINNET],optionalChains:[wt.ChainId.MATIC_MAINNET,wt.ChainId.ARBITRUM_MAINNET,wt.ChainId.OPTIMISM_MAINNET,wt.ChainId.AVALANCHE_MAINNET,wt.ChainId.BSC_MAINNET,wt.ChainId.FANTOM_MAINNET]},[wt.ChainId.ETHEREUM_SEPOLIA]:{chains:[wt.ChainId.ETHEREUM_SEPOLIA],optionalChains:[wt.ChainId.MATIC_AMOY]}}},[Ct.ProviderType.MAGIC]:{apiKey:"pk_live_212568025B158355",urls:Js(Ct.ProviderType.MAGIC),chains:[wt.ChainId.ETHEREUM_MAINNET,wt.ChainId.ETHEREUM_SEPOLIA,wt.ChainId.MATIC_MAINNET,wt.ChainId.MATIC_AMOY,wt.ChainId.OPTIMISM_MAINNET,wt.ChainId.ARBITRUM_MAINNET,wt.ChainId.AVALANCHE_MAINNET,wt.ChainId.BSC_MAINNET,wt.ChainId.FANTOM_MAINNET]},[Ct.ProviderType.MAGIC_TEST]:{apiKey:"pk_live_CE856A4938B36648",urls:Js(Ct.ProviderType.MAGIC),chains:[wt.ChainId.ETHEREUM_MAINNET,wt.ChainId.ETHEREUM_SEPOLIA,wt.ChainId.MATIC_MAINNET,wt.ChainId.MATIC_AMOY,wt.ChainId.OPTIMISM_MAINNET,wt.ChainId.ARBITRUM_MAINNET,wt.ChainId.AVALANCHE_MAINNET,wt.ChainId.BSC_MAINNET,wt.ChainId.FANTOM_MAINNET]}});function Qi(){return O4}function Js(e){const a={[wt.ChainId.ETHEREUM_MAINNET]:"https://rpc.decentraland.org/mainnet",[wt.ChainId.ETHEREUM_SEPOLIA]:"https://rpc.decentraland.org/sepolia",[wt.ChainId.MATIC_MAINNET]:"https://rpc.decentraland.org/polygon",[wt.ChainId.MATIC_AMOY]:"https://rpc.decentraland.org/amoy",[wt.ChainId.ARBITRUM_MAINNET]:"https://rpc.decentraland.org/arbitrum",[wt.ChainId.OPTIMISM_MAINNET]:"https://rpc.decentraland.org/optimism",[wt.ChainId.AVALANCHE_MAINNET]:"https://rpc.decentraland.org/avalanche",[wt.ChainId.BSC_MAINNET]:"https://rpc.decentraland.org/binance",[wt.ChainId.FANTOM_MAINNET]:"https://rpc.decentraland.org/fantom"};let t="";switch(e){case Ct.ProviderType.WALLET_LINK:t="walletlink";break;case Ct.ProviderType.FORTMATIC:t="fortmatic";break;case Ct.ProviderType.MAGIC:t="magic";break;case Ct.ProviderType.MAGIC_TEST:t="magic";break;case Ct.ProviderType.WALLET_CONNECT_V2:t="walletconnect-v2";break;case Ct.ProviderType.AUTH_SERVER:t="auth-server";break}if(t)for(const n in a)a[n]+=`?project=${t}`;return a}class A4 extends iu{constructor(a){const t=Qi()[eu.ProviderType.FORTMATIC],n=Object.keys(t.apiKeys).map(i=>Number(i));if(!n.includes(a))throw new Error(`Invariant error: Unsupported chainId ${a}`);super({supportedChainIds:n}),this.apiKey=t.apiKeys[a],this.chainId=a,this.rpcUrl=t.urls[a]}async activate(){if(!this.fortmatic){const{default:t}=await Pl(async()=>{const{default:n}=await import("./fortmatic-DwNYA7Nn.js").then(i=>i.f);return{default:n}},[]);this.fortmatic=new t(this.apiKey,{rpcUrl:this.rpcUrl,chainId:this.chainId})}const a=await this.fortmatic.getProvider().enable().then(t=>t[0]);return{provider:this.fortmatic.getProvider(),chainId:this.chainId,account:a}}getApiKey(){return this.apiKey}async getProvider(){return this.fortmatic.getProvider()}async getChainId(){return this.chainId}async getAccount(){return this.fortmatic.getProvider().send("eth_accounts").then(a=>a[0])}deactivate(){}close(){return this.fortmatic.user.logout()}}function mb(){return mb=Object.assign||function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},mb.apply(this,arguments)}function o0(e,a){e.prototype=Object.create(a.prototype),e.prototype.constructor=e,e.__proto__=a}function hb(e){return hb=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},hb(e)}function tf(e,a){return tf=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},tf(e,a)}function P4(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Zd(e,a,t){return P4()?Zd=Reflect.construct:Zd=function(i,o,u){var c=[null];c.push.apply(c,o);var f=Function.bind.apply(i,c),p=new f;return u&&tf(p,u.prototype),p},Zd.apply(null,arguments)}function I4(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function rf(e){var a=typeof Map=="function"?new Map:void 0;return rf=function(n){if(n===null||!I4(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof a<"u"){if(a.has(n))return a.get(n);a.set(n,i)}function i(){return Zd(n,arguments,hb(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),tf(i,n)},rf(e)}function Wd(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}typeof Symbol<"u"&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")));typeof Symbol<"u"&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));function Qs(e,a){try{var t=e()}catch(n){return a(n)}return t&&t.then?t.then(void 0,a):t}function Ai(e){return e.hasOwnProperty("result")?e.result:e}var A_=(function(e){o0(a,e);function a(){var t;return t=e.call(this)||this,t.name=t.constructor.name,t.message="No Ethereum provider was found on window.ethereum.",t}return a})(rf(Error)),R4=(function(e){o0(a,e);function a(){var t;return t=e.call(this)||this,t.name=t.constructor.name,t.message="The user rejected the request.",t}return a})(rf(Error)),M4=(function(e){o0(a,e);function a(n){var i;return i=e.call(this,n)||this,i.handleNetworkChanged=i.handleNetworkChanged.bind(Wd(i)),i.handleChainChanged=i.handleChainChanged.bind(Wd(i)),i.handleAccountsChanged=i.handleAccountsChanged.bind(Wd(i)),i.handleClose=i.handleClose.bind(Wd(i)),i}var t=a.prototype;return t.handleChainChanged=function(i){this.emitUpdate({chainId:i,provider:window.ethereum})},t.handleAccountsChanged=function(i){i.length===0?this.emitDeactivate():this.emitUpdate({account:i[0]})},t.handleClose=function(i,o){this.emitDeactivate()},t.handleNetworkChanged=function(i){this.emitUpdate({chainId:i,provider:window.ethereum})},t.activate=function(){try{var i=function(y){if(o)return y;function m(){return mb({provider:window.ethereum},c?{account:c}:{})}var g=(function(){if(!c)return Promise.resolve(window.ethereum.enable().then(function(S){return S&&Ai(S)[0]})).then(function(S){c=S})})();return g&&g.then?g.then(m):m(g)},o=!1,u=this;if(!window.ethereum)throw new A_;window.ethereum.on&&(window.ethereum.on("chainChanged",u.handleChainChanged),window.ethereum.on("accountsChanged",u.handleAccountsChanged),window.ethereum.on("close",u.handleClose),window.ethereum.on("networkChanged",u.handleNetworkChanged)),window.ethereum.isMetaMask&&(window.ethereum.autoRefreshOnNetworkChange=!1);var c,f=Qs(function(){return Promise.resolve(window.ethereum.send("eth_requestAccounts").then(function(p){return Ai(p)[0]})).then(function(p){c=p})},function(p){if(p.code===4001)throw new R4});return Promise.resolve(f&&f.then?f.then(i):i(f))}catch(p){return Promise.reject(p)}},t.getProvider=function(){try{return Promise.resolve(window.ethereum)}catch(i){return Promise.reject(i)}},t.getChainId=function(){try{var i=function(){function f(){if(!o)try{o=Ai(window.ethereum.send({method:"net_version"}))}catch{}return o||(window.ethereum.isDapper?o=Ai(window.ethereum.cachedResults.net_version):o=window.ethereum.chainId||window.ethereum.netVersion||window.ethereum.networkVersion||window.ethereum._chainId),o}var p=(function(){if(!o){var y=Qs(function(){return Promise.resolve(window.ethereum.send("net_version").then(Ai)).then(function(m){o=m})},function(){});if(y&&y.then)return y.then(function(){})}})();return p&&p.then?p.then(f):f(p)};if(!window.ethereum)throw new A_;var o,u=Qs(function(){return Promise.resolve(window.ethereum.send("eth_chainId").then(Ai)).then(function(c){o=c})},function(){});return Promise.resolve(u&&u.then?u.then(i):i(u))}catch(c){return Promise.reject(c)}},t.getAccount=function(){try{var i=function(){function f(){return o||(o=Ai(window.ethereum.send({method:"eth_accounts"}))[0]),o}var p=(function(){if(!o){var y=Qs(function(){return Promise.resolve(window.ethereum.enable().then(function(m){return Ai(m)[0]})).then(function(m){o=m})},function(){});if(y&&y.then)return y.then(function(){})}})();return p&&p.then?p.then(f):f(p)};if(!window.ethereum)throw new A_;var o,u=Qs(function(){return Promise.resolve(window.ethereum.send("eth_accounts").then(function(c){return Ai(c)[0]})).then(function(c){o=c})},function(){});return Promise.resolve(u&&u.then?u.then(i):i(u))}catch(c){return Promise.reject(c)}},t.deactivate=function(){window.ethereum&&window.ethereum.removeListener&&(window.ethereum.removeListener("chainChanged",this.handleChainChanged),window.ethereum.removeListener("accountsChanged",this.handleAccountsChanged),window.ethereum.removeListener("close",this.handleClose),window.ethereum.removeListener("networkChanged",this.handleNetworkChanged))},t.isAuthorized=function(){try{return window.ethereum?Promise.resolve(Qs(function(){return Promise.resolve(window.ethereum.send("eth_accounts").then(function(i){return Ai(i).length>0}))},function(){return!1})):Promise.resolve(!1)}catch(i){return Promise.reject(i)}},a})(iu);class N4 extends Error{constructor(){super("There was an error unlocking your wallet. Please be sure your wallet is unlocked and try again."),this.name="ErrorUnlockingWallet"}}const C4=60*1e3;class j4 extends M4{constructor(a){super({supportedChainIds:[a]})}async activate(){const a=new Promise((n,i)=>{setTimeout(()=>{i(new N4)},C4)}),t=super.activate();return Promise.race([t,a])}}var L4="Invariant failed";function kC(e,a){throw new Error(L4)}function ak(e,a){e.prototype=Object.create(a.prototype),e.prototype.constructor=e,Il(e,a)}function gb(e){return gb=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},gb(e)}function Il(e,a){return Il=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Il(e,a)}function D4(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function $d(e,a,t){return D4()?$d=Reflect.construct:$d=function(i,o,u){var c=[null];c.push.apply(c,o);var f=Function.bind.apply(i,c),p=new f;return u&&Il(p,u.prototype),p},$d.apply(null,arguments)}function q4(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function vb(e){var a=typeof Map=="function"?new Map:void 0;return vb=function(n){if(n===null||!q4(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof a<"u"){if(a.has(n))return a.get(n);a.set(n,i)}function i(){return $d(n,arguments,gb(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Il(i,n)},vb(e)}var P_=(function(e){ak(a,e);function a(t,n,i){var o;return o=e.call(this)||this,o.code=n,o.data=i,o.name=o.constructor.name,o.message=t,o}return a})(vb(Error)),k4=function(a,t){var n=this,i=this;this.isMetaMask=!1,this.sendAsync=function(u,c){console.log("sendAsync",u.method,u.params),i.request(u.method,u.params).then(function(f){return c(null,{jsonrpc:"2.0",id:u.id,result:f})}).catch(function(f){return c(f,null)})},this.request=function(u,c){try{return typeof u!="string"&&(c=u.params,u=u.method),Promise.resolve(fetch(n.url,{method:"POST",body:JSON.stringify({jsonrpc:"2.0",id:1,method:u,params:c}),headers:{"Content-Type":"application/json"}})).then(function(f){if(!f.ok)throw new P_(f.status+": "+f.statusText,-32e3);return Promise.resolve(f.json()).then(function(p){if("error"in p){var y,m,g;throw new P_(p==null||(y=p.error)==null?void 0:y.message,p==null||(m=p.error)==null?void 0:m.code,p==null||(g=p.error)==null?void 0:g.data)}else{if("result"in p)return p.result;throw new P_("Received unexpected JSON-RPC response to "+u+" request.",-32e3,p)}})})}catch(f){return Promise.reject(f)}},this.chainId=a,this.url=t;var o=new URL(t);this.host=o.host,this.path=o.pathname},U4=(function(e){ak(a,e);function a(n){var i,o=n.urls,u=n.defaultChainId;return u||Object.keys(o).length===1||kC(),i=e.call(this,{supportedChainIds:Object.keys(o).map(function(c){return Number(c)})})||this,i.currentChainId=u||Number(Object.keys(o)[0]),i.providers=Object.keys(o).reduce(function(c,f){return c[Number(f)]=new k4(Number(f),o[Number(f)]),c},{}),i}var t=a.prototype;return t.activate=function(){try{var i=this;return Promise.resolve({provider:i.providers[i.currentChainId],chainId:i.currentChainId,account:null})}catch(o){return Promise.reject(o)}},t.getProvider=function(){try{var i=this;return Promise.resolve(i.providers[i.currentChainId])}catch(o){return Promise.reject(o)}},t.getChainId=function(){try{var i=this;return Promise.resolve(i.currentChainId)}catch(o){return Promise.reject(o)}},t.getAccount=function(){return Promise.resolve(null)},t.deactivate=function(){},t.changeChainId=function(i){Object.keys(this.providers).includes(i.toString())||kC(),this.currentChainId=i,this.emitUpdate({provider:this.providers[this.currentChainId],chainId:i})},a})(iu);class B4 extends U4{constructor(a){super({urls:Qi()[Ct.ProviderType.NETWORK].urls,defaultChainId:a})}}function _b(){return _b=Object.assign||function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},_b.apply(this,arguments)}function F4(e,a){e.prototype=Object.create(a.prototype),e.prototype.constructor=e,Eb(e,a)}function Eb(e,a){return Eb=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Eb(e,a)}function UC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var V4=1,H4=(function(e){F4(a,e);function a(n){var i,o=n.url,u=n.appName,c=n.appLogoUrl,f=n.darkMode,p=n.supportedChainIds;return i=e.call(this,{supportedChainIds:p})||this,i.url=o,i.appName=u,i.appLogoUrl=c,i.darkMode=f||!1,i.handleChainChanged=i.handleChainChanged.bind(UC(i)),i.handleAccountsChanged=i.handleAccountsChanged.bind(UC(i)),i}var t=a.prototype;return t.activate=function(){try{var i=this,o=function(){return Promise.resolve(i.provider.request({method:"eth_requestAccounts"})).then(function(f){var p=f[0];return i.provider.on("chainChanged",i.handleChainChanged),i.provider.on("accountsChanged",i.handleAccountsChanged),{provider:i.provider,account:p}})},u=(function(){if(window.ethereum&&window.ethereum.isCoinbaseWallet===!0)i.provider=window.ethereum;else{var c=(function(){if(!i.walletLink)return Promise.resolve(Pl(()=>import("./index-bRh91pIA.js").then(f=>f.i),[]).then(function(f){var p;return(p=f?.default)!=null?p:f})).then(function(f){i.walletLink=new f(_b({appName:i.appName,darkMode:i.darkMode},i.appLogoUrl?{appLogoUrl:i.appLogoUrl}:{})),i.provider=i.walletLink.makeWeb3Provider(i.url,V4)})})();if(c&&c.then)return c.then(function(){})}})();return Promise.resolve(u&&u.then?u.then(o):o(u))}catch(c){return Promise.reject(c)}},t.getProvider=function(){try{var i=this;return Promise.resolve(i.provider)}catch(o){return Promise.reject(o)}},t.getChainId=function(){try{var i=this;return Promise.resolve(i.provider.chainId)}catch(o){return Promise.reject(o)}},t.getAccount=function(){try{var i=this;return Promise.resolve(i.provider.request({method:"eth_requestAccounts"})).then(function(o){return o[0]})}catch(o){return Promise.reject(o)}},t.deactivate=function(){this.provider.removeListener("chainChanged",this.handleChainChanged),this.provider.removeListener("accountsChanged",this.handleAccountsChanged)},t.close=function(){try{var i=this;return i.provider.close(),i.emitDeactivate(),Promise.resolve()}catch(o){return Promise.reject(o)}},t.handleChainChanged=function(i){this.emitUpdate({chainId:i})},t.handleAccountsChanged=function(i){this.emitUpdate({account:i[0]})},a})(iu);class z4 extends H4{constructor(a){const t=Qi()[eu.ProviderType.WALLET_LINK];super({url:t.urls[a],appName:t.appName,supportedChainIds:[a]})}}class Pi extends iu{constructor(a){super({supportedChainIds:(()=>{const{chains:t,optionalChains:n}=Pi.configuration.chains[a];return[...t,...n]})()}),this.desiredChainId=a,this.activate=async()=>{const t=await Pl(()=>import("./index-DZqoSBZH.js").then(i=>i.R),[]).then(i=>{const{chains:o,optionalChains:u}=Pi.configuration.chains[this.desiredChainId];return i.default.init({projectId:Pi.configuration.projectId,rpcMap:Pi.configuration.urls,chains:o,optionalChains:u,showQrModal:!0,disableProviderPing:!0,qrModalOptions:{themeVariables:{"--wcm-z-index":"3000"}},methods:["eth_sendTransaction","personal_sign"],optionalMethods:["eth_accounts","eth_requestAccounts","eth_sign","eth_signTypedData_v4","wallet_switchEthereumChain","wallet_addEthereumChain"],events:["chainChanged","accountsChanged"],optionalEvents:["disconnect"]})}),n=await t.enable();return t.on("accountsChanged",this.handleAccountsChanged),t.on("chainChanged",this.handleChainChanged),t.on("disconnect",this.handleDisconnect),this.provider=t,{chainId:t.chainId,account:n[0],provider:t}},this.getProvider=async()=>{if(!this.provider)throw new Error("Provider is undefined");return this.provider},this.getChainId=async()=>{if(!this.provider)throw new Error("Provider is undefined");return this.provider.chainId},this.getAccount=async()=>{if(!this.provider)throw new Error("Provider is undefined");return this.provider.accounts[0]},this.getWalletName=()=>this.provider?.session?.peer.metadata.name,this.deactivate=()=>{},this.close=async()=>{if(this.provider)return this.provider.removeListener("accountsChanged",this.handleAccountsChanged).removeListener("chainChanged",this.handleChainChanged).removeListener("disconnect",this.handleDisconnect).disconnect()},this.handleAccountsChanged=t=>{this.emitUpdate({account:t[0]})},this.handleChainChanged=t=>{this.emitUpdate({chainId:t})},this.handleDisconnect=()=>{if(!this.provider)throw new Error("Provider is undefined");return this.emitDeactivate()}}}Pi.configuration=Qi()[eu.ProviderType.WALLET_CONNECT_V2];Pi.clearStorage=e=>{e.removeRegExp(new RegExp("^wc@2:"))};class ok extends iu{constructor(a,t=!1){super({supportedChainIds:Qi()[eu.ProviderType.MAGIC].chains}),this.isTest=t,this.activate=async()=>{if(this.magic=await this.buildMagicInstance(this.chainId),!await this.magic.user.isLoggedIn())throw new Error("Magic: user isn't logged in");const i=await this.getProvider(),o=await i.request({method:"eth_accounts"});return this.account=o[0]??null,{provider:i,chainId:this.chainId,account:this.account}},this.getProvider=async()=>{if(!this.magic)throw new Error("Magic: instance was not initialized");const n=await this.magic.wallet.getProvider();return{...n,isMagic:!0,request:new Proxy(n.request,{apply:async(i,o,u)=>{if(u[0]?.method==="wallet_switchEthereumChain")try{const c=parseInt(u[0]?.params[0]?.chainId,16);return this.supportedChainIds&&!this.supportedChainIds.includes(c)?{code:2020202,message:"Unsupported Magic ChainId"}:(this.magic=await this.buildMagicInstance(c),this.emitUpdate({chainId:c}),null)}catch{return{code:2020201,message:"Error changing the Magic ChainId"}}return i.bind(n)(...u)}}),sendAsync:new Proxy(n.send,{apply:async(i,o,u)=>i.bind(n)(...u)})}},this.getChainId=async()=>{if(!this.magic)throw new Error("Magic: instance was not initialized");return this.chainId},this.getAccount=async()=>{if(!this.magic)throw new Error("Magic: instance was not initialized");return this.account},this.deactivate=()=>{},this.buildMagicInstance=async n=>{const{Magic:i}=await Pl(async()=>{const{Magic:c}=await import("./index-8e4wv-tH.js");return{Magic:c}},__vite__mapDeps([0,1])),{OAuthExtension:o}=await Pl(async()=>{const{OAuthExtension:c}=await import("./index-QHMvomuf.js");return{OAuthExtension:c}},__vite__mapDeps([2,1])),u=Qi()[this.isTest?eu.ProviderType.MAGIC_TEST:eu.ProviderType.MAGIC];return new i(u.apiKey,{extensions:[new o],network:{rpcUrl:u.urls[n],chainId:n}})},this.chainId=a,this.account=null}close(){if(!this.magic)throw new Error("Magic: instance was not initialized");return this.magic.user.logout()}}class W4 extends ok{constructor(a){super(a,!0)}}class G4{}class K4 extends G4{get(a){const t=window.localStorage.getItem(a);return t===null?void 0:t}set(a,t){window.localStorage.setItem(a,t)}remove(a){window.localStorage.removeItem(a)}removeRegExp(a){for(let t=localStorage.length-1;t>=0;t--){const n=localStorage.key(t);n&&a.test(n)&&localStorage.removeItem(n)}}}class nf{constructor(a){this.provider=a,this.id=0,this.on=(t,n)=>this.provider.on(t,n),this.emit=(t,...n)=>this.provider.emit(t,n),this.removeListener=(t,n)=>this.provider.removeListener(t,n),this.request=async({method:t,params:n})=>this.isModernProvider()?this.provider.request({method:t,params:n}):this.send(t,n),this.sendAsync=async(t,n)=>this.hasSendAsync()?this.provider.sendAsync(t,(i,o)=>{o&&!o.hasOwnProperty("result")?n(i,{id:0,jsonrpc:"2.0",result:o}):n(i,o)}):this.send(t,n)}static adapt(a){const t=new nf(a);return{...a,on:t.on,emit:t.emit,removeListener:t.removeListener,request:t.request,sendAsync:t.sendAsync,send:t.send.bind(t)}}async send(a,t){let n,i,o;const u=typeof t=="function";if(u){const c=a;i=c.params||[],n=c.method,o=t}else n=a,i=t||[],o=(c,f)=>{if(c)throw c;return f};if(this.isModernProvider()){const[c,f]=await this.provider.request({method:n,params:i}).then(y=>[null,y]).catch(y=>[y,void 0]);return o(c,u?{id:"",jsonrpc:"2.0",result:f}:f)}else{this.patchOldMobile();const[c,f]=u?await new Promise(p=>this.provider.send(a,(y,m)=>{p([y,m])})):await new Promise(p=>this.provider.send({jsonrpc:"2.0",id:++this.id,method:n,params:i},(y,m)=>{p([m&&m.hasOwnProperty("error")?m.error:y,m&&m.hasOwnProperty("result")?m.result:m])}));return o(c,f)}}isModernProvider(){return typeof this.provider.request=="function"}hasSendAsync(){return typeof this.provider.sendAsync=="function"}patchOldMobile(){this.provider&&!this.provider.isDapper&&!this.provider.isFortmatic&&!this.provider.isMetamask&&this.hasSendAsync()&&this.provider.send!==this.provider.sendAsync&&(this.provider.send=this.provider.sendAsync)}}class Y4{constructor(a){this.storage=a,this.getWalletName=()=>{if(this.connector instanceof Pi)return this.connector.getWalletName()},this.clearConnectionData=()=>{const{storageKey:t}=Qi();this.storage.remove(t),Pi.clearStorage(this.storage)},this.handleWeb3ReactDeactivate=async()=>{try{await this.disconnect()}catch(t){console.error(t)}}}async connect(a,t=wt.ChainId.ETHEREUM_MAINNET){if(this.connector)try{await this.disconnect()}catch(c){console.error("Error disconnecting previous connection",c)}const n=this.buildConnector(a,t);n.on(Xi.Deactivate,this.handleWeb3ReactDeactivate);let{provider:i,account:o}={};try{const c=await n.activate();i=c.provider,o=c.account}catch(c){throw console.error("Error activating the connector",c),c}(a===Ct.ProviderType.MAGIC||a===Ct.ProviderType.MAGIC_TEST)&&n.on(Xi.Update,({chainId:c})=>{c&&this.setConnectionData(a,c)});let u=t;if(a===Ct.ProviderType.INJECTED){const c=await i.request({method:"eth_chainId"});u=c?parseInt(c,16):u}return this.connector=n,this.setConnectionData(a,u),{provider:nf.adapt(i),providerType:a,account:o||"",chainId:u}}isConnected(){return!!this.connector&&!!this.getConnectionData()}async tryPreviousConnection(){const a=this.getConnectionData();if(!a)throw new Error("Could not find a valid provider. Make sure to call the `connect` method first");if(this.connector)return{provider:await this.connector.getProvider(),providerType:a.providerType,chainId:a.chainId,account:await this.connector.getAccount()};const t=this.promiseOfConnection?await this.promiseOfConnection:await(this.promiseOfConnection=this.connect(a.providerType,a.chainId));return this.promiseOfConnection=void 0,{...t,chainId:this.getConnectionData().chainId}}getAvailableProviders(){const a=[Ct.ProviderType.FORTMATIC,Ct.ProviderType.WALLET_CONNECT,Ct.ProviderType.WALLET_LINK];return typeof window<"u"&&window.ethereum!==void 0?a.unshift(Ct.ProviderType.INJECTED):a.unshift(Ct.ProviderType.METAMASK_MOBILE),a}async disconnect(){this.connector&&(this.connector.removeAllListeners(Xi.Deactivate),this.connector.removeAllListeners(Xi.Update),this.connector.deactivate(),this.isClosableConnector()&&await this.connector.close()),this.clearConnectionData(),this.connector=void 0}async getProvider(){if(!this.connector)throw new Error("No valid connector found. Please .connect() first");return this.connector.getProvider()}async createProvider(a,t=wt.ChainId.ETHEREUM_MAINNET){const i=await this.buildConnector(a,t).getProvider();return nf.adapt(i)}buildConnector(a,t){switch(a){case Ct.ProviderType.INJECTED:return new j4(t);case Ct.ProviderType.FORTMATIC:return new A4(t);case Ct.ProviderType.MAGIC:return new ok(t);case Ct.ProviderType.MAGIC_TEST:return new W4(t);case Ct.ProviderType.WALLET_LINK:return new z4(t);case Ct.ProviderType.NETWORK:return new B4(t);case Ct.ProviderType.WALLET_CONNECT_V2:return new Pi(t);default:throw new Error(`Invalid provider ${a}`)}}getConnectionData(){const{storageKey:a}=Qi(),t=this.storage.get(a);return t?JSON.parse(t):void 0}setConnectionData(a,t){const{storageKey:n}=Qi(),i=JSON.stringify({providerType:a,chainId:t});this.storage.set(n,i)}isClosableConnector(){return this.connector&&typeof this.connector.close<"u"}}const I_=new Y4(new K4),X4=e=>/^decentraland.(zone|org|today)$/.test(e),J4=async(e,a="https://peer.decentraland.org")=>{try{const n=await(await fetch(`${a}/lambdas/profiles`,{method:"POST",body:JSON.stringify({ids:[e]})})).json();return n.length>0&&n[0]?.avatars?.length>0?n[0].avatars[0]:void 0}catch(t){console.error("Error fetching avatar:",t);return}},Q4=e=>({shouldUseBasePath:X4,fetchAvatar:a=>J4(a),...e,debug:e.debug??!1}),Z4=e=>({[jn.ChainId.ETHEREUM_MAINNET]:"Ethereum Mainnet",[jn.ChainId.ETHEREUM_SEPOLIA]:"Ethereum Sepolia",[jn.ChainId.MATIC_MAINNET]:"Polygon Mainnet",[jn.ChainId.MATIC_AMOY]:"Polygon Amoy"})[e]||`Chain ID ${e}`,$4=e=>{const a="0x"+e.toString(16),t=Z4(e);switch(e){case jn.ChainId.MATIC_MAINNET:return{chainId:a,chainName:t,nativeCurrency:{name:"POL",symbol:"POL",decimals:18},rpcUrls:["https://rpc-mainnet.maticvigil.com/"],blockExplorerUrls:["https://polygonscan.com/"]};case jn.ChainId.MATIC_AMOY:return{chainId:a,chainName:t,nativeCurrency:{name:"POL",symbol:"POL",decimals:18},rpcUrls:["https://rpc-amoy.polygon.technology/"],blockExplorerUrls:["https://www.oklink.com/amoy"]};case jn.ChainId.ETHEREUM_SEPOLIA:return{chainId:a,chainName:t,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:["https://sepolia.infura.io/v3/"],blockExplorerUrls:["https://sepolia.etherscan.io"]};default:return{chainId:"0x1",chainName:"Ethereum Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:["https://mainnet.infura.io/v3/"],blockExplorerUrls:["https://etherscan.io"]}}},BC=async e=>{const a=await e.request({method:"eth_chainId"});return parseInt(a,16)},Vr=(e,a,t=!1)=>{t&&typeof console<"u"&&console.log(`[Auth] ${e}`,a||"")},x4=(e,a,t)=>{const i=new URLSearchParams(t).get("redirectTo"),o=e.shouldUseBasePath?.(window.location.host)?e.basePath:"",u=i?`${o}${i}`:`${o}${a}${t}`;return`${e.authUrl}/login?redirectTo=${encodeURIComponent(window.location.origin+u)}`},sk=fe.createContext(void 0),ez=({children:e,config:a})=>{const{pathname:t,search:n}=Sa(),i=fe.useMemo(()=>Q4(a),[a]),[o,u]=fe.useState(),[c,f]=fe.useState(),[p,y]=fe.useState(!1),[m,g]=fe.useState(!1),[S,M]=fe.useState(i.defaultChainId),R=fe.useCallback(()=>{Vr("Initiating sign in",{pathname:t,search:n},i.debug);const P=x4(i,t,n);Vr("Redirecting to auth",{redirectUrl:P},i.debug),window.location.replace(P)},[t,n,i]),I=fe.useCallback(()=>{try{Vr("Signing out",{wallet:o},i.debug),I_.disconnect(),o&&yb.LocalStorageUtils.setIdentity(o,null),u(void 0),f(void 0),y(!1),Vr("Sign out completed",void 0,i.debug)}catch(P){console.error("Error during sign-out:",P)}},[o,i.debug]),N=fe.useCallback(async(P=jn.ChainId.ETHEREUM_MAINNET)=>{try{Vr("Changing network",{from:S,to:P},i.debug);const T=await I_.getProvider();if(!T){console.error("No provider available to switch network"),M(jn.ChainId.ETHEREUM_MAINNET);return}M(P);try{await T.request({method:"wallet_switchEthereumChain",params:[{chainId:"0x"+P.toString(16)}]});const v=await BC(T);v!==P&&console.warn("Chain ID did not change as expected"),Vr("Network changed successfully",{chainId:v},i.debug)}catch(v){const O=v;O.code===4902?(Vr("Adding new chain to wallet",{chainId:P},i.debug),await T.request({method:"wallet_addEthereumChain",params:[$4(P)]}),await BC(T)!==P&&(console.warn("Chain ID not set after adding network"),M(jn.ChainId.ETHEREUM_MAINNET))):(console.error("Error switching network:",O),M(jn.ChainId.ETHEREUM_MAINNET))}}catch(T){console.error("Error during network change:",T),M(jn.ChainId.ETHEREUM_MAINNET)}},[S,i.debug]);fe.useEffect(()=>{(async()=>{try{g(!0),Vr("Checking auth status",void 0,i.debug);try{const{account:T,chainId:v}=await I_.tryPreviousConnection();if(T){Vr("Previous connection found",{address:T,chainId:v},i.debug),u(T),M(v);let O=!1;try{const C=yb.LocalStorageUtils.getIdentity(T);if(C&&C.expiration){const z=new Date(C.expiration),U=new Date;U.getTime()<=z.getTime()?(Vr("Identity valid",{expiration:z},i.debug),O=!0):Vr("Identity expired",{expiration:z,now:U},i.debug)}else Vr("No identity found",void 0,i.debug)}catch(C){console.error("Error checking identity:",C)}if(y(O),O&&i.fetchAvatar)try{Vr("Fetching avatar",{address:T},i.debug);const C=await i.fetchAvatar(T);C&&(f(C),Vr("Avatar fetched successfully",C,i.debug))}catch(C){console.error("Error fetching avatar:",C)}}else Vr("No previous connection found",void 0,i.debug)}catch(T){Vr("Previous connection failed",T,i.debug)}}catch(T){console.error("Error checking auth status:",T)}finally{g(!1)}})()},[i.debug,i.fetchAvatar]);const E={wallet:o,avatar:c,chainId:S,isSignedIn:p,isConnecting:m,signIn:R,signOut:I,changeNetwork:N};return Ie.jsx(sk.Provider,{value:E,children:e})},s0=e=>{const a=fe.useContext(sk);if(a===void 0)throw new Error("useAuth must be used within an AuthProvider");return a};var Vo={},ri={},wl={exports:{}};var tz=wl.exports,FC;function wf(){return FC||(FC=1,(function(e,a){(function(t,n){n(a)})(tz,(function(t){function n(_){if(_.jsonrpc="2.0",!_.id||typeof _.id!="number"||Math.floor(_.id)!==_.id)throw new Error(`Invalid RPC message(invalid id) message: ${JSON.stringify(_)}`);if(!_.method||typeof _.method!="string"||_.method.trim().length===0)throw new Error(`Invalid RPC message(invalid method) message: ${JSON.stringify(_)}`);if(!_.params||typeof _.params!="object")throw new Error(`Invalid RPC message(invalid params) message: ${JSON.stringify(_)}`);return _}var i={};function o(){let _,A;const q=new Promise(((Y,x)=>{_=ne=>{Y(ne),q.isPending=!1},A=ne=>{x(ne),q.isPending=!1}})).catch((Y=>Promise.reject(Y)));return q.resolve=_,q.reject=A,"finally"in q||(q.finally=Y=>{q.then(Y),q.catch(Y)}),q.isPending=!0,q}Object.defineProperty(i,"__esModule",{value:!0});var u=i.future=o;i.default=o;var c={exports:{}};(function(_){(function(){var A="input is invalid type",q=typeof window=="object",Y=q?window:{};Y.JS_SHA3_NO_WINDOW&&(q=!1);var x=!q&&typeof self=="object";!Y.JS_SHA3_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node?Y=U2:x&&(Y=self);var ne=!Y.JS_SHA3_NO_COMMON_JS&&_.exports,Oe=!Y.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",Ve="0123456789abcdef".split(""),it=[4,1024,262144,67108864],st=[0,8,16,24],fr=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],Ht=[224,256,384,512],ze=[128,256],_r=["hex","buffer","arrayBuffer","array","digest"],zt={128:168,256:136};!Y.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(b){return Object.prototype.toString.call(b)==="[object Array]"}),!Oe||!Y.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(b){return typeof b=="object"&&b.buffer&&b.buffer.constructor===ArrayBuffer});for(var Dt=function(b,V,Q){return function(G){return new Mt(b,V,b).update(G)[Q]()}},Tr=function(b,V,Q){return function(G,ee){return new Mt(b,V,ee).update(G)[Q]()}},Tn=function(b,V,Q){return function(G,ee,$,re){return nr["cshake"+b].update(G,ee,$,re)[Q]()}},Kr=function(b,V,Q){return function(G,ee,$,re){return nr["kmac"+b].update(G,ee,$,re)[Q]()}},Er=function(b,V,Q,G){for(var ee=0;ee<_r.length;++ee){var $=_r[ee];b[$]=V(Q,G,$)}return b},Sn=function(b,V){var Q=Dt(b,V,"hex");return Q.create=function(){return new Mt(b,V,b)},Q.update=function(G){return Q.create().update(G)},Er(Q,Dt,b,V)},tn=[{name:"keccak",padding:[1,256,65536,16777216],bits:Ht,createMethod:Sn},{name:"sha3",padding:[6,1536,393216,100663296],bits:Ht,createMethod:Sn},{name:"shake",padding:[31,7936,2031616,520093696],bits:ze,createMethod:function(b,V){var Q=Tr(b,V,"hex");return Q.create=function(G){return new Mt(b,V,G)},Q.update=function(G,ee){return Q.create(ee).update(G)},Er(Q,Tr,b,V)}},{name:"cshake",padding:it,bits:ze,createMethod:function(b,V){var Q=zt[b],G=Tn(b,0,"hex");return G.create=function(ee,$,re){return $||re?new Mt(b,V,ee).bytepad([$,re],Q):nr["shake"+b].create(ee)},G.update=function(ee,$,re,pe){return G.create($,re,pe).update(ee)},Er(G,Tn,b,V)}},{name:"kmac",padding:it,bits:ze,createMethod:function(b,V){var Q=zt[b],G=Kr(b,0,"hex");return G.create=function(ee,$,re){return new lr(b,V,$).bytepad(["KMAC",re],Q).bytepad([ee],Q)},G.update=function(ee,$,re,pe){return G.create(ee,re,pe).update($)},Er(G,Kr,b,V)}}],nr={},qr=[],pr=0;pr<tn.length;++pr)for(var On=tn[pr],Be=On.bits,fn=0;fn<Be.length;++fn){var Un=On.name+"_"+Be[fn];if(qr.push(Un),nr[Un]=On.createMethod(Be[fn],On.padding),On.name!=="sha3"){var hi=On.name+Be[fn];qr.push(hi),nr[hi]=nr[Un]}}function Mt(b,V,Q){this.blocks=[],this.s=[],this.padding=V,this.outputBits=Q,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(b<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=Q>>5,this.extraBytes=(31&Q)>>3;for(var G=0;G<50;++G)this.s[G]=0}function lr(b,V,Q){Mt.call(this,b,V,Q)}Mt.prototype.update=function(b){if(this.finalized)throw new Error("finalize already called");var V,Q=typeof b;if(Q!=="string"){if(Q!=="object")throw new Error(A);if(b===null)throw new Error(A);if(Oe&&b.constructor===ArrayBuffer)b=new Uint8Array(b);else if(!(Array.isArray(b)||Oe&&ArrayBuffer.isView(b)))throw new Error(A);V=!0}for(var G,ee,$=this.blocks,re=this.byteCount,pe=b.length,ge=this.blockCount,he=0,We=this.s;he<pe;){if(this.reset)for(this.reset=!1,$[0]=this.block,G=1;G<ge+1;++G)$[G]=0;if(V)for(G=this.start;he<pe&&G<re;++he)$[G>>2]|=b[he]<<st[3&G++];else for(G=this.start;he<pe&&G<re;++he)(ee=b.charCodeAt(he))<128?$[G>>2]|=ee<<st[3&G++]:ee<2048?($[G>>2]|=(192|ee>>6)<<st[3&G++],$[G>>2]|=(128|63&ee)<<st[3&G++]):ee<55296||ee>=57344?($[G>>2]|=(224|ee>>12)<<st[3&G++],$[G>>2]|=(128|ee>>6&63)<<st[3&G++],$[G>>2]|=(128|63&ee)<<st[3&G++]):(ee=65536+((1023&ee)<<10|1023&b.charCodeAt(++he)),$[G>>2]|=(240|ee>>18)<<st[3&G++],$[G>>2]|=(128|ee>>12&63)<<st[3&G++],$[G>>2]|=(128|ee>>6&63)<<st[3&G++],$[G>>2]|=(128|63&ee)<<st[3&G++]);if(this.lastByteIndex=G,G>=re){for(this.start=G-re,this.block=$[ge],G=0;G<ge;++G)We[G]^=$[G];H(We),this.reset=!0}else this.start=G}return this},Mt.prototype.encode=function(b,V){var Q=255&b,G=1,ee=[Q];for(Q=255&(b>>=8);Q>0;)ee.unshift(Q),Q=255&(b>>=8),++G;return V?ee.push(G):ee.unshift(G),this.update(ee),ee.length},Mt.prototype.encodeString=function(b){var V,Q=typeof b;if(Q!=="string"){if(Q!=="object")throw new Error(A);if(b===null)throw new Error(A);if(Oe&&b.constructor===ArrayBuffer)b=new Uint8Array(b);else if(!(Array.isArray(b)||Oe&&ArrayBuffer.isView(b)))throw new Error(A);V=!0}var G=0,ee=b.length;if(V)G=ee;else for(var $=0;$<b.length;++$){var re=b.charCodeAt($);re<128?G+=1:re<2048?G+=2:re<55296||re>=57344?G+=3:(re=65536+((1023&re)<<10|1023&b.charCodeAt(++$)),G+=4)}return G+=this.encode(8*G),this.update(b),G},Mt.prototype.bytepad=function(b,V){for(var Q=this.encode(V),G=0;G<b.length;++G)Q+=this.encodeString(b[G]);var ee=V-Q%V,$=[];return $.length=ee,this.update($),this},Mt.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var b=this.blocks,V=this.lastByteIndex,Q=this.blockCount,G=this.s;if(b[V>>2]|=this.padding[3&V],this.lastByteIndex===this.byteCount)for(b[0]=b[Q],V=1;V<Q+1;++V)b[V]=0;for(b[Q-1]|=2147483648,V=0;V<Q;++V)G[V]^=b[V];H(G)}},Mt.prototype.toString=Mt.prototype.hex=function(){this.finalize();for(var b,V=this.blockCount,Q=this.s,G=this.outputBlocks,ee=this.extraBytes,$=0,re=0,pe="";re<G;){for($=0;$<V&&re<G;++$,++re)b=Q[$],pe+=Ve[b>>4&15]+Ve[15&b]+Ve[b>>12&15]+Ve[b>>8&15]+Ve[b>>20&15]+Ve[b>>16&15]+Ve[b>>28&15]+Ve[b>>24&15];re%V==0&&(H(Q),$=0)}return ee&&(b=Q[$],pe+=Ve[b>>4&15]+Ve[15&b],ee>1&&(pe+=Ve[b>>12&15]+Ve[b>>8&15]),ee>2&&(pe+=Ve[b>>20&15]+Ve[b>>16&15])),pe},Mt.prototype.arrayBuffer=function(){this.finalize();var b,V=this.blockCount,Q=this.s,G=this.outputBlocks,ee=this.extraBytes,$=0,re=0,pe=this.outputBits>>3;b=ee?new ArrayBuffer(G+1<<2):new ArrayBuffer(pe);for(var ge=new Uint32Array(b);re<G;){for($=0;$<V&&re<G;++$,++re)ge[re]=Q[$];re%V==0&&H(Q)}return ee&&(ge[$]=Q[$],b=b.slice(0,pe)),b},Mt.prototype.buffer=Mt.prototype.arrayBuffer,Mt.prototype.digest=Mt.prototype.array=function(){this.finalize();for(var b,V,Q=this.blockCount,G=this.s,ee=this.outputBlocks,$=this.extraBytes,re=0,pe=0,ge=[];pe<ee;){for(re=0;re<Q&&pe<ee;++re,++pe)b=pe<<2,V=G[re],ge[b]=255&V,ge[b+1]=V>>8&255,ge[b+2]=V>>16&255,ge[b+3]=V>>24&255;pe%Q==0&&H(G)}return $&&(b=pe<<2,V=G[re],ge[b]=255&V,$>1&&(ge[b+1]=V>>8&255),$>2&&(ge[b+2]=V>>16&255)),ge},lr.prototype=new Mt,lr.prototype.finalize=function(){return this.encode(this.outputBits,!0),Mt.prototype.finalize.call(this)};var H=function(b){var V,Q,G,ee,$,re,pe,ge,he,We,dt,yt,St,Wt,Yt,Pt,Nt,Qt,Bn,gi,vi,Mr,An,mr,cr,Gt,cs,ds,na,fs,ps,ys,Ma,ms,hs,gs,vs,_s,Es,bs,ia,_i,ws,Na,Ca,ja,La,Da,Fn,Ts,Ss,Os,qa,ka,Ei,bi,As,ji,Ps,Ua,aa,oa,Ba;for(G=0;G<48;G+=2)ee=b[0]^b[10]^b[20]^b[30]^b[40],$=b[1]^b[11]^b[21]^b[31]^b[41],re=b[2]^b[12]^b[22]^b[32]^b[42],pe=b[3]^b[13]^b[23]^b[33]^b[43],ge=b[4]^b[14]^b[24]^b[34]^b[44],he=b[5]^b[15]^b[25]^b[35]^b[45],We=b[6]^b[16]^b[26]^b[36]^b[46],dt=b[7]^b[17]^b[27]^b[37]^b[47],V=(yt=b[8]^b[18]^b[28]^b[38]^b[48])^(re<<1|pe>>>31),Q=(St=b[9]^b[19]^b[29]^b[39]^b[49])^(pe<<1|re>>>31),b[0]^=V,b[1]^=Q,b[10]^=V,b[11]^=Q,b[20]^=V,b[21]^=Q,b[30]^=V,b[31]^=Q,b[40]^=V,b[41]^=Q,V=ee^(ge<<1|he>>>31),Q=$^(he<<1|ge>>>31),b[2]^=V,b[3]^=Q,b[12]^=V,b[13]^=Q,b[22]^=V,b[23]^=Q,b[32]^=V,b[33]^=Q,b[42]^=V,b[43]^=Q,V=re^(We<<1|dt>>>31),Q=pe^(dt<<1|We>>>31),b[4]^=V,b[5]^=Q,b[14]^=V,b[15]^=Q,b[24]^=V,b[25]^=Q,b[34]^=V,b[35]^=Q,b[44]^=V,b[45]^=Q,V=ge^(yt<<1|St>>>31),Q=he^(St<<1|yt>>>31),b[6]^=V,b[7]^=Q,b[16]^=V,b[17]^=Q,b[26]^=V,b[27]^=Q,b[36]^=V,b[37]^=Q,b[46]^=V,b[47]^=Q,V=We^(ee<<1|$>>>31),Q=dt^($<<1|ee>>>31),b[8]^=V,b[9]^=Q,b[18]^=V,b[19]^=Q,b[28]^=V,b[29]^=Q,b[38]^=V,b[39]^=Q,b[48]^=V,b[49]^=Q,Wt=b[0],Yt=b[1],ja=b[11]<<4|b[10]>>>28,La=b[10]<<4|b[11]>>>28,ds=b[20]<<3|b[21]>>>29,na=b[21]<<3|b[20]>>>29,Ua=b[31]<<9|b[30]>>>23,aa=b[30]<<9|b[31]>>>23,_i=b[40]<<18|b[41]>>>14,ws=b[41]<<18|b[40]>>>14,ms=b[2]<<1|b[3]>>>31,hs=b[3]<<1|b[2]>>>31,Pt=b[13]<<12|b[12]>>>20,Nt=b[12]<<12|b[13]>>>20,Da=b[22]<<10|b[23]>>>22,Fn=b[23]<<10|b[22]>>>22,fs=b[33]<<13|b[32]>>>19,ps=b[32]<<13|b[33]>>>19,oa=b[42]<<2|b[43]>>>30,Ba=b[43]<<2|b[42]>>>30,ka=b[5]<<30|b[4]>>>2,Ei=b[4]<<30|b[5]>>>2,gs=b[14]<<6|b[15]>>>26,vs=b[15]<<6|b[14]>>>26,Qt=b[25]<<11|b[24]>>>21,Bn=b[24]<<11|b[25]>>>21,Ts=b[34]<<15|b[35]>>>17,Ss=b[35]<<15|b[34]>>>17,ys=b[45]<<29|b[44]>>>3,Ma=b[44]<<29|b[45]>>>3,mr=b[6]<<28|b[7]>>>4,cr=b[7]<<28|b[6]>>>4,bi=b[17]<<23|b[16]>>>9,As=b[16]<<23|b[17]>>>9,_s=b[26]<<25|b[27]>>>7,Es=b[27]<<25|b[26]>>>7,gi=b[36]<<21|b[37]>>>11,vi=b[37]<<21|b[36]>>>11,Os=b[47]<<24|b[46]>>>8,qa=b[46]<<24|b[47]>>>8,Na=b[8]<<27|b[9]>>>5,Ca=b[9]<<27|b[8]>>>5,Gt=b[18]<<20|b[19]>>>12,cs=b[19]<<20|b[18]>>>12,ji=b[29]<<7|b[28]>>>25,Ps=b[28]<<7|b[29]>>>25,bs=b[38]<<8|b[39]>>>24,ia=b[39]<<8|b[38]>>>24,Mr=b[48]<<14|b[49]>>>18,An=b[49]<<14|b[48]>>>18,b[0]=Wt^~Pt&Qt,b[1]=Yt^~Nt&Bn,b[10]=mr^~Gt&ds,b[11]=cr^~cs&na,b[20]=ms^~gs&_s,b[21]=hs^~vs&Es,b[30]=Na^~ja&Da,b[31]=Ca^~La&Fn,b[40]=ka^~bi&ji,b[41]=Ei^~As&Ps,b[2]=Pt^~Qt&gi,b[3]=Nt^~Bn&vi,b[12]=Gt^~ds&fs,b[13]=cs^~na&ps,b[22]=gs^~_s&bs,b[23]=vs^~Es&ia,b[32]=ja^~Da&Ts,b[33]=La^~Fn&Ss,b[42]=bi^~ji&Ua,b[43]=As^~Ps&aa,b[4]=Qt^~gi&Mr,b[5]=Bn^~vi&An,b[14]=ds^~fs&ys,b[15]=na^~ps&Ma,b[24]=_s^~bs&_i,b[25]=Es^~ia&ws,b[34]=Da^~Ts&Os,b[35]=Fn^~Ss&qa,b[44]=ji^~Ua&oa,b[45]=Ps^~aa&Ba,b[6]=gi^~Mr&Wt,b[7]=vi^~An&Yt,b[16]=fs^~ys&mr,b[17]=ps^~Ma&cr,b[26]=bs^~_i&ms,b[27]=ia^~ws&hs,b[36]=Ts^~Os&Na,b[37]=Ss^~qa&Ca,b[46]=Ua^~oa&ka,b[47]=aa^~Ba&Ei,b[8]=Mr^~Wt&Pt,b[9]=An^~Yt&Nt,b[18]=ys^~mr&Gt,b[19]=Ma^~cr&cs,b[28]=_i^~ms&gs,b[29]=ws^~hs&vs,b[38]=Os^~Na&ja,b[39]=qa^~Ca&La,b[48]=oa^~ka&bi,b[49]=Ba^~Ei&As,b[0]^=fr[G],b[1]^=fr[G+1]};if(ne)_.exports=nr;else for(pr=0;pr<qr.length;++pr)Y[qr[pr]]=nr[qr[pr]]})()})(c);var f=c.exports,p=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,y=Math.ceil,m=Math.floor,g="[BigNumber Error] ",S=g+"Number primitive has more than 15 significant digits: ",M=1e14,R=14,I=9007199254740991,N=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],E=1e7,P=1e9;function T(_){var A=0|_;return _>0||_===A?A:A-1}function v(_){for(var A,q,Y=1,x=_.length,ne=_[0]+"";Y<x;){for(A=_[Y++]+"",q=R-A.length;q--;A="0"+A);ne+=A}for(x=ne.length;ne.charCodeAt(--x)===48;);return ne.slice(0,x+1||1)}function O(_,A){var q,Y,x=_.c,ne=A.c,Oe=_.s,Ve=A.s,it=_.e,st=A.e;if(!Oe||!Ve)return null;if(q=x&&!x[0],Y=ne&&!ne[0],q||Y)return q?Y?0:-Ve:Oe;if(Oe!=Ve)return Oe;if(q=Oe<0,Y=it==st,!x||!ne)return Y?0:!x^q?1:-1;if(!Y)return it>st^q?1:-1;for(Ve=(it=x.length)<(st=ne.length)?it:st,Oe=0;Oe<Ve;Oe++)if(x[Oe]!=ne[Oe])return x[Oe]>ne[Oe]^q?1:-1;return it==st?0:it>st^q?1:-1}function C(_,A,q,Y){if(_<A||_>q||_!==m(_))throw Error(g+(Y||"Argument")+(typeof _=="number"?_<A||_>q?" out of range: ":" not an integer: ":" not a primitive number: ")+String(_))}function z(_){var A=_.c.length-1;return T(_.e/R)==A&&_.c[A]%2!=0}function U(_,A){return(_.length>1?_.charAt(0)+"."+_.slice(1):_)+(A<0?"e":"e+")+A}function K(_,A,q){var Y,x;if(A<0){for(x=q+".";++A;x+=q);_=x+_}else if(++A>(Y=_.length)){for(x=q,A-=Y;--A;x+=q);_+=x}else A<Y&&(_=_.slice(0,A)+"."+_.slice(A));return _}var ae=(function _(A){var q,Y,x,ne,Oe,Ve,it,st,fr,Ht,ze=Be.prototype={constructor:Be,toString:null,valueOf:null},_r=new Be(1),zt=20,Dt=4,Tr=-7,Tn=21,Kr=-1e7,Er=1e7,Sn=!1,tn=1,nr=0,qr={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},pr="0123456789abcdefghijklmnopqrstuvwxyz",On=!0;function Be(H,b){var V,Q,G,ee,$,re,pe,ge,he=this;if(!(he instanceof Be))return new Be(H,b);if(b==null){if(H&&H._isBigNumber===!0)return he.s=H.s,void(!H.c||H.e>Er?he.c=he.e=null:H.e<Kr?he.c=[he.e=0]:(he.e=H.e,he.c=H.c.slice()));if((re=typeof H=="number")&&0*H==0){if(he.s=1/H<0?(H=-H,-1):1,H===~~H){for(ee=0,$=H;$>=10;$/=10,ee++);return void(ee>Er?he.c=he.e=null:(he.e=ee,he.c=[H]))}ge=String(H)}else{if(!p.test(ge=String(H)))return x(he,ge,re);he.s=ge.charCodeAt(0)==45?(ge=ge.slice(1),-1):1}(ee=ge.indexOf("."))>-1&&(ge=ge.replace(".","")),($=ge.search(/e/i))>0?(ee<0&&(ee=$),ee+=+ge.slice($+1),ge=ge.substring(0,$)):ee<0&&(ee=ge.length)}else{if(C(b,2,pr.length,"Base"),b==10&&On)return Mt(he=new Be(H),zt+he.e+1,Dt);if(ge=String(H),re=typeof H=="number"){if(0*H!=0)return x(he,ge,re,b);if(he.s=1/H<0?(ge=ge.slice(1),-1):1,Be.DEBUG&&ge.replace(/^0\.0*|\./,"").length>15)throw Error(S+H)}else he.s=ge.charCodeAt(0)===45?(ge=ge.slice(1),-1):1;for(V=pr.slice(0,b),ee=$=0,pe=ge.length;$<pe;$++)if(V.indexOf(Q=ge.charAt($))<0){if(Q=="."){if($>ee){ee=pe;continue}}else if(!G&&(ge==ge.toUpperCase()&&(ge=ge.toLowerCase())||ge==ge.toLowerCase()&&(ge=ge.toUpperCase()))){G=!0,$=-1,ee=0;continue}return x(he,String(H),re,b)}re=!1,(ee=(ge=Y(ge,b,10,he.s)).indexOf("."))>-1?ge=ge.replace(".",""):ee=ge.length}for($=0;ge.charCodeAt($)===48;$++);for(pe=ge.length;ge.charCodeAt(--pe)===48;);if(ge=ge.slice($,++pe)){if(pe-=$,re&&Be.DEBUG&&pe>15&&(H>I||H!==m(H)))throw Error(S+he.s*H);if((ee=ee-$-1)>Er)he.c=he.e=null;else if(ee<Kr)he.c=[he.e=0];else{if(he.e=ee,he.c=[],$=(ee+1)%R,ee<0&&($+=R),$<pe){for($&&he.c.push(+ge.slice(0,$)),pe-=R;$<pe;)he.c.push(+ge.slice($,$+=R));$=R-(ge=ge.slice($)).length}else $-=pe;for(;$--;ge+="0");he.c.push(+ge)}}else he.c=[he.e=0]}function fn(H,b,V,Q){var G,ee,$,re,pe;if(V==null?V=Dt:C(V,0,8),!H.c)return H.toString();if(G=H.c[0],$=H.e,b==null)pe=v(H.c),pe=Q==1||Q==2&&($<=Tr||$>=Tn)?U(pe,$):K(pe,$,"0");else if(ee=(H=Mt(new Be(H),b,V)).e,re=(pe=v(H.c)).length,Q==1||Q==2&&(b<=ee||ee<=Tr)){for(;re<b;pe+="0",re++);pe=U(pe,ee)}else if(b-=$,pe=K(pe,ee,"0"),ee+1>re){if(--b>0)for(pe+=".";b--;pe+="0");}else if((b+=ee-re)>0)for(ee+1==re&&(pe+=".");b--;pe+="0");return H.s<0&&G?"-"+pe:pe}function Un(H,b){for(var V,Q=1,G=new Be(H[0]);Q<H.length;Q++){if(!(V=new Be(H[Q])).s){G=V;break}b.call(G,V)&&(G=V)}return G}function hi(H,b,V){for(var Q=1,G=b.length;!b[--G];b.pop());for(G=b[0];G>=10;G/=10,Q++);return(V=Q+V*R-1)>Er?H.c=H.e=null:V<Kr?H.c=[H.e=0]:(H.e=V,H.c=b),H}function Mt(H,b,V,Q){var G,ee,$,re,pe,ge,he,We=H.c,dt=N;if(We){e:{for(G=1,re=We[0];re>=10;re/=10,G++);if((ee=b-G)<0)ee+=R,$=b,he=(pe=We[ge=0])/dt[G-$-1]%10|0;else if((ge=y((ee+1)/R))>=We.length){if(!Q)break e;for(;We.length<=ge;We.push(0));pe=he=0,G=1,$=(ee%=R)-R+1}else{for(pe=re=We[ge],G=1;re>=10;re/=10,G++);he=($=(ee%=R)-R+G)<0?0:pe/dt[G-$-1]%10|0}if(Q=Q||b<0||We[ge+1]!=null||($<0?pe:pe%dt[G-$-1]),Q=V<4?(he||Q)&&(V==0||V==(H.s<0?3:2)):he>5||he==5&&(V==4||Q||V==6&&(ee>0?$>0?pe/dt[G-$]:0:We[ge-1])%10&1||V==(H.s<0?8:7)),b<1||!We[0])return We.length=0,Q?(b-=H.e+1,We[0]=dt[(R-b%R)%R],H.e=-b||0):We[0]=H.e=0,H;if(ee==0?(We.length=ge,re=1,ge--):(We.length=ge+1,re=dt[R-ee],We[ge]=$>0?m(pe/dt[G-$]%dt[$])*re:0),Q)for(;;){if(ge==0){for(ee=1,$=We[0];$>=10;$/=10,ee++);for($=We[0]+=re,re=1;$>=10;$/=10,re++);ee!=re&&(H.e++,We[0]==M&&(We[0]=1));break}if(We[ge]+=re,We[ge]!=M)break;We[ge--]=0,re=1}for(ee=We.length;We[--ee]===0;We.pop());}H.e>Er?H.c=H.e=null:H.e<Kr&&(H.c=[H.e=0])}return H}function lr(H){var b,V=H.e;return V===null?H.toString():(b=v(H.c),b=V<=Tr||V>=Tn?U(b,V):K(b,V,"0"),H.s<0?"-"+b:b)}return Be.clone=_,Be.ROUND_UP=0,Be.ROUND_DOWN=1,Be.ROUND_CEIL=2,Be.ROUND_FLOOR=3,Be.ROUND_HALF_UP=4,Be.ROUND_HALF_DOWN=5,Be.ROUND_HALF_EVEN=6,Be.ROUND_HALF_CEIL=7,Be.ROUND_HALF_FLOOR=8,Be.EUCLID=9,Be.config=Be.set=function(H){var b,V;if(H!=null){if(typeof H!="object")throw Error(g+"Object expected: "+H);if(H.hasOwnProperty(b="DECIMAL_PLACES")&&(C(V=H[b],0,P,b),zt=V),H.hasOwnProperty(b="ROUNDING_MODE")&&(C(V=H[b],0,8,b),Dt=V),H.hasOwnProperty(b="EXPONENTIAL_AT")&&((V=H[b])&&V.pop?(C(V[0],-P,0,b),C(V[1],0,P,b),Tr=V[0],Tn=V[1]):(C(V,-P,P,b),Tr=-(Tn=V<0?-V:V))),H.hasOwnProperty(b="RANGE"))if((V=H[b])&&V.pop)C(V[0],-P,-1,b),C(V[1],1,P,b),Kr=V[0],Er=V[1];else{if(C(V,-P,P,b),!V)throw Error(g+b+" cannot be zero: "+V);Kr=-(Er=V<0?-V:V)}if(H.hasOwnProperty(b="CRYPTO")){if((V=H[b])!==!!V)throw Error(g+b+" not true or false: "+V);if(V){if(typeof crypto>"u"||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Sn=!V,Error(g+"crypto unavailable");Sn=V}else Sn=V}if(H.hasOwnProperty(b="MODULO_MODE")&&(C(V=H[b],0,9,b),tn=V),H.hasOwnProperty(b="POW_PRECISION")&&(C(V=H[b],0,P,b),nr=V),H.hasOwnProperty(b="FORMAT")){if(typeof(V=H[b])!="object")throw Error(g+b+" not an object: "+V);qr=V}if(H.hasOwnProperty(b="ALPHABET")){if(typeof(V=H[b])!="string"||/^.?$|[+\-.\s]|(.).*\1/.test(V))throw Error(g+b+" invalid: "+V);On=V.slice(0,10)=="0123456789",pr=V}}return{DECIMAL_PLACES:zt,ROUNDING_MODE:Dt,EXPONENTIAL_AT:[Tr,Tn],RANGE:[Kr,Er],CRYPTO:Sn,MODULO_MODE:tn,POW_PRECISION:nr,FORMAT:qr,ALPHABET:pr}},Be.isBigNumber=function(H){if(!H||H._isBigNumber!==!0)return!1;if(!Be.DEBUG)return!0;var b,V,Q=H.c,G=H.e,ee=H.s;e:if({}.toString.call(Q)=="[object Array]"){if((ee===1||ee===-1)&&G>=-P&&G<=P&&G===m(G)){if(Q[0]===0){if(G===0&&Q.length===1)return!0;break e}if((b=(G+1)%R)<1&&(b+=R),String(Q[0]).length==b){for(b=0;b<Q.length;b++)if((V=Q[b])<0||V>=M||V!==m(V))break e;if(V!==0)return!0}}}else if(Q===null&&G===null&&(ee===null||ee===1||ee===-1))return!0;throw Error(g+"Invalid BigNumber: "+H)},Be.maximum=Be.max=function(){return Un(arguments,ze.lt)},Be.minimum=Be.min=function(){return Un(arguments,ze.gt)},Be.random=(ne=9007199254740992,Oe=Math.random()*ne&2097151?function(){return m(Math.random()*ne)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(H){var b,V,Q,G,ee,$=0,re=[],pe=new Be(_r);if(H==null?H=zt:C(H,0,P),G=y(H/R),Sn)if(crypto.getRandomValues){for(b=crypto.getRandomValues(new Uint32Array(G*=2));$<G;)(ee=131072*b[$]+(b[$+1]>>>11))>=9e15?(V=crypto.getRandomValues(new Uint32Array(2)),b[$]=V[0],b[$+1]=V[1]):(re.push(ee%1e14),$+=2);$=G/2}else{if(!crypto.randomBytes)throw Sn=!1,Error(g+"crypto unavailable");for(b=crypto.randomBytes(G*=7);$<G;)(ee=281474976710656*(31&b[$])+1099511627776*b[$+1]+4294967296*b[$+2]+16777216*b[$+3]+(b[$+4]<<16)+(b[$+5]<<8)+b[$+6])>=9e15?crypto.randomBytes(7).copy(b,$):(re.push(ee%1e14),$+=7);$=G/7}if(!Sn)for(;$<G;)(ee=Oe())<9e15&&(re[$++]=ee%1e14);for(G=re[--$],H%=R,G&&H&&(ee=N[R-H],re[$]=m(G/ee)*ee);re[$]===0;re.pop(),$--);if($<0)re=[Q=0];else{for(Q=-1;re[0]===0;re.splice(0,1),Q-=R);for($=1,ee=re[0];ee>=10;ee/=10,$++);$<R&&(Q-=R-$)}return pe.e=Q,pe.c=re,pe}),Be.sum=function(){for(var H=1,b=arguments,V=new Be(b[0]);H<b.length;)V=V.plus(b[H++]);return V},Y=(function(){var H="0123456789";function b(V,Q,G,ee){for(var $,re,pe=[0],ge=0,he=V.length;ge<he;){for(re=pe.length;re--;pe[re]*=Q);for(pe[0]+=ee.indexOf(V.charAt(ge++)),$=0;$<pe.length;$++)pe[$]>G-1&&(pe[$+1]==null&&(pe[$+1]=0),pe[$+1]+=pe[$]/G|0,pe[$]%=G)}return pe.reverse()}return function(V,Q,G,ee,$){var re,pe,ge,he,We,dt,yt,St,Wt=V.indexOf("."),Yt=zt,Pt=Dt;for(Wt>=0&&(he=nr,nr=0,V=V.replace(".",""),dt=(St=new Be(Q)).pow(V.length-Wt),nr=he,St.c=b(K(v(dt.c),dt.e,"0"),10,G,H),St.e=St.c.length),ge=he=(yt=b(V,Q,G,$?(re=pr,H):(re=H,pr))).length;yt[--he]==0;yt.pop());if(!yt[0])return re.charAt(0);if(Wt<0?--ge:(dt.c=yt,dt.e=ge,dt.s=ee,yt=(dt=q(dt,St,Yt,Pt,G)).c,We=dt.r,ge=dt.e),Wt=yt[pe=ge+Yt+1],he=G/2,We=We||pe<0||yt[pe+1]!=null,We=Pt<4?(Wt!=null||We)&&(Pt==0||Pt==(dt.s<0?3:2)):Wt>he||Wt==he&&(Pt==4||We||Pt==6&&1&yt[pe-1]||Pt==(dt.s<0?8:7)),pe<1||!yt[0])V=We?K(re.charAt(1),-Yt,re.charAt(0)):re.charAt(0);else{if(yt.length=pe,We)for(--G;++yt[--pe]>G;)yt[pe]=0,pe||(++ge,yt=[1].concat(yt));for(he=yt.length;!yt[--he];);for(Wt=0,V="";Wt<=he;V+=re.charAt(yt[Wt++]));V=K(V,ge,re.charAt(0))}return V}})(),q=(function(){function H(Q,G,ee){var $,re,pe,ge,he=0,We=Q.length,dt=G%E,yt=G/E|0;for(Q=Q.slice();We--;)he=((re=dt*(pe=Q[We]%E)+($=yt*pe+(ge=Q[We]/E|0)*dt)%E*E+he)/ee|0)+($/E|0)+yt*ge,Q[We]=re%ee;return he&&(Q=[he].concat(Q)),Q}function b(Q,G,ee,$){var re,pe;if(ee!=$)pe=ee>$?1:-1;else for(re=pe=0;re<ee;re++)if(Q[re]!=G[re]){pe=Q[re]>G[re]?1:-1;break}return pe}function V(Q,G,ee,$){for(var re=0;ee--;)Q[ee]-=re,re=Q[ee]<G[ee]?1:0,Q[ee]=re*$+Q[ee]-G[ee];for(;!Q[0]&&Q.length>1;Q.splice(0,1));}return function(Q,G,ee,$,re){var pe,ge,he,We,dt,yt,St,Wt,Yt,Pt,Nt,Qt,Bn,gi,vi,Mr,An,mr=Q.s==G.s?1:-1,cr=Q.c,Gt=G.c;if(!(cr&&cr[0]&&Gt&&Gt[0]))return new Be(Q.s&&G.s&&(cr?!Gt||cr[0]!=Gt[0]:Gt)?cr&&cr[0]==0||!Gt?0*mr:mr/0:NaN);for(Yt=(Wt=new Be(mr)).c=[],mr=ee+(ge=Q.e-G.e)+1,re||(re=M,ge=T(Q.e/R)-T(G.e/R),mr=mr/R|0),he=0;Gt[he]==(cr[he]||0);he++);if(Gt[he]>(cr[he]||0)&&ge--,mr<0)Yt.push(1),We=!0;else{for(gi=cr.length,Mr=Gt.length,he=0,mr+=2,(dt=m(re/(Gt[0]+1)))>1&&(Gt=H(Gt,dt,re),cr=H(cr,dt,re),Mr=Gt.length,gi=cr.length),Bn=Mr,Nt=(Pt=cr.slice(0,Mr)).length;Nt<Mr;Pt[Nt++]=0);An=Gt.slice(),An=[0].concat(An),vi=Gt[0],Gt[1]>=re/2&&vi++;do{if(dt=0,(pe=b(Gt,Pt,Mr,Nt))<0){if(Qt=Pt[0],Mr!=Nt&&(Qt=Qt*re+(Pt[1]||0)),(dt=m(Qt/vi))>1)for(dt>=re&&(dt=re-1),St=(yt=H(Gt,dt,re)).length,Nt=Pt.length;b(yt,Pt,St,Nt)==1;)dt--,V(yt,Mr<St?An:Gt,St,re),St=yt.length,pe=1;else dt==0&&(pe=dt=1),St=(yt=Gt.slice()).length;if(St<Nt&&(yt=[0].concat(yt)),V(Pt,yt,Nt,re),Nt=Pt.length,pe==-1)for(;b(Gt,Pt,Mr,Nt)<1;)dt++,V(Pt,Mr<Nt?An:Gt,Nt,re),Nt=Pt.length}else pe===0&&(dt++,Pt=[0]);Yt[he++]=dt,Pt[0]?Pt[Nt++]=cr[Bn]||0:(Pt=[cr[Bn]],Nt=1)}while((Bn++<gi||Pt[0]!=null)&&mr--);We=Pt[0]!=null,Yt[0]||Yt.splice(0,1)}if(re==M){for(he=1,mr=Yt[0];mr>=10;mr/=10,he++);Mt(Wt,ee+(Wt.e=he+ge*R-1)+1,$,We)}else Wt.e=ge,Wt.r=+We;return Wt}})(),Ve=/^(-?)0([xbo])(?=\w[\w.]*$)/i,it=/^([^.]+)\.$/,st=/^\.([^.]+)$/,fr=/^-?(Infinity|NaN)$/,Ht=/^\s*\+(?=[\w.])|^\s+|\s+$/g,x=function(H,b,V,Q){var G,ee=V?b:b.replace(Ht,"");if(fr.test(ee))H.s=isNaN(ee)?null:ee<0?-1:1;else{if(!V&&(ee=ee.replace(Ve,(function($,re,pe){return G=(pe=pe.toLowerCase())=="x"?16:pe=="b"?2:8,Q&&Q!=G?$:re})),Q&&(G=Q,ee=ee.replace(it,"$1").replace(st,"0.$1")),b!=ee))return new Be(ee,G);if(Be.DEBUG)throw Error(g+"Not a"+(Q?" base "+Q:"")+" number: "+b);H.s=null}H.c=H.e=null},ze.absoluteValue=ze.abs=function(){var H=new Be(this);return H.s<0&&(H.s=1),H},ze.comparedTo=function(H,b){return O(this,new Be(H,b))},ze.decimalPlaces=ze.dp=function(H,b){var V,Q,G,ee=this;if(H!=null)return C(H,0,P),b==null?b=Dt:C(b,0,8),Mt(new Be(ee),H+ee.e+1,b);if(!(V=ee.c))return null;if(Q=((G=V.length-1)-T(this.e/R))*R,G=V[G])for(;G%10==0;G/=10,Q--);return Q<0&&(Q=0),Q},ze.dividedBy=ze.div=function(H,b){return q(this,new Be(H,b),zt,Dt)},ze.dividedToIntegerBy=ze.idiv=function(H,b){return q(this,new Be(H,b),0,1)},ze.exponentiatedBy=ze.pow=function(H,b){var V,Q,G,ee,$,re,pe,ge,he=this;if((H=new Be(H)).c&&!H.isInteger())throw Error(g+"Exponent not an integer: "+lr(H));if(b!=null&&(b=new Be(b)),$=H.e>14,!he.c||!he.c[0]||he.c[0]==1&&!he.e&&he.c.length==1||!H.c||!H.c[0])return ge=new Be(Math.pow(+lr(he),$?H.s*(2-z(H)):+lr(H))),b?ge.mod(b):ge;if(re=H.s<0,b){if(b.c?!b.c[0]:!b.s)return new Be(NaN);(Q=!re&&he.isInteger()&&b.isInteger())&&(he=he.mod(b))}else{if(H.e>9&&(he.e>0||he.e<-1||(he.e==0?he.c[0]>1||$&&he.c[1]>=24e7:he.c[0]<8e13||$&&he.c[0]<=9999975e7)))return ee=he.s<0&&z(H)?-0:0,he.e>-1&&(ee=1/ee),new Be(re?1/ee:ee);nr&&(ee=y(nr/R+2))}for($?(V=new Be(.5),re&&(H.s=1),pe=z(H)):pe=(G=Math.abs(+lr(H)))%2,ge=new Be(_r);;){if(pe){if(!(ge=ge.times(he)).c)break;ee?ge.c.length>ee&&(ge.c.length=ee):Q&&(ge=ge.mod(b))}if(G){if((G=m(G/2))===0)break;pe=G%2}else if(Mt(H=H.times(V),H.e+1,1),H.e>14)pe=z(H);else{if((G=+lr(H))==0)break;pe=G%2}he=he.times(he),ee?he.c&&he.c.length>ee&&(he.c.length=ee):Q&&(he=he.mod(b))}return Q?ge:(re&&(ge=_r.div(ge)),b?ge.mod(b):ee?Mt(ge,nr,Dt,void 0):ge)},ze.integerValue=function(H){var b=new Be(this);return H==null?H=Dt:C(H,0,8),Mt(b,b.e+1,H)},ze.isEqualTo=ze.eq=function(H,b){return O(this,new Be(H,b))===0},ze.isFinite=function(){return!!this.c},ze.isGreaterThan=ze.gt=function(H,b){return O(this,new Be(H,b))>0},ze.isGreaterThanOrEqualTo=ze.gte=function(H,b){return(b=O(this,new Be(H,b)))===1||b===0},ze.isInteger=function(){return!!this.c&&T(this.e/R)>this.c.length-2},ze.isLessThan=ze.lt=function(H,b){return O(this,new Be(H,b))<0},ze.isLessThanOrEqualTo=ze.lte=function(H,b){return(b=O(this,new Be(H,b)))===-1||b===0},ze.isNaN=function(){return!this.s},ze.isNegative=function(){return this.s<0},ze.isPositive=function(){return this.s>0},ze.isZero=function(){return!!this.c&&this.c[0]==0},ze.minus=function(H,b){var V,Q,G,ee,$=this,re=$.s;if(b=(H=new Be(H,b)).s,!re||!b)return new Be(NaN);if(re!=b)return H.s=-b,$.plus(H);var pe=$.e/R,ge=H.e/R,he=$.c,We=H.c;if(!pe||!ge){if(!he||!We)return he?(H.s=-b,H):new Be(We?$:NaN);if(!he[0]||!We[0])return We[0]?(H.s=-b,H):new Be(he[0]?$:Dt==3?-0:0)}if(pe=T(pe),ge=T(ge),he=he.slice(),re=pe-ge){for((ee=re<0)?(re=-re,G=he):(ge=pe,G=We),G.reverse(),b=re;b--;G.push(0));G.reverse()}else for(Q=(ee=(re=he.length)<(b=We.length))?re:b,re=b=0;b<Q;b++)if(he[b]!=We[b]){ee=he[b]<We[b];break}if(ee&&(G=he,he=We,We=G,H.s=-H.s),(b=(Q=We.length)-(V=he.length))>0)for(;b--;he[V++]=0);for(b=M-1;Q>re;){if(he[--Q]<We[Q]){for(V=Q;V&&!he[--V];he[V]=b);--he[V],he[Q]+=M}he[Q]-=We[Q]}for(;he[0]==0;he.splice(0,1),--ge);return he[0]?hi(H,he,ge):(H.s=Dt==3?-1:1,H.c=[H.e=0],H)},ze.modulo=ze.mod=function(H,b){var V,Q,G=this;return H=new Be(H,b),!G.c||!H.s||H.c&&!H.c[0]?new Be(NaN):!H.c||G.c&&!G.c[0]?new Be(G):(tn==9?(Q=H.s,H.s=1,V=q(G,H,0,3),H.s=Q,V.s*=Q):V=q(G,H,0,tn),(H=G.minus(V.times(H))).c[0]||tn!=1||(H.s=G.s),H)},ze.multipliedBy=ze.times=function(H,b){var V,Q,G,ee,$,re,pe,ge,he,We,dt,yt,St,Wt,Yt,Pt=this,Nt=Pt.c,Qt=(H=new Be(H,b)).c;if(!(Nt&&Qt&&Nt[0]&&Qt[0]))return!Pt.s||!H.s||Nt&&!Nt[0]&&!Qt||Qt&&!Qt[0]&&!Nt?H.c=H.e=H.s=null:(H.s*=Pt.s,Nt&&Qt?(H.c=[0],H.e=0):H.c=H.e=null),H;for(Q=T(Pt.e/R)+T(H.e/R),H.s*=Pt.s,(pe=Nt.length)<(We=Qt.length)&&(St=Nt,Nt=Qt,Qt=St,G=pe,pe=We,We=G),G=pe+We,St=[];G--;St.push(0));for(Wt=M,Yt=E,G=We;--G>=0;){for(V=0,dt=Qt[G]%Yt,yt=Qt[G]/Yt|0,ee=G+($=pe);ee>G;)V=((ge=dt*(ge=Nt[--$]%Yt)+(re=yt*ge+(he=Nt[$]/Yt|0)*dt)%Yt*Yt+St[ee]+V)/Wt|0)+(re/Yt|0)+yt*he,St[ee--]=ge%Wt;St[ee]=V}return V?++Q:St.splice(0,1),hi(H,St,Q)},ze.negated=function(){var H=new Be(this);return H.s=-H.s||null,H},ze.plus=function(H,b){var V,Q=this,G=Q.s;if(b=(H=new Be(H,b)).s,!G||!b)return new Be(NaN);if(G!=b)return H.s=-b,Q.minus(H);var ee=Q.e/R,$=H.e/R,re=Q.c,pe=H.c;if(!ee||!$){if(!re||!pe)return new Be(G/0);if(!re[0]||!pe[0])return pe[0]?H:new Be(re[0]?Q:0*G)}if(ee=T(ee),$=T($),re=re.slice(),G=ee-$){for(G>0?($=ee,V=pe):(G=-G,V=re),V.reverse();G--;V.push(0));V.reverse()}for((G=re.length)-(b=pe.length)<0&&(V=pe,pe=re,re=V,b=G),G=0;b;)G=(re[--b]=re[b]+pe[b]+G)/M|0,re[b]=M===re[b]?0:re[b]%M;return G&&(re=[G].concat(re),++$),hi(H,re,$)},ze.precision=ze.sd=function(H,b){var V,Q,G,ee=this;if(H!=null&&H!==!!H)return C(H,1,P),b==null?b=Dt:C(b,0,8),Mt(new Be(ee),H,b);if(!(V=ee.c))return null;if(Q=(G=V.length-1)*R+1,G=V[G]){for(;G%10==0;G/=10,Q--);for(G=V[0];G>=10;G/=10,Q++);}return H&&ee.e+1>Q&&(Q=ee.e+1),Q},ze.shiftedBy=function(H){return C(H,-9007199254740991,I),this.times("1e"+H)},ze.squareRoot=ze.sqrt=function(){var H,b,V,Q,G,ee=this,$=ee.c,re=ee.s,pe=ee.e,ge=zt+4,he=new Be("0.5");if(re!==1||!$||!$[0])return new Be(!re||re<0&&(!$||$[0])?NaN:$?ee:1/0);if((re=Math.sqrt(+lr(ee)))==0||re==1/0?(((b=v($)).length+pe)%2==0&&(b+="0"),re=Math.sqrt(+b),pe=T((pe+1)/2)-(pe<0||pe%2),V=new Be(b=re==1/0?"5e"+pe:(b=re.toExponential()).slice(0,b.indexOf("e")+1)+pe)):V=new Be(re+""),V.c[0]){for((re=(pe=V.e)+ge)<3&&(re=0);;)if(G=V,V=he.times(G.plus(q(ee,G,ge,1))),v(G.c).slice(0,re)===(b=v(V.c)).slice(0,re)){if(V.e<pe&&--re,(b=b.slice(re-3,re+1))!="9999"&&(Q||b!="4999")){+b&&(+b.slice(1)||b.charAt(0)!="5")||(Mt(V,V.e+zt+2,1),H=!V.times(V).eq(ee));break}if(!Q&&(Mt(G,G.e+zt+2,0),G.times(G).eq(ee))){V=G;break}ge+=4,re+=4,Q=1}}return Mt(V,V.e+zt+1,Dt,H)},ze.toExponential=function(H,b){return H!=null&&(C(H,0,P),H++),fn(this,H,b,1)},ze.toFixed=function(H,b){return H!=null&&(C(H,0,P),H=H+this.e+1),fn(this,H,b)},ze.toFormat=function(H,b,V){var Q,G=this;if(V==null)H!=null&&b&&typeof b=="object"?(V=b,b=null):H&&typeof H=="object"?(V=H,H=b=null):V=qr;else if(typeof V!="object")throw Error(g+"Argument not an object: "+V);if(Q=G.toFixed(H,b),G.c){var ee,$=Q.split("."),re=+V.groupSize,pe=+V.secondaryGroupSize,ge=V.groupSeparator||"",he=$[0],We=$[1],dt=G.s<0,yt=dt?he.slice(1):he,St=yt.length;if(pe&&(ee=re,re=pe,pe=ee,St-=ee),re>0&&St>0){for(ee=St%re||re,he=yt.substr(0,ee);ee<St;ee+=re)he+=ge+yt.substr(ee,re);pe>0&&(he+=ge+yt.slice(ee)),dt&&(he="-"+he)}Q=We?he+(V.decimalSeparator||"")+((pe=+V.fractionGroupSize)?We.replace(new RegExp("\\d{"+pe+"}\\B","g"),"$&"+(V.fractionGroupSeparator||"")):We):he}return(V.prefix||"")+Q+(V.suffix||"")},ze.toFraction=function(H){var b,V,Q,G,ee,$,re,pe,ge,he,We,dt,yt=this,St=yt.c;if(H!=null&&(!(re=new Be(H)).isInteger()&&(re.c||re.s!==1)||re.lt(_r)))throw Error(g+"Argument "+(re.isInteger()?"out of range: ":"not an integer: ")+lr(re));if(!St)return new Be(yt);for(b=new Be(_r),ge=V=new Be(_r),Q=pe=new Be(_r),dt=v(St),ee=b.e=dt.length-yt.e-1,b.c[0]=N[($=ee%R)<0?R+$:$],H=!H||re.comparedTo(b)>0?ee>0?b:ge:re,$=Er,Er=1/0,re=new Be(dt),pe.c[0]=0;he=q(re,b,0,1),(G=V.plus(he.times(Q))).comparedTo(H)!=1;)V=Q,Q=G,ge=pe.plus(he.times(G=ge)),pe=G,b=re.minus(he.times(G=b)),re=G;return G=q(H.minus(V),Q,0,1),pe=pe.plus(G.times(ge)),V=V.plus(G.times(Q)),pe.s=ge.s=yt.s,We=q(ge,Q,ee*=2,Dt).minus(yt).abs().comparedTo(q(pe,V,ee,Dt).minus(yt).abs())<1?[ge,Q]:[pe,V],Er=$,We},ze.toNumber=function(){return+lr(this)},ze.toPrecision=function(H,b){return H!=null&&C(H,1,P),fn(this,H,b,2)},ze.toString=function(H){var b,V=this,Q=V.s,G=V.e;return G===null?Q?(b="Infinity",Q<0&&(b="-"+b)):b="NaN":(H==null?b=G<=Tr||G>=Tn?U(v(V.c),G):K(v(V.c),G,"0"):H===10&&On?b=K(v((V=Mt(new Be(V),zt+G+1,Dt)).c),V.e,"0"):(C(H,2,pr.length,"Base"),b=Y(K(v(V.c),G,"0"),10,H,Q,!0)),Q<0&&V.c[0]&&(b="-"+b)),b},ze.valueOf=ze.toJSON=function(){return lr(this)},ze._isBigNumber=!0,ze[Symbol.toStringTag]="BigNumber",ze[Symbol.for("nodejs.util.inspect.custom")]=ze.valueOf,A!=null&&Be.set(A),Be})();const _e={ROUNDING_MODE:ae.ROUND_DOWN};function be(_){return new TextEncoder().encode(_)}function ye(_){return typeof _=="string"?ye(we(_)):new TextDecoder().decode(_)}ae.config(_e);const Me="UNKNOWN_ERROR",Ne="INVALID_ARGUMENT";function qe(_,A=Me,q={}){const Y=[];Object.keys(q).forEach((Oe=>{try{Y.push(Oe+"="+JSON.stringify(q[Oe]))}catch{Y.push(Oe+"="+JSON.stringify(q[Oe].toString()))}}));const x=_;Y.length&&(_+=" ("+Y.join(", ")+")");const ne=new Error(_);return ne.reason=x,ne.code=A,Object.keys(q).forEach((function(Oe){ne[Oe]=q[Oe]})),ne}function we(_){if(typeof _!="string")throw new Error("hexToBytes only accept strings, got: "+typeof _);if(_.substr(0,2)==="0x")return we(_.substr(2));const A=new Uint8Array(Math.ceil(_.length/2));let q=0;for(let Y=0;Y<_.length;Y+=2){const x=parseInt(_.substr(Y,2),16);if(isNaN(x))throw new Error("Cannot read hex string:"+JSON.stringify(_));A[q]=x,q++}return A}function ue(_){return Array.from(_).map((A=>A.toString(16).padStart(2,"0"))).join("")}function X(_,A){if(typeof _=="string"){if(A&&A.encoding==="hex"&&typeof _=="string"){let q=_;q.length>2&&q.substr(0,2)==="0x"&&(q=q.substr(2));const Y=we(q);return f.keccak256(Y)}return f.keccak256(be(_))}return f.keccak256(_)}const j={noether:"0",wei:"1",kwei:"1000",Kwei:"1000",babbage:"1000",femtoether:"1000",mwei:"1000000",Mwei:"1000000",lovelace:"1000000",picoether:"1000000",gwei:"1000000000",Gwei:"1000000000",shannon:"1000000000",nanoether:"1000000000",nano:"1000000000",szabo:"1000000000000",microether:"1000000000000",micro:"1000000000000",finney:"1000000000000000",milliether:"1000000000000000",milli:"1000000000000000",ether:"1000000000000000000",kether:"1000000000000000000000",grand:"1000000000000000000000",mether:"1000000000000000000000000",gether:"1000000000000000000000000000",tether:"1000000000000000000000000000000"};function B(_,A,q){return new Array(A-_.length+1).join(q||"0")+_}function k(_){let A="",q=0;const Y=_.length;for(_.substring(0,2)==="0x"&&(q=2);q<Y;q+=2){const x=parseInt(_.substr(q,2),16);A+=String.fromCharCode(x)}return A}function L(_){return $r(_)&&_.name&&_.name.indexOf("(")!==-1?_.name:_.name+"("+oe(!1,_.inputs||[]).join(",")+")"}function W(..._){const A=_.reduce(((x,ne)=>x+ne.length),0),q=new Uint8Array(A);let Y=0;for(const x of _)q.set(x,Y),Y+=x.length;return q}function oe(_,A){const q=[];return A.forEach((function(Y){if(typeof Y.components=="object"){if(Y.type.substring(0,5)!=="tuple")throw new Error("components found but type is not tuple; report on GitHub");let x="";const ne=Y.type.indexOf("[");ne>=0&&(x=Y.type.substring(ne));const Oe=oe(_,Y.components);q.push("("+Oe.join(",")+")"+x)}else q.push(Y.type)})),q}function Re(_){const A=_.indexOf("("),q=_.indexOf(")");return A!==-1&&q!==-1?_.substr(0,A):_}function Se(_){const A=_.indexOf("("),q=_.indexOf(")");return A!==-1&&q!==-1?_.substr(A+1,q-A-1).replace(" ",""):""}function Ue(_){return _==null?_:Lt(_).toNumber()}function Ce(_){return Lt(_).toNumber()}function se(_){return Pr(_)?_.toString(10):""+_}function de(_){return typeof _=="string"&&!_.startsWith("0x")&&/^[A-Za-z0-9]+$/.test(_)?"0x"+_:Je(_)}function Ae(_){if(typeof _=="string")return _.startsWith("0x")&&/^[A-Za-z0-9]+$/.test(_)?Je(_):"0x"+ue(be(_));if(_ instanceof Uint8Array)return"0x"+ue(_);throw new Error(`toStringData: Error trying to convert ${_} (${typeof _}) to a hex string.`)}function je(_){return typeof _=="boolean"?_:Lt(_).toNumber()!==0}function Ye(_){const A=Lt(_),q=A.toString(16);return A.isLessThan(0)?"-0x"+q.substr(1):"0x"+q}function Je(_){if(_n(_))return Ye(+_);if(Pr(_))return Ye(_);if(vn(_)){const A=_;if(A.indexOf("-0x")===0)return Ye(A);if(A.indexOf("0x")===0)return A;if(!isFinite(A))return ue(be(A))}if(_ instanceof Uint8Array)return"0x"+ue(_);if(xr(_)||$r(_))throw new Error("toHex can only be called with scalar values, not objects or arrays");return Ye(_)}function Vt(_){const A=_?_.toLowerCase():"ether",q=j[A];if(q===void 0)throw new Error("This unit doesn't exists, please use the one of the following units"+JSON.stringify(j,null,2));return new ae(q,10)}function Lt(_){let A=_||0;return Pr(A)?A:(typeof A=="string"&&(A=A.trim()),typeof A!="string"||A.indexOf("0x")!==0&&A.indexOf("-0x")!==0?A instanceof Uint8Array?new ae(ue(A),16):new ae(A,10):new ae(A.replace("0x","").toLowerCase(),16))}function rr(_){return new ae(new Array(_).fill("1").join(""),2)}function Bt(_,A=256){const q=Lt(_).integerValue();return q.isLessThan(0)?rr(A).plus(q).plus(1):q}function Ft(_,A){return B(_.toString(2),A,"0")[0]==="1"}function zr(_){if(typeof _!="string")throw qe("invalid address",Ne,{arg:"address",value:_});if(_.trim().match(/^(0x)?[0-9a-fA-F]{40}$/))return _.trim().substring(0,2)!=="0x"&&(_="0x"+_),cn(_);throw qe("invalid address",Ne,{arg:"address",value:_})}function sr(_,A=256){if(Ft(_,A)){const q=rr(A);return _.minus(q).minus(1)}return _}function gn(_){return/^0x[0-9a-f]{40}$/i.test(_)}function Qr(_){return!!/^(0x)?[0-9a-f]{40}$/i.test(_)&&(!(!/^(0x)?[0-9a-f]{40}$/.test(_)&&!/^(0x)?[0-9A-F]{40}$/.test(_))||Zr(_))}function Zr(_){const A=_.replace("0x",""),q=X(A.toLowerCase());for(let Y=0;Y<40;Y++)if(parseInt(q[Y],16)>7&&A[Y].toUpperCase()!==A[Y]||parseInt(q[Y],16)<=7&&A[Y].toLowerCase()!==A[Y])return!1;return!0}function cn(_){if(_===void 0)return"";const A=_.toLowerCase().replace("0x",""),q=X(A);let Y="0x";for(let x=0;x<A.length;x++)parseInt(q[x],16)>7?Y+=A[x].toUpperCase():Y+=A[x];return Y}function ur(_){if(!Array.isArray(_))throw new Error(`Value was not an array: ${JSON.stringify(_)}`);return _}function dn(_){return gn(_)?_:/^[0-9a-f]{40}$/.test(_)?"0x"+_:"0x"+B(Je(_).substr(2),40)}function Pr(_){return _ instanceof ae}function vn(_){return typeof _=="string"||_&&_.constructor&&_.constructor.name==="String"}function $r(_){return _!==null&&!Array.isArray(_)&&typeof _=="object"}function _n(_){return typeof _=="boolean"}function xr(_){return Array.isArray(_)}var ea,En;function Ri(_,A){if(!_)throw new Error("jsonrpc method should be specified!");if(typeof _!="string")throw new Error(`jsonrpc must be a string, got ${typeof _}!`);return t.messageId++,{jsonrpc:"2.0",id:t.messageId,method:_,params:A||[]}}function Mi(_){return Array.isArray(_)?_.every(A):A(_);function A(q){return!!q&&(q.error===void 0||q.error===null)&&q.jsonrpc==="2.0"&&q.id!==null&&"result"in q&&q.result!==void 0}}t.TransactionStatus=void 0,(ea=t.TransactionStatus||(t.TransactionStatus={})).pending="pending",ea.confirmed="confirmed",ea.failed="failed",t.TransactionType=void 0,(En=t.TransactionType||(t.TransactionType={})).queued="queued",En.dropped="dropped",En.replaced="replaced",En.pending="pending",En.reverted="reverted",En.confirmed="confirmed",t.messageId=0;function yi(_){return Lt(_)}function Ni(_){return _==="latest"||_==="pending"||_==="earliest"}function Ir(_){return _===void 0?"latest":Ot(_)}function Ot(_){return _==null?null:Ni(_)?_:Je(_)}function Wr(_){return _.from&&(_.from=Pe(_.from)),_.to&&(_.to=Pe(_.to)),_.gasPrice!==void 0&&(_.gasPrice=Ye(_.gasPrice)),_.gas!==void 0&&(_.gas=Ye(_.gas)),_.value!==void 0&&(_.value=Ye(_.value)),_.nonce!==void 0&&(_.nonce=Ye(_.nonce)),_.data&&!_.data.startsWith("0x")&&/^[A-Za-z0-9]+$/.test(_.data)&&(_.data="0x"+_.data),_}function en(_){if(typeof _!="string")throw new Error("The provided input for transactionId is not a string, got: "+JSON.stringify(_));if(_.indexOf("0x")!==0)throw new Error("TransactionID must start with 0x, got: "+JSON.stringify(_));if(_.length!==66)throw new Error("TransactionID must be a 32 byte hex, got: "+JSON.stringify(_));return _}function te(_){if(typeof _!="object")throw new Error("Did not provide transaction options");if(!_.from)throw new Error('Missing "from" in transaction options');return _.from=Pe(_.from),_.to&&(_.to=Pe(_.to)),_.gasPrice!==void 0&&(_.gasPrice=Ye(_.gasPrice)),_.gas!==void 0&&(_.gas=Ye(_.gas)),_.value!==void 0&&(_.value=Ye(_.value)),_.nonce!==void 0&&(_.nonce=Ye(_.nonce)),_.data&&!_.data.startsWith("0x")&&/^[A-Za-z0-9]+$/.test(_.data)&&(_.data="0x"+_.data),_}function F(_){return _?(_.blockNumber!==null&&(_.blockNumber=Ce(_.blockNumber)),_.transactionIndex!==null&&(_.transactionIndex=Ce(_.transactionIndex)),_.nonce=Ce(_.nonce),_.gas=Ce(_.gas),_.gasPrice=Lt(_.gasPrice),_.value=Lt(_.value),_):null}function Z(_){return _?(_.blockNumber!==null&&(_.blockNumber=Ce(_.blockNumber)),_.transactionIndex!==null&&(_.transactionIndex=Ce(_.transactionIndex)),_.cumulativeGasUsed=Ce(_.cumulativeGasUsed),_.gasUsed=Ce(_.gasUsed),_.logs&&xr(_.logs)&&(_.logs=_.logs.map((function(A){return Te(A)}))),_.status=Ce(_.status||""),_):null}function ce(_){return _?(_.gasLimit=Ce(_.gasLimit),_.gasUsed=Ce(_.gasUsed),_.size=Ce(_.size),_.timestamp=Ce(_.timestamp),_.number!==null&&(_.number=Ce(_.number)),_.difficulty=Lt(_.difficulty),_.totalDifficulty=Lt(_.totalDifficulty),xr(_.transactions)&&_.transactions.forEach((function(A,q){vn(A)||(_.transactions[q]=F(A)||_.transactions[q])})),_):null}function Te(_){return _&&(_.blockNumber&&(_.blockNumber=Ce(_.blockNumber)),_.transactionIndex&&(_.transactionIndex=Ce(_.transactionIndex)),_.logIndex&&(_.logIndex=Ce(_.logIndex)),_)}function Pe(_){if(gn(_))return _;if(Qr(_))return"0x"+_;throw new Error(`Invalid address: ${JSON.stringify(_)}`)}function Ge(_){return _}function Ke(_){return _&&(_.startingBlock=Ce(_.startingBlock),_.currentBlock=Ce(_.currentBlock),_.highestBlock=Ce(_.highestBlock),_.knownStates&&(_.knownStates=Ce(_.knownStates),_.pulledStates=Ce(_.pulledStates)),_)}function mt(_){if(_===null)throw qe("cannot convert null value to array",Ne,{arg:"value",value:_});if(_ instanceof Uint8Array)return new Uint8Array(_);if(typeof _=="string"){const A=_.match(/^(0x)?[0-9a-fA-F]*$/);if(!A)throw qe("invalid hexidecimal string",Ne,{arg:"value",value:_});if(A[1]!=="0x")throw qe("hex string must have 0x prefix",Ne,{arg:"value",value:_});(_=_.substring(2)).length%2&&(_="0"+_);const q=[];for(let Y=0;Y<_.length;Y+=2)q.push(parseInt(_.substr(Y,2),16));return new Uint8Array(q)}if((function(A){if(!A||parseInt(String(A.length))!==A.length||typeof A=="string")return!1;for(let q=0;q<A.length;q++){const Y=A[q];if(Y<0||Y>=256||parseInt(String(Y))!==Y)return!1}return!0})(_))return new Uint8Array(_);throw qe("invalid arrayify value",void 0,{arg:"value",value:_,type:typeof _})}function ut(_,A,q){Object.defineProperty(_,A,{enumerable:!0,value:q,writable:!1})}const _t=new ae(-1),Tt=new ae(0),At=new ae(1),xt=new ae("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function Jt(_){return(function(A,q){function Y(Oe){return new Error('unexpected character "'+A[Oe]+'" at position '+Oe+' in "'+A+'"')}const x={type:"",name:"",state:{allowType:!0}};let ne=x;for(let Oe=0;Oe<A.length;Oe++){const Ve=A[Oe];switch(Ve){case"(":if(!ne.state.allowParams)throw Y(Oe);ne.state.allowType=!1,ne.type=gr(ne.type),ne.components=[{type:"",name:"",parent:ne,state:{allowType:!0}}],ne=ne.components[0];break;case")":delete ne.state,ne.name==="indexed"&&(ne.indexed=!0,ne.name=""),ne.type=gr(ne.type);const it=ne;if(ne=ne.parent,!ne)throw Y(Oe);delete it.parent,ne.state.allowParams=!1,ne.state.allowName=!0,ne.state.allowArray=!0;break;case",":delete ne.state,ne.name==="indexed"&&(ne.indexed=!0,ne.name=""),ne.type=gr(ne.type);const st={type:"",name:"",parent:ne.parent,state:{allowType:!0}};ne.parent.components.push(st),delete ne.parent,ne=st;break;case" ":ne.state.allowType&&ne.type!==""&&(ne.type=gr(ne.type),delete ne.state.allowType,ne.state.allowName=!0,ne.state.allowParams=!0),ne.state.allowName&&ne.name!==""&&(ne.name==="indexed"?(ne.indexed=!0,ne.name=""):ne.state.allowName=!1);break;case"[":if(!ne.state.allowArray)throw Y(Oe);ne.type+=Ve,ne.state.allowArray=!1,ne.state.allowName=!1,ne.state.readArray=!0;break;case"]":if(!ne.state.readArray)throw Y(Oe);ne.type+=Ve,ne.state.readArray=!1,ne.state.allowArray=!0,ne.state.allowName=!0;break;default:if(ne.state.allowType)ne.type+=Ve,ne.state.allowParams=!0,ne.state.allowArray=!0;else if(ne.state.allowName)ne.name+=Ve,delete ne.state.allowArray;else{if(!ne.state.readArray)throw Y(Oe);ne.type+=Ve}}}if(ne.parent)throw new Error("unexpected eof");return delete x.state,ne.name==="indexed"&&(ne.indexed=!0,ne.name=""),x.type=gr(x.type),x})(_)}function gr(_){return _.match(/^uint($|[^1-9])/)?_="uint256"+_.substring(4):_.match(/^int($|[^1-9])/)&&(_="int256"+_.substring(3)),_}const Dr=new RegExp(/^bytes([0-9]*)$/),bn=new RegExp(/^(u?int)([0-9]*)$/),qn=new RegExp(/^(.*)\[([0-9]*)\]$/),ta=function(_,A){const q=_.match(bn);return q&&parseInt(q[2])<=48?A.toNumber():A};class Rr{constructor(A,q,Y,x="",ne){this.coerceFunc=A,this.name=q,this.type=Y,this.localName=x,this.dynamic=ne}}class mi extends Rr{constructor(A){super(A.coerceFunc,A.name,A.type,void 0,A.dynamic),ut(this,"coder",A)}encode(A){return this.coder.encode(A)}decode(A,q){return this.coder.decode(A,q)}}class uu extends Rr{constructor(A,q){super(A,"null","",q,!1)}encode(A){return mt([])}decode(A,q){if(q>A.length)throw new Error("invalid null");return{consumed:0,value:this.coerceFunc("null",void 0)}}}function Oa(_,A){return new ae(_.toString(2).substr(-A),2)}class kl extends Rr{constructor(A,q,Y,x){const ne=(Y?"int":"uint")+8*q;super(A,ne,ne,x,!1),this.size=q,this.signed=Y}encode(A){try{let q=Lt(A);if(this.signed){let x=Oa(xt,8*this.size-1);if(q.gt(x))throw new Error("out-of-bounds");if(x=x.plus(At).multipliedBy(_t),q.lt(x))throw new Error("out-of-bounds")}else if(q.lt(Tt)||q.gt(Oa(xt,8*this.size)))throw new Error("out-of-bounds");q=Oa(Bt(q,8*this.size),8*this.size),this.signed&&(q=Bt(sr(q,8*this.size),256));const Y=B(Bt(q).toString(16),64);if(Y.indexOf("NaN")!==-1)throw qe("invalid number value, NaN",Ne,{arg:this.localName,coderType:this.name,value:A,v:q,twosComplement:Bt(q),twosComplement16:Bt(q).toString(16),pad:B(Bt(q).toString(16),64),size:this.size});return we(Y)}catch(q){throw qe("invalid number value",Ne,{arg:this.localName,coderType:this.name,value:A,message:q.toString()})}}decode(A,q){if(A.length<q+32)throw qe("insufficient data for "+this.name+" type",Ne,{arg:this.localName,coderType:this.name,value:Je(A.slice(q,q+32))});const Y=32-this.size;let x=new ae(ue(A.slice(q+Y,q+32)),16);return x=this.signed?sr(x,8*this.size):Oa(x,8*this.size),{consumed:32,value:this.coerceFunc(this.name,x)}}}const kn=new kl((function(_,A){return A}),32,!1,"none");class er extends Rr{constructor(A,q,Y){const x="bytes"+q;super(A,x,x,Y,!1),this.length=q}encode(A){const q=new Uint8Array(32);try{if(typeof A=="string"&&A.length%2!=0)throw new Error("hex string cannot be odd-length");const Y=mt(A);if(Y.length>this.length)throw new Error("incorrect data length");q.set(Y)}catch(Y){throw qe("invalid "+this.name+" value. Use hex strings or Uint8Array",Ne,{arg:this.localName,coderType:this.name,value:Y.value||A,details:Y.message})}return q}decode(A,q){if(A.length<q+32)throw qe("insufficient data for "+this.name+" type",Ne,{arg:this.localName,coderType:this.name,value:Je(A.slice(q,q+32))});return{consumed:32,value:this.coerceFunc(this.name,A.slice(q,q+this.length))}}}function Ul(_){const A=32*Math.ceil(_.length/32),q=new Uint8Array(A-_.length);return W(kn.encode(_.length),_,q)}function ss(_,A,q){if(_.length<A+32)throw qe("insufficient data for dynamicBytes length",Ne,{arg:q,coderType:"dynamicBytes",value:Je(_.slice(A,A+32))});let Y=kn.decode(_,A).value;try{Y=Y.toNumber()}catch(x){throw x("dynamic bytes count too large",Ne,{arg:q,coderType:"dynamicBytes",value:Y.toString()})}if(_.length<A+32+Y)throw qe("insufficient data for dynamicBytes type",Ne,{arg:q,coderType:"dynamicBytes",value:Je(_.slice(A,A+32+Y))});return{consumed:32+32*Math.ceil(Y/32),value:_.slice(A+32,A+32+Y)}}function Aa(_){return 32*Math.ceil(_/32)}function Pa(_,A){if(!Array.isArray(A)){if(!A||typeof A!="object")throw qe("invalid tuple value",Ne,{coderType:"tuple",value:A});{const it=[];_.forEach((function(st){it.push(A[st.localName])})),A=it}}if(_.length!==A.length)throw qe("types/value length mismatch",Ne,{coderType:"tuple",value:A});const q=[];_.forEach((function(it,st){q.push({dynamic:it.dynamic,value:it.encode(A[st])})}));let Y=0,x=0;q.forEach((function(it){it.dynamic?(Y+=32,x+=Aa(it.value.length)):Y+=Aa(it.value.length)}));let ne=0,Oe=Y;const Ve=new Uint8Array(Y+x);return q.forEach((function(it){it.dynamic?(Ve.set(kn.encode(Oe),ne),ne+=32,Ve.set(it.value,Oe),Oe+=Aa(it.value.length)):(Ve.set(it.value,ne),ne+=Aa(it.value.length))})),Ve}class Pf extends Array{}class Bl extends Rr{constructor(A,q,Y,x){super(A,"array",q.type+"["+(Y>=0?Y:"")+"]",x,Y===-1||q.dynamic),this.coder=q,this.length=Y}encode(A){if(!Array.isArray(A))throw qe("expected array value",Ne,{arg:this.localName,coderType:"array",value:A});let q=this.length,Y=new Uint8Array(0);q===-1&&(q=A.length,Y=kn.encode(q)),(function(ne,Oe,Ve){if(Ve||(Ve=""),ne<Oe)throw qe("missing argument"+Ve,"MISSING_ARGUMENT",{count:ne,expectedCount:Oe});if(ne>Oe)throw qe("too many arguments"+Ve,"UNEXPECTED_ARGUMENT",{count:ne,expectedCount:Oe})})(q,A.length,"in coder array"+(this.localName?" "+this.localName:""));const x=[];for(let ne=0;ne<A.length;ne++)x.push(this.coder);return W(Y,Pa(x,A))}decode(A,q){let Y=0,x=this.length;if(x===-1){let Ve;try{Ve=kn.decode(A,q)}catch(it){throw qe("insufficient data for dynamic array length",Ne,{arg:this.localName,coderType:"array",value:it.value})}try{x=Ve.value.toNumber()}catch{throw qe("array count too large",Ne,{arg:this.localName,coderType:"array",value:Ve.value.toString()})}Y+=Ve.consumed,q+=Ve.consumed}const ne=[];for(let Ve=0;Ve<x;Ve++)ne.push(new mi(this.coder));const Oe=(function(Ve,it,st){const fr=st;let Ht=0;const ze=[];return Ve.forEach((function(_r){let zt;if(_r.dynamic){const Dt=kn.decode(it,st);zt=_r.decode(it,fr+Dt.value.toNumber()),zt.consumed=Dt.consumed}else zt=_r.decode(it,st);zt.value!==void 0&&ze.push(zt.value),st+=zt.consumed,Ht+=zt.consumed})),{value:ze,consumed:Ht}})(ne,A,q);return Oe.consumed+=Y,Oe.value=this.coerceFunc(this.type,Oe.value),Oe}}class ra extends Rr{constructor(A,q,Y){let x=!1;const ne=[];q.forEach((function(Oe){Oe.dynamic&&(x=!0),ne.push(Oe.type)})),super(A,"tuple","tuple("+ne.join(",")+")",Y,x),this.coders=q}encode(A){return Pa(this.coders,A)}decode(A,q){const Y=(function(x,ne,Oe){const Ve=Oe;let it=0;const st=new Pf;return x.forEach((function(fr){let Ht;if(fr.dynamic){const ze=kn.decode(ne,Oe);Ht=fr.decode(ne,Ve+ze.value.toNumber()),Ht.consumed=ze.consumed}else Ht=fr.decode(ne,Oe);Ht.value!==void 0&&st.push(Ht.value),Oe+=Ht.consumed,it+=Ht.consumed})),x.forEach((function(fr,Ht){let ze=fr.localName;ze&&(ze==="length"&&(ze="_length"),st[ze]!==null&&st[ze]!==void 0||(st[ze]=st[Ht]))})),{value:st,consumed:it}})(this.coders,A,q);return Y.value=this.coerceFunc(this.type,Y.value),Y}}const wn={address:class extends Rr{constructor(_,A){super(_,"address","address",A,!1)}encode(_){const A=new Uint8Array(32),q=_.trim();if(!Qr(q))throw qe("invalid address format",Ne,{arg:this.localName,coderType:"address",value:_});try{A.set(we(Pe(q)),12)}catch(Y){throw qe(`invalid address (${Y.message})`,Ne,{arg:this.localName,coderType:"address",value:_})}return A}decode(_,A){if(_.length<A+32)throw qe("insufficuent data for address type",Ne,{arg:this.localName,coderType:"address",value:Je(_.slice(A,A+32)),missingBytes:A+32-_.length});return{consumed:32,value:this.coerceFunc("address",zr(Je(_.slice(A+12,A+32))))}}},bool:class extends Rr{constructor(_,A){super(_,"bool","bool",A,!1)}encode(_){return kn.encode(_?1:0)}decode(_,A){try{const q=kn.decode(_,A);return{consumed:q.consumed,value:this.coerceFunc("bool",!q.value.isZero())}}catch(q){throw q.reason==="insufficient data for uint256 type"?qe("insufficient data for boolean type",Ne,{arg:this.localName,coderType:"boolean",value:q.value}):q}}},string:class extends Rr{constructor(_,A){super(_,"string","string",A,!0)}encode(_){if(typeof _!="string")throw qe("invalid string value",Ne,{arg:this.localName,coderType:"string",value:_});return Ul(be(_))}decode(_,A){const q=ss(_,A,this.localName);return q.value=this.coerceFunc("string",ye(q.value)),q}},bytes:class extends Rr{constructor(_,A){super(_,"bytes","bytes",A,!0)}encode(_){try{return Ul(mt(_))}catch(A){throw A("invalid bytes value",Ne,{arg:this.localName,coderType:"bytes",value:A.value})}}decode(_,A){const q=ss(_,A,this.localName);return q.value=this.coerceFunc("bytes",q.value),q}},function:class extends er{constructor(_,A){super(_,24,A)}}};function us(_,A){const q=wn[A.type];if(q)return new q(_,A.name);let Y=A.type.match(bn);if(Y){const x=parseInt(Y[2]||"256");if(x===0||x>256||x%8!=0)throw qe("invalid "+Y[1]+" bit length",Ne,{arg:"param",value:A});return new kl(_,x/8,Y[1]==="int",A.name)}if(Y=A.type.match(Dr),Y){const x=parseInt(Y[1]);if(x===0||x>32)throw qe("invalid bytes length",Ne,{arg:"param",value:A});return new er(_,x,A.name)}if(Y=A.type.match(qn),Y){const x=Object.assign({},A),ne=parseInt(Y[2]||"-1");return x.type=Y[1],new Bl(_,us(_,x),ne,A.name)}if(A.type.substring(0,5)==="tuple")return(function(x,ne,Oe){ne||(ne=[]);const Ve=ne.map((it=>us(x,it)));return new ra(x,Ve,Oe)})(_,A.components,A.name);if(A.type==="")return new uu(_,A.name);throw qe("invalid type",Ne,{arg:"type",value:A.type,fullType:A})}class Gr{constructor(A){(function(q,Y){if(!(q instanceof Y))throw qe("missing new","MISSING_NEW",{name:Y.name})})(this,Gr),A||(A=ta),ut(this,"coerceFunc",A)}encode(A,q){if(A.length!==q.length)throw qe("types/values length mismatch",Ne,{count:{types:A.length,values:q.length},value:{types:A,values:q}});const Y=A.map((x=>typeof x=="string"?Jt(x):x)).map((x=>us(this.coerceFunc,x)));return new ra(this.coerceFunc,Y,"_").encode(q)}decode(A,q){const Y=A.map((x=>typeof x=="string"?Jt(x):x)).map((x=>us(this.coerceFunc,x)));return new ra(this.coerceFunc,Y,"_").decode(q,0).value}}const Fl=new Gr;var Vl,et;function $e(_,A,q,Y){var x,ne=arguments.length,Oe=ne<3?A:Y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Oe=Reflect.decorate(_,A,q,Y);else for(var Ve=_.length-1;Ve>=0;Ve--)(x=_[Ve])&&(Oe=(ne<3?x(Oe):ne>3?x(A,q,Oe):x(A,q))||Oe);return ne>3&&Oe&&Object.defineProperty(A,q,Oe),Oe}function xe(_,A){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(_,A)}t.coder=void 0,(Vl=t.coder||(t.coder={})).encodeParams=function(_,A){return ue(Fl.encode(_,A))},Vl.decodeParams=function(_,A){if(_.length>0&&(!A||A==="0x"||A==="0X"))throw new Error("Returned values aren't valid, did it run Out of Gas? You might also see this error if you are not using the correct ABI for the contract you are retrieving data from, requesting data from a block number that does not exist, or querying a node which is not fully synced.");return Fl.decode(_,we("0x"+A.replace(/0x/i,"")))},typeof SuppressedError=="function"&&SuppressedError;class ft{constructor(A){this.callName=A.callName,this.params=A.params||0,this.inputFormatter=A.inputFormatter||null,this.outputFormatter=A.outputFormatter}validateArgs(A){if(A.length!==this.params)throw q=this.callName,Y=A.length,x=this.params,new Error(`Invalid number of input parameters to RPC method "${q}" given: ${Y}, expected: ${x}`);var q,Y,x}formatInput(A){return this.inputFormatter?this.inputFormatter.map((function(q,Y){return q?q(A[Y]):A[Y]})):A}formatOutput(A){return A!==null?this.outputFormatter(A):null}toPayload(A){const q=this.formatInput(A);return this.validateArgs(q),{method:this.callName,params:q}}async execute(A,...q){const Y=this.toPayload(q);if(!A)throw new Error("Missing RequestManager in method#exec");const x=await A.sendAsync(Y);return this.formatOutput(x)}}class vr{constructor(A){this.getter=A.getter,this.outputFormatter=A.outputFormatter}formatOutput(A){return this.outputFormatter(A)}async execute(A,...q){const Y=await A.sendAsync({method:this.getter,params:[]});return this.formatOutput(Y)}}function Hl(_){return new Promise((A=>setTimeout(A,_)))}t.eth=void 0,(et=t.eth||(t.eth={})).eth_getBalance=new ft({callName:"eth_getBalance",params:2,inputFormatter:[Pe,Ir],outputFormatter:yi}),et.eth_getStorageAt=new ft({callName:"eth_getStorageAt",params:3,inputFormatter:[Pe,Je,Ir],outputFormatter:de}),et.eth_getCode=new ft({callName:"eth_getCode",params:2,inputFormatter:[Pe,Ir],outputFormatter:de}),et.eth_getBlockByHash=new ft({callName:"eth_getBlockByHash",params:2,inputFormatter:[Ot,function(_){return!!_}],outputFormatter:ce}),et.eth_getBlockByNumber=new ft({callName:"eth_getBlockByNumber",params:2,inputFormatter:[Ot,function(_){return!!_}],outputFormatter:ce}),et.eth_getUncleByBlockHashAndIndex=new ft({callName:"eth_getUncleByBlockHashAndIndex",params:2,inputFormatter:[Ot,Je],outputFormatter:ce}),et.eth_getUncleByBlockNumberAndIndex=new ft({callName:"eth_getUncleByBlockNumberAndIndex",params:2,inputFormatter:[Ot,Je],outputFormatter:ce}),et.eth_getBlockTransactionCountByHash=new ft({callName:"eth_getBlockTransactionCountByHash",params:1,inputFormatter:[Ot],outputFormatter:Ce}),et.eth_getBlockTransactionCountByNumber=new ft({callName:"eth_getBlockTransactionCountByNumber",params:1,inputFormatter:[Ot],outputFormatter:Ce}),et.eth_getUncleCountByBlockHash=new ft({callName:"eth_getUncleCountByBlockHash",params:1,inputFormatter:[Ot],outputFormatter:Ce}),et.eth_getUncleCountByBlockNumber=new ft({callName:"eth_getUncleCountByBlockNumber",params:1,inputFormatter:[Ot],outputFormatter:Ce}),et.eth_getTransactionByHash=new ft({callName:"eth_getTransactionByHash",params:1,inputFormatter:[en],outputFormatter:F}),et.eth_getTransactionByBlockHashAndIndex=new ft({callName:"eth_getTransactionByBlockHashAndIndex",params:2,inputFormatter:[Ot,Je],outputFormatter:F}),et.eth_getTransactionByBlockNumberAndIndex=new ft({callName:"eth_getTransactionByBlockNumberAndIndex",params:2,inputFormatter:[Ot,Je],outputFormatter:F}),et.eth_getTransactionReceipt=new ft({callName:"eth_getTransactionReceipt",params:1,inputFormatter:[en],outputFormatter:Z}),et.eth_getTransactionCount=new ft({callName:"eth_getTransactionCount",params:2,inputFormatter:[Pe,Ir],outputFormatter:Ce}),et.eth_sendRawTransaction=new ft({callName:"eth_sendRawTransaction",params:1,inputFormatter:[null],outputFormatter:de}),et.web3_sha3=new ft({callName:"web3_sha3",params:1,inputFormatter:[null],outputFormatter:de}),et.eth_sendTransaction=new ft({callName:"eth_sendTransaction",params:1,inputFormatter:[te],outputFormatter:de}),et.eth_sign=new ft({callName:"eth_sign",params:2,inputFormatter:[Pe,null],outputFormatter:de}),et.eth_call=new ft({callName:"eth_call",params:2,inputFormatter:[Wr,Ir],outputFormatter:de}),et.eth_estimateGas=new ft({callName:"eth_estimateGas",params:1,inputFormatter:[Wr],outputFormatter:Ce}),et.eth_submitWork=new ft({callName:"eth_submitWork",params:3,inputFormatter:[null,null,null],outputFormatter:je}),et.eth_getWork=new ft({callName:"eth_getWork",params:0,inputFormatter:[],outputFormatter:ur}),et.eth_coinbase=new vr({getter:"eth_coinbase",outputFormatter:dn}),et.eth_mining=new vr({getter:"eth_mining",outputFormatter:je}),et.eth_hashrate=new vr({getter:"eth_hashrate",outputFormatter:Ce}),et.eth_syncing=new vr({getter:"eth_syncing",outputFormatter:Ke}),et.eth_gasPrice=new vr({getter:"eth_gasPrice",outputFormatter:yi}),et.eth_accounts=new vr({getter:"eth_accounts",outputFormatter:ur}),et.eth_blockNumber=new vr({getter:"eth_blockNumber",outputFormatter:Ce}),et.eth_protocolVersion=new vr({getter:"eth_protocolVersion",outputFormatter:Ce}),et.web3_clientVersion=new vr({getter:"web3_clientVersion",outputFormatter:se}),et.net_version=new vr({getter:"net_version",outputFormatter:se}),et.shh_version=new ft({callName:"shh_version",params:0,inputFormatter:[],outputFormatter:Ce}),et.shh_post=new ft({callName:"shh_post",params:1,inputFormatter:[null],outputFormatter:je}),et.personal_newAccount=new ft({callName:"personal_newAccount",params:1,inputFormatter:[null],outputFormatter:dn}),et.personal_importRawKey=new ft({callName:"personal_importRawKey",params:2,inputFormatter:[null,null],outputFormatter:dn}),et.personal_sign=new ft({callName:"personal_sign",params:3,inputFormatter:[Ae,Pe,null],outputFormatter:de}),et.personal_ecRecover=new ft({callName:"personal_ecRecover",params:2,inputFormatter:[Ae,null],outputFormatter:dn}),et.personal_unlockAccount=new ft({callName:"personal_unlockAccount",params:3,inputFormatter:[Pe,null,Ue],outputFormatter:je}),et.personal_sendTransaction=new ft({callName:"personal_sendTransaction",params:2,inputFormatter:[te,null],outputFormatter:de}),et.personal_lockAccount=new ft({callName:"personal_lockAccount",params:1,inputFormatter:[Pe],outputFormatter:je}),et.personal_listAccounts=new vr({getter:"personal_listAccounts",outputFormatter:ur}),et.net_listening=new vr({getter:"net_listening",outputFormatter:je}),et.net_peerCount=new vr({getter:"net_peerCount",outputFormatter:Ce}),et.eth_newFilter=new ft({callName:"eth_newFilter",params:1,inputFormatter:[Ge],outputFormatter:Je}),et.eth_getLogs=new ft({callName:"eth_getLogs",params:1,inputFormatter:[ur],outputFormatter:ur}),et.eth_newBlockFilter=new ft({callName:"eth_newBlockFilter",params:0,inputFormatter:[],outputFormatter:Je}),et.eth_newPendingTransactionFilter=new ft({callName:"eth_newPendingTransactionFilter",params:0,inputFormatter:[],outputFormatter:Je}),et.eth_uninstallFilter=new ft({callName:"eth_uninstallFilter",params:1,inputFormatter:[Je],outputFormatter:je}),et.eth_getFilterLogs=new ft({callName:"eth_getFilterLogs",params:1,inputFormatter:[Je],outputFormatter:ur}),et.eth_getFilterChanges=new ft({callName:"eth_getFilterChanges",params:1,inputFormatter:[Je],outputFormatter:ur}),et.eth_submitHashrate=new ft({callName:"eth_submitHashrate",params:2,inputFormatter:[null,null],outputFormatter:je}),et.shh_newIdentity=new ft({callName:"shh_newIdentity",params:0,inputFormatter:[],outputFormatter:de}),et.shh_hasIdentity=new ft({callName:"shh_hasIdentity",params:1,inputFormatter:[null],outputFormatter:je}),et.shh_newGroup=new ft({callName:"shh_newGroup",params:0,inputFormatter:[],outputFormatter:de}),et.shh_addToGroup=new ft({callName:"shh_addToGroup",params:1,inputFormatter:[null],outputFormatter:je}),et.shh_newFilter=new ft({callName:"shh_newFilter",params:1,inputFormatter:[null],outputFormatter:Je}),et.shh_uninstallFilter=new ft({callName:"shh_uninstallFilter",params:1,inputFormatter:[null],outputFormatter:je}),et.shh_getLogs=new ft({callName:"shh_getLogs",params:1,inputFormatter:[null],outputFormatter:ur}),et.shh_getFilterMessages=new ft({callName:"shh_getFilterMessages",params:1,inputFormatter:[null],outputFormatter:ur}),et.shh_getFilterChanges=new ft({callName:"shh_getFilterChanges",params:1,inputFormatter:[null],outputFormatter:ur}),et.shh_getMessages=new ft({callName:"shh_getMessages",params:1,inputFormatter:[null],outputFormatter:ur});function at(_,A){const q=t.eth[A];if(!q)throw new Error(`Could not find the method/property named ${A.toString()}`);Object.defineProperty(_,A,{value:function(...Y){return q.execute(this,...Y)}})}class Ze{constructor(A){this.provider=A,this.requests=new Map}async sendAsync(A){const q=await this.provider;if(!q)throw new Error("Provider not set or invalid");const Y=Ri(A.method,A.params),x=u();return this.requests.set(Y.id,x),q.sendAsync(Y,((ne,Oe)=>{this.requests.delete(Y.id),ne?x.reject(ne):Mi(Oe)?x.resolve(Oe.result):x.reject((function(Ve){const it=Ve&&Ve.error&&Ve.error.message?Ve.error.message:"Invalid JSON RPC response: "+JSON.stringify(Ve);return new Error(it)})(Oe))})),x}setProvider(A){this.provider=A}async getConfirmedTransaction(A){const q=await this.waitForCompletion(A);if(this.isFailure(q))throw new Error(`Transaction "${A}" failed`);return q}async waitForCompletion(A,q){const Y=en(A);if(await this.isTxDropped(Y,q)){const x=await this.getTransactionAndReceipt(Y);return Object.assign(Object.assign({},x),{status:t.TransactionStatus.failed})}for(;;){const x=await this.getTransactionAndReceipt(Y);if(!this.isPending(x)&&x.receipt)return Object.assign(Object.assign({},x),{status:this.isFailure(x)?t.TransactionStatus.failed:t.TransactionStatus.confirmed});await Hl(2e3)}}async getTransaction(A){let q,Y=null;const x=en(A);try{const Oe=(await this.eth_accounts())[0];Oe&&(Y=await this.eth_getTransactionCount(Oe,"latest"))}catch{Y=null}try{if(q=await this.eth_getTransactionByHash(x),q===null)return null}catch{return null}if(q.blockNumber===null){if(Y!==null){if(q.nonce<Y)return{hash:x,type:t.TransactionType.replaced,nonce:q.nonce};if(q.nonce>Y)return{hash:x,type:t.TransactionType.queued,nonce:q.nonce}}return Object.assign({type:t.TransactionType.pending},q)}let ne;try{if(ne=await this.eth_getTransactionReceipt(x),ne===null||ne.status===0)return Object.assign({type:t.TransactionType.reverted},q)}catch{return null}return Object.assign(Object.assign({type:t.TransactionType.confirmed},q),{receipt:ne})}async isTxDropped(A,q=15){let Y=q;for(;Y>0;){if(await this.getTransactionAndReceipt(A)!==null)return!1;Y-=1,await Hl(2e3)}return!0}async getTransactionAndReceipt(A){A=en(A);const[q,Y]=await Promise.all([this.eth_getTransactionByHash(A),this.eth_getTransactionReceipt(A)]);return Object.assign(Object.assign({},q),{receipt:Y})}isPending(A){return A&&A.blockNumber===null}isFailure(A){return A&&(!A.receipt||A.receipt.status===0)}}$e([at,xe("design:type",Function)],Ze.prototype,"web3_clientVersion",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"web3_sha3",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"net_version",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"net_peerCount",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"net_listening",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_protocolVersion",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_syncing",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_coinbase",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_mining",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_hashrate",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_gasPrice",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_accounts",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_blockNumber",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getBalance",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getStorageAt",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getTransactionCount",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getBlockTransactionCountByHash",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getBlockTransactionCountByNumber",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getUncleCountByBlockHash",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getUncleCountByBlockNumber",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getCode",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_sign",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_sendTransaction",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_sendRawTransaction",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_call",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_estimateGas",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getBlockByHash",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getBlockByNumber",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getTransactionByHash",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getTransactionByBlockHashAndIndex",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getTransactionByBlockNumberAndIndex",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getTransactionReceipt",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getUncleByBlockHashAndIndex",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getUncleByBlockNumberAndIndex",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_newFilter",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_newBlockFilter",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_newPendingTransactionFilter",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_uninstallFilter",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getFilterChanges",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getFilterLogs",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getLogs",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_getWork",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_submitWork",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"eth_submitHashrate",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"shh_post",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"shh_version",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"shh_newIdentity",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"shh_hasIdentity",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"shh_newGroup",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"shh_addToGroup",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"shh_newFilter",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"shh_uninstallFilter",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"shh_getFilterChanges",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"shh_getMessages",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"personal_unlockAccount",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"personal_newAccount",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"personal_listAccounts",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"personal_lockAccount",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"personal_importRawKey",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"personal_sendTransaction",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"personal_sign",void 0),$e([at,xe("design:type",Function)],Ze.prototype,"personal_ecRecover",void 0);class lu{constructor(A){this.json=A,this._inputTypes=A.inputs||[],this._outputTypes=A.outputs||[],this._constant=!!A.constant,this._payable=!!A.payable||A.stateMutability==="payable",this.needsToBeTransaction=this._payable||"constant"in A&&!A.constant||A.stateMutability==="nonpayable",this._name=L(A)}extractDefaultBlock(A){return A.length>this._inputTypes.length&&!$r(A[A.length-1])&&Ir(A.pop())||"latest"}validateArgs(A){if(A.some((ne=>ne===void 0)))throw new Error("Invalid call, some arguments are undefined");const q=A.filter((function(ne){return!($r(ne)===!0&&xr(ne)===!1&&Pr(ne)===!1&&!(ne instanceof Uint8Array))}));if(q.length!==this._inputTypes.length)throw Y=q.length,x=this._inputTypes.length,new Error(`Invalid number of arguments to Solidity function. given: ${Y}, expected: ${x}`);var Y,x}toPayload(A){let q={to:void 0,data:void 0,value:void 0,from:void 0};A.length>this._inputTypes.length&&$r(A[A.length-1])&&(q=A.pop()),this.validateArgs(A);const Y=this.signature();let x=t.coder.encodeParams(this._inputTypes,A);return x.indexOf("0x")===0&&(x=x.substr(2)),q.data="0x"+Y+x,q}signature(){return X(this._name).slice(0,8)}unpackOutput(A){if(!A)return;const q=A.length>=2?A.slice(2):A,Y=t.coder.decodeParams(this._outputTypes,q);return Y.length===1?Y[0]:Y}async execute(A,q,...Y){if(!A)throw new Error(`Cannot call function ${this.displayName()} because there is no requestManager`);if(this.needsToBeTransaction){const x=this.toPayload(Y);if(x.to=q,x.value>0&&!this._payable)throw new Error("Cannot send value to non-payable function");if(!x.from)throw new Error('Missing "from" in transaction options');return await A.eth_sendTransaction(x)}{const x=this.extractDefaultBlock(Y),ne=this.toPayload(Y);ne.to=q;const Oe=await A.eth_call(ne,x);return this.unpackOutput(Oe)}}estimateGas(A,q,...Y){if(!(A instanceof Ze))throw new Error("estimateGas needs to receive a RequestManager as first argument");const x=this.toPayload(Y);return x.to=q,A.eth_estimateGas(x)}displayName(){return Re(this._name)}typeName(){return Se(this._name)||"void"}attachToContract(A){const q=this.displayName(),Y=Object.assign(((...x)=>this.execute(A.requestManager,A.address,...x)),{estimateGas:this.estimateGas.bind(this,A.requestManager,A.address),toPayload:(...x)=>this.toPayload(x),toRPCMessage:(...x)=>{const ne=this.extractDefaultBlock(x),Oe=this.toPayload(x);return Oe.to=A.address,{method:"eth_call",params:[Oe,ne]}},unpackOutput:x=>this.unpackOutput(x)});A[q]||(A[q]=Y),A[q][this.typeName()]=Y}}function ls(_){if(_==null)return null;const A=String(_).toString();return A.indexOf("0x")===0?A:ue(be(A))}class Ci{constructor(A){this.requestManager=A,this.isStarted=!1,this.isDisposed=!1,this.formatter=q=>q,this.filterId=u(),this.callbacks=[],this.stopSemaphore=u()}async watch(A){if(this.isDisposed)throw new Error("The filter was disposed");A&&(this.callbacks.push(A),this.isStarted||await this.start())}async start(){if(this.isDisposed)throw new Error("The filter was disposed");if(!this.isStarted){this.isStarted=!0;try{const A=await this.getNewFilter();if(!A)throw new Error("Could not create a filter, response: "+JSON.stringify(A));this.filterId.resolve(A)}catch(A){throw A}this.stopSemaphore=u(),await this.poll()}}async stop(){if(!this.isStarted||this.isDisposed)return;this.isDisposed=!0;const A=await this.filterId;if(this.isStarted=!1,this.stopSemaphore&&await this.stopSemaphore,await this.uninstall()!==!0)throw new Error(`Couldn't stop the eth filter: ${A}`)}async poll(){if(this.isStarted){if(this.callbacks.length){const q=await this.getChanges();q&&this.callbacks.forEach((Y=>{this.formatter?q.forEach((x=>{Y(this.formatter(x))})):q.forEach((x=>Y(x)))}))}this.stopSemaphore.resolve(1),this.isStarted&&(this.stopSemaphore=u(),setTimeout((A=()=>this.poll(),function(){A().catch((q=>console.error(q)))}),500))}else this.stopSemaphore.resolve(1);var A}}class Ia extends Ci{constructor(A,q,Y=(x=>x)){super(A),this.requestManager=A,this.options=q,this.formatter=Y,this.options=this.options||{},this.options.topics=this.options.topics||[],this.options.topics=this.options.topics.map((function(x){return ls(x)})),this.options={topics:this.options.topics,address:this.options.address?this.options.address:void 0,fromBlock:typeof this.options.fromBlock=="number"||typeof this.options.fromBlock=="string"?Ot(this.options.fromBlock)||void 0:"latest",toBlock:typeof this.options.toBlock=="number"||typeof this.options.toBlock=="string"?Ot(this.options.toBlock)||void 0:"latest"}}async getLogs(){this.isStarted||await this.start();const A=await this.filterId;return this.requestManager.eth_getFilterLogs(A)}async getNewFilter(){return this.requestManager.eth_newFilter(this.options)}async getChanges(){const A=await this.filterId;return this.requestManager.eth_getFilterChanges(A)}async uninstall(){const A=await this.filterId;return this.requestManager.eth_uninstallFilter(A)}}class Ra{constructor(A,q,Y){this.requestManager=A,this.address=Y,this._anonymous=!1,this._params=q.inputs||[],this._name=L(q),this._anonymous=q.anonymous||!1}types(A){return this._params.filter((function(q){return q.indexed===A}))}displayName(){return Re(this._name)}typeName(){return Se(this._name)||"void"}signature(){return X(this._name)}encode(A={},q={}){const Y={topics:[],address:this.address};q.fromBlock!==void 0&&(Y.fromBlock=Ot(q.fromBlock)||void 0),q.toBlock!==void 0&&(Y.toBlock=Ot(q.toBlock)||void 0),Y.topics=Y.topics||[],this._anonymous||Y.topics.push("0x"+this.signature());const x=this._params.filter((function(ne){return ne.indexed===!0})).map((function(ne){const Oe=A[ne.name];return Oe==null?null:xr(Oe)?Oe.map((function(Ve){return"0x"+t.coder.encodeParams([ne],[Ve])})):"0x"+t.coder.encodeParams([ne],[Oe])}));return Y.topics=Y.topics.concat(x),Y}decode(A){A.data=A.data||"",A.topics=A.topics||[];const q=(this._anonymous?A.topics:A.topics.slice(1)).map((function(Ve){return Ve.slice(2)})).join(""),Y=t.coder.decodeParams(this.types(!0),q),x=A.data.slice(2),ne=t.coder.decodeParams(this.types(!1),x),Oe=this._params.reduce((function(Ve,it){return Ve[it.name]=it.indexed?Y.shift():ne.shift(),Ve}),{});return Object.assign(Object.assign({},Te(A)),{event:this.displayName(),address:A.address,args:Oe})}async execute(A,q){const Y=this.encode(A,q),x=this.decode.bind(this);return new Ia(this.requestManager,Y,x)}attachToContract(A){const q=this.execute.bind(this),Y=this.displayName();A.events[Y]||(A.events[Y]=q),A.events[Y][this.typeName()]=this.execute.bind(this,A)}}class Ut{constructor(A,q,Y){this._requestManager=A,this._json=q,this._address=Y}encode(A={}){const q={address:this._address};return A.fromBlock!==void 0&&(q.fromBlock=Ot(A.fromBlock)||void 0),A.toBlock!==void 0&&(q.toBlock=Ot(A.toBlock)||void 0),q}decode(A){A.data=A.data||"";const q=xr(A.topics)&&vn(A.topics[0])?A.topics[0].slice(2):"",Y=this._json.filter((function(x){return q===X(L(x))}))[0];return Y?new Ra(this._requestManager,Y,this._address).decode(A):Te(A)}async execute(A){const q=this.encode(A),Y=this.decode.bind(this);return new Ia(this._requestManager,q,Y)}getAllEventsFunction(){return this.execute.bind(this)}}class cu{constructor(A,q,Y){var x;this.requestManager=A,this.abi=q,this.address=Y,this.events={},this.transactionHash=null,this.address=Y,this.abi=q,(x=this).abi.filter((function(ne){return ne.type==="function"})).map((function(ne){return new lu(ne)})).forEach((function(ne){ne.attachToContract(x)})),this.allEvents=(function(ne){const Oe=ne.abi.filter((function(it){return it.type==="event"})),Ve=new Ut(ne.requestManager,Oe,ne.address);return Oe.map((function(it){return new Ra(ne.requestManager,it,ne.address)})).forEach((function(it){it.attachToContract(ne)})),Ve.getAllEventsFunction()})(this)}}t.AbstractFilter=Ci,t.BigNumber=ae,t.Contract=cu,t.ContractFactory=class{constructor(_,A){this.requestManager=_,this.abi=A}async deploy(..._){let A;const q=_[_.length-1];if($r(q)&&!xr(q)&&(A=_.pop()),!A)throw new Error("Missing options object");if(!A.data||typeof A.data!="string")throw new Error("Invalid options.data");if(Ce(A.value)>0&&!(this.abi.filter((function(st){return st.type==="constructor"&&st.inputs.length===_.length}))[0]||{}).payable)throw new Error("Cannot send value to non-payable constructor");const Y=(x=this.abi,ne=_,x.filter((function(st){return st.type==="constructor"&&st.inputs&&st.inputs.length===ne.length})).map((function(st){return st.inputs||[]})).map((function(st){return t.coder.encodeParams(st,ne)}))[0]||"");var x,ne;A.data+=Y,A.gas||(A.gas=await this.requestManager.eth_estimateGas(A));const Oe=await this.requestManager.eth_sendTransaction(A);if(!Oe)throw new Error("Error while sending contract creation transaction. A TxHash was not retrieved");const Ve=await(async function(st,fr){const Ht=u();let ze=0;const _r=()=>{ze++,ze>50?Ht.reject(new Error("Contract transaction couldn't be found after 50 blocks")):st.eth_getTransactionReceipt(fr).then((Tr=>{Tr&&Tr.blockHash?Ht.resolve(Tr):setTimeout(_r,1e3)}),(Tr=>Ht.reject(Tr)))};_r();const zt=await Ht,Dt=await st.eth_getCode(zt.contractAddress,"latest");if(Dt&&Dt.length>3)return zt.contractAddress;throw Object.assign(new Error("The contract code couldn't be stored, please check your gas amount."),{response:Dt,receipt:zt})})(this.requestManager,Oe),it=await this.at(Ve);return it.transactionHash=Oe,it}async at(_){if(!Qr(_))throw new TypeError(`Invalid address ${JSON.stringify(_)}`);return new cu(this.requestManager,this.abi,_)}},t.EthBlockFilter=class extends Ia{constructor(_){super(_,{})}async getNewFilter(){return this.requestManager.eth_newBlockFilter()}},t.EthFilter=Ia,t.EthPendingTransactionFilter=class extends Ia{constructor(_){super(_,{})}async getNewFilter(){return this.requestManager.eth_newPendingTransactionFilter()}},t.HTTPProvider=class{constructor(_,A={}){this.host=_,this.options=A,this.debug=!1,this.host=_||"http://localhost:8545"}send(){throw new Error("Sync requests are deprecated")}sendAsync(_,A){try{let q=null;q=_ instanceof Array?_.map((ne=>n(ne))):n(_);const Y=this.options.fetch||globalThis.fetch;if(Y===void 0)throw new Error("There is no global fetch object nor it was provided. Please install and import isomorphic-fetch");const x={body:JSON.stringify(q),method:"POST",headers:Object.assign(Object.assign({},this.options.headers),{"Content-Type":"application/json"})};this.debug&&console.log("SEND >> "+x.body),Y(this.host,x).then((async ne=>{if(ne.ok){const Oe=await ne.json();this.debug&&console.log("RECV << "+JSON.stringify(Oe)),Oe.error?A(Object.assign(new Error(Oe.error.json||Oe.error),Oe.error)):A(null,Oe)}else this.debug&&console.log("ERR << "+JSON.stringify(ne)),A(new Error("External error. response code: "+ne.status))}),(ne=>{this.debug&&console.log("ERR << "+JSON.stringify(ne)),A(ne)}))}catch(q){this.debug&&console.log("ERR << "+JSON.stringify(q)),A(q)}}},t.Method=ft,t.Property=vr,t.RequestManager=Ze,t.SHHFilter=class extends Ci{constructor(_,A){super(_),this.requestManager=_,this.options=A,this.options=this.options||{topics:[]},this.options.topics=this.options.topics||[],this.options.topics=this.options.topics.map((function(q){return ls(q)})),this.options={topics:this.options.topics,to:this.options.to}}async getMessages(){const _=await this.filterId;return this.requestManager.shh_getMessages(_)}async getNewFilter(){return this.requestManager.shh_newFilter(this.options)}async getChanges(){const _=await this.filterId;return this.requestManager.shh_getFilterChanges(_)}async uninstall(){const _=await this.filterId;return this.requestManager.shh_uninstallFilter(_)}},t.SolidityEvent=Ra,t.SolidityFunction=lu,t.WebSocketProvider=class{constructor(_,A={}){this.url=_,this.options=A,this.isDisposed=!1,this.responseCallbacks=new Map,this.notificationCallbacks=new Set,this.debug=!1,this.lastChunk="",this.connect()}dispose(){this.isDisposed=!0;const _=this.connection;this.timeout(new Error("Provider disposed.")),_.then((A=>A.close())).catch((A=>{this.debug&&console.error(A)}))}send(){throw new Error("Sync requests are deprecated")}sendAsync(_,A){const q=[];let Y;if(_ instanceof Array)Y=Promise.all(_.map((x=>{const ne=u();try{const Oe=n(x);q.push(Oe),this.responseCallbacks.set(Oe.id,ne)}catch(Oe){ne.reject(Oe)}return ne})));else{const x=u();try{const ne=n(_);q.push(ne),this.responseCallbacks.set(ne.id,x)}catch(ne){x.reject(ne)}Y=x}Y.then((x=>A(null,x)),(x=>A(x))),this.connection.then((x=>{q.forEach((ne=>{const Oe=JSON.stringify(ne);this.debug&&console.log("SEND >> "+Oe),x.send(Oe)}))}),(x=>{A(x)}))}parseResponse(_){const A=[];return _.replace(/\}[\n\r]?\{/g,"}|--|{").replace(/\}\][\n\r]?\[\{/g,"}]|--|[{").replace(/\}[\n\r]?\[\{/g,"}|--|[{").replace(/\}\][\n\r]?\{/g,"}]|--|{").split("|--|").forEach((q=>{let Y=q;this.lastChunk&&(Y=this.lastChunk+Y);let x=null;try{x=JSON.parse(Y)}catch{return this.lastChunk=Y,clearTimeout(this.lastChunkTimeout),void(this.lastChunkTimeout=setTimeout((()=>{this.timeout()}),15e3))}clearTimeout(this.lastChunkTimeout),this.lastChunk="",x&&A.push(x)})),A}processMessage(_){if("id"in _){const A=_.id,q=this.responseCallbacks.get(A);if(!q)return void console.error("Error: Received a response for an unknown request",_);this.responseCallbacks.delete(A),_.error!==void 0&&_.error!==null?q.reject(Object.assign(new Error(_.error.message||_.error),_.error)):"result"in _&&q.resolve(_)}else this.notificationCallbacks.forEach((A=>A(null,_)))}timeout(_){this.connection&&this.connection.isPending||(this.connection=u());const A=_||new Error("Connection timeout");this.responseCallbacks.forEach((q=>q.reject(A))),this.responseCallbacks.clear(),this.isDisposed||setTimeout((()=>this.connect()),1e3)}connect(){this.connection&&!this.connection.isPending&&this.connection.then((q=>q.close())).catch((q=>{this.debug&&console.error(q)})),this.connection&&this.connection.isPending||(this.connection=u()),this.lastChunk="";const _=this.options.WebSocketConstructor||(typeof WebSocket<"u"?WebSocket:void 0);if(!_)throw new Error("Please provide a WebSocketConstructor");const A=new _(this.url,this.options.protocol);A.onopen=()=>{this.connection.resolve(A)},A.onerror=q=>{const Y=new Error("Error in web socket");Y.data=q,this.timeout(Y)},A.onclose=q=>{this.timeout(new Error(`Connection closed (${q&&q.reason||"Unknown reason"})`))},A.onmessage=q=>{const Y=typeof q.data=="string"?q.data:"";this.debug&&console.log("RECV << "+q.data),this.parseResponse(Y).forEach((x=>{x instanceof Array?x.forEach((ne=>this.processMessage(ne))):this.processMessage(x)}))}}},t.bytesToHex=ue,t.bytesToUtf8String=ye,t.concatBytes=W,t.default=Ze,t.extractDisplayName=Re,t.extractTypeName=Se,t.fromAscii=function(_,A=0){let q="";for(let Y=0;Y<_.length;Y++){const x=_.charCodeAt(Y).toString(16);q+=x.length<2?"0"+x:x}return"0x"+q.padEnd(A,"0")},t.fromDecimal=Ye,t.fromTwosComplement=sr,t.fromWei=function(_,A){const q=Lt(_).dividedBy(Vt(A));return Pr(_)?q:q.toString(10)},t.getAddress=zr,t.getValueOfUnit=Vt,t.hexToBytes=we,t.inputAddressFormatter=Pe,t.inputBlockNumberFormatter=Ot,t.inputCallFormatter=Wr,t.inputDefaultBlockNumberFormatter=Ir,t.inputFilterOptions=Ge,t.inputPostFormatter=function(_){return _?(_.ttl=Ye(_.ttl),_.workToProve=Ye(_.workToProve),_.priority=Ye(_.priority),xr(_.topics)||(_.topics=_.topics?[_.topics]:[]),_.topics=_.topics.map((function(A){return A.indexOf("0x")===0?A:"0x"+ue(be(A))})),_):null},t.inputTransactionFormatter=te,t.inputTransactionId=en,t.isAddress=Qr,t.isArray=xr,t.isBigNumber=Pr,t.isBloom=function(_){return!!/^(0x)?[0-9a-f]{512}$/i.test(_)&&!!/^(0x)?[0-9a-f]{512}$/i.test(_)},t.isBoolean=_n,t.isChecksumAddress=Zr,t.isFunction=function(_){return typeof _=="function"},t.isHex=function(_){return typeof _=="string"&&/^0x[0-9a-fA-F]+$/.test(_)},t.isJson=function(_){try{return!!JSON.parse(_)}catch{return!1}},t.isObject=$r,t.isPredefinedBlockNumber=Ni,t.isStrictAddress=gn,t.isString=vn,t.isTopic=function(_){return!!/^(0x)?[0-9a-f]{64}$/i.test(_)&&!!/^(0x)?[0-9a-f]{64}$/i.test(_)},t.isValidResponse=Mi,t.outputBigNumberFormatter=yi,t.outputBlockFormatter=ce,t.outputLogFormatter=Te,t.outputPostFormatter=function(_){return _?(_.expiry=Ce(_.expiry),_.sent=Ce(_.sent),_.ttl=Ce(_.ttl),_.workProved=Ce(_.workProved),_.topics||(_.topics=[]),_.topics=_.topics.map((function(A){return k(A)})),_):null},t.outputSyncingFormatter=Ke,t.outputTransactionFormatter=F,t.outputTransactionReceiptFormatter=Z,t.padLeft=B,t.padRight=function(_,A,q){return _+new Array(A-_.length+1).join(q||"0")},t.sha3=X,t.signedIsNegative=Ft,t.stringToUtf8Bytes=be,t.toAddress=dn,t.toArray=ur,t.toAscii=k,t.toBatchPayload=function(_){return _.map((function(A){return Ri(A.method,A.params)}))},t.toBigNumber=Lt,t.toBoolean=je,t.toChecksumAddress=cn,t.toData=de,t.toDecimal=Ce,t.toHex=Je,t.toJsonRpcRequest=Ri,t.toNullDecimal=Ue,t.toString=se,t.toStringData=Ae,t.toTwosComplement=Bt,t.toWei=function(_,A){const q=Lt(_).times(Vt(A));return Pr(_)?q:q.toString(10)},t.transformToFullName=L,Object.defineProperty(t,"__esModule",{value:!0})}))})(wl,wl.exports)),wl.exports}var Xu={},VC;function rz(){if(VC)return Xu;VC=1,Object.defineProperty(Xu,"__esModule",{value:!0}),Xu.SignatureValidator=void 0;const e=wf();async function a(t,n){const i=[{constant:!0,inputs:[{name:"hash",type:"bytes32"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"magicValue",type:"bytes4"}],payable:!1,stateMutability:"view",type:"function"}];return await new e.ContractFactory(t,i).at(n)}return Xu.SignatureValidator=a,Xu}var R_={},ni={},Ho={},zo={},M_={},ii={},HC;function nt(){if(HC)return ii;HC=1;var e=ii&&ii.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(ii,"__esModule",{value:!0}),ii.validateType=ii.generateLazyValidator=ii.Ajv=void 0;const a=e(xo());ii.Ajv=a.default;const t=e(ff()),n=e(pf());function i(u,c){let f=null;const p=(y,m)=>{if(!f){const g=new a.default({$data:!0,allErrors:!0});(0,t.default)(g),(0,n.default)(g,{singleError:!0}),c?.forEach(S=>g.addKeyword(S)),f=g.compile(u),Object.defineProperty(p,"errors",{get(){return f?.errors}})}return f(y,m)};return p}ii.generateLazyValidator=i;function o(u,c){return u.validate(c)}return ii.validateType=o,ii}var zC;function nz(){return zC||(zC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SceneUpdate=e.SCENE_UPDATE=void 0;const a=nt();e.SCENE_UPDATE="SCENE_UPDATE",(function(t){t.schema={type:"object",properties:{type:{type:"string",enum:[e.SCENE_UPDATE]},payload:{type:"object",properties:{sceneId:{type:"string"},sceneType:{type:"string"}},additionalProperties:!1,required:["sceneId","sceneType"]}},required:["payload","type"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.SceneUpdate||(e.SceneUpdate={}))})(M_)),M_}var N_={},WC;function iz(){return WC||(WC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Update=e.UPDATE=void 0;const a=nt();e.UPDATE="update",(function(t){t.schema={type:"object",properties:{type:{type:"string",enum:[e.UPDATE]}},required:["type"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Update||(e.Update={}))})(N_)),N_}var GC;function az(){return GC||(GC=1,(function(e){var a=zo&&zo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=zo&&zo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(nz(),e),t(iz(),e)})(zo)),zo}var Wo={},C_={},KC;function oz(){return KC||(KC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProjectType=void 0;const a=nt();(function(t){t.SCENE="scene",t.SMART_ITEM="smart-item",t.PORTABLE_EXPERIENCE="portable-experience",t.LIBRARY="library"})(e.ProjectType||(e.ProjectType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.ProjectType||(e.ProjectType={}))})(C_)),C_}var j_={},L_={},YC;function Tf(){return YC||(YC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Rarity=void 0;const a=nt();(function(t){t.UNIQUE="unique",t.MYTHIC="mythic",t.LEGENDARY="legendary",t.EPIC="epic",t.RARE="rare",t.UNCOMMON="uncommon",t.COMMON="common"})(e.Rarity||(e.Rarity={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema);const n={[t.UNIQUE]:1,[t.MYTHIC]:10,[t.LEGENDARY]:100,[t.EPIC]:1e3,[t.RARE]:5e3,[t.UNCOMMON]:1e4,[t.COMMON]:1e5},i={[t.UNIQUE]:"#FFE617",[t.MYTHIC]:"#FB7DE3",[t.LEGENDARY]:"#A657ED",[t.EPIC]:"#6397F2",[t.RARE]:"#3AD682",[t.UNCOMMON]:"#FF8563",[t.COMMON]:"#D4E0E0"},o={[t.UNIQUE]:"#FFB626",[t.MYTHIC]:"#FF63E1",[t.LEGENDARY]:"#842DDA",[t.EPIC]:"#3D85E6",[t.RARE]:"#36CF75",[t.UNCOMMON]:"#ED6D4F",[t.COMMON]:"#ABC1C1"};function u(p){return n[p]}t.getMaxSupply=u;function c(p){return o[p]}t.getColor=c;function f(p){return[i[p],o[p]]}t.getGradient=f})(e.Rarity||(e.Rarity={}))})(L_)),L_}var D_={},XC;function as(){return XC||(XC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WearableCategory=void 0;const a=nt();(function(t){t.EYEBROWS="eyebrows",t.EYES="eyes",t.FACIAL_HAIR="facial_hair",t.HAIR="hair",t.BODY_SHAPE="body_shape",t.MOUTH="mouth",t.UPPER_BODY="upper_body",t.LOWER_BODY="lower_body",t.FEET="feet",t.EARRING="earring",t.EYEWEAR="eyewear",t.HAT="hat",t.HELMET="helmet",t.MASK="mask",t.TIARA="tiara",t.TOP_HEAD="top_head",t.SKIN="skin",t.HANDS_WEAR="hands_wear"})(e.WearableCategory||(e.WearableCategory={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.WearableCategory||(e.WearableCategory={}))})(D_)),D_}var q_={},k_={},JC;function u0(){return JC||(JC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BodyShape=void 0;const a=nt();(function(t){t.MALE="urn:decentraland:off-chain:base-avatars:BaseMale",t.FEMALE="urn:decentraland:off-chain:base-avatars:BaseFemale"})(e.BodyShape||(e.BodyShape={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.BodyShape||(e.BodyShape={}))})(k_)),k_}var U_={},B_={},QC;function uk(){return QC||(QC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BodyPartCategory=void 0;const a=nt();(function(t){t.HEAD="head",t.HANDS="hands"})(e.BodyPartCategory||(e.BodyPartCategory={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.BodyPartCategory||(e.BodyPartCategory={}))})(B_)),B_}var ZC;function l0(){return ZC||(ZC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.HideableWearableCategory=void 0;const a=as(),t=nt(),n=uk();(function(i){i.schema={oneOf:[Object.assign({},a.WearableCategory.schema),Object.assign({},n.BodyPartCategory.schema)]},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.HideableWearableCategory||(e.HideableWearableCategory={}))})(U_)),U_}var $C;function c0(){return $C||($C=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WearableRepresentation=void 0;const a=nt(),t=u0(),n=l0();(function(i){i.schema={type:"object",properties:{bodyShapes:{type:"array",items:t.BodyShape.schema,minItems:1,uniqueItems:!0},mainFile:{type:"string",minLength:1},contents:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0,contains:{const:{$data:"2/mainFile"}}},overrideHides:{type:"array",items:n.HideableWearableCategory.schema},overrideReplaces:{type:"array",items:n.HideableWearableCategory.schema}},required:["bodyShapes","mainFile","contents","overrideHides","overrideReplaces"]},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.WearableRepresentation||(e.WearableRepresentation={}))})(q_)),q_}var Go={},Ko={},F_={},V_={},xC;function ou(){return xC||(xC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.IPFSv1=e.IPFSv2=e.EthAddress=e.Color3=void 0;const a=nt();(function(t){t.schema={type:"object",required:["r","g","b"],properties:{r:{type:"number",minimum:0,maximum:1},g:{type:"number",minimum:0,maximum:1},b:{type:"number",minimum:0,maximum:1}}};const n=(0,a.generateLazyValidator)(t.schema);t.validate=i=>n(i)})(e.Color3||(e.Color3={})),(function(t){t.schema={type:"string",pattern:"^0x[a-fA-F0-9]{40}$"};const n=new RegExp(t.schema.pattern);t.validate=i=>n.test(i)})(e.EthAddress||(e.EthAddress={})),(function(t){t.schema={type:"string",pattern:"^(ba)[a-zA-Z0-9]{57}$"};const n=new RegExp(t.schema.pattern);t.validate=i=>n.test(i)})(e.IPFSv2||(e.IPFSv2={})),(function(t){t.schema={type:"string",pattern:"^(Qm)[a-zA-Z0-9]{44}$"};const n=new RegExp(t.schema.pattern);t.validate=i=>n.test(i)})(e.IPFSv1||(e.IPFSv1={}))})(V_)),V_}var ej;function lk(){return ej||(ej=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Avatar=e.Link=e.LinkUrl=e.AvatarInfo=e.Snapshots=void 0;const a=as(),t=ou(),n=nt();var i;(function(f){f.schema={type:"object",required:["face256","body"],properties:{face256:t.IPFSv2.schema,body:t.IPFSv2.schema}},f.validate=(0,n.generateLazyValidator)(f.schema)})(i=e.Snapshots||(e.Snapshots={}));var o;(function(f){f.schema={type:"object",required:["bodyShape","eyes","hair","skin"],properties:{bodyShape:{type:"string"},eyes:{type:"object",required:["color"],properties:{color:t.Color3.schema}},hair:{type:"object",required:["color"],properties:{color:t.Color3.schema}},skin:{type:"object",required:["color"],properties:{color:t.Color3.schema}},wearables:{type:"array",items:{type:"string"}},forceRender:{type:"array",nullable:!0,items:a.WearableCategory.schema},emotes:{type:"array",items:{type:"object",properties:{slot:{type:"number"},urn:{type:"string"}},required:["slot","urn"]},nullable:!0},snapshots:i.schema},additionalProperties:!0},f.validate=(0,n.generateLazyValidator)(f.schema)})(o=e.AvatarInfo||(e.AvatarInfo={}));var u;(function(f){f.schema={type:"string",pattern:"^[(http(s)?):\\/\\/(www\\.)?a-zA-Z0-9@:%._\\+~#=]{2,256}\\.[a-z]{2,6}\\b([-a-zA-Z0-9@:%_\\+.~#?&//=]*)$"};const p=new RegExp(f.schema.pattern,"i");f.validate=y=>p.test(y)})(u=e.LinkUrl||(e.LinkUrl={}));var c;(function(f){f.schema={type:"object",required:["title","url"],properties:{title:{type:"string"},url:u.schema}}})(c=e.Link||(e.Link={})),(function(f){f.schema={type:"object",required:["name","description","ethAddress","version","tutorialStep","avatar","hasClaimedName"],properties:{userId:{type:"string"},name:{type:"string"},description:{type:"string"},links:{type:"array",maxItems:5,items:c.schema,nullable:!0},country:{nullable:!0,type:"string"},employmentStatus:{nullable:!0,type:"string"},gender:{nullable:!0,type:"string"},pronouns:{nullable:!0,type:"string"},relationshipStatus:{nullable:!0,type:"string"},sexualOrientation:{nullable:!0,type:"string"},language:{nullable:!0,type:"string"},profession:{nullable:!0,type:"string"},birthdate:{nullable:!0,type:"number"},realName:{nullable:!0,type:"string"},hobbies:{nullable:!0,type:"string"},ethAddress:t.EthAddress.schema,version:{type:"number"},tutorialStep:{type:"number"},email:{type:"string",nullable:!0},blocked:{type:"array",items:{type:"string"},nullable:!0},muted:{type:"array",items:{type:"string"},nullable:!0},interests:{type:"array",items:{type:"string"},nullable:!0},hasClaimedName:{type:"boolean"},hasConnectedWeb3:{type:"boolean",nullable:!0},avatar:o.schema},additionalProperties:!0},f.validate=(0,n.generateLazyValidator)(f.schema)})(e.Avatar||(e.Avatar={}))})(F_)),F_}var H_={},tj;function sz(){return tj||(tj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Profile=void 0;const a=nt(),t=lk();(function(n){n.schema={type:"object",required:["avatars"],properties:{avatars:{type:"array",items:t.Avatar.schema}},additionalProperties:!0},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.Profile||(e.Profile={}))})(H_)),H_}var rj;function uz(){return rj||(rj=1,(function(e){var a=Ko&&Ko.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Ko&&Ko.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(lk(),e),t(sz(),e)})(Ko)),Ko}var z_={},W_={},nj;function ck(){return nj||(nj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.FeatureToggles=e.portableExperiencesToggles=e.toggles=void 0;const a=nt();e.toggles=["enabled","disabled"],e.portableExperiencesToggles=[...e.toggles,"hideUi"],(function(t){t.schema={type:"object",properties:{voiceChat:{type:"string",enum:e.toggles,nullable:!0},portableExperiences:{type:"string",enum:e.portableExperiencesToggles,nullable:!0,errorMessage:`valid options are ${e.portableExperiencesToggles.join(", ")}`}},errorMessage:`valid options are ${e.toggles.join(", ")}`,required:[]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.FeatureToggles||(e.FeatureToggles={}))})(W_)),W_}var G_={},ij;function dk(){return ij||(ij=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WorldConfiguration=void 0;const a=nt();(function(t){t.schema={type:"object",properties:{name:{type:"string",nullable:!0},skybox:{type:"number",nullable:!0},minimapVisible:{type:"boolean",nullable:!0},miniMapConfig:{type:"object",nullable:!0,properties:{visible:{type:"boolean",nullable:!0},dataImage:{type:"string",nullable:!0},estateImage:{type:"string",nullable:!0}}},skyboxConfig:{type:"object",nullable:!0,properties:{fixedTime:{type:"number",nullable:!0},textures:{type:"array",nullable:!0,items:{type:"string"},oneOf:[{minItems:0,maxItems:0},{minItems:1,maxItems:1},{minItems:6,maxItems:6}],errorMessage:"customSkybox must be an array of 0, 1 or 6 strings"}}},fixedAdapter:{type:"string",nullable:!0},placesConfig:{type:"object",nullable:!0,properties:{optOut:{type:"boolean",nullable:!0}}}},required:[]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.WorldConfiguration||(e.WorldConfiguration={}))})(G_)),G_}var K_={},aj;function fk(){return aj||(aj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SceneParcels=void 0;const a=nt();(function(t){t.schema={description:'Describes a scene, a set of parcels whose content is treated as the same entity. A list of parcels is listed, for which one of them is considered the "base" for positioning purposes.',type:"object",properties:{base:{type:"string",pattern:"^-?[0-9]+,-?[0-9]+$"},parcels:{type:"array",items:{type:"string",pattern:"^-?[0-9]+,-?[0-9]+$"},minItems:1}},additionalProperties:!0,required:["base","parcels"]},t.schemaValidator=(0,a.generateLazyValidator)(t.schema),t.validate=n=>t.schemaValidator(n)&&n.parcels.includes(n.base)})(e.SceneParcels||(e.SceneParcels={}))})(K_)),K_}var Y_={},Ju={},oj;function d0(){return oj||(oj=1,Object.defineProperty(Ju,"__esModule",{value:!0}),Ju.displayableProperties=void 0,Ju.displayableProperties={menuBarIcon:{description:"Name of the file used as icon for the MenuBar",type:"string",nullable:!0}}),Ju}var X_={},sj;function pk(){return sj||(sj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Source=void 0;const a=nt();(function(t){t.schema={type:"object",properties:{version:{type:"number",nullable:!0},origin:{type:"string"},projectId:{type:"string"},point:{type:"object",properties:{x:{type:"integer"},y:{type:"integer"}},nullable:!0,required:["x","y"]},rotation:{type:"string",enum:["north","east","south","west"],nullable:!0},layout:{type:"object",properties:{rows:{type:"integer"},cols:{type:"integer"}},nullable:!0,required:["rows","cols"]},isEmpty:{type:"boolean",nullable:!0}},additionalProperties:!0,required:["origin","projectId"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Source||(e.Source={}))})(X_)),X_}var J_={},uj;function yk(){return uj||(uj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SpawnPoint=void 0;const a=nt();(function(t){t.schema={type:"object",properties:{name:{type:"string",nullable:!0},position:{type:"object",oneOf:[{$ref:"#single-position"},{$ref:"#multi-position"}],required:["x","y","z"]},default:{type:"boolean",nullable:!0},cameraTarget:{type:"object",properties:{x:{type:"number"},y:{type:"number"},z:{type:"number"}},required:["x","y","z"],nullable:!0}},required:["position"],definitions:{"single-position":{$id:"#single-position",type:"object",properties:{x:{type:"number"},y:{type:"number"},z:{type:"number"}},required:["x","y","z"]},"multi-position":{$id:"#multi-position",type:"object",properties:{x:{type:"array",items:{type:"number"},minItems:1},y:{type:"array",items:{type:"number"},minItems:1},z:{type:"array",items:{type:"number"},minItems:1}},required:["x","y","z"]}}},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.SpawnPoint||(e.SpawnPoint={}))})(J_)),J_}var lj;function lz(){return lj||(lj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Scene=e.RequiredPermission=void 0;const a=nt(),t=d0(),n=ck(),i=fk(),o=pk(),u=yk(),c=dk();var f;(function(p){p.ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE="ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE",p.ALLOW_TO_TRIGGER_AVATAR_EMOTE="ALLOW_TO_TRIGGER_AVATAR_EMOTE",p.ALLOW_MEDIA_HOSTNAMES="ALLOW_MEDIA_HOSTNAMES",p.USE_WEB3_API="USE_WEB3_API",p.USE_FETCH="USE_FETCH",p.USE_WEBSOCKET="USE_WEBSOCKET",p.OPEN_EXTERNAL_LINK="OPEN_EXTERNAL_LINK"})(f=e.RequiredPermission||(e.RequiredPermission={})),(function(p){p.schema={type:"object",properties:Object.assign(Object.assign({isPortableExperience:{description:"Define the current scene as a Portable Experience",type:"boolean",nullable:!0},main:{description:"File that contains the entry point of the scene's code",type:"string",minLength:1},scene:i.SceneParcels.schema},t.displayableProperties),{display:{description:"Information related to how should this land be displayed apart from the normal rendering of the scene",type:"object",properties:{title:{description:"A name so other users can identify what the contents of this land should be",type:"string",nullable:!0},favicon:{description:"DEPRECATED. Allow the land owner to set up a favicon to this land",type:"string",nullable:!0},description:{description:"A description that will be shown on client's nav map when the scene is selected",type:"string",nullable:!0},navmapThumbnail:{type:"string",nullable:!0}},nullable:!0,required:[]},owner:{type:"string",nullable:!0},contact:{description:"Describe different ways of contacting the land owner",type:"object",properties:{name:{type:"string",nullable:!0},email:{type:"string",nullable:!0},im:{type:"string",nullable:!0},url:{type:"string",nullable:!0}},nullable:!0,required:[]},tags:{type:"array",items:{type:"string",minLength:1},nullable:!0},source:Object.assign(Object.assign({},o.Source.schema),{nullable:!0}),spawnPoints:{type:"array",items:u.SpawnPoint.schema,nullable:!0},requiredPermissions:{type:"array",items:{type:"string",enum:Object.values(f)},uniqueItems:!0,nullable:!0},featureToggles:Object.assign(Object.assign({},n.FeatureToggles.schema),{nullable:!0}),worldConfiguration:Object.assign(Object.assign({},c.WorldConfiguration.schema),{nullable:!0}),allowedMediaHostnames:{type:"array",items:{type:"string"},nullable:!0}}),additionalProperties:!0,required:["main","scene"],dependencies:{requiredPermissions:{if:{properties:{requiredPermissions:{type:"array",contains:{const:f.ALLOW_MEDIA_HOSTNAMES}}}},then:{properties:{allowedMediaHostnames:{type:"array",items:{type:"string"},nullable:!1,minItems:1}},required:["allowedMediaHostnames"]},else:{properties:{allowedMediaHostnames:{type:["null","array"],nullable:!0,maxItems:0}}}}}},p.validate=(0,a.generateLazyValidator)(p.schema)})(e.Scene||(e.Scene={}))})(Y_)),Y_}var cj;function cz(){return cj||(cj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SpawnPoint=e.Source=e.RequiredPermission=e.Scene=e.SceneParcels=e.WorldConfiguration=e.FeatureToggles=void 0;var a=ck();Object.defineProperty(e,"FeatureToggles",{enumerable:!0,get:function(){return a.FeatureToggles}});var t=dk();Object.defineProperty(e,"WorldConfiguration",{enumerable:!0,get:function(){return t.WorldConfiguration}});var n=fk();Object.defineProperty(e,"SceneParcels",{enumerable:!0,get:function(){return n.SceneParcels}});var i=lz();Object.defineProperty(e,"Scene",{enumerable:!0,get:function(){return i.Scene}}),Object.defineProperty(e,"RequiredPermission",{enumerable:!0,get:function(){return i.RequiredPermission}});var o=pk();Object.defineProperty(e,"Source",{enumerable:!0,get:function(){return o.Source}});var u=yk();Object.defineProperty(e,"SpawnPoint",{enumerable:!0,get:function(){return u.SpawnPoint}})})(z_)),z_}var Yo={},Q_={},Z_={},dj;function mk(){return dj||(dj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Locale=void 0;const a=nt();(function(t){t.EN="en",t.ES="es"})(e.Locale||(e.Locale={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Locale||(e.Locale={}))})(Z_)),Z_}var fj;function hk(){return fj||(fj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.I18N=void 0;const a=nt(),t=mk();(function(n){n.schema={type:"object",properties:{code:t.Locale.schema,text:{type:"string"}},additionalProperties:!0,required:["code","text"]},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.I18N||(e.I18N={}))})(Q_)),Q_}var $_={},pj;function gk(){return pj||(pj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Metrics=void 0;const a=nt();(function(t){t.schema={type:"object",properties:{triangles:{type:"number"},materials:{type:"number"},textures:{type:"number"},meshes:{type:"number"},bodies:{type:"number"},entities:{type:"number"}},required:["triangles","materials","textures","meshes","bodies","entities"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Metrics||(e.Metrics={}))})($_)),$_}var x_={},yj;function f0(){return yj||(yj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isStandard=e.standardProperties=void 0;const a=Tf(),t=nt();e.standardProperties={collectionAddress:{type:"string",nullable:!1},rarity:a.Rarity.schema};const n={type:"object",properties:Object.assign({},e.standardProperties),required:["collectionAddress","rarity"]},i=(0,t.generateLazyValidator)(n);function o(u){return i(u)}e.isStandard=o})(x_)),x_}var eE={},tE={},mj;function vk(){return mj||(mj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MerkleProof=void 0;const a=nt();(function(t){t.schema={type:"object",properties:{proof:{type:"array",items:{type:"string"}},index:{type:"number"},hashingKeys:{type:"array",items:{type:"string"}},entityHash:{type:"string"}},required:["entityHash","hashingKeys","index","proof"],additionalProperties:!0},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.MerkleProof||(e.MerkleProof={}))})(tE)),tE}var hj;function p0(){return hj||(hj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isThirdParty=e.thirdPartyProps=void 0;const a=nt(),t=vk();e.thirdPartyProps={merkleProof:t.MerkleProof.schema,content:{type:"object",nullable:!1,additionalProperties:{type:"string"},required:[]}};const n={type:"object",properties:Object.assign({},e.thirdPartyProps),required:["merkleProof","content"],_containsHashingKeys:!0},i={keyword:"_containsHashingKeys",validate:(c,f)=>{var p;const y=f;return!((p=y?.merkleProof)===null||p===void 0)&&p.hashingKeys?y.merkleProof.hashingKeys.every(m=>y.hasOwnProperty(m)):!1},errors:!1},o=(0,a.generateLazyValidator)(n,[i]);function u(c){return o(c)}e.isThirdParty=u})(eE)),eE}var rE={},nE={},Yi={},gj;function _k(){if(gj)return Yi;gj=1,Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.isBaseAvatar=Yi.requiredBaseItemProps=Yi.baseItemProperties=void 0;const e=hk(),a=gk(),t=d0();Yi.baseItemProperties=Object.assign(Object.assign({},t.displayableProperties),{id:{type:"string"},name:{type:"string"},description:{type:"string"},i18n:{type:"array",items:e.I18N.schema,minItems:1,uniqueItemProperties:["code"],errorMessage:'${0#} array should not have duplicates for "code"'},thumbnail:{type:"string"},image:{type:"string"},metrics:Object.assign(Object.assign({},a.Metrics.schema),{nullable:!0})}),Yi.requiredBaseItemProps=["id","name","description","i18n","thumbnail","image"];function n(i){if(!i||!i.id)return!1;const o=i.id.split(":"),u=o[1]==="decentraland",c=o[3]==="base-avatars";return o.length===5&&u&&c}return Yi.isBaseAvatar=n,Yi}var vj;function dz(){return vj||(vj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Wearable=void 0;const a=nt(),t=as(),n=c0(),i=_k(),o=f0(),u=p0(),c=l0();(function(f){f.schema={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({},i.baseItemProperties),o.standardProperties),u.thirdPartyProps),{data:{type:"object",properties:{replaces:{type:"array",items:c.HideableWearableCategory.schema},hides:{type:"array",items:c.HideableWearableCategory.schema},tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:n.WearableRepresentation.schema,minItems:1},category:t.WearableCategory.schema,removesDefaultHiding:{type:"array",nullable:!0,items:c.HideableWearableCategory.schema}},required:["replaces","hides","tags","representations","category"]}}),additionalProperties:!0,required:[],oneOf:[{required:["id","i18n"],prohibited:["merkleProof","content","collectionAddress","rarity"],_isBaseAvatar:!0},{required:[...i.requiredBaseItemProps,"data","collectionAddress","rarity"],prohibited:["merkleProof","content"]},{required:[...i.requiredBaseItemProps,"data","merkleProof","content"],prohibited:["collectionAddress","rarity"],_isThirdParty:!0}],errorMessage:{oneOf:"either standard XOR thirdparty properties conditions must be met"}};const p={keyword:"_isThirdParty",validate:(m,g)=>!m||(0,u.isThirdParty)(g),errors:!1},y={keyword:"_isBaseAvatar",validate:(m,g)=>!m||(0,i.isBaseAvatar)(g),errors:!1};f.validate=(0,a.generateLazyValidator)(f.schema,[p,y])})(e.Wearable||(e.Wearable={}))})(nE)),nE}var _j;function fz(){return _j||(_j=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.HideableWearableCategory=e.BodyPartCategory=e.WearableCategory=e.Wearable=e.WearableRepresentation=void 0;var a=c0();Object.defineProperty(e,"WearableRepresentation",{enumerable:!0,get:function(){return a.WearableRepresentation}});var t=dz();Object.defineProperty(e,"Wearable",{enumerable:!0,get:function(){return t.Wearable}});var n=as();Object.defineProperty(e,"WearableCategory",{enumerable:!0,get:function(){return n.WearableCategory}});var i=uk();Object.defineProperty(e,"BodyPartCategory",{enumerable:!0,get:function(){return i.BodyPartCategory}});var o=l0();Object.defineProperty(e,"HideableWearableCategory",{enumerable:!0,get:function(){return o.HideableWearableCategory}})})(rE)),rE}var iE={},aE={},oE={},sE={},Ej;function Ek(){return Ej||(Ej=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteCategory=void 0;const a=nt();(function(t){t.DANCE="dance",t.STUNT="stunt",t.GREETINGS="greetings",t.FUN="fun",t.POSES="poses",t.REACTIONS="reactions",t.HORROR="horror",t.MISCELLANEOUS="miscellaneous"})(e.EmoteCategory||(e.EmoteCategory={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.EmoteCategory||(e.EmoteCategory={}))})(sE)),sE}var uE={},bj;function bk(){return bj||(bj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteRepresentationADR74=void 0;const a=nt(),t=u0();(function(n){n.schema={type:"object",properties:{bodyShapes:{type:"array",items:t.BodyShape.schema,minItems:1,uniqueItems:!0},mainFile:{type:"string",minLength:1},contents:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0,contains:{const:{$data:"2/mainFile"}},errorMessage:{contains:"contents should contain mainFile: ${1/mainFile}"}}},required:["bodyShapes","mainFile","contents"]},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.EmoteRepresentationADR74||(e.EmoteRepresentationADR74={}))})(uE)),uE}var wj;function wk(){return wj||(wj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmoteDataADR74=void 0;const a=Ek(),t=nt(),n=bk();(function(i){i.schema={type:"object",properties:{tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:n.EmoteRepresentationADR74.schema,minItems:1},category:a.EmoteCategory.schema,loop:{type:"boolean"}},required:["category","tags","representations","loop"],additionalProperties:!0},i.validate=(0,t.generateLazyValidator)(i.schema)})(e.EmoteDataADR74||(e.EmoteDataADR74={}))})(oE)),oE}var Tj;function pz(){return Tj||(Tj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Emote=void 0;const a=Tk(),t=nt(),n=_k(),i=f0(),o=p0(),u=wk();(function(c){c.schema={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({},n.baseItemProperties),i.standardProperties),o.thirdPartyProps),{emoteDataADR74:u.EmoteDataADR74.schema}),additionalProperties:!0,required:[...n.requiredBaseItemProps],oneOf:[{required:["emoteDataADR74"],oneOf:[{required:["collectionAddress","rarity"],prohibited:["merkleProof","content"],errorMessage:"standard properties conditions are not met"},{required:["merkleProof","content","id","name","description","i18n","image","thumbnail","emoteDataADR74"],_isThirdParty:!0,prohibited:["collectionAddress","rarity"],errorMessage:"thirdparty properties conditions are not met"}],errorMessage:{oneOf:"emote should have either standard or thirdparty properties"}}],errorMessage:{oneOf:'emote should have "emoteDataADR74" and match its schema'}};const f={keyword:"_isThirdParty",validate:(p,y)=>!p||(0,a.isThirdParty)(y),errors:!1};c.validate=(0,t.generateLazyValidator)(c.schema,[f])})(e.Emote||(e.Emote={}))})(aE)),aE}var lE={},Sj;function yz(){return Sj||(Sj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmotePlayMode=void 0;const a=nt();(function(t){t.SIMPLE="simple",t.LOOP="loop"})(e.EmotePlayMode||(e.EmotePlayMode={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.EmotePlayMode||(e.EmotePlayMode={}))})(lE)),lE}var Oj;function mz(){return Oj||(Oj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmotePlayMode=e.EmoteCategory=e.EmoteDataADR74=e.EmoteRepresentationADR74=e.Emote=void 0;var a=pz();Object.defineProperty(e,"Emote",{enumerable:!0,get:function(){return a.Emote}});var t=bk();Object.defineProperty(e,"EmoteRepresentationADR74",{enumerable:!0,get:function(){return t.EmoteRepresentationADR74}});var n=wk();Object.defineProperty(e,"EmoteDataADR74",{enumerable:!0,get:function(){return n.EmoteDataADR74}});var i=Ek();Object.defineProperty(e,"EmoteCategory",{enumerable:!0,get:function(){return i.EmoteCategory}});var o=yz();Object.defineProperty(e,"EmotePlayMode",{enumerable:!0,get:function(){return o.EmotePlayMode}})})(iE)),iE}var Aj;function Tk(){return Aj||(Aj=1,(function(e){var a=Yo&&Yo.__createBinding||(Object.create?(function(p,y,m,g){g===void 0&&(g=m);var S=Object.getOwnPropertyDescriptor(y,m);(!S||("get"in S?!y.__esModule:S.writable||S.configurable))&&(S={enumerable:!0,get:function(){return y[m]}}),Object.defineProperty(p,g,S)}):(function(p,y,m,g){g===void 0&&(g=m),p[g]=y[m]})),t=Yo&&Yo.__exportStar||function(p,y){for(var m in p)m!=="default"&&!Object.prototype.hasOwnProperty.call(y,m)&&a(y,p,m)};Object.defineProperty(e,"__esModule",{value:!0}),e.isThirdParty=e.isStandard=e.BodyShape=e.Metrics=e.Locale=e.I18N=void 0;var n=hk();Object.defineProperty(e,"I18N",{enumerable:!0,get:function(){return n.I18N}});var i=mk();Object.defineProperty(e,"Locale",{enumerable:!0,get:function(){return i.Locale}});var o=gk();Object.defineProperty(e,"Metrics",{enumerable:!0,get:function(){return o.Metrics}});var u=u0();Object.defineProperty(e,"BodyShape",{enumerable:!0,get:function(){return u.BodyShape}});var c=f0();Object.defineProperty(e,"isStandard",{enumerable:!0,get:function(){return c.isStandard}});var f=p0();Object.defineProperty(e,"isThirdParty",{enumerable:!0,get:function(){return f.isThirdParty}}),t(fz(),e),t(mz(),e)})(Yo)),Yo}var Xo={},Pj;function hz(){return Pj||(Pj=1,(function(e){var a=Xo&&Xo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Xo&&Xo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(vk(),e)})(Xo)),Xo}var cE={},dE={},Ij;function y0(){return Ij||(Ij=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AuthChain=e.AuthLink=e.AuthLinkType=void 0;const a=nt();var t;(function(i){i.SIGNER="SIGNER",i.ECDSA_PERSONAL_EPHEMERAL="ECDSA_EPHEMERAL",i.ECDSA_PERSONAL_SIGNED_ENTITY="ECDSA_SIGNED_ENTITY",i.ECDSA_EIP_1654_EPHEMERAL="ECDSA_EIP_1654_EPHEMERAL",i.ECDSA_EIP_1654_SIGNED_ENTITY="ECDSA_EIP_1654_SIGNED_ENTITY"})(t=e.AuthLinkType||(e.AuthLinkType={}));var n;(function(i){i.schema={type:"object",properties:{type:{type:"string",enum:Object.values(t)},payload:{type:"string"},signature:{type:"string",nullable:!0}},required:["payload","type"],if:{properties:{type:{not:{const:t.SIGNER}}}},then:{required:["signature"]},else:{oneOf:[{properties:{signature:{type:"string",const:""}},required:["signature"]},{properties:{signature:{type:"null"}}}]}},i.validate=(0,a.generateLazyValidator)(i.schema)})(n=e.AuthLink||(e.AuthLink={})),(function(i){i.schema={type:"array",items:n.schema,minItems:1},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.AuthChain||(e.AuthChain={}))})(dE)),dE}var Rj;function gz(){return Rj||(Rj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PointerChangesSyncDeployment=e.SnapshotSyncDeployment=void 0;const a=ou(),t=y0(),n=nt();(function(i){i.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},authChain:t.AuthChain.schema,entityTimestamp:{type:"number",minimum:0}},oneOf:[{properties:{entityId:a.IPFSv1.schema}},{properties:{entityId:a.IPFSv2.schema}}],required:["entityId","entityType","pointers","entityTimestamp","authChain"]},i.validate=(0,n.generateLazyValidator)(i.schema)})(e.SnapshotSyncDeployment||(e.SnapshotSyncDeployment={})),(function(i){i.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},authChain:t.AuthChain.schema,entityTimestamp:{type:"number",minimum:0},localTimestamp:{type:"number",minimum:0}},oneOf:[{properties:{entityId:a.IPFSv1.schema}},{properties:{entityId:a.IPFSv2.schema}}],required:["entityId","entityType","pointers","localTimestamp","entityTimestamp","authChain"]},i.validate=(0,n.generateLazyValidator)(i.schema)})(e.PointerChangesSyncDeployment||(e.PointerChangesSyncDeployment={}))})(cE)),cE}var fE={},pE={},Mj;function Sk(){return Mj||(Mj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ContentMapping=void 0;const a=ou(),t=nt();(function(n){n.schema={type:"object",properties:{file:{type:"string",minLength:1},hash:{type:"string",oneOf:[a.IPFSv1.schema,a.IPFSv2.schema]}},required:["file","hash"]},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.ContentMapping||(e.ContentMapping={}))})(pE)),pE}var Nj;function vz(){return Nj||(Nj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Entity=e.EntityType=void 0;const a=ou(),t=Sk(),n=nt();(function(i){i.SCENE="scene",i.PROFILE="profile",i.WEARABLE="wearable",i.STORE="store",i.EMOTE="emote",i.OUTFITS="outfits"})(e.EntityType||(e.EntityType={})),(function(i){i.schema={type:"object",properties:{version:{type:"string",enum:["v3"]},id:{type:"string",oneOf:[a.IPFSv1.schema,a.IPFSv2.schema]},type:{type:"string"},pointers:{type:"array",items:{type:"string",minLength:1}},timestamp:{type:"number",minimum:0},content:{type:"array",items:t.ContentMapping.schema},metadata:{type:"object",nullable:!0}},required:["version","id","type","pointers","timestamp","content"]},i.validate=(0,n.generateLazyValidator)(i.schema)})(e.Entity||(e.Entity={}))})(fE)),fE}var yE={},Cj;function _z(){return Cj||(Cj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DeploymentWithAuthChain=void 0;const a=y0(),t=nt();(function(n){n.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},localTimestamp:{type:"number",minimum:0},authChain:a.AuthChain.schema},required:["entityId","entityType","pointers","localTimestamp","authChain"]},n.validate=(0,t.generateLazyValidator)(n.schema)})(e.DeploymentWithAuthChain||(e.DeploymentWithAuthChain={}))})(yE)),yE}var Jo={},mE={},jj;function Ez(){return jj||(jj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Outfits=e.Outfit=void 0;const a=as(),t=ou(),n=nt();var i;(function(o){o.schema={type:"object",required:["bodyShape","eyes","hair","skin","wearables"],properties:{bodyShape:{type:"string"},eyes:{type:"object",required:["color"],properties:{color:t.Color3.schema}},hair:{type:"object",required:["color"],properties:{color:t.Color3.schema}},skin:{type:"object",required:["color"],properties:{color:t.Color3.schema}},wearables:{type:"array",items:{type:"string"}},forceRender:{type:"array",nullable:!0,items:a.WearableCategory.schema}},additionalProperties:!0},o.validate=(0,n.generateLazyValidator)(o.schema)})(i=e.Outfit||(e.Outfit={})),(function(o){o.schema={type:"object",required:["outfits","namesForExtraSlots"],properties:{outfits:{type:"array",items:{type:"object",required:["slot","outfit"],properties:{slot:{type:"number"},outfit:i.schema}}},namesForExtraSlots:{type:"array",uniqueItems:!0,items:{type:"string"}}},additionalProperties:!0},o.validate=(0,n.generateLazyValidator)(o.schema)})(e.Outfits||(e.Outfits={}))})(mE)),mE}var Lj;function bz(){return Lj||(Lj=1,(function(e){var a=Jo&&Jo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Jo&&Jo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(Ez(),e)})(Jo)),Jo}var Dj;function m0(){return Dj||(Dj=1,(function(e){var a=Go&&Go.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Go&&Go.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(uz(),e),t(cz(),e),t(Tk(),e),t(d0(),e),t(hz(),e),t(gz(),e),t(vz(),e),t(_z(),e),t(bz(),e)})(Go)),Go}var qj;function wz(){return qj||(qj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WearableJson=void 0;const a=Tf(),t=as(),n=c0(),i=nt(),o=m0();(function(u){u.schema={type:"object",properties:{description:{type:"string"},rarity:Object.assign(Object.assign({},a.Rarity.schema),{nullable:!0}),name:{type:"string"},data:{type:"object",properties:{replaces:{type:"array",items:t.WearableCategory.schema},hides:{type:"array",items:t.WearableCategory.schema},tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:n.WearableRepresentation.schema,minItems:1},category:t.WearableCategory.schema,removesDefaultHiding:{type:"array",nullable:!0,items:o.HideableWearableCategory.schema}},required:["replaces","hides","tags","representations","category"]}},additionalProperties:!0,required:["description","name","data"]},u.validate=(0,i.generateLazyValidator)(u.schema)})(e.WearableJson||(e.WearableJson={}))})(j_)),j_}var kj;function Tz(){return kj||(kj=1,(function(e){var a=Wo&&Wo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Wo&&Wo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(oz(),e),t(wz(),e)})(Wo)),Wo}var Uj;function Sz(){return Uj||(Uj=1,(function(e){var a=Ho&&Ho.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Ho&&Ho.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(az(),e),t(Tz(),e)})(Ho)),Ho}var hE={},gE={},vE={},Bj;function Ok(){return Bj||(Bj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getChainId=e.ChainName=void 0;const a=nt(),t=pi();var n;(function(o){o.ETHEREUM_MAINNET="Ethereum Mainnet",o.ETHEREUM_ROPSTEN="Ropsten",o.ETHEREUM_RINKEBY="Rinkeby",o.ETHEREUM_GOERLI="Goerli",o.ETHEREUM_KOVAN="Kovan",o.ETHEREUM_SEPOLIA="Sepolia",o.MATIC_MAINNET="Polygon",o.MATIC_MUMBAI="Mumbai",o.AVALANCHE_MAINNET="Avalanche Mainnet",o.BINANCE_MAINNET="Binance Smart Chain Mainnet",o.ARBITRUM_MAINNET="Arbitrum One",o.OPTIMISM_MAINNET="Optimism Mainnet",o.FANTOM_MAINNET="Fantom Mainnet"})(n=e.ChainName||(e.ChainName={}));function i(o){switch(o){case n.ETHEREUM_MAINNET:return t.ChainId.ETHEREUM_MAINNET;case n.ETHEREUM_ROPSTEN:return t.ChainId.ETHEREUM_ROPSTEN;case n.ETHEREUM_RINKEBY:return t.ChainId.ETHEREUM_RINKEBY;case n.ETHEREUM_GOERLI:return t.ChainId.ETHEREUM_GOERLI;case n.ETHEREUM_KOVAN:return t.ChainId.ETHEREUM_KOVAN;case n.ETHEREUM_SEPOLIA:return t.ChainId.ETHEREUM_SEPOLIA;case n.MATIC_MAINNET:return t.ChainId.MATIC_MAINNET;case n.MATIC_MUMBAI:return t.ChainId.MATIC_MUMBAI;default:return null}}e.getChainId=i,(function(o){o.schema={type:"string",enum:Object.values(o)},o.validate=(0,a.generateLazyValidator)(o.schema)})(n=e.ChainName||(e.ChainName={}))})(vE)),vE}var _E={},Fj;function fi(){return Fj||(Fj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Network=void 0;const a=nt();(function(t){t.ETHEREUM="ETHEREUM",t.MATIC="MATIC"})(e.Network||(e.Network={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Network||(e.Network={}))})(_E)),_E}var Vj;function pi(){return Vj||(Vj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getNetwork=e.getNetworkMapping=e.getURNProtocol=e.getChainName=e.ChainId=void 0;const a=nt(),t=Ok(),n=fi();var i;(function(p){p[p.ETHEREUM_MAINNET=1]="ETHEREUM_MAINNET",p[p.ETHEREUM_ROPSTEN=3]="ETHEREUM_ROPSTEN",p[p.ETHEREUM_RINKEBY=4]="ETHEREUM_RINKEBY",p[p.ETHEREUM_GOERLI=5]="ETHEREUM_GOERLI",p[p.ETHEREUM_KOVAN=42]="ETHEREUM_KOVAN",p[p.ETHEREUM_SEPOLIA=11155111]="ETHEREUM_SEPOLIA",p[p.MATIC_MAINNET=137]="MATIC_MAINNET",p[p.MATIC_MUMBAI=80001]="MATIC_MUMBAI"})(i=e.ChainId||(e.ChainId={}));function o(p){switch(p){case i.ETHEREUM_MAINNET:return t.ChainName.ETHEREUM_MAINNET;case i.ETHEREUM_ROPSTEN:return t.ChainName.ETHEREUM_ROPSTEN;case i.ETHEREUM_RINKEBY:return t.ChainName.ETHEREUM_RINKEBY;case i.ETHEREUM_GOERLI:return t.ChainName.ETHEREUM_GOERLI;case i.ETHEREUM_KOVAN:return t.ChainName.ETHEREUM_KOVAN;case i.ETHEREUM_SEPOLIA:return t.ChainName.ETHEREUM_SEPOLIA;case i.MATIC_MAINNET:return t.ChainName.MATIC_MAINNET;case i.MATIC_MUMBAI:return t.ChainName.MATIC_MUMBAI;default:return null}}e.getChainName=o;function u(p){switch(p){case i.ETHEREUM_MAINNET:return"ethereum";case i.ETHEREUM_ROPSTEN:return"ropsten";case i.ETHEREUM_RINKEBY:return"rinkeby";case i.ETHEREUM_GOERLI:return"goerli";case i.ETHEREUM_KOVAN:return"kovan";case i.ETHEREUM_SEPOLIA:return"sepolia";case i.MATIC_MAINNET:return"matic";case i.MATIC_MUMBAI:return"mumbai";default:return""}}e.getURNProtocol=u;function c(p){switch(p){case i.ETHEREUM_MAINNET:return{[n.Network.ETHEREUM]:i.ETHEREUM_MAINNET,[n.Network.MATIC]:i.MATIC_MAINNET};case i.ETHEREUM_ROPSTEN:return{[n.Network.ETHEREUM]:i.ETHEREUM_ROPSTEN,[n.Network.MATIC]:i.MATIC_MUMBAI};case i.ETHEREUM_RINKEBY:return{[n.Network.ETHEREUM]:i.ETHEREUM_RINKEBY,[n.Network.MATIC]:i.MATIC_MUMBAI};case i.ETHEREUM_GOERLI:return{[n.Network.ETHEREUM]:i.ETHEREUM_GOERLI,[n.Network.MATIC]:i.MATIC_MUMBAI};case i.ETHEREUM_KOVAN:return{[n.Network.ETHEREUM]:i.ETHEREUM_KOVAN,[n.Network.MATIC]:i.MATIC_MUMBAI};case i.ETHEREUM_SEPOLIA:return{[n.Network.ETHEREUM]:i.ETHEREUM_SEPOLIA,[n.Network.MATIC]:i.MATIC_MUMBAI};case i.MATIC_MAINNET:return{[n.Network.ETHEREUM]:i.MATIC_MAINNET,[n.Network.MATIC]:i.MATIC_MAINNET};case i.MATIC_MUMBAI:return{[n.Network.ETHEREUM]:i.MATIC_MUMBAI,[n.Network.MATIC]:i.MATIC_MUMBAI};default:return{[n.Network.ETHEREUM]:i.ETHEREUM_MAINNET,[n.Network.MATIC]:i.MATIC_MAINNET}}}e.getNetworkMapping=c;function f(p){switch(p){case i.ETHEREUM_MAINNET:case i.ETHEREUM_ROPSTEN:case i.ETHEREUM_GOERLI:case i.ETHEREUM_KOVAN:case i.ETHEREUM_RINKEBY:case i.ETHEREUM_SEPOLIA:return n.Network.ETHEREUM;case i.MATIC_MAINNET:case i.MATIC_MUMBAI:return n.Network.MATIC}}e.getNetwork=f,(function(p){p.schema={type:"number",enum:Object.values(p)},p.validate=(0,a.generateLazyValidator)(p.schema)})(i=e.ChainId||(e.ChainId={}))})(gE)),gE}var EE={},Hj;function h0(){return Hj||(Hj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ListingStatus=void 0;const a=nt();(function(t){t.OPEN="open",t.SOLD="sold",t.CANCELLED="cancelled"})(e.ListingStatus||(e.ListingStatus={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.ListingStatus||(e.ListingStatus={}))})(EE)),EE}var zj;function Oz(){return zj||(zj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Bid=e.BidSortBy=void 0;const a=nt(),t=pi(),n=h0(),i=fi();(function(o){o.RECENTLY_OFFERED="recently_offered",o.RECENTLY_UPDATED="recently_updated",o.MOST_EXPENSIVE="most_expensive"})(e.BidSortBy||(e.BidSortBy={})),(function(o){o.schema={type:"object",properties:{id:{type:"string"},bidAddress:{type:"string"},bidder:{type:"string"},seller:{type:"string"},price:{type:"string"},fingerprint:{type:"string"},status:n.ListingStatus.schema,blockchainId:{type:"string"},blockNumber:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},network:i.Network.schema,chainId:t.ChainId.schema,expiresAt:{type:"integer"},createdAt:{type:"integer"},updatedAt:{type:"integer"}},required:["id","bidAddress","bidder","seller","price","fingerprint","status","blockchainId","blockNumber","contractAddress","tokenId","network","chainId","expiresAt","createdAt","updatedAt"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.Bid||(e.Bid={}))})(hE)),hE}var bE={},Wj;function Az(){return Wj||(Wj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Account=e.AccountSortBy=void 0;const a=nt();(function(t){t.MOST_SALES="most_sales",t.MOST_PURCHASES="most_purchases",t.MOST_SPENT="most_spent",t.MOST_EARNED="most_earned",t.MOST_ROYALTIES="most_royalties",t.MOST_COLLECTIONS="most_collections"})(e.AccountSortBy||(e.AccountSortBy={})),(function(t){t.schema={type:"object",properties:{id:{type:"string"},address:{type:"string"},sales:{type:"integer"},purchases:{type:"integer"},spent:{type:"string"},earned:{type:"string"},royalties:{type:"string"},collections:{type:"number"}},required:["id","address","sales","purchases","spent","earned","royalties","collections"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Account||(e.Account={}))})(bE)),bE}var wE={},Gj;function Pz(){return Gj||(Gj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Collection=e.CollectionSortBy=void 0;const a=nt(),t=pi(),n=fi();(function(i){i.NEWEST="newest",i.NAME="name",i.RECENTLY_REVIEWED="recently_reviewed",i.RECENTLY_LISTED="recently_listed",i.SIZE="size"})(e.CollectionSortBy||(e.CollectionSortBy={})),(function(i){i.schema={type:"object",properties:{urn:{type:"string"},creator:{type:"string"},name:{type:"string"},contractAddress:{type:"string"},size:{type:"integer"},isOnSale:{type:"boolean"},createdAt:{type:"integer"},updatedAt:{type:"integer"},reviewedAt:{type:"integer"},network:n.Network.schema,chainId:t.ChainId.schema,firstListedAt:{type:"integer",nullable:!0}},required:["urn","creator","name","contractAddress","isOnSale","size","createdAt","updatedAt","reviewedAt","network","chainId"]},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.Collection||(e.Collection={}))})(wE)),wE}var TE={},SE={},Kj;function Sf(){return Kj||(Kj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NFTCategory=void 0;const a=nt();(function(t){t.PARCEL="parcel",t.ESTATE="estate",t.WEARABLE="wearable",t.ENS="ens",t.EMOTE="emote"})(e.NFTCategory||(e.NFTCategory={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.NFTCategory||(e.NFTCategory={}))})(SE)),SE}var Yj;function Iz(){return Yj||(Yj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Contract=e.ContractSortBy=void 0;const a=nt(),t=pi(),n=fi(),i=Sf();(function(o){o.NAME="name"})(e.ContractSortBy||(e.ContractSortBy={})),(function(o){o.schema={type:"object",properties:{name:{type:"string"},address:{type:"string"},category:i.NFTCategory.schema,network:n.Network.schema,chainId:t.ChainId.schema},required:["name","address","category","network","chainId"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.Contract||(e.Contract={}))})(TE)),TE}var OE={},AE={},Xj;function Ak(){return Xj||(Xj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NFT=e.NFTSortBy=void 0;const a=nt(),t=pi(),n=m0(),i=fi(),o=Sf(),u=Tf(),c=as();(function(f){f.NAME="name",f.NEWEST="newest",f.RECENTLY_LISTED="recently_listed",f.RECENTLY_SOLD="recently_sold",f.CHEAPEST="cheapest",f.RENTAL_LISTING_DATE="rental_listing_date",f.RENTAL_DATE="rented_date",f.MAX_RENTAL_PRICE="max_rental_price",f.MIN_RENTAL_PRICE="min_rental_price"})(e.NFTSortBy||(e.NFTSortBy={})),(function(f){f.schema={type:"object",properties:{id:{type:"string"},tokenId:{type:"string"},contractAddress:{type:"string"},activeOrderId:{type:"string",nullable:!0},openRentalId:{type:"string",nullable:!0},owner:{type:"string"},name:{type:"string"},image:{type:"string"},url:{type:"string"},data:{type:"object",nullable:!1,properties:{parcel:{type:"object",properties:{description:{type:["string"],nullable:!0},x:{type:"string"},y:{type:"string"},estate:{type:"object",properties:{tokenId:{type:"string"},name:{type:"string"}},required:["tokenId","name"],nullable:!0}},required:["description","x","y","estate"],nullable:!0},estate:{type:"object",properties:{description:{type:["string"],nullable:!0},size:{type:"integer"},parcels:{type:"array",items:{type:"object",properties:{x:{type:"number"},y:{type:"number"}},required:["x","y"]}}},required:["description","size","parcels"],nullable:!0},wearable:{type:"object",properties:{bodyShapes:{type:"array",items:n.BodyShape.schema},category:c.WearableCategory.schema,description:{type:"string"},rarity:u.Rarity.schema,isSmart:{type:"boolean"}},required:["bodyShapes","category","description","rarity","isSmart"],nullable:!0},ens:{type:"object",properties:{subdomain:{type:"string"}},required:["subdomain"],nullable:!0},emote:{type:"object",properties:{bodyShapes:{type:"array",items:n.BodyShape.schema},category:n.EmoteCategory.schema,description:{type:"string"},rarity:u.Rarity.schema,loop:{type:"boolean"},hasSound:{type:"boolean"},hasGeometry:{type:"boolean"}},required:["bodyShapes","category","description","rarity","loop"],nullable:!0}},required:[]},issuedId:{type:"string",nullable:!0},itemId:{type:"string",nullable:!0},category:o.NFTCategory.schema,network:i.Network.schema,chainId:t.ChainId.schema,createdAt:{type:"integer"},updatedAt:{type:"integer"},soldAt:{type:"integer"},urn:{type:"string",nullable:!0}},required:["id","tokenId","contractAddress","activeOrderId","openRentalId","owner","name","image","url","data","issuedId","itemId","category","network","chainId","createdAt","updatedAt","soldAt"]},f.validate=(0,a.generateLazyValidator)(f.schema)})(e.NFT||(e.NFT={}))})(AE)),AE}var Jj;function Rz(){return Jj||(Jj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Item=e.ItemSortBy=void 0;const a=nt(),t=pi(),n=fi(),i=Ak(),o=Sf();(function(u){u.NAME="name",u.NEWEST="newest",u.RECENTLY_REVIEWED="recently_reviewed",u.RECENTLY_SOLD="recently_sold",u.RECENTLY_LISTED="recently_listed",u.CHEAPEST="cheapest"})(e.ItemSortBy||(e.ItemSortBy={})),(function(u){u.schema={type:"object",properties:{id:{type:"string"},name:{type:"string"},thumbnail:{type:"string"},url:{type:"string"},category:o.NFTCategory.schema,contractAddress:{type:"string"},itemId:{type:"string"},rarity:{type:"string"},price:{type:"string"},available:{type:"integer"},isOnSale:{type:"boolean"},creator:{type:"string"},beneficiary:{type:"string",nullable:!0},data:i.NFT.schema.properties.data,network:n.Network.schema,chainId:t.ChainId.schema,urn:{type:"string"},createdAt:{type:"integer"},updatedAt:{type:"integer"},reviewedAt:{type:"integer"},soldAt:{type:"integer"},firstListedAt:{type:"integer",nullable:!0},picks:{type:"object",properties:{pickedByUser:{type:"boolean",nullable:!0},count:{type:"integer"}},required:["count"],nullable:!0},minPrice:{type:"string",nullable:!0},minListingPrice:{type:"string",nullable:!0},maxListingPrice:{type:"string",nullable:!0},listings:{type:"integer",nullable:!0},owners:{type:"integer",nullable:!0}},required:["id","name","thumbnail","url","category","contractAddress","itemId","rarity","price","available","isOnSale","creator","data","network","chainId","createdAt","updatedAt","soldAt"]},u.validate=(0,a.generateLazyValidator)(u.schema)})(e.Item||(e.Item={}))})(OE)),OE}var PE={},Qj;function Mz(){return Qj||(Qj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MetaTransaction=void 0;const a=nt();(function(t){t.schema={type:"object",properties:{from:{type:"string"},params:{type:"array",items:[{type:"string"},{type:"string"}],additionalItems:!1,minItems:2}},additionalProperties:!1,required:["from","params"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.MetaTransaction||(e.MetaTransaction={}))})(PE)),PE}var IE={},Zj;function Nz(){return Zj||(Zj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Mint=e.MintSortBy=void 0;const a=nt(),t=pi(),n=fi();(function(i){i.RECENTLY_MINTED="recently_minted",i.MOST_EXPENSIVE="most_expensive"})(e.MintSortBy||(e.MintSortBy={})),(function(i){i.schema={type:"object",properties:{id:{type:"string"},creator:{type:"string"},beneficiary:{type:"string"},minter:{type:"string"},price:{type:"string",nullable:!0},contractAddress:{type:"string"},tokenId:{type:"string"},itemId:{type:"string"},issuedId:{type:"string"},timestamp:{type:"integer"},network:n.Network.schema,chainId:t.ChainId.schema},required:["id","creator","beneficiary","minter","itemId","tokenId","issuedId","contractAddress","price","timestamp","network","chainId"]},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.Mint||(e.Mint={}))})(IE)),IE}var RE={},$j;function Cz(){return $j||($j=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CatalogSortDirection=e.CatalogSortBy=void 0,(function(a){a.NEWEST="newest",a.RECENTLY_SOLD="recently_sold",a.CHEAPEST="cheapest",a.MOST_EXPENSIVE="most_expensive",a.RECENTLY_LISTED="recently_listed"})(e.CatalogSortBy||(e.CatalogSortBy={})),(function(a){a.ASC="asc",a.DESC="desc"})(e.CatalogSortDirection||(e.CatalogSortDirection={}))})(RE)),RE}var ME={},xj;function jz(){return xj||(xj=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Order=e.OrderSortBy=void 0;const a=nt(),t=pi(),n=h0(),i=fi();(function(o){o.RECENTLY_LISTED="recently_listed",o.RECENTLY_UPDATED="recently_updated",o.CHEAPEST="cheapest",o.ISSUED_ID_ASC="issued_id_asc",o.ISSUED_ID_DESC="issued_id_desc",o.OLDEST="oldest"})(e.OrderSortBy||(e.OrderSortBy={})),(function(o){o.schema={type:"object",properties:{id:{type:"string"},marketplaceAddress:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},owner:{type:"string"},buyer:{type:["string"],nullable:!0},price:{type:"string"},status:n.ListingStatus.schema,network:i.Network.schema,chainId:t.ChainId.schema,expiresAt:{type:"integer"},createdAt:{type:"integer"},updatedAt:{type:"integer"},issuedId:{type:"string"}},required:["id","marketplaceAddress","contractAddress","tokenId","owner","buyer","price","status","network","chainId","expiresAt","createdAt","updatedAt"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.Order||(e.Order={}))})(ME)),ME}var NE={},eL;function Lz(){return eL||(eL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProviderType=void 0;const a=nt();(function(t){t.INJECTED="injected",t.MAGIC="magic",t.FORTMATIC="formatic",t.NETWORK="network",t.WALLET_CONNECT="wallet_connect",t.WALLET_CONNECT_V2="wallet_connect_v2",t.WALLET_LINK="wallet_link",t.METAMASK_MOBILE="metamask_mobile",t.AUTH_SERVER="auth_server"})(e.ProviderType||(e.ProviderType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.ProviderType||(e.ProviderType={}))})(NE)),NE}var CE={},tL;function Pk(){return tL||(tL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SaleType=void 0;const a=nt();(function(t){t.ORDER="order",t.BID="bid",t.MINT="mint"})(e.SaleType||(e.SaleType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.SaleType||(e.SaleType={}))})(CE)),CE}var jE={},rL;function Dz(){return rL||(rL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Sale=e.SaleSortBy=void 0;const a=nt(),t=pi(),n=Pk(),i=fi();(function(o){o.RECENTLY_SOLD="recently_sold",o.MOST_EXPENSIVE="most_expensive"})(e.SaleSortBy||(e.SaleSortBy={})),(function(o){o.schema={type:"object",properties:{id:{type:"string"},type:n.SaleType.schema,buyer:{type:"string"},seller:{type:"string"},price:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},itemId:{type:"string"},txHash:{type:"string"},timestamp:{type:"integer"},network:i.Network.schema,chainId:t.ChainId.schema},required:["id","buyer","seller","itemId","tokenId","price","contractAddress","timestamp","txHash","network","chainId"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.Sale||(e.Sale={}))})(jE)),jE}var LE={},nL;function qz(){return nL||(nL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.RentalListingCreation=e.PeriodCreation=e.RentalsListingsSortBy=e.RentalsListingsFilterByCategory=e.RentalsListingSortDirection=e.RentalStatus=void 0;const a=nt(),t=pi(),n=fi();(function(o){o.OPEN="open",o.CANCELLED="cancelled",o.EXECUTED="executed",o.CLAIMED="claimed"})(e.RentalStatus||(e.RentalStatus={})),(function(o){o.ASC="asc",o.DESC="desc"})(e.RentalsListingSortDirection||(e.RentalsListingSortDirection={})),(function(o){o.PARCEL="parcel",o.ESTATE="estate"})(e.RentalsListingsFilterByCategory||(e.RentalsListingsFilterByCategory={})),(function(o){o.LAND_CREATION_DATE="land_creation_date",o.RENTAL_LISTING_DATE="rental_listing_date",o.RENTAL_DATE="rented_date",o.NAME="name",o.MAX_RENTAL_PRICE="max_rental_price",o.MIN_RENTAL_PRICE="min_rental_price"})(e.RentalsListingsSortBy||(e.RentalsListingsSortBy={}));var i;(function(o){o.schema={type:"object",properties:{minDays:{type:"integer",minimum:0,maximum:2147483647},maxDays:{type:"integer",minimum:0,maximum:2147483647},pricePerDay:{type:"string",pattern:"^[0-9]+$"}},additionalProperties:!1,required:["minDays","maxDays","pricePerDay"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(i=e.PeriodCreation||(e.PeriodCreation={})),(function(o){o.schema={type:"object",properties:{network:n.Network.schema,chainId:t.ChainId.schema,expiration:{type:"number",minimum:0},signature:{type:"string",minLength:1},tokenId:{type:"string",minLength:1},nonces:{type:"array",minItems:3,maxItems:3,items:{minLength:1,type:"string",pattern:"^[0-9]+$"}},contractAddress:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"},rentalContractAddress:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"},periods:{type:"array",minItems:1,maxItems:100,uniqueItems:!0,items:i.schema},target:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"}},additionalProperties:!1,required:["network","chainId","expiration","signature","nonces","tokenId","contractAddress","rentalContractAddress","periods","target"]},o.validate=(0,a.generateLazyValidator)(o.schema)})(e.RentalListingCreation||(e.RentalListingCreation={}))})(LE)),LE}var DE={},iL;function kz(){return iL||(iL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AnalyticsDayDataSortBy=void 0,(function(a){a.DATE="date",a.MOST_SALES="most_sales"})(e.AnalyticsDayDataSortBy||(e.AnalyticsDayDataSortBy={}))})(DE)),DE}var qE={},aL;function Uz(){return aL||(aL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Store=void 0;const a=nt();(function(t){t.schema={type:"object",properties:{id:{type:"string"},version:{type:"number"},owner:{type:"string"},description:{type:"string"},links:{type:"array",items:{type:"object",properties:{name:{type:"string"},url:{type:"string"}},required:["name","url"]}},images:{type:"array",items:{type:"object",properties:{name:{type:"string"},file:{type:"string"}},required:["name","file"]}}},required:["id","version","owner","description","links","images"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.Store||(e.Store={}))})(qE)),qE}var kE={},oL;function Bz(){return oL||(oL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.GenderFilterOption=e.WearableGender=void 0;const a=nt();(function(t){t.MALE="male",t.FEMALE="female"})(e.WearableGender||(e.WearableGender={})),(function(t){t.MALE="male",t.FEMALE="female",t.UNISEX="unisex"})(e.GenderFilterOption||(e.GenderFilterOption={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.WearableGender||(e.WearableGender={}))})(kE)),kE}var UE={},sL;function Fz(){return sL||(sL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.World=e.isInsideWorldLimits=e.getWorld=void 0;const a=nt();function t(){return{validWorldRanges:[{xMin:-150,yMin:-150,xMax:150,yMax:150},{xMin:62,yMin:151,xMax:162,yMax:158},{xMin:151,yMin:144,xMax:162,yMax:150},{xMin:151,yMin:59,xMax:163,yMax:143}]}}e.getWorld=t;function n(i,o){const u=t().validWorldRanges;for(const c of u)if(i>=c.xMin&&i<=c.xMax&&o>=c.yMin&&o<=c.yMax)return!0;return!1}e.isInsideWorldLimits=n,(function(i){i.schema={type:"object",required:["validWorldRanges"],properties:{validWorldRanges:{type:"array",default:[{xMin:-150,yMin:-150,xMax:150,yMax:150}],items:{type:"object",required:["xMin","yMin","xMax","yMax"],properties:{xMin:{type:"integer"},yMin:{type:"integer"},xMax:{type:"integer"},yMax:{type:"integer"}}}}},additionalProperties:!1},i.validate=(0,a.generateLazyValidator)(i.schema)})(e.World||(e.World={}))})(UE)),UE}var Qo={},BE={},uL;function Vz(){return uL||(uL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewCamera=void 0;const a=nt();(function(t){t.STATIC="static",t.INTERACTIVE="interactive"})(e.PreviewCamera||(e.PreviewCamera={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewCamera||(e.PreviewCamera={}))})(BE)),BE}var FE={},lL;function Hz(){return lL||(lL=1,Object.defineProperty(FE,"__esModule",{value:!0})),FE}var VE={},cL;function zz(){return cL||(cL=1,Object.defineProperty(VE,"__esModule",{value:!0})),VE}var HE={},dL;function Wz(){return dL||(dL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewEmoteEventType=void 0;const a=nt();(function(t){t.ANIMATION_PLAY="animation_play",t.ANIMATION_PAUSE="animation_pause",t.ANIMATION_LOOP="animation_loop",t.ANIMATION_END="animation_end",t.ANIMATION_PLAYING="animation_playing"})(e.PreviewEmoteEventType||(e.PreviewEmoteEventType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewEmoteEventType||(e.PreviewEmoteEventType={}))})(HE)),HE}var zE={},fL;function Gz(){return fL||(fL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewEmote=void 0;const a=nt();(function(t){t.IDLE="idle",t.WALK="walk",t.RUN="run",t.JUMP="jump",t.CLAP="clap",t.DAB="dab",t.DANCE="dance",t.FASHION="fashion",t.FASHION_2="fashion-2",t.FASHION_3="fashion-3",t.FASHION_4="fashion-4",t.LOVE="love",t.MONEY="money",t.FIST_PUMP="fist-pump",t.HEAD_EXPLODE="head-explode",t.WAVE="wave"})(e.PreviewEmote||(e.PreviewEmote={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewEmote||(e.PreviewEmote={}))})(zE)),zE}var WE={},pL;function Kz(){return pL||(pL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.sendMessage=e.PreviewMessageType=void 0;const a=nt();(function(n){n.READY="ready",n.LOAD="load",n.ERROR="error",n.UPDATE="update",n.CONTROLLER_REQUEST="controller_request",n.CONTROLLER_RESPONSE="controller_response",n.EMOTE_EVENT="emote_event"})(e.PreviewMessageType||(e.PreviewMessageType={})),(function(n){n.schema={type:"string",enum:Object.values(n)},n.validate=(0,a.generateLazyValidator)(n.schema)})(e.PreviewMessageType||(e.PreviewMessageType={}));const t=(n,i,o,u="*")=>{const c={type:i,payload:o};n.postMessage(c,u)};e.sendMessage=t})(WE)),WE}var GE={},yL;function Yz(){return yL||(yL=1,Object.defineProperty(GE,"__esModule",{value:!0})),GE}var KE={},mL;function Xz(){return mL||(mL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewProjection=void 0;const a=nt();(function(t){t.ORTHOGRAPHIC="orthographic",t.PERSPECTIVE="perspective"})(e.PreviewProjection||(e.PreviewProjection={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewProjection||(e.PreviewProjection={}))})(KE)),KE}var YE={},hL;function Jz(){return hL||(hL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PreviewType=void 0;const a=nt();(function(t){t.TEXTURE="texture",t.WEARABLE="wearable",t.AVATAR="avatar"})(e.PreviewType||(e.PreviewType={})),(function(t){t.schema={type:"string",enum:Object.values(t)},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.PreviewType||(e.PreviewType={}))})(YE)),YE}var XE={},gL;function Qz(){return gL||(gL=1,Object.defineProperty(XE,"__esModule",{value:!0})),XE}var JE={},vL;function Zz(){return vL||(vL=1,Object.defineProperty(JE,"__esModule",{value:!0})),JE}var QE={},_L;function $z(){return _L||(_L=1,Object.defineProperty(QE,"__esModule",{value:!0})),QE}var ZE={},EL;function xz(){return EL||(EL=1,Object.defineProperty(ZE,"__esModule",{value:!0})),ZE}var $E={},bL;function e5(){return bL||(bL=1,Object.defineProperty($E,"__esModule",{value:!0})),$E}var xE={},wL;function t5(){return wL||(wL=1,Object.defineProperty(xE,"__esModule",{value:!0})),xE}var eb={},TL;function r5(){return TL||(TL=1,Object.defineProperty(eb,"__esModule",{value:!0})),eb}var tb={},SL;function n5(){return SL||(SL=1,Object.defineProperty(tb,"__esModule",{value:!0})),tb}var OL;function i5(){return OL||(OL=1,(function(e){var a=Qo&&Qo.__createBinding||(Object.create?(function(n,i,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(i,o);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,u,c)}):(function(n,i,o,u){u===void 0&&(u=o),n[u]=i[o]})),t=Qo&&Qo.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&a(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),t(Vz(),e),t(Hz(),e),t(zz(),e),t(Wz(),e),t(Gz(),e),t(Kz(),e),t(Yz(),e),t(Xz(),e),t(Jz(),e),t(Qz(),e),t(Zz(),e),t($z(),e),t(xz(),e),t(e5(),e),t(t5(),e),t(r5(),e),t(n5(),e)})(Qo)),Qo}var rb={},AL;function a5(){return AL||(AL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LinkerAuthorization=void 0;const a=nt();(function(t){t.schema={type:"object",properties:{name:{type:"string"},desc:{type:"string"},startDate:{type:"string",nullable:!0},endDate:{type:"string",nullable:!0},contactInfo:{type:"object",properties:{name:{type:"string"}},required:["name"]},addresses:{type:"array",items:{type:"string"},minItems:1},plots:{type:"array",items:{type:"string"},minItems:1}},required:["name","desc","contactInfo","addresses","plots"]},t.validate=(0,a.generateLazyValidator)(t.schema)})(e.LinkerAuthorization||(e.LinkerAuthorization={}))})(rb)),rb}var PL;function o5(){return PL||(PL=1,(function(e){var a=ni&&ni.__createBinding||(Object.create?(function(ye,Me,Ne,qe){qe===void 0&&(qe=Ne);var we=Object.getOwnPropertyDescriptor(Me,Ne);(!we||("get"in we?!Me.__esModule:we.writable||we.configurable))&&(we={enumerable:!0,get:function(){return Me[Ne]}}),Object.defineProperty(ye,qe,we)}):(function(ye,Me,Ne,qe){qe===void 0&&(qe=Ne),ye[qe]=Me[Ne]})),t=ni&&ni.__setModuleDefault||(Object.create?(function(ye,Me){Object.defineProperty(ye,"default",{enumerable:!0,value:Me})}):function(ye,Me){ye.default=Me}),n=ni&&ni.__importStar||function(ye){if(ye&&ye.__esModule)return ye;var Me={};if(ye!=null)for(var Ne in ye)Ne!=="default"&&Object.prototype.hasOwnProperty.call(ye,Ne)&&a(Me,ye,Ne);return t(Me,ye),Me},i=ni&&ni.__exportStar||function(ye,Me){for(var Ne in ye)Ne!=="default"&&!Object.prototype.hasOwnProperty.call(Me,Ne)&&a(Me,ye,Ne)};Object.defineProperty(e,"__esModule",{value:!0}),e.sdk=e.isInsideWorldLimits=e.getWorld=e.World=e.GenderFilterOption=e.WearableGender=e.Store=e.AnalyticsDayDataSortBy=e.PeriodCreation=e.RentalListingCreation=e.RentalsListingsSortBy=e.RentalsListingsFilterByCategory=e.RentalsListingSortDirection=e.RentalStatus=e.SaleSortBy=e.Sale=e.SaleType=e.Rarity=e.ProviderType=e.OrderSortBy=e.Order=e.CatalogSortDirection=e.CatalogSortBy=e.NFTSortBy=e.NFT=e.NFTCategory=e.Network=e.MintSortBy=e.Mint=e.MetaTransaction=e.ListingStatus=e.ItemSortBy=e.Item=e.ContractSortBy=e.Contract=e.CollectionSortBy=e.Collection=e.getChainId=e.ChainName=e.getURNProtocol=e.getChainName=e.ChainId=e.AccountSortBy=e.Account=e.BidSortBy=e.Bid=void 0;const o=n(Sz());e.sdk=o,i(nt(),e);var u=Oz();Object.defineProperty(e,"Bid",{enumerable:!0,get:function(){return u.Bid}}),Object.defineProperty(e,"BidSortBy",{enumerable:!0,get:function(){return u.BidSortBy}});var c=Az();Object.defineProperty(e,"Account",{enumerable:!0,get:function(){return c.Account}}),Object.defineProperty(e,"AccountSortBy",{enumerable:!0,get:function(){return c.AccountSortBy}});var f=pi();Object.defineProperty(e,"ChainId",{enumerable:!0,get:function(){return f.ChainId}}),Object.defineProperty(e,"getChainName",{enumerable:!0,get:function(){return f.getChainName}}),Object.defineProperty(e,"getURNProtocol",{enumerable:!0,get:function(){return f.getURNProtocol}});var p=Ok();Object.defineProperty(e,"ChainName",{enumerable:!0,get:function(){return p.ChainName}}),Object.defineProperty(e,"getChainId",{enumerable:!0,get:function(){return p.getChainId}});var y=Pz();Object.defineProperty(e,"Collection",{enumerable:!0,get:function(){return y.Collection}}),Object.defineProperty(e,"CollectionSortBy",{enumerable:!0,get:function(){return y.CollectionSortBy}});var m=Iz();Object.defineProperty(e,"Contract",{enumerable:!0,get:function(){return m.Contract}}),Object.defineProperty(e,"ContractSortBy",{enumerable:!0,get:function(){return m.ContractSortBy}});var g=Rz();Object.defineProperty(e,"Item",{enumerable:!0,get:function(){return g.Item}}),Object.defineProperty(e,"ItemSortBy",{enumerable:!0,get:function(){return g.ItemSortBy}});var S=h0();Object.defineProperty(e,"ListingStatus",{enumerable:!0,get:function(){return S.ListingStatus}});var M=Mz();Object.defineProperty(e,"MetaTransaction",{enumerable:!0,get:function(){return M.MetaTransaction}});var R=Nz();Object.defineProperty(e,"Mint",{enumerable:!0,get:function(){return R.Mint}}),Object.defineProperty(e,"MintSortBy",{enumerable:!0,get:function(){return R.MintSortBy}});var I=fi();Object.defineProperty(e,"Network",{enumerable:!0,get:function(){return I.Network}});var N=Sf();Object.defineProperty(e,"NFTCategory",{enumerable:!0,get:function(){return N.NFTCategory}});var E=Ak();Object.defineProperty(e,"NFT",{enumerable:!0,get:function(){return E.NFT}}),Object.defineProperty(e,"NFTSortBy",{enumerable:!0,get:function(){return E.NFTSortBy}});var P=Cz();Object.defineProperty(e,"CatalogSortBy",{enumerable:!0,get:function(){return P.CatalogSortBy}}),Object.defineProperty(e,"CatalogSortDirection",{enumerable:!0,get:function(){return P.CatalogSortDirection}});var T=jz();Object.defineProperty(e,"Order",{enumerable:!0,get:function(){return T.Order}}),Object.defineProperty(e,"OrderSortBy",{enumerable:!0,get:function(){return T.OrderSortBy}});var v=Lz();Object.defineProperty(e,"ProviderType",{enumerable:!0,get:function(){return v.ProviderType}});var O=Tf();Object.defineProperty(e,"Rarity",{enumerable:!0,get:function(){return O.Rarity}});var C=Pk();Object.defineProperty(e,"SaleType",{enumerable:!0,get:function(){return C.SaleType}});var z=Dz();Object.defineProperty(e,"Sale",{enumerable:!0,get:function(){return z.Sale}}),Object.defineProperty(e,"SaleSortBy",{enumerable:!0,get:function(){return z.SaleSortBy}});var U=qz();Object.defineProperty(e,"RentalStatus",{enumerable:!0,get:function(){return U.RentalStatus}}),Object.defineProperty(e,"RentalsListingSortDirection",{enumerable:!0,get:function(){return U.RentalsListingSortDirection}}),Object.defineProperty(e,"RentalsListingsFilterByCategory",{enumerable:!0,get:function(){return U.RentalsListingsFilterByCategory}}),Object.defineProperty(e,"RentalsListingsSortBy",{enumerable:!0,get:function(){return U.RentalsListingsSortBy}}),Object.defineProperty(e,"RentalListingCreation",{enumerable:!0,get:function(){return U.RentalListingCreation}}),Object.defineProperty(e,"PeriodCreation",{enumerable:!0,get:function(){return U.PeriodCreation}});var K=kz();Object.defineProperty(e,"AnalyticsDayDataSortBy",{enumerable:!0,get:function(){return K.AnalyticsDayDataSortBy}});var ae=Uz();Object.defineProperty(e,"Store",{enumerable:!0,get:function(){return ae.Store}});var _e=Bz();Object.defineProperty(e,"WearableGender",{enumerable:!0,get:function(){return _e.WearableGender}}),Object.defineProperty(e,"GenderFilterOption",{enumerable:!0,get:function(){return _e.GenderFilterOption}});var be=Fz();Object.defineProperty(e,"World",{enumerable:!0,get:function(){return be.World}}),Object.defineProperty(e,"getWorld",{enumerable:!0,get:function(){return be.getWorld}}),Object.defineProperty(e,"isInsideWorldLimits",{enumerable:!0,get:function(){return be.isInsideWorldLimits}}),i(i5(),e),i(m0(),e),i(ou(),e),i(a5(),e),i(y0(),e),i(Sk(),e)})(ni)),ni}var IL;function Ik(){return IL||(IL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AuthLink=e.AuthLinkType=e.AuthChain=void 0;const a=o5();Object.defineProperty(e,"AuthChain",{enumerable:!0,get:function(){return a.AuthChain}}),Object.defineProperty(e,"AuthLinkType",{enumerable:!0,get:function(){return a.AuthLinkType}}),Object.defineProperty(e,"AuthLink",{enumerable:!0,get:function(){return a.AuthLink}})})(R_)),R_}var Qu={},RL;function s5(){if(RL)return Qu;RL=1,Object.defineProperty(Qu,"__esModule",{value:!0}),Qu.moveMinutes=void 0;function e(a){const t=new Date;return t.setMinutes(t.getMinutes()+a),t}return Qu.moveMinutes=e,Qu}var Gd={},ML;function u5(){if(ML)return Gd;ML=1,Object.defineProperty(Gd,"__esModule",{value:!0});const e=wf();class a{constructor(n,i=!0){this.requestManager=n,this.checkedBlocks={},this.saveBlocks=i,i&&(this.savedBlocks={}),this.requests=0}async fillBlockTime(){const n=await this.getBlockWrapper("latest"),i=await this.getBlockWrapper(1);this.blockTime=(n.timestamp-i.timestamp)/Number(n.number)-1,this.firstTimestamp=i.timestamp}async getDate(n,i=!0){const o=n/1e3,u=Date.now()/1e3;if((typeof this.firstTimestamp>"u"||typeof this.blockTime>"u")&&await this.fillBlockTime(),o<this.firstTimestamp)return{block:1,timestamp:o};if(o>=u||o>this.savedBlocks.latest.timestamp)return{block:(0,e.toBigNumber)(await this.requestManager.eth_blockNumber()).toNumber(),timestamp:o};this.checkedBlocks[o]=[];const c=await this.getBlockWrapper(Math.ceil((o-this.firstTimestamp/this.blockTime)/1e3));return{block:await this.findBetter(o,c,i),timestamp:o}}async findBetter(n,i,o,u=this.blockTime){if(await this.isBetterBlock(n,i,o))return i.number;const c=n-i.timestamp;let f=Math.ceil(c/u);f===0&&(f=c<0?-1:1);const p=await this.getBlockWrapper(this.getNextBlock(n,i.number,f));return u=Math.abs((i.timestamp-p.timestamp)/(i.number-p.number)),this.findBetter(n,p,o,u)}async isBetterBlock(n,i,o){const u=i.timestamp;if(o){if(u<n)return!1;const c=await this.getBlockWrapper(i.number-1);if(u>=n&&c.timestamp<n)return!0}else{if(u>=n)return!1;const c=await this.getBlockWrapper(i.number+1);if(u<n&&c.timestamp>=n)return!0}return!1}getNextBlock(n,i,o){const u=i+o;return this.checkedBlocks[n].includes(u)?this.getNextBlock(n,i,o<0?++o:--o):(this.checkedBlocks[n].push(u),u)}async getBlockWrapper(n){if(!this.saveBlocks){const o=await this.requestManager.eth_getBlockByNumber(n,!1);return{number:(0,e.toBigNumber)(o.number).toNumber(),timestamp:(0,e.toBigNumber)(o.timestamp).toNumber()}}if(this.savedBlocks[n.toString()])return this.savedBlocks[n];if(typeof n=="number"&&this.savedBlocks.latest&&this.savedBlocks.latest.number<=n)return this.savedBlocks.latest;const{timestamp:i}=await this.requestManager.eth_getBlockByNumber(n,!1);return this.savedBlocks[n.toString()]={number:(0,e.toBigNumber)(n==="latest"?await this.requestManager.eth_blockNumber():n).toNumber(),timestamp:(0,e.toBigNumber)(i).toNumber()},this.requests++,this.savedBlocks[n.toString()]}}return Gd.default=a,Gd}var Lr={},nb={},ib={},Hr={},NL;function g0(){if(NL)return Hr;NL=1,Object.defineProperty(Hr,"__esModule",{value:!0}),Hr.output=Hr.exists=Hr.hash=Hr.bytes=Hr.bool=Hr.number=void 0;function e(c){if(!Number.isSafeInteger(c)||c<0)throw new Error(`Wrong positive integer: ${c}`)}Hr.number=e;function a(c){if(typeof c!="boolean")throw new Error(`Expected boolean, not ${c}`)}Hr.bool=a;function t(c,...f){if(!(c instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(f.length>0&&!f.includes(c.length))throw new TypeError(`Expected Uint8Array of length ${f}, not of length=${c.length}`)}Hr.bytes=t;function n(c){if(typeof c!="function"||typeof c.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");e(c.outputLen),e(c.blockLen)}Hr.hash=n;function i(c,f=!0){if(c.destroyed)throw new Error("Hash instance has been destroyed");if(f&&c.finished)throw new Error("Hash#digest() has already been called")}Hr.exists=i;function o(c,f){t(c);const p=f.outputLen;if(c.length<p)throw new Error(`digestInto() expects output buffer of length at least ${p}`)}Hr.output=o;const u={number:e,bool:a,bytes:t,hash:n,exists:i,output:o};return Hr.default=u,Hr}var ab={},Zu={},CL;function l5(){return CL||(CL=1,Object.defineProperty(Zu,"__esModule",{value:!0}),Zu.crypto=void 0,Zu.crypto={node:void 0,web:typeof self=="object"&&"crypto"in self?self.crypto:void 0}),Zu}var jL;function Rl(){return jL||(jL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.randomBytes=e.wrapConstructorWithOpts=e.wrapConstructor=e.checkOpts=e.Hash=e.concatBytes=e.toBytes=e.utf8ToBytes=e.asyncLoop=e.nextTick=e.hexToBytes=e.bytesToHex=e.isLE=e.rotr=e.createView=e.u32=e.u8=void 0;const a=l5(),t=T=>new Uint8Array(T.buffer,T.byteOffset,T.byteLength);e.u8=t;const n=T=>new Uint32Array(T.buffer,T.byteOffset,Math.floor(T.byteLength/4));e.u32=n;const i=T=>new DataView(T.buffer,T.byteOffset,T.byteLength);e.createView=i;const o=(T,v)=>T<<32-v|T>>>v;if(e.rotr=o,e.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68,!e.isLE)throw new Error("Non little-endian hardware is not supported");const u=Array.from({length:256},(T,v)=>v.toString(16).padStart(2,"0"));function c(T){if(!(T instanceof Uint8Array))throw new Error("Uint8Array expected");let v="";for(let O=0;O<T.length;O++)v+=u[T[O]];return v}e.bytesToHex=c;function f(T){if(typeof T!="string")throw new TypeError("hexToBytes: expected string, got "+typeof T);if(T.length%2)throw new Error("hexToBytes: received invalid unpadded hex");const v=new Uint8Array(T.length/2);for(let O=0;O<v.length;O++){const C=O*2,z=T.slice(C,C+2),U=Number.parseInt(z,16);if(Number.isNaN(U)||U<0)throw new Error("Invalid byte sequence");v[O]=U}return v}e.hexToBytes=f;const p=async()=>{};e.nextTick=p;async function y(T,v,O){let C=Date.now();for(let z=0;z<T;z++){O(z);const U=Date.now()-C;U>=0&&U<v||(await(0,e.nextTick)(),C+=U)}}e.asyncLoop=y;function m(T){if(typeof T!="string")throw new TypeError(`utf8ToBytes expected string, got ${typeof T}`);return new TextEncoder().encode(T)}e.utf8ToBytes=m;function g(T){if(typeof T=="string"&&(T=m(T)),!(T instanceof Uint8Array))throw new TypeError(`Expected input type is Uint8Array (got ${typeof T})`);return T}e.toBytes=g;function S(...T){if(!T.every(C=>C instanceof Uint8Array))throw new Error("Uint8Array list expected");if(T.length===1)return T[0];const v=T.reduce((C,z)=>C+z.length,0),O=new Uint8Array(v);for(let C=0,z=0;C<T.length;C++){const U=T[C];O.set(U,z),z+=U.length}return O}e.concatBytes=S;class M{clone(){return this._cloneInto()}}e.Hash=M;const R=T=>Object.prototype.toString.call(T)==="[object Object]"&&T.constructor===Object;function I(T,v){if(v!==void 0&&(typeof v!="object"||!R(v)))throw new TypeError("Options should be object or undefined");return Object.assign(T,v)}e.checkOpts=I;function N(T){const v=C=>T().update(g(C)).digest(),O=T();return v.outputLen=O.outputLen,v.blockLen=O.blockLen,v.create=()=>T(),v}e.wrapConstructor=N;function E(T){const v=(C,z)=>T(z).update(g(C)).digest(),O=T({});return v.outputLen=O.outputLen,v.blockLen=O.blockLen,v.create=C=>T(C),v}e.wrapConstructorWithOpts=E;function P(T=32){if(a.crypto.web)return a.crypto.web.getRandomValues(new Uint8Array(T));if(a.crypto.node)return new Uint8Array(a.crypto.node.randomBytes(T).buffer);throw new Error("The environment doesn't have randomBytes function")}e.randomBytes=P})(ab)),ab}var LL;function c5(){return LL||(LL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.hmac=void 0;const a=g0(),t=Rl();class n extends t.Hash{constructor(u,c){super(),this.finished=!1,this.destroyed=!1,a.default.hash(u);const f=(0,t.toBytes)(c);if(this.iHash=u.create(),typeof this.iHash.update!="function")throw new TypeError("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const p=this.blockLen,y=new Uint8Array(p);y.set(f.length>p?u.create().update(f).digest():f);for(let m=0;m<y.length;m++)y[m]^=54;this.iHash.update(y),this.oHash=u.create();for(let m=0;m<y.length;m++)y[m]^=106;this.oHash.update(y),y.fill(0)}update(u){return a.default.exists(this),this.iHash.update(u),this}digestInto(u){a.default.exists(this),a.default.bytes(u,this.outputLen),this.finished=!0,this.iHash.digestInto(u),this.oHash.update(u),this.oHash.digestInto(u),this.destroy()}digest(){const u=new Uint8Array(this.oHash.outputLen);return this.digestInto(u),u}_cloneInto(u){u||(u=Object.create(Object.getPrototypeOf(this),{}));const{oHash:c,iHash:f,finished:p,destroyed:y,blockLen:m,outputLen:g}=this;return u=u,u.finished=p,u.destroyed=y,u.blockLen=m,u.outputLen=g,u.oHash=c._cloneInto(u.oHash),u.iHash=f._cloneInto(u.iHash),u}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const i=(o,u,c)=>new n(o,u).update(c).digest();e.hmac=i,e.hmac.create=(o,u)=>new n(o,u)})(ib)),ib}var Zo={},$u={},DL;function d5(){if(DL)return $u;DL=1,Object.defineProperty($u,"__esModule",{value:!0}),$u.SHA2=void 0;const e=g0(),a=Rl();function t(i,o,u,c){if(typeof i.setBigUint64=="function")return i.setBigUint64(o,u,c);const f=BigInt(32),p=BigInt(4294967295),y=Number(u>>f&p),m=Number(u&p),g=c?4:0,S=c?0:4;i.setUint32(o+g,y,c),i.setUint32(o+S,m,c)}class n extends a.Hash{constructor(o,u,c,f){super(),this.blockLen=o,this.outputLen=u,this.padOffset=c,this.isLE=f,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(o),this.view=(0,a.createView)(this.buffer)}update(o){e.default.exists(this);const{view:u,buffer:c,blockLen:f}=this;o=(0,a.toBytes)(o);const p=o.length;for(let y=0;y<p;){const m=Math.min(f-this.pos,p-y);if(m===f){const g=(0,a.createView)(o);for(;f<=p-y;y+=f)this.process(g,y);continue}c.set(o.subarray(y,y+m),this.pos),this.pos+=m,y+=m,this.pos===f&&(this.process(u,0),this.pos=0)}return this.length+=o.length,this.roundClean(),this}digestInto(o){e.default.exists(this),e.default.output(o,this),this.finished=!0;const{buffer:u,view:c,blockLen:f,isLE:p}=this;let{pos:y}=this;u[y++]=128,this.buffer.subarray(y).fill(0),this.padOffset>f-y&&(this.process(c,0),y=0);for(let R=y;R<f;R++)u[R]=0;t(c,f-8,BigInt(this.length*8),p),this.process(c,0);const m=(0,a.createView)(o),g=this.outputLen;if(g%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const S=g/4,M=this.get();if(S>M.length)throw new Error("_sha2: outputLen bigger than state");for(let R=0;R<S;R++)m.setUint32(4*R,M[R],p)}digest(){const{buffer:o,outputLen:u}=this;this.digestInto(o);const c=o.slice(0,u);return this.destroy(),c}_cloneInto(o){o||(o=new this.constructor),o.set(...this.get());const{blockLen:u,buffer:c,length:f,finished:p,destroyed:y,pos:m}=this;return o.length=f,o.pos=m,o.finished=p,o.destroyed=y,f%u&&o.buffer.set(c),o}}return $u.SHA2=n,$u}var qL;function Rk(){if(qL)return Zo;qL=1,Object.defineProperty(Zo,"__esModule",{value:!0}),Zo.sha224=Zo.sha256=void 0;const e=d5(),a=Rl(),t=(p,y,m)=>p&y^~p&m,n=(p,y,m)=>p&y^p&m^y&m,i=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),o=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),u=new Uint32Array(64);class c extends e.SHA2{constructor(){super(64,32,8,!1),this.A=o[0]|0,this.B=o[1]|0,this.C=o[2]|0,this.D=o[3]|0,this.E=o[4]|0,this.F=o[5]|0,this.G=o[6]|0,this.H=o[7]|0}get(){const{A:y,B:m,C:g,D:S,E:M,F:R,G:I,H:N}=this;return[y,m,g,S,M,R,I,N]}set(y,m,g,S,M,R,I,N){this.A=y|0,this.B=m|0,this.C=g|0,this.D=S|0,this.E=M|0,this.F=R|0,this.G=I|0,this.H=N|0}process(y,m){for(let T=0;T<16;T++,m+=4)u[T]=y.getUint32(m,!1);for(let T=16;T<64;T++){const v=u[T-15],O=u[T-2],C=(0,a.rotr)(v,7)^(0,a.rotr)(v,18)^v>>>3,z=(0,a.rotr)(O,17)^(0,a.rotr)(O,19)^O>>>10;u[T]=z+u[T-7]+C+u[T-16]|0}let{A:g,B:S,C:M,D:R,E:I,F:N,G:E,H:P}=this;for(let T=0;T<64;T++){const v=(0,a.rotr)(I,6)^(0,a.rotr)(I,11)^(0,a.rotr)(I,25),O=P+v+t(I,N,E)+i[T]+u[T]|0,z=((0,a.rotr)(g,2)^(0,a.rotr)(g,13)^(0,a.rotr)(g,22))+n(g,S,M)|0;P=E,E=N,N=I,I=R+O|0,R=M,M=S,S=g,g=O+z|0}g=g+this.A|0,S=S+this.B|0,M=M+this.C|0,R=R+this.D|0,I=I+this.E|0,N=N+this.F|0,E=E+this.G|0,P=P+this.H|0,this.set(g,S,M,R,I,N,E,P)}roundClean(){u.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class f extends c{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}return Zo.sha256=(0,a.wrapConstructor)(()=>new c),Zo.sha224=(0,a.wrapConstructor)(()=>new f),Zo}var ob={};const f5={},p5=Object.freeze(Object.defineProperty({__proto__:null,default:f5},Symbol.toStringTag,{value:"Module"})),y5=F2(p5);var kL;function UL(){return kL||(kL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.utils=e.schnorr=e.verify=e.signSync=e.sign=e.getSharedSecret=e.recoverPublicKey=e.getPublicKey=e.Signature=e.Point=e.CURVE=void 0;const a=y5,t=BigInt(0),n=BigInt(1),i=BigInt(2),o=BigInt(3),u=BigInt(8),c=Object.freeze({a:t,b:BigInt(7),P:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:n,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee")});e.CURVE=c;const f=(te,F)=>(te+F/i)/F,p={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar(te){const{n:F}=c,Z=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),ce=-n*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),Te=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),Pe=Z,Ge=BigInt("0x100000000000000000000000000000000"),Ke=f(Pe*te,F),mt=f(-ce*te,F);let ut=k(te-Ke*Z-mt*Te,F),_t=k(-Ke*ce-mt*Pe,F);const Tt=ut>Ge,At=_t>Ge;if(Tt&&(ut=F-ut),At&&(_t=F-_t),ut>Ge||_t>Ge)throw new Error("splitScalarEndo: Endomorphism failed, k="+te);return{k1neg:Tt,k1:ut,k2neg:At,k2:_t}}},y=32,m=32,g=32,S=y+1,M=2*y+1;function R(te){const{a:F,b:Z}=c,ce=k(te*te),Te=k(ce*te);return k(Te+F*te+Z)}const I=c.a===t;class N extends Error{constructor(F){super(F)}}function E(te){if(!(te instanceof P))throw new TypeError("JacobianPoint expected")}class P{constructor(F,Z,ce){this.x=F,this.y=Z,this.z=ce}static fromAffine(F){if(!(F instanceof O))throw new TypeError("JacobianPoint#fromAffine: expected Point");return F.equals(O.ZERO)?P.ZERO:new P(F.x,F.y,n)}static toAffineBatch(F){const Z=Re(F.map(ce=>ce.z));return F.map((ce,Te)=>ce.toAffine(Z[Te]))}static normalizeZ(F){return P.toAffineBatch(F).map(P.fromAffine)}equals(F){E(F);const{x:Z,y:ce,z:Te}=this,{x:Pe,y:Ge,z:Ke}=F,mt=k(Te*Te),ut=k(Ke*Ke),_t=k(Z*ut),Tt=k(Pe*mt),At=k(k(ce*Ke)*ut),xt=k(k(Ge*Te)*mt);return _t===Tt&&At===xt}negate(){return new P(this.x,k(-this.y),this.z)}double(){const{x:F,y:Z,z:ce}=this,Te=k(F*F),Pe=k(Z*Z),Ge=k(Pe*Pe),Ke=F+Pe,mt=k(i*(k(Ke*Ke)-Te-Ge)),ut=k(o*Te),_t=k(ut*ut),Tt=k(_t-i*mt),At=k(ut*(mt-Tt)-u*Ge),xt=k(i*Z*ce);return new P(Tt,At,xt)}add(F){E(F);const{x:Z,y:ce,z:Te}=this,{x:Pe,y:Ge,z:Ke}=F;if(Pe===t||Ge===t)return this;if(Z===t||ce===t)return F;const mt=k(Te*Te),ut=k(Ke*Ke),_t=k(Z*ut),Tt=k(Pe*mt),At=k(k(ce*Ke)*ut),xt=k(k(Ge*Te)*mt),Jt=k(Tt-_t),gr=k(xt-At);if(Jt===t)return gr===t?this.double():P.ZERO;const Dr=k(Jt*Jt),bn=k(Jt*Dr),qn=k(_t*Dr),ta=k(gr*gr-bn-i*qn),Rr=k(gr*(qn-ta)-At*bn),mi=k(Te*Ke*Jt);return new P(ta,Rr,mi)}subtract(F){return this.add(F.negate())}multiplyUnsafe(F){const Z=P.ZERO;if(typeof F=="bigint"&&F===t)return Z;let ce=B(F);if(ce===n)return this;if(!I){let Tt=Z,At=this;for(;ce>t;)ce&n&&(Tt=Tt.add(At)),At=At.double(),ce>>=n;return Tt}let{k1neg:Te,k1:Pe,k2neg:Ge,k2:Ke}=p.splitScalar(ce),mt=Z,ut=Z,_t=this;for(;Pe>t||Ke>t;)Pe&n&&(mt=mt.add(_t)),Ke&n&&(ut=ut.add(_t)),_t=_t.double(),Pe>>=n,Ke>>=n;return Te&&(mt=mt.negate()),Ge&&(ut=ut.negate()),ut=new P(k(ut.x*p.beta),ut.y,ut.z),mt.add(ut)}precomputeWindow(F){const Z=I?128/F+1:256/F+1,ce=[];let Te=this,Pe=Te;for(let Ge=0;Ge<Z;Ge++){Pe=Te,ce.push(Pe);for(let Ke=1;Ke<2**(F-1);Ke++)Pe=Pe.add(Te),ce.push(Pe);Te=Pe.double()}return ce}wNAF(F,Z){!Z&&this.equals(P.BASE)&&(Z=O.BASE);const ce=Z&&Z._WINDOW_SIZE||1;if(256%ce)throw new Error("Point#wNAF: Invalid precomputation window, must be power of 2");let Te=Z&&v.get(Z);Te||(Te=this.precomputeWindow(ce),Z&&ce!==1&&(Te=P.normalizeZ(Te),v.set(Z,Te)));let Pe=P.ZERO,Ge=P.BASE;const Ke=1+(I?128/ce:256/ce),mt=2**(ce-1),ut=BigInt(2**ce-1),_t=2**ce,Tt=BigInt(ce);for(let At=0;At<Ke;At++){const xt=At*mt;let Jt=Number(F&ut);F>>=Tt,Jt>mt&&(Jt-=_t,F+=n);const gr=xt,Dr=xt+Math.abs(Jt)-1,bn=At%2!==0,qn=Jt<0;Jt===0?Ge=Ge.add(T(bn,Te[gr])):Pe=Pe.add(T(qn,Te[Dr]))}return{p:Pe,f:Ge}}multiply(F,Z){let ce=B(F),Te,Pe;if(I){const{k1neg:Ge,k1:Ke,k2neg:mt,k2:ut}=p.splitScalar(ce);let{p:_t,f:Tt}=this.wNAF(Ke,Z),{p:At,f:xt}=this.wNAF(ut,Z);_t=T(Ge,_t),At=T(mt,At),At=new P(k(At.x*p.beta),At.y,At.z),Te=_t.add(At),Pe=Tt.add(xt)}else{const{p:Ge,f:Ke}=this.wNAF(ce,Z);Te=Ge,Pe=Ke}return P.normalizeZ([Te,Pe])[0]}toAffine(F){const{x:Z,y:ce,z:Te}=this,Pe=this.equals(P.ZERO);F==null&&(F=Pe?u:oe(Te));const Ge=F,Ke=k(Ge*Ge),mt=k(Ke*Ge),ut=k(Z*Ke),_t=k(ce*mt),Tt=k(Te*Ge);if(Pe)return O.ZERO;if(Tt!==n)throw new Error("invZ was invalid");return new O(ut,_t)}}P.BASE=new P(c.Gx,c.Gy,n),P.ZERO=new P(t,n,t);function T(te,F){const Z=F.negate();return te?Z:F}const v=new WeakMap;class O{constructor(F,Z){this.x=F,this.y=Z}_setWindowSize(F){this._WINDOW_SIZE=F,v.delete(this)}hasEvenY(){return this.y%i===t}static fromCompressedHex(F){const Z=F.length===32,ce=X(Z?F:F.subarray(1));if(!je(ce))throw new Error("Point is not on curve");const Te=R(ce);let Pe=W(Te);const Ge=(Pe&n)===n;Z?Ge&&(Pe=k(-Pe)):(F[0]&1)===1!==Ge&&(Pe=k(-Pe));const Ke=new O(ce,Pe);return Ke.assertValidity(),Ke}static fromUncompressedHex(F){const Z=X(F.subarray(1,y+1)),ce=X(F.subarray(y+1,y*2+1)),Te=new O(Z,ce);return Te.assertValidity(),Te}static fromHex(F){const Z=j(F),ce=Z.length,Te=Z[0];if(ce===y)return this.fromCompressedHex(Z);if(ce===S&&(Te===2||Te===3))return this.fromCompressedHex(Z);if(ce===M&&Te===4)return this.fromUncompressedHex(Z);throw new Error(`Point.fromHex: received invalid point. Expected 32-${S} compressed bytes or ${M} uncompressed bytes, not ${ce}`)}static fromPrivateKey(F){return O.BASE.multiply(Je(F))}static fromSignature(F,Z,ce){const{r:Te,s:Pe}=Lt(Z);if(![0,1,2,3].includes(ce))throw new Error("Cannot recover: invalid recovery bit");const Ge=Ue(j(F)),{n:Ke}=c,mt=ce===2||ce===3?Te+Ke:Te,ut=oe(mt,Ke),_t=k(-Ge*ut,Ke),Tt=k(Pe*ut,Ke),At=ce&1?"03":"02",xt=O.fromHex(At+Me(mt)),Jt=O.BASE.multiplyAndAddUnsafe(xt,_t,Tt);if(!Jt)throw new Error("Cannot recover signature: point at infinify");return Jt.assertValidity(),Jt}toRawBytes(F=!1){return ue(this.toHex(F))}toHex(F=!1){const Z=Me(this.x);return F?`${this.hasEvenY()?"02":"03"}${Z}`:`04${Z}${Me(this.y)}`}toHexX(){return this.toHex(!0).slice(2)}toRawX(){return this.toRawBytes(!0).slice(1)}assertValidity(){const F="Point is not on elliptic curve",{x:Z,y:ce}=this;if(!je(Z)||!je(ce))throw new Error(F);const Te=k(ce*ce),Pe=R(Z);if(k(Te-Pe)!==t)throw new Error(F)}equals(F){return this.x===F.x&&this.y===F.y}negate(){return new O(this.x,k(-this.y))}double(){return P.fromAffine(this).double().toAffine()}add(F){return P.fromAffine(this).add(P.fromAffine(F)).toAffine()}subtract(F){return this.add(F.negate())}multiply(F){return P.fromAffine(this).multiply(F,this).toAffine()}multiplyAndAddUnsafe(F,Z,ce){const Te=P.fromAffine(this),Pe=Z===t||Z===n||this!==O.BASE?Te.multiplyUnsafe(Z):Te.multiply(Z),Ge=P.fromAffine(F).multiplyUnsafe(ce),Ke=Pe.add(Ge);return Ke.equals(P.ZERO)?void 0:Ke.toAffine()}}e.Point=O,O.BASE=new O(c.Gx,c.Gy),O.ZERO=new O(t,t);function C(te){return Number.parseInt(te[0],16)>=8?"00"+te:te}function z(te){if(te.length<2||te[0]!==2)throw new Error(`Invalid signature integer tag: ${be(te)}`);const F=te[1],Z=te.subarray(2,F+2);if(!F||Z.length!==F)throw new Error("Invalid signature integer: wrong length");if(Z[0]===0&&Z[1]<=127)throw new Error("Invalid signature integer: trailing length");return{data:X(Z),left:te.subarray(F+2)}}function U(te){if(te.length<2||te[0]!=48)throw new Error(`Invalid signature tag: ${be(te)}`);if(te[1]!==te.length-2)throw new Error("Invalid signature: incorrect length");const{data:F,left:Z}=z(te.subarray(2)),{data:ce,left:Te}=z(Z);if(Te.length)throw new Error(`Invalid signature: left bytes after parsing: ${be(Te)}`);return{r:F,s:ce}}class K{constructor(F,Z){this.r=F,this.s=Z,this.assertValidity()}static fromCompact(F){const Z=F instanceof Uint8Array,ce="Signature.fromCompact";if(typeof F!="string"&&!Z)throw new TypeError(`${ce}: Expected string or Uint8Array`);const Te=Z?be(F):F;if(Te.length!==128)throw new Error(`${ce}: Expected 64-byte hex`);return new K(we(Te.slice(0,64)),we(Te.slice(64,128)))}static fromDER(F){const Z=F instanceof Uint8Array;if(typeof F!="string"&&!Z)throw new TypeError("Signature.fromDER: Expected string or Uint8Array");const{r:ce,s:Te}=U(Z?F:ue(F));return new K(ce,Te)}static fromHex(F){return this.fromDER(F)}assertValidity(){const{r:F,s:Z}=this;if(!Ae(F))throw new Error("Invalid Signature: r must be 0 < r < n");if(!Ae(Z))throw new Error("Invalid Signature: s must be 0 < s < n")}hasHighS(){const F=c.n>>n;return this.s>F}normalizeS(){return this.hasHighS()?new K(this.r,k(-this.s,c.n)):this}toDERRawBytes(){return ue(this.toDERHex())}toDERHex(){const F=C(qe(this.s)),Z=C(qe(this.r)),ce=F.length/2,Te=Z.length/2,Pe=qe(ce),Ge=qe(Te);return`30${qe(Te+ce+4)}02${Ge}${Z}02${Pe}${F}`}toRawBytes(){return this.toDERRawBytes()}toHex(){return this.toDERHex()}toCompactRawBytes(){return ue(this.toCompactHex())}toCompactHex(){return Me(this.r)+Me(this.s)}}e.Signature=K;function ae(...te){if(!te.every(ce=>ce instanceof Uint8Array))throw new Error("Uint8Array list expected");if(te.length===1)return te[0];const F=te.reduce((ce,Te)=>ce+Te.length,0),Z=new Uint8Array(F);for(let ce=0,Te=0;ce<te.length;ce++){const Pe=te[ce];Z.set(Pe,Te),Te+=Pe.length}return Z}const _e=Array.from({length:256},(te,F)=>F.toString(16).padStart(2,"0"));function be(te){if(!(te instanceof Uint8Array))throw new Error("Expected Uint8Array");let F="";for(let Z=0;Z<te.length;Z++)F+=_e[te[Z]];return F}const ye=BigInt("0x10000000000000000000000000000000000000000000000000000000000000000");function Me(te){if(typeof te!="bigint")throw new Error("Expected bigint");if(!(t<=te&&te<ye))throw new Error("Expected number 0 <= n < 2^256");return te.toString(16).padStart(64,"0")}function Ne(te){const F=ue(Me(te));if(F.length!==32)throw new Error("Error: expected 32 bytes");return F}function qe(te){const F=te.toString(16);return F.length&1?`0${F}`:F}function we(te){if(typeof te!="string")throw new TypeError("hexToNumber: expected string, got "+typeof te);return BigInt(`0x${te}`)}function ue(te){if(typeof te!="string")throw new TypeError("hexToBytes: expected string, got "+typeof te);if(te.length%2)throw new Error("hexToBytes: received invalid unpadded hex"+te.length);const F=new Uint8Array(te.length/2);for(let Z=0;Z<F.length;Z++){const ce=Z*2,Te=te.slice(ce,ce+2),Pe=Number.parseInt(Te,16);if(Number.isNaN(Pe)||Pe<0)throw new Error("Invalid byte sequence");F[Z]=Pe}return F}function X(te){return we(be(te))}function j(te){return te instanceof Uint8Array?Uint8Array.from(te):ue(te)}function B(te){if(typeof te=="number"&&Number.isSafeInteger(te)&&te>0)return BigInt(te);if(typeof te=="bigint"&&Ae(te))return te;throw new TypeError("Expected valid private scalar: 0 < scalar < curve.n")}function k(te,F=c.P){const Z=te%F;return Z>=t?Z:F+Z}function L(te,F){const{P:Z}=c;let ce=te;for(;F-- >t;)ce*=ce,ce%=Z;return ce}function W(te){const{P:F}=c,Z=BigInt(6),ce=BigInt(11),Te=BigInt(22),Pe=BigInt(23),Ge=BigInt(44),Ke=BigInt(88),mt=te*te*te%F,ut=mt*mt*te%F,_t=L(ut,o)*ut%F,Tt=L(_t,o)*ut%F,At=L(Tt,i)*mt%F,xt=L(At,ce)*At%F,Jt=L(xt,Te)*xt%F,gr=L(Jt,Ge)*Jt%F,Dr=L(gr,Ke)*gr%F,bn=L(Dr,Ge)*Jt%F,qn=L(bn,o)*ut%F,ta=L(qn,Pe)*xt%F,Rr=L(ta,Z)*mt%F,mi=L(Rr,i);if(mi*mi%F!==te)throw new Error("Cannot find square root");return mi}function oe(te,F=c.P){if(te===t||F<=t)throw new Error(`invert: expected positive integers, got n=${te} mod=${F}`);let Z=k(te,F),ce=F,Te=t,Pe=n;for(;Z!==t;){const Ke=ce/Z,mt=ce%Z,ut=Te-Pe*Ke;ce=Z,Z=mt,Te=Pe,Pe=ut}if(ce!==n)throw new Error("invert: does not exist");return k(Te,F)}function Re(te,F=c.P){const Z=new Array(te.length),ce=te.reduce((Pe,Ge,Ke)=>Ge===t?Pe:(Z[Ke]=Pe,k(Pe*Ge,F)),n),Te=oe(ce,F);return te.reduceRight((Pe,Ge,Ke)=>Ge===t?Pe:(Z[Ke]=k(Pe*Z[Ke],F),k(Pe*Ge,F)),Te),Z}function Se(te){const F=te.length*8-m*8,Z=X(te);return F>0?Z>>BigInt(F):Z}function Ue(te,F=!1){const Z=Se(te);if(F)return Z;const{n:ce}=c;return Z>=ce?Z-ce:Z}let Ce,se;class de{constructor(F,Z){if(this.hashLen=F,this.qByteLen=Z,typeof F!="number"||F<2)throw new Error("hashLen must be a number");if(typeof Z!="number"||Z<2)throw new Error("qByteLen must be a number");this.v=new Uint8Array(F).fill(1),this.k=new Uint8Array(F).fill(0),this.counter=0}hmac(...F){return e.utils.hmacSha256(this.k,...F)}hmacSync(...F){return se(this.k,...F)}checkSync(){if(typeof se!="function")throw new N("hmacSha256Sync needs to be set")}incr(){if(this.counter>=1e3)throw new Error("Tried 1,000 k values for sign(), all were invalid");this.counter+=1}async reseed(F=new Uint8Array){this.k=await this.hmac(this.v,Uint8Array.from([0]),F),this.v=await this.hmac(this.v),F.length!==0&&(this.k=await this.hmac(this.v,Uint8Array.from([1]),F),this.v=await this.hmac(this.v))}reseedSync(F=new Uint8Array){this.checkSync(),this.k=this.hmacSync(this.v,Uint8Array.from([0]),F),this.v=this.hmacSync(this.v),F.length!==0&&(this.k=this.hmacSync(this.v,Uint8Array.from([1]),F),this.v=this.hmacSync(this.v))}async generate(){this.incr();let F=0;const Z=[];for(;F<this.qByteLen;){this.v=await this.hmac(this.v);const ce=this.v.slice();Z.push(ce),F+=this.v.length}return ae(...Z)}generateSync(){this.checkSync(),this.incr();let F=0;const Z=[];for(;F<this.qByteLen;){this.v=this.hmacSync(this.v);const ce=this.v.slice();Z.push(ce),F+=this.v.length}return ae(...Z)}}function Ae(te){return t<te&&te<c.n}function je(te){return t<te&&te<c.P}function Ye(te,F,Z,ce=!0){const{n:Te}=c,Pe=Ue(te,!0);if(!Ae(Pe))return;const Ge=oe(Pe,Te),Ke=O.BASE.multiply(Pe),mt=k(Ke.x,Te);if(mt===t)return;const ut=k(Ge*k(F+Z*mt,Te),Te);if(ut===t)return;let _t=new K(mt,ut),Tt=(Ke.x===_t.r?0:2)|Number(Ke.y&n);return ce&&_t.hasHighS()&&(_t=_t.normalizeS(),Tt^=1),{sig:_t,recovery:Tt}}function Je(te){let F;if(typeof te=="bigint")F=te;else if(typeof te=="number"&&Number.isSafeInteger(te)&&te>0)F=BigInt(te);else if(typeof te=="string"){if(te.length!==2*m)throw new Error("Expected 32 bytes of private key");F=we(te)}else if(te instanceof Uint8Array){if(te.length!==m)throw new Error("Expected 32 bytes of private key");F=X(te)}else throw new TypeError("Expected valid private key");if(!Ae(F))throw new Error("Expected private key: 0 < key < n");return F}function Vt(te){return te instanceof O?(te.assertValidity(),te):O.fromHex(te)}function Lt(te){if(te instanceof K)return te.assertValidity(),te;try{return K.fromDER(te)}catch{return K.fromCompact(te)}}function rr(te,F=!1){return O.fromPrivateKey(te).toRawBytes(F)}e.getPublicKey=rr;function Bt(te,F,Z,ce=!1){return O.fromSignature(te,F,Z).toRawBytes(ce)}e.recoverPublicKey=Bt;function Ft(te){const F=te instanceof Uint8Array,Z=typeof te=="string",ce=(F||Z)&&te.length;return F?ce===S||ce===M:Z?ce===S*2||ce===M*2:te instanceof O}function zr(te,F,Z=!1){if(Ft(te))throw new TypeError("getSharedSecret: first arg must be private key");if(!Ft(F))throw new TypeError("getSharedSecret: second arg must be public key");const ce=Vt(F);return ce.assertValidity(),ce.multiply(Je(te)).toRawBytes(Z)}e.getSharedSecret=zr;function sr(te){const F=te.length>y?te.slice(0,y):te;return X(F)}function gn(te){const F=sr(te),Z=k(F,c.n);return Qr(Z<t?F:Z)}function Qr(te){return Ne(te)}function Zr(te,F,Z){if(te==null)throw new Error(`sign: expected valid message hash, not "${te}"`);const ce=j(te),Te=Je(F),Pe=[Qr(Te),gn(ce)];if(Z!=null){Z===!0&&(Z=e.utils.randomBytes(y));const mt=j(Z);if(mt.length!==y)throw new Error(`sign: Expected ${y} bytes of extra data`);Pe.push(mt)}const Ge=ae(...Pe),Ke=sr(ce);return{seed:Ge,m:Ke,d:Te}}function cn(te,F){const{sig:Z,recovery:ce}=te,{der:Te,recovered:Pe}=Object.assign({canonical:!0,der:!0},F),Ge=Te?Z.toDERRawBytes():Z.toCompactRawBytes();return Pe?[Ge,ce]:Ge}async function ur(te,F,Z={}){const{seed:ce,m:Te,d:Pe}=Zr(te,F,Z.extraEntropy),Ge=new de(g,m);await Ge.reseed(ce);let Ke;for(;!(Ke=Ye(await Ge.generate(),Te,Pe,Z.canonical));)await Ge.reseed();return cn(Ke,Z)}e.sign=ur;function dn(te,F,Z={}){const{seed:ce,m:Te,d:Pe}=Zr(te,F,Z.extraEntropy),Ge=new de(g,m);Ge.reseedSync(ce);let Ke;for(;!(Ke=Ye(Ge.generateSync(),Te,Pe,Z.canonical));)Ge.reseedSync();return cn(Ke,Z)}e.signSync=dn;const Pr={strict:!0};function vn(te,F,Z,ce=Pr){let Te;try{Te=Lt(te),F=j(F)}catch{return!1}const{r:Pe,s:Ge}=Te;if(ce.strict&&Te.hasHighS())return!1;const Ke=Ue(F);let mt;try{mt=Vt(Z)}catch{return!1}const{n:ut}=c,_t=oe(Ge,ut),Tt=k(Ke*_t,ut),At=k(Pe*_t,ut),xt=O.BASE.multiplyAndAddUnsafe(mt,Tt,At);return xt?k(xt.x,ut)===Pe:!1}e.verify=vn;function $r(te){return k(X(te),c.n)}class _n{constructor(F,Z){this.r=F,this.s=Z,this.assertValidity()}static fromHex(F){const Z=j(F);if(Z.length!==64)throw new TypeError(`SchnorrSignature.fromHex: expected 64 bytes, not ${Z.length}`);const ce=X(Z.subarray(0,32)),Te=X(Z.subarray(32,64));return new _n(ce,Te)}assertValidity(){const{r:F,s:Z}=this;if(!je(F)||!Ae(Z))throw new Error("Invalid signature")}toHex(){return Me(this.r)+Me(this.s)}toRawBytes(){return ue(this.toHex())}}function xr(te){return O.fromPrivateKey(te).toRawX()}class ea{constructor(F,Z,ce=e.utils.randomBytes()){if(F==null)throw new TypeError(`sign: Expected valid message, not "${F}"`);this.m=j(F);const{x:Te,scalar:Pe}=this.getScalar(Je(Z));if(this.px=Te,this.d=Pe,this.rand=j(ce),this.rand.length!==32)throw new TypeError("sign: Expected 32 bytes of aux randomness")}getScalar(F){const Z=O.fromPrivateKey(F),ce=Z.hasEvenY()?F:c.n-F;return{point:Z,scalar:ce,x:Z.toRawX()}}initNonce(F,Z){return Ne(F^X(Z))}finalizeNonce(F){const Z=k(X(F),c.n);if(Z===t)throw new Error("sign: Creation of signature failed. k is zero");const{point:ce,x:Te,scalar:Pe}=this.getScalar(Z);return{R:ce,rx:Te,k:Pe}}finalizeSig(F,Z,ce,Te){return new _n(F.x,k(Z+ce*Te,c.n)).toRawBytes()}error(){throw new Error("sign: Invalid signature produced")}async calc(){const{m:F,d:Z,px:ce,rand:Te}=this,Pe=e.utils.taggedHash,Ge=this.initNonce(Z,await Pe(Wr.aux,Te)),{R:Ke,rx:mt,k:ut}=this.finalizeNonce(await Pe(Wr.nonce,Ge,ce,F)),_t=$r(await Pe(Wr.challenge,mt,ce,F)),Tt=this.finalizeSig(Ke,ut,_t,Z);return await Ni(Tt,F,ce)||this.error(),Tt}calcSync(){const{m:F,d:Z,px:ce,rand:Te}=this,Pe=e.utils.taggedHashSync,Ge=this.initNonce(Z,Pe(Wr.aux,Te)),{R:Ke,rx:mt,k:ut}=this.finalizeNonce(Pe(Wr.nonce,Ge,ce,F)),_t=$r(Pe(Wr.challenge,mt,ce,F)),Tt=this.finalizeSig(Ke,ut,_t,Z);return Ir(Tt,F,ce)||this.error(),Tt}}async function En(te,F,Z){return new ea(te,F,Z).calc()}function Ri(te,F,Z){return new ea(te,F,Z).calcSync()}function Mi(te,F,Z){const ce=te instanceof _n,Te=ce?te:_n.fromHex(te);return ce&&Te.assertValidity(),{...Te,m:j(F),P:Vt(Z)}}function yi(te,F,Z,ce){const Te=O.BASE.multiplyAndAddUnsafe(F,Je(Z),k(-ce,c.n));return!(!Te||!Te.hasEvenY()||Te.x!==te)}async function Ni(te,F,Z){try{const{r:ce,s:Te,m:Pe,P:Ge}=Mi(te,F,Z),Ke=$r(await e.utils.taggedHash(Wr.challenge,Ne(ce),Ge.toRawX(),Pe));return yi(ce,Ge,Te,Ke)}catch{return!1}}function Ir(te,F,Z){try{const{r:ce,s:Te,m:Pe,P:Ge}=Mi(te,F,Z),Ke=$r(e.utils.taggedHashSync(Wr.challenge,Ne(ce),Ge.toRawX(),Pe));return yi(ce,Ge,Te,Ke)}catch(ce){if(ce instanceof N)throw ce;return!1}}e.schnorr={Signature:_n,getPublicKey:xr,sign:En,verify:Ni,signSync:Ri,verifySync:Ir},O.BASE._setWindowSize(8);const Ot={node:a,web:typeof self=="object"&&"crypto"in self?self.crypto:void 0},Wr={challenge:"BIP0340/challenge",aux:"BIP0340/aux",nonce:"BIP0340/nonce"},en={};e.utils={bytesToHex:be,hexToBytes:ue,concatBytes:ae,mod:k,invert:oe,isValidPrivateKey(te){try{return Je(te),!0}catch{return!1}},_bigintTo32Bytes:Ne,_normalizePrivateKey:Je,hashToPrivateKey:te=>{te=j(te);const F=m+8;if(te.length<F||te.length>1024)throw new Error("Expected valid bytes of private key as per FIPS 186");const Z=k(X(te),c.n-n)+n;return Ne(Z)},randomBytes:(te=32)=>{if(Ot.web)return Ot.web.getRandomValues(new Uint8Array(te));if(Ot.node){const{randomBytes:F}=Ot.node;return Uint8Array.from(F(te))}else throw new Error("The environment doesn't have randomBytes function")},randomPrivateKey:()=>e.utils.hashToPrivateKey(e.utils.randomBytes(m+8)),precompute(te=8,F=O.BASE){const Z=F===O.BASE?F:new O(F.x,F.y);return Z._setWindowSize(te),Z.multiply(o),Z},sha256:async(...te)=>{if(Ot.web){const F=await Ot.web.subtle.digest("SHA-256",ae(...te));return new Uint8Array(F)}else if(Ot.node){const{createHash:F}=Ot.node,Z=F("sha256");return te.forEach(ce=>Z.update(ce)),Uint8Array.from(Z.digest())}else throw new Error("The environment doesn't have sha256 function")},hmacSha256:async(te,...F)=>{if(Ot.web){const Z=await Ot.web.subtle.importKey("raw",te,{name:"HMAC",hash:{name:"SHA-256"}},!1,["sign"]),ce=ae(...F),Te=await Ot.web.subtle.sign("HMAC",Z,ce);return new Uint8Array(Te)}else if(Ot.node){const{createHmac:Z}=Ot.node,ce=Z("sha256",te);return F.forEach(Te=>ce.update(Te)),Uint8Array.from(ce.digest())}else throw new Error("The environment doesn't have hmac-sha256 function")},sha256Sync:void 0,hmacSha256Sync:void 0,taggedHash:async(te,...F)=>{let Z=en[te];if(Z===void 0){const ce=await e.utils.sha256(Uint8Array.from(te,Te=>Te.charCodeAt(0)));Z=ae(ce,ce),en[te]=Z}return e.utils.sha256(Z,...F)},taggedHashSync:(te,...F)=>{if(typeof Ce!="function")throw new N("sha256Sync is undefined, you need to set it");let Z=en[te];if(Z===void 0){const ce=Ce(Uint8Array.from(te,Te=>Te.charCodeAt(0)));Z=ae(ce,ce),en[te]=Z}return Ce(Z,...F)},_JacobianPoint:P},Object.defineProperties(e.utils,{sha256Sync:{configurable:!1,get(){return Ce},set(te){Ce||(Ce=te)}},hmacSha256Sync:{configurable:!1,get(){return se},set(te){se||(se=te)}}})})(ob)),ob}var BL;function v0(){return BL||(BL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.schnorr=e.Signature=e.Point=e.CURVE=e.utils=e.getSharedSecret=e.recoverPublicKey=e.verify=e.signSync=e.sign=e.getPublicKey=void 0;const a=c5(),t=Rk(),n=UL();var i=UL();Object.defineProperty(e,"getPublicKey",{enumerable:!0,get:function(){return i.getPublicKey}}),Object.defineProperty(e,"sign",{enumerable:!0,get:function(){return i.sign}}),Object.defineProperty(e,"signSync",{enumerable:!0,get:function(){return i.signSync}}),Object.defineProperty(e,"verify",{enumerable:!0,get:function(){return i.verify}}),Object.defineProperty(e,"recoverPublicKey",{enumerable:!0,get:function(){return i.recoverPublicKey}}),Object.defineProperty(e,"getSharedSecret",{enumerable:!0,get:function(){return i.getSharedSecret}}),Object.defineProperty(e,"utils",{enumerable:!0,get:function(){return i.utils}}),Object.defineProperty(e,"CURVE",{enumerable:!0,get:function(){return i.CURVE}}),Object.defineProperty(e,"Point",{enumerable:!0,get:function(){return i.Point}}),Object.defineProperty(e,"Signature",{enumerable:!0,get:function(){return i.Signature}}),Object.defineProperty(e,"schnorr",{enumerable:!0,get:function(){return i.schnorr}}),n.utils.hmacSha256Sync=(o,...u)=>{const c=a.hmac.create(t.sha256,o);return u.forEach(f=>c.update(f)),c.digest()}})(nb)),nb}var vt={};function FL(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Tl={exports:{}},VL=Tl.exports,HL;function Mk(){return HL||(HL=1,(function(e,a){var t=VL&&VL.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(a,"__esModule",{value:!0}),a.crypto=a.wrapHash=a.equalsBytes=a.hexToBytes=a.bytesToUtf8=a.utf8ToBytes=a.createView=a.concatBytes=a.toHex=a.bytesToHex=a.assertBytes=a.assertBool=void 0;const n=t(g0()),i=Rl(),o=n.default.bool;a.assertBool=o;const u=n.default.bytes;a.assertBytes=u;var c=Rl();Object.defineProperty(a,"bytesToHex",{enumerable:!0,get:function(){return c.bytesToHex}}),Object.defineProperty(a,"toHex",{enumerable:!0,get:function(){return c.bytesToHex}}),Object.defineProperty(a,"concatBytes",{enumerable:!0,get:function(){return c.concatBytes}}),Object.defineProperty(a,"createView",{enumerable:!0,get:function(){return c.createView}}),Object.defineProperty(a,"utf8ToBytes",{enumerable:!0,get:function(){return c.utf8ToBytes}});function f(g){if(!(g instanceof Uint8Array))throw new TypeError(`bytesToUtf8 expected Uint8Array, got ${typeof g}`);return new TextDecoder().decode(g)}a.bytesToUtf8=f;function p(g){const S=g.startsWith("0x")?g.substring(2):g;return(0,i.hexToBytes)(S)}a.hexToBytes=p;function y(g,S){if(g.length!==S.length)return!1;for(let M=0;M<g.length;M++)if(g[M]!==S[M])return!1;return!0}a.equalsBytes=y;function m(g){return S=>(n.default.bytes(S),g(S))}a.wrapHash=m,a.crypto=(()=>{const g=typeof self=="object"&&"crypto"in self?self.crypto:void 0,S=typeof FL=="function"&&FL.bind(e);return{node:S&&!g?S("crypto"):void 0,web:g}})()})(Tl,Tl.exports)),Tl.exports}var zL;function m5(){if(zL)return vt;zL=1;var e=vt&&vt.__createBinding||(Object.create?(function(ue,X,j,B){B===void 0&&(B=j);var k=Object.getOwnPropertyDescriptor(X,j);(!k||("get"in k?!X.__esModule:k.writable||k.configurable))&&(k={enumerable:!0,get:function(){return X[j]}}),Object.defineProperty(ue,B,k)}):(function(ue,X,j,B){B===void 0&&(B=j),ue[B]=X[j]})),a=vt&&vt.__setModuleDefault||(Object.create?(function(ue,X){Object.defineProperty(ue,"default",{enumerable:!0,value:X})}):function(ue,X){ue.default=X}),t=vt&&vt.__importStar||function(ue){if(ue&&ue.__esModule)return ue;var X={};if(ue!=null)for(var j in ue)j!=="default"&&Object.prototype.hasOwnProperty.call(ue,j)&&e(X,ue,j);return a(X,ue),X};Object.defineProperty(vt,"__esModule",{value:!0}),vt.contextRandomize=vt.ecdh=vt.signatureNormalize=vt.signatureImport=vt.signatureExport=vt.privateKeyTweakMul=vt.publicKeyTweakMul=vt.publicKeyTweakAdd=vt.publicKeyCombine=vt.publicKeyNegate=vt.privateKeyNegate=vt.privateKeyTweakAdd=vt.ecdsaVerify=vt.ecdsaRecover=vt.ecdsaSign=vt.publicKeyConvert=vt.publicKeyVerify=vt.publicKeyCreate=vt.privateKeyVerify=vt.createPrivateKey=vt.createPrivateKeySync=void 0;const n=Rk(),i=t(v0()),o=Mk();function u(ue){if(typeof ue!="string")throw new TypeError("hexToNumber: expected string, got "+typeof ue);return BigInt(`0x${ue}`)}const c=ue=>u((0,o.toHex)(ue)),f=ue=>ue.toString(16).padStart(64,"0"),p=ue=>(0,o.hexToBytes)(f(ue)),{mod:y}=i.utils,m=i.CURVE.n;function g(ue=B=>new Uint8Array(B),X,j){return typeof ue=="function"&&(ue=ue(X)),(0,o.assertBytes)(ue,X),j&&ue.set(j),ue}function S(ue){return(0,o.assertBytes)(ue,64),i.Signature.fromCompact(ue)}function M(){return i.utils.randomPrivateKey()}vt.createPrivateKeySync=M;async function R(){return M()}vt.createPrivateKey=R;function I(ue){return(0,o.assertBytes)(ue,32),i.utils.isValidPrivateKey(ue)}vt.privateKeyVerify=I;function N(ue,X=!0,j){(0,o.assertBytes)(ue,32),(0,o.assertBool)(X);const B=i.getPublicKey(ue,X);return g(j,X?33:65,B)}vt.publicKeyCreate=N;function E(ue){(0,o.assertBytes)(ue,33,65);try{return i.Point.fromHex(ue),!0}catch{return!1}}vt.publicKeyVerify=E;function P(ue,X=!0,j){(0,o.assertBytes)(ue,33,65),(0,o.assertBool)(X);const B=i.Point.fromHex(ue).toRawBytes(X);return g(j,X?33:65,B)}vt.publicKeyConvert=P;function T(ue,X,j={noncefn:void 0,data:void 0},B){if((0,o.assertBytes)(ue,32),(0,o.assertBytes)(X,32),typeof j!="object"||j===null)throw new TypeError("secp256k1.ecdsaSign: options should be object");if(j&&(j.noncefn!==void 0||j.data!==void 0))throw new Error("Secp256k1: noncefn && data is unsupported");const[k,L]=i.signSync(ue,X,{recovered:!0,der:!1});return{signature:g(B,64,k),recid:L}}vt.ecdsaSign=T;function v(ue,X,j,B=!0,k){(0,o.assertBytes)(j,32),(0,o.assertBool)(B);const L=S(ue).toHex(),W=i.Point.fromSignature(j,L,X);return g(k,B?33:65,W.toRawBytes(B))}vt.ecdsaRecover=v;function O(ue,X,j){(0,o.assertBytes)(ue,64),(0,o.assertBytes)(X,32),(0,o.assertBytes)(j,33,65),(0,o.assertBytes)(ue,64);const B=c(ue.slice(0,32)),k=c(ue.slice(32,64));if(B>=m||k>=m)throw new Error("Cannot parse signature");const L=i.Point.fromHex(j);let W;try{W=S(ue)}catch{return!1}return i.verify(W,X,L)}vt.ecdsaVerify=O;function C(ue,X){(0,o.assertBytes)(ue,32),(0,o.assertBytes)(X,32);let j=c(X);if(j===0n)throw new Error("Tweak must not be zero");if(j>=m)throw new Error("Tweak bigger than curve order");if(j+=c(ue),j>=m&&(j-=m),j===0n)throw new Error("The tweak was out of range or the resulted private key is invalid");return ue.set((0,o.hexToBytes)(f(j))),ue}vt.privateKeyTweakAdd=C;function z(ue){(0,o.assertBytes)(ue,32);const X=y(-c(ue),m);return ue.set((0,o.hexToBytes)(f(X))),ue}vt.privateKeyNegate=z;function U(ue,X=!0,j){(0,o.assertBytes)(ue,33,65),(0,o.assertBool)(X);const B=i.Point.fromHex(ue).negate();return g(j,X?33:65,B.toRawBytes(X))}vt.publicKeyNegate=U;function K(ue,X=!0,j){if(!Array.isArray(ue)||!ue.length)throw new TypeError(`Expected array with one or more items, not ${ue}`);for(const k of ue)(0,o.assertBytes)(k,33,65);(0,o.assertBool)(X);const B=ue.map(k=>i.Point.fromHex(k)).reduce((k,L)=>k.add(L),i.Point.ZERO);if(B.equals(i.Point.ZERO))throw new Error("Combined result must not be zero");return g(j,X?33:65,B.toRawBytes(X))}vt.publicKeyCombine=K;function ae(ue,X,j=!0,B){(0,o.assertBytes)(ue,33,65),(0,o.assertBytes)(X,32),(0,o.assertBool)(j);const k=i.Point.fromHex(ue),L=i.Point.fromPrivateKey(X),W=k.add(L);if(L.equals(i.Point.ZERO)||W.equals(i.Point.ZERO))throw new Error("Tweak must not be zero");return g(B,j?33:65,W.toRawBytes(j))}vt.publicKeyTweakAdd=ae;function _e(ue,X,j=!0,B){(0,o.assertBytes)(ue,33,65),(0,o.assertBytes)(X,32),(0,o.assertBool)(j);const k=c(X);if(k===0n)throw new Error("Tweak must not be zero");if(k<=1||k>=m)throw new Error("Tweak is zero or bigger than curve order");const L=i.Point.fromHex(ue).multiply(k);return g(B,j?33:65,L.toRawBytes(j))}vt.publicKeyTweakMul=_e;function be(ue,X){(0,o.assertBytes)(ue,32),(0,o.assertBytes)(X,32);const j=c(X);if(j<=1||j>=m)throw new Error("Tweak is zero or bigger than curve order");const B=y(j*c(ue),m);if(B===0n)throw new Error("The tweak was out of range or the resulted private key is invalid");return ue.set((0,o.hexToBytes)(f(B))),ue}vt.privateKeyTweakMul=be;function ye(ue,X){const j=S(ue).toRawBytes();return g(X,72,S(ue).toRawBytes()).slice(0,j.length)}vt.signatureExport=ye;function Me(ue,X){(0,o.assertBytes)(ue);const j=i.Signature.fromDER(ue);return g(X,64,(0,o.hexToBytes)(j.toCompactHex()))}vt.signatureImport=Me;function Ne(ue){const X=S(ue);return X.s>m/2n&&ue.set(p(m-X.s),32),ue}vt.signatureNormalize=Ne;function qe(ue,X,j={},B){if((0,o.assertBytes)(ue,33,65),(0,o.assertBytes)(X,32),typeof j!="object"||j===null)throw new TypeError("secp256k1.ecdh: options should be object");j.data!==void 0&&(0,o.assertBytes)(j.data);const k=i.Point.fromHex(i.getSharedSecret(X,ue));if(j.hashfn===void 0)return g(B,32,(0,n.sha256)(k.toRawBytes(!0)));if(typeof j.hashfn!="function")throw new TypeError("secp256k1.ecdh: options.hashfn should be function");j.xbuf!==void 0&&(0,o.assertBytes)(j.xbuf,32),j.ybuf!==void 0&&(0,o.assertBytes)(j.ybuf,32),(0,o.assertBytes)(B,32);const L=j.xbuf||new Uint8Array(32);L.set(p(k.x));const W=j.ybuf||new Uint8Array(32);W.set(p(k.y));const oe=j.hashfn(L,W,j.data);if(!(oe instanceof Uint8Array)||oe.length!==32)throw new Error("secp256k1.ecdh: invalid options.hashfn output");return g(B,32,oe)}vt.ecdh=qe;function we(ue){ue!==null&&(0,o.assertBytes)(ue,32)}return vt.contextRandomize=we,vt}var WL;function Nk(){if(WL)return Lr;WL=1,Object.defineProperty(Lr,"__esModule",{value:!0}),Lr.createUnsafeIdentity=Lr.computeAddress=Lr.ethSign=Lr.createEthereumMessageHash=Lr.sign=Lr.recoverAddressFromEthSignature=Lr.recoverPublicKey=void 0;const e=wf(),a=v0(),t=m5();function n(m,g){if(m.length!==65)throw new Error("Invalid signature length"+m.length);const S=m.slice(0,m.length-1),M=m[64]===28?1:0;return(0,t.ecdsaRecover)(S,M,g,!1).slice(1)}Lr.recoverPublicKey=n;function i(m){if(m.length!==65)throw new Error("Invalid ethereum signature");const g=m[64];if(g===0||g===1){const S=new Uint8Array(m);return S[64]=g+27,S}return m}function o(m,g){if(typeof m=="string"){if((0,e.isHex)(m))return o((0,e.hexToBytes)(m),g);throw new Error("String signatures must be encoded in hex")}return p(n(i(m),c(g)))}Lr.recoverAddressFromEthSignature=o;function u(m,g){const S=(0,t.ecdsaSign)(g,m),M=S.recid===1?"1c":"1b";return(0,e.toHex)(S.signature)+M}Lr.sign=u;function c(m){const g=typeof m=="string"?(0,e.stringToUtf8Bytes)(m):m,S=(0,e.concatBytes)((0,e.stringToUtf8Bytes)(`Ethereum Signed Message:
|
|
20
20
|
`),(0,e.stringToUtf8Bytes)(String(g.length)),g);return(0,e.hexToBytes)((0,e.sha3)(S))}Lr.createEthereumMessageHash=c;function f(m,g){return u(m,c(g))}Lr.ethSign=f;function p(m){const g=m.length===65&&m[0]===4?m.slice(1):m;return(0,e.getAddress)((0,e.sha3)(g).substring(24))}Lr.computeAddress=p;function y(){const m=a.utils.randomPrivateKey(),g=(0,a.getPublicKey)(m).slice(1),S=p(g);return{privateKey:(0,e.bytesToHex)(m),publicKey:(0,e.bytesToHex)(g),address:S}}return Lr.createUnsafeIdentity=y,Lr}var GL;function h5(){return GL||(GL=1,(function(e){var a=ri&&ri.__createBinding||(Object.create?(function(U,K,ae,_e){_e===void 0&&(_e=ae);var be=Object.getOwnPropertyDescriptor(K,ae);(!be||("get"in be?!K.__esModule:be.writable||be.configurable))&&(be={enumerable:!0,get:function(){return K[ae]}}),Object.defineProperty(U,_e,be)}):(function(U,K,ae,_e){_e===void 0&&(_e=ae),U[_e]=K[ae]})),t=ri&&ri.__setModuleDefault||(Object.create?(function(U,K){Object.defineProperty(U,"default",{enumerable:!0,value:K})}):function(U,K){U.default=K}),n=ri&&ri.__importStar||function(U){if(U&&U.__esModule)return U;var K={};if(U!=null)for(var ae in U)ae!=="default"&&Object.prototype.hasOwnProperty.call(U,ae)&&a(K,U,ae);return t(K,U),K},i=ri&&ri.__importDefault||function(U){return U&&U.__esModule?U:{default:U}};Object.defineProperty(e,"__esModule",{value:!0}),e.isValidEIP1271Signature=e.parseEmphemeralPayload=e.getSignedIdentitySignatureType=e.getEphemeralSignatureType=e.EIP_1654_SIGNED_ENTITY_VALIDATOR=e.ECDSA_EIP_1654_EPHEMERAL_VALIDATOR=e.ECDSA_PERSONAL_EPHEMERAL_VALIDATOR=e.ECDSA_SIGNED_ENTITY_VALIDATOR=e.SIGNER_VALIDATOR=e.Authenticator=e.ERC1654_MAGIC_VALUE=e.VALID_SIGNATURE=void 0;const o=n(wf()),u=rz(),c=Ik(),f=s5(),p=i(u5()),y=Nk();e.VALID_SIGNATURE="VALID_SIGNATURE",e.ERC1654_MAGIC_VALUE="1626ba7e";const m=132;var g;(function(U){async function K(X,j,B,k=Date.now()){let L="";if(!U.isValidAuthChain(j))return{ok:!1,message:"ERROR: Malformed authChain"};for(const oe of j){const Re=z(oe.type);try{const{nextAuthority:Se}=await Re(L,oe,{provider:B,dateToValidateExpirationInMillis:k});L=Se||""}catch(Se){return{ok:!1,message:`ERROR. Link type: ${oe.type}. ${Se.message}.`}}}const W=L===X;return{ok:W,message:W?void 0:`ERROR: Invalid final authority. Expected: ${X}. Current ${L}.`}}U.validateSignature=K;function ae(X){for(const[j,B]of X.entries())if(j===0&&B.type!==c.AuthLinkType.SIGNER||B.type===c.AuthLinkType.SIGNER&&j!==0)return!1;return!0}U.isValidAuthChain=ae;function _e(X){return(0,o.hexToBytes)((0,o.sha3)((0,o.stringToUtf8Bytes)(X)))}U.createEIP1271MessageHash=_e;function be(X,j,B){return[{type:c.AuthLinkType.SIGNER,payload:j,signature:""},{type:T(B),payload:X,signature:B}]}U.createSimpleAuthChain=be;function ye(X,j,B,k){const L=(0,f.moveMinutes)(B),W=U.getEphemeralMessage(j.address,L),oe=U.createSignature(X,W),Re=U.createSignature(j,k);return[{type:c.AuthLinkType.SIGNER,payload:X.address,signature:""},{type:c.AuthLinkType.ECDSA_PERSONAL_EPHEMERAL,payload:W,signature:oe},{type:c.AuthLinkType.ECDSA_PERSONAL_SIGNED_ENTITY,payload:k,signature:Re}]}U.createAuthChain=ye;async function Me(X,j,B,k){const L=new Date;L.setMinutes(L.getMinutes()+B);const W=U.getEphemeralMessage(j.address,L),oe=await k(W),Re=[{type:c.AuthLinkType.SIGNER,payload:X,signature:""},{type:P(oe),payload:W,signature:oe}];return{ephemeralIdentity:j,expiration:L,authChain:Re}}U.initializeAuthChain=Me;function Ne(X,j){const B=U.createSignature(X.ephemeralIdentity,j);return[...X.authChain,{type:c.AuthLinkType.ECDSA_PERSONAL_SIGNED_ENTITY,payload:j,signature:B}]}U.signPayload=Ne,U.createEthereumMessageHash=y.createEthereumMessageHash;function qe(X,j){return(0,y.ethSign)((0,o.hexToBytes)(X.privateKey),j)}U.createSignature=qe;function we(X){return X.length>0&&X[0].type===c.AuthLinkType.SIGNER?X[0].payload:"Invalid-Owner-Address"}U.ownerAddress=we;function ue(X,j){return`Decentraland Login
|
|
21
21
|
Ephemeral address: ${X}
|
|
22
22
|
Expiration: ${j.toISOString()}`}U.getEphemeralMessage=ue})(g=e.Authenticator||(e.Authenticator={}));const S=async(U,K)=>({nextAuthority:K.payload});e.SIGNER_VALIDATOR=S;const M=async(U,K)=>{if(!K.signature)throw new Error("Invalid AuthLink. 'signature' must be present for type 'ECDSA_SIGNED_ENTITY_VALIDATOR'");const ae=(0,y.recoverAddressFromEthSignature)(K.signature,K.payload),_e=U.toLocaleLowerCase(),be=ae.toLocaleLowerCase();if(_e===be)return{nextAuthority:K.payload};throw new Error(`Invalid signer address. Expected: ${_e}. Actual: ${be}`)};e.ECDSA_SIGNED_ENTITY_VALIDATOR=M;const R=async(U,K,ae)=>{if(!K.signature)throw new Error("Invalid AuthLink. 'signature' must be present for type 'ECDSA_PERSONAL_EPHEMERAL_VALIDATOR'");const{message:_e,ephemeralAddress:be,expiration:ye}=v(K.payload),Me=ae.dateToValidateExpirationInMillis?ae.dateToValidateExpirationInMillis:Date.now();if(ye>Me){const Ne=(0,y.recoverAddressFromEthSignature)(K.signature,_e),qe=U.toLocaleLowerCase(),we=Ne.toLocaleLowerCase();if(qe===we)return{nextAuthority:be};throw new Error(`Invalid signer address. Expected: ${qe}. Actual: ${we}`)}throw new Error(`Ephemeral key expired. Expiration: ${ye}. Test: ${Me}`)};e.ECDSA_PERSONAL_EPHEMERAL_VALIDATOR=R;const I=async(U,K,ae)=>{if(!K.signature)throw new Error("Invalid AuthLink. 'signature' must be present for type 'ECDSA_EIP_1654_EPHEMERAL_VALIDATOR'");const{message:_e,ephemeralAddress:be,expiration:ye}=v(K.payload),Me=ae?.dateToValidateExpirationInMillis?ae?.dateToValidateExpirationInMillis:Date.now();if(ye>Me&&await C(ae.provider,U,_e,K.signature,Me))return{nextAuthority:be};throw new Error(`Ephemeral key expired. Expiration: ${ye}. Test: ${Me}`)};e.ECDSA_EIP_1654_EPHEMERAL_VALIDATOR=I;const N=async(U,K,ae)=>{if(!K.signature)throw new Error("Invalid AuthLink. 'signature' must be present for type 'EIP_1654_SIGNED_ENTITY_VALIDATOR'");if(await C(ae.provider,U,K.payload,K.signature,ae.dateToValidateExpirationInMillis))return{nextAuthority:K.payload};throw new Error("Invalid validation")};e.EIP_1654_SIGNED_ENTITY_VALIDATOR=N;const E=async(U,K)=>({error:"Error Validator."});function P(U){return U.length===m?c.AuthLinkType.ECDSA_PERSONAL_EPHEMERAL:c.AuthLinkType.ECDSA_EIP_1654_EPHEMERAL}e.getEphemeralSignatureType=P;function T(U){return U.length===m?c.AuthLinkType.ECDSA_PERSONAL_SIGNED_ENTITY:c.AuthLinkType.ECDSA_EIP_1654_SIGNED_ENTITY}e.getSignedIdentitySignatureType=T;function v(U){const K=U.replace(/\r/g,""),ae=K.split(`
|