Lines 1-21javascript
1import{a as e,r as t,s as n,t as r}from"./rolldown-runtime-zSbnoVup.js";var i=`modulepreload`,a=function(e){return`https://cdn.decentraland.org/@dcl/sites/0.44.0/`+e},o={},s=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),s=document.querySelector(`meta[property=csp-nonce]`),c=s?.nonce||s?.getAttribute(`nonce`);function l(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=l(t.map(t=>{if(t=a(t,n),t in o)return;o[t]=!0;let r=t.endsWith(`.css`),s=r?`[rel="stylesheet"]` ...
2 - Extension \`${e.name}\` supports version(s) \`${n}\``:n||(t+=`
3 - Extension \`${e.name}\` does not support ${R.platform} environments.`)}),new Tt(d.IncompatibleExtensions,t)}function Ft(e){return new Tt(d.InvalidArgument,`Invalid ${(e=>{let t=e+1,n=t%10,r=
4 Expected: \`${e.expected}\`
5 Received: \`${e.received}\``)}function It(){return new Dt(f.DuplicateIframe,`Duplicate iframes found.`)}function Lt(){return new Dt(f.SyncWeb3Method,`Non-async web3 methods are deprecated in web3 > 1.0 and are not supported by the Magic web3 provider. Please use an async method instead.`)}function Rt(){return new Dt(f.ReactNativeEndpointConfiguration,`CUSTOM DOMAINS ARE NOT SUPPORTED WHEN USING MAGIC SDK WITH REACT NATIVE! The \`endpoint
6`);super(o,n.cause?{cause:n.cause}:void 0),Object.defineProperty(this,`details`,{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,`docs`,{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(
7`);super(o,n.cause?{cause:n.cause}:void 0),Object.defineProperty(this,`details`,{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,`docsPath`,{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,`metaMessages`,{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,`shortMessage`,{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,`version`,{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,`name`,{enumerable:!0,configurable:!0,writab ...
8`),{metaMessages:[`Params: (${Ec(t,{includeName:!0})})`,`Data: ${e} (${n} bytes)`],name:`AbiDecodingDataSizeTooSmallError`}),Object.defineProperty(this,`data`,{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,`params`,{enumerable
9`),{name:`AbiEncodingArrayLengthMismatchError`})}},Ic=class extends Y{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${kc(t)}) does not match expected size (bytes${e}).`,{name:`AbiEncodingBytesSizeMismatchError`})}},Lc=class extends Y{constructor({expectedLength:e,givenLength:t}){super([`ABI encoding params/values length mismatch.`,`Expected length (params): ${e}`,`Given length (values): ${
10`),{name:`AbiEncodingLengthMismatchError`})}},Rc=class extends Y{constructor(e,{docsPath:t}){super([`Encoded error signature "${e}" not found on ABI.`,`Make sure you are using the correct ABI and that the error exists on it.`,`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${e}.`].join(`
11`),{docsPath:t,name:`AbiErrorSignatureNotFoundError`}),Object.defineProperty(this,`signature`,{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}},zc=class extends Y{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t
12`),{docsPath:t,name:`InvalidAbiEncodingType`})}},Vc=class extends Y{constructor(e,{docsPath:t}){super([`Type "${e}" is not a valid decoding type.`,`Please provide a valid ABI type.`].join(`
13`),{docsPath:t,name:`InvalidAbiDecodingType`})}},Hc=class extends Y{constructor(e){super([`Value "${e}" is not a valid array.`].join(`
14`),{name:`InvalidArrayError`})}},Uc=class extends Y{constructor(e){super([`"${e}" is not a valid definition type.`,`Valid types: "function", "event", "error"`].join(`
15`),{name:`InvalidDefinitionTypeError`})}},Wc=class extends Y{constructor({offset:e,position:t,size:n}){super(`Slice ${t===`start`?`starting`:`ending`} at offset "${e}" is out-of-bounds (size: ${n}).`,{name:`SliceOffsetOutOfBoundsError`})}},Gc=class extends Y{constructor({
16`);super(a),Object.defineProperty(this,`details`,{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,`docsPath`,{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,`metaMessages`,{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,`shortMessage`,{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,`name`,{enumerable:!0,configurable:!0,writable:!0,value:`AbiTypeError`}),n.cause&&(this.cause=n.cause),this.details=r,this.docsPath=i,this.metaMessages=n.metaMessages,thi ...
17`)),super(n),Object.defineProperty(this,`contractAddress`,{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,`chainId`,{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=`TransactionError`,this.contractAddress
18`)),Object.defineProperty(this,`name`,{enumerable:!0,configurable:!0,writable:!0,value:`TransactionEnvelope.TipAboveFeeCapError`})}};function Zh(e){let{chainId:t,gasPrice:n,to:r}=e;if(r&&nh(r,{strict:!1}),t!==void 0&&t<=0)throw new Yh({chainId:t});if(n&&BigInt(n)>2n**256n-1n)throw new Jh({gasPrice:n})}function Qh(e,t={}){let{chainId:n=0,gas:r,data:i,input:a,nonce:o,to:s,value:c,gasPrice:l}=e;Zh(e);let u=[o?K(o):`0x`,l?K(l):`0x`,r?K(r):`0x`,s??`0x`,c?K(c):`0x`,i??a??`0x`],d=(()=>{if(t.signature)return{r:t.signature.r,s:t.signature.s,v:jh(t.signature.yParity)};if(!(e.r===void 0||e.s===void 0))re ...
19`);t=[t,e.statement].join(`
Long lines were clipped for display.