@dcl/shop 0.1.0-29527153652.commit-d2eebfa → 0.1.0-29571500722.commit-8ea45d8
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/{AnimatedBackground-BtDeGtuY.js → AnimatedBackground-Y-secaKv.js} +3 -3
- package/assets/Assets-sWyggSzY.js +1 -0
- package/assets/Cart-DVt0m7-J.js +1 -0
- package/assets/{CircularProgress-3Y_POW5D.js → CircularProgress-DF1tx4Pz.js} +1 -1
- package/assets/{Collection-C4oILWgm.js → Collection-D-dr6oYY.js} +1 -1
- package/assets/{ContentClient-CEkpPq6Z.js → ContentClient-DahG0FsN.js} +1 -1
- package/assets/{Creator-C4puJP6z.js → Creator-DpZ1qFEV.js} +1 -1
- package/assets/{DeploymentBuilder-DPr-ptgp.js → DeploymentBuilder-DCLyMp7S.js} +1 -1
- package/assets/{ExchangeController-D4CpJ8kl.js → ExchangeController-5UZnaMYm.js} +1 -1
- package/assets/{GetCredits-gEfRJgGT.js → GetCredits-B-2Nu_Cx.js} +1 -1
- package/assets/{HelpersUtil-BeiA-N3I.js → HelpersUtil-DsOycveq.js} +1 -1
- package/assets/ImportListings-Ry47KtP_.js +1 -0
- package/assets/{ItemDetail-DFD_2ZeC.js → ItemDetail-CblzRtB5.js} +2 -2
- package/assets/MyAssets-26oYZL-x.js +1 -0
- package/assets/{MyFavorites-B6ImIszd.js → MyFavorites-BfWQjhlL.js} +1 -1
- package/assets/{MyPurchases-BH0keZsh.js → MyPurchases-DbU97xcR.js} +1 -1
- package/assets/{NotFound-BUwRH5h0.js → NotFound-CWys1EXA.js} +1 -1
- package/assets/{StoreSettings-C66yF7xF.js → StoreSettings-C-yDm4Ah.js} +1 -1
- package/assets/Success-CW65bxXN.js +1 -0
- package/assets/{SwapController-fK7v6beM.js → SwapController-Bau8y3ss.js} +1 -1
- package/assets/{TradeService-BYjElQ_J.js → TradeService-sWmitO7N.js} +1 -1
- package/assets/{W3MFrameProviderSingleton-BvT93_mb.js → W3MFrameProviderSingleton-BrDTQqcr.js} +3 -3
- package/assets/{WebCryptoP256-lk8Phz0j.js → WebCryptoP256-Clorun9S.js} +1 -1
- package/assets/{basic-DLKrLmdo.js → basic-Co2ks3tP.js} +1 -1
- package/assets/{biconomy-7wiec39b.js → biconomy-DAm_-Hm_.js} +1 -1
- package/assets/{buy-gasless-CFOJz7EI.js → buy-gasless-B4g8GiJr.js} +1 -1
- package/assets/buy-y9zg-9gr.js +1 -0
- package/assets/{categories-DYe3ZXtu.js → categories-DbX2Gw4H.js} +1 -1
- package/assets/{ccip-DNX1aV6c.js → ccip-B8JdVFq5.js} +1 -1
- package/assets/{ccip-Dgzo1FXe.js → ccip-i7tJF0Hj.js} +1 -1
- package/assets/{collection-BHilCUwH.js → collection-CS59m6GL.js} +1 -1
- package/assets/{controller-16-J3O8L.js → controller-BVAEs_Ol.js} +2 -2
- package/assets/{core-DXuYXUj1.js → core-DXAXZQxt.js} +4 -4
- package/assets/{custom-BTyOEs9D.js → custom-C00ZS-dv.js} +1 -1
- package/assets/{data-capture-DQHZCQ9R.js → data-capture-BfGns_F9.js} +1 -1
- package/assets/{decimals-DKkXzXLC.js → decimals-7LZbjdh-.js} +1 -1
- package/assets/decimals-CeoXdXWM.js +1 -0
- package/assets/{detectExtension-Wqss5tRf.js → detectExtension-C_qqqhXd.js} +1 -1
- package/assets/{email-BA8oF4Sb.js → email-10XDB7Ed.js} +1 -1
- package/assets/{embedded-wallet-CmR3JoQA.js → embedded-wallet-Coq3FP2j.js} +1 -1
- package/assets/{emotion-styled.browser.esm-hMeaJLB-.js → emotion-styled.browser.esm-Col8rSBp.js} +1 -1
- package/assets/{engine-D7X1-7M_.js → engine-DNO34GZS.js} +1 -1
- package/assets/{estimate-l1-fee-mP34fdnr.js → estimate-l1-fee-ttG5TVsi.js} +1 -1
- package/assets/{eth_estimateGas-hNSxz4co.js → eth_estimateGas-BiFrKNU-.js} +1 -1
- package/assets/{eth_getStorageAt-CcAHGbyZ.js → eth_getStorageAt-ZjeD4sfh.js} +1 -1
- package/assets/{eth_getTransactionCount-kHoTdsNW.js → eth_getTransactionCount-BjHbR3QT.js} +1 -1
- package/assets/{extractIPFS-ptBh3aqV.js → extractIPFS-CFw95IDm.js} +1 -1
- package/assets/{features-Dadqu3Gy.js → features-BBwkLwo8.js} +1 -1
- package/assets/{fetchTokenMetadata-Yjbzq3OX.js → fetchTokenMetadata-BbJeox1b.js} +2 -2
- package/assets/get-ecosystem-wallet-info-BotVMG7h.js +1 -0
- package/assets/{getBalance-CcpUJJbb.js → getBalance-BVXxyvdU.js} +1 -1
- package/assets/{getInstalledModules-B29UYWwx.js → getInstalledModules-92CJz4J0.js} +1 -1
- package/assets/{getNFT-DRamL_wJ.js → getNFT-6Z-JCPcj.js} +2 -2
- package/assets/{getNFT-C8XHKgBR.js → getNFT-By7tEt1z.js} +1 -1
- package/assets/{hashTypedData-BRhQ_lPd.js → hashTypedData-78L5umOY.js} +1 -1
- package/assets/{hashTypedData-B8qJCKv2.js → hashTypedData-UUOD4hvk.js} +1 -1
- package/assets/{import-C0KzuCTc.js → import-BCIlZ3yx.js} +1 -1
- package/assets/{in-app-wallet-calls-BMeL3YV4.js → in-app-wallet-calls-Dx8qnM7-.js} +1 -1
- package/assets/{index-_heiRLxG.js → index-6jN-_TNa.js} +1 -1
- package/assets/{index-rfcI92-3.js → index-94XD4C5w.js} +1 -1
- package/assets/{index-BiY5ZJ1L.js → index-B0PF-s9M.js} +1 -1
- package/assets/{index-Bh8SuC59.js → index-B4tMFfvy.js} +1 -1
- package/assets/{index-BxFWKJ00.js → index-B7PXWLXB.js} +1 -1
- package/assets/{index-CEeQH9eo.js → index-BAoHOXze.js} +2 -2
- package/assets/{index-BtK9ZDTb.js → index-BBZ21lbu.js} +1 -1
- package/assets/{index-C1AneBnm.js → index-BVRx9Ot1.js} +1 -1
- package/assets/{index-CGecUMNA.js → index-BYRbnzmu.js} +1 -1
- package/assets/{index-Cd5vM2Jh.js → index-BlFZSvWx.js} +1 -1
- package/assets/{index-DvmI6WZg.js → index-BlNwDD1i.js} +1 -1
- package/assets/{index-DVAVXeLV.js → index-BsVbqXUp.js} +1 -1
- package/assets/{index-Czt6tP80.js → index-Bsx6GubH.js} +1 -1
- package/assets/{index-DGIRcK5n.js → index-Bvx0NOxN.js} +1 -1
- package/assets/{index-C0kv5kHB.js → index-C1u3RQ96.js} +6 -6
- package/assets/{index-DOk2P7Zl.js → index-C1wVfhuw.js} +1 -1
- package/assets/{index-Df8IehzX.js → index-C3xlbPh_.js} +1 -1
- package/assets/{index-D4UonDIb.js → index-C4JAp-Oa.js} +3 -3
- package/assets/{index-BpmLS8_h.js → index-CAMCLJ-3.js} +1 -1
- package/assets/{index-sr7QrKQZ.js → index-CApcD-t8.js} +1 -1
- package/assets/{index-Df6T9jlW.js → index-CBWS4Ml_.js} +1 -1
- package/assets/{index-Dex_bJg1.js → index-CC32N6uw.js} +1 -1
- package/assets/{index-BL5vFwJv.js → index-CGbJjZCV.js} +1 -1
- package/assets/{index-BmHevYxh.js → index-CIx1sZmW.js} +1 -1
- package/assets/{index-BuUSB4r5.js → index-CJD-gYKv.js} +1 -1
- package/assets/{index-ByM1xTND.js → index-CPYtbWCQ.js} +1 -1
- package/assets/{index-iYlfzQJZ.js → index-C_x2eFau.js} +3 -3
- package/assets/{index-Bz7fb3vC.js → index-CeR8VFbd.js} +1 -1
- package/assets/{index-CYZw7sLz.js → index-ClxTTupQ.js} +1 -1
- package/assets/{index-BCzwAhbN.js → index-Ct0w7Ogt.js} +1 -1
- package/assets/{index-Dqw_U4li.js → index-D-BMnyQb.js} +1 -1
- package/assets/{index-CrKpXY-Z.js → index-D7Fx-Qac.js} +1 -1
- package/assets/{index-CuwAAEkV.js → index-D8XPW5rW.js} +1 -1
- package/assets/{index-D2HgI4Mu.js → index-DHM1o-4K.js} +1 -1
- package/assets/{index-CJQuE4Vh.js → index-DIYL1_Ov.js} +1 -1
- package/assets/{index-CXOpVxKU.js → index-DKP6gkl4.js} +1 -1
- package/assets/{index-DeBofuPQ.js → index-DLXELZQv.js} +1 -1
- package/assets/{index-kA7_bUnK.js → index-DN8pYCNl.js} +1 -1
- package/assets/{index-t67nymVk.js → index-DNT62M3w.js} +1 -1
- package/assets/{index-DT90wIp1.js → index-DPyb1X7J.js} +1 -1
- package/assets/{index-CUe6g2db.js → index-DUc6Q2Iz.js} +1 -1
- package/assets/{index-BSOhCppl.js → index-DaDHmqAS.js} +2 -2
- package/assets/{index-Iapi1Q6R.js → index-DcmcHRml.js} +1 -1
- package/assets/{index-DVG9WYtE.js → index-Dfn1y1uF.js} +1 -1
- package/assets/{index-C5nVlEYH.js → index-DhQcB2cI.js} +1 -1
- package/assets/{index-BxnBUVzy.js → index-DhedohT0.js} +1 -1
- package/assets/{index-CG-dA0rF.js → index-DjVz63Zr.js} +1 -1
- package/assets/{index-B3ocNsJt.js → index-DkjQWYoB.js} +2 -2
- package/assets/{index-EYxoPD15.js → index-Ds-AFLHc.js} +1 -1
- package/assets/{index-BWmqibNa.js → index-DsVVBfxP.js} +1 -1
- package/assets/{index-Dl9lo-Tk.js → index-KYyY5J5u.js} +1 -1
- package/assets/{index-DkIBv-8E.js → index-P4QO1O0D.js} +1 -1
- package/assets/{index-BPiKxEfw.js → index-QnApYtWL.js} +1 -1
- package/assets/{index-DfyoH385.js → index-ZvQFinLo.js} +1 -1
- package/assets/{index-EiHJjF_U.js → index-lt7oq_YM.js} +1 -1
- package/assets/{index.es-DHouqHFo.js → index.es-CNLSXMT-.js} +1 -1
- package/assets/{index.es-BnHkek_2.js → index.es-DGT1W3bC.js} +1 -1
- package/assets/{index.es-DsvM4XzW.js → index.es-EcAKXlCW.js} +4 -4
- package/assets/{localBatchGatewayRequest-Cmn1dfqz.js → localBatchGatewayRequest-CUupTU5s.js} +1 -1
- package/assets/{mana-rate-DObImZN2.js → mana-rate-TrkgOUFu.js} +1 -1
- package/assets/network-44dqSlR2.js +1 -0
- package/assets/{networks-D1cCGfqG.js → networks-BEAzlz87.js} +1 -1
- package/assets/{onramp-Dj3OMdJa.js → onramp-BHjPyFrf.js} +1 -1
- package/assets/{openzeppelin-jmYZOwb-.js → openzeppelin-BqEz23oI.js} +1 -1
- package/assets/{ownerOf-Cg8vrCG0.js → ownerOf-D2Ruvcgr.js} +1 -1
- package/assets/{parseNft-DQjOfM3E.js → parseNft-C4rXbAm3.js} +2 -2
- package/assets/{parseSignature-D-2KGIjo.js → parseSignature-1_3SuD3y.js} +3 -3
- package/assets/{parseSignature-BhGVGyy8.js → parseSignature-B6_wXS1t.js} +1 -1
- package/assets/{pay-with-exchange-D7uxTE5e.js → pay-with-exchange-AvS-iWv3.js} +1 -1
- package/assets/{qr-overlay-ASsJZZn5.js → qr-overlay-Di1sYsV2.js} +1 -1
- package/assets/{receive--EqYLwG2.js → receive-CGzdSteR.js} +1 -1
- package/assets/{resolveImplementation-DyRnucGw.js → resolveImplementation-CaXsKbDx.js} +1 -1
- package/assets/{rpc-CjcTpc0V.js → rpc-DG-6qjB5.js} +1 -1
- package/assets/{secp256k1-C3pUvKM8.js → secp256k1-B9CXpvLY.js} +1 -1
- package/assets/{secp256k1-QnclhqY7.js → secp256k1-ChfveZcd.js} +1 -1
- package/assets/{secp256k1-CuYcQbK2.js → secp256k1-DWucSlB-.js} +1 -1
- package/assets/{send-CH7qei4t.js → send-D5cFILBF.js} +1 -1
- package/assets/{send-batch-transaction-Cr5kGUem.js → send-batch-transaction-B3lTEUOF.js} +1 -1
- package/assets/{send-eip712-transaction-DNEzCZTW.js → send-eip712-transaction-ByX_--Vb.js} +2 -2
- package/assets/{send-gasless-transaction-BnwvR3f6.js → send-gasless-transaction-sFztvg-i.js} +2 -2
- package/assets/{sendRawTransaction-BIHxQG44.js → sendRawTransaction-CR5Mmi6b.js} +3 -3
- package/assets/{serializeTransaction-DbiNVef8.js → serializeTransaction-D79jfd3_.js} +1 -1
- package/assets/{session-proposal-DvE_C2Qm.js → session-proposal-Cwo9ltsm.js} +1 -1
- package/assets/{session-request-DF5W14aH.js → session-request-l_FrHUZo.js} +2 -2
- package/assets/{sha256-DhQnMvgr.js → sha256-B1PPmRn9.js} +1 -1
- package/assets/{signing-BChtQR_k.js → signing-Sn5rFCHS.js} +4 -4
- package/assets/{socials-ibz-qcug.js → socials-CqUkp7RR.js} +1 -1
- package/assets/{swaps-D5GQ3VUK.js → swaps-hvkTELkc.js} +1 -1
- package/assets/{thirdweb-CaDKinrI.js → thirdweb-Bfq5h25u.js} +3 -3
- package/assets/{totalSupply-DaG75TVX.js → totalSupply-yip6OCLy.js} +1 -1
- package/assets/trade-encoding-42N07h92.js +1 -0
- package/assets/{transactionReceipt-DVjUNlv8.js → transactionReceipt-DADNrKU6.js} +1 -1
- package/assets/{transactions-DN5Djj2C.js → transactions-DQBiQzWz.js} +1 -1
- package/assets/{useInfiniteGrid-BeqyJL-J.js → useInfiniteGrid-CjcJxtXA.js} +1 -1
- package/assets/useStore-zhFVY9fU.js +2 -0
- package/assets/{verifyHash-C2MKzB9x.js → verifyHash-CNDR4v8f.js} +1 -1
- package/assets/{w3m-modal-JCjAaYVQ.js → w3m-modal-Clo6bKVE.js} +1 -1
- package/assets/{w3m-modal-Bpc7iV--.js → w3m-modal-GMd0MTV7.js} +1 -1
- package/assets/{wait-for-tx-receipt-4J-SfEVn.js → wait-for-tx-receipt-uU57b-HM.js} +1 -1
- package/assets/{wallet-kind-DmRQR63L.js → wallet-kind-PnN45EW0.js} +1 -1
- package/assets/{wallets-CH6ovtsY.js → wallets-CgInyYuE.js} +6 -6
- package/assets/{web-connector-fZY0b-3_.js → web-connector-DitPEy2c.js} +3 -3
- package/assets/{writeContract-D6AcaE27.js → writeContract-CzZHvjcP.js} +1 -1
- package/assets/{zoraTestnet-CHyjVmWt.js → zoraTestnet-l_-faq0L.js} +1 -1
- package/index.html +8 -8
- package/package.json +2 -2
- package/assets/Assets-CicnCRkP.js +0 -1
- package/assets/Cart-bywt8_CL.js +0 -1
- package/assets/ImportListings-DgevLbSo.js +0 -1
- package/assets/MyAssets-C_jVBeCP.js +0 -1
- package/assets/Success-B2aNqHp6.js +0 -1
- package/assets/buy-DIwWkpJJ.js +0 -1
- package/assets/decimals-DWEHw5Cf.js +0 -1
- package/assets/get-ecosystem-wallet-info-BHxUH0sn.js +0 -1
- package/assets/network-S_CrOtw4.js +0 -1
- package/assets/trade-encoding-3-fY1Skv.js +0 -1
- package/assets/useStore-BgEatlVS.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as d,i as p,b as m}from"./lit-element-B3y9oplH.js";import{n as h}from"./class-map-CxwNmq0D.js";import{r as f,v as r}from"./index-
|
|
1
|
+
import{a as d,i as p,b as m}from"./lit-element-B3y9oplH.js";import{n as h}from"./class-map-CxwNmq0D.js";import{r as f,v as r}from"./index-C4JAp-Oa.js";import{c as x}from"./index-D7Fx-Qac.js";const g=d`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as k}from"./index-BV8s6ez1.js";import{az as w}from"./sendRawTransaction-
|
|
1
|
+
import{r as k}from"./index-BV8s6ez1.js";import{az as w}from"./sendRawTransaction-CR5Mmi6b.js";import{c as I,e as q}from"./hashTypedData-78L5umOY.js";import"./NetworkUtil-DInevqnn.js";import"./ethers-DwWf2RqE.js";import"./react-C51i12iP.js";import"./index-C1u3RQ96.js";const v=()=>"9.1.0",C=t=>t.toString(16).padStart(2,"0"),R=t=>{const e=new Uint8Array(t/2);return window.crypto.getRandomValues(e),Array.from(e,C).join("")},E=()=>typeof window<"u"?R(10):new Date().getTime().toString(36);class g{}g.makeRequest=(t,e)=>({id:E(),method:t,params:e,env:{sdkVersion:v()}});g.makeResponse=(t,e,s)=>({id:t,success:!0,version:s,data:e});g.makeErrorResponse=(t,e,s)=>({id:t,success:!1,error:e,version:s});var r;(function(t){t.sendTransactions="sendTransactions",t.rpcCall="rpcCall",t.getChainInfo="getChainInfo",t.getSafeInfo="getSafeInfo",t.getTxBySafeTxHash="getTxBySafeTxHash",t.getSafeBalances="getSafeBalances",t.signMessage="signMessage",t.signTypedMessage="signTypedMessage",t.getEnvironmentInfo="getEnvironmentInfo",t.getOffChainSignature="getOffChainSignature",t.requestAddressBook="requestAddressBook",t.wallet_getPermissions="wallet_getPermissions",t.wallet_requestPermissions="wallet_requestPermissions"})(r||(r={}));var f;(function(t){t.requestAddressBook="requestAddressBook"})(f||(f={}));class H{constructor(e=null,s=!1){this.allowedOrigins=null,this.callbacks=new Map,this.debugMode=!1,this.isServer=typeof window>"u",this.isValidMessage=({origin:a,data:n,source:i})=>{const o=!n,l=!this.isServer&&i===window.parent,u=typeof n.version<"u"&&parseInt(n.version.split(".")[0]),B=typeof u=="number"&&u>=1;let y=!0;return Array.isArray(this.allowedOrigins)&&(y=this.allowedOrigins.find(P=>P.test(a))!==void 0),!o&&l&&B&&y},this.logIncomingMessage=a=>{console.info(`Safe Apps SDK v1: A message was received from origin ${a.origin}. `,a.data)},this.onParentMessage=a=>{this.isValidMessage(a)&&(this.debugMode&&this.logIncomingMessage(a),this.handleIncomingMessage(a.data))},this.handleIncomingMessage=a=>{const{id:n}=a,i=this.callbacks.get(n);i&&(i(a),this.callbacks.delete(n))},this.send=(a,n)=>{const i=g.makeRequest(a,n);if(this.isServer)throw new Error("Window doesn't exist");return window.parent.postMessage(i,"*"),new Promise((o,l)=>{this.callbacks.set(i.id,u=>{if(!u.success){l(new Error(u.error));return}o(u)})})},this.allowedOrigins=e,this.debugMode=s,this.isServer||window.addEventListener("message",this.onParentMessage)}}const S=t=>typeof t=="object"&&t!=null&&"domain"in t&&"types"in t&&"message"in t;var m=k();class A{constructor(e){this.communicator=e}async getBySafeTxHash(e){if(!e)throw new Error("Invalid safeTxHash");return(await this.communicator.send(r.getTxBySafeTxHash,{safeTxHash:e})).data}async signMessage(e){const s={message:e};return(await this.communicator.send(r.signMessage,s)).data}async signTypedMessage(e){if(!S(e))throw new Error("Invalid typed data");return(await this.communicator.send(r.signTypedMessage,{typedData:e})).data}async send({txs:e,params:s}){if(!e||!e.length)throw new Error("No transactions were passed");const a={txs:e,params:s};return(await this.communicator.send(r.sendTransactions,a)).data}}const c={eth_call:"eth_call",eth_gasPrice:"eth_gasPrice",eth_getLogs:"eth_getLogs",eth_getBalance:"eth_getBalance",eth_getCode:"eth_getCode",eth_getBlockByHash:"eth_getBlockByHash",eth_getBlockByNumber:"eth_getBlockByNumber",eth_getStorageAt:"eth_getStorageAt",eth_getTransactionByHash:"eth_getTransactionByHash",eth_getTransactionReceipt:"eth_getTransactionReceipt",eth_getTransactionCount:"eth_getTransactionCount",eth_estimateGas:"eth_estimateGas",safe_setSettings:"safe_setSettings"},h={defaultBlockParam:(t="latest")=>t,returnFullTxObjectParam:(t=!1)=>t,blockNumberToHex:t=>Number.isInteger(t)?`0x${t.toString(16)}`:t};class O{constructor(e){this.communicator=e,this.call=this.buildRequest({call:c.eth_call,formatters:[null,h.defaultBlockParam]}),this.getBalance=this.buildRequest({call:c.eth_getBalance,formatters:[null,h.defaultBlockParam]}),this.getCode=this.buildRequest({call:c.eth_getCode,formatters:[null,h.defaultBlockParam]}),this.getStorageAt=this.buildRequest({call:c.eth_getStorageAt,formatters:[null,h.blockNumberToHex,h.defaultBlockParam]}),this.getPastLogs=this.buildRequest({call:c.eth_getLogs}),this.getBlockByHash=this.buildRequest({call:c.eth_getBlockByHash,formatters:[null,h.returnFullTxObjectParam]}),this.getBlockByNumber=this.buildRequest({call:c.eth_getBlockByNumber,formatters:[h.blockNumberToHex,h.returnFullTxObjectParam]}),this.getTransactionByHash=this.buildRequest({call:c.eth_getTransactionByHash}),this.getTransactionReceipt=this.buildRequest({call:c.eth_getTransactionReceipt}),this.getTransactionCount=this.buildRequest({call:c.eth_getTransactionCount,formatters:[null,h.defaultBlockParam]}),this.getGasPrice=this.buildRequest({call:c.eth_gasPrice}),this.getEstimateGas=s=>this.buildRequest({call:c.eth_estimateGas})([s]),this.setSafeSettings=this.buildRequest({call:c.safe_setSettings})}buildRequest(e){const{call:s,formatters:a}=e;return async n=>{a&&Array.isArray(n)&&a.forEach((l,u)=>{l&&(n[u]=l(n[u]))});const i={call:s,params:n||[]};return(await this.communicator.send(r.rpcCall,i)).data}}}const x="0x1626ba7e",V="0x20c13b0b",p=4001;class d extends Error{constructor(e,s,a){super(e),this.code=s,this.data=a,Object.setPrototypeOf(this,d.prototype)}}class _{constructor(e){this.communicator=e}async getPermissions(){return(await this.communicator.send(r.wallet_getPermissions,void 0)).data}async requestPermissions(e){if(!this.isPermissionRequestValid(e))throw new d("Permissions request is invalid",p);try{return(await this.communicator.send(r.wallet_requestPermissions,e)).data}catch{throw new d("Permissions rejected",p)}}isPermissionRequestValid(e){return e.every(s=>typeof s=="object"?Object.keys(s).every(a=>!!Object.values(f).includes(a)):!1)}}const b=(t,e)=>e.some(s=>s.parentCapability===t),M=()=>(t,e,s)=>{const a=s.value;return s.value=async function(){const n=new _(this.communicator);let i=await n.getPermissions();if(b(e,i)||(i=await n.requestPermissions([{[e]:{}}])),!b(e,i))throw new d("Permissions rejected",p);return a.apply(this)},s};var j=function(t,e,s,a){var n=arguments.length,i=n<3?e:a===null?a=Object.getOwnPropertyDescriptor(e,s):a,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,s,a);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(i=(n<3?o(i):n>3?o(e,s,i):o(e,s))||i);return n>3&&i&&Object.defineProperty(e,s,i),i};class T{constructor(e){this.communicator=e}async getChainInfo(){return(await this.communicator.send(r.getChainInfo,void 0)).data}async getInfo(){return(await this.communicator.send(r.getSafeInfo,void 0)).data}async experimental_getBalances({currency:e="usd"}={}){return(await this.communicator.send(r.getSafeBalances,{currency:e})).data}async check1271Signature(e,s="0x"){const a=await this.getInfo(),n=w({abi:[{constant:!1,inputs:[{name:"_dataHash",type:"bytes32"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,s]}),i={call:c.eth_call,params:[{to:a.safeAddress,data:n},"latest"]};try{return(await this.communicator.send(r.rpcCall,i)).data.slice(0,10).toLowerCase()===x}catch{return!1}}async check1271SignatureBytes(e,s="0x"){const a=await this.getInfo(),n=w({abi:[{constant:!1,inputs:[{name:"_data",type:"bytes"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,s]}),i={call:c.eth_call,params:[{to:a.safeAddress,data:n},"latest"]};try{return(await this.communicator.send(r.rpcCall,i)).data.slice(0,10).toLowerCase()===V}catch{return!1}}calculateMessageHash(e){return I(e)}calculateTypedMessageHash(e){const s=typeof e.domain.chainId=="object"?e.domain.chainId.toNumber():Number(e.domain.chainId);let a=e.primaryType;if(!a){const n=Object.values(e.types),i=Object.keys(e.types).filter(o=>n.every(l=>l.every(({type:u})=>u.replace("[","").replace("]","")!==o)));if(i.length===0||i.length>1)throw new Error("Please specify primaryType");a=i[0]}return q({message:e.message,domain:{...e.domain,chainId:s,verifyingContract:e.domain.verifyingContract,salt:e.domain.salt},types:e.types,primaryType:a})}async getOffChainSignature(e){return(await this.communicator.send(r.getOffChainSignature,e)).data}async isMessageSigned(e,s="0x"){let a;if(typeof e=="string"&&(a=async()=>{const n=this.calculateMessageHash(e);return await this.isMessageHashSigned(n,s)}),S(e)&&(a=async()=>{const n=this.calculateTypedMessageHash(e);return await this.isMessageHashSigned(n,s)}),a)return await a();throw new Error("Invalid message type")}async isMessageHashSigned(e,s="0x"){const a=[this.check1271Signature.bind(this),this.check1271SignatureBytes.bind(this)];for(const n of a)if(await n(e,s))return!0;return!1}async getEnvironmentInfo(){return(await this.communicator.send(r.getEnvironmentInfo,void 0)).data}async requestAddressBook(){return(await this.communicator.send(r.requestAddressBook,void 0)).data}}j([M()],T.prototype,"requestAddressBook",null);class W{constructor(e={}){const{allowedDomains:s=null,debug:a=!1}=e;this.communicator=new H(s,a),this.eth=new O(this.communicator),this.txs=new A(this.communicator),this.safe=new T(this.communicator),this.wallet=new _(this.communicator)}}const $=m.Operation,z=m.TokenType,J=m.TransactionStatus,Q=m.TransferDirection;export{g as MessageFormatter,r as Methods,$ as Operation,c as RPC_CALLS,f as RestrictedMethods,z as TokenType,J as TransactionStatus,Q as TransferDirection,W as default,v as getSDKVersion,S as isObjectEIP712TypedData};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as b,b as l,a as O}from"./lit-element-B3y9oplH.js";import{n as h,r as d}from"./class-map-CxwNmq0D.js";import{d as C,r as E,e as P}from"./index-
|
|
1
|
+
import{i as b,b as l,a as O}from"./lit-element-B3y9oplH.js";import{n as h,r as d}from"./class-map-CxwNmq0D.js";import{d as C,r as E,e as P}from"./index-C4JAp-Oa.js";import{c as v,U as x}from"./index-D7Fx-Qac.js";import"./index-P4QO1O0D.js";import"./index-BYRbnzmu.js";import{u as g,R as S,o as $,b as R,S as T}from"./W3MFrameProviderSingleton-BrDTQqcr.js";const L=C`
|
|
2
2
|
:host {
|
|
3
3
|
position: relative;
|
|
4
4
|
display: inline-block;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as $,e as ri,c as Hn,g as $t,j,f as hr,R as mr,h as ni,i as oi,k as lr}from"./react-C51i12iP.js";import{aL as Ht,aM as ai,aN as ii,R as He,O as Wt,P as dt,Q as Ot,S as M,T as Ge,V as Rt,X as je,aO as Be,aP as tt,aQ as si,aR as Or,aS as Je,aT as wt,aU as Fn,aV as li,aW as Ft,aX as ui,aY as ci,U as ye,aZ as fi,a_ as pi,a$ as va,b0 as ur,b1 as cr}from"./index-
|
|
1
|
+
import{r as $,e as ri,c as Hn,g as $t,j,f as hr,R as mr,h as ni,i as oi,k as lr}from"./react-C51i12iP.js";import{aL as Ht,aM as ai,aN as ii,R as He,O as Wt,P as dt,Q as Ot,S as M,T as Ge,V as Rt,X as je,aO as Be,aP as tt,aQ as si,aR as Or,aS as Je,aT as wt,aU as Fn,aV as li,aW as Ft,aX as ui,aY as ci,U as ye,aZ as fi,a_ as pi,a$ as va,b0 as ur,b1 as cr}from"./index-C1u3RQ96.js";import{b as Pt,h as Ct,a as Ze,i as ha,j as ma,k as ga,l as di,m as fr,e as vi,n as hi,o as mi,p as gi,q as yi,d as Mr,s as ya,g as ba,c as xa,f as bi,t as xi,r as Si}from"./index-Dp3Py-Ws.js";import{p as Lr}from"./ethers-DwWf2RqE.js";import{c as wi,u as Ei,_ as $i,T as Sa,B as Oi,a as Ri,b as Pi,d as Ci,e as Tn,f as An,g as ki}from"./index-B4tMFfvy.js";import{E as Hc}from"./index-B4tMFfvy.js";import{c as Ii}from"./index-Bsx6GubH.js";import{n as nt}from"./emotion-styled.browser.esm-Col8rSBp.js";import"./CircularProgress-DF1tx4Pz.js";function Mi(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Ti(e){return $.Children.toArray(e).filter(t=>$.isValidElement(t))}const Ai={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},Bi={},Li=Object.freeze(Object.defineProperty({__proto__:null,default:Bi},Symbol.toStringTag,{value:"Module"})),Di=ri(Li);var Dr,Vn;function Tr(){if(Vn)return Dr;Vn=1;var e=typeof Map=="function"&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,r=e&&t&&typeof t.get=="function"?t.get:null,o=e&&Map.prototype.forEach,n=typeof Set=="function"&&Set.prototype,a=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,s=n&&a&&typeof a.get=="function"?a.get:null,i=n&&Set.prototype.forEach,l=typeof WeakMap=="function"&&WeakMap.prototype,u=l?WeakMap.prototype.has:null,c=typeof WeakSet=="function"&&WeakSet.prototype,p=c?WeakSet.prototype.has:null,m=typeof WeakRef=="function"&&WeakRef.prototype,h=m?WeakRef.prototype.deref:null,g=Boolean.prototype.valueOf,y=Object.prototype.toString,v=Function.prototype.toString,w=String.prototype.match,O=String.prototype.slice,x=String.prototype.replace,S=String.prototype.toUpperCase,E=String.prototype.toLowerCase,T=RegExp.prototype.test,k=Array.prototype.concat,A=Array.prototype.join,C=Array.prototype.slice,B=Math.floor,W=typeof BigInt=="function"?BigInt.prototype.valueOf:null,U=Object.getOwnPropertySymbols,q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ie=typeof Symbol=="function"&&typeof Symbol.iterator=="object",L=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ie||!0)?Symbol.toStringTag:null,X=Object.prototype.propertyIsEnumerable,F=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(f){return f.__proto__}:null);function se(f,d){if(f===1/0||f===-1/0||f!==f||f&&f>-1e3&&f<1e3||T.call(/e/,d))return d;var Y=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof f=="number"){var ue=f<0?-B(-f):B(f);if(ue!==f){var ce=String(ue),G=O.call(d,ce.length+1);return x.call(ce,Y,"$&_")+"."+x.call(x.call(G,/([0-9]{3})/g,"$&_"),/_$/,"")}}return x.call(d,Y,"$&_")}var K=Di,he=K.custom,Ie=ne(he)?he:null,Ee={__proto__:null,double:'"',single:"'"},be={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Dr=function f(d,Y,ue,ce){var G=Y||{};if(de(G,"quoteStyle")&&!de(Ee,G.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(de(G,"maxStringLength")&&(typeof G.maxStringLength=="number"?G.maxStringLength<0&&G.maxStringLength!==1/0:G.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Te=de(G,"customInspect")?G.customInspect:!0;if(typeof Te!="boolean"&&Te!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(de(G,"indent")&&G.indent!==null&&G.indent!==" "&&!(parseInt(G.indent,10)===G.indent&&G.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(de(G,"numericSeparator")&&typeof G.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var _e=G.numericSeparator;if(typeof d>"u")return"undefined";if(d===null)return"null";if(typeof d=="boolean")return d?"true":"false";if(typeof d=="string")return Oe(d,G);if(typeof d=="number"){if(d===0)return 1/0/d>0?"0":"-0";var Se=String(d);return _e?se(d,Se):Se}if(typeof d=="bigint"){var Ae=String(d)+"n";return _e?se(d,Ae):Ae}var ht=typeof G.depth>"u"?5:G.depth;if(typeof ue>"u"&&(ue=0),ue>=ht&&ht>0&&typeof d=="object")return N(d)?"[Array]":"[Object]";var ze=Q(G,ue);if(typeof ce>"u")ce=[];else if(le(ce,d)>=0)return"[Circular]";function Ce(we,Bt,Br){if(Bt&&(ce=C.call(ce),ce.push(Bt)),Br){var vr={depth:G.depth};return de(G,"quoteStyle")&&(vr.quoteStyle=G.quoteStyle),f(we,vr,ue+1,ce)}return f(we,G,ue+1,ce)}if(typeof d=="function"&&!ae(d)){var ct=Fe(d),It=Pe(d,Ce);return"[Function"+(ct?": "+ct:" (anonymous)")+"]"+(It.length>0?" { "+A.call(It,", ")+" }":"")}if(ne(d)){var Mt=ie?x.call(String(d),/^(Symbol\(.*\))_[^)]*$/,"$1"):q.call(d);return typeof d=="object"&&!ie?I(Mt):Mt}if($e(d)){for(var ot="<"+E.call(String(d.nodeName)),mt=d.attributes||[],ft=0;ft<mt.length;ft++)ot+=" "+mt[ft].name+"="+b(P(mt[ft].value),"double",G);return ot+=">",d.childNodes&&d.childNodes.length&&(ot+="..."),ot+="</"+E.call(String(d.nodeName))+">",ot}if(N(d)){if(d.length===0)return"[]";var gt=Pe(d,Ce);return ze&&!oe(gt)?"["+Re(gt,ze)+"]":"[ "+A.call(gt,", ")+" ]"}if(re(d)){var at=Pe(d,Ce);return!("cause"in Error.prototype)&&"cause"in d&&!X.call(d,"cause")?"{ ["+String(d)+"] "+A.call(k.call("[cause]: "+Ce(d.cause),at),", ")+" }":at.length===0?"["+String(d)+"]":"{ ["+String(d)+"] "+A.call(at,", ")+" }"}if(typeof d=="object"&&Te){if(Ie&&typeof d[Ie]=="function"&&K)return K(d,{depth:ht-ue});if(Te!=="symbol"&&typeof d.inspect=="function")return d.inspect()}if(xe(d)){var Tt=[];return o&&o.call(d,function(we,Bt){Tt.push(Ce(Bt,d,!0)+" => "+Ce(we,d))}),te("Map",r.call(d),Tt,ze)}if(Me(d)){var pt=[];return i&&i.call(d,function(we){pt.push(Ce(we,d))}),te("Set",s.call(d),pt,ze)}if(qe(d))return D("WeakMap");if(Ve(d))return D("WeakSet");if(Ne(d))return D("WeakRef");if(V(d))return I(Ce(Number(d)));if(J(d))return I(Ce(W.call(d)));if(Z(d))return I(g.call(d));if(ee(d))return I(Ce(String(d)));if(typeof window<"u"&&d===window)return"{ [object Window] }";if(typeof globalThis<"u"&&d===globalThis||typeof Hn<"u"&&d===Hn)return"{ [object globalThis] }";if(!_(d)&&!ae(d)){var it=Pe(d,Ce),At=F?F(d)===Object.prototype:d instanceof Object||d.constructor===Object,ve=d instanceof Object?"":"null prototype",me=!At&&L&&Object(d)===d&&L in d?O.call(pe(d),8,-1):ve?"Object":"",yt=At||typeof d.constructor!="function"?"":d.constructor.name?d.constructor.name+" ":"",Qe=yt+(me||ve?"["+A.call(k.call([],me||[],ve||[]),": ")+"] ":"");return it.length===0?Qe+"{}":ze?Qe+"{"+Re(it,ze)+"}":Qe+"{ "+A.call(it,", ")+" }"}return String(d)};function b(f,d,Y){var ue=Y.quoteStyle||d,ce=Ee[ue];return ce+f+ce}function P(f){return x.call(String(f),/"/g,""")}function H(f){return!L||!(typeof f=="object"&&(L in f||typeof f[L]<"u"))}function N(f){return pe(f)==="[object Array]"&&H(f)}function _(f){return pe(f)==="[object Date]"&&H(f)}function ae(f){return pe(f)==="[object RegExp]"&&H(f)}function re(f){return pe(f)==="[object Error]"&&H(f)}function ee(f){return pe(f)==="[object String]"&&H(f)}function V(f){return pe(f)==="[object Number]"&&H(f)}function Z(f){return pe(f)==="[object Boolean]"&&H(f)}function ne(f){if(ie)return f&&typeof f=="object"&&f instanceof Symbol;if(typeof f=="symbol")return!0;if(!f||typeof f!="object"||!q)return!1;try{return q.call(f),!0}catch{}return!1}function J(f){if(!f||typeof f!="object"||!W)return!1;try{return W.call(f),!0}catch{}return!1}var ge=Object.prototype.hasOwnProperty||function(f){return f in this};function de(f,d){return ge.call(f,d)}function pe(f){return y.call(f)}function Fe(f){if(f.name)return f.name;var d=w.call(v.call(f),/^function\s*([\w$]+)/);return d?d[1]:null}function le(f,d){if(f.indexOf)return f.indexOf(d);for(var Y=0,ue=f.length;Y<ue;Y++)if(f[Y]===d)return Y;return-1}function xe(f){if(!r||!f||typeof f!="object")return!1;try{r.call(f);try{s.call(f)}catch{return!0}return f instanceof Map}catch{}return!1}function qe(f){if(!u||!f||typeof f!="object")return!1;try{u.call(f,u);try{p.call(f,p)}catch{return!0}return f instanceof WeakMap}catch{}return!1}function Ne(f){if(!h||!f||typeof f!="object")return!1;try{return h.call(f),!0}catch{}return!1}function Me(f){if(!s||!f||typeof f!="object")return!1;try{s.call(f);try{r.call(f)}catch{return!0}return f instanceof Set}catch{}return!1}function Ve(f){if(!p||!f||typeof f!="object")return!1;try{p.call(f,p);try{u.call(f,u)}catch{return!0}return f instanceof WeakSet}catch{}return!1}function $e(f){return!f||typeof f!="object"?!1:typeof HTMLElement<"u"&&f instanceof HTMLElement?!0:typeof f.nodeName=="string"&&typeof f.getAttribute=="function"}function Oe(f,d){if(f.length>d.maxStringLength){var Y=f.length-d.maxStringLength,ue="... "+Y+" more character"+(Y>1?"s":"");return Oe(O.call(f,0,d.maxStringLength),d)+ue}var ce=be[d.quoteStyle||"single"];ce.lastIndex=0;var G=x.call(x.call(f,ce,"\\$1"),/[\x00-\x1f]/g,R);return b(G,"single",d)}function R(f){var d=f.charCodeAt(0),Y={8:"b",9:"t",10:"n",12:"f",13:"r"}[d];return Y?"\\"+Y:"\\x"+(d<16?"0":"")+S.call(d.toString(16))}function I(f){return"Object("+f+")"}function D(f){return f+" { ? }"}function te(f,d,Y,ue){var ce=ue?Re(Y,ue):A.call(Y,", ");return f+" ("+d+") {"+ce+"}"}function oe(f){for(var d=0;d<f.length;d++)if(le(f[d],`
|
|
2
2
|
`)>=0)return!1;return!0}function Q(f,d){var Y;if(f.indent===" ")Y=" ";else if(typeof f.indent=="number"&&f.indent>0)Y=A.call(Array(f.indent+1)," ");else return null;return{base:Y,prev:A.call(Array(d+1),Y)}}function Re(f,d){if(f.length===0)return"";var Y=`
|
|
3
3
|
`+d.prev+d.base;return Y+A.call(f,","+Y)+`
|
|
4
4
|
`+d.prev}function Pe(f,d){var Y=N(f),ue=[];if(Y){ue.length=f.length;for(var ce=0;ce<f.length;ce++)ue[ce]=de(f,ce)?d(f[ce],f):""}var G=typeof U=="function"?U(f):[],Te;if(ie){Te={};for(var _e=0;_e<G.length;_e++)Te["$"+G[_e]]=G[_e]}for(var Se in f)de(f,Se)&&(Y&&String(Number(Se))===Se&&Se<f.length||ie&&Te["$"+Se]instanceof Symbol||(T.call(/[^\w$]/,Se)?ue.push(d(Se,f)+": "+d(f[Se],f)):ue.push(Se+": "+d(f[Se],f))));if(typeof U=="function")for(var Ae=0;Ae<G.length;Ae++)X.call(f,G[Ae])&&ue.push("["+d(G[Ae])+"]: "+d(f[G[Ae]],f));return ue}return Dr}var jr,zn;function ji(){if(zn)return jr;zn=1;var e=Tr(),t=Pt(),r=function(i,l,u){for(var c=i,p;(p=c.next)!=null;c=p)if(p.key===l)return c.next=p.next,u||(p.next=i.next,i.next=p),p},o=function(i,l){if(i){var u=r(i,l);return u&&u.value}},n=function(i,l,u){var c=r(i,l);c?c.value=u:i.next={key:l,next:i.next,value:u}},a=function(i,l){return i?!!r(i,l):!1},s=function(i,l){if(i)return r(i,l,!0)};return jr=function(){var l,u={assert:function(c){if(!u.has(c))throw new t("Side channel does not contain "+e(c))},delete:function(c){var p=s(l,c);return p&&l&&!l.next&&(l=void 0),!!p},get:function(c){return o(l,c)},has:function(c){return a(l,c)},set:function(c,p){l||(l={next:void 0}),n(l,c,p)}};return u},jr}var qr,Un;function wa(){if(Un)return qr;Un=1;var e=Ct(),t=Ze(),r=Tr(),o=Pt(),n=e("%Map%",!0),a=t("Map.prototype.get",!0),s=t("Map.prototype.set",!0),i=t("Map.prototype.has",!0),l=t("Map.prototype.delete",!0),u=t("Map.prototype.size",!0);return qr=!!n&&function(){var p,m={assert:function(h){if(!m.has(h))throw new o("Side channel does not contain "+r(h))},delete:function(h){if(p){var g=l(p,h);return u(p)===0&&(p=void 0),g}return!1},get:function(h){if(p)return a(p,h)},has:function(h){return p?i(p,h):!1},set:function(h,g){p||(p=new n),s(p,h,g)}};return m},qr}var Nr,Gn;function qi(){if(Gn)return Nr;Gn=1;var e=Ct(),t=Ze(),r=Tr(),o=wa(),n=Pt(),a=e("%WeakMap%",!0),s=t("WeakMap.prototype.get",!0),i=t("WeakMap.prototype.set",!0),l=t("WeakMap.prototype.has",!0),u=t("WeakMap.prototype.delete",!0);return Nr=a?function(){var p,m,h={assert:function(g){if(!h.has(g))throw new n("Side channel does not contain "+r(g))},delete:function(g){if(a&&g&&(typeof g=="object"||typeof g=="function")){if(p)return u(p,g)}else if(o&&m)return m.delete(g);return!1},get:function(g){return a&&g&&(typeof g=="object"||typeof g=="function")&&p?s(p,g):m&&m.get(g)},has:function(g){return a&&g&&(typeof g=="object"||typeof g=="function")&&p?l(p,g):!!m&&m.has(g)},set:function(g,y){a&&g&&(typeof g=="object"||typeof g=="function")?(p||(p=new a),i(p,g,y)):o&&(m||(m=o()),m.set(g,y))}};return h}:o,Nr}var _r,Xn;function Ea(){if(Xn)return _r;Xn=1;var e=Pt(),t=Tr(),r=ji(),o=wa(),n=qi(),a=n||o||r;return _r=function(){var i,l={assert:function(u){if(!l.has(u)){var c=u&&Object(u)===u?"the given object key":t(u);throw new e("Side channel does not contain "+c)}},delete:function(u){return!!i&&i.delete(u)},get:function(u){return i&&i.get(u)},has:function(u){return!!i&&i.has(u)},set:function(u,c){i||(i=a()),i.set(u,c)}};return l},_r}var Wr,Yn;function $a(){if(Yn)return Wr;Yn=1;var e=Object.prototype.toString;return Wr=function(r){var o=e.call(r),n=o==="[object Arguments]";return n||(n=o!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&e.call(r.callee)==="[object Function]"),n},Wr}var Hr,Kn;function Ni(){if(Kn)return Hr;Kn=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,o=$a(),n=Object.prototype.propertyIsEnumerable,a=!n.call({toString:null},"toString"),s=n.call(function(){},"prototype"),i=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(m){var h=m.constructor;return h&&h.prototype===m},u={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},c=(function(){if(typeof window>"u")return!1;for(var m in window)try{if(!u["$"+m]&&t.call(window,m)&&window[m]!==null&&typeof window[m]=="object")try{l(window[m])}catch{return!0}}catch{return!0}return!1})(),p=function(m){if(typeof window>"u"||!c)return l(m);try{return l(m)}catch{return!1}};e=function(h){var g=h!==null&&typeof h=="object",y=r.call(h)==="[object Function]",v=o(h),w=g&&r.call(h)==="[object String]",O=[];if(!g&&!y&&!v)throw new TypeError("Object.keys called on a non-object");var x=s&&y;if(w&&h.length>0&&!t.call(h,0))for(var S=0;S<h.length;++S)O.push(String(S));if(v&&h.length>0)for(var E=0;E<h.length;++E)O.push(String(E));else for(var T in h)!(x&&T==="prototype")&&t.call(h,T)&&O.push(String(T));if(a)for(var k=p(h),A=0;A<i.length;++A)!(k&&i[A]==="constructor")&&t.call(h,i[A])&&O.push(i[A]);return O}}return Hr=e,Hr}var Fr,Zn;function Bn(){if(Zn)return Fr;Zn=1;var e=Array.prototype.slice,t=$a(),r=Object.keys,o=r?function(s){return r(s)}:Ni(),n=Object.keys;return o.shim=function(){if(Object.keys){var s=(function(){var i=Object.keys(arguments);return i&&i.length===arguments.length})(1,2);s||(Object.keys=function(l){return t(l)?n(e.call(l)):n(l)})}else Object.keys=o;return Object.keys||o},Fr=o,Fr}var Vr,Jn;function kt(){if(Jn)return Vr;Jn=1;var e=Bn(),t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",r=Object.prototype.toString,o=Array.prototype.concat,n=ma(),a=function(u){return typeof u=="function"&&r.call(u)==="[object Function]"},s=ha()(),i=function(u,c,p,m){if(c in u){if(m===!0){if(u[c]===p)return}else if(!a(m)||!m())return}s?n(u,c,p,!0):n(u,c,p)},l=function(u,c){var p=arguments.length>2?arguments[2]:{},m=e(c);t&&(m=o.call(m,Object.getOwnPropertySymbols(c)));for(var h=0;h<m.length;h+=1)i(u,m[h],c[m[h]],p[m[h]])};return l.supportsDescriptors=!!s,Vr=l,Vr}var zr,Qn;function Oa(){if(Qn)return zr;Qn=1;var e=Bn(),t=ga()(),r=Ze(),o=di(),n=r("Array.prototype.push"),a=r("Object.prototype.propertyIsEnumerable"),s=t?o.getOwnPropertySymbols:null;return zr=function(l,u){if(l==null)throw new TypeError("target must be an object");var c=o(l);if(arguments.length===1)return c;for(var p=1;p<arguments.length;++p){var m=o(arguments[p]),h=e(m),g=t&&(o.getOwnPropertySymbols||s);if(g)for(var y=g(m),v=0;v<y.length;++v){var w=y[v];a(m,w)&&n(h,w)}for(var O=0;O<h.length;++O){var x=h[O];if(a(m,x)){var S=m[x];c[x]=S}}}return c},zr}var Ur,eo;function Ra(){if(eo)return Ur;eo=1;var e=Oa(),t=function(){if(!Object.assign)return!1;for(var o="abcdefghijklmnopqrst",n=o.split(""),a={},s=0;s<n.length;++s)a[n[s]]=n[s];var i=Object.assign({},a),l="";for(var u in i)l+=u;return o!==l},r=function(){if(!Object.assign||!Object.preventExtensions)return!1;var o=Object.preventExtensions({1:2});try{Object.assign(o,"xy")}catch{return o[1]==="y"}return!1};return Ur=function(){return!Object.assign||t()||r()?e:Object.assign},Ur}var Gr,to;function _i(){if(to)return Gr;to=1;var e=kt(),t=Ra();return Gr=function(){var o=t();return e(Object,{assign:o},{assign:function(){return Object.assign!==o}}),o},Gr}var Xr,ro;function Wi(){if(ro)return Xr;ro=1;var e=kt(),t=fr(),r=Oa(),o=Ra(),n=_i(),a=t.apply(o()),s=function(l,u){return a(Object,arguments)};return e(s,{getPolyfill:o,implementation:r,shim:n}),Xr=s,Xr}var Yr,no;function Pa(){if(no)return Yr;no=1;var e=Ct(),t=fr(),r=t(e("String.prototype.indexOf"));return Yr=function(n,a){var s=e(n,!!a);return typeof s=="function"&&r(n,".prototype.")>-1?t(s):s},Yr}var Kr,oo;function Hi(){if(oo)return Kr;oo=1;var e=function(){return typeof(function(){}).name=="string"},t=Object.getOwnPropertyDescriptor;if(t)try{t([],"length")}catch{t=null}e.functionsHaveConfigurableNames=function(){if(!e()||!t)return!1;var n=t(function(){},"name");return!!n&&!!n.configurable};var r=Function.prototype.bind;return e.boundFunctionsHaveNames=function(){return e()&&typeof r=="function"&&(function(){}).bind().name!==""},Kr=e,Kr}var Zr,ao;function Fi(){if(ao)return Zr;ao=1;var e=ma(),t=ha()(),r=Hi().functionsHaveConfigurableNames(),o=Pt();return Zr=function(a,s){if(typeof a!="function")throw new o("`fn` is not a function");var i=arguments.length>2&&!!arguments[2];return(!i||r)&&(t?e(a,"name",s,!0,!0):e(a,"name",s)),a},Zr}var Jr,io;function Ca(){if(io)return Jr;io=1;var e=Fi(),t=Pt(),r=Object;return Jr=e(function(){if(this==null||this!==r(this))throw new t("RegExp.prototype.flags getter called on non-object");var n="";return this.hasIndices&&(n+="d"),this.global&&(n+="g"),this.ignoreCase&&(n+="i"),this.multiline&&(n+="m"),this.dotAll&&(n+="s"),this.unicode&&(n+="u"),this.unicodeSets&&(n+="v"),this.sticky&&(n+="y"),n},"get flags",!0),Jr}var Qr,so;function ka(){if(so)return Qr;so=1;var e=Ca(),t=kt().supportsDescriptors,r=Object.getOwnPropertyDescriptor;return Qr=function(){if(t&&/a/mig.flags==="gim"){var n=r(RegExp.prototype,"flags");if(n&&typeof n.get=="function"&&"dotAll"in RegExp.prototype&&"hasIndices"in RegExp.prototype){var a="",s={};if(Object.defineProperty(s,"hasIndices",{get:function(){a+="d"}}),Object.defineProperty(s,"sticky",{get:function(){a+="y"}}),n.get.call(s),a==="dy")return n.get}}return e},Qr}var en,lo;function Vi(){if(lo)return en;lo=1;var e=kt().supportsDescriptors,t=ka(),r=mi(),o=Object.defineProperty,n=hi(),a=vi(),s=/a/;return en=function(){if(!e||!a)throw new n("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var l=t(),u=a(s),c=r(u,"flags");return(!c||c.get!==l)&&o(u,"flags",{configurable:!0,enumerable:!1,get:l}),l},en}var tn,uo;function zi(){if(uo)return tn;uo=1;var e=kt(),t=fr(),r=Ca(),o=ka(),n=Vi(),a=t(o());return e(a,{getPolyfill:o,implementation:r,shim:n}),tn=a,tn}var Vt={exports:{}},rn,co;function Ui(){if(co)return rn;co=1;var e=gi(),t=Ea()(),r=Pt(),o={assert:function(n,a){if(!n||typeof n!="object"&&typeof n!="function")throw new r("`O` is not an object");if(typeof a!="string")throw new r("`slot` must be a string");if(t.assert(n),!o.has(n,a))throw new r("`"+a+"` is not present on `O`")},get:function(n,a){if(!n||typeof n!="object"&&typeof n!="function")throw new r("`O` is not an object");if(typeof a!="string")throw new r("`slot` must be a string");var s=t.get(n);return s&&s["$"+a]},has:function(n,a){if(!n||typeof n!="object"&&typeof n!="function")throw new r("`O` is not an object");if(typeof a!="string")throw new r("`slot` must be a string");var s=t.get(n);return!!s&&e(s,"$"+a)},set:function(n,a,s){if(!n||typeof n!="object"&&typeof n!="function")throw new r("`O` is not an object");if(typeof a!="string")throw new r("`slot` must be a string");var i=t.get(n);i||(i={},t.set(n,i)),i["$"+a]=s}};return Object.freeze&&Object.freeze(o),rn=o,rn}var nn,fo;function Gi(){if(fo)return nn;fo=1;var e=Ui(),t=yi(),r=typeof StopIteration=="object"?StopIteration:null;return nn=function(n){if(!r)throw new t("this environment lacks StopIteration");e.set(n,"[[Done]]",!1);var a={next:function(){var i=e.get(this,"[[Iterator]]"),l=!!e.get(i,"[[Done]]");try{return{done:l,value:l?void 0:i.next()}}catch(u){if(e.set(i,"[[Done]]",!0),u!==r)throw u;return{done:!0,value:void 0}}}};return e.set(a,"[[Iterator]]",n),a},nn}var on,po;function Ia(){if(po)return on;po=1;var e=Ze(),t=e("String.prototype.valueOf"),r=function(i){try{return t(i),!0}catch{return!1}},o=e("Object.prototype.toString"),n="[object String]",a=Mr()();return on=function(i){return typeof i=="string"?!0:!i||typeof i!="object"?!1:a?r(i):o(i)===n},on}var an,vo;function Ma(){if(vo)return an;vo=1;var e=typeof Map=="function"&&Map.prototype?Map:null,t=typeof Set=="function"&&Set.prototype?Set:null,r;e||(r=function(s){return!1});var o=e?Map.prototype.has:null,n=t?Set.prototype.has:null;return!r&&!o&&(r=function(s){return!1}),an=r||function(s){if(!s||typeof s!="object")return!1;try{if(o.call(s),n)try{n.call(s)}catch{return!0}return s instanceof e}catch{}return!1},an}var sn,ho;function Ta(){if(ho)return sn;ho=1;var e=typeof Map=="function"&&Map.prototype?Map:null,t=typeof Set=="function"&&Set.prototype?Set:null,r;t||(r=function(s){return!1});var o=e?Map.prototype.has:null,n=t?Set.prototype.has:null;return!r&&!n&&(r=function(s){return!1}),sn=r||function(s){if(!s||typeof s!="object")return!1;try{if(n.call(s),o)try{o.call(s)}catch{return!0}return s instanceof t}catch{}return!1},sn}var mo;function Xi(){if(mo)return Vt.exports;mo=1;var e=ba(),t=Gi();if(ya()()||ga()()){var r=Symbol.iterator;Vt.exports=function(C){if(C!=null&&typeof C[r]<"u")return C[r]();if(e(C))return Array.prototype[r].call(C)}}else{var o=xa(),n=Ia(),a=Ct(),s=a("%Map%",!0),i=a("%Set%",!0),l=Pa(),u=l("Array.prototype.push"),c=l("String.prototype.charCodeAt"),p=l("String.prototype.slice"),m=function(C,B){var W=C.length;if(B+1>=W)return B+1;var U=c(C,B);if(U<55296||U>56319)return B+1;var q=c(C,B+1);return q<56320||q>57343?B+1:B+2},h=function(C){var B=0;return{next:function(){var U=B>=C.length,q;return U||(q=C[B],B+=1),{done:U,value:q}}}},g=function(C,B){if(o(C)||e(C))return h(C);if(n(C)){var W=0;return{next:function(){var q=m(C,W),ie=p(C,W,q);return W=q,{done:q>C.length,value:ie}}}}if(B&&typeof C["_es6-shim iterator_"]<"u")return C["_es6-shim iterator_"]()};if(!s&&!i)Vt.exports=function(C){if(C!=null)return g(C,!0)};else{var y=Ma(),v=Ta(),w=l("Map.prototype.forEach",!0),O=l("Set.prototype.forEach",!0);if(typeof Lr>"u"||!Lr.versions||!Lr.versions.node)var x=l("Map.prototype.iterator",!0),S=l("Set.prototype.iterator",!0);var E=l("Map.prototype.@@iterator",!0)||l("Map.prototype._es6-shim iterator_",!0),T=l("Set.prototype.@@iterator",!0)||l("Set.prototype._es6-shim iterator_",!0),k=function(C){if(y(C)){if(x)return t(x(C));if(E)return E(C);if(w){var B=[];return w(C,function(U,q){u(B,[q,U])}),h(B)}}if(v(C)){if(S)return t(S(C));if(T)return T(C);if(O){var W=[];return O(C,function(U){u(W,U)}),h(W)}}};Vt.exports=function(C){return k(C)||g(C)}}}return Vt.exports}var ln,go;function Aa(){if(go)return ln;go=1;var e=function(t){return t!==t};return ln=function(r,o){return r===0&&o===0?1/r===1/o:!!(r===o||e(r)&&e(o))},ln}var un,yo;function Ba(){if(yo)return un;yo=1;var e=Aa();return un=function(){return typeof Object.is=="function"?Object.is:e},un}var cn,bo;function Yi(){if(bo)return cn;bo=1;var e=Ba(),t=kt();return cn=function(){var o=e();return t(Object,{is:o},{is:function(){return Object.is!==o}}),o},cn}var fn,xo;function Ki(){if(xo)return fn;xo=1;var e=kt(),t=fr(),r=Aa(),o=Ba(),n=Yi(),a=t(o(),Object);return e(a,{getPolyfill:o,implementation:r,shim:n}),fn=a,fn}var pn,So;function La(){if(So)return pn;So=1;var e=fr(),t=Ze(),r=Ct(),o=r("%ArrayBuffer%",!0),n=t("ArrayBuffer.prototype.byteLength",!0),a=t("Object.prototype.toString"),s=!!o&&!n&&new o(0).slice,i=!!s&&e(s);return pn=n||i?function(u){if(!u||typeof u!="object")return!1;try{return n?n(u):i(u,0),!0}catch{return!1}}:o?function(u){return a(u)==="[object ArrayBuffer]"}:function(u){return!1},pn}var dn,wo;function Zi(){if(wo)return dn;wo=1;var e=Ze(),t=e("Date.prototype.getDay"),r=function(i){try{return t(i),!0}catch{return!1}},o=e("Object.prototype.toString"),n="[object Date]",a=Mr()();return dn=function(i){return typeof i!="object"||i===null?!1:a?r(i):o(i)===n},dn}var vn,Eo;function Ji(){if(Eo)return vn;Eo=1;var e=Ze(),t=e("SharedArrayBuffer.prototype.byteLength",!0);return vn=t?function(o){if(!o||typeof o!="object")return!1;try{return t(o),!0}catch{return!1}}:function(o){return!1},vn}var hn,$o;function Qi(){if($o)return hn;$o=1;var e=Ze(),t=e("Number.prototype.toString"),r=function(i){try{return t(i),!0}catch{return!1}},o=e("Object.prototype.toString"),n="[object Number]",a=Mr()();return hn=function(i){return typeof i=="number"?!0:!i||typeof i!="object"?!1:a?r(i):o(i)===n},hn}var mn,Oo;function es(){if(Oo)return mn;Oo=1;var e=Ze(),t=e("Boolean.prototype.toString"),r=e("Object.prototype.toString"),o=function(i){try{return t(i),!0}catch{return!1}},n="[object Boolean]",a=Mr()();return mn=function(i){return typeof i=="boolean"?!0:i===null||typeof i!="object"?!1:a?o(i):r(i)===n},mn}var gr={exports:{}},Ro;function ts(){if(Ro)return gr.exports;Ro=1;var e=Ze(),t=e("Object.prototype.toString"),r=ya()(),o=bi();if(r){var n=e("Symbol.prototype.toString"),a=o(/^Symbol\(.*\)$/),s=function(l){return typeof l.valueOf()!="symbol"?!1:a(n(l))};gr.exports=function(l){if(typeof l=="symbol")return!0;if(!l||typeof l!="object"||t(l)!=="[object Symbol]")return!1;try{return s(l)}catch{return!1}}}else gr.exports=function(l){return!1};return gr.exports}var yr={exports:{}},gn,Po;function rs(){if(Po)return gn;Po=1;var e=typeof BigInt<"u"&&BigInt;return gn=function(){return typeof e=="function"&&typeof BigInt=="function"&&typeof e(42)=="bigint"&&typeof BigInt(42)=="bigint"},gn}var Co;function ns(){if(Co)return yr.exports;Co=1;var e=rs()();if(e){var t=BigInt.prototype.valueOf,r=function(n){try{return t.call(n),!0}catch{}return!1};yr.exports=function(n){return n===null||typeof n>"u"||typeof n=="boolean"||typeof n=="string"||typeof n=="number"||typeof n=="symbol"||typeof n=="function"?!1:typeof n=="bigint"?!0:r(n)}}else yr.exports=function(n){return!1};return yr.exports}var yn,ko;function os(){if(ko)return yn;ko=1;var e=Ia(),t=Qi(),r=es(),o=ts(),n=ns();return yn=function(s){if(s==null||typeof s!="object"&&typeof s!="function")return null;if(e(s))return"String";if(t(s))return"Number";if(r(s))return"Boolean";if(o(s))return"Symbol";if(n(s))return"BigInt"},yn}var bn,Io;function as(){if(Io)return bn;Io=1;var e=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,t=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,r;e||(r=function(s){return!1});var o=e?e.prototype.has:null,n=t?t.prototype.has:null;return!r&&!o&&(r=function(s){return!1}),bn=r||function(s){if(!s||typeof s!="object")return!1;try{if(o.call(s,o),n)try{n.call(s,n)}catch{return!0}return s instanceof e}catch{}return!1},bn}var br={exports:{}},Mo;function is(){if(Mo)return br.exports;Mo=1;var e=Ct(),t=Ze(),r=e("%WeakSet%",!0),o=t("WeakSet.prototype.has",!0);if(o){var n=t("WeakMap.prototype.has",!0);br.exports=function(s){if(!s||typeof s!="object")return!1;try{if(o(s,o),n)try{n(s,n)}catch{return!0}return s instanceof r}catch{}return!1}}else br.exports=function(s){return!1};return br.exports}var xn,To;function ss(){if(To)return xn;To=1;var e=Ma(),t=Ta(),r=as(),o=is();return xn=function(a){if(a&&typeof a=="object"){if(e(a))return"Map";if(t(a))return"Set";if(r(a))return"WeakMap";if(o(a))return"WeakSet"}return!1},xn}var Sn,Ao;function ls(){if(Ao)return Sn;Ao=1;var e=Ze(),t=e("ArrayBuffer.prototype.byteLength",!0),r=La();return Sn=function(n){return r(n)?t?t(n):n.byteLength:NaN},Sn}var wn,Bo;function us(){if(Bo)return wn;Bo=1;var e=Wi(),t=Pa(),r=zi(),o=Ct(),n=Xi(),a=Ea(),s=Ki(),i=ba(),l=xa(),u=La(),c=Zi(),p=xi(),m=Ji(),h=Bn(),g=os(),y=ss(),v=Si(),w=ls(),O=t("SharedArrayBuffer.prototype.byteLength",!0),x=t("Date.prototype.getTime"),S=Object.getPrototypeOf,E=t("Object.prototype.toString"),T=o("%Set%",!0),k=t("Map.prototype.has",!0),A=t("Map.prototype.get",!0),C=t("Map.prototype.size",!0),B=t("Set.prototype.add",!0),W=t("Set.prototype.delete",!0),U=t("Set.prototype.has",!0),q=t("Set.prototype.size",!0);function ie(b,P,H,N){for(var _=n(b),ae;(ae=_.next())&&!ae.done;)if(K(P,ae.value,H,N))return W(b,ae.value),!0;return!1}function L(b){if(typeof b>"u")return null;if(typeof b!="object")return typeof b=="symbol"?!1:typeof b=="string"||typeof b=="number"?+b==+b:!0}function X(b,P,H,N,_,ae){var re=L(H);if(re!=null)return re;var ee=A(P,re),V=e({},_,{strict:!1});return typeof ee>"u"&&!k(P,re)||!K(N,ee,V,ae)?!1:!k(b,re)&&K(N,ee,V,ae)}function F(b,P,H){var N=L(H);return N??(U(P,N)&&!U(b,N))}function se(b,P,H,N,_,ae){for(var re=n(b),ee,V;(ee=re.next())&&!ee.done;)if(V=ee.value,K(H,V,_,ae)&&K(N,A(P,V),_,ae))return W(b,V),!0;return!1}function K(b,P,H,N){var _=H||{};if(_.strict?s(b,P):b===P)return!0;var ae=g(b),re=g(P);if(ae!==re)return!1;if(!b||!P||typeof b!="object"&&typeof P!="object")return _.strict?s(b,P):b==P;var ee=N.has(b),V=N.has(P),Z;if(ee&&V){if(N.get(b)===N.get(P))return!0}else Z={};return ee||N.set(b,Z),V||N.set(P,Z),be(b,P,_,N)}function he(b){return!b||typeof b!="object"||typeof b.length!="number"||typeof b.copy!="function"||typeof b.slice!="function"||b.length>0&&typeof b[0]!="number"?!1:!!(b.constructor&&b.constructor.isBuffer&&b.constructor.isBuffer(b))}function Ie(b,P,H,N){if(q(b)!==q(P))return!1;for(var _=n(b),ae=n(P),re,ee,V;(re=_.next())&&!re.done;)if(re.value&&typeof re.value=="object")V||(V=new T),B(V,re.value);else if(!U(P,re.value)){if(H.strict||!F(b,P,re.value))return!1;V||(V=new T),B(V,re.value)}if(V){for(;(ee=ae.next())&&!ee.done;)if(ee.value&&typeof ee.value=="object"){if(!ie(V,ee.value,H.strict,N))return!1}else if(!H.strict&&!U(b,ee.value)&&!ie(V,ee.value,H.strict,N))return!1;return q(V)===0}return!0}function Ee(b,P,H,N){if(C(b)!==C(P))return!1;for(var _=n(b),ae=n(P),re,ee,V,Z,ne,J;(re=_.next())&&!re.done;)if(Z=re.value[0],ne=re.value[1],Z&&typeof Z=="object")V||(V=new T),B(V,Z);else if(J=A(P,Z),typeof J>"u"&&!k(P,Z)||!K(ne,J,H,N)){if(H.strict||!X(b,P,Z,ne,H,N))return!1;V||(V=new T),B(V,Z)}if(V){for(;(ee=ae.next())&&!ee.done;)if(Z=ee.value[0],J=ee.value[1],Z&&typeof Z=="object"){if(!se(V,b,Z,J,H,N))return!1}else if(!H.strict&&(!b.has(Z)||!K(A(b,Z),J,H,N))&&!se(V,b,Z,J,e({},H,{strict:!1}),N))return!1;return q(V)===0}return!0}function be(b,P,H,N){var _,ae;if(typeof b!=typeof P||b==null||P==null||E(b)!==E(P)||i(b)!==i(P))return!1;var re=l(b),ee=l(P);if(re!==ee)return!1;var V=b instanceof Error,Z=P instanceof Error;if(V!==Z||(V||Z)&&(b.name!==P.name||b.message!==P.message))return!1;var ne=p(b),J=p(P);if(ne!==J||(ne||J)&&(b.source!==P.source||r(b)!==r(P)))return!1;var ge=c(b),de=c(P);if(ge!==de||(ge||de)&&x(b)!==x(P)||H.strict&&S&&S(b)!==S(P))return!1;var pe=v(b),Fe=v(P);if(pe!==Fe)return!1;if(pe||Fe){if(b.length!==P.length)return!1;for(_=0;_<b.length;_++)if(b[_]!==P[_])return!1;return!0}var le=he(b),xe=he(P);if(le!==xe)return!1;if(le||xe){if(b.length!==P.length)return!1;for(_=0;_<b.length;_++)if(b[_]!==P[_])return!1;return!0}var qe=u(b),Ne=u(P);if(qe!==Ne)return!1;if(qe||Ne)return w(b)!==w(P)?!1:typeof Uint8Array=="function"&&K(new Uint8Array(b),new Uint8Array(P),H,N);var Me=m(b),Ve=m(P);if(Me!==Ve)return!1;if(Me||Ve)return O(b)!==O(P)?!1:typeof Uint8Array=="function"&&K(new Uint8Array(b),new Uint8Array(P),H,N);if(typeof b!=typeof P)return!1;var $e=h(b),Oe=h(P);if($e.length!==Oe.length)return!1;for($e.sort(),Oe.sort(),_=$e.length-1;_>=0;_--)if($e[_]!=Oe[_])return!1;for(_=$e.length-1;_>=0;_--)if(ae=$e[_],!K(b[ae],P[ae],H,N))return!1;var R=y(b),I=y(P);return R!==I?!1:R==="Set"||I==="Set"?Ie(b,P,H,N):R==="Map"?Ee(b,P,H,N):!0}return wn=function(P,H,N){return K(P,H,N,a())},wn}var cs=us();const Lo=$t(cs);function fs(){let e=null;return(t,r,...o)=>{e&&clearTimeout(e),e=setTimeout(t,r,...o)}}const ps=nt("iframe")({background:"transparent",border:0,width:"100%",height:"100%"}),ds=fs(),z=(e,t)=>t==null||t===""?"":Array.isArray(t)?t.length>0?t.map(r=>`${e}=${encodeURIComponent(String(r))}`).join("&"):"":`${e}=${encodeURIComponent(String(t))}`,vs=e=>{const{dev:t=!1,baseUrl:r=Ii.get("WEARABLE_PREVIEW_URL"),unity:o=!1,onLoad:n=()=>{},onError:a=()=>{},onUpdate:s=()=>{},...i}=e,[l,u]=$.useState({isReady:!1,pendingOptions:null}),c=$.useRef(null),p=$.useRef(null),m=$.useMemo(()=>{const{contractAddress:w,tokenId:O,itemId:x,profile:S,urns:E,urls:T,base64s:k,skin:A,hair:C,eyes:B,bodyShape:W,emote:U,camera:q,projection:ie,zoom:L,background:X,offsetX:F,offsetY:se,offsetZ:K,cameraX:he,cameraY:Ie,cameraZ:Ee,wheelZoom:be,wheelPrecision:b,wheelStart:P,disableBackground:H,disableAutoRotate:N,disableAutoCenter:_,disableFace:ae,disableDefaultWearables:re,disableDefaultEmotes:ee,disableFadeEffect:V,showSceneBoundaries:Z,showThumbnailBoundaries:ne,panning:J,lockAlpha:ge,lockBeta:de,lockRadius:pe,peerUrl:Fe,nftServerUrl:le,marketplaceServerUrl:xe,type:qe,unityMode:Ne,username:Me,socialEmote:Ve}=i,$e=z("contract",w),Oe=z("token",O),R=z("item",x),I=z("profile",S),D=z("urn",E),te=z("url",T),oe=z("base64",k),Q=z("skin",A),Re=z("hair",C),Pe=z("eyes",B),f=z("bodyShape",W),d=z("emote",U),Y=z("camera",q),ue=z("projection",ie),ce=z("zoom",L),G=z("background",X),Te=z("offsetX",F),_e=z("offsetY",se),Se=z("offsetZ",K),Ae=z("cameraX",he),ht=z("cameraY",Ie),ze=z("cameraZ",Ee),Ce=z("wheelZoom",be),ct=z("wheelPrecision",b),It=z("wheelStart",P),Mt=z("disableBackground",H),ot=z("disableAutoRotate",N),mt=z("disableAutoCenter",_),ft=z("disableFace",ae),gt=z("disableDefaultWearables",re),at=z("disableDefaultEmotes",ee),Tt=z("disableFadeEffect",V),pt=z("showSceneBoundaries",Z),it=z("showThumbnailBoundaries",ne),At=z("peerUrl",Fe),me=z("marketplaceServerUrl",xe??le),yt=z("type",qe),Qe=z("panning",J),we=z("lockAlpha",ge),Bt=z("lockBeta",de),Br=z("lockRadius",pe),vr=z("env",t?"dev":void 0),Za=z("unity",o),Ja=z("mode",Ne),Qa=z("username",Me),ei=z("socialEmote",Ve);return r+"?"+[$e,Oe,R,I,D,te,oe,Q,Re,Pe,f,d,Y,ue,ce,G,Te,_e,Se,Ae,ht,ze,Ce,ct,It,Mt,ot,mt,ft,gt,at,Tt,pt,it,At,me,yt,Qe,we,Bt,Br,vr,Za,Ja,Qa,ei].filter(ti=>!!ti).join("&")},[i,r,t,o]),h=$.useMemo(()=>{const w={};for(const O in i)typeof i[O]!="function"&&(w[O]=i[O]);return w},[i]),g=$.useCallback(w=>{var x;const O=p.current;(!O||!Lo(w,O))&&((x=c.current)!=null&&x.contentWindow&&Ht.sendMessage(c.current.contentWindow,Ht.PreviewMessageType.UPDATE,{options:w}),s(w),p.current=w)},[s]),y=$.useCallback(()=>{c.current?typeof window<"u"&&(l.isReady?g(h):Lo(l.pendingOptions,h)||u(w=>({...w,pendingOptions:h,url:m}))):console.warn("Could not send update, iframe is not referenced")},[h,l.pendingOptions,l.isReady,g]),v=$.useCallback(w=>{var S;const{origin:O}=w;if(O!==r||!((S=w.data)!=null&&S.type))return;switch(w.data.type){case Ht.PreviewMessageType.LOAD:{const E=w.data.payload;n(E==null?void 0:E.renderer);break}case Ht.PreviewMessageType.ERROR:{const E=w.data.payload;a(new Error(E.message));break}case Ht.PreviewMessageType.READY:{u(E=>E.isReady?E:E.pendingOptions!==null?(g(E.pendingOptions),{...E,isReady:!0,pendingOptions:null}):{...E,isReady:!0});break}}},[r,n,a,g]);return $.useEffect(()=>(window.addEventListener("message",v,!1),()=>{window.removeEventListener("message",v,!1)}),[v]),$.useEffect(()=>{e.blob&&y()},[e.blob,y]),$.useEffect(()=>{ds(y,500)},[y]),e.tokenId&&e.itemId&&console.warn("You should NOT use `tokenId` and `itemId` props simultaneously"),j.jsx(ps,{id:e.id,src:m,ref:c,allow:"autoplay"})};vs.createController=wi;const hs=$.createContext(),ms=()=>{const e=$.useContext(hs);return e??!1};function gs(){const e=Ei(ii);return e[ai]||e}const Do=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};var En={exports:{}},fe={};/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ah as n,ai as t}from"./index-C0kv5kHB.js";const e="https://wearable-preview.decentraland.zone",a="https://decentraland.zone/account",o="https://decentraland.zone/profile",_="https://decentraland.zone/marketplace",R="https://decentraland.zone/builder",c="https://decentraland.zone/dao",s="https://decentraland.zone/governance",d="https://decentraland.zone/events",L="https://decentraland.zone/places",E="https://decentraland.org/create/",U="https://docs.decentraland.org/player/",r="https://decentraland.zone/download/creator-hub/",l="https://decentraland.zone/download/",O="https://decentraland.zone/download_success/",A="ea2ybdmmn1kv",T="master",N="18g1DzIyBxvu0steSwKyQr",p="https://cms.decentraland.org",S="https://decentraland.zone/marketplace/names/claim",C="https://decentraland.zone/marketplace/lands",h="https://decentraland.zone/marketplace/account",D="https://decentraland.zone/create/",I="https://studios.decentraland.zone/",g="https://decentraland.zone/builder/collections",$="https://decentraland.zone/builder/names",P="https://decentraland.zone/builder/worlds?tab=dcl",i="https://decentraland.zone/builder/land",m="https://decentraland.zone/events/me/",B="https://decentraland.zone/places/favorites/",M="https://docs.decentraland.org/player/",V="https://docs.decentraland.org/creator/",y="https://decentraland.zone/blog/",G="https://docs.decentraland.org/contributor/",u="https://decentraland.zone/governance/transparency/",F="https://decentraland.zone/governance/proposals/",b="https://decentraland.zone/dao/grants/",K="https://decentraland.zone/governance/projects/",Y="https://docs.decentraland.org/player/general/dao/overview/what-is-the-dao/",v="https://decentraland.zone/marketplace/settings",z="https://dcl.gg/discord",f="https://reddit.com/r/decentraland",w="https://github.com/decentraland",W="https://x.com/decentraland",k="https://instagram.com/decentraland_foundation/",H="https://youtube.com/@decentraland_foundation",x="https://tiktok.com/@decentraland_fdn",j="https://linkedin.com/company/decentralandorg",Q="https://decentraland.zone/privacy",J="https://decentraland.zone/terms",X="https://decentraland.zone/content",q="https://decentraland.zone/ethics",Z="https://decentraland.org/help",tt="mailto:hello@decentraland.org",nt="https://docs.decentraland.org/faqs/decentraland-101",et="https://docs.decentraland.org",at="https://embeds.beehiiv.com/ff89783d-748b-4ba3-8700-4759f6f62831?slim=true",ot="https://download-gateway.decentraland.zone",_t="https://decentraland.zone/top-scenes",Rt="https://testflight.apple.com/join/KF4r3jlU",ct="https://play.google.com/store/apps/details?id=org.decentraland.godotexplorer",st={WEARABLE_PREVIEW_URL:e,ACCOUNT_URL:a,PROFILE_URL:o,MARKETPLACE_URL:_,BUILDER_URL:R,DAO_URL:c,GOVERNANCE_URL:s,EVENTS_URL:d,PLACES_URL:L,CREATE_URL:E,LEARN_URL:U,CREATOR_HUB_URL:r,DOWNLOAD_URL:l,DOWNLOAD_SUCCESS_URL:O,CONTENTFUL_SPACE_ID:A,CONTENTFUL_ENV:T,CONTENTFUL_NAVBAR_ENTRY_ID:N,CONTENTFUL_CONTENTFUL_CDN_URL:p,MARKETPLACE_NAMES_URL:S,MARKETPLACE_LANDS_URL:C,MARKETPLACE_MY_ASSETS_URL:h,LANDING_CREATORS_URL:D,STUDIOS_URL:I,BUILDER_WEARABLE_EMOTES_URL:g,BUILDER_NAMES_URL:$,BUILDER_WORLDS_URL:P,BUILDER_LAND_URL:i,EVENTS_MY_EVENTS:m,PLACES_MY_FAVORITE_URL:B,DOCS_ABOUT_URL:M,DOCS_CREATORS_URL:V,BLOG_URL:y,DOCS_CONTRIBUTOR_URL:G,GOVERNANCE_TRANSPARENCY_URL:u,GOVERNANCE_PROPOSALS_URL:F,DAO_GRANTS_URL:b,GOVERNANCE_PROJECTS_URL:K,DOCS_DAO_URL:Y,MARKETPLACE_SETTINGS_URL:v,DISCORD_URL:z,REDDIT_URL:f,GITHUB_URL:w,X_URL:W,INSTAGRAM_URL:k,YOUTUBE_URL:H,TIKTOK_URL:x,LINKEDIN_URL:j,PRIVACY_POLICY_URL:Q,TERMS_OF_USE_URL:J,CONTENT_POLICY_URL:X,CODE_OF_ETHICS_URL:q,SUPPORT_URL:Z,EMAIL_HELLO_URL:tt,FAQ_URL:nt,DOCS_URL:et,BEEHIV_SUBSCRIPTION_URL:at,AUTO_SIGNING_BASE_URL:ot,TOP_SCENES_URL:_t,IOS_STORE_URL:Rt,ANDROID_STORE_URL:ct},dt="https://wearable-preview.decentraland.org",Lt="https://decentraland.org/account",Et="https://decentraland.org/profile",Ut="https://decentraland.org/marketplace",rt="https://decentraland.org/builder",lt="https://decentraland.org/dao",Ot="https://decentraland.org/governance",At="https://decentraland.org/events",Tt="https://decentraland.org/places",Nt="https://decentraland.org/create/",pt="https://docs.decentraland.org/player/",St="https://decentraland.org/download/creator-hub/",Ct="https://decentraland.org/download/",ht="https://decentraland.org/download_success/",Dt="ea2ybdmmn1kv",It="master",gt="18g1DzIyBxvu0steSwKyQr",$t="https://cms.decentraland.org",Pt="https://decentraland.org/marketplace/names/claim",it="https://decentraland.org/marketplace/lands",mt="https://decentraland.org/marketplace/account",Bt="https://decentraland.org/create/",Mt="https://studios.decentraland.org/",Vt="https://decentraland.org/builder/collections",yt="https://decentraland.org/builder/names",Gt="https://decentraland.org/builder/worlds?tab=dcl",ut="https://decentraland.org/builder/land",Ft="https://decentraland.org/events/me/",bt="https://decentraland.org/places/favorites/",Kt="https://docs.decentraland.org/player/",Yt="https://docs.decentraland.org/creator/",vt="https://decentraland.org/blog/",zt="https://docs.decentraland.org/contributor/",ft="https://decentraland.org/governance/transparency/",wt="https://decentraland.org/governance/proposals/",Wt="https://decentraland.org/dao/grants/",kt="https://decentraland.org/governance/projects/",Ht="https://docs.decentraland.org/player/general/dao/overview/what-is-the-dao/",xt="https://decentraland.org/marketplace/settings",jt="https://dcl.gg/discord",Qt="https://reddit.com/r/decentraland",Jt="https://github.com/decentraland",Xt="https://x.com/decentraland",qt="https://instagram.com/decentraland_foundation/",Zt="https://youtube.com/@decentraland_foundation",tn="https://tiktok.com/@decentraland_fdn",nn="https://linkedin.com/company/decentralandorg",en="https://decentraland.org/privacy",an="https://decentraland.org/terms",on="https://decentraland.org/content",_n="https://decentraland.org/ethics",Rn="https://decentraland.org/help",cn="mailto:hello@decentraland.org",sn="https://docs.decentraland.org/faqs/decentraland-101",dn="https://docs.decentraland.org",Ln="https://embeds.beehiiv.com/ff89783d-748b-4ba3-8700-4759f6f62831?slim=true",En="https://download-gateway.decentraland.org",Un="https://decentraland.org/top-scenes",rn="https://testflight.apple.com/join/KF4r3jlU",ln="https://play.google.com/store/apps/details?id=org.decentraland.godotexplorer",On={WEARABLE_PREVIEW_URL:dt,ACCOUNT_URL:Lt,PROFILE_URL:Et,MARKETPLACE_URL:Ut,BUILDER_URL:rt,DAO_URL:lt,GOVERNANCE_URL:Ot,EVENTS_URL:At,PLACES_URL:Tt,CREATE_URL:Nt,LEARN_URL:pt,CREATOR_HUB_URL:St,DOWNLOAD_URL:Ct,DOWNLOAD_SUCCESS_URL:ht,CONTENTFUL_SPACE_ID:Dt,CONTENTFUL_ENV:It,CONTENTFUL_NAVBAR_ENTRY_ID:gt,CONTENTFUL_CONTENTFUL_CDN_URL:$t,MARKETPLACE_NAMES_URL:Pt,MARKETPLACE_LANDS_URL:it,MARKETPLACE_MY_ASSETS_URL:mt,LANDING_CREATORS_URL:Bt,STUDIOS_URL:Mt,BUILDER_WEARABLE_EMOTES_URL:Vt,BUILDER_NAMES_URL:yt,BUILDER_WORLDS_URL:Gt,BUILDER_LAND_URL:ut,EVENTS_MY_EVENTS:Ft,PLACES_MY_FAVORITE_URL:bt,DOCS_ABOUT_URL:Kt,DOCS_CREATORS_URL:Yt,BLOG_URL:vt,DOCS_CONTRIBUTOR_URL:zt,GOVERNANCE_TRANSPARENCY_URL:ft,GOVERNANCE_PROPOSALS_URL:wt,DAO_GRANTS_URL:Wt,GOVERNANCE_PROJECTS_URL:kt,DOCS_DAO_URL:Ht,MARKETPLACE_SETTINGS_URL:xt,DISCORD_URL:jt,REDDIT_URL:Qt,GITHUB_URL:Jt,X_URL:Xt,INSTAGRAM_URL:qt,YOUTUBE_URL:Zt,TIKTOK_URL:tn,LINKEDIN_URL:nn,PRIVACY_POLICY_URL:en,TERMS_OF_USE_URL:an,CONTENT_POLICY_URL:on,CODE_OF_ETHICS_URL:_n,SUPPORT_URL:Rn,EMAIL_HELLO_URL:cn,FAQ_URL:sn,DOCS_URL:dn,BEEHIV_SUBSCRIPTION_URL:Ln,AUTO_SIGNING_BASE_URL:En,TOP_SCENES_URL:Un,IOS_STORE_URL:rn,ANDROID_STORE_URL:ln},An="https://wearable-preview.decentraland.today",Tn="https://decentraland.today/account",Nn="https://decentraland.today/profile",pn="https://decentraland.today/marketplace",Sn="https://decentraland.today/builder",Cn="https://decentraland.today/dao",hn="https://decentraland.today/governance",Dn="https://decentraland.zone/events",In="https://decentraland.zone/places",gn="https://decentraland.today/create/",$n="https://docs.decentraland.org/player/",Pn="https://decentraland.today/download/creator-hub/",mn="https://decentraland.today/download/",Bn="https://decentraland.today/download_success/",Mn="ea2ybdmmn1kv",Vn="master",yn="18g1DzIyBxvu0steSwKyQr",Gn="https://cms.decentraland.org",un="https://decentraland.today/marketplace/names/claim",Fn="https://decentraland.today/marketplace/lands",bn="https://decentraland.today/marketplace/account",Kn="https://decentraland.today/create/",Yn="https://studios.decentraland.today/",vn="https://decentraland.today/builder/collections",zn="https://decentraland.today/builder/names",fn="https://decentraland.today/builder/worlds?tab=dcl",wn="https://decentraland.today/builder/land",Wn="https://decentraland.today/events/me/",kn="https://decentraland.today/places/favorites/",Hn="https://docs.decentraland.org/player/",xn="https://docs.decentraland.org/creator/",jn="https://decentraland.today/blog/",Qn="https://docs.decentraland.org/contributor/",Jn="https://decentraland.today/governance/transparency/",Xn="https://decentraland.today/governance/proposals/",qn="https://decentraland.today/dao/grants/",Zn="https://decentraland.today/governance/projects/",te="https://docs.decentraland.org/player/general/dao/overview/what-is-the-dao/",ne="https://decentraland.today/marketplace/settings",ee="https://dcl.gg/discord",ae="https://reddit.com/r/decentraland",oe="https://github.com/decentraland",_e="https://x.com/decentraland",Re="https://instagram.com/decentraland_foundation/",ce="https://youtube.com/@decentraland_foundation",se="https://tiktok.com/@decentraland_fdn",de="https://linkedin.com/company/decentralandorg",Le="https://decentraland.org/privacy",Ee="https://decentraland.org/terms",Ue="https://decentraland.org/content",re="https://decentraland.org/ethics",le="https://decentraland.org/help",Oe="mailto:hello@decentraland.org",Ae="https://docs.decentraland.org/faqs/decentraland-101",Te="https://docs.decentraland.org",Ne="https://embeds.beehiiv.com/ff89783d-748b-4ba3-8700-4759f6f62831?slim=true",pe="https://download-gateway.decentraland.zone",Se="https://decentraland.zone/top-scenes",Ce="https://testflight.apple.com/join/KF4r3jlU",he="https://play.google.com/store/apps/details?id=org.decentraland.godotexplorer",De={WEARABLE_PREVIEW_URL:An,ACCOUNT_URL:Tn,PROFILE_URL:Nn,MARKETPLACE_URL:pn,BUILDER_URL:Sn,DAO_URL:Cn,GOVERNANCE_URL:hn,EVENTS_URL:Dn,PLACES_URL:In,CREATE_URL:gn,LEARN_URL:$n,CREATOR_HUB_URL:Pn,DOWNLOAD_URL:mn,DOWNLOAD_SUCCESS_URL:Bn,CONTENTFUL_SPACE_ID:Mn,CONTENTFUL_ENV:Vn,CONTENTFUL_NAVBAR_ENTRY_ID:yn,CONTENTFUL_CONTENTFUL_CDN_URL:Gn,MARKETPLACE_NAMES_URL:un,MARKETPLACE_LANDS_URL:Fn,MARKETPLACE_MY_ASSETS_URL:bn,LANDING_CREATORS_URL:Kn,STUDIOS_URL:Yn,BUILDER_WEARABLE_EMOTES_URL:vn,BUILDER_NAMES_URL:zn,BUILDER_WORLDS_URL:fn,BUILDER_LAND_URL:wn,EVENTS_MY_EVENTS:Wn,PLACES_MY_FAVORITE_URL:kn,DOCS_ABOUT_URL:Hn,DOCS_CREATORS_URL:xn,BLOG_URL:jn,DOCS_CONTRIBUTOR_URL:Qn,GOVERNANCE_TRANSPARENCY_URL:Jn,GOVERNANCE_PROPOSALS_URL:Xn,DAO_GRANTS_URL:qn,GOVERNANCE_PROJECTS_URL:Zn,DOCS_DAO_URL:te,MARKETPLACE_SETTINGS_URL:ne,DISCORD_URL:ee,REDDIT_URL:ae,GITHUB_URL:oe,X_URL:_e,INSTAGRAM_URL:Re,YOUTUBE_URL:ce,TIKTOK_URL:se,LINKEDIN_URL:de,PRIVACY_POLICY_URL:Le,TERMS_OF_USE_URL:Ee,CONTENT_POLICY_URL:Ue,CODE_OF_ETHICS_URL:re,SUPPORT_URL:le,EMAIL_HELLO_URL:Oe,FAQ_URL:Ae,DOCS_URL:Te,BEEHIV_SUBSCRIPTION_URL:Ne,AUTO_SIGNING_BASE_URL:pe,TOP_SCENES_URL:Se,IOS_STORE_URL:Ce,ANDROID_STORE_URL:he},ge=n({[t.DEVELOPMENT]:st,[t.STAGING]:De,[t.PRODUCTION]:On});export{ge as c};
|
|
1
|
+
import{ah as n,ai as t}from"./index-C1u3RQ96.js";const e="https://wearable-preview.decentraland.zone",a="https://decentraland.zone/account",o="https://decentraland.zone/profile",_="https://decentraland.zone/marketplace",R="https://decentraland.zone/builder",c="https://decentraland.zone/dao",s="https://decentraland.zone/governance",d="https://decentraland.zone/events",L="https://decentraland.zone/places",E="https://decentraland.org/create/",U="https://docs.decentraland.org/player/",r="https://decentraland.zone/download/creator-hub/",l="https://decentraland.zone/download/",O="https://decentraland.zone/download_success/",A="ea2ybdmmn1kv",T="master",N="18g1DzIyBxvu0steSwKyQr",p="https://cms.decentraland.org",S="https://decentraland.zone/marketplace/names/claim",C="https://decentraland.zone/marketplace/lands",h="https://decentraland.zone/marketplace/account",D="https://decentraland.zone/create/",I="https://studios.decentraland.zone/",g="https://decentraland.zone/builder/collections",$="https://decentraland.zone/builder/names",P="https://decentraland.zone/builder/worlds?tab=dcl",i="https://decentraland.zone/builder/land",m="https://decentraland.zone/events/me/",B="https://decentraland.zone/places/favorites/",M="https://docs.decentraland.org/player/",V="https://docs.decentraland.org/creator/",y="https://decentraland.zone/blog/",G="https://docs.decentraland.org/contributor/",u="https://decentraland.zone/governance/transparency/",F="https://decentraland.zone/governance/proposals/",b="https://decentraland.zone/dao/grants/",K="https://decentraland.zone/governance/projects/",Y="https://docs.decentraland.org/player/general/dao/overview/what-is-the-dao/",v="https://decentraland.zone/marketplace/settings",z="https://dcl.gg/discord",f="https://reddit.com/r/decentraland",w="https://github.com/decentraland",W="https://x.com/decentraland",k="https://instagram.com/decentraland_foundation/",H="https://youtube.com/@decentraland_foundation",x="https://tiktok.com/@decentraland_fdn",j="https://linkedin.com/company/decentralandorg",Q="https://decentraland.zone/privacy",J="https://decentraland.zone/terms",X="https://decentraland.zone/content",q="https://decentraland.zone/ethics",Z="https://decentraland.org/help",tt="mailto:hello@decentraland.org",nt="https://docs.decentraland.org/faqs/decentraland-101",et="https://docs.decentraland.org",at="https://embeds.beehiiv.com/ff89783d-748b-4ba3-8700-4759f6f62831?slim=true",ot="https://download-gateway.decentraland.zone",_t="https://decentraland.zone/top-scenes",Rt="https://testflight.apple.com/join/KF4r3jlU",ct="https://play.google.com/store/apps/details?id=org.decentraland.godotexplorer",st={WEARABLE_PREVIEW_URL:e,ACCOUNT_URL:a,PROFILE_URL:o,MARKETPLACE_URL:_,BUILDER_URL:R,DAO_URL:c,GOVERNANCE_URL:s,EVENTS_URL:d,PLACES_URL:L,CREATE_URL:E,LEARN_URL:U,CREATOR_HUB_URL:r,DOWNLOAD_URL:l,DOWNLOAD_SUCCESS_URL:O,CONTENTFUL_SPACE_ID:A,CONTENTFUL_ENV:T,CONTENTFUL_NAVBAR_ENTRY_ID:N,CONTENTFUL_CONTENTFUL_CDN_URL:p,MARKETPLACE_NAMES_URL:S,MARKETPLACE_LANDS_URL:C,MARKETPLACE_MY_ASSETS_URL:h,LANDING_CREATORS_URL:D,STUDIOS_URL:I,BUILDER_WEARABLE_EMOTES_URL:g,BUILDER_NAMES_URL:$,BUILDER_WORLDS_URL:P,BUILDER_LAND_URL:i,EVENTS_MY_EVENTS:m,PLACES_MY_FAVORITE_URL:B,DOCS_ABOUT_URL:M,DOCS_CREATORS_URL:V,BLOG_URL:y,DOCS_CONTRIBUTOR_URL:G,GOVERNANCE_TRANSPARENCY_URL:u,GOVERNANCE_PROPOSALS_URL:F,DAO_GRANTS_URL:b,GOVERNANCE_PROJECTS_URL:K,DOCS_DAO_URL:Y,MARKETPLACE_SETTINGS_URL:v,DISCORD_URL:z,REDDIT_URL:f,GITHUB_URL:w,X_URL:W,INSTAGRAM_URL:k,YOUTUBE_URL:H,TIKTOK_URL:x,LINKEDIN_URL:j,PRIVACY_POLICY_URL:Q,TERMS_OF_USE_URL:J,CONTENT_POLICY_URL:X,CODE_OF_ETHICS_URL:q,SUPPORT_URL:Z,EMAIL_HELLO_URL:tt,FAQ_URL:nt,DOCS_URL:et,BEEHIV_SUBSCRIPTION_URL:at,AUTO_SIGNING_BASE_URL:ot,TOP_SCENES_URL:_t,IOS_STORE_URL:Rt,ANDROID_STORE_URL:ct},dt="https://wearable-preview.decentraland.org",Lt="https://decentraland.org/account",Et="https://decentraland.org/profile",Ut="https://decentraland.org/marketplace",rt="https://decentraland.org/builder",lt="https://decentraland.org/dao",Ot="https://decentraland.org/governance",At="https://decentraland.org/events",Tt="https://decentraland.org/places",Nt="https://decentraland.org/create/",pt="https://docs.decentraland.org/player/",St="https://decentraland.org/download/creator-hub/",Ct="https://decentraland.org/download/",ht="https://decentraland.org/download_success/",Dt="ea2ybdmmn1kv",It="master",gt="18g1DzIyBxvu0steSwKyQr",$t="https://cms.decentraland.org",Pt="https://decentraland.org/marketplace/names/claim",it="https://decentraland.org/marketplace/lands",mt="https://decentraland.org/marketplace/account",Bt="https://decentraland.org/create/",Mt="https://studios.decentraland.org/",Vt="https://decentraland.org/builder/collections",yt="https://decentraland.org/builder/names",Gt="https://decentraland.org/builder/worlds?tab=dcl",ut="https://decentraland.org/builder/land",Ft="https://decentraland.org/events/me/",bt="https://decentraland.org/places/favorites/",Kt="https://docs.decentraland.org/player/",Yt="https://docs.decentraland.org/creator/",vt="https://decentraland.org/blog/",zt="https://docs.decentraland.org/contributor/",ft="https://decentraland.org/governance/transparency/",wt="https://decentraland.org/governance/proposals/",Wt="https://decentraland.org/dao/grants/",kt="https://decentraland.org/governance/projects/",Ht="https://docs.decentraland.org/player/general/dao/overview/what-is-the-dao/",xt="https://decentraland.org/marketplace/settings",jt="https://dcl.gg/discord",Qt="https://reddit.com/r/decentraland",Jt="https://github.com/decentraland",Xt="https://x.com/decentraland",qt="https://instagram.com/decentraland_foundation/",Zt="https://youtube.com/@decentraland_foundation",tn="https://tiktok.com/@decentraland_fdn",nn="https://linkedin.com/company/decentralandorg",en="https://decentraland.org/privacy",an="https://decentraland.org/terms",on="https://decentraland.org/content",_n="https://decentraland.org/ethics",Rn="https://decentraland.org/help",cn="mailto:hello@decentraland.org",sn="https://docs.decentraland.org/faqs/decentraland-101",dn="https://docs.decentraland.org",Ln="https://embeds.beehiiv.com/ff89783d-748b-4ba3-8700-4759f6f62831?slim=true",En="https://download-gateway.decentraland.org",Un="https://decentraland.org/top-scenes",rn="https://testflight.apple.com/join/KF4r3jlU",ln="https://play.google.com/store/apps/details?id=org.decentraland.godotexplorer",On={WEARABLE_PREVIEW_URL:dt,ACCOUNT_URL:Lt,PROFILE_URL:Et,MARKETPLACE_URL:Ut,BUILDER_URL:rt,DAO_URL:lt,GOVERNANCE_URL:Ot,EVENTS_URL:At,PLACES_URL:Tt,CREATE_URL:Nt,LEARN_URL:pt,CREATOR_HUB_URL:St,DOWNLOAD_URL:Ct,DOWNLOAD_SUCCESS_URL:ht,CONTENTFUL_SPACE_ID:Dt,CONTENTFUL_ENV:It,CONTENTFUL_NAVBAR_ENTRY_ID:gt,CONTENTFUL_CONTENTFUL_CDN_URL:$t,MARKETPLACE_NAMES_URL:Pt,MARKETPLACE_LANDS_URL:it,MARKETPLACE_MY_ASSETS_URL:mt,LANDING_CREATORS_URL:Bt,STUDIOS_URL:Mt,BUILDER_WEARABLE_EMOTES_URL:Vt,BUILDER_NAMES_URL:yt,BUILDER_WORLDS_URL:Gt,BUILDER_LAND_URL:ut,EVENTS_MY_EVENTS:Ft,PLACES_MY_FAVORITE_URL:bt,DOCS_ABOUT_URL:Kt,DOCS_CREATORS_URL:Yt,BLOG_URL:vt,DOCS_CONTRIBUTOR_URL:zt,GOVERNANCE_TRANSPARENCY_URL:ft,GOVERNANCE_PROPOSALS_URL:wt,DAO_GRANTS_URL:Wt,GOVERNANCE_PROJECTS_URL:kt,DOCS_DAO_URL:Ht,MARKETPLACE_SETTINGS_URL:xt,DISCORD_URL:jt,REDDIT_URL:Qt,GITHUB_URL:Jt,X_URL:Xt,INSTAGRAM_URL:qt,YOUTUBE_URL:Zt,TIKTOK_URL:tn,LINKEDIN_URL:nn,PRIVACY_POLICY_URL:en,TERMS_OF_USE_URL:an,CONTENT_POLICY_URL:on,CODE_OF_ETHICS_URL:_n,SUPPORT_URL:Rn,EMAIL_HELLO_URL:cn,FAQ_URL:sn,DOCS_URL:dn,BEEHIV_SUBSCRIPTION_URL:Ln,AUTO_SIGNING_BASE_URL:En,TOP_SCENES_URL:Un,IOS_STORE_URL:rn,ANDROID_STORE_URL:ln},An="https://wearable-preview.decentraland.today",Tn="https://decentraland.today/account",Nn="https://decentraland.today/profile",pn="https://decentraland.today/marketplace",Sn="https://decentraland.today/builder",Cn="https://decentraland.today/dao",hn="https://decentraland.today/governance",Dn="https://decentraland.zone/events",In="https://decentraland.zone/places",gn="https://decentraland.today/create/",$n="https://docs.decentraland.org/player/",Pn="https://decentraland.today/download/creator-hub/",mn="https://decentraland.today/download/",Bn="https://decentraland.today/download_success/",Mn="ea2ybdmmn1kv",Vn="master",yn="18g1DzIyBxvu0steSwKyQr",Gn="https://cms.decentraland.org",un="https://decentraland.today/marketplace/names/claim",Fn="https://decentraland.today/marketplace/lands",bn="https://decentraland.today/marketplace/account",Kn="https://decentraland.today/create/",Yn="https://studios.decentraland.today/",vn="https://decentraland.today/builder/collections",zn="https://decentraland.today/builder/names",fn="https://decentraland.today/builder/worlds?tab=dcl",wn="https://decentraland.today/builder/land",Wn="https://decentraland.today/events/me/",kn="https://decentraland.today/places/favorites/",Hn="https://docs.decentraland.org/player/",xn="https://docs.decentraland.org/creator/",jn="https://decentraland.today/blog/",Qn="https://docs.decentraland.org/contributor/",Jn="https://decentraland.today/governance/transparency/",Xn="https://decentraland.today/governance/proposals/",qn="https://decentraland.today/dao/grants/",Zn="https://decentraland.today/governance/projects/",te="https://docs.decentraland.org/player/general/dao/overview/what-is-the-dao/",ne="https://decentraland.today/marketplace/settings",ee="https://dcl.gg/discord",ae="https://reddit.com/r/decentraland",oe="https://github.com/decentraland",_e="https://x.com/decentraland",Re="https://instagram.com/decentraland_foundation/",ce="https://youtube.com/@decentraland_foundation",se="https://tiktok.com/@decentraland_fdn",de="https://linkedin.com/company/decentralandorg",Le="https://decentraland.org/privacy",Ee="https://decentraland.org/terms",Ue="https://decentraland.org/content",re="https://decentraland.org/ethics",le="https://decentraland.org/help",Oe="mailto:hello@decentraland.org",Ae="https://docs.decentraland.org/faqs/decentraland-101",Te="https://docs.decentraland.org",Ne="https://embeds.beehiiv.com/ff89783d-748b-4ba3-8700-4759f6f62831?slim=true",pe="https://download-gateway.decentraland.zone",Se="https://decentraland.zone/top-scenes",Ce="https://testflight.apple.com/join/KF4r3jlU",he="https://play.google.com/store/apps/details?id=org.decentraland.godotexplorer",De={WEARABLE_PREVIEW_URL:An,ACCOUNT_URL:Tn,PROFILE_URL:Nn,MARKETPLACE_URL:pn,BUILDER_URL:Sn,DAO_URL:Cn,GOVERNANCE_URL:hn,EVENTS_URL:Dn,PLACES_URL:In,CREATE_URL:gn,LEARN_URL:$n,CREATOR_HUB_URL:Pn,DOWNLOAD_URL:mn,DOWNLOAD_SUCCESS_URL:Bn,CONTENTFUL_SPACE_ID:Mn,CONTENTFUL_ENV:Vn,CONTENTFUL_NAVBAR_ENTRY_ID:yn,CONTENTFUL_CONTENTFUL_CDN_URL:Gn,MARKETPLACE_NAMES_URL:un,MARKETPLACE_LANDS_URL:Fn,MARKETPLACE_MY_ASSETS_URL:bn,LANDING_CREATORS_URL:Kn,STUDIOS_URL:Yn,BUILDER_WEARABLE_EMOTES_URL:vn,BUILDER_NAMES_URL:zn,BUILDER_WORLDS_URL:fn,BUILDER_LAND_URL:wn,EVENTS_MY_EVENTS:Wn,PLACES_MY_FAVORITE_URL:kn,DOCS_ABOUT_URL:Hn,DOCS_CREATORS_URL:xn,BLOG_URL:jn,DOCS_CONTRIBUTOR_URL:Qn,GOVERNANCE_TRANSPARENCY_URL:Jn,GOVERNANCE_PROPOSALS_URL:Xn,DAO_GRANTS_URL:qn,GOVERNANCE_PROJECTS_URL:Zn,DOCS_DAO_URL:te,MARKETPLACE_SETTINGS_URL:ne,DISCORD_URL:ee,REDDIT_URL:ae,GITHUB_URL:oe,X_URL:_e,INSTAGRAM_URL:Re,YOUTUBE_URL:ce,TIKTOK_URL:se,LINKEDIN_URL:de,PRIVACY_POLICY_URL:Le,TERMS_OF_USE_URL:Ee,CONTENT_POLICY_URL:Ue,CODE_OF_ETHICS_URL:re,SUPPORT_URL:le,EMAIL_HELLO_URL:Oe,FAQ_URL:Ae,DOCS_URL:Te,BEEHIV_SUBSCRIPTION_URL:Ne,AUTO_SIGNING_BASE_URL:pe,TOP_SCENES_URL:Se,IOS_STORE_URL:Ce,ANDROID_STORE_URL:he},ge=n({[t.DEVELOPMENT]:st,[t.STAGING]:De,[t.PRODUCTION]:On});export{ge as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{P as t,A as i,a as u}from"./index-
|
|
1
|
+
import{P as t,A as i,a as u}from"./index-DhQcB2cI.js";import{W as De,b as Ce,c as Ue}from"./index-DhQcB2cI.js";import"./lit-element-B3y9oplH.js";import"./class-map-CxwNmq0D.js";import"./index-C4JAp-Oa.js";import"./index-C1u3RQ96.js";import"./react-C51i12iP.js";import"./ethers-DwWf2RqE.js";import"./W3MFrameProviderSingleton-BrDTQqcr.js";import"./index-CjpJ162L.js";import"./index-BAoHOXze.js";import"./events-DQ172AOg.js";import"./browser-ponyfill-Djb5Py6a.js";import"./browser-ponyfill-DMgE6PM5.js";import"./NetworkUtil-DInevqnn.js";import"./index-DPyb1X7J.js";import"./index-nibyPLVP.js";import"./index-CApcD-t8.js";import"./index.es-CNLSXMT-.js";import"./index-D7Fx-Qac.js";import"./index-Ds-AFLHc.js";import"./index-BYRbnzmu.js";import"./index-lt7oq_YM.js";import"./index-DhedohT0.js";import"./index-B0PF-s9M.js";import"./index-DIYL1_Ov.js";import"./index-C1wVfhuw.js";import"./index-KYyY5J5u.js";import"./index-ZvQFinLo.js";import"./MathUtil-BGCe3rZ3.js";const C=3e5;async function U(e){return t.handleOpenPay(e)}async function j(e,r=C){if(r<=0)throw new i(u.INVALID_PAYMENT_CONFIG,"Timeout must be greater than 0");try{await U(e)}catch(s){throw s instanceof i?s:new i(u.UNABLE_TO_INITIATE_PAYMENT,s.message)}return new Promise((s,l)=>{let o=!1;const c=setTimeout(()=>{o||(o=!0,m(),l(new i(u.GENERIC_PAYMENT_ERROR,"Payment timeout")))},r);function n(){if(o)return;const a=t.state.currentPayment,p=t.state.error,D=t.state.isPaymentInProgress;if((a==null?void 0:a.status)==="SUCCESS"){o=!0,m(),clearTimeout(c),s({success:!0,result:a.result});return}if((a==null?void 0:a.status)==="FAILED"){o=!0,m(),clearTimeout(c),s({success:!1,error:p||"Payment failed"});return}p&&!D&&!a&&(o=!0,m(),clearTimeout(c),s({success:!1,error:p}))}const b=d("currentPayment",n),y=d("error",n),S=d("isPaymentInProgress",n),m=E([b,y,S]);n()})}function Q(){return t.getExchanges()}function X(){var e;return(e=t.state.currentPayment)==null?void 0:e.result}function $(){return t.state.error}function ee(){return t.state.isPaymentInProgress}function d(e,r){return t.subscribeKey(e,r)}function E(e){return()=>{e.forEach(r=>{try{r()}catch{}})}}const te={network:"eip155:8453",asset:"native",metadata:{name:"Ethereum",symbol:"ETH",decimals:18}},ae={network:"eip155:8453",asset:"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",metadata:{name:"USD Coin",symbol:"USDC",decimals:6}},se={network:"eip155:84532",asset:"native",metadata:{name:"Ethereum",symbol:"ETH",decimals:18}},re={network:"eip155:1",asset:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",metadata:{name:"USD Coin",symbol:"USDC",decimals:6}},oe={network:"eip155:10",asset:"0x0b2c639c533813f4aa9d7837caf62653d097ff85",metadata:{name:"USD Coin",symbol:"USDC",decimals:6}},ne={network:"eip155:42161",asset:"0xaf88d065e77c8cC2239327C5EDb3A432268e5831",metadata:{name:"USD Coin",symbol:"USDC",decimals:6}},me={network:"eip155:137",asset:"0x3c499c542cef5e3811e1192ce70d8cc03d5c3359",metadata:{name:"USD Coin",symbol:"USDC",decimals:6}},ie={network:"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",asset:"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",metadata:{name:"USD Coin",symbol:"USDC",decimals:6}},ce={network:"eip155:1",asset:"0xdAC17F958D2ee523a2206206994597C13D831ec7",metadata:{name:"Tether USD",symbol:"USDT",decimals:6}},pe={network:"eip155:10",asset:"0x94b008aA00579c1307B0EF2c499aD98a8ce58e58",metadata:{name:"Tether USD",symbol:"USDT",decimals:6}},ue={network:"eip155:42161",asset:"0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9",metadata:{name:"Tether USD",symbol:"USDT",decimals:6}},de={network:"eip155:137",asset:"0xc2132d05d31c914a87c6611c10748aeb04b58e8f",metadata:{name:"Tether USD",symbol:"USDT",decimals:6}},le={network:"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",asset:"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",metadata:{name:"Tether USD",symbol:"USDT",decimals:6}},be={network:"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",asset:"native",metadata:{name:"Solana",symbol:"SOL",decimals:9}};export{t as PayController,De as W3mPayLoadingView,Ce as W3mPayQuoteView,Ue as W3mPayView,ne as arbitrumUSDC,ue as arbitrumUSDT,te as baseETH,se as baseSepoliaETH,ae as baseUSDC,re as ethereumUSDC,ce as ethereumUSDT,Q as getExchanges,ee as getIsPaymentInProgress,$ as getPayError,X as getPayResult,U as openPay,oe as optimismUSDC,pe as optimismUSDT,j as pay,me as polygonUSDC,de as polygonUSDT,be as solanaSOL,ie as solanaUSDC,le as solanaUSDT};
|