1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[92888],{51364:function(e,n,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,n,r,i){void 0===i&&(i=r);var a=Object.getOwnPropertyDescriptor(n,r);(!a||("get"in a?!n.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(e,i,a)}:function(e,n,r,i){void 0===i&&(i=r),e[i]=n[r]}),a=this&&this.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||i(n,e,r)};n.__esModule=!0,a(r(66358),n)},11912:function(e,n,r){"use strict";n.__esModule=!0,n.BaseAccount__factory=void 0;var i=r(86623),a=[{inputs:[],name:"entryPoint",outputs:[{internalType:"contract IEntryPoint",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"nonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"sender",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"bytes",name:"initCode",type:"bytes"},{internalType:"bytes",name:"callData",type:"bytes"},{internalType:"uint256",name:"callGasLimit",type:"uint256"},{internalType:"uint256",name:"verificationGasLimit",type:"uint256"},{internalType:"uint256",name:"preVerificationGas",type:"uint256"},{internalType:"uint256",name:"maxFeePerGas",type:"uint256"},{internalType:"uint256",name:"maxPriorityFeePerGas",type:"uint256"},{internalType:"bytes",name:"paymasterAndData",type:"bytes"},{internalType:"bytes",name:"signature",type:"bytes"}],internalType:"struct UserOperation",name:"userOp",type:"tuple"},{internalType:"bytes32",name:"userOpHash",type:"bytes32"},{internalType:"uint256",name:"missingAccountFunds",type:"uint256"}],name:"validateUserOp",outputs:[{internalType:"uint256",name:"validationData",type:"uint256"}],stateMutability:"nonpayable",type:"function"}],o=function(){function e(){}return e.createInterface=function(){return new i.utils.Interface(a)},e.connect=function(e,n){return new i.Contract(e,a,n)},e.abi=a,e}();n.BaseAccount__factory=o},43678:function(e,n,r){"use strict";n.__esModule=!0,n.BasePaymaster__factory=void 0;var i=r(86623),a=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{inputs:[{internalType:"uint32",name:"unstakeDelaySec",type:"uint32"}],name:"addStake",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"deposit",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"entryPoint",outputs:[{internalType:"contract IEntryPoint",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDeposit",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"enum IPaymaster.PostOpMode",name:"mode",type:"uint8"},{internalType:"bytes",name:"context",type:"bytes"},{internalType:"uint256",name:"actualGasCost",type:"uint256"}],name:"postOp",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unlockStake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"sender",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"bytes",name:"initCode",type:"bytes"},{internalType:"bytes",name:"callData",type:"bytes"},{internalType:"uint256",name:"callGasLimit",type:"uint256"},{internalType:"uint256",name:"verificationGasLimit",type:"uint256"},{internalType:"uint256",name:"preVerificationGas",type:"uint256"},{internalType:"uint256",name:"maxFeePerGas",type:"uint256"},{internalType:"uint256",name:"maxPriorityFeePerGas",type:"uint256"},{internalType:"bytes",name:"paymasterAndData",type:"bytes"},{internalType:"bytes",name:"signature",type:"bytes"}],internalType:"struct UserOperation",name:"userOp",type:"tuple"},{internalType:"bytes32",name:"userOpHash",type:"bytes32"},{internalType:"uint256",name:"maxCost",type:"uint256"}],name:"validatePaymasterUserOp",outputs:[{internalType:"bytes",name:"context",type:"bytes"},{internalType:"uint256",name:"validationData",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address payable",name:"withdrawAddress",type:"address"}],name:"withdrawStake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address payable",name:"withdrawAddress",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"withdrawTo",outputs:[],stateMutability:"nonpayable",type:"function"}],o=function(){function e(){}return e.createInterface=function(){return new i.utils.Interface(a)},e.connect=function(e,n){return new i.Contract(e,a,n)},e.abi=a,e}();n.BasePaymaster__factory=o},28319:function(e,n,r){"use strict";
1var i,a=this&&this.__extends||(i=function(e,n){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}i(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)});n.__esModule=!0,n.BrokenBLSAccountFactory__factory=void 0;var o=r(86623),s=[{inputs:[{internalType:"contract IEntryPoint",name:"entryPoint",type:"address"},{internalType:"address",name:"aggregator",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"accountImplementation",outputs:[{internalType:"contract BrokenBLSAccount",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"salt",type:"uint256"},{internalType:"uint256[4]",name:"aPublicKey",type:"uint256[4]"}],name:"createAccount",outputs:[{internalType:"contract BrokenBLSAccount",name:"",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"salt",type:"uint256"},{internalType:"uint256[4]",name:"aPublicKey",type:"uint256[4]"}],name:"getAddress",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"}],f="0x60a060405234801561001057600080fd5b50604051612ede380380612ede83398101604081905261002f916100aa565b818160405161003d90610085565b6001600160a01b03928316815291166020820152604001604051809103906000f080158015610070573d6000803e3d6000fd5b506001600160a01b0316608052506100e49050565b6120c680610e1883390190565b6001600160a01b03811681146100a757600080fd5b50565b600080604083850312156100bd57600080fd5b82516100c881610092565b60208401519092506100d981610092565b809150509250929050565b608051610d0d61010b60003960008181604b0152818160f7015261020d0152610d0d6000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c806311464fbe1461004657806319c2a1b214610096578063de3398dd146100a9575b600080fd5b61006d7f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b61006d6100a436600461038e565b6100bc565b61006d6100b736600461038e565b6101de565b6000806100c984846101de565b905073ffffffffffffffffffffffffffffffffffffffff81163b80156100f1575090506101d8565b8460001b7f0000000000000000000000000000000000000000000000000000000000000000856040516024016101279190610418565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fee472f3600000000000000000000000000000000000000000000000000000000179052516101a790610352565b6101b2929190610479565b8190604051809103906000f59050801580156101d2573d6000803e3d6000fd5b50925050505b92915050565b60006103198360001b604051806020016101f790610352565b6020820181038252601f19601f820116604052507f00000000000000000000000000000000000000000000000000000000000000008560405160240161023d9190610418565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152918152602080830180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fee472f360000000000000000000000000000000000000000000000000000000017905290516102c293929101610479565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290526102fe92916020016104e7565b60405160208183030381529060405280519060200120610320565b9392505050565b60006103198383306000604051836040820152846020820152828152600b8101905060ff815360559020949350505050565b6107c18061051783390190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60008060a083850312156103a157600080fd5b82359150602084603f8501126103b657600080fd5b6040516080810181811067ffffffffffffffff821117156103d9576103d961035f565b6040528060a08601878111156103ee57600080fd5b8387015b8181101561040957803583529184019184016103f2565b50505080925050509250929050565b60808101818360005b6004811015610440578151835260209283019290910190600101610421565b50505092915050565b60005b8381101561046457818101518382015260200161044c565b83811115610473576000848401525b50505050565b73ffffffffffffffffffffffffffffffffffffffff8316815260406020820152600082518060408401526104b4816060850160208701610449565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016060019392505050565b600083516104f9818460208801610449565b83519083019061050d818360208801610449565b0194935050505056fe60806040526040516107c13803806107c183398101604081905261002291610321565b61002e82826000610035565b505061043e565b61003e8361006b565b60008251118061004b5750805b156100665761006483836100ab60201b6100291760201c565b505b505050565b610074816100d7565b
16040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606100d0838360405180606001604052806027815260200161079a602791396101a9565b9392505050565b6100ea8161022260201b6100551760201c565b6101515760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084015b60405180910390fd5b806101887f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b61023160201b6100711760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b6060600080856001600160a01b0316856040516101c691906103ef565b600060405180830381855af49150503d8060008114610201576040519150601f19603f3d011682016040523d82523d6000602084013e610206565b606091505b50909250905061021886838387610234565b9695505050505050565b6001600160a01b03163b151590565b90565b606083156102a357825160000361029c576001600160a01b0385163b61029c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610148565b50816102ad565b6102ad83836102b5565b949350505050565b8151156102c55781518083602001fd5b8060405162461bcd60e51b8152600401610148919061040b565b634e487b7160e01b600052604160045260246000fd5b60005b838110156103105781810151838201526020016102f8565b838111156100645750506000910152565b6000806040838503121561033457600080fd5b82516001600160a01b038116811461034b57600080fd5b60208401519092506001600160401b038082111561036857600080fd5b818501915085601f83011261037c57600080fd5b81518181111561038e5761038e6102df565b604051601f8201601f19908116603f011681019083821181831017156103b6576103b66102df565b816040528281528860208487010111156103cf57600080fd5b6103e08360208301602088016102f5565b80955050505050509250929050565b600082516104018184602087016102f5565b9190910192915050565b602081526000825180602084015261042a8160408501602087016102f5565b601f01601f19169190910160400192915050565b61034d8061044d6000396000f3fe60806040523661001357610011610017565b005b6100115b610027610022610074565b6100b9565b565b606061004e83836040518060600160405280602781526020016102f1602791396100dd565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b90565b60006100b47f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b905090565b3660008037600080366000845af43d6000803e8080156100d8573d6000f35b3d6000fd5b60606000808573ffffffffffffffffffffffffffffffffffffffff16856040516101079190610283565b600060405180830381855af49150503d8060008114610142576040519150601f19603f3d011682016040523d82523d6000602084013e610147565b606091505b509150915061015886838387610162565b9695505050505050565b606083156101fd5782516000036101f65773ffffffffffffffffffffffffffffffffffffffff85163b6101f6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064015b60405180910390fd5b5081610207565b610207838361020f565b949350505050565b81511561021f5781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101ed919061029f565b60005b8381101561026e578181015183820152602001610256565b8381111561027d576000848401525b50505050565b60008251610295818460208701610253565b9190910192915050565b60208152600082518060208401526102be816040850160208701610253565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212201cd78ab6a31213989661cff2d7d05fc9b9c38b1a848e8249e2e398659a9eb7e364736f6c634300080f0033416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220a47065a7c8ac5bac8ed56ef1cf7419a59dfdae21ba812180654b545d4faab85f64736f6c634300080f003360e0604052306080523480156200001557600080fd5b50604051620020c6380380620020c683398101604081905262000038916200013f565b6001600160a01b03821660a052816200005062000064565b506001600160a01b031660c052506200017e565b600054610100900460ff1615620000d15760405162461bcd60e51b8152
160206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff908116101562000124576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b6001600160a01b03811681146200013c57600080fd5b50565b600080604083850312156200015357600080fd5b8251620001608162000126565b6020840151909250620001738162000126565b809150509250929050565b60805160a05160c051611ecb620001fb60003960008181610137015261068a01526000818161029001528181610703015281816107aa01528181610b8c01528181610f2e0152818161128a015261152c015260008181610486015281816105360152818161086e0152818161091e0152610a670152611ecb6000f3fe6080604052600436106100f75760003560e01c80638da5cb5b1161008a578063c399ec8811610059578063c399ec88146102d4578063c4d66de8146102e9578063e02afbae14610309578063ee472f361461032b57600080fd5b80638da5cb5b14610221578063affed0e01461025e578063b0d691fe14610281578063b61d27f6146102b457600080fd5b80634a58db19116100c65780634a58db19146101d15780634d44560d146101d95780634f1ef286146101f957806352d1902d1461020c57600080fd5b806318dfb3c714610103578063245a7bfc146101255780633659cfe6146101835780633a871cdd146101a357600080fd5b366100fe57005b600080fd5b34801561010f57600080fd5b5061012361011e3660046118ef565b61034b565b005b34801561013157600080fd5b506101597f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b34801561018f57600080fd5b5061012361019e36600461197d565b61046f565b3480156101af57600080fd5b506101c36101be36600461199a565b610674565b60405190815260200161017a565b610123610701565b3480156101e557600080fd5b506101236101f43660046119ee565b6107a0565b610123610207366004611a98565b610857565b34801561021857600080fd5b506101c3610a4d565b34801561022d57600080fd5b50600154610159906c01000000000000000000000000900473ffffffffffffffffffffffffffffffffffffffff1681565b34801561026a57600080fd5b506001546bffffffffffffffffffffffff166101c3565b34801561028d57600080fd5b507f0000000000000000000000000000000000000000000000000000000000000000610159565b3480156102c057600080fd5b506101236102cf366004611b5e565b610b39565b3480156102e057600080fd5b506101c3610b88565b3480156102f557600080fd5b5061012361030436600461197d565b610c40565b34801561031557600080fd5b5061031e610dd3565b60405161017a9190611be7565b34801561033757600080fd5b50610123610346366004611c18565b610de8565b610353610f16565b8281146103c1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f77726f6e67206172726179206c656e677468730000000000000000000000000060448201526064015b60405180910390fd5b60005b83811015610468576104568585838181106103e1576103e1611c96565b90506020020160208101906103f6919061197d565b600085858581811061040a5761040a611c96565b905060200281019061041c9190611cc5565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610fe992505050565b8061046081611d59565b9150506103c4565b5050505050565b73ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000163003610534576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201527f64656c656761746563616c6c000000000000000000000000000000000000000060648201526084016103b8565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166105a97f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff161461064c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201527f6163746976652070726f7879000000000000000000000000000000000000000060648201526084016103b8565b61065581611066565b604080516000808252602082019092526106719183919061106e565b50565b600061067e611272565b604080516060810182527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168082526000602083018190529
119092015290506106df6040850185611cc5565b90506000036106f1576106f184611311565b6106fa826113da565b9392505050565b7f00000000000000000000000000000000000000000000000000000000000000006040517fb760faf900000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff919091169063b760faf99034906024016000604051808303818588803b15801561078c57600080fd5b505af1158015610468573d6000803e3d6000fd5b6107a8611445565b7f00000000000000000000000000000000000000000000000000000000000000006040517f205c287800000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff848116600483015260248201849052919091169063205c287890604401600060405180830381600087803b15801561083b57600080fd5b505af115801561084f573d6000803e3d6000fd5b505050505050565b73ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016300361091c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201527f64656c656761746563616c6c000000000000000000000000000000000000000060648201526084016103b8565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166109917f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614610a34576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201527f6163746976652070726f7879000000000000000000000000000000000000000060648201526084016103b8565b610a3d82611066565b610a498282600161106e565b5050565b60003073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614610b14576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c000000000000000060648201526084016103b8565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b610b41610f16565b610b82848484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610fe992505050565b50505050565b60007f00000000000000000000000000000000000000000000000000000000000000006040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff91909116906370a0823190602401602060405180830381865afa158015610c17573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c3b9190611d91565b905090565b600054610100900460ff1615808015610c605750600054600160ff909116105b80610c7a5750303b158015610c7a575060005460ff166001145b610d06576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a656400000000000000000000000000000000000060648201526084016103b8565b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790558015610d6457600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101001790555b610d6d826114e0565b8015610a4957600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15050565b610ddb611885565b610de3611885565b919050565b600054610100900460ff1615808015610e085750600054600160ff909116105b80610e225750303b158015610e22575060005460ff166001145b610eae576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a656400000000000000000000000000000000000060648201526084016103b8565b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790558015610f0c57600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101001790555b610d6d60006114e0565b3373ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000161480610f8157506001546c01000000000000000000000000900473ffffffffffffffffffffffffffffffffffffffff1633145b610fe7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f6163636f756e743a206e6f74204f776e6572206f7220456e747279506f696e7460448201526064016103b8565b565b6000808473ffffffffffffffffffffffffffffffffffffffff1684846040516110129190611dd6565b60006040518083038185875af1925050503d806000811461104f576040519150601f19603f3d011682016040523d82523d6000602084013e611054565b606091505b50915091508161046857805160208201fd5b610671611445565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156110a6576110a183611578565b505050565b8273ffffffffffffffffffffffffffffffffffffffff166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561112b575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261112891810190611d91565b
160015b6111b7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201527f6f6e206973206e6f74205555505300000000000000000000000000000000000060648201526084016103b8565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8114611266576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f7860448201527f6961626c6555554944000000000000000000000000000000000000000000000060648201526084016103b8565b506110a1838383611682565b3373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614610fe7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f6163636f756e743a206e6f742066726f6d20456e747279506f696e740000000060448201526064016103b8565b600180546020830135916bffffffffffffffffffffffff90911690600061133783611df2565b91906101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055506bffffffffffffffffffffffff1614610671576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f6163636f756e743a20696e76616c6964206e6f6e63650000000000000000000060448201526064016103b8565b80156106715760405160009033907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90849084818181858888f193505050503d8060008114610468576040519150601f19603f3d011682016040523d82523d6000602084013e610468565b6001546c01000000000000000000000000900473ffffffffffffffffffffffffffffffffffffffff1633148061147a57503330145b610fe7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f6f
16e6c79206f776e65720000000000000000000000000000000000000000000060448201526064016103b8565b600180546bffffffffffffffffffffffff166c0100000000000000000000000073ffffffffffffffffffffffffffffffffffffffff8481168202929092179283905560405192048116917f0000000000000000000000000000000000000000000000000000000000000000909116907f47e55c76e7a6f1fd8996a1da8008c1ea29699cca35e7bcd057f2dec313b6e5de90600090a350565b73ffffffffffffffffffffffffffffffffffffffff81163b61161c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e74726163740000000000000000000000000000000000000060648201526084016103b8565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b61168b836116a7565b6000825111806116985750805b156110a157610b8283836116f4565b6116b081611578565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606106fa8383604051806060016040528060278152602001611e6f6027913960606000808573ffffffffffffffffffffffffffffffffffffffff168560405161173e9190611dd6565b600060405180830381855af49150503d8060008114611779576040519150601f19603f3d011682016040523d82523d6000602084013e61177e565b606091505b509150915061178f86838387611799565b9695505050505050565b6060831561182f5782516000036118285773ffffffffffffffffffffffffffffffffffffffff85163b611828576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103b8565b5081611839565b6118398383611841565b949350505050565b8151156118515781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103b89190611e1d565b60405180608001604052806004906020820280368337509192915050565b60008083601f8401126118b557600080fd5b50813567ffffffffffffffff8111156118cd57600080fd5b6020830191508360208260051b85010111156118e857600080fd5b9250929050565b6000806000806040858703121561190557600080fd5b843567ffffffffffffffff8082111561191d57600080fd5b611929888389016118a3565b9096509450602087013591508082111561194257600080fd5b5061194f878288016118a3565b95989497509550505050565b73ffffffffffffffffffffffffffffffffffffffff8116811461067157600080fd5b60006020828403121561198f57600080fd5b81356106fa8161195b565b60008060006060848
160312156119af57600080fd5b833567ffffffffffffffff8111156119c657600080fd5b840161016081870312156119d957600080fd5b95602085013595506040909401359392505050565b60008060408385031215611a0157600080fd5b8235611a0c8161195b565b946020939093013593505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715611a9057611a90611a1a565b604052919050565b60008060408385031215611aab57600080fd5b8235611ab68161195b565b915060208381013567ffffffffffffffff80821115611ad457600080fd5b818601915086601f830112611ae857600080fd5b813581811115611afa57611afa611a1a565b611b2a847fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f84011601611a49565b91508082528784828501011115611b4057600080fd5b80848401858401376000848284010152508093505050509250929050565b60008060008060608587031215611b7457600080fd5b8435611b7f8161195b565b935060208501359250604085013567ffffffffffffffff80821115611ba357600080fd5b818701915087601f830112611bb757600080fd5b813581811115611bc657600080fd5b886020828501011115611bd857600080fd5b95989497505060200194505050565b60808101818360005b6004811015611c0f578151835260209283019290910190600101611bf0565b50505092915050565b600060808284031215611c2a57600080fd5b82601f830112611c3957600080fd5b6040516080810181811067ffffffffffffffff82111715611c5c57611c5c611a1a565b604052806080840185811115611c7157600080fd5b845b81811015611c8b578035835260209283019201611c73565b509195945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112611cfa57600080fd5b83018035915067ffffffffffffffff821115611d1557600080fd5b6020019150368190038213156118e857600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203611d8a57611d8a611d2a565b5060010190565b600060208284031215611da357600080fd5b5051919050565b60005b83811015611dc5578181015183820152602001611dad565b83811115610b825750506000910152565b60008251611de8818460208701611daa565b9190910192915050565b60006bffffffffffffffffffffffff808316818103611e1357611e13611d2a565b6001019392505050565b6020815260008251806020840152611e3c816040850160208701611daa565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212205cf49810dc1024bbe2d76f8f79dcc489e3b6a79d7f0e35498db5239b1077074564736f6c634300080f0033",l=function(e){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=this;return n.length>1?e.apply(this,n)||this:e.call(this,s,f,n[0])||this}return a(n,e),n.prototype.deploy=function(n,r,i){return e.prototype.deploy.call(this,n,r,i||{})},n.prototype.getDeployTransaction=function(n,r,i){return e.prototype.getDeployTransaction.call(this,n,r,i||{})},n.prototype.attach=function(n){return e.prototype.attach.call(this,n)},n.prototype.connect=function(n){return e.prototype.connect.call(this,n)},n.createInterface=function(){return new o.utils.Interface(s)},n.connect=function(e,n){return new o.Contract(e,s,n)},n.bytecode=f,n.abi=s,n}(o.ContractFactory);n.BrokenBLSAccountFactory__factory=l},17588:function(e,n,r){"use strict";var i,a=this&&this.__extends||(i=function(e,n){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}i(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)});n.__esModule=!0,n.BrokenBLSAccount__factory=void 0;var o=r(86623),s=[{inputs:[{internalType:"contract IEntryPoint",name:"anEntryPoint",type:"address"},{internalType:"address",name:"anAggregator",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"previousAdmin",type:"address"},{indexed:!1,internalType:"address",name:"newAdmin",type:"address"}],name:"AdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"beacon",type:"address"}],name:"BeaconUpgraded",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256[4]",name:"oldPublicKey",type:"uint256[4]"},{indexed:!1,internalType:"uint256[4]",name:"newPublicKey",type:"uint256[4]"}],name:"PublicKeyChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"contract IEntryPoint",name:"entryPoint",type:"address"},{indexed:!0,internalType:"address",name:"owner",type:"address"}],name:"SimpleAccountInitialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"implementation",type:"address"}],name:"Upgraded",type:"event"},{inputs:[],name:"addDeposit",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"aggregator",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"entryPoint",outputs:[{internalType:"contract IEntryPoint",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"dest",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"func",type:"bytes"}],name:"execute",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address[]",name:"dest",type:"address[]"},{internalType:"bytes[]",name:"func",type:"bytes[]"}],name:"executeBatch",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getBlsPublicKey",outputs:[{internalType:"uint256[4]",name:"",type:"uint256[4]"}],stateMutability:"pure",type:"function"},{inputs:[],name:"getDeposit",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"anOwner",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256[4]",name:"aPublicKey",type:"uint256[4]"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"nonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"proxiableUUID",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"newImplementation",type:"address"}],name:"upgradeTo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newImplementation",type:"address"},{internalType:"bytes",name:"data",type:"bytes"}],name:"upgradeToAndCall",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"sender",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"bytes",name:"initCode",type:"bytes"},{internalType:"bytes",name:"callData",type:"bytes"},{internalType:"uint256",name:"callGasLimit",type:"uint256"},{internalType:"uint256",name:"verificationGasLimit",type:"uint256"},{internalType:"uint256",name:"preVerificationGas",type:"uint256"},{internalType:"uint256",name:"maxFeePerGas",type:"uint256"},{internalType:"uint256",name:"maxPriorityFeePerGas",type:"uint256"},{internalType:"bytes",name:"paymasterAndData",type:"bytes"},{internalType:"bytes",name:"signature",type:"bytes"}],internalType:"struct UserOperation",name:"userOp",type:"tuple"},{internalType:"bytes32",name:"userOpHash",type:"bytes32"},{internalType:"uint256",name:"missingAccountFunds",type:"uint256"}],name:"validateUserOp",outputs:[{internalType:"uint256",name:"validationData",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address payable",name:"withdrawAddress",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"withdrawDepositTo",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}],f="0x60e0604052306080523480156200001557600080fd5b50604051620020c6380380620020c683398101604081905262000038916200013f565b6001600160a01b03821660a052816200005062000064565b506001600160a01b031660c052506200017e565b600054610100900460ff1615620000d15760405162461bcd60e51b8152
160206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff908116101562000124576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b6001600160a01b03811681146200013c57600080fd5b50565b600080604083850312156200015357600080fd5b8251620001608162000126565b6020840151909250620001738162000126565b809150509250929050565b60805160a05160c051611ecb620001fb60003960008181610137015261068a01526000818161029001528181610703015281816107aa01528181610b8c01528181610f2e0152818161128a015261152c015260008181610486015281816105360152818161086e0152818161091e0152610a670152611ecb6000f3fe6080604052600436106100f75760003560e01c80638da5cb5b1161008a578063c399ec8811610059578063c399ec88146102d4578063c4d66de8146102e9578063e02afbae14610309578063ee472f361461032b57600080fd5b80638da5cb5b14610221578063affed0e01461025e578063b0d691fe14610281578063b61d27f6146102b457600080fd5b80634a58db19116100c65780634a58db19146101d15780634d44560d146101d95780634f1ef286146101f957806352d1902d1461020c57600080fd5b806318dfb3c714610103578063245a7bfc146101255780633659cfe6146101835780633a871cdd146101a357600080fd5b366100fe57005b600080fd5b34801561010f57600080fd5b5061012361011e3660046118ef565b61034b565b005b34801561013157600080fd5b506101597f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b34801561018f57600080fd5b5061012361019e36600461197d565b61046f565b3480156101af57600080fd5b506101c36101be36600461199a565b610674565b60405190815260200161017a565b610123610701565b3480156101e557600080fd5b506101236101f43660046119ee565b6107a0565b610123610207366004611a98565b610857565b34801561021857600080fd5b506101c3610a4d565b34801561022d57600080fd5b50600154610159906c01000000000000000000000000900473ffffffffffffffffffffffffffffffffffffffff1681565b34801561026a57600080fd5b506001546bffffffffffffffffffffffff166101c3565b34801561028d57600080fd5b507f0000000000000000000000000000000000000000000000000000000000000000610159565b3480156102c057600080fd5b506101236102cf366004611b5e565b610b39565b3480156102e057600080fd5b506101c3610b88565b3480156102f557600080fd5b5061012361030436600461197d565b610c40565b34801561031557600080fd5b5061031e610dd3565b60405161017a9190611be7565b34801561033757600080fd5b50610123610346366004611c18565b610de8565b610353610f16565b8281146103c1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f77726f6e67206172726179206c656e677468730000000000000000000000000060448201526064015b60405180910390fd5b60005b83811015610468576104568585838181106103e1576103e1611c96565b90506020020160208101906103f6919061197d565b600085858581811061040a5761040a611c96565b905060200281019061041c9190611cc5565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610fe992505050565b8061046081611d59565b9150506103c4565b5050505050565b73ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000163003610534576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201527f64656c656761746563616c6c000000000000000000000000000000000000000060648201526084016103b8565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166105a97f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff161461064c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201527f6163746976652070726f7879000000000000000000000000000000000000000060648201526084016103b8565b61065581611066565b604080516000808252602082019092526106719183919061106e565b50565b600061067e611272565b604080516060810182527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168082526000602083018190529
119092015290506106df6040850185611cc5565b90506000036106f1576106f184611311565b6106fa826113da565b9392505050565b7f00000000000000000000000000000000000000000000000000000000000000006040517fb760faf900000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff919091169063b760faf99034906024016000604051808303818588803b15801561078c57600080fd5b505af1158015610468573d6000803e3d6000fd5b6107a8611445565b7f00000000000000000000000000000000000000000000000000000000000000006040517f205c287800000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff848116600483015260248201849052919091169063205c287890604401600060405180830381600087803b15801561083b57600080fd5b505af115801561084f573d6000803e3d6000fd5b505050505050565b73ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016300361091c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201527f64656c656761746563616c6c000000000000000000000000000000000000000060648201526084016103b8565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166109917f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614610a34576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201527f6163746976652070726f7879000000000000000000000000000000000000000060648201526084016103b8565b610a3d82611066565b610a498282600161106e565b5050565b60003073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614610b14576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c000000000000000060648201526084016103b8565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b610b41610f16565b610b82848484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610fe992505050565b50505050565b60007f00000000000000000000000000000000000000000000000000000000000000006040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff91909116906370a0823190602401602060405180830381865afa158015610c17573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c3b9190611d91565b905090565b600054610100900460ff1615808015610c605750600054600160ff909116105b80610c7a5750303b158015610c7a575060005460ff166001145b610d06576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a656400000000000000000000000000000000000060648201526084016103b8565b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790558015610d6457600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101001790555b610d6d826114e0565b8015610a4957600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15050565b610ddb611885565b610de3611885565b919050565b600054610100900460ff1615808015610e085750600054600160ff909116105b80610e225750303b158015610e22575060005460ff166001145b610eae576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a656400000000000000000000000000000000000060648201526084016103b8565b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790558015610f0c57600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101001790555b610d6d60006114e0565b3373ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000161480610f8157506001546c01000000000000000000000000900473ffffffffffffffffffffffffffffffffffffffff1633145b610fe7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f6163636f756e743a206e6f74204f776e6572206f7220456e747279506f696e7460448201526064016103b8565b565b6000808473ffffffffffffffffffffffffffffffffffffffff1684846040516110129190611dd6565b60006040518083038185875af1925050503d806000811461104f576040519150601f19603f3d011682016040523d82523d6000602084013e611054565b606091505b50915091508161046857805160208201fd5b610671611445565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156110a6576110a183611578565b505050565b8273ffffffffffffffffffffffffffffffffffffffff166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561112b575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261112891810190611d91565b
160015b6111b7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201527f6f6e206973206e6f74205555505300000000000000000000000000000000000060648201526084016103b8565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8114611266576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f7860448201527f6961626c6555554944000000000000000000000000000000000000000000000060648201526084016103b8565b506110a1838383611682565b3373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614610fe7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f6163636f756e743a206e6f742066726f6d20456e747279506f696e740000000060448201526064016103b8565b600180546020830135916bffffffffffffffffffffffff90911690600061133783611df2565b91906101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055506bffffffffffffffffffffffff1614610671576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f6163636f756e743a20696e76616c6964206e6f6e63650000000000000000000060448201526064016103b8565b80156106715760405160009033907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90849084818181858888f193505050503d8060008114610468576040519150601f19603f3d011682016040523d82523d6000602084013e610468565b6001546c01000000000000000000000000900473ffffffffffffffffffffffffffffffffffffffff1633148061147a57503330145b610fe7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f6f
16e6c79206f776e65720000000000000000000000000000000000000000000060448201526064016103b8565b600180546bffffffffffffffffffffffff166c0100000000000000000000000073ffffffffffffffffffffffffffffffffffffffff8481168202929092179283905560405192048116917f0000000000000000000000000000000000000000000000000000000000000000909116907f47e55c76e7a6f1fd8996a1da8008c1ea29699cca35e7bcd057f2dec313b6e5de90600090a350565b73ffffffffffffffffffffffffffffffffffffffff81163b61161c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e74726163740000000000000000000000000000000000000060648201526084016103b8565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b61168b836116a7565b6000825111806116985750805b156110a157610b8283836116f4565b6116b081611578565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606106fa8383604051806060016040528060278152602001611e6f6027913960606000808573ffffffffffffffffffffffffffffffffffffffff168560405161173e9190611dd6565b600060405180830381855af49150503d8060008114611779576040519150601f19603f3d011682016040523d82523d6000602084013e61177e565b606091505b509150915061178f86838387611799565b9695505050505050565b6060831561182f5782516000036118285773ffffffffffffffffffffffffffffffffffffffff85163b611828576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103b8565b5081611839565b6118398383611841565b949350505050565b8151156118515781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103b89190611e1d565b60405180608001604052806004906020820280368337509192915050565b60008083601f8401126118b557600080fd5b50813567ffffffffffffffff8111156118cd57600080fd5b6020830191508360208260051b85010111156118e857600080fd5b9250929050565b6000806000806040858703121561190557600080fd5b843567ffffffffffffffff8082111561191d57600080fd5b611929888389016118a3565b9096509450602087013591508082111561194257600080fd5b5061194f878288016118a3565b95989497509550505050565b73ffffffffffffffffffffffffffffffffffffffff8116811461067157600080fd5b60006020828403121561198f57600080fd5b81356106fa8161195b565b60008060006060848
160312156119af57600080fd5b833567ffffffffffffffff8111156119c657600080fd5b840161016081870312156119d957600080fd5b95602085013595506040909401359392505050565b60008060408385031215611a0157600080fd5b8235611a0c8161195b565b946020939093013593505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715611a9057611a90611a1a565b604052919050565b60008060408385031215611aab57600080fd5b8235611ab68161195b565b915060208381013567ffffffffffffffff80821115611ad457600080fd5b818601915086601f830112611ae857600080fd5b813581811115611afa57611afa611a1a565b611b2a847fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f84011601611a49565b91508082528784828501011115611b4057600080fd5b80848401858401376000848284010152508093505050509250929050565b60008060008060608587031215611b7457600080fd5b8435611b7f8161195b565b935060208501359250604085013567ffffffffffffffff80821115611ba357600080fd5b818701915087601f830112611bb757600080fd5b813581811115611bc657600080fd5b886020828501011115611bd857600080fd5b95989497505060200194505050565b60808101818360005b6004811015611c0f578151835260209283019290910190600101611bf0565b50505092915050565b600060808284031215611c2a57600080fd5b82601f830112611c3957600080fd5b6040516080810181811067ffffffffffffffff82111715611c5c57611c5c611a1a565b604052806080840185811115611c7157600080fd5b845b81811015611c8b578035835260209283019201611c73565b509195945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112611cfa57600080fd5b83018035915067ffffffffffffffff821115611d1557600080fd5b6020019150368190038213156118e857600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203611d8a57611d8a611d2a565b5060010190565b600060208284031215611da357600080fd5b5051919050565b60005b83811015611dc5578181015183820152602001611dad565b83811115610b825750506000910152565b60008251611de8818460208701611daa565b9190910192915050565b60006bffffffffffffffffffffffff808316818103611e1357611e13611d2a565b6001019392505050565b6020815260008251806020840152611e3c816040850160208701611daa565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212205cf49810dc1024bbe2d76f8f79dcc489e3b6a79d7f0e35498db5239b1077074564736f6c634300080f0033",l=function(e){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=this;return n.length>1?e.apply(this,n)||this:e.call(this,s,f,n[0])||this}return a(n,e),n.prototype.deploy=function(n,r,i){return e.prototype.deploy.call(this,n,r,i||{})},n.prototype.getDeployTransaction=function(n,r,i){return e.prototype.getDeployTransaction.call(this,n,r,i||{})},n.prototype.attach=function(n){return e.prototype.attach.call(this,n)},n.prototype.connect=function(n){return e.prototype.connect.call(this,n)},n.createInterface=function(){return new o.utils.Interface(s)},n.connect=function(e,n){return new o.Contract(e,s,n)},n.bytecode=f,n.abi=s,n}(o.ContractFactory);n.BrokenBLSAccount__factory=l},22066:function(e,n,r){"use strict";var i,a=this&&this.__extends||(i=function(e,n){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}i(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)});n.__esModule=!0,n.DepositPaymaster__factory=void 0;var o=r(86623),s=[{inputs:[{internalType:"contract IEntryPoint",name:"_entryPoint",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{inputs:[],name:"COST_OF_POST",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract IERC20",name:"token",type:"address"},{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"addDepositFor",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint32",name:"unstakeDelaySec",type:"uint32"}],name:"addStake",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"contract IERC20",name:"token",type:"address"},{internalType:"contract IOracle",name:"tokenPriceOracle",type:"address"}],name:"addToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC20",name:"",type:"address"},{internalType:"address",name:"",type:"address"}],name:"balances",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"deposit",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"contract IERC20",name:"token",type:"address"},{internalType:"address",name:"account",type:"address"}],name:"depositInfo",outputs:[{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"uint256",name:"_unlockBlock",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"entryPoint",outputs:[{internalType:"contract IEntryPoint",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDeposit",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"lockTokenDeposit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC20",name:"",type:"address"}],name:"oracles",outputs:[{internalType:"contract IOracle",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"enum IPaymaster.PostOpMode",name:"mode",type:"uint8"},{internalType:"bytes",name:"context",type:"bytes"},{internalType:"uint256",name:"actualGasCost",type:"uint256"}],name:"postOp",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"unlockBlock",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"unlockStake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unlockTokenDeposit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"sender",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"bytes",name:"initCode",type:"bytes"},{internalType:"bytes",name:"callData",type:"bytes"},{internalType:"uint256",name:"callGasLimit",type:"uint256"},{internalType:"uint256",name:"verificationGasLimit",type:"uint256"},{internalType:"uint256",name:"preVerificationGas",type:"uint256"},{internalType:"uint256",name:"maxFeePerGas",type:"uint256"},{internalType:"uint256",name:"maxPriorityFeePerGas",type:"uint256"},{internalType:"bytes",name:"paymasterAndData",type:"bytes"},{internalType:"bytes",name:"signature",type:"bytes"}],internalType:"struct UserOperation",name:"userOp",type:"tuple"},{internalType:"bytes32",name:"userOpHash",type:"bytes32"},{internalType:"uint256",name:"maxCost",type:"uint256"}],name:"validatePaymasterUserOp",outputs:[{internalType:"bytes",name:"context",type:"bytes"},{internalType:"uint256",name:"validationData",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address payable",name:"withdrawAddress",type:"address"}],name:"withdrawStake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address payable",name:"withdrawAddress",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"withdrawTo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC20",name:"token",type:"address"},{internalType:"address",name:"target",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"withdrawTokensTo",outputs:[],stateMutability:"nonpayable",type:"function"}],f="0x60a06040523480156200001157600080fd5b5060405162001fa938038062001fa98339810160408190526200003491620000bb565b8062000040336200006b565b6001600160a01b031660805262000064336000908152600360205260409020439055565b50620000ed565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208284031215620000ce57600080fd5b81516001600160a01b0381168114620000e657600080fd5b9392505050565b608051611e6f6200013a600039600081816103b30152818161052b015281816105f50152818161089001528181610957015281816109e701528181610bb90152610ed70152611e6f6000f3fe6080604052600436106101755760003560e01c8063addd5099116100cb578063c399ec881161007f578063d0e30db011610059578063d0e30db0146104995
178063f2fde38b146104a1578063f465c77e146104c157600080fd5b8063c399ec8814610442578063cc9c837c14610457578063cd8f80c21461047757600080fd5b8063bb9fe6bf116100b0578063bb9fe6bf146103d5578063c23a5cea146103ea578063c23f001f1461040a57600080fd5b8063addd50991461035e578063b0d691fe146103a157600080fd5b80635476bd721161012d5780638da5cb5b116101075780638da5cb5b146102ce5780639ed0fb681461031a578063a9a234091461033e57600080fd5b80635476bd7214610283578063715018a6146102a3578063796d4371146102b857600080fd5b8063382edd9e1161015e578063382edd9e146101af578063493b0170146101cf5780634a6f84cf1461024857600080fd5b80630396cb601461017a578063205c28781461018f575b600080fd5b61018d610188366004611915565b6104ef565b005b34801561019b57600080fd5b5061018d6101aa36600461195d565b6105a1565b3480156101bb57600080fd5b5061018d6101ca366004611989565b610639565b3480156101db57600080fd5b5061022e6101ea3660046119ca565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260026020908152604080832093909416825291825282812054600390925291909120549091565b604080519283526020830191909152015b60405180910390f35b34801561025457600080fd5b50610275610263366004611a03565b60036020526000908152604090205481565b60405190815260200161023f565b34801561028f57600080fd5b5061018d61029e3660046119ca565b61076e565b3480156102af57600080fd5b5061018d610858565b3480156102c457600080fd5b506102756188b881565b3480156102da57600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161023f565b34801561032657600080fd5b5061018d336000908152600360205260409020439055565b34801561034a57600080fd5b5061018d610359366004611a20565b61086c565b34801561036a57600080fd5b506102f5610379366004611a03565b60016020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b3480156103ad57600080fd5b506102f57f000000000000000000000000000000000000000000000000000000000000000081565b3480156103e157600080fd5b5061018d610886565b3480156103f657600080fd5b5061018d610405366004611a03565b61090a565b34801561041657600080fd5b506102756104253660046119ca565b600260209081526000928352604080842090915290825290205481565b34801561044e57600080fd5b506102756109b6565b34801561046357600080fd5b5061018d610472366004611989565b610a6c565b34801561048357600080fd5b5061018d33600090815260036020526040812055565b61018d610b8b565b3480156104ad57600080fd5b5061018d6104bc366004611a03565b610c13565b3480156104cd57600080fd5b506104e16104dc366004611aaf565b610cca565b60405161023f929190611b79565b6104f7610ced565b6040517f0396cb6000000000000000000000000000000000000000000000000000000000815263ffffffff821660048201527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1690630396cb609034906024016000604051808303818588803b15801561058557600080fd5b505af1158015610599573d6000803e3d6000fd5b505050505050565b6105a9610ced565b6040517f205c287800000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8381166004830152602482018390527f0000000000000000000000000000000000000000000000000000000000000000169063205c287890604401600060405180830381600087803b15801561058557600080fd5b61065b73ffffffffffffffffffffffffffffffffffffffff8416333084610d6e565b73ffffffffffffffffffffffffffffffffffffffff838116600090815260016020526040902054166106ee576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f756e737570706f7274656420746f6b656e00000000000000000000000000000060448201526064015b60405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff808416600090815260026020908152604080832093861683529290529081208054839290610732908490611bca565b909155505073ffffffffffffffffffffffffffffffffffffffff821633036107695761076933600090815260036020526040812055565b505050565b610776610ced565b73ffffffffffffffffffffffffffffffffffffffff8281166000908152600160205260409020541615610805576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f546f6b656e20616c72656164792073657400000000000000000000000000000060448201526064016106e5565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001691909216179055565b610860610ced565b61086a6000610e4a565b565b610874610ebf565b61088084848484610f5e565b50505050565b61088e610ced565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663bb9fe6bf6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156108f657600080fd5b505af1158015610880573d6000803e3d6000fd5b610912610ced565b6040517fc23a5cea00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff82811660048301527f0000000000000000000000000000000000000000000000000000000000000000169063c23a5cea90602401600060405180830381600087803b15801561099b57600080fd5b505af11580156109af573d6000803e3d6000fd5b5050505050565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa158015610a43573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a679190611be2565b905090565b3360009081526003602052604090205415801590610a9857503360009081526003602052604090205443115b610b24576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4465706f7369745061796d61737465723a206d75737420756e6c6f636b546f6b60448201527f656e4465706f736974000000000000000000000000000000000000000000000060648201526084016106e5565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260026020908152604080832033845290915281208054839290610b64908490611bfb565b90915550610769905073ffffffffffffffffffffffffffffffffffffffff841683836110d6565b6040517fb760faf90000000000000000000000000000000000000000000000000000000081523060048201527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169063b760faf99034906024016000604051808303818588803b15801561099b57600080fd5b610c1b610ced565b73ffffffffffffffffffffffffffffffffffffffff8116610cbe576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016106e5565b610cc781610e4a565b50565b60606000610cd6610ebf565b610ce185858561112c565b91509150935093915050565b60005473ffffffffffffffffffffffffffffffffffffffff16331461086a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106e5565b60405173ffffffffffffffffffffffffffffffffffffffff808516602483015283166044820152606481018290526108809085907f23b872dd00000000000000000000000000000000000000000000000000000000906084015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152611475565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b3373ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000161461086a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f53656e646572206e6f7420456e747279506f696e74000000000000000000000060448201526064016106e5565b600080808080610f7087890189611c12565b9450945094509450945060008183856188b8610f8c9190611c63565b610f96908a611bca565b610fa09190611c63565b610faa9190611ca0565b905060028a6002811115610fc057610fc0611cdb565b14610fec57610fe773ffffffffffffffffffffffffffffffffffffffff8616873084610d6e565b611036565b73ffffffffffffffffffffffffffffffffffffffff8086166000908152600260209081526040808320938a1683529290529081208054839290611030908490611bfb565b90915550505b73ffffffffffffffffffffffffffffffffffffffff851660009081526002602052
160408120829161107c60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546110c59190611bca565b909155505050505050505050505050565b60405173ffffffffffffffffffffffffffffffffffffffff83166024820152604481018290526107699084907fa9059cbb0000000000000000000000000000000000000000000000000000000090606401610dc8565b606060006188b88560a00135116111c5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f4465706f7369745061796d61737465723a2067617320746f6f206c6f7720666f60448201527f7220706f73744f7000000000000000000000000000000000000000000000000060648201526084016106e5565b3660006111d6610120880188611d0a565b90925090506028811461126b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603560248201527f4465706f7369745061796d61737465723a207061796d6173746572416e64446160448201527f7461206d757374207370656369667920746f6b656e000000000000000000000060648201526084016106e5565b600061127a8260148186611d76565b61128391611da0565b60601c9050873560006112968389611581565b905060006112a38b6116cf565b73ffffffffffffffffffffffffffffffffffffffff841660009081526003602052604090205490915015611358576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f4465706f7369745061796d61737465723a206465706f736974206e6f74206c6f60448201527f636b65640000000000000000000000000000000000000000000000000000000060648201526084016106e5565b73ffffffffffffffffffffffffffffffffffffffff80851660009081526002602090815260408083209387168352929052205482111561141a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4465706f7369745061796d61737465723a206465706f73697420746f6f206c6f60448201527f770000000000000000000000000000000000000000000000000000000000000060648201526084016106e5565b6040805173ffffffffffffffffffffffffffffffffffffffff948516602082015294909316848401526060840152608083015260a0808301979097528051808303909701875260c09091019052509295600095509350505050565b60006114d7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166116f69092919063ffffffff16565b80519091501561076957808060200190518101906114f59190611de8565b610769576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016106e5565b73ffffffffffffffffffffffffffffffffffffffff80831660009081526001602052604081205490911680611638576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f4465706f7369745061796d61737465723a20756e737570706f7274656420746f60448201527f6b656e000000000000000000000000000000000000000000000000000000000060648201526084016106e5565b6040517fd1eca9cf0000000000000000000000000000000000000000000000000000000081526004810184905273ffffffffffffffffffffffffffffffffffffffff82169063d1eca9cf90602401602060405180830381865afa1580156116a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116c79190611be2565b949350505050565b600060e08201356101008301358082036116ea575092915050565b6116c782488301611705565b60606116c7848460008561171d565b60008183106117145781611716565b825b9392505050565b6060824710156117af576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016106e5565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516117d89190611e0a565b60006040518083038185875af1925050503d8060008114611815576040519150601f19603f3d011682016040523d82523d6000602084013e61181a565b606091505b509150915061182b87838387611836565b979650505050505050565b606083156118cc5782516000036118c55773ffffffffffffffffffffffffffffffffffffffff85163b6118c5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016106e5565b50816116c7565b6116c783838151156118e15781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106e59190611e26565b
160006020828403121561192757600080fd5b813563ffffffff8116811461171657600080fd5b73ffffffffffffffffffffffffffffffffffffffff81168114610cc757600080fd5b6000806040838503121561197057600080fd5b823561197b8161193b565b946020939093013593505050565b60008060006060848603121561199e57600080fd5b83356119a98161193b565b925060208401356119b98161193b565b929592945050506040919091013590565b600080604083850312156119dd57600080fd5b82356119e88161193b565b915060208301356119f88161193b565b809150509250929050565b600060208284031215611a1557600080fd5b81356117168161193b565b60008060008060608587031215611a3657600080fd5b843560038110611a4557600080fd5b9350602085013567ffffffffffffffff80821115611a6257600080fd5b818701915087601f830112611a7657600080fd5b813581811115611a8557600080fd5b886020828501011115611a9757600080fd5b95986020929092019750949560400135945092505050565b600080600060608486031215611ac457600080fd5b833567ffffffffffffffff811115611adb57600080fd5b84016101608187031215611aee57600080fd5b95602085013595506040909401359392505050565b60005b83811015611b1e578181015183820152602001611b06565b838111156108805750506000910152565b60008151808452611b47816020860160208601611b03565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b604081526000611b8c6040830185611b2f565b90508260208301529392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008219821115611bdd57611bdd611b9b565b500190565b600060208284031215611bf457600080fd5b5051919050565b600082821015611c0d57611c0d611b9b565b500390565b600080600080600060a08688031215611c2a57600080fd5b8535611c358161193b565b94506020860135611c458161193b565b94979496505050506040830135926060810135926080909101359150565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611c9b57611c9b611b9b565b500290565b600082611cd6577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112611d3f57600080fd5b83018035915067ffffffffffffffff821115611d5a57600080fd5b602001915036819003821315611d6f57600080fd5b9250929050565b60008085851115611d8657600080fd5b83861115611d9357600080fd5b5050820193919092039150565b7fffffffffffffffffffffffffffffffffffffffff0000000000000000000000008135818116916014851015611de05780818660140360031b1b83161692505b505092915050565b600060208284031215611dfa57600080fd5b8151801515811461171657600080fd5b60008251611e1c818460208701611b03565b9190910192915050565b6020815260006117166020830184611b2f56fea2646970667358221220f935cbe4ea2ae13e8fff0cb7f87458bc2f28e69d759658a51d6206dc7702573a64736f6c634300080f0033",l=function(e){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=this;return n.length>1?e.apply(this,n)||this:e.call(this,s,f,n[0])||this}return a(n,e),n.prototype.deploy=function(n,r){return e.prototype.deploy.call(this,n,r||{})},n.prototype.getDeployTransaction=function(n,r){return e.prototype.getDeployTransaction.call(this,n,r||{})},n.prototype.attach=function(n){return e.prototype.attach.call(this,n)},n.prototype.connect=function(n){return e.prototype.connect.call(this,n)},n.createInterface=function(){return new o.utils.Interface(s)},n.connect=function(e,n){return new o.Contract(e,s,n)},n.bytecode=f,n.abi=s,n}(o.ContractFactory);n.DepositPaymaster__factory=l},47229:function(e,n,r){"use strict";var i,a=this&&this.__extends||(i=function(e,n){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}i(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)});n.__esModule=!0,n.EntryPoint__factory=void 0;var o=r(86623),s=[{inputs:[{internalType:"uint256",name:"preOpGas",type:"uint256"},{internalType:"uint256",name:"paid",type:"uint256"},{internalType:"uint48",name:"validAfter",type:"uint48"},{internalType:"uint48",name:"validUntil",type:"uint48"},{internalType:"bool",name:"targetSuccess",type:"bool"},{internalType:"bytes",name:"targetResult",type:"bytes"}],name:"ExecutionResult",type:"error"},{inputs:[{internalType:"uint256",name:"opIndex",type:"uint256"},{internalType:"string",name:"reason",type:"string"}],name:"FailedOp",type:"error"},{inputs:[{internalType:"address",name:"sender",type:"address"}],name:"SenderAddressResult",type:"error"},{inputs:[{internalType:"address",name:"aggregator",type:"address"}],name:"SignatureValidationFailed",type:"error"},{inputs:[{components:[{internalType:"uint256",name:"preOpGas",type:"uint256"},{internalType:"uint256",name:"prefund",type:"uint256"},{internalType:"bool",name:"sigFailed",type:"bool"},{internalType:"uint48",name:"validAfter",type:"uint48"},{internalType:"uint48",name:"validUntil",type:"uint48"},{internalType:"bytes",name:"paymasterContext",type:"bytes"}],internalType:"struct IEntryPoint.ReturnInfo",name:"returnInfo",type:"tuple"},{components:[{internalType:"uint256",name:"stake",type:"uint256"},{internalType:"uint256",name:"unstakeDelaySec",type:"uint256"}],internalType:"struct IStakeManager.StakeInfo",name:"senderInfo",type:"tuple"},{components:[{internalType:"uint256",name:"stake",type:"uint256"},{internalType:"uint256",name:"unstakeDelaySec",type:"uint256"}],internalType:"struct IStakeManager.StakeInfo",name:"factoryInfo",type:"tuple"},{components:[{internalType:"uint256",name:"stake",type:"uint256"},{internalType:"uint256",name:"unstakeDelaySec",type:"uint256"}],internalType:"struct IStakeManager.StakeInfo",name:"paymasterInfo",type:"tuple"}],name:"ValidationResult",type:"error"},{inputs:[{components:[{internalType:"uint256",name:"preOpGas",type:"uint256"},{internalType:"uint256",name:"prefund",type:"uint256"},{internalType:"bool",name:"sigFailed",type:"bool"},{internalType:"uint48",name:"validAfter",type:"uint48"},{internalType:"uint48",name:"validUntil",type:"uint48"},{internalType:"bytes",name:"paymasterContext",type:"bytes"}],internalType:"struct IEntryPoint.ReturnInfo",name:"returnInfo",type:"tuple"},{components:[{internalType:"uint256",name:"stake",type:"uint256"},{internalType:"uint256",name:"unstakeDelaySec",type:"uint256"}],internalType:"struct IStakeManager.StakeInfo",name:"senderInfo",type:"tuple"},{components:[{internalType:"uint256",name:"stake",type:"uint256"},{internalType:"uint256",name:"unstakeDelaySec",type:"uint256"}],internalType:"struct IStakeManager.StakeInfo",name:"factoryInfo",type:"tuple"},{components:[{internalType:"uint256",name:"stake",type:"uint256"},{internalType:"uint256",name:"unstakeDelaySec",type:"uint256"}],internalType:"struct IStakeManager.StakeInfo",name:"paymasterInfo",type:"tuple"},{components:[{internalType:"address",name:"aggregator",type:"address"},{components:[{internalType:"uint256",name:"stake",type:"uint256"},{internalType:"uint256",name:"unstakeDelaySec",type:"uint256"}],internalType:"struct IStakeManager.StakeInfo",name:"stakeInfo",type:"tuple"}],internalType:"struct IEntryPoint.AggregatorStakeInfo",name:"aggregatorInfo",type:"tuple"}],name:"ValidationResultWithAggregation",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"userOpHash",type:"bytes32"},{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"address",name:"factory",type:"address"},{indexed:!1,internalType:"address",name:"paymaster",type:"address"}],name:"AccountDeployed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!1,internalType:"uint256",name:"totalDeposit",type:"uint256"}],name:"Deposited",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"aggregator",type:"address"}],name:"SignatureAggregatorChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!1,internalType:"uint256",name:"totalStaked",type:"uint256"},{indexed:!1,internalType:"uint256",name:"unstakeDelaySec",type:"uint256"}],name:"StakeLocked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!1,internalType:"uint256",name:"withdrawTime",type:"uint256"}],name:"StakeUnlocked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!1,internalType:"address",name:"withdrawAddress",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"StakeWithdrawn",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"userOpHash",type:"bytes32"},{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"paymaster",type:"address"},{indexed:!1,internalType:"uint256",name:"nonce",type:"uint256"},{indexed:!1,internalType:"bool",name:"success",type:"bool"},{indexed:!1,internalType:"uint256",name:"actualGasCost",type:"uint256"},{indexed:!1,internalType:"uint256",name:"actualGasUsed",type:"uint256"}],name:"UserOperationEvent",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"userOpHash",type:"bytes32"},{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint256",name:"nonce",type:"uint256"},{indexed:!1,internalType:"bytes",name:"revertReason",type:"bytes"}],name:"UserOperationRevertReason",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!1,internalType:"address",name:"withdrawAddress",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"Withdrawn",type:"event"},{inputs:[],name:"SIG_VALIDATION_FAILED",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"initCode",type:"bytes"},{internalType:"address",name:"sender",type:"address"},{internalType:"bytes",name:"paymasterAndData",type:"bytes"}],name:"_validateSenderAndPaymaster",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint32",name:"unstakeDelaySec",type:"uint32"}],name:"addStake",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"depositTo",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"deposits",outputs:[{internalType:"uint112",name:"deposit",type:"uint112"},{internalType:"bool",name:"staked",type:"bool"},{internalType:"uint112",name:"stake",type:"uint112"},{internalType:"uint32",name:"unstakeDelaySec",type:"uint32"},{internalType:"uint48",name:"withdrawTime",type:"uint48"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"getDepositInfo",outputs:[{components:[{internalType:"uint112",name:"deposit",type:"uint112"},{internalType:"bool",name:"staked",type:"bool"},{internalType:"uint112",name:"stake",type:"uint112"},{internalType:"uint32",name:"unstakeDelaySec",type:"uint32"},{internalType:"uint48",name:"withdrawTime",type:"uint48"}],internalType:"struct IStakeManager.DepositInfo",name:"info",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"initCode",type:"bytes"}],name:"getSenderAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"sender",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"bytes",name:"initCode",type:"bytes"},{internalType:"bytes",name:"callData",type:"bytes"},{internalType:"uint256",name:"callGasLimit",type:"uint256"},{internalType:"uint256",name:"verificationGasLimit",type:"uint256"},{internalType:"uint256",name:"preVerificationGas",type:"uint256"},{internalType:"uint256",name:"maxFeePerGas",type:"uint256"},{internalType:"uint256",name:"maxPriorityFeePerGas",type:"uint256"},{internalType:"bytes",name:"paymasterAndData",type:"bytes"},{internalType:"bytes",name:"signature",type:"bytes"}],internalType:"struct UserOperation",name:"userOp",type:"tuple"}],name:"getUserOpHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{components:[{components:[{internalType:"address",name:"sender",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"bytes",name:"initCode",type:"bytes"},{internalType:"bytes",name:"callData",type:"bytes"},{internalType:"uint256",name:"callGasLimit",type:"uint256"},{internalType:"uint256",name:"verificationGasLimit",type:"uint256"},{internalType:"uint256",name:"preVerificationGas",type:"uint256"},{internalType:"uint256",name:"maxFeePerGas",type:"uint256"},{internalType:"uint256",name:"maxPriorityFeePerGas",type:"uint256"},{internalType:"bytes",name:"paymasterAndData",type:"bytes"},{internalType:"bytes",name:"signature",type:"bytes"}],internalType:"struct UserOperation[]",name:"userOps",type:"tuple[]"},{internalType:"contract IAggregator",name:"aggregator",type:"address"},{internalType:"bytes",name:"signature",type:"bytes"}],internalType:"struct IEntryPoint.UserOpsPerAggregator[]",name:"opsPerAggregator",type:"tuple[]"},{internalType:"address payable",name:"beneficiary",type:"address"}],name:"handleAggregatedOps",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"sender",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"bytes",name:"initCode",type:"bytes"},{internalType:"bytes",name:"callData",type:"bytes"},{internalType:"uint256",name:"callGasLimit",type:"uint256"},{internalType:"uint256",name:"verificationGasLimit",type:"uint256"},{internalType:"uint256",name:"preVerificationGas",type:"uint256"},{internalType:"uint256",name:"maxFeePerGas",type:"uint256"},{internalType:"uint256",name:"maxPriorityFeePerGas",type:"uint256"},{internalType:"bytes",name:"paymasterAndData",type:"bytes"},{internalType:"bytes",name:"signature",type:"bytes"}],internalType:"struct UserOperation[]",name:"ops",type:"tuple[]"},{internalType:"address payable",name:"beneficiary",type:"address"}],name:"handleOps",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes",name:"callData",type:"bytes"},{components:[{components:[{internalType:"address",name:"sender",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"callGasLimit",type:"uint256"},{internalType:"uint256",name:"verificationGasLimit",type:"uint256"},{internalType:"uint256",name:"preVerificationGas",type:"uint256"},{internalType:"address",name:"paymaster",type:"address"},{internalType:"uint256",name:"maxFeePerGas",type:"uint256"},{internalType:"uint256",name:"maxPriorityFeePerGas",type:"uint256"}
1],internalType:"struct EntryPoint.MemoryUserOp",name:"mUserOp",type:"tuple"},{internalType:"bytes32",name:"userOpHash",type:"bytes32"},{internalType:"uint256",name:"prefund",type:"uint256"},{internalType:"uint256",name:"contextOffset",type:"uint256"},{internalType:"uint256",name:"preOpGas",type:"uint256"}],internalType:"struct EntryPoint.UserOpInfo",name:"opInfo",type:"tuple"},{internalType:"bytes",name:"context",type:"bytes"}],name:"innerHandleOp",outputs:[{internalType:"uint256",name:"actualGasCost",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"sender",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"bytes",name:"initCode",type:"bytes"},{internalType:"bytes",name:"callData",type:"bytes"},{internalType:"uint256",name:"callGasLimit",type:"uint256"},{internalType:"uint256",name:"verificationGasLimit",type:"uint256"},{internalType:"uint256",name:"preVerificationGas",type:"uint256"},{internalType:"uint256",name:"maxFeePerGas",type:"uint256"},{internalType:"uint256",name:"maxPriorityFeePerGas",type:"uint256"},{internalType:"bytes",name:"paymasterAndData",type:"bytes"},{internalType:"bytes",name:"signature",type:"bytes"}],internalType:"struct UserOperation",name:"op",type:"tuple"},{internalType:"address",name:"target",type:"address"},{internalType:"bytes",name:"targetCallData",type:"bytes"}],name:"simulateHandleOp",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"sender",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"bytes",name:"initCode",type:"bytes"},{internalType:"bytes",name:"callData",type:"bytes"},{internalType:"uint256",name:"callGasLimit",type:"uint256"},{internalType:"uint256",name:"verificationGasLimit",type:"uint256"},{internalType:"uint256",name:"preVerificationGas",type:"uint256"},{internalType:"uint256",name:"maxFeePerGas",type:"uint256"},{internalType:"uint256",name:"maxPriorityFeePerGas",type:"uint256"},{internalType:"bytes",name:"paymasterAndData",type:"bytes"},{internalType:"bytes",name:"signature",type:"bytes"}],internalType:"struct UserOperation",name:"userOp",type:"tuple"}],name:"simulateValidation",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unlockStake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address payable",name:"withdrawAddress",type:"address"}],name:"withdrawStake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address payable",name:"withdrawAddress",type:"address"},{internalType:"uint256",name:"withdrawAmount",type:"uint256"}],name:"withdrawTo",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}],f="0x60a08060405234620000845761022c8181016001600160401b038111838210176200006e57829162005773833903906000f0801562000062576080526040516156e990816200008a8239608051818181611321015281816139700152613c910152f35b6040513d6000823e3d90fd5b634e487b7160e01b600052604160045260246000fd5b600080fdfe60806040526004361015610023575b361561001957600080fd5b610021614f9c565b005b60003560e01c80630396cb60146101775780631d7327561461016e5780631fad948c14610165578063205c28781461015c5780634b1d7cf5146101535780635287ce121461014a57806370a08231146101415780638f41ec5a14610138578063957122ab1461012f5780639b249f6914610126578063a61935311461011d578063b760faf914610114578063bb9fe6bf1461010b578063c23a5cea14610102578063d6383f94146100f9578063ee219423146100f05763fc7e286d0361000e576100eb611b0f565b61000e565b506100eb6118f7565b506100eb61178f565b506100eb6115f6565b506100eb611478565b506100eb611439565b506100eb611418565b506100eb611279565b506100eb6110a6565b506100eb61106b565b506100eb610fe6565b506100eb610e96565b506100eb610b6b565b506100eb6109cc565b506100eb61071c565b506100eb610549565b5060207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261031d5760043563ffffffff811680820361031d576103187fa5ae833d0bb1dcd632d98a8b70973e8516812898e19bf27b70071ebc8dc52c01916102356102053373ffffffffffffffffffffffffffffffffffffffff166000526000602052604060002090565b91610211811515615102565b61022e610225600185015463ffffffff1690565b63ffffffff1690565b1115615167565b54926102fa6dffffffffffffffffffffffffffff946102b861025c34888460781c166120aa565b966102688815156151cc565b61027481891115615231565b61029881610280610409565b941684906dffffffffffffffffffffffffffff169052565b6001602084015287166dffffffffffffffffffffffffffff166040830152565b63ffffffff83166060820152600060808201526102f53373ffffffffffffffffffffffffffffffffffffffff166000526000602052604060002090565b615296565b6040805194855263ffffffff90911660208501523393918291820190565b0390a2005b600080fd5b507f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60a0810190811067ffffffffffffffff82111761036e57604052565b610376610322565b604052565b610100810190811067ffffffffffffffff82111761036e57604052565b67ffffffffffffffff811161036e57604052565b6060810190811067ffffffffffffffff82111761036e57604052565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff82111761036e57604052565b6040519061041682610352565b56
15b6040519060c0820182811067ffffffffffffffff82111761036e57604052565b604051906040820182811067ffffffffffffffff82111761036e57604052565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f60209267ffffffffffffffff8111610494575b01160190565b61049c610322565b61048e565b9291926104ad82610458565b916104bb60405193846103c8565b82948184528183011161031d578281602093846000960137010152565b73ffffffffffffffffffffffffffffffffffffffff81160361031d57565b60243590610416826104d8565b60c43590610416826104d8565b3590610416826104d8565b9181601f8401121561031d5782359167ffffffffffffffff831161031d576020838186019501011161031d57565b503461031d576101c07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261031d5767ffffffffffffffff60043581811161031d573660238201121561031d576105ac9036906024816004013591016104a1565b907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdc3601610180811261031d57610100604051916105e983610352565b1261031d576040516105fa8161037b565b6106026104f6565b815260443560208201526064356040820152608435606082015260a435608082015261062c610503565b60a082015260e43560c08201526101043560e082015281526101243560208201526101443560408201526101643560608201526101843560808201526101a43591821161031d576106a09261068861069093369060040161051b565b929091612786565b6040519081529081906020820190565b0390f35b9060407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc83011261031d5760043567ffffffffffffffff9283821161031d578060238301121561031d57816004013593841161031d5760248460051b8301011161031d576024019190602435610719816104d8565b90565b503461031d5761072b366106a4565b610736829392611c6f565b60005b848110610788575060009283915b858310610758576100218585611dac565b90919360019061077e61076c878987611d2e565b6107768886611d0c565b519088612214565b0194019190610747565b6107b36107ac61079a83859795611d0c565b516107a6848987611d2e565b84612fc4565b9190612d9b565b73ffffffffffffffffffffffffffffffffffffffff9291831661095e576108f0576107dd90612d9b565b9116610882576107f257600101929092610739565b604080517f220266b600000000000000000000000000000000000000000000000000000000815260048101929092526024820152602160448201527f41413332207061796d61737465722065787069726564206f72206e6f7420647560648201527f6500000000000000000000000000000000000000000000000000000000000000608482015260a490fd5b0390fd5b61087e826040519182917f220266b600000000000000000000000000000000000000000000000000000000835260048301608091815260406020820152601460408201527f41413334207369676e6174757265206572726f7200000000000000000000000060608201520190565b61087e836040519182917f220266b600000000000000000000000000000000000000000000000000000000835260048301608091815260406020820152601760408201527f414132322065787069726564206f72206e6f742064756500000000000000000060608201520190565b61087e846040519182917f220266b600000000000000000000000000000000000000000000000000000000835260048301608091815260406020820152601460408201527f41413234207369676e6174757265206572726f7200000000000000000000000060608201520190565b503461031d5760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261031d57600435610a08816104d8565b6024359060009133835282602052604083206dffffffffffffffffffffffffffff81541692838311610b0d57848373ffffffffffffffffffffffffffffffffffffffff829593610ab08496610a77610a648798610b0a9c612095565b6dffffffffffffffffffffffffffff1690565b6dffffffffffffffffffffffffffff167fffffffffffffffffffffffffffffffffffff0000000000000000000000000000825416179055565b6040805173ffffffffffffffffffffffffffffffffffffffff831681526020810185905233917fd1c19fbcd4551a5edfb66d43d2e337c04837afda3482b42bdf569a8fccdae5fb91a2165af1610b04611d7c565b5061560d565b80f35b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f576974686472617720616d6f756e7420746f6f206c61726765000000000000006044820152fd5b503461031d57610b7a366106a4565b6000805b838210610d3c57610b8f9150611c6f565b6000805b848110610ca257505060008093815b818110610bd957610021868660007f575ff3acadd5ab348fe1855e217e0f3678f8d767d7494c9f9fefbee2e17cca4d8180a2611dac565b610c3d610be782848a6123a0565b610c12610bf9610bf960208401612442565b73ffffffffffffffffffffffffffffffffffffffff1690565b7f575ff3acadd5ab348fe1855e217e0f3678f8d767d7494c9f9fefbee2e17cca4d600080a2806123ee565b906000915b808310610c5a57505050610c5590612366565b610ba2565b90919497610c95610c8f610c9b92610c898c8b610c8282610c7c8e8b8d611d2e565b92611d0c565b5191612214565b906120aa565b99612366565b95612366565b9190610c42565b610cad8186886123a0565b6020610cc5610cbc83806123ee565b92909301612442565b9173ffffffffffffffffffffffffffffffffffffffff60009316905b828410610cfa5750505050610cf590612366565b610b93565b90919294610c9581610d2f85610d28610d16610d34968d611d0c565b51610d228c8b8a611d2e565b85612fc4565b908b612d53565b612366565b929190610ce1565b610d478285876123a0565b90610d5282806123ee565b92610d62610bf960208301612442565b9173ffffffffffffffffffffffffffffffffffffffff8316610d87600182141561244c565b610da8575b505050610da291610d9c916120aa565b91612366565b90610b7e565b909592610dc16040999693999895989788810190611e9d565b92908a3b1561031d5789938b918a5193849283927fe3563a4f00000000000000000000000000000000000000000000000000000000845260049e8f850193610e08946125e6565b03815a93600094fa9081610e7d575b50610e675786517f86a9f75000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8a16818a0190815281906020010390fd5b9497509295509093509181610d9c610da2610d8c565b80610e8a610e9092610398565b80611060565b38610e17565b503461031d5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261031d576106a073ffffffffffffffffffffffffffffffffffffffff600435610eea816104d8565b608060409283928351610efc81610352565b600093818580935282602082015282878201528260608201520152168152806020522090610f8b65ffffffffffff6001835194610f3886610352565b80546dffffffffffffffffffffffffffff8082168852607082901c60ff161515602089015260789190911c1685870152015463ffffffff811660608601
15260201c16608084019065ffffffffffff169052565b5191829182919091608065ffffffffffff8160a08401956dffffffffffffffffffffffffffff808251168652602082015115156020870152604082015116604086015263ffffffff6060820151166060860152015116910152565b503461031d5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261031d5773ffffffffffffffffffffffffffffffffffffffff600435611037816104d8565b16600052600060205260206dffffffffffffffffffffffffffff60406000205416604051908152f35b600091031261031d57565b503461031d5760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261031d57602060405160018152f35b503461031d5760607ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261031d57600467ffffffffffffffff813581811161031d576110f7903690840161051b565b905060243591611106836104d8565b60443590811161031d5761111d903690850161051b565b92909115908161126f575b50611208576014821015611178575b61087e836040519182917f08c379a0000000000000000000000000000000000000000000000000000000008352820160409060208152600060208201520190565b6111886111949261118e926129ab565b906129b9565b60601c90565b3b156111a1573880611137565b61087e906040519182917f08c379a0000000000000000000000000000000000000000000000000000000008352820160609060208152601b60208201527f41413330207061796d6173746572206e6f74206465706c6f796564000000000060408201520190565b61087e836040519182917f08c379a0000000000000000000000000000000000000000000000000000000008352820160609060208152601960208201527f41413230206163636f756e74206e6f74206465706c6f7965640000000000000060408201520190565b90503b1538611128565b503461031d5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261031d5760043567ffffffffffffffff811161031d576112cb602491369060040161051b565b906113016040519283927f570e1a3600000000000000000000000000000000000000000000000000000000845260048401612b4f565b0360208273ffffffffffffffffffffffffffffffffffffffff92816000857f0000000000000000000000000000000000000000000000000000000000000000165af19182156113b3575b600092611383575b50604051917f6ca7b806000000000000000000000000000000000000000000000000000000008352166004820152fd5b6113a591925060203d81116113ac575b61139d81836103c8565b810190612b3a565b9038611353565b503d611393565b6113bb612058565b61134b565b908161016091031261031d5790565b60207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc82011261031d576004359067ffffffffffffffff821161031d57610719916004016113c0565b503461031d57602061143161142c366113cf565b6128e1565b604051908152f35b5060207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261031d57610021600435611473816104d8565b615096565b503461031d576000807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126115f3573381528060205260408120600181019063ffffffff825416908115611595576115326114f761155a936114e96114e4855460ff9060701c1690565b6153fa565b65ffffffffffff421661545f565b84547fffffffffffffffffffffffffffffffffffffffffffff000000000000ffffffff16602082901b69ffffffffffff000000001617909455565b7fffffffffffffffffffffffffffffffffff00ffffffffffffffffffffffffffff8154169055565b60405165ffffffffffff91909116815233907ffa9b3c14cc825c412c9ed81b3ba365a5b459439403f18829e572ed53a4180f0a90602090a280f35b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f6e6f74207374616b6564000000000000000000000000000000000000000000006044820152fd5b80fd5b503461031d5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261031d57600435611632816104d8565b610b0a73ffffffffffffffffffffffffffffffffffffffff6116743373ffffffffffffffffffffffffffffffffffffffff166000526000602052604060002090565b9261172c611697610a6486546dffffffffffffffffffffffffffff9060781c1690565b946116a3861515615479565b611704600182016116dc65ffffffffffff6116c8835465ffffffffffff9060201c1690565b166116d48115156154de565b421015615543565b80547fffffffffffffffffffffffffffffffffffffffffffff00000000000000000000169055565b7fffffff0000000000000000000000000000ffffffffffffffffffffffffffffff8154169055565b6040805173ffffffffffffffffffffffffffffffffffffffff831681526020810186905233917fb7c918e0e249f999e965cafeb6c664271b3f4317d296461500e71da39f0cbda391a2600080809581948294165af1611789611d7c565b506155a8565b503461031d5760607ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261031d5767ffffffffffffffff60043581811161031d576117e09036906004016113c0565b602435916117ed836104d8565b60443590811161031d5761180861087e91369060040161051b565b611810611bec565b61181985612c4e565b61182c6118268287612e5c565b90614e95565b9461183c826000924384526120b7565b96438252819360609573ffffffffffffffffffffffffffffffffffffffff83166118c3575b5050505060800151936118906040611882602084015165ffffffffffff1690565b92015165ffffffffffff1690565b906040519687967f8b7ac980000000000000000000000000000000000000000000000000000000008852600488016126b6565b839550839496506118dd60409492939451809481936126a8565b03925af19060806118ec611d7c565b929190388080611861565b503461031d57611906366113cf565b61190e611bec565b61191782612c4e565b6119218183612e5c565b825160a0015191939161194e9073ffffffffffffffffffffffffffffffffffffffff16614f47565b614f47565b90611972611949855173ffffffffffffffffffffffffffffffffffffffff90511690565b9461197b612973565b506119aa61198e60409586810190611e9d565b90600060148310611b0757506111886119499261118e926129ab565b916119b491614e95565b805173ffffffffffffffffffffffffffffffffffffffff169073ffffffffffffffffffffffffffffffffffffffff821660018114916080880151978781015191886020820151611a099065ffffffffffff1690565b91015165ffffffffffff16916060015192611a22610418565b9a8b5260208b0152841515898b015265ffffffffffff1660608a015265ffffffffffff16608089015260a088015215159081611afe575b50611a93575061087e92519485947fe0cff05f00000000000000000000000000000000000000000000000000000000865260048601612ae0565b919061087e93611aa284614f47565b611ac9611aad610438565b73ffffffffffffffffffffffffffffffffffffffff909616865256
15b6020850152519586957ffaecb4e400000000000000000000000000000000000000000000000000000000875260048701612a4e565b90501538611a59565b915050614f47565b503461031d5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261031d5773ffffffffffffffffffffffffffffffffffffffff600435611b60816104d8565b16600052600060205260a0604060002065ffffffffffff60018254920154604051926dffffffffffffffffffffffffffff90818116855260ff8160701c161515602086015260781c16604084015263ffffffff8116606084015260201c166080820152f35b60209067ffffffffffffffff8111611bdf575b60051b0190565b611be7610322565b611bd8565b60405190611bf982610352565b604051608083610100830167ffffffffffffffff811184821017611c62575b60405260009283815283602082015283604082015283606082015283838201528360a08201528360c08201528360e082015281528260208201528260408201528260608201520152565b611c6a610322565b611c18565b90611c7982611bc5565b611c8660405191826103c8565b8281527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0611cb48294611bc5565b019060005b828110611cc557505050565b602090611cd0611bec565b82828501015201611cb9565b507f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020918151811015611d21575b60051b010190565b611d29611cdc565b611d19565b9190811015611d6f575b60051b810135907ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffea18136030182121561031d570190565b611d77611cdc565b611d38565b3d15611da7573d90611d8d82610458565b91611d9b60405193846103c8565b82523d6000602084013e565b606090565b73ffffffffffffffffffffffffffffffffffffffff168015611e3f57600080809381935af1611dd9611d7c565b5015611de157565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f41413931206661696c65642073656e6420746f2062656e6566696369617279006044820152fd5b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f4141393020696e76616c69642062656e656669636961727900000000000000006044820152fd5b9035907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18136030182121561031d570180359067ffffffffffffffff821161031d5760200191813603831361031d57565b9081602091031261031d575190565b601f82602094937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0938186528686013760008582860101520116010190565b60005b838110611f4f5750506000910152565b8181015183820152602001611f3f565b907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f602093611f9b81518092818752878088019101611f3c565b0116010190565b90611fbc60809161071996946101c0808652850191611efd565b9360e0815173ffffffffffffffffffffffffffffffffffffffff80825116602087015260208201516040870152604082015160608701526060820151858701528482015160a087015260a08201511660c086015260c081015182860152015161010084015260208101516101208401526040810151610140840152606081015161016084015201516101808201526101a0818403910152611f5f565b506040513d6000823e3d90fd5b507f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b919082039182116120a257565b610416612065565b919082018092116120a257565b905a918160206120d06060830151936060810190611e9d565b906121098560405195869485947f1d73275600000000000000000000000000000000000000000000000000000000865260048601611fa2565b03816000305af1600091816121e4575b506121dd575060206000803e7fdeaddead00000000000000000000000000000000000000000000000000000000600051146121705761216a61215f610719945a90612095565b6080840151906120aa565b916145d7565b6040517f220266b60000000000000000000000000000000000000000000000000000000081528061087e600482016080906000815260406020820152600f60408201527f41413935206f7574206f6620676173000000000000000000000000000000000060608201520190565b9250505090565b61220691925060203d811161220d575b6121fe81836103c8565b810190611eee565b9038612119565b503d6121f4565b909291925a938060206122306060830151946060810190611e9d565b906122698660405195869485947f1d73275600000000000000000000000000000000000000000000000000000000865260048601611fa2565b03816000305af160009181612346575b5061233f575060206000803e7fdeaddead00000000000000000000000000000000000000000000000000000000600051146122d1576122cb6122c061071995965a90612095565b6080830151906120aa565b926148ba565b61087e836040519182917f220266b600000000000000000000000000000000000000000000000000000000835260048301608091815260406020820152600f60408201527f41413935206f7574206f6620676173000000000000000000000000000000000060608201520190565b9450505050565b61235f91925060203d811161220d576121fe81836103c8565b9038612279565b6001907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114612394570190565b61239c612065565b0190565b91908110156123e1575b60051b810135907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa18136030182121561031d570190565b6123e9611cdc565b6123aa565b9035907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18136030182121561031d570180359067ffffffffffffffff821161031d57602001918160051b3603831361031d57565b35610719816104d8565b1561245357565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f4141393620696e76616c69642061676772656761746f720000000000000000006044820152fd5b90357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18236030181121561031d57016020813591019167ffffffffffffffff821161031d57813603831361031d57565b6107199161252c8161251284610510565b73ffffffffffffffffffffffffffffffffffffffff169052565b602082013560208201526125c761257861255d61254c60408601866124b1565b
1610160806040880152860191611efd565b61256a60608601866124b1565b908583036060870152611efd565b6080840135608084015260a084013560a084015260c084013560c084015260e084013560e084015261010080850135908401526101206125ba818601866124b1565b9185840390860152611efd565b916125d861014091828101906124b1565b929091818503910152611efd565b949391929083604087016040885252606086019360608160051b8801019482600090815b8483106126295750505050505084602061071995968503910152611efd565b9091929394977fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa08b820301855288357ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffea1843603018112156126a457600191846126929201612501565b9860209081019695019301919061260a565b8280fd5b908092918237016000815290565b92909361071996959260c0958552602085015265ffffffffffff8092166040850152166060830152151560808201528160a08201520190611f5f565b156126f957565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f4141393220696e7465726e616c2063616c6c206f6e6c790000000000000000006044820152fd5b90604061071992600081528160208201520190611f5f565b604090610719939281528160208201520190611f5f565b909291925a936127973033146126f2565b8151946040860151955a6113886060830151890101116128b7576107199660009580516127de575b505050906127d8915a90036080840151019436916104a1565b91614b22565b61280d9161280991612804855173ffffffffffffffffffffffffffffffffffffffff1690565b615672565b1590565b612819575b80806127bf565b6127d892919450612828615684565b90815161283c575b50506001939091612812565b7f1c4fada7374c0a9ee8841fc38afe82932dc0f8e69012e927f061a8bae611a20173ffffffffffffffffffffffffffffffffffffffff6020870151926128ad602061289b835173ffffffffffffffffffffffffffffffffffffffff1690565b9201519560405193849316968361276f565b0390a33880612830565b7fdeaddead0000000000000000000000000000000000000000000000000000000060005260206000fd5b806128f0610140820182611e9d565b50037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081016040519182016040528082526020820192833751902060405160208101918252306040820152466060820152606081526080810181811067ffffffffffffffff821117612966575b60405251902090565b61296e610322565b61295d565b604051906040820182811067ffffffffffffffff82111761299e575b60405260006020838281520152565b6129a6610322565b61298f565b9060141161031d5790601490565b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000090358181169392601481106129ee57505050565b60140360031b82901b16169150565b9060c060a061071993805184526020810151602085015260408101511515604085015265ffffffffffff80606083015116606086015260808201511660808501520151918160a08201520190611f5f565b9294612aaf61041695612a9d610100959998612a8b612a77602097610140808c528b01906129fd565b9b878a019060208091805184520151910152565b80516060890152602001516080880152565b805160a08701526020015160c0860152565b73ffffffffffffffffffffffffffffffffffffffff81511660e0850152015191019060208091805184520151910152565b612b2961041694612b17612b0260a0959998969960e0865260e08601906129fd565b98602085019060208091805184520151910152565b80516060840152602001516080830152565b019060208091805184520151910152565b9081602091031261031d5751610719816104d8565b916020610719938181520191611efd565b90612b8f73ffffffffffffffffffffffffffffffffffffffff9161071997959694606085526060850191611efd565b941660208201526040818503910152611efd565b60009060033d11612bb057565b905060046000803e60005160e01c90565b600060443d10610719576040517ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc91823d016004833e815167ffffffffffffffff918282113d602484011117612c3d57818401948551938411612c45573d85010160208487010111612c3d5750610719929101602001906103c8565b949350505050565b50949350505050565b612c5b6040820182611e9d565b612c73612c6784612442565b93610120810190611e9d565b9290303b1561031d57600093612cb79160405196879586957f957122ab00000000000000000000000000000000000000000000000000000000875260048701612b60565b0381305afa9081612d40575b50610416576001612cd2612ba3565b6308c379a014612ceb575b612ce357565b610416612058565b612cf3612bc1565b80612cff575b50612cdd565b80516000925015612cf95761087e906040519182917f220266b600000000000000000000000000000000000000000000000000000000835260048301612757565b80610e8a612d4d92610398565b38612cc3565b929190612d5f90612d9b565b909273ffffffffffffffffffffffffffffffffffffffff8080951691160361095e576108f057612d8e90612d9b565b9116610882576107f25750565b8015612dee57612daa90614e3a565b73ffffffffffffffffffffffffffffffffffffffff65ffffffffffff806040840151164211908115612dde575b5091511691565b9050602083015116421038612dd7565b50600090600090565b15612dfe57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f41413934206761732076616c756573206f766572666c6f7700000000000000006044820152fd5b916000915a93815190612e6f828261318e565b612e78816128e1565b6020840152612eb66effffffffffffffffffffffffffffff60808401516060850151176040850151176101008401359060e085013517171115612df7565b612ebf82613250565b612eca818584613311565b9790612ed543600052565b73ffffffffffffffffffffffffffffffffffffffff612f0d60a0606097015173ffffffffffffffffffffffffffffffffffffffff1690565b16612faa575b505a810360a084013510612f3d5760809360c092604087015260608601525a900391013501910152565b6040517f220266b60000000000000000000000000000000000000000000000000000000081528061087e600482016080906000815260406020820152601e60408201527f41413430206f76657220766572696669636174696f6e4761734c696d6974000060608201520190565b90935081612fbb9297508584614037565b95909238612f13565b9290916000925a8251612fd7818461318e565b612fe0836128e1565b602085015261301e6effffffffffffffffffffffffffffff60808301516060840151176040840151176101008601359060e087013517171115612df7565b61302781613250565b6130338186868b61367d565b989061303e43600052565b73ffffffffffffffffffffffffffffffffffffffff61307660a0606096015173ffffffffffffffffffffffffffffffffffffffff1690565b1661310e575b505a840360a0860135106130a85750604085015260608401526080919060c0905a900391013501910152565b604080517f220266b600000000000000000000000000000000000000000000000000000000815260048101929092526024820152601e60448201527f41413430206f76657220766572696669636174696f6e4761734c696d697400006064820152608490fd5b909250816131209298508686856142ca565b9690913861307c565b1561313057565b
160646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f4141393320696e76616c6964207061796d6173746572416e64446174610000006044820152fd5b613200906131b861319e82612442565b73ffffffffffffffffffffffffffffffffffffffff168452565b602081013560208401526080810135604084015260a0810135606084015260c0810135608084015260e081013560c084015261010081013560e0840152610120810190611e9d565b9081156132455761322a61118e6111888460a094613225601461041699981015613129565b6129ab565b73ffffffffffffffffffffffffffffffffffffffff16910152565b505060a06000910152565b60a081015173ffffffffffffffffffffffffffffffffffffffff16156132925760c060035b60ff60408401519116606084015102016080830151019101510290565b60c06001613275565b6132b360409295949395606083526060830190612501565b9460208201520152565b90610416602f60405180947f414132332072657665727465643a20000000000000000000000000000000000060208301526133018151809260208686019101611f3c565b810103600f8101855201836103c8565b916000926000925a936133df6020835193613340855173ffffffffffffffffffffffffffffffffffffffff1690565b956133586133516040830183611e9d565b90846138e8565b60a086015173ffffffffffffffffffffffffffffffffffffffff169061337d43600052565b85809373ffffffffffffffffffffffffffffffffffffffff809416159889613615575b60600151908601516040517f3a871cdd00000000000000000000000000000000000000000000000000000000815297889687958693906004850161329b565b03938a1690f18291816135f5575b506135ec57506001906133fe612ba3565b6308c379a014613598575b5061352b575b61341c575b50505a900391565b6134469073ffffffffffffffffffffffffffffffffffffffff166000526000602052604060002090565b613461610a6482546dffffffffffffffffffffffffffff1690565b8083116134be576134b7926dffffffffffffffffffffffffffff9103166dffffffffffffffffffffffffffff167fffffffffffffffffffffffffffffffffffff0000000000000000000000000000825416179055565b3880613414565b6040517f220266b60000000000000000000000000000000000000000000000000000000081528061087e600482016080906000815260406020820152601760408201527f41413231206469646e2774207061792070726566756e6400000000000000000060608201520190565b6040517f220266b60000000000000000000000000000000000000000000000000000000081528061087e600482016080906000815260406020820152601660408201527f4141323320726576657274656420286f72204f4f47290000000000000000000060608201520190565b6135a0612bc1565b90816135ac5750613409565b61087e916135ba91506132bd565b6040519182917f220266b600000000000000000000000000000000000000000000000000000000835260048301612757565b955061340f9050565b61360e91925060203d811161220d576121fe81836103c8565b90386133ed565b945061365b610a646136478c73ffffffffffffffffffffffffffffffffffffffff166000526000602052604060002090565b546dffffffffffffffffffffffffffff1690565b8b8111156136725750856060835b969150506133a0565b606087918d03613669565b90926000936000935a946136c660208351936136ad855173ffffffffffffffffffffffffffffffffffffffff1690565b956133586136be6040830183611e9d565b90848c613c06565b03938a1690f18291816138c8575b506138bf57506001906136e5612ba3565b6308c379a014613869575b506137fb575b613704575b5050505a900391565b61372e9073ffffffffffffffffffffffffffffffffffffffff166000526000602052604060002090565b9161374a610a6484546dffffffffffffffffffffffffffff1690565b90818311613795575082547fffffffffffffffffffffffffffffffffffff0000000000000000000000000000169190036dffffffffffffffffffffffffffff161790553880806136fb565b604080517f220266b600000000000000000000000000000000000000000000000000000000815260048101929092526024820152601760448201527f41413231206469646e2774207061792070726566756e640000000000000000006064820152608490fd5b61087e846040519182917f220266b600000000000000000000000000000000000000000000000000000000835260048301608091815260406020820152601660408201527f4141323320726576657274656420286f72204f4f47290000000000000000000060608201520190565b613871612bc1565b908161387d57506136f0565b869161388991506132bd565b9061087e6040519283927f220266b60000000000000000000000000000000000000000000000000000000084526004840161276f565b96506136f69050565b6138e191925060203d811161220d576121fe81836103c8565b90386136d4565b9091806138f457505050565b81515173ffffffffffffffffffffffffffffffffffffffff1692833b613b9957606083510151604051907f570e1a3600000000000000000000000000000000000000000000000000000000825260208280613953878760048401612b4f565b0381600073ffffffffffffffffffffffffffffffffffffffff95867f00000000000000000000000000000000000000000000000000000000000000001690f1918215613b8c575b600092613b6c575b50808216958615613aff5716809503613a92573b15613a255761118e6111887fd
151a9c61267aa6196961883ecf5ff2da6619c37dac0fa92122513fb32c032d2d936139ec936129ab565b602083810151935160a001516040805173ffffffffffffffffffffffffffffffffffffffff9485168152939091169183019190915290a3565b6040517f220266b60000000000000000000000000000000000000000000000000000000081528061087e600482016080906000815260406020820152602060408201527f4141313520696e6974436f6465206d757374206372656174652073656e64657260608201520190565b6040517f220266b60000000000000000000000000000000000000000000000000000000081528061087e600482016080906000815260406020820152602060408201527f4141313420696e6974436f6465206d7573742072657475726e2073656e64657260608201520190565b6040517f220266b60000000000000000000000000000000000000000000000000000000081528061087e600482016080906000815260406020820152601b60408201527f4141313320696e6974436f6465206661696c6564206f72204f4f47000000000060608201520190565b613b8591925060203d81116113ac5761139d81836103c8565b90386139a2565b613b94612058565b61399a565b6040517f220266b60000000000000000000000000000000000000000000000000000000081528061087e600482016080906000815260406020820152601f60408201527f414131302073656e64657220616c726561647920636f6e73747275637465640060608201520190565b92909181613c15575b50505050565b82515173ffffffffffffffffffffffffffffffffffffffff1693843b613ebd57606084510151604051907f570e1a3600000000000000000000000000000000000000000000000000000000825260208280613c74888860048401612b4f565b0381600073ffffffffffffffffffffffffffffffffffffffff95867f00000000000000000000000000000000000000000000000000000000000000001690f1918215613eb0575b600092613e90575b50808216968715613e225716809603613db4573b15613d4e575061118e6111887fd51a9c61267aa6196961883ecf5ff2da6619c37dac0fa92122513fb32c032d2d93613d0e936129ab565b602083810151935160a001516040805173ffffffffffffffffffffffffffffffffffffffff9485168152939091169183019190915290a338808080613c0f565b604080517f220266b600000000000000000000000000000000000000000000000000000000815260048101929092526024820152602060448201527f4141313520696e6974436f6465206d757374206372656174652073656e6465726064820152608490fd5b61087e826040519182917f220266b600000000000000000000000000000000000000000000000000000000835260048301608091815260406020820152602060408201527f4141313420696e6974436f6465206d7573742072657475726e2073656e64657260608201520190565b61087e846040519182917f220266b600000000000000000000000000000000000000000000000000000000835260048301608091815260406020820152601b60408201527f4141313320696e6974436f6465206661696c6564206f72204f4f47000000000060608201520190565b613ea991925060203d81116113ac5761139d81836103c8565b9038613cc3565b613eb8612058565b613cbb565b604080517f220266b600000000000000000000000000000000000000000000000000000000815260048101929092526024820152601f60448201527f414131302073656e64657220616c726561647920636f6e7374727563746564006064820152608490fd5b15613f2a57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f4141343120746f6f206c6974746c6520766572696669636174696f6e476173006044820152fd5b919060408382031261031d57825167ffffffffffffffff811161031d5783019080601f8301121561031d57815191613fbf83610458565b91613fcd60405193846103c8565b8383526020848301011161031d57602092613fed91848085019101611f3c565b92015190565b90610416602f60405180947f414133332072657665727465643a20000000000000000000000000000000000060208301526133018151809260208686019101611f3c565b93919260609460009460009380519261407660a08a8601519561405b888811613f23565b015173ffffffffffffffffffffffffffffffffffffffff1690565b916140a18373ffffffffffffffffffffffffffffffffffffffff166000526000602052604060002090565b946140bd610a6487546dffffffffffffffffffffffffffff1690565b9685881061425d5773ffffffffffffffffffffffffffffffffffffffff60208a98946141338a966dffffffffffffffffffffffffffff8b61416c9e03166dffffffffffffffffffffffffffff167fffffffffffffffffffffffffffffffffffff0000000000000000000000000000825416179055565b015194604051998a98899788937ff465c77e0000000000000000000000000000000000000000000000000000000085526004850161329b565b0395169103f1908183918493614237575b5061423057505060019061418f612ba3565b6308c379a01461420e575b506141a157565b6040517f220266b60000000000000000000000000000000000000000000000000000000081528061087e600482016080906000815260406020820152601660408201527f4141333320726576657274656420286f72204f4f47290000000000000000000060608201520190565b614216612bc1565b9081614222575061419a565b61087e916135ba9150613ff3565b9450925050565b90925061425691503d8085833e61424e81836103c8565b810190613f88565b913861417d565b6040517f220266b60000000000000000000000000000000000000000000000000000000081528061087e600482016080906000815260406020820152601e60408201527f41413331207061796d6173746572206465706f73697420746f6f206c6f77000060608201520190565b9194929390936060956000956000938251906142f160a08b8401519361405b848611613f23565b9361431c8573ffffffffffffffffffffffffffffffffffffffff166000526000602052604060002090565b614337610a6482546dffffffffffffffffffffffffffff1690565b878110614492579273ffffffffffffffffffffffffffffffffffffffff60208a989693946141338a966dffffffffffffffffffffffffffff8d6143b19e9c9a03166dffffffffffffffffffffffffffff167fffffffffffffffffffffffffffffffffffff0000000000000000000000000000825416179055565b0395169103f1908183918493614474575b5061446c5750506001906143d4612ba3565b6308c379a01461444d575b506143e75750565b604080517f220266b600000000000000000000000000000000000000000000000000000000815260048101929092526024820152601660448201527f4141333320726576657274656420286f72204f4f4729000000000000000000006064820152608490fd5b614455612bc1565b908161446157506143df565b613889925050613ff3565b955093505050565b90925061448b91503d8085833e61424e81836103c8565b91386143c2565b61087e8a6040519182917f220266b600000000000000000000000000000000000000000000000000000000835260048301608091815260406020820152601e60408201527f41413331207061796d6173746572206465706f73697420746f6f206c6f77000060608201520190565b6003111561450a57565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b92919061455760409160028652606060208701526060860190611f5f565b930152565b93929190600381101561450a57604091614557918652606060208701526060860190611f5f565b90610416603660405180947f4141353020706f73744f702072657665727465643a200000000000000000000060208301526145c78151809260208686019101611f3c565b81010360168101855201836103c8565b929190925a936000918051916145ec83614df3565b9260a0810195614610875173ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff9390848116908161477f57505050614651825173ffffffffffffffffffffffffffffffffffffffff1690565b985b5a90030193840297604084019089825110614712577f49628fd1471006c1482da88028e9ce4dbb080b815c9b0344d39e5a8e6ec1419f9461469d6020928c61470d95510390614fa5565b0151948960206146df6146c4865173ffffffffffffffffffffffffffffffffffffffff1690565b9a5173ffffffffffffffffffffffffffffffffffffffff1690565b9401519785604051968796169a16988590949392606092608083019683521515602083015260408201520152565b0390a4565b6040517f220266b60000000000000000000000000000000000000000000000000000000081528061087e600482016080906000815260406020820152602060408201527f414135312070726566756e642062656c6f772061637475616c476173436f737460608201520190565b9a91805161478f575b5050614653565b6060850151600099509091803b156148b65791899189836147e2956040518097819682957fa9a234090000000000000000000000000000000000000000000000000000000084528c029060048401614539565b0393f190816148a3575b5061489e5760016147fb612ba3565b6308c379a01461487f575b614812575b3880614788565b6040517f220266b60000000000000000000000000000000000000000000000000000000081528061087e600482016080906000815260406020820152601260408201527f4141353020706f73744f7020726576657274000000000000000000000000000060608201520190565b614887612bc1565b806148925750614806565b6135ba61087e91614583565b61480b565b80610e8a6148b092610398565b386147ec565b8980fd5b9392915a906000928051906148ce82614df3565b9360a08301966148f2885173ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff959086811690816149e857505050614933845173ffffffffffffffffffffffffffffffffffffffff1690565b915b5a9003019485029860408301908a82511061498257507f49628fd1471006c1482da88028e9ce4dbb080b815c9b0344d39e5a8e6ec1419f94939261469d61470d938c602094510390614fa5565b604080517f220266b600000000000000000000000000000000000000000000000000000000815260048101929092526024820152602060448201527f414135312070726566756e642062656c6f772061637475616c476173436f73746064820152608490fd5b939180516149f8575b5050614935565b606087015160009a509091803b15614b1e57918a918a83614a4b956040518097819682957fa9a234090000000000000000000000000000000000000000000000000000000084528c029060048401614539565b0393f19081614b0b575b50614b06576001614a64612ba3565b6308c379a014614ae9575b614a7b575b38806149f1565b61087e8b6040519182917f220266b600000000000000000000000000000000000000000000000000000000835260048301608091815260406020820152601260408201527f4141353020706f73744f7020726576657274000000000000000000000000000060608201520190565b614af1612bc1565b80614afc5750614a6f565b6138898d91614583565b614a74565b80610e8a614b1892610398565b38614a55565b8a80fd5b909392915a94805191614b3483614df3565b9260a0810195614b58875173ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff938185169182614c4057505050614b98825173ffffffffffffffffffffffffffffffffffffffff1690565b985b5a90030193840297604084019089825110614712577f49628fd1471006c1482da88028e9ce4dbb080b815c9b0344d39e5a8e6ec1419f94614be46020928c61470d95510390614fa5565b614bed88614500565b015194896020614c146146c4865173ffffffffffffffffffffffffffffffffffffffff1690565b940151604080519182529815602082015297880152606087015290821695909116939081906080820190565b9a918151614c50575b5050614b9a565b878402614c5c8a614500565b60028a14614ce75760608601
151823b1561031d57614caf93600080948d604051978896879586937fa9a234090000000000000000000000000000000000000000000000000000000085526004850161455c565b0393f18015614cda575b614cc7575b505b3880614c49565b80610e8a614cd492610398565b38614cbe565b614ce2612058565b614cb9565b6060860151823b1561031d57614d3293600080948d604051978896879586937fa9a234090000000000000000000000000000000000000000000000000000000085526004850161455c565b0393f19081614de0575b50614ddb576001614d4b612ba3565b6308c379a014614dc8575b15614cc0576040517f220266b60000000000000000000000000000000000000000000000000000000081528061087e600482016080906000815260406020820152601260408201527f4141353020706f73744f7020726576657274000000000000000000000000000060608201520190565b614dd0612bc1565b806148925750614d56565b614cc0565b80610e8a614ded92610398565b38614d3c565b60e060c0820151910151808214614e1757480180821015614e12575090565b905090565b5090565b60405190614e28826103ac565b60006040838281528260208201520152565b614e42614e1b565b5065ffffffffffff808260a01c168015614e8e575b60405192614e64846103ac565b73ffffffffffffffffffffffffffffffffffffffff8116845260d01c602084015216604082015290565b5080614e57565b614eaa614eb091614ea4614e1b565b50614e3a565b91614e3a565b9073ffffffffffffffffffffffffffffffffffffffff9182825116928315614f3c575b65ffffffffffff928391826040816020850151169301511693836040816020840151169201511690808410614f34575b50808511614f2c575b5060405195614f1a876103ac565b16855216602084015216604082015290565b935038614f0c565b925038614f03565b815181169350614ed3565b9073ffffffffffffffffffffffffffffffffffffffff614f65612973565b9216600052600060205263ffffffff600160406000206dffffffffffffffffffffffffffff815460781c1685520154166020830152565b61041633615096565b73ffffffffffffffffffffffffffffffffffffffff16600052600060205260406000206dffffffffffffffffffffffffffff80825416928301809311615089575b80831161502b5761041692166dffffffffffffffffffffffffffff167fffffffffffffffffffffffffffffffffffff0000000000000000000000000000825416179055565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f6465706f736974206f766572666c6f77000000000000000000000000000000006044820152fd5b615091612065565b614fe6565b73ffffffffffffffffffffffffffffffffffffffff906150b63482614fa5565b168060005260006020527f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c460206dffffffffffffffffffffffffffff60406000205416604051908152a2565b1561510957565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f6d757374207370656369667920756e7374616b652064656c61790000000000006044820152fd5b1561516e57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f63616e6e6f7420646563726561736520756e7374616b652074696d65000000006044820152fd5b156151d357565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f6e6f207374616b652073706563696669656400000000000000000000000000006044820152fd5b1561523857565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f7374616b65206f766572666c6f770000000000000000000000000000000000006044820152fd5b9065ffffffffffff60806001610416946152f66dffffffffffffffffffffffffffff86511682906dffffffffffffffffffffffffffff167fffffffffffffffffffffffffffffffffffff0000000000000000000000000000825416179055565b602085015115156eff000000000000000000000000000082549160701b16807fffffffffffffffffffffffffffffffffff00ffffffffffffffffffffffffffff83161783557fffffff000000000000000000000000000000ffffffffffffffffffffffffffff7cffffffffffffffffffffffffffff000000000000000000000000000000604089015160781b16921617178155019263ffffffff6060820151167fffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000008554161784550151167fffffffffffffffffffffffffffffffffffffffffffff000000000000ffffffff69ffffffffffff0000000083549260201b169116179055565b1561540157565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f616c726561647920756e7374
1616b696e670000000000000000000000000000006044820152fd5b91909165ffffffffffff808094169116019182116120a257565b1561548057565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f4e6f207374616b6520746f2077697468647261770000000000000000000000006044820152fd5b156154e557565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f6d7573742063616c6c20756e6c6f636b5374616b6528292066697273740000006044820152fd5b1561554a57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f5374616b65207769746864726177616c206973206e6f742064756500000000006044820152fd5b156155af57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f6661696c656420746f207769746864726177207374616b6500000000000000006044820152fd5b1561561457565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f6661696c656420746f20776974686472617700000000000000000000000000006044820152fd5b9060009283809360208451940192f190565b3d6108008082116156ab575b50604051906020818301016040528082526000602083013e90565b90503861569056fea2646970667358221220ae4a26a2417d41eec912cee72664fcf55e9abebe95b0def4d185ac695cb88b5564736f6c634300081100336080806040523461001657610210908161001c8239f35b600080fdfe6080604052600436101561001257600080fd5b6000803560e01c63570e1a361461002857600080fd5b346100c95760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100c95760043567ffffffffffffffff918282116100c957366023830112156100c95781600401359283116100c95736602484840101116100c9576100c561009e84602485016100fc565b60405173ffffffffffffffffffffffffffffffffffffffff90911681529081906020820190565b0390f35b80fd5b507f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b90806014116101bb5767ffffffffffffffff917fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec82018381116101cd575b604051937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0603f81600b8701160116850190858210908211176101c0575b604052808452602084019036848401116101bb576020946000600c819682946014880187378301015251923560601c5af19060005191156101b557565b60009150565b600080fd5b6101c86100cc565b610178565b6101d56100cc565b61013a56fea26469706673582212201927e80b76ab9b71c952137dd676621a9fdf520c25928815636594036eb1c40364736f6c63430008110033",l=function(e){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=this;return n.length>1?e.apply(this,n)||this:e.call(this,s,f,n[0])||this}return a(n,e),n.prototype.deploy=function(n){return e.prototype.deploy.call(this,n||{})},n.prototype.getDeployTransaction=function(n){return e.prototype.getDeployTransaction.call(this,n||{})},n.prototype.attach=function(n){return e.prototype.attach.call(this,n)},n.prototype.connect=function(n){return e.prototype.connect.call(this,n)},n.createInterface=function(){return new o.utils.Interface(s)},n.connect=function(e,n){return new o.Contract(e,s,n)},n.bytecode=f,n.abi=s,n}(o.ContractFactory);n.EntryPoint__factory=l},51426:function(e,n,r){"use strict";n.__esModule=!0,n.IAccount__factory=void 0;var i=r(86623),a=[{inputs:[{components:[{internalType:"address",name:"sender",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"bytes",name:"initCode",type:"bytes"},{internalType:"bytes",name:"callData",type:"bytes"},{internalType:"uint256",name:"callGasLimit",type:"uint256"},{internalType:"uint256",name:"verificationGasLimit",type:"uint256"},{internalType:"uint256",name:"preVerificationGas",type:"uint256"},{internalType:"uint256",name:"maxFeePerGas",type:"uint256"},{internalType:"uint256",name:"maxPriorityFeePerGas",type:"uint256"},{internalType:"bytes",name:"paymasterAndData",type:"bytes"},{internalType:"bytes",name:"signature",type:"bytes"}],internalType:"struct UserOperation",name:"userOp",type:"tuple"},{internalType:"bytes32",name:"userOpHash",type:"bytes32"},{internalType:"uint256",name:"missingAccountFunds",type:"uint256"}],name:"validateUserOp",outputs:[{internalType:"uint256",name:"validationData",type:"uint256"}],stateMutability:"nonpayable",type:"function"}],o=function(){function e(){}return e.createInterface=function(){return new i.utils.Interface(a)},e.connect=function(e,n){return new i.Contract(e,a,n)},e.abi=a,e}();n.IAccount__factory=o},42942:function(e,n,r){"use strict";n.__esModule=!0,n.IAggregator__factory=void 0;var i=r(86623),a=[{inputs:[{components:[{internalType:"address",name:"sender",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"bytes",name:"initCode",type:"bytes"},{internalType:"bytes",name:"callData",type:"bytes"},{internalType:"uint256",name:"callGasLimit",type:"uint256"},{internalType:"uint256",name:"verificationGasLimit",type:"uint256"},{internalType:"uint256",name:"preVerificationGas",type:"uint256"},{internalType:"uint256",name:"maxFeePerGas",type:"uint256"},{internalType:"uint256",name:"maxPriorityFeePerGas",type:"uint256"},{internalType:"bytes",name:"paymasterAndData",type:"bytes"},{internalType:"bytes",name:"signature",type:"bytes"}],internalType:"struct UserOperation[]",name:"userOps",type:"tuple[]"}],name:"aggregateSignatures",outputs:[{internalType:"bytes",name:"aggregatedSignature",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"sender",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"bytes",name:"initCode",type:"bytes"},{internalType:"bytes",name:"callData",type:"bytes"},{internalType:"uint256",name:"callGasLimit",type:"uint256"},{internalType:"uint256",name:"verificationGasLimit",type:"uint256"},{internalType:"uint256",name:"preVerificationGas",type:"uint256"},{internalType:"uint256",name:"maxFeePerGas",type:"uint256"},{internalType:"uint256",name:"maxPriorityFeePerGas",type:"uint256"},{internalType:"bytes",name:"paymasterAndData",type:"bytes"},{internalType:"bytes",name:"signature",type:"bytes"}],internalType:"struct UserOperation[]",name:"userOps",type:"tuple[]"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"validateSignatures",outputs:[],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"sender",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"bytes",name:"initCode",type:"bytes"},{internalType:"bytes",name:"callData",type:"bytes"},{internalType:"uint256",name:"callGasLimit",type:"uint256"},{internalType:"uint256",name:"verificationGasLimit",type:"uint256"},{internalType:"uint256",name:"preVerificationGas",type:"uint256"},{internalType:"uint256",name:"maxFeePerGas",type:"uint256"},{internalType:"uint256",name:"maxPriorityFeePerGas",type:"uint256"},{internalType:"bytes",name:"paymasterAndData",type:"bytes"},{internalType:"bytes",name:"signature",type:"bytes"}],internalType:"struct UserOperation",name:"userOp",type:"tuple"}],name:"validateUserOpSignature",outputs:[{internalType:"bytes",name:"sigForUserOp",type:"bytes"}],stateMutability:"view",type:"function"}],o=function(){function e(){}return e.createInterface=function(){return new i.utils.Interface(a)},e.connect=function(e,n){return new i.Contract(e,a,n)},e.abi=a,e}();n.IAggregator__factory=o},71817:function(e,n,r){"use strict";n.__esModule=!0,n.IEntryPoint__factory=void 0;var i=r(86623),a=[{inputs:[{internalType:"uint256",name:"preOpGas",type:"uint256"},{internalType:"uint256",name:"paid",type:"uint256"},{internalType:"uint48",name:"validAfter",type:"uint48"},{internalType:"uint48",name:"validUntil",type:"uint48"},{internalType:"bool",name:"targetSuccess",type:"bool"},{internalType:"bytes",name:"targetResult",type:"bytes"}],name:"ExecutionResult",type:"error"},{inputs:[{internalType:"uint256",name:"opIndex",type:"uint256"},{internalType:"string",name:"reason",type:"string"}],name:"FailedOp",type:"error"},{inputs:[{internalType:"address",name:"sender",type:"address"}],name:"SenderAddressResult",type:"error"},{inputs:[{internalType:"address",name:"aggregator",type:"address"}],name:"SignatureValidationFailed",type:"error"},{inputs:[{components:[{internalType:"uint256",name:"preOpGas",type:"uint256"},{internalType:"uint256",name:"prefund",type:"uint256"},{internalType:"bool",name:"sigFailed",type:"bool"},{internalType:"uint48",name:"validAfter",type:"uint48"},{internalType:"uint48",name:"validUntil",type:"uint48"},{internalType:"bytes",name:"paymasterContext",type:"bytes"}],internalType:"struct IEntryPoint.ReturnInfo",name:"returnInfo",type:"tuple"},{components:[{internalType:"uint256",name:"stake",type:"uint256"},{internalType:"uint256",name:"unstakeDelaySec",type:"uint256"}],internalType:"struct IStakeManager.StakeInfo",name:"senderInfo",type:"tuple"},{components:[{internalType:"uint256",name:"stake",type:"uint256"},{internalType:"uint256",name:"unstakeDelaySec",type:"uint256"}],internalType:"struct IStakeManager.StakeInfo",name:"factoryInfo",type:"tuple"},{components:[{internalType:"uint256",name:"stake",type:"uint256"},{internalType:"uint256",name:"unstakeDelaySec",type:"uint256"}],internalType:"struct IStakeManager.StakeInfo",name:"paymasterInfo",type:"tuple"}],name:"ValidationResult",type:"error"},{inputs:[{components:[{internalType:"uint256",name:"preOpGas",type:"uint256"},{internalType:"uint256",name:"prefund",type:"uint256"},{internalType:"bool",name:"sigFailed",type:"bool"},{internalType:"uint48",name:"validAfter",type:"uint48"},{internalType:"uint48",name:"validUntil",type:"uint48"},{internalType:"bytes",name:"paymasterContext",type:"bytes"}],internalType:"struct IEntryPoint.ReturnInfo",name:"returnInfo",type:"tuple"},{components:[{internalType:"uint256",name:"stake",type:"uint256"},{internalType:"uint256",name:"unstakeDelaySec",type:"uint256"}],internalType:"struct IStakeManager.StakeInfo",name:"senderInfo",type:"tuple"},{components:[{internalType:"uint256",name:"stake",type:"uint256"},{internalType:"uint256",name:"unstakeDelaySec",type:"uint256"}],internalType:"struct IStakeManager.StakeInfo",name:"factoryInfo",type:"tuple"},{components:[{internalType:"uint256",name:"stake",type:"uint256"},{internalType:"uint256",name:"unstakeDelaySec",type:"uint256"}],internalType:"struct IStakeManager.StakeInfo",name:"paymasterInfo",type:"tuple"},{components:[{internalType:"address",name:"aggregator",type:"address"},{components:[{internalType:"uint256",name:"stake",type:"uint256"},{internalType:"uint256",name:"unstakeDelaySec",type:"uint256"}],internalType:"struct IStakeManager.StakeInfo",name:"stakeInfo",type:"tuple"}],internalType:"struct IEntryPoint.AggregatorStakeInfo",name:"aggregatorInfo",type:"tuple"}],name:"ValidationResultWithAggregation",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"userOpHash",type:"bytes32"},{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"address",name:"factory",type:"address"},{indexed:!1,internalType:"address",name:"paymaster",type:"address"}],name:"AccountDeployed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!1,internalType:"uint256",name:"totalDeposit",type:"uint256"}],name:"Deposited",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"aggregator",type:"address"}],name:"SignatureAggregatorChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!1,internalType:"uint256",name:"totalStaked",type:"uint256"},{indexed:!1,internalType:"uint256",name:"unstakeDelaySec",type:"uint256"}],name:"StakeLocked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!1,internalType:"uint256",name:"withdrawTime",type:"uint256"}],name:"StakeUnlocked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!1,internalType:"address",name:"withdrawAddress",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"StakeWithdrawn",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"userOpHash",type:"bytes32"},{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"paymaster",type:"address"},{indexed:!1,internalType:"uint256",name:"nonce",type:"uint256"},{indexed:!1,internalType:"bool",name:"success",type:"bool"},{indexed:!1,internalType:"uint256",name:"actualGasCost",type:"uint256"},{indexed:!1,internalType:"uint256",name:"actualGasUsed",type:"uint256"}],name:"UserOperationEvent",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"userOpHash",type:"bytes32"},{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint256",name:"nonce",type:"uint256"},{indexed:!1,internalType:"bytes",name:"revertReason",type:"bytes"}],name:"UserOperationRevertReason",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!1,internalType:"address",name:"withdrawAddress",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"Withdrawn",type:"event"},{inputs:[{internalType:"uint32",name:"_unstakeDelaySec",type:"uint32"}],name:"addStake",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"depositTo",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"getDepositInfo",outputs:[{components:[{internalType:"uint112",name:"deposit",type:"uint112"},{internalType:"bool",name:"staked",type:"bool"},{internalType:"uint112",name:"stake",type:"uint112"},{internalType:"uint32",name:"unstakeDelaySec",type:"uint32"},{internalType:"uint48",name:"withdrawTime",type:"uint48"}],internalType:"struct IStakeManager.DepositInfo",name:"info",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"initCode",type:"bytes"}],name:"getSenderAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"sender",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"bytes",name:"initCode",type:"bytes"},{internalType:"bytes",name:"callData",type:"bytes"},{internalType:"uint256",name:"callGasLimit",type:"uint256"},{internalType:"uint256",name:"verificationGasLimit",type:"uint256"},{internalType:"uint256",name:"preVerificationGas",type:"uint256"},{internalType:"uint256",name:"maxFeePerGas",type:"uint256"},{internalType:"uint256",name:"maxPriorityFeePerGas",type:"uint256"},{internalType:"bytes",name:"paymasterAndData",type:"bytes"},{internalType:"bytes",name:"signature",type:"bytes"}],internalType:"struct UserOperation",name:"userOp",type:"tuple"}],name:"getUserOpHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{components:[{components:[{internalType:"address",name:"sender",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"bytes",name:"initCode",type:"bytes"},{internalType:"bytes",name:"callData",type:"bytes"},{internalType:"uint256",name:"callGasLimit",type:"uint256"},{internalType:"uint256",name:"verificationGasLimit",type:"uint256"},{internalType:"uint256",name:"preVerificationGas",type:"uint256"},{internalType:"uint256",name:"maxFeePerGas",type:"uint256"},{internalType:"uint256",name:"maxPriorityFeePerGas",type:"uint256"},{internalType:"bytes",name:"paymasterAndData",type:"bytes"},{internalType:"bytes",name:"signature",type:"bytes"}],internalType:"struct UserOperation[]",name:"userOps",type:"tuple[]"},{internalType:"contract IAggregator",name:"aggregator",type:"address"},{internalType:"bytes",name:"signature",type:"bytes"}],internalType:"struct IEntryPoint.UserOpsPerAggregator[]",name:"opsPerAggregator",type:"tuple[]"},{internalType:"address payable",name:"beneficiary",type:"address"}],name:"handleAggregatedOps",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{i
1nternalType:"address",name:"sender",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"bytes",name:"initCode",type:"bytes"},{internalType:"bytes",name:"callData",type:"bytes"},{internalType:"uint256",name:"callGasLimit",type:"uint256"},{internalType:"uint256",name:"verificationGasLimit",type:"uint256"},{internalType:"uint256",name:"preVerificationGas",type:"uint256"},{internalType:"uint256",name:"maxFeePerGas",type:"uint256"},{internalType:"uint256",name:"maxPriorityFeePerGas",type:"uint256"},{internalType:"bytes",name:"paymasterAndData",type:"bytes"},{internalType:"bytes",name:"signature",type:"bytes"}],internalType:"struct UserOperation[]",name:"ops",type:"tuple[]"},{internalType:"address payable",name:"beneficiary",type:"address"}],name:"handleOps",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"sender",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"bytes",name:"initCode",type:"bytes"},{internalType:"bytes",name:"callData",type:"bytes"},{internalType:"uint256",name:"callGasLimit",type:"uint256"},{internalType:"uint256",name:"verificationGasLimit",type:"uint256"},{internalType:"uint256",name:"preVerificationGas",type:"uint256"},{internalType:"uint256",name:"maxFeePerGas",type:"uint256"},{internalType:"uint256",name:"maxPriorityFeePerGas",type:"uint256"},{internalType:"bytes",name:"paymasterAndData",type:"bytes"},{internalType:"bytes",name:"signature",type:"bytes"}],internalType:"struct UserOperation",name:"op",type:"tuple"},{internalType:"address",name:"target",type:"address"},{internalType:"bytes",name:"targetCallData",type:"bytes"}],name:"simulateHandleOp",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"sender",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"bytes",name:"initCode",type:"bytes"},{internalType:"bytes",name:"callData",type:"bytes"},{internalType:"uint256",name:"callGasLimit",type:"uint256"},{internalType:"uint256",name:"verificationGasLimit",type:"uint256"},{internalType:"uint256",name:"preVerificationGas",type:"uint256"},{internalType:"uint256",name:"maxFeePerGas",type:"uint256"},{internalType:"uint256",name:"maxPriorityFeePerGas",type:"uint256"},{internalType:"bytes",name:"paymasterAndData",type:"bytes"},{internalType:"bytes",name:"signature",type:"bytes"}],internalType:"struct UserOperation",name:"userOp",type:"tuple"}],name:"simulateValidation",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unlockStake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address payable",name:"withdrawAddress",type:"address"}],name:"withdrawStake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address payable",name:"withdrawAddress",type:"address"},{internalType:"uint256",name:"withdrawAmount",type:"uint256"}],name:"withdrawTo",outputs:[],stateMutability:"nonpayable",type:"function"}],o=function(){function e(){}return e.createInterface=function(){return new i.utils.Interface(a)},e.connect=function(e,n){return new i.Contract(e,a,n)},e.abi=a,e}();n.IEntryPoint__factory=o},45721:function(e,n,r){"use strict";n.__esModule=!0,n.IPaymaster__factory=void 0;var i=r(86623),a=[{inputs:[{internalType:"enum IPaymaster.PostOpMode",name:"mode",type:"uint8"},{internalType:"bytes",name:"context",type:"bytes"},{internalType:"uint256",name:"actualGasCost",type:"uint256"}],name:"postOp",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"sender",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"bytes",name:"initCode",type:"bytes"},{internalType:"bytes",name:"callData",type:"bytes"},{internalType:"uint256",name:"callGasLimit",type:"uint256"},{internalType:"uint256",name:"verificationGasLimit",type:"uint256"},{internalType:"uint256",name:"preVerificationGas",type:"uint256"},{internalType:"uint256",name:"maxFeePerGas",type:"uint256"},{internalType:"uint256",name:"maxPriorityFeePerGas",type:"uint256"},{internalType:"bytes",name:"paymasterAndData",type:"bytes"},{internalType:"bytes",name:"signature",type:"bytes"}],internalType:"struct UserOperation",name:"userOp",type:"tuple"},{internalType:"bytes32",name:"userOpHash",type:"bytes32"},{internalType:"uint256",name:"maxCost",type:"uint256"}],name:"validatePaymasterUserOp",outputs:[{internalType:"bytes",name:"context",type:"bytes"},{internalType:"uint256",name:"validationData",type:"uint256"}],stateMutability:"nonpayable",type:"function"}],o=function(){function e(){}return e.createInterface=function(){return new i.utils.Interface(a)},e.connect=function(e,n){return new i.Contract(e,a,n)},e.abi=a,e}();n.IPaymaster__factory=o},37343:function(e,n,r){"use strict";n.__esModule=!0,n.IStakeManager__factory=void 0;var i=r(86623),a=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!1,internalType:"uint256",name:"totalDeposit",type:"uint256"}],name:"Deposited",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!1,internalType:"uint256",name:"totalStaked",type:"uint256"},{indexed:!1,internalType:"uint256",name:"unstakeDelaySec",type:"uint256"}],name:"StakeLocked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!1,internalType:"uint256",name:"withdrawTime",type:"uint256"}],name:"StakeUnlocked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!1,internalType:"address",name:"withdrawAddress",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"StakeWithdrawn",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!1,internalType:"address",name:"withdrawAddress",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"Withdrawn",type:"event"},{inputs:[{internalType:"uint32",name:"_unstakeDelaySec",type:"uint32"}],name:"addStake",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"depositTo",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"getDepositInfo",outputs:[{components:[{internalType:"uint112",name:"deposit",type:"uint112"},{internalType:"bool",name:"staked",type:"bool"},{internalType:"uint112",name:"stake",type:"uint112"},{internalType:"uint32",name:"unstakeDelaySec",type:"uint32"},{internalType:"uint48",name:"withdrawTime",type:"uint48"}],internalType:"struct IStakeManager.DepositInfo",name:"info",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[],name:"unlockStake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address payable",name:"withdrawAddress",type:"address"}],name:"withdrawStake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address payable",name:"withdrawAddress",type:"address"},{internalType:"uint256",name:"withdrawAmount",type:"uint256"}],name:"withdrawTo",outputs:[],stateMutability:"nonpayable",type:"function"}],o=function(){function e(){}return e.createInterface=function(){return new i.utils.Interface(a)},e.connect=function(e,n){return new i.Contract(e,a,n)},e.abi=a,e}();n.IStakeManager__factory=o},47217:function(e,n,r){"use strict";
1var i,a=this&&this.__extends||(i=function(e,n){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}i(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)});n.__esModule=!0,n.MaliciousAccount__factory=void 0;var o=r(86623),s=[{inputs:[{internalType:"contract IEntryPoint",name:"_ep",type:"address"}],stateMutability:"payable",type:"constructor"},{inputs:[{components:[{internalType:"address",name:"sender",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"bytes",name:"initCode",type:"bytes"},{internalType:"bytes",name:"callData",type:"bytes"},{internalType:"uint256",name:"callGasLimit",type:"uint256"},{internalType:"uint256",name:"verificationGasLimit",type:"uint256"},{internalType:"uint256",name:"preVerificationGas",type:"uint256"},{internalType:"uint256",name:"maxFeePerGas",type:"uint256"},{internalType:"uint256",name:"maxPriorityFeePerGas",type:"uint256"},{internalType:"bytes",name:"paymasterAndData",type:"bytes"},{internalType:"bytes",name:"signature",type:"bytes"}],internalType:"struct UserOperation",name:"userOp",type:"tuple"},{internalType:"bytes32",name:"",type:"bytes32"},{internalType:"uint256",name:"missingAccountFunds",type:"uint256"}],name:"validateUserOp",outputs:[{internalType:"uint256",name:"validationData",type:"uint256"}],stateMutability:"nonpayable",type:"function"}],f="0x608060405260405161034a38038061034a83398101604081905261002291610047565b600080546001600160a01b0319166001600160a01b0392909216919091179055610077565b60006020828403121561005957600080fd5b81516001600160a01b038116811461007057600080fd5b9392505050565b6102c4806100866000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c80633a871cdd14610030575b600080fd5b61004361003e3660046101a1565b610055565b60405190815260200160405180910390f35b600080546040517fb760faf900000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff9091169063b760faf99084906024016000604051808303818588803b1580156100c257600080fd5b505af11580156100d6573d6000803e3d6000fd5b505050505060008460c001358560a0013586608001356100f69190610224565b6101009190610224565b9050600061010e828561023c565b9050600061012161010088013583610277565b905086602001358114610194576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f5265766572742061667465722066697273742076616c69646174696f6e000000604482015260640160405180910390fd5b5060009695505050505050565b60008060006060848
160312156101b657600080fd5b833567ffffffffffffffff8111156101cd57600080fd5b840161016081870312156101e057600080fd5b95602085013595506040909401359392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008219821115610237576102376101f5565b500190565b600082610272577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b600082821015610289576102896101f5565b50039056fea2646970667358221220233c1b53bed3630405955a2809bf977fcd3053b67e56cf39bd460d18cc03844c64736f6c634300080f0033",l=function(e){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=this;return n.length>1?e.apply(this,n)||this:e.call(this,s,f,n[0])||this}return a(n,e),n.prototype.deploy=function(n,r){return e.prototype.deploy.call(this,n,r||{})},n.prototype.getDeployTransaction=function(n,r){return e.prototype.getDeployTransaction.call(this,n,r||{})},n.prototype.attach=function(n){return e.prototype.attach.call(this,n)},n.prototype.connect=function(n){return e.prototype.connect.call(this,n)},n.createInterface=function(){return new o.utils.Interface(s)},n.connect=function(e,n){return new o.Contract(e,s,n)},n.bytecode=f,n.abi=s,n}(o.ContractFactory);n.MaliciousAccount__factory=l},75654:function(e,n,r){"use strict";var i,a=this&&this.__extends||(i=function(e,n){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}i(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)});n.__esModule=!0,n.SenderCreator__factory=void 0;var o=r(86623),s=[{inputs:[{internalType:"bytes",name:"initCode",type:"bytes"}],name:"createSender",outputs:[{internalType:"address",name:"sender",type:"address"}],stateMutability:"nonpayable",type:"function"}],f="0x608060405234801561001057600080fd5b50610213806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063570e1a3614610030575b600080fd5b61004361003e3660046100f9565b61006c565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b60008061007c601482858761016b565b61008591610195565b60601c90506000610099846014818861016b565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092018290525084519495509360209350849250905082850182875af190506000519350806100f057600093505b50505092915050565b6000806020838503121561010c57600080fd5b823567ffffffffffffffff8082111561012457600080fd5b818501915085601f83011261013857600080fd5b81358181111561014757600080fd5b86602082850101111561015957600080fd5b60209290920196919550909350505050565b6000808585111561017b57600080fd5b8386111561018857600080fd5b5050820193919092039150565b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000081358181169160148510156101d55780818660140360031b1b83161692505b50509291505056fea2646970667358221220d5d7cb55b3123d86b2710028be2074a469cca162ad2a26c50fb1cfdce4424b9464736f6c634300080f0033",l=function(e){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=this;return n.length>1?e.apply(this,n)||this:e.call(this,s,f,n[0])||this}return a(n,e),n.prototype.deploy=function(n){return e.prototype.deploy.call(this,n||{})},n.prototype.getDeployTransaction=function(n){return e.prototype.getDeployTransaction.call(this,n||{})},n.prototype.attach=function(n){return e.prototype.attach.call(this,n)},n.prototype.connect=function(n){return e.prototype.connect.call(this,n)},n.createInterface=function(){return new o.utils.Interface(s)},n.connect=function(e,n){return new o.Contract(e,s,n)},n.bytecode=f,n.abi=s,n}(o.ContractFactory);n.SenderCreator__factory=l},61094:function(e,n,r){"use strict";var i,a=this&&this.__extends||(i=function(e,n){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}i(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)});n.__esModule=!0,n.SimpleAccountFactory__factory=void 0;var o=r(86623),s=[{inputs:[{internalType:"contract IEntryPoint",name:"_entryPoint",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"accountImplementation",outputs:[{internalType:"contract SimpleAccount",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"salt",type:"uint256"}],name:"createAccount",outputs:[{internalType:"contract SimpleAccount",name:"ret",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"salt",type:"uint256"}],name:"getAddress",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"}],f="0x60a060405234801561001057600080fd5b50604051612f0f380380612f0f83398101604081905261002f91610088565b8060405161003c9061007b565b6001600160a01b039091168152602001604051809103906000f080158015610068573d6000803e3d6000fd5b506001600160a01b0316608052506100b8565b61218980610d8683390190565b60006020828403121561009a57600080fd5b81516001600160a01b03811681146100b157600080fd5b9392505050565b608051610ca66100e060003960008181604b0152818161011401526102580152610ca66000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c806311464fbe146100465780635fbfb9cf146100965780638cb84e18146100a9575b600080fd5b61006d7f000000000000000000000000000000000000000000000000000000000000000081565b
160405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b61006d6100a436600461039d565b6100bc565b61006d6100b736600461039d565b6101ee565b6000806100c984846101ee565b905073ffffffffffffffffffffffffffffffffffffffff81163b80156100f1575090506101e8565b60405173ffffffffffffffffffffffffffffffffffffffff8616602482015284907f000000000000000000000000000000000000000000000000000000000000000090604401604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fc4d66de800000000000000000000000000000000000000000000000000000000179052516101b790610390565b6101c2929190610412565b8190604051809103906000f59050801580156101e2573d6000803e3d6000fd5b50925050505b92915050565b60006103578260001b6040518060200161020790610390565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe082820381018352601f90910116604081905273ffffffffffffffffffffffffffffffffffffffff871660248201527f000000000000000000000000000000000000000000000000000000000000000090604401604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152918152602080830180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fc4d66de800000000000000000000000000000000000000000000000000000000179052905161030093929101610412565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529082905261033c9291602001610480565b6040516020818303038152906040528051906020012061035e565b9392505050565b60006103578383306000604051836040820152846020820152828152600b8101905060ff815360559020949350505050565b6107c1806104b083390190565b600080604083850312156103b057600080fd5b823573ffffffffffffffffffffffffffffffffffffffff811681146103d457600080fd5b946020939093013593505050565b60005b838110156103fd5781810151838201526020016103e5565b8381111561040c576000848401525b50505050565b73ffffffffffffffffffffffffffffffffffffffff83168152604060208201526000825180604084015261044d8160608501602087016103e2565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016060019392505050565b600083516104928184602088016103e2565b8351908301906104a68183602088016103e2565b0194935050505056fe60806040526040516107c13803806107c183398101604081905261002291610321565b61002e82826000610035565b505061043e565b61003e8361006b565b60008251118061004b5750805b156100665761006483836100ab60201b6100291760201c565b505b505050565b610074816100d7565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606100d0838360405180606001604052806027815260200161079a602791396101a9565b9392505050565b6100ea8161022260201b6100551760201c565b6101515760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084015b60405180910390fd5b806101887f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b61023160201b6100711760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b6060600080856001600160a01b0316856040516101c691906103ef565b600060405180830381855af49150503d8060008114610201576040519150601f19603f3d011682016040523d82523d6000602084013e610206565b606091505b50909250905061021886838387610234565b9695505050505050565b6001600160a01b03163b151590565b90565b606083156102a357825160000361029c576001600160a01b0385163b61029c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610148565b50816102ad565b6102ad83836102b5565b949350505050565b8151156102c55781518083602001fd5b8060405162461bcd60e51b8152600401610148919061040b565b634e487b7160e01b600052604160045260246000fd5b60005b838110156103105781810151838201526020016102f8565b838111156100645750506000910152565b6000806040838503121561033457600080fd5b82516001600160a01b038116811461034b57600080fd5b60208401519092506001600160401b038082111561036857600080fd5b818501915085601f83011261037c57600080fd5b81518181111561038e5761038e6102df565b604051601f8201601f19908116603f011681019083821181831017156103b6576103b66102df565b816040528281528860208487010111156103cf57600080fd5b6103e08360208301602088016102f5565b80955050505050509250929050565b600082516104018184602087016102f5565b9190910192915050565b602081526000825180602084015261042a8160408501602087016102f5565b601f01601f19169190910160400192915050565b61034d8061044d6000396000f3fe60806040523661001357610011610017565b005b6100115b610027610022610074565b6100b9565b565b606061004e83836040518060600160405280602781526020016102f1602791396100dd565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b90565b60006100b47f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b905090565b3660008037600080366000845af43d6000803e8080156100d8573d6000f35b3d6000fd5b60606000808573ffffffffffffffffffffffffffffffffffffffff16856040516101079190610283565b600060405180830381855af49150503d8060008114610142576040519150601f19603f3d011682016040523d82523d6000602084013e610147565b606091505b509150915061015886838387610162565b9695505050505050565b606083156101fd5782516000036101f65773ffffffffffffffffffffffffffffffffffffffff85163b6101f6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064015b60405180910390fd5b5081610207565b610207838361020f565b949350505050565b81511561021f5781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101ed919061029f565b60005b8381101561026e578181015183820152602001610256565b8381111561027d576000848401525b50505050565b60008251610295818460208701610253565b9190910192915050565b60208152600082518060208401526102be816040850160208701610253565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212201cd78ab6a31213989661cff2d7d05fc9b9c38b1a848e8249e2e398659a9eb7e364736f6c634300080f0033416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a264697066735822122030a4cd3aed4a6d9ec37ebc1d87061b12ed9906b5ba9c82d2d00395cabba20fbd64736f6c634300080f003360c0604052306080523480156200001557600080fd5b506040516200218938038062002189833981016040819052620000389162000118565b6001600160a01b03811660a0526200004f62000056565b506200014a565b600054610100900460ff1615620000c35760405162461bcd60e51b8152
160206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff908116101562000116576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b6000602082840312156200012b57600080fd5b81516001600160a01b03811681146200014357600080fd5b9392505050565b60805160a051611fd3620001b66000396000818161023b01528181610624015281816106cb01528181610aad01528181610d0c0152818161106801526113fc0152600081816103ef0152818161049f0152818161078f0152818161083f01526109880152611fd36000f3fe6080604052600436106100d65760003560e01c806352d1902d1161007f578063b0d691fe11610059578063b0d691fe1461022c578063b61d27f61461025f578063c399ec881461027f578063c4d66de81461029457600080fd5b806352d1902d146101925780638da5cb5b146101a7578063affed0e01461020957600080fd5b80634a58db19116100b05780634a58db19146101575780634d44560d1461015f5780634f1ef2861461017f57600080fd5b806318dfb3c7146100e25780633659cfe6146101045780633a871cdd1461012457600080fd5b366100dd57005b600080fd5b3480156100ee57600080fd5b506101026100fd366004611aaa565b6102b4565b005b34801561011057600080fd5b5061010261011f366004611b38565b6103d8565b34801561013057600080fd5b5061014461013f366004611b55565b6105dd565b6040519081526020015b60405180910390f35b610102610622565b34801561016b57600080fd5b5061010261017a366004611ba9565b6106c1565b61010261018d366004611c04565b610778565b34801561019e57600080fd5b5061014461096e565b3480156101b357600080fd5b506001546101e4906c01000000000000000000000000900473ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161014e565b34801561021557600080fd5b506001546bffffffffffffffffffffffff16610144565b34801561023857600080fd5b507f00000000000000000000000000000000000000000000000000000000000000006101e4565b34801561026b57600080fd5b5061010261027a366004611ce6565b610a5a565b34801561028b57600080fd5b50610144610aa9565b3480156102a057600080fd5b506101026102af366004611b38565b610b61565b6102bc610cf4565b82811461032a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f77726f6e67206172726179206c656e677468730000000000000000000000000060448201526064015b60405180910390fd5b60005b838110156103d1576103bf85858381811061034a5761034a611d6f565b905060200201602081019061035f9190611b38565b600085858581811061037357610373611d6f565b90506020028101906103859190611d9e565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610dc792505050565b806103c981611e32565b91505061032d565b5050505050565b73ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016300361049d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201527f64656c656761746563616c6c00000000000000000000000000000000000000006064820152608401610321565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166105127f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16146105b5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201527f6163746976652070726f787900000000000000000000000000000000000000006064820152608401610321565b6105be81610e44565b604080516000808252602082019092526105da91839190610e4c565b50565b60006105e7611050565b6105f184846110ef565b90506106006040850185611d9e565b905060000361061257610612846111e1565b61061b826112aa565b9392505050565b7f00000000000000000000000000000000000000000000000000000000000000006040517fb760faf900000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff919091169063b760faf99034906024016000604051808303818588803b1580156106ad57600080fd5b505af11580156103d1573d6000803e3d6000fd5b6106c9611315565b7f00000000000000000000000000000000000000000000000000000000000000006040517f205c287800000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff848116600483015260248201849052919091169063205c287890604401600060405180830381600087803b15801561075c57600080fd5b505af1158015610770573d6000803e3d6000fd5b505050505050565b73ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016300361083d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201527f64656c656761746563616c6c00000000000000000000000000000000000000006064820152608401610321565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166108b27f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614610955576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201527f6163746976652070726f787900000000000000000000000000000000000000006064820152608401610321565b61095e82610e44565b61096a82826001610e4c565b5050565b60003073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614610a35576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c00000000000000006064820152608401610321565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b
1610a62610cf4565b610aa3848484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610dc792505050565b50505050565b60007f00000000000000000000000000000000000000000000000000000000000000006040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff91909116906370a0823190602401602060405180830381865afa158015610b38573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b5c9190611e6a565b905090565b600054610100900460ff1615808015610b815750600054600160ff909116105b80610b9b5750303b158015610b9b575060005460ff166001145b610c27576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610321565b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790558015610c8557600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101001790555b610c8e826113b0565b801561096a57600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15050565b3373ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000161480610d5f57506001546c01000000000000000000000000900473ffffffffffffffffffffffffffffffffffffffff1633145b610dc5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f6163636f756e743a206e6f74204f776e6572206f7220456e747279506f696e746044820152606401610321565b565b6000808473ffffffffffffffffffffffffffffffffffffffff168484604051610df09190611eaf565b60006040518083038185875af1925050503d8060008114610e2d576040519150601f19603f3d011682016040523d82523d6000602084013e610e32565b606091505b5091509150816103d157805160208201fd5b6105da611315565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff1615610e8457610e7f83611448565b505050565b8273ffffffffffffffffffffffffffffffffffffffff166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610f09575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252610f0691810190611e6a565b60015b610f95576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201527f6f
16e206973206e6f7420555550530000000000000000000000000000000000006064820152608401610321565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8114611044576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f7860448201527f6961626c655555494400000000000000000000000000000000000000000000006064820152608401610321565b50610e7f838383611552565b3373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614610dc5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f6163636f756e743a206e6f742066726f6d20456e747279506f696e74000000006044820152606401610321565b600080611149836040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b905061119961115c610140860186611d9e565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525085939250506115779050565b6001546c01000000000000000000000000900473ffffffffffffffffffffffffffffffffffffffff9081169116146111d55760019150506111db565b60009150505b92915050565b600180546020830135916bffffffffffffffffffffffff90911690600061120783611ecb565b91906101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055506bffffffffffffffffffffffff16146105da576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f6163636f756e743a20696e76616c6964206e6f6e6365000000000000000000006044820152606401610321565b80156105da5760405160009033907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90849084818181858888f193505050503d80600081146103d1576040519150601f19603f3d011682016040523d82523d6000602084013e6103d1565b6001546c01000000000000000000000000900473ffffffffffffffffffffffffffffffffffffffff1633148061134a57503330145b610dc5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f6f
16e6c79206f776e6572000000000000000000000000000000000000000000006044820152606401610321565b600180546bffffffffffffffffffffffff166c0100000000000000000000000073ffffffffffffffffffffffffffffffffffffffff8481168202929092179283905560405192048116917f0000000000000000000000000000000000000000000000000000000000000000909116907f47e55c76e7a6f1fd8996a1da8008c1ea29699cca35e7bcd057f2dec313b6e5de90600090a350565b73ffffffffffffffffffffffffffffffffffffffff81163b6114ec576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e7472616374000000000000000000000000000000000000006064820152608401610321565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b61155b8361159b565b6000825111806115685750805b15610e7f57610aa383836115e8565b6000806000611586858561160d565b9150915061159381611652565b509392505050565b6115a481611448565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b606061061b8383604051806060016040528060278152602001611f7760279139611805565b60008082516041036116435760208301516040840151606085015160001a6116378782858561188a565b9450945050505061164b565b506000905060025b9250929050565b600081600481111561166657611666611ef6565b0361166e5750565b600181600481111561168257611682611ef6565b036116e9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610321565b60028160048111156116fd576116fd611ef6565b03611764576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610321565b600381600481111561177857611778611ef6565b036105da576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610321565b60606000808573ffffffffffffffffffffffffffffffffffffffff168560405161182f9190611eaf565b600060405180830381855af49150503d806000811461186a576040519150601f19603f3d011682016040523d82523d6000602084013e61186f565b606091505b509150915061188086838387611979565b9695505050505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156118c15750600090506003611970565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611915573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff811661196957600060019250925050611970565b9150600090505b94509492505050565b60608315611a0f578251600003611a085773ffffffffffffffffffffffffffffffffffffffff85163b611a08576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610321565b5081611a19565b611a198383611a21565b949350505050565b815115611a315781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103219190611f25565b60008083601f840112611a7757600080fd5b50813567ffffffffffffffff811115611a8f57600080fd5b6020830191508360208260051b850101111561164b57600080fd5b60008060008060408587031215611ac057600080fd5b843567ffffffffffffffff80821115611ad857600080fd5b611ae488838901611a65565b90965094506020870135915080821115611afd57600080fd5b50611b0a87828801611a65565b95989497509550505050565b73ffffffffffffffffffffffffffffffffffffffff811681146105da57600080fd5b600060208284031215611b4a57600080fd5b813561061b81611b16565b60008060006060848
16031215611b6a57600080fd5b833567ffffffffffffffff811115611b8157600080fd5b84016101608187031215611b9457600080fd5b95602085013595506040909401359392505050565b60008060408385031215611bbc57600080fd5b8235611bc781611b16565b946020939093013593505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60008060408385031215611c1757600080fd5b8235611c2281611b16565b9150602083013567ffffffffffffffff80821115611c3f57600080fd5b818501915085601f830112611c5357600080fd5b813581811115611c6557611c65611bd5565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908382118183101715611cab57611cab611bd5565b81604052828152886020848701011115611cc457600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b60008060008060608587031215611cfc57600080fd5b8435611d0781611b16565b935060208501359250604085013567ffffffffffffffff80821115611d2b57600080fd5b818701915087601f830112611d3f57600080fd5b813581811115611d4e57600080fd5b886020828501011115611d6057600080fd5b95989497505060200194505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112611dd357600080fd5b83018035915067ffffffffffffffff821115611dee57600080fd5b60200191503681900382131561164b57600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203611e6357611e63611e03565b5060010190565b600060208284031215611e7c57600080fd5b5051919050565b60005b83811015611e9e578181015183820152602001611e86565b83811115610aa35750506000910152565b60008251611ec1818460208701611e83565b9190910192915050565b60006bffffffffffffffffffffffff808316818103611eec57611eec611e03565b6001019392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6020815260008251806020840152611f44816040850160208701611e83565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220fd4b8799a91c8d4b8c5386672729ac9615b60b5f5b7dbac6da122be87a2a90b164736f6c634300080f0033",l=function(e){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=this;return n.length>1?e.apply(this,n)||this:e.call(this,s,f,n[0])||this}return a(n,e),n.prototype.deploy=function(n,r){return e.prototype.deploy.call(this,n,r||{})},n.prototype.getDeployTransaction=function(n,r){return e.prototype.getDeployTransaction.call(this,n,r||{})},n.prototype.attach=function(n){return e.prototype.attach.call(this,n)},n.prototype.connect=function(n){return e.prototype.connect.call(this,n)},n.createInterface=function(){return new o.utils.Interface(s)},n.connect=function(e,n){return new o.Contract(e,s,n)},n.bytecode=f,n.abi=s,n}(o.ContractFactory);n.SimpleAccountFactory__factory=l},86942:function(e,n,r){"use strict";var i,a=this&&this.__extends||(i=function(e,n){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}i(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)});n.__esModule=!0,n.SimpleAccount__factory=void 0;var o=r(86623),s=[{inputs:[{internalType:"contract IEntryPoint",name:"anEntryPoint",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"previousAdmin",type:"address"},{indexed:!1,internalType:"address",name:"newAdmin",type:"address"}],name:"AdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"beacon",type:"address"}],name:"BeaconUpgraded",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"contract IEntryPoint",name:"entryPoint",type:"address"},{indexed:!0,internalType:"address",name:"owner",type:"address"}],name:"SimpleAccountInitialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"implementation",type:"address"}],name:"Upgraded",type:"event"},{inputs:[],name:"addDeposit",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"entryPoint",outputs:[{internalType:"contract IEntryPoint",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"dest",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"func",type:"bytes"}],name:"execute",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address[]",name:"dest",type:"address[]"},{internalType:"bytes[]",name:"func",type:"bytes[]"}],name:"executeBatch",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getDeposit",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"anOwner",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"nonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"proxiableUUID",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"newImplementation",type:"address"}],name:"upgradeTo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newImplementation",type:"address"},{internalType:"bytes",name:"data",type:"bytes"}],name:"upgradeToAndCall",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"sender",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"bytes",name:"initCode",type:"bytes"},{internalType:"bytes",name:"callData",type:"bytes"},{internalType:"uint256",name:"callGasLimit",type:"uint256"},{internalType:"uint256",name:"verificationGasLimit",type:"uint256"},{internalType:"uint256",name:"preVerificationGas",type:"uint256"},{internalType:"uint256",name:"maxFeePerGas",type:"uint256"},{internalType:"uint256",name:"maxPriorityFeePerGas",type:"uint256"},{internalType:"bytes",name:"paymasterAndData",type:"bytes"},{internalType:"bytes",name:"signature",type:"bytes"}],internalType:"struct UserOperation",name:"userOp",type:"tuple"},{internalType:"bytes32",name:"userOpHash",type:"bytes32"},{internalType:"uint256",name:"missingAccountFunds",type:"uint256"}],name:"validateUserOp",outputs:[{internalType:"uint256",name:"validationData",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address payable",name:"withdrawAddress",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"withdrawDepositTo",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}],f="0x60c03461015a57601f62001ed338819003918201601f19168301916001600160401b0383118484101761015f5780849260209460405283398101031261015a57516001600160a01b038116810361015a573060805260a05260005460ff8160081c166101055760ff808216106100ca575b604051611d5d908162000176823960805181818161032601528181610a460152610c23015260a051818181610548015281816107180152818161080101528181610dcf01528181610ef20152818161187301526118d10152f35b60ff90811916176000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160ff8152a138610070565b60405162461bcd60e51b8152
160206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b6064820152608490fd5b600080fd5b634e487b7160e01b600052604160045260246000fdfe6080604052600436101561001b575b361561001957600080fd5b005b60003560e01c806318dfb3c71461011f5780633659cfe6146101165780633a871cdd1461010d5780634a58db19146101045780634d44560d146100fb5780634f1ef286146100f257806352d1902d146100e95780638da5cb5b146100e0578063affed0e0146100d7578063b0d691fe146100ce578063b61d27f6146100c5578063c399ec88146100bc5763c4d66de80361000e576100b7610f75565b61000e565b506100b7610e78565b506100b7610df3565b506100b7610d83565b506100b7610d38565b506100b7610cf8565b506100b7610bdc565b506100b76109c4565b506100b76107a2565b506100b76106d5565b506100b76104dd565b506100b76102d1565b506100b761015e565b9181601f840112156101595782359167ffffffffffffffff8311610159576020808501948460051b01011161015957565b600080fd5b50346101595760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101595767ffffffffffffffff600435818111610159576101af903690600401610128565b9091602435908111610159576101c9903690600401610128565b91906101d36118ba565b8282036102555760005b8281106101e657005b8061021a6101ff6101fa600194878a61173f565b61175d565b61021461020d848988611767565b369161098d565b90611c93565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610248575b016101dd565b6102506116df565b610242565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f77726f6e67206172726179206c656e67746873000000000000000000000000006044820152fd5b73ffffffffffffffffffffffffffffffffffffffff81160361015957565b50346101595760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101595760043561030d816102b3565b73ffffffffffffffffffffffffffffffffffffffff90817f00000000000000000000000000000000000000000000000000000000000000001691610353833014156110d9565b6103827f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc938285541614611164565b61038a611caa565b60405190610397826108cb565b600082527f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156103d15750506100199150611296565b6020600491604094939451928380927f52d1902d00000000000000000000000000000000000000000000000000000000825286165afa600091816104ad575b5061049a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201527f6f
16e206973206e6f7420555550530000000000000000000000000000000000006064820152608490fd5b610019936104a8911461120b565b611382565b6104cf91925060203d81116104d6575b6104c78183610903565b8101906111ef565b9038610410565b503d6104bd565b5034610159577ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc6060813601126101595760043567ffffffffffffffff811161015957610160816004019282360301126101595773ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001633036106775761058861057d6024358461196d565b926044830190611620565b9050156105b3575b6105af8261059f604435611671565b6040519081529081906020820190565b0390f35b6024600154916bffffffffffffffffffffffff927fffffffffffffffffffffffffffffffffffffffff0000000000000000000000008482169480861461066a575b600186011691161760015501350361060c5738610590565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f6163636f756e743a20696e76616c6964206e6f6e6365000000000000000000006044820152fd5b6106726116df565b6105f4565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f6163636f756e743a206e6f742066726f6d20456e747279506f696e74000000006044820152fd5b506000807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261079f5773ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001681813b1561079f57602491604051928380927fb760faf900000000000000000000000000000000000000000000000000000000825230600483015234905af18015610792575b610786575080f35b61078f906108aa565b80f35b61079a6111fe565b61077e565b80fd5b503461015957600060407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261079f576004356107e0816102b3565b6107e8611caa565b8173ffffffffffffffffffffffffffffffffffffffff807f00000000000000000000000000000000000000000000000000000000000000001692833b15610876576044908360405195869485937f205c287800000000000000000000000000000000000000000000000000000000855216600484015260243560248401525af1801561079257610786575080f35b8280fd5b507f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b67ffffffffffffffff81116108be57604052565b6108c661087a565b604052565b6020810190811067ffffffffffffffff8211176108be57604052565b6060810190811067ffffffffffffffff8211176108be57604052565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff8211176108be57604052565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f60209267ffffffffffffffff8111610980575b01160190565b61098861087a565b61097a565b92919261099982610944565b916109a76040519384610903565b829481845281830111610159578281602093846000960137010152565b5060407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610159576004356109fb816102b3565b60243567ffffffffffffffff8111610159573660238201121561015957610a2c90369060248160040135910161098d565b9073ffffffffffffffffffffffffffffffffffffffff91827f00000000000000000000000000000000000000000000000000000000000000001692610a73843014156110d9565b610aa27f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc948286541614611164565b610aaa611caa565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff1615610ae05750506100199150611296565b6020600491604094939451928380927f52d1902d00000000000000000000000000000000000000000000000000000000825286165afa60009181610bbc575b50610ba9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201527f6f
16e206973206e6f7420555550530000000000000000000000000000000000006064820152608490fd5b61001993610bb7911461120b565b611461565b610bd591925060203d81116104d6576104c78183610903565b9038610b1f565b50346101595760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101595773ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000163003610c74576040517f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8152602090f35b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c00000000000000006064820152fd5b50346101595760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261015957602060015460601c604051908152f35b50346101595760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101595760206bffffffffffffffffffffffff60015416604051908152f35b50346101595760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261015957602060405173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168152f35b50346101595760607ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261015957600435610e2f816102b3565b6044359067ffffffffffffffff908183116101595736602384011215610159578260040135918211610159573660248385010111610159576024610019930190602435906116ab565b5034610159576000807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261079f576040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260208160248173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000165afa908115610f68575b8291610f2e575b604051828152602090f35b90506020813d8211610f60575b81610f4860209383610903565b81010312610f5c576105af91505138610f23565b5080fd5b3d9150610f3b565b610f706111fe565b610f1c565b50346101595760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261015957600435610fb1816102b3565b61101360005491610fd960ff8460081c1615809481956110cb575b81156110ab575b50611791565b8261100a60017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff006000541617600055565b
16110755761181c565b61101957005b6110467fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff60005416600055565b604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249890602090a1005b6110a66101007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff6000541617600055565b61181c565b303b159150816110bd575b5038610fd3565b6001915060ff1614386110b6565b600160ff8216109150610fcc565b156110e057565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201527f64656c656761746563616c6c00000000000000000000000000000000000000006064820152fd5b1561116b57565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201527f6163746976652070726f787900000000000000000000000000000000000000006064820152fd5b90816020910312610159575190565b506040513d6000823e3d90fd5b1561121257565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f7860448201527f6961626c655555494400000000000000000000000000000000000000000000006064820152fd5b803b156112fe5773ffffffffffffffffffffffffffffffffffffffff7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc91167fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e7472616374000000000000000000000000000000000000006064820152fd5b9061138c82611296565b73ffffffffffffffffffffffffffffffffffffffff82167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b600080a2805115801590611459575b6113db575050565b61145691600080604051936113ef856108e7565b602785527f416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c60208601527f206661696c6564000000000000000000000000000000000000000000000000006040860152602081519101845af46114506114c1565b91611556565b50565b5060006113d3565b9061146b82611296565b73ffffffffffffffffffffffffffffffffffffffff82167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b600080a28051158015906114b9576113db575050565b5060016113d3565b3d156114ec573d906114d282610944565b916114e06040519384610903565b82523d6000602084013e565b606090565b156114f857565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152fd5b91929015611579575081511561156a575090565b611576903b15156114f1565b90565b82519091501561158c5750805190602001fd5b604051907f08c379a000000000000000000000000000000000000000000000000000000000825281602080600483015282519283602484015260005b848110611609575050507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f836000604480968601015201168101030190fd5b8181018301518682016044015285935082016115c8565b9035907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe181360301821215610159570180359067ffffffffffffffff82116101595760200191813603831361015957565b806116795750565b600080808093337ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1506114566114c1565b6116bc60009493859461020d6118ba565b91602083519301915af16116ce6114c1565b90156116d75750565b602081519101fd5b507f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b507f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9190811015611750575b60051b0190565b61175861170f565b611749565b35611576816102b3565b909161178092811015611784575b60051b810190611620565b9091565b61178c61170f565b611775565b1561179857565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152fd5b6bffffffffffffffffffffffff7fffffffffffffffffffffffffffffffffffffffff0000000000000000000000006001549260601b169116178060015560601c73ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000167f47e55c76e7a6f1fd8996a1da8008c1ea29699cca35e7bcd057f2dec313b6e5de600080a3565b73ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000163314801561195f575b1561190157565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602060248201527f6163636f756e743a206e6f74204f776e6572206f7220456e747279506f696e746044820152fd5b5060015460601c33146118fa565b906119f06119e873ffffffffffffffffffffffffffffffffffffffff9260405160208101917f19457468657265756d205369676e6564204d6573736167653a0a3332000000008352603c820152603c81526119c7816108e7565b5190206119e261020d60015460601c96610140810190611620565b90611bc2565b919091611a39565b16036119fb57600090565b600190565b60051115611a0a57565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b611a4281611a00565b80611a4a5750565b611a5381611a00565b60018103611aba576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606490fd5b611ac381611a00565b60028103611b2a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606490fd5b80611b36600392611a00565b14611b3d57565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608490fd5b906041815114600014611bec57611780916020820151906060604084015193015160001a90611bf6565b5050600090600290565b9291907f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311611c875791608094939160ff602094604051948552168484015260408301526060820152600093849182805260015afa15611c7a575b815173ffffffffffffffffffffffffffffffffffffffff811615611c74579190565b50600190565b611c826111fe565b611c52565b50505050600090600390565b600091829182602083519301915af16116ce6114c1565b60015460601c33148015611d1e575b15611cc057565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f6f
16e6c79206f776e6572000000000000000000000000000000000000000000006044820152fd5b50303314611cb956fea2646970667358221220593fa2403beef0636f4ff38625c8e0f27859145384a308b0a9f2e56754fd82f664736f6c63430008110033",l=function(e){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=this;return n.length>1?e.apply(this,n)||this:e.call(this,s,f,n[0])||this}return a(n,e),n.prototype.deploy=function(n,r){return e.prototype.deploy.call(this,n,r||{})},n.prototype.getDeployTransaction=function(n,r){return e.prototype.getDeployTransaction.call(this,n,r||{})},n.prototype.attach=function(n){return e.prototype.attach.call(this,n)},n.prototype.connect=function(n){return e.prototype.connect.call(this,n)},n.createInterface=function(){return new o.utils.Interface(s)},n.connect=function(e,n){return new o.Contract(e,s,n)},n.bytecode=f,n.abi=s,n}(o.ContractFactory);n.SimpleAccount__factory=l},6075:function(e,n,r){"use strict";n.__esModule=!0,n.StakeManager__factory=void 0;var i=r(86623),a=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!1,internalType:"uint256",name:"totalDeposit",type:"uint256"}],name:"Deposited",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!1,internalType:"uint256",name:"totalStaked",type:"uint256"},{indexed:!1,internalType:"uint256",name:"unstakeDelaySec",type:"uint256"}],name:"StakeLocked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!1,internalType:"uint256",name:"withdrawTime",type:"uint256"}],name:"StakeUnlocked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!1,internalType:"address",name:"withdrawAddress",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"StakeWithdrawn",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!1,internalType:"address",name:"withdrawAddress",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"Withdrawn",type:"event"},{inputs:[{internalType:"uint32",name:"unstakeDelaySec",type:"uint32"}],name:"addStake",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"depositTo",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"deposits",outputs:[{internalType:"uint112",name:"deposit",type:"uint112"},{internalType:"bool",name:"staked",type:"bool"},{internalType:"uint112",name:"stake",type:"uint112"},{internalType:"uint32",name:"unstakeDelaySec",type:"uint32"},{internalType:"uint48",name:"withdrawTime",type:"uint48"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"getDepositInfo",outputs:[{components:[{internalType:"uint112",name:"deposit",type:"uint112"},{internalType:"bool",name:"staked",type:"bool"},{internalType:"uint112",name:"stake",type:"uint112"},{internalType:"uint32",name:"unstakeDelaySec",type:"uint32"},{internalType:"uint48",name:"withdrawTime",type:"uint48"}],internalType:"struct IStakeManager.DepositInfo",name:"info",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[],name:"unlockStake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address payable",name:"withdrawAddress",type:"address"}],name:"withdrawStake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address payable",name:"withdrawAddress",type:"address"},{internalType:"uint256",name:"withdrawAmount",type:"uint256"}],name:"withdrawTo",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}],o=function(){function e(){}return e.createInterface=function(){return new i.utils.Interface(a)},e.connect=function(e,n){return new i.Contract(e,a,n)},e.abi=a,e}();n.StakeManager__factory=o},85400:function(e,n,r){"use strict";
1var i,a=this&&this.__extends||(i=function(e,n){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}i(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)});n.__esModule=!0,n.TokenPaymaster__factory=void 0;var o=r(86623),s=[{inputs:[{internalType:"address",name:"accountFactory",type:"address"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"contract IEntryPoint",name:"_entryPoint",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"COST_OF_POST",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint32",name:"unstakeDelaySec",type:"uint32"}],name:"addStake",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"subtractedValue",type:"uint256"}],name:"decreaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"deposit",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"entryPoint",outputs:[{internalType:"contract IEntryPoint",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDeposit",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"addedValue",type:"uint256"}],name:"increaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"mintTokens",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"enum IPaymaster.PostOpMode",name:"mode",type:"uint8"},{internalType:"bytes",name:"context",type:"bytes"},{internalType:"uint256",name:"actualGasCost",type:"uint256"}],name:"postOp",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"theFactory",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unlockStake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"sender",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"bytes",name:"initCode",type:"bytes"},{internalType:"bytes",name:"callData",type:"bytes"},{internalType:"uint256",name:"callGasLimit",type:"uint256"},{internalType:"uint256",name:"verificationGasLimit",type:"uint256"},{internalType:"uint256",name:"preVerificationGas",type:"uint256"},{internalType:"uint256",name:"maxFeePerGas",type:"uint256"},{internalType:"uint256",name:"maxPriorityFeePerGas",type:"uint256"},{internalType:"bytes",name:"paymasterAndData",type:"bytes"},{internalType:"bytes",name:"signature",type:"bytes"}],internalType:"struct UserOperation",name:"userOp",type:"tuple"},{internalType:"bytes32",name:"userOpHash",type:"bytes32"},{internalType:"uint256",name:"maxCost",type:"uint256"}],name:"validatePaymasterUserOp",outputs:[{internalType:"bytes",name:"context",type:"bytes"},{internalType:"uint256",name:"validationData",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address payable",name:"withdrawAddress",type:"address"}],name:"withdrawStake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address payable",name:"withdrawAddress",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"withdrawTo",outputs:[],stateMutability:"nonpayable",type:"function"}],f="0x60c06040523480156200001157600080fd5b506040516200224438038062002244833981016040819052620000349162000327565b8180826200004233620000a0565b6001600160a01b031660805260046200005c8382620004bc565b5060056200006b8282620004bc565b5050506001600160a01b03831660a05262000088306001620000f0565b620000973033600019620001b9565b505050620005af565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0382166200014c5760405162461bcd60e51b8152
160206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064015b60405180910390fd5b806003600082825462000160919062000588565b90915550506001600160a01b0382166000818152600160209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b0383166200021d5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840162000143565b6001600160a01b038216620002805760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840162000143565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b505050565b6001600160a01b0381168114620002fc57600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b80516200032281620002e6565b919050565b60008060006060848
160312156200033d57600080fd5b83516200034a81620002e6565b602085810151919450906001600160401b03808211156200036a57600080fd5b818701915087601f8301126200037f57600080fd5b815181811115620003945762000394620002ff565b604051601f8201601f19908116603f01168101908382118183101715620003bf57620003bf620002ff565b816040528281528a86848701011115620003d857600080fd5b600093505b82841015620003fc5784840186015181850187015292850192620003dd565b828411156200040e5760008684830101525b809750505050505050620004256040850162000315565b90509250925092565b600181811c908216806200044357607f821691505b6020821081036200046457634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620002e157600081815260208120601f850160051c81016020861015620004935750805b601f850160051c820191505b81811015620004b4578281556001016200049f565b505050505050565b81516001600160401b03811115620004d857620004d8620002ff565b620004f081620004e984546200042e565b846200046a565b602080601f8311600181146200052857600084156200050f5750858301515b600019600386901b1c1916600185901b178555620004b4565b600085815260208120601f198616915b82811015620005595788860151825594840194600190910190840162000538565b5085821015620005785787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008219821115620005aa57634e487b7160e01b600052601160045260246000fd5b500190565b60805160a051611c376200060d6000396000818161039201526116fa015260008181610426015281816105970152818161070b015281816108ea015281816109b101528181610a4101528181610af401526111f80152611c376000f3fe6080604052600436106101a15760003560e01c80639f5ca221116100e1578063c23a5cea1161008a578063dd62ed3e11610064578063dd62ed3e1461049a578063f0dda65c146104ed578063f2fde38b1461050d578063f465c77e1461052d57600080fd5b8063c23a5cea1461045d578063c399ec881461047d578063d0e30db01461049257600080fd5b8063a9a23409116100bb578063a9a23409146103f4578063b0d691fe14610414578063bb9fe6bf1461044857600080fd5b80639f5ca22114610380578063a457c2d7146103b4578063a9059cbb146103d457600080fd5b8063313ce5671161014e578063715018a611610128578063715018a6146102f4578063796d4371146103095780638da5cb5b1461031f57806395d89b411461036b57600080fd5b8063313ce56714610275578063395093511461029157806370a08231146102b157600080fd5b806318160ddd1161017f57806318160ddd14610216578063205c28781461023557806323b872dd1461025557600080fd5b80630396cb60146101a657806306fdde03146101bb578063095ea7b3146101e6575b600080fd5b6101b96101b43660046117a8565b61055b565b005b3480156101c757600080fd5b506101d061060d565b6040516101dd9190611840565b60405180910390f35b3480156101f257600080fd5b50610206610201366004611875565b61069f565b60405190151581526020016101dd565b34801561022257600080fd5b506003545b6040519081526020016101dd565b34801561024157600080fd5b506101b9610250366004611875565b6106b7565b34801561026157600080fd5b506102066102703660046118a1565b61074f565b34801561028157600080fd5b50604051601281526020016101dd565b34801561029d57600080fd5b506102066102ac366004611875565b610773565b3480156102bd57600080fd5b506102276102cc3660046118e2565b73ffffffffffffffffffffffffffffffffffffffff1660009081526001602052604090205490565b34801561030057600080fd5b506101b96107bf565b34801561031557600080fd5b50610227613a9881565b34801561032b57600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101dd565b34801561037757600080fd5b506101d06107d3565b34801561038c57600080fd5b506103467f000000000000000000000000000000000000000000000000000000000000000081565b3480156103c057600080fd5b506102066103cf366004611875565b6107e2565b3480156103e057600080fd5b506102066103ef366004611875565b6108b8565b34801561040057600080fd5b506101b961040f3660046118ff565b6108c6565b34801561042057600080fd5b506103467f000000000000000000000000000000000000000000000000000000000000000081565b34801561045457600080fd5b506101b96108e0565b34801561046957600080fd5b506101b96104783660046118e2565b610964565b34801561048957600080fd5b50610227610a10565b6101b9610ac6565b3480156104a657600080fd5b506102276104b536600461198e565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260026020908152604080832093909416825291909152205490565b3480156104f957600080fd5b506101b9610508366004611875565b610b4e565b34801561051957600080fd5b506101b96105283660046118e2565b610b64565b34801561053957600080fd5b5061054d6105483660046119c7565b
1610bcd565b6040516101dd929190611a1b565b610563610bf0565b6040517f0396cb6000000000000000000000000000000000000000000000000000000000815263ffffffff821660048201527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1690630396cb609034906024016000604051808303818588803b1580156105f157600080fd5b505af1158015610605573d6000803e3d6000fd5b505050505050565b60606004805461061c90611a3d565b80601f016020809104026020016040519081016040528092919081815260200182805461064890611a3d565b80156106955780601f1061066a57610100808354040283529160200191610695565b820191906000526020600020905b81548152906001019060200180831161067857829003601f168201915b5050505050905090565b6000336106ad818585610c71565b5060019392505050565b6106bf610bf0565b6040517f205c287800000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8381166004830152602482018390527f0000000000000000000000000000000000000000000000000000000000000000169063205c287890604401600060405180830381600087803b1580156105f157600080fd5b60003361075d858285610e24565b610768858585610ef5565b506001949350505050565b33600081815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff871684529091528120549091906106ad90829086906107ba908790611a90565b610c71565b6107c7610bf0565b6107d1600061116b565b565b60606005805461061c90611a3d565b33600081815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168452909152812054909190838110156108ab576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6107688286868403610c71565b6000336106ad818585610ef5565b6108ce6111e0565b6108da8484848461127f565b50505050565b6108e8610bf0565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663bb9fe6bf6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561095057600080fd5b505af11580156108da573d6000803e3d6000fd5b61096c610bf0565b6040517fc23a5cea00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff82811660048301527f0000000000000000000000000000000000000000000000000000000000000000169063c23a5cea90602401600060405180830381600087803b1580156109f557600080fd5b505af1158015610a09573d6000803e3d6000fd5b5050505050565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa158015610a9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ac19190611acf565b905090565b6040517fb760faf90000000000000000000000000000000000000000000000000000000081523060048201527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169063b760faf99034906024016000604051808303818588803b1580156109f557600080fd5b610b56610bf0565b610b6082826112b2565b5050565b610b6c610bf0565b610b9630610b8f60005473ffffffffffffffffffffffffffffffffffffffff1690565b6000610c71565b610b9f816113a7565b610bca30827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610c71565b50565b60606000610bd96111e0565b610be485858561145b565b91509150935093915050565b60005473ffffffffffffffffffffffffffffffffffffffff1633146107d1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108a2565b73ffffffffffffffffffffffffffffffffffffffff8316610d13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016108a2565b73ffffffffffffffffffffffffffffffffffffffff8216610db6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f737300000000000000000000000000000000000000000000000000000000000060648201526084016108a2565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600260209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146108da5781811015610ee8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016108a2565b6108da8484848403610c71565b73ffffffffffffffffffffffffffffffffffffffff8316610f98576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016108a2565b73ffffffffffffffffffffffffffffffffffffffff821661103b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016108a2565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260016020526040902054818110156110f1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e6365000000000000000000000000000000000000000000000000000060648201526084016108a2565b73ffffffffffffffffffffffffffffffffffffffff80851660008181526001602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9061115e9086815260200190565b60405180910390a36108da565b
16000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b3373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016146107d1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f53656e646572206e6f7420456e747279506f696e74000000000000000000000060448201526064016108a2565b600061128d838501856118e2565b905060006112a56112a0613a9885611a90565b6116a4565b9050610605823083610ef5565b73ffffffffffffffffffffffffffffffffffffffff821661132f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016108a2565b80600360008282546113419190611a90565b909155505073ffffffffffffffffffffffffffffffffffffffff82166000818152600160209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6113af610bf0565b73ffffffffffffffffffffffffffffffffffffffff8116611452576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016108a2565b610bca8161116b565b6060600080611469846116a4565b9050613a988660a0013511611500576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f546f6b656e5061796d61737465723a2067617320746f6f206c6f7720666f722060448201527f706f73744f70000000000000000000000000000000000000000000000000000060648201526084016108a2565b61150d6040870187611ae8565b1590506115c15761151d866116b7565b8061152e6102cc60208901896118e2565b10156115bc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f546f6b656e5061796d61737465723a206e6f2062616c616e636520287072652d60448201527f637265617465290000000000000000000000000000000000000000000000000060648201526084016108a2565b61163a565b806115d26102cc60208901896118e2565b101561163a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f546f6b656e5061796d61737465723a206e6f2062616c616e636500000000000060448201526064016108a2565b61164760208701876118e2565b6040805173ffffffffffffffffffffffffffffffffffffffff909216602083015201604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190529660009650945050505050565b60006116b1606483611b54565b92915050565b60006116c66040830183611ae8565b6116d591601491600091611b8f565b6116de91611bb9565b60601c905073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168114610b60576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f546f6b656e5061796d61737465723a2077726f6e67206163636f756e7420666160448201527f63746f727900000000000000000000000000000000000000000000000000000060648201526084016108a2565b6000602082840312156117ba57600080fd5b813563ffffffff811681146117ce57600080fd5b9392505050565b6000815180845260005b818110156117fb576020818501810151868301820152016117df565b8181111561180d576000602083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6020815260006117ce60208301846117d5565b73ffffffffffffffffffffffffffffffffffffffff81168114610bca57600080fd5b6000806040838503121561188857600080fd5b823561189381611853565b946020939093013593505050565b60008060006060848
160312156118b657600080fd5b83356118c181611853565b925060208401356118d181611853565b929592945050506040919091013590565b6000602082840312156118f457600080fd5b81356117ce81611853565b6000806000806060858703121561191557600080fd5b84356003811061192457600080fd5b9350602085013567ffffffffffffffff8082111561194157600080fd5b818701915087601f83011261195557600080fd5b81358181111561196457600080fd5b88602082850101111561197657600080fd5b95986020929092019750949560400135945092505050565b600080604083850312156119a157600080fd5b82356119ac81611853565b915060208301356119bc81611853565b809150509250929050565b6000806000606084860312156119dc57600080fd5b833567ffffffffffffffff8111156119f357600080fd5b84016101608187031215611a0657600080fd5b95602085013595506040909401359392505050565b604081526000611a2e60408301856117d5565b90508260208301529392505050565b600181811c90821680611a5157607f821691505b602082108103611a8a577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60008219821115611aca577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b500190565b600060208284031215611ae157600080fd5b5051919050565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112611b1d57600080fd5b83018035915067ffffffffffffffff821115611b3857600080fd5b602001915036819003821315611b4d57600080fd5b9250929050565b600082611b8a577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b60008085851115611b9f57600080fd5b83861115611bac57600080fd5b5050820193919092039150565b7fffffffffffffffffffffffffffffffffffffffff0000000000000000000000008135818116916014851015611bf95780818660140360031b1b83161692505b50509291505056fea2646970667358221220a332863119321216e5189708c2880dbc64e46a1707c0f292f429daa2c9a7ea3764736f6c634300080f0033",l=function(e){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=this;return n.length>1?e.apply(this,n)||this:e.call(this,s,f,n[0])||this}return a(n,e),n.prototype.deploy=function(n,r,i,a){return e.prototype.deploy.call(this,n,r,i,a||{})},n.prototype.getDeployTransaction=function(n,r,i,a){return e.prototype.getDeployTransaction.call(this,n,r,i,a||{})},n.prototype.attach=function(n){return e.prototype.attach.call(this,n)},n.prototype.connect=function(n){return e.prototype.connect.call(this,n)},n.createInterface=function(){return new o.utils.Interface(s)},n.connect=function(e,n){return new o.Contract(e,s,n)},n.bytecode=f,n.abi=s,n}(o.ContractFactory);n.TokenPaymaster__factory=l},17100:function(e,n,r){"use strict";var i,a=this&&this.__extends||(i=function(e,n){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}i(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)});n.__esModule=!0,n.VerifyingPaymaster__factory=void 0;var o=r(86623),s=[{inputs:[{internalType:"contract IEntryPoint",name:"_entryPoint",type:"address"},{internalType:"address",name:"_verifyingSigner",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{inputs:[{internalType:"uint32",name:"unstakeDelaySec",type:"uint32"}],name:"addStake",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"deposit",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"entryPoint",outputs:[{internalType:"contract IEntryPoint",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDeposit",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"sender",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"bytes",name:"initCode",type:"bytes"},{internalType:"bytes",name:"callData",type:"bytes"},{internalType:"uint256",name:"callGasLimit",type:"uint256"},{internalType:"uint256",name:"verificationGasLimit",type:"uint256"},{internalType:"uint256",name:"preVerificationGas",type:"uint256"},{internalType:"uint256",name:"maxFeePerGas",type:"uint256"},{internalType:"uint256",name:"maxPriorityFeePerGas",type:"uint256"},{internalType:"bytes",name:"paymasterAndData",type:"bytes"},{internalType:"bytes",name:"signature",type:"bytes"}],internalType:"struct UserOperation",name:"userOp",type:"tuple"},{internalType:"uint48",name:"validUntil",type:"uint48"},{internalType:"uint48",name:"validAfter",type:"uint48"}],name:"getHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"paymasterAndData",type:"bytes"}],name:"parsePaymasterAndData",outputs:[{internalType:"uint48",name:"validUntil",type:"uint48"},{internalType:"uint48",name:"validAfter",type:"uint48"},{internalType:"bytes",name:"signature",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"enum IPaymaster.PostOpMode",name:"mode",type:"uint8"},{internalType:"bytes",name:"context",type:"bytes"},{internalType:"uint256",name:"actualGasCost",type:"uint256"}],name:"postOp",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"senderNonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unlockStake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"sender",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"bytes",name:"initCode",type:"bytes"},{internalType:"bytes",name:"callData",type:"bytes"},{internalType:"uint256",name:"callGasLimit",type:"uint256"},{internalType:"uint256",name:"verificationGasLimit",type:"uint256"},{internalType:"uint256",name:"preVerificationGas",type:"uint256"},{internalType:"uint256",name:"maxFeePerGas",type:"uint256"},{internalType:"uint256",name:"maxPriorityFeePerGas",type:"uint256"},{internalType:"bytes",name:"paymasterAndData",type:"bytes"},{internalType:"bytes",name:"signature",type:"bytes"}],internalType:"struct UserOperation",name:"userOp",type:"tuple"},{internalType:"bytes32",name:"userOpHash",type:"bytes32"},{internalType:"uint256",name:"maxCost",type:"uint256"}],name:"validatePaymasterUserOp",outputs:[{internalType:"bytes",name:"context",type:"bytes"},{internalType:"uint256",name:"validationData",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"verifyingSigner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address payable",name:"withdrawAddress",type:"address"}],name:"withdrawStake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address payable",name:"withdrawAddress",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"withdrawTo",outputs:[],stateMutability:"nonpayable",type:"function"}],f="0x60c06040523480156200001157600080fd5b5060405162001723380380620017238339810160408190526200003491620000c2565b81620000403362000059565b6001600160a01b039081166080521660a0525062000101565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0381168114620000bf57600080fd5b50565b60008060408385031215620000d657600080fd5b8251620000e381620000a9565b6020840151909250620000f681620000a9565b809150509250929050565b60805160a0516115c46200015f6000396000818161013f0152610ca20152600081816102880152818161038601528181610450015281816105730152818161063a015281816106ca0152818161077d0152610a0401526115c46000f3fe6080604052600436106100f35760003560e01c8063a9a234091161008a578063c399ec8811610059578063c399ec88146102df578063d0e30db0146102f4578063f2fde38b146102fc578063f465c77e1461031c57600080fd5b8063a9a2340914610256578063b0d691fe14610276578063bb9fe6bf146102aa578063c23a5cea146102bf57600080fd5b80638da5cb5b116100c65780638da5cb5b146101a057806394d4ad60146101cb57806394e1fc19146101fb5780639c90b4431461022957600080fd5b80630396cb60146100f8578063205c28781461010d57806323d9ac9b1461012d578063715018a61461018b575b600080fd5b61010b610106366004611075565b61034a565b005b34801561011957600080fd5b5061010b6101283660046110c4565b6103fc565b34801561013957600080fd5b506101617f000000000000000000000000000000000000000000000000000000000000000081565b
160405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b34801561019757600080fd5b5061010b610494565b3480156101ac57600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff16610161565b3480156101d757600080fd5b506101eb6101e6366004611132565b6104a8565b6040516101829493929190611174565b34801561020757600080fd5b5061021b610216366004611212565b6104e5565b604051908152602001610182565b34801561023557600080fd5b5061021b610244366004611270565b60016020526000908152604090205481565b34801561026257600080fd5b5061010b61027136600461128d565b61054f565b34801561028257600080fd5b506101617f000000000000000000000000000000000000000000000000000000000000000081565b3480156102b657600080fd5b5061010b610569565b3480156102cb57600080fd5b5061010b6102da366004611270565b6105ed565b3480156102eb57600080fd5b5061021b610699565b61010b61074f565b34801561030857600080fd5b5061010b610317366004611270565b6107d7565b34801561032857600080fd5b5061033c6103373660046112ed565b610893565b6040516101829291906113a6565b6103526108b7565b6040517f0396cb6000000000000000000000000000000000000000000000000000000000815263ffffffff821660048201527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1690630396cb609034906024016000604051808303818588803b1580156103e057600080fd5b505af11580156103f4573d6000803e3d6000fd5b505050505050565b6104046108b7565b6040517f205c287800000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8381166004830152602482018390527f0000000000000000000000000000000000000000000000000000000000000000169063205c287890604401600060405180830381600087803b1580156103e057600080fd5b61049c6108b7565b6104a66000610938565b565b60008036816104bb6054601487896113c8565b8101906104c891906113f2565b90945092506104da85605481896113c8565b949793965094505050565b60006104f0846109ad565b73ffffffffffffffffffffffffffffffffffffffff8535166000908152600160209081526040918290205491516105309392469230928991899101611425565b6040516020818303038152906040528051906020012090509392505050565b6105576109ec565b61056384848484610a8b565b50505050565b6105716108b7565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663bb9fe6bf6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156105d957600080fd5b505af1158015610563573d6000803e3d6000fd5b6105f56108b7565b6040517fc23a5cea00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff82811660048301527f0000000000000000000000000000000000000000000000000000000000000000169063c23a5cea90602401600060405180830381600087803b15801561067e57600080fd5b505af1158015610692573d6000803e3d6000fd5b5050505050565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa158015610726573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061074a9190611482565b905090565b6040517fb760faf90000000000000000000000000000000000000000000000000000000081523060048201527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169063b760faf99034906024016000604051808303818588803b15801561067e57600080fd5b6107df6108b7565b73ffffffffffffffffffffffffffffffffffffffff8116610887576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61089081610938565b50565b6060600061089f6109ec565b6108aa858585610aed565b915091505b935093915050565b60005473ffffffffffffffffffffffffffffffffffffffff1633146104a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161087e565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60603660006109c061012085018561149b565b915091508360208184030360405194506020810185016040528085528082602087013750505050919050565b3373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016146104a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f53656e646572206e6f7420456e747279506f696e740000000000000000000000604482015260640161087e565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f6d757374206f7665727269646500000000000000000000000000000000000000604482015260640161087e565b6060600080803681610b066101e66101208b018b61149b565b929650909450925090506040811480610b1f5750604181145b610bad57604080517f08c379a00000000000000000000000000000000000000000000000000000000081526020600482015260248101919091527f566572696679696e675061796d61737465723a20696e76616c6964207369676e60448201527f6174757265206c656e67746820696e207061796d6173746572416e6444617461606482015260840161087e565b6000610c10610bbd8b87876104e5565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b73ffffffffffffffffffffffffffffffffffffffff8b35166000908152600160205260408120805492935090610c4583611500565b9190505550610c8a8184848
1080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610d3292505050565b73ffffffffffffffffffffffffffffffffffffffff167f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1614610d0757610ce860018686610d56565b60405180602001604052806000815250909650965050505050506108af565b610d1360008686610d56565b6040805160208101909152600081529b909a5098505050505050505050565b6000806000610d418585610d8e565b91509150610d4e81610dd3565b509392505050565b600060d08265ffffffffffff16901b60a08465ffffffffffff16901b85610d7e576000610d81565b60015b60ff161717949350505050565b6000808251604103610dc45760208301516040840151606085015160001a610db887828585610f86565b94509450505050610dcc565b506000905060025b9250929050565b6000816004811115610de757610de761155f565b03610def5750565b6001816004811115610e0357610e0361155f565b03610e6a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161087e565b6002816004811115610e7e57610e7e61155f565b03610ee5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161087e565b6003816004811115610ef957610ef961155f565b03610890576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f7565000000000000000000000000000000000000000000000000000000000000606482015260840161087e565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115610fbd575060009050600361106c565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611011573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff81166110655760006001925092505061106c565b9150600090505b94509492505050565b60006020828403121561108757600080fd5b813563ffffffff8116811461109b57600080fd5b9392505050565b73ffffffffffffffffffffffffffffffffffffffff8116811461089057600080fd5b600080604083850312156110d757600080fd5b82356110e2816110a2565b946020939093013593505050565b60008083601f84011261110257600080fd5b50813567ffffffffffffffff81111561111a57600080fd5b602083019150836020828501011115610dcc57600080fd5b6000806020838503121561114557600080fd5b823567ffffffffffffffff81111561115c57600080fd5b611168858286016110f0565b90969095509350505050565b600065ffffffffffff8087168352808616602084015250606060408301528260608301528284608084013760006080848401015260807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f850116830101905095945050505050565b600061016082840312156111f157600080fd5b50919050565b803565ffffffffffff8116811461120d57600080fd5b919050565b60008060006060848
1603121561122757600080fd5b833567ffffffffffffffff81111561123e57600080fd5b61124a868287016111de565b935050611259602085016111f7565b9150611267604085016111f7565b90509250925092565b60006020828403121561128257600080fd5b813561109b816110a2565b600080600080606085870312156112a357600080fd5b8435600381106112b257600080fd5b9350602085013567ffffffffffffffff8111156112ce57600080fd5b6112da878288016110f0565b9598909750949560400135949350505050565b60008060006060848603121561130257600080fd5b833567ffffffffffffffff81111561131957600080fd5b611325868287016111de565b9660208601359650604090950135949350505050565b6000815180845260005b8181101561136157602081850181015186830182015201611345565b81811115611373576000602083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6040815260006113b9604083018561133b565b90508260208301529392505050565b600080858511156113d857600080fd5b838611156113e557600080fd5b5050820193919092039150565b6000806040838503121561140557600080fd5b61140e836111f7565b915061141c602084016111f7565b90509250929050565b60c08152600061143860c083018961133b565b60208301979097525073ffffffffffffffffffffffffffffffffffffffff949094166040850152606084019290925265ffffffffffff90811660808401521660a090910152919050565b60006020828403121561149457600080fd5b5051919050565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18436030181126114d057600080fd5b83018035915067ffffffffffffffff8211156114eb57600080fd5b602001915036819003821315610dcc57600080fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203611558577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fdfea26469706673582212201f0be91b92179d101ae4aa96dcbd313210e5b62f1b15c18338e0acb937cb466a64736f6c634300080f0033",l=function(e){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=this;return n.length>1?e.apply(this,n)||this:e.call(this,s,f,n[0])||this}return a(n,e),n.prototype.deploy=function(n,r,i){return e.prototype.deploy.call(this,n,r,i||{})},n.prototype.getDeployTransaction=function(n,r,i){return e.prototype.getDeployTransaction.call(this,n,r,i||{})},n.prototype.attach=function(n){return e.prototype.attach.call(this,n)},n.prototype.connect=function(n){return e.prototype.connect.call(this,n)},n.createInterface=function(){return new o.utils.Interface(s)},n.connect=function(e,n){return new o.Contract(e,s,n)},n.bytecode=f,n.abi=s,n}(o.ContractFactory);n.VerifyingPaymaster__factory=l},53241:function(e,n,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,n,r,i){void 0===i&&(i=r);var a=Object.getOwnPropertyDescriptor(n,r);(!a||("get"in a?!n.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(e,i,a)}:function(e,n,r,i){void 0===i&&(i=r),e[i]=n[r]});n.__esModule=!0,n.VerifyingPaymaster__factory=n.TokenPaymaster__factory=n.StakeManager__factory=n.SimpleAccountFactory__factory=n.SimpleAccount__factory=n.SenderCreator__factory=n.MaliciousAccount__factory=n.IStakeManager__factory=n.IPaymaster__factory=n.IEntryPoint__factory=n.IAggregator__factory=n.IAccount__factory=n.EntryPoint__factory=n.DepositPaymaster__factory=n.BrokenBLSAccountFactory__factory=n.BrokenBLSAccount__factory=n.BasePaymaster__factory=n.BaseAccount__factory=void 0,i(n,r(11912),"BaseAccount__factory"),i(n,r(43678),"BasePaymaster__factory"),i(n,r(17588),"BrokenBLSAccount__factory"),i(n,r(28319),"BrokenBLSAccountFactory__factory"),i(n,r(22066),"DepositPaymaster__factory"),i(n,r(47229),"EntryPoint__factory"),i(n,r(51426),"IAccount__factory"),i(n,r(42942),"IAggregator__factory"),i(n,r(71817),"IEntryPoint__factory"),i(n,r(45721),"IPaymaster__factory"),i(n,r(37343),"IStakeManager__factory"),i(n,r(47217),"MaliciousAccount__factory"),i(n,r(75654),"SenderCreator__factory"),i(n,r(86942),"SimpleAccount__factory"),i(n,r(61094),"SimpleAccountFactory__factory"),i(n,r(6075),"StakeManager__factory"),i(n,r(85400),"TokenPaymaster__factory"),i(n,r(17100),"VerifyingPaymaster__factory")}
1,66358:function(e,n,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,n,r,i){void 0===i&&(i=r);var a=Object.getOwnPropertyDescriptor(n,r);(!a||("get"in a?!n.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(e,i,a)}:function(e,n,r,i){void 0===i&&(i=r),e[i]=n[r]});n.__esModule=!0,n.VerifyingPaymaster__factory=n.TokenPaymaster__factory=n.StakeManager__factory=n.SimpleAccountFactory__factory=n.SimpleAccount__factory=n.SenderCreator__factory=n.MaliciousAccount__factory=n.IStakeManager__factory=n.IPaymaster__factory=n.IEntryPoint__factory=n.IAggregator__factory=n.IAccount__factory=n.EntryPoint__factory=n.DepositPaymaster__factory=n.BrokenBLSAccountFactory__factory=n.BrokenBLSAccount__factory=n.BasePaymaster__factory=n.BaseAccount__factory=n.factories=void 0,n.factories=r(53241),i(n,r(11912),"BaseAccount__factory"),i(n,r(43678),"BasePaymaster__factory"),i(n,r(17588),"BrokenBLSAccount__factory"),i(n,r(28319),"BrokenBLSAccountFactory__factory"),i(n,r(22066),"DepositPaymaster__factory"),i(n,r(47229),"EntryPoint__factory"),i(n,r(51426),"IAccount__factory"),i(n,r(42942),"IAggregator__factory"),i(n,r(71817),"IEntryPoint__factory"),i(n,r(45721),"IPaymaster__factory"),i(n,r(37343),"IStakeManager__factory"),i(n,r(47217),"MaliciousAccount__factory"),i(n,r(75654),"SenderCreator__factory"),i(n,r(86942),"SimpleAccount__factory"),i(n,r(61094),"SimpleAccountFactory__factory"),i(n,r(6075),"StakeManager__factory"),i(n,r(85400),"TokenPaymaster__factory"),i(n,r(17100),"VerifyingPaymaster__factory")},48711:function(e,n,r){"use strict";r.d(n,{Z:function(){return G}});var i=function(){function e(e){var n=this;this._insertTag=function(e){var r;r=0===n.tags.length?n.insertionPoint?n.insertionPoint.nextSibling:n.prepend?n.container.firstChild:n.before:n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(e,r),n.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var n=e.prototype;return n.hydrate=function(e){e.forEach(this._insertTag)},n.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var n;this._insertTag(((n=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&n.setAttribute("nonce",this.nonce),n.appendChild(document.createTextNode("")),n.setAttribute("data-s",""),n))}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var i=function(e){if(e.sheet)return e.sheet;for(var n=0;n<document.styleSheets.length;n++)if(document.styleSheets[n].ownerNode===e)return document.styleSheets[n]}(r);try{i.insertRule(e,i.cssRules.length)}catch(e){}}else r.appendChild(document.createTextNode(e));this.ctr++}
vendor: 4,149 bytes, line 1
1,n.flush=function(){this.tags.forEach(function(e){var n;return null==(n=e.parentNode)?void 0:n.removeChild(e)}),this.tags=[],this.ctr=0},e}(),a=Math.abs,o=String.fromCharCode,s=Object.assign;function f(e,n,r){return e.replace(n,r)}function l(e,n){return e.indexOf(n)}function u(e,n){return 0|e.charCodeAt(n)}function c(e,n,r){return e.slice(n,r)}function d(e){return e.length}function p(e,n){return n.push(e),e}var h=1,y=1,m=0,g=0,b=0,v="";function w(e,n,r,i,a,o,s){return{value:e,root:n,parent:r,type:i,props:a,children:o,line:h,column:y,length:s,return:""}}function x(e,n){return s(w("",null,null,"",null,null,0),e,{length:-e.length},n)}function T(){return b=g<m?u(v,g++):0,y++,10===b&&(y=1,h++),b}function C(){return u(v,g)}function M(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function A(e){return h=y=1,m=d(v=e),g=0,[]}function E(e){var n,r;return(n=g-1,r=function e(n){for(;T();)switch(b){case n:return g;case 34:case 39:34!==n&&39!==n&&e(b);break;case 40:41===n&&e(n);break;case 92:T()}return g}(91===e?e+2:40===e?e+1:e),c(v,n,r)).trim()}var I="-ms-",S="-moz-",k="-webkit-",N="comm",j="rule",D="decl",_="@keyframes";function O(e,n){for(var r="",i=e.length,a=0;a<i;a++)r+=n(e[a],a,e,n)||"";return r}function P(e,n,r,i){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case D:return e.return=e.return||e.value;case N:return"";case _:return e.return=e.value+"{"+O(e.children,i)+"}";case j:e.value=e.props.join(",")}return d(r=O(e.children,i))?e.return=e.value+"{"+r+"}":""}function L(e,n,r,i,o,s,l,u,d,p,h){for(var y=o-1,m=0===o?s:[""],g=m.length,b=0,v=0,x=0;b<i;++b)for(var T=0,C=c(e,y+1,y=a(v=l[b])),M=e;T<g;++T)(M=(v>0?m[T]+" "+C:f(C,/&\f/g,m[T])).trim())&&(d[x++]=M);return w(e,n,r,0===o?j:u,d,p,h)}function R(e,n,r,i){return w(e,n,r,D,c(e,0,i),c(e,i+1,-1),i)}var z=function(e,n,r){for(var i=0,a=0;i=a,a=C(),38===i&&12===a&&(n[r]=1),!M(a);)T();return c(v,e,g)},B=function(e,n){var r=-1,i=44;do switch(M(i)){case 0:38===i&&12===C()&&(n[r]=1),e[r]+=z(g-1,n,r);break;case 2:e[r]+=E(i);break;case 4:if(44===i){e[++r]=58===C()?"&\f":"",n[r]=e[r].length;break}default:e[r]+=o(i)}while(i=T());return e},U=function(e,n){var r;return r=B(A(e),n),v="",r},F=new WeakMap,Z=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var n=e.value,r=e.parent,i=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===n.charCodeAt(0)||F.get(r))&&!i){F.set(e,!0);for(var a=[],o=U(n,a),s=r.props,f=0,l=0;f<o.length;f++)for(var u=0;u<s.length;u++,l++)e.props[l]=a[f]?o[f].replace(/&\f/g,s[u]):s[u]+" "+o[f]}}},W=function(e){if("decl"===e.type){var n=e.value;108===n.charCodeAt(0)&&98===n.charCodeAt(2)&&(e.return="",e.value="")}},H=[function(e,n,r,i){if(e.length>-1&&!e.return)switch(e.type){case D:e.return=function e(n,r){switch(45^u(n,0)?(((r<<2^u(n,0))<<2^u(n,1))<<2^u(n,2))<<2^u(n,3):0){case 5103:return k+"print-"+n+n;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return k+n+n;case 5349:case 4246:case 4810:case 6968:case 2756:return k+n+S+n+I+n+n;case 6828:case 4268:return k+n+I+n+n;case 6165:return k+n+I+"flex-"+n+n;case 5187:return k+n+f(n,/(\w+).+(:[^]+)/,k+"box-$1$2"+I+"flex-$1$2")+n;case 5443:return k+n+I+"flex-item-"+f(n,/flex-|-self/,"")+n;case 4675:return k+n+I+"flex-line-pack"+f(n,/align-content|flex-|-self/,"")+n;case 5548:return k+n+I+f(n,"shrink","negative")+n;case 5292:return k+n+I+f(n,"basis","preferred-size")+n;case 6060:return k+"box-"+f(n,"-grow","")+k+n+I+f(n,"grow","positive")+n;case 4554:return k+f(n,/([^-])(transform)/g,"$1"+k+"$2")+n;case 6187:return f(f(f(n,/(zoom-|grab)/,k+"$1"),/(image-set)/,k+"$1"),n,"")+n;case 5495:case 3959:return f(n,/(image-set\([^]*)/,k+"$1$`$1");case 4968:return f(f(n,/(.+:)(flex-)?(.*)/,k+"box-pack:$3"+I+"flex-
1pack:$3"),/s.+-b[^;]+/,"justify")+k+n+n;case 4095:case 3583:case 4068:case 2532:return f(n,/(.+)-inline(.+)/,k+"$1$2")+n;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(d(n)-1-r>6)switch(u(n,r+1)){case 109:if(45!==u(n,r+4))break;case 102:return f(n,/(.+:)(.+)-([^]+)/,"$1"+k+"$2-$3$1"+S+(108==u(n,r+3)?"$3":"$2-$3"))+n;case 115:return~l(n,"stretch")?e(f(n,"stretch","fill-available"),r)+n:n}break;case 4949:if(115!==u(n,r+1))break;case 6444:switch(u(n,d(n)-3-(~l(n,"!important")&&10))){case 107:return f(n,":",":"+k)+n;case 101:return f(n,/(.+:)([^;!]+)(;|!.+)?/,"$1"+k+(45===u(n,14)?"inline-":"")+"box$3$1"+k+"$2$3$1"+I+"$2box$3")+n}break;case 5936:switch(u(n,r+11)){case 114:return k+n+I+f(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return k+n+I+f(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return k+n+I+f(n,/[svh]\w+-[tblr]{2}/,"lr")+n}return k+n+I+n+n}return n}(e.value,e.length);break;case _:return O([x(e,{value:f(e.value,"@","@"+k)})],i);case j:if(e.length){var a,o;return a=e.props,o=function(n){var r;switch(r=n,(r=/(::plac\w+|:read-\w+)/.exec(r))?r[0]:r){case":read-only":case":read-write":return O([x(e,{props:[f(n,/:(read-\w+)/,":"+S+"$1")]})],i);case"::placeholder":return O([x(e,{props:[f(n,/:(plac\w+)/,":"+k+"input-$1")]}),x(e,{props:[f(n,/:(plac\w+)/,":"+S+"$1")]}),x(e,{props:[f(n,/:(plac\w+)/,I+"input-$1")]})],i)}return""},a.map(o).join("")}}}],G=function(e){var n,r,a,s,m,x,I=e.key;if("css"===I){var S=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(S,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var k=e.stylisPlugins||H,j={},D=[];s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+I+' "]'),function(e){for(var n=e.getAttribute("data-emotion").split(" "),r=1;r<n.length;r++)j[n[r]]=!0;D.push(e)});var _=(r=(n=[Z,W].concat(k,[P,(a=function(e){x.insert(e)},function(e){!e.root&&(e=e.return)&&a(e)})])).length,function(e,i,a,o){for(var s="",f=0;f<r;f++)s+=n[f](e,i,a,o)||"";return s}),z=function(e){var n,r;return O((r=function e(n,r,i,a,s,m,x,A,I){for(var S,k=0,j=0,D=x,_=0,O=0,P=0,z=1,B=1,U=1,F=0,Z="",W=s,H=m,G=a,q=Z;B;)switch(P=F,F=T()){case 40:if(108!=P&&58==u(q,D-1)){-1!=l(q+=f(E(F),"&","&\f"),"&\f")&&(U=-1);break}case 34:case 39:case 91:q+=E(F);break;case 9:case 10:case 13:case 32:q+=function(e){for(;b=C();)if(b<33)T();else break;return M(e)>2||M(b)>3?"":" "}(P);break;case 92:q+=function(e,n){for(var r;--n&&T()&&!(b<48)&&!(b>102)&&(!(b>57)||!(b<65))&&(!(b>70)||!(b<97)););return r=g+(n<6&&32==C()&&32==T()),c(v,e,r)}(g-1,7);continue;case 47:switch(C()){case 42:case 47:p(w(S=function(e,n){for(;T();)if(e+b===57)break;else if(e+b===84&&47===C())break;return"/*"+c(v,n,g-1)+"*"+o(47===e?e:T())}(T(),g),r,i,N,o(b),c(S,2,-2),0),I);break;default:q+="/"}break;case 123*z:A[k++]=d(q)*U;case 125*z:case 59:case 0:switch(F){case 0:case 125:B=0;case 59+j:-1==U&&(q=f(q,/\f/g,"")),O>0&&d(q)-D&&p(O>32?R(q+";",a,i,D-1):R(f(q," ","")+";",a,i,D-2),I);break;case 59:q+=";";default:if(p(G=L(q,r,i,k,j,s,A,Z,W=[],H=[],D),m),123===F){if(0===j)e(q,r,G,G,W,m,D,A,H);else switch(99===_&&110===u(q,3)?100:_){case 100:case 108:case 109:case 115:e(n,G,G,a&&p(L(n,G,G,0,0,s,A,Z,s,W=[],D),H),s,H,D,A,a?W:H);break;default:e(q,G,G,G,[""],H,0,A,H)}}}k=j=O=0,z=U=1,Z=q="",D=x;break;case 58:D=1+d(q),O=P;default:if(z<1){if(123==F)--z;else if(125==F&&0==z++&&125==(b=g>0?u(v,--g):0,y--,10===b&&(y=1,h--),b))continue}switch(q+=o(F),F*z){case 38:U=j>0?1:(q+="\f",-1);break;case 44:A[k++]=(d(q)-1)*U,U=1;break;case 64:45===C()&&(q+=E(T())),_=C(),j=D=d(Z=q+=function(e){for(;!M(C());)T();return c(v,e,g)}(g)),F++;break;case 45:45===P&&2==d(q)&&(z=0)}}return m}("",null,null,null,[""],n=A(n=e),0,[0],n),v="",r),_)};m=function(e,n,r,i){x=r,z(e?e+"{"+n.styles+"}":n.styles),i&&(B.inserted[n.name]=!0)};var B={key:I,sheet:new i({key:I,container:s,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:j,registered:{},insert:m};return B.sheet.hydrate(D),B}}
1,71068:function(e,n,r){"use strict";r.d(n,{Z:function(){return o}});var i=r(45042),a=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,o=(0,i.Z)(function(e){return a.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)})},45042:function(e,n,r){"use strict";function i(e){var n=Object.create(null);return function(r){return void 0===n[r]&&(n[r]=e(r)),n[r]}}r.d(n,{Z:function(){return i}})},38741:function(e,n,r){"use strict";r.d(n,{C:function(){return s},T:function(){return l},w:function(){return f}});var i=r(67294),a=r(48711);r(85662),r(27278);var o=i.createContext("undefined"!=typeof HTMLElement?(0,a.Z)({key:"css"}):null),s=o.Provider,f=function(e){return(0,i.forwardRef)(function(n,r){return e(n,(0,i.useContext)(o),r)})},l=i.createContext({})},70917:function(e,n,r){"use strict";r.d(n,{F4:function(){return c},iv:function(){return u},xB:function(){return l}});var i=r(38741),a=r(67294),o=r(70444),s=r(27278),f=r(85662);r(48711),r(8679);var l=(0,i.w)(function(e,n){var r=e.styles,l=(0,f.O)([r],void 0,a.useContext(i.T)),u=a.useRef();return(0,s.j)(function(){var e=n.key+"-global",r=new n.sheet.constructor({key:e,nonce:n.sheet.nonce,container:n.sheet.container,speedy:n.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+l.name+'"]');return n.sheet.tags.length&&(r.before=n.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),r.hydrate([a])),u.current=[r,i],function(){r.flush()}},[n]),(0,s.j)(function(){var e=u.current,r=e[0];if(e[1]){e[1]=!1;return}if(void 0!==l.next&&(0,o.My)(n,l.next,!0),r.tags.length){var i=r.tags[r.tags.length-1].nextElementSibling;r.before=i,r.flush()}n.insert("",l,r,!1)},[n,l.name]),null});function u(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return(0,f.O)(n)}var c=function(){var e=u.apply(void 0,arguments),n="animation-"+e.name;return{name:n,styles:"@keyframes "+n+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},85662:function(e,n,r){"use strict";r.d(n,{O:function(){return y}});var i,a={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGr
1idRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},o=r(45042),s=/[A-Z]|^ms/g,f=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},u=function(e){return null!=e&&"boolean"!=typeof e},c=(0,o.Z)(function(e){return l(e)?e:e.replace(s,"-$&").toLowerCase()}),d=function(e,n){switch(e){case"animation":case"animationName":if("string"==typeof n)return n.replace(f,function(e,n,r){return i={name:n,styles:r,next:i},n})}return 1===a[e]||l(e)||"number"!=typeof n||0===n?n:n+"px"};function p(e,n,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return i={name:r.name,styles:r.styles,next:i},r.name;if(void 0!==r.styles){var a=r.next;if(void 0!==a)for(;void 0!==a;)i={name:a.name,styles:a.styles,next:i},a=a.next;return r.styles+";"}return function(e,n,r){var i="";if(Array.isArray(r))for(var a=0;a<r.length;a++)i+=p(e,n,r[a])+";";else for(var o in r){var s=r[o];if("object"!=typeof s)null!=n&&void 0!==n[s]?i+=o+"{"+n[s]+"}":u(s)&&(i+=c(o)+":"+d(o,s)+";");else if(Array.isArray(s)&&"string"==typeof s[0]&&(null==n||void 0===n[s[0]]))for(var f=0;f<s.length;f++)u(s[f])&&(i+=c(o)+":"+d(o,s[f])+";");else{var l=p(e,n,s);switch(o){case"animation":case"animationName":i+=c(o)+":"+l+";";break;default:i+=o+"{"+l+"}"}}}return i}(e,n,r);case"function":if(void 0!==e){var o=i,s=r(e);return i=o,p(e,n,s)}}if(null==n)return r;var f=n[r];return void 0!==f?f:r}var h=/label:\s*([^\s;\n{]+)\s*(;|$)/g;function y(e,n,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var a,o=!0,s="";i=void 0;var f=e[0];null==f||void 0===f.raw?(o=!1,s+=p(r,n,f)):s+=f[0];for(var l=1;l<e.length;l++)s+=p(r,n,e[l]),o&&(s+=f[l]);h.lastIndex=0;for(var u="";null!==(a=h.exec(s));)u+="-"+a[1];return{name:function(e){for(var n,r=0,i=0,a=e.length;a>=4;++i,a-=4)n=(65535&(n=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))*1540483477+((n>>>16)*59797<<16),n^=n>>>24,r=(65535&n)*1540483477+((n>>>16)*59797<<16)^(65535&r)*1540483477+((r>>>16)*59797<<16);switch(a){case 3:r^=(255&e.charCodeAt(i+2))<<16;case 2:r^=(255&e.charCodeAt(i+1))<<8;case 1:r^=255&e.charCodeAt(i),r=(65535&r)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,(((r=(65535&r)*1540483477+((r>>>16)*59797<<16))^r>>>15)>>>0).toString(36)}(s)+u,styles:s,next:i}}},27278:function(e,n,r){"use strict";r.d(n,{L:function(){return s},j:function(){return f}});var i,a=r(67294),o=!!(i||(i=r.t(a,2))).useInsertionEffect&&(i||(i=r.t(a,2))).useInsertionEffect,s=o||function(e){return e()},f=o||a.useLayoutEffect},70444:function(e,n,r){"use strict";function i(e,n,r){var i="";return r.split(" ").forEach(function(r){void 0!==e[r]?n.push(e[r]+";"):i+=r+" "}),i}r.d(n,{My:function(){return o},fp:function(){return i},hC:function(){return a}});var a=function(e,n,r){var i=e.key+"-"+n.name;!1===r&&void 0===e.registered[i]&&(e.registered[i]=n.styles)},o=function(e,n,r){a(e,n,r);var i=e.key+"-"+n.name;if(void 0===e.inserted[n.name]){var o=n;do e.insert(n===o?"."+i:"",o,e.sheet,!0),o=o.next;while(void 0!==o)}}},95851:function(e,n,r){"use strict";r.d(n,{i:function(){return i}});let i="abi/5.7.0"},84243:function(e,n,r){"use strict";r.d(n,{R:function(){return j},$:function(){return D}});var i=r(16441),a=r(6881),o=r(1581),s=r(95851),f=r(61184),l=r(19485);class u extends f.XI{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,n){try{n=(0,l.getAddress)(n)}catch(e){this._throwError(e.message,n)}return e.writeValue(n)}decode(e){return(0,l.getAddress)((0,i.hexZeroPad)(e.readValue().toHexString(),20))}}class c extends f.XI{constructor(e){super(e.name,e.type,void 0,e.dynamic),this.coder=e}defaultValue(){return this.coder.defaultValue()}encode(e,n){return this.coder.encode(e,n)}
1decode(e){return this.coder.decode(e)}}let d=new o.Logger(s.i);function p(e,n,r){let i=null;if(Array.isArray(r))i=r;else if(r&&"object"==typeof r){let e={};i=n.map(n=>{let i=n.localName;return i||d.throwError("cannot encode object for signature with missing names",o.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:n,value:r}),e[i]&&d.throwError("cannot encode object for signature with duplicate names",o.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:n,value:r}),e[i]=!0,r[i]})}else d.throwArgumentError("invalid tuple value","tuple",r);n.length!==i.length&&d.throwArgumentError("types/value length mismatch","tuple",r);let a=new f.QV(e.wordSize),s=new f.QV(e.wordSize),l=[];return n.forEach((e,n)=>{let r=i[n];if(e.dynamic){let n=s.length;e.encode(s,r);let i=a.writeUpdatableValue();l.push(e=>{i(e+n)})}else e.encode(a,r)}),l.forEach(e=>{e(a.length)}),e.appendWriter(a)+e.appendWriter(s)}function h(e,n){let r=[],i=e.subReader(0);n.forEach(n=>{let a=null;if(n.dynamic){let r=e.readValue(),s=i.subReader(r.toNumber());try{a=n.decode(s)}catch(e){if(e.code===o.Logger.errors.BUFFER_OVERRUN)throw e;(a=e).baseType=n.name,a.name=n.localName,a.type=n.type}}else try{a=n.decode(e)}catch(e){if(e.code===o.Logger.errors.BUFFER_OVERRUN)throw e;(a=e).baseType=n.name,a.name=n.localName,a.type=n.type}void 0!=a&&r.push(a)});let a=n.reduce((e,n)=>{let r=n.localName;return r&&(e[r]||(e[r]=0),e[r]++),e},{});n.forEach((e,n)=>{let i=e.localName;if(!i||1!==a[i]||("length"===i&&(i="_length"),null!=r[i]))return;let o=r[n];o instanceof Error?Object.defineProperty(r,i,{enumerable:!0,get:()=>{throw o}}):r[i]=o});for(let e=0;e<r.length;e++){let n=r[e];n instanceof Error&&Object.defineProperty(r,e,{enumerable:!0,get:()=>{throw n}})}return Object.freeze(r)}class y extends f.XI{constructor(e,n,r){super("array",e.type+"["+(n>=0?n:"")+"]",r,-1===n||e.dynamic),this.coder=e,this.length=n}defaultValue(){let e=this.coder.defaultValue(),n=[];for(let r=0;r<this.length;r++)n.push(e);return n}encode(e,n){Array.isArray(n)||this._throwError("expected array value",n);let r=this.length;-1===r&&(r=n.length,e.writeValue(n.length)),d.checkArgumentCount(n.length,r,"coder array"+(this.localName?" "+this.localName:""));let i=[];for(let e=0;e<n.length;e++)i.push(this.coder);return p(e,i,n)}decode(e){let n=this.length;-1===n&&32*(n=e.readValue().toNumber())>e._data.length&&d.throwError("insufficient data length",o.Logger.errors.BUFFER_OVERRUN,{length:e._data.length,count:n});let r=[];for(let e=0;e<n;e++)r.push(new c(this.coder));return e.coerce(this.name,h(e,r))}}class m extends f.XI{constructor(e){super("bool","bool",e,!1)}defaultValue(){return!1}encode(e,n){return e.writeValue(n?1:0)}decode(e){return e.coerce(this.type,!e.readValue().isZero())}}class g extends f.XI{constructor(e,n){super(e,e,n,!0)}defaultValue(){return"0x"}encode(e,n){return n=(0,i.arrayify)(n),e.writeValue(n.length)+e.writeBytes(n)}decode(e){return e.readBytes(e.readValue().toNumber(),!0)}}class b extends g{constructor(e){super("bytes",e)}decode(e){return e.coerce(this.name,(0,i.hexlify)(super.decode(e)))}}class v extends f.XI{constructor(e,n){let r="bytes"+String(e);super(r,r,n,!1),this.size=e}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size)}encode(e,n){let r=(0,i.arrayify)(n);return r.length!==this.size&&this._throwError("incorrect data length",n),e.writeBytes(r)}decode(e){return e.coerce(this.name,(0,i.hexlify)(e.readBytes(this.size)))}}class w extends f.XI{constructor(e){super("null","",e,!1)}defaultValue(){return null}encode(e,n){return null!=n&&this._throwError("not null",n),e.writeBytes([])}decode(e){return e.readBytes(0),e.coerce(this.name,null)}}var x=r(2593),T=r(21046);class C extends f.XI{constructor(e,n,r){let i=(n?"int":"uint")+8*e;super(i,i,r,!1),this.size=e,this.signed=n}defaultValue(){return 0}encode(e,n){let r=x.O$.from(n),i=T.Bz.mask(8*e.wordSize);if(this.signed){let e=i.mask(8*this.size-1);(r.gt(e)||r.lt(e.add(T.fh).mul(T.tL)))&&this._throwError("value out-of-bounds",n)}else(r.lt(T._Y)||r.gt(i.mask(8*this.size)))&&this._throwError("value out-of-bounds",n);return r=r.toTwos(8*this.size).mask(8*this.size),this.signed&&(r=r.fromTwos(8*this.size).toTwos(8*e.wordSize)),e.writeValue(r)}decode(e){let n=e.readValue().mask(8*this.size);return this.signed&&(n=n.fromTwos(8*this.size)),e.coerce(this.name,n)}}var M=r(29251);class A extends g{constructor(e){super("string",e)}defaultValue(){return""}encode(e,n){return super.encode(e,(0,M.Y0)(n))}decode(e){return(0,M.ZN)(super.decode(e))}}class E extends f.XI{constructor(e,n){let r=!1,i=[];
1e.forEach(e=>{e.dynamic&&(r=!0),i.push(e.type)}),super("tuple","tuple("+i.join(",")+")",n,r),this.coders=e}defaultValue(){let e=[];this.coders.forEach(n=>{e.push(n.defaultValue())});let n=this.coders.reduce((e,n)=>{let r=n.localName;return r&&(e[r]||(e[r]=0),e[r]++),e},{});return this.coders.forEach((r,i)=>{let a=r.localName;a&&1===n[a]&&("length"===a&&(a="_length"),null==e[a]&&(e[a]=e[i]))}),Object.freeze(e)}encode(e,n){return p(e,this.coders,n)}decode(e){return e.coerce(this.name,h(e,this.coders))}}var I=r(11388);let S=new o.Logger(s.i),k=new RegExp(/^bytes([0-9]*)$/),N=new RegExp(/^(u?int)([0-9]*)$/);class j{constructor(e){(0,a.defineReadOnly)(this,"coerceFunc",e||null)}_getCoder(e){switch(e.baseType){case"address":return new u(e.name);case"bool":return new m(e.name);case"string":return new A(e.name);case"bytes":return new b(e.name);case"array":return new y(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new E((e.components||[]).map(e=>this._getCoder(e)),e.name);case"":return new w(e.name)}let n=e.type.match(N);if(n){let r=parseInt(n[2]||"256");return(0===r||r>256||r%8!=0)&&S.throwArgumentError("invalid "+n[1]+" bit length","param",e),new C(r/8,"int"===n[1],e.name)}if(n=e.type.match(k)){let r=parseInt(n[1]);return(0===r||r>32)&&S.throwArgumentError("invalid bytes length","param",e),new v(r,e.name)}return S.throwArgumentError("invalid type","type",e.type)}_getWordSize(){return 32}_getReader(e,n){return new f.Ej(e,this._getWordSize(),this.coerceFunc,n)}_getWriter(){return new f.QV(this._getWordSize())}getDefaultValue(e){return new E(e.map(e=>this._getCoder(I._R.from(e))),"_").defaultValue()}encode(e,n){e.length!==n.length&&S.throwError("types/values length mismatch",o.Logger.errors.INVALID_ARGUMENT,{count:{types:e.length,values:n.length},value:{types:e,values:n}});let r=new E(e.map(e=>this._getCoder(I._R.from(e))),"_"),i=this._getWriter();return r.encode(i,n),i.data}decode(e,n,r){return new E(e.map(e=>this._getCoder(I._R.from(e))),"_").decode(this._getReader((0,i.arrayify)(n),r))}}let D=new j},61184:function(e,n,r){"use strict";r.d(n,{BR:function(){return u},Ej:function(){return p},QV:function(){return d},XI:function(){return c}});var i=r(16441),a=r(2593),o=r(6881),s=r(1581),f=r(95851);let l=new s.Logger(f.i);function u(e){let n=[],r=function(e,i){if(Array.isArray(i))for(let a in i){let o=e.slice();o.push(a);try{r(o,i[a])}catch(e){n.push({path:o,error:e})}}};return r([],e),n}class c{constructor(e,n,r,i){this.name=e,this.type=n,this.localName=r,this.dynamic=i}_throwError(e,n){l.throwArgumentError(e,this.localName,n)}}class d{constructor(e){(0,o.defineReadOnly)(this,"wordSize",e||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(e)}get data(){return(0,i.hexConcat)(this._data)}get length(){return this._dataLength}_writeData(e){return this._data.push(e),this._dataLength+=e.length,e.length}appendWriter(e){return this._writeData((0,i.concat)(e._data))}writeBytes(e){let n=(0,i.arrayify)(e),r=n.length%this.wordSize;return r&&(n=(0,i.concat)([n,this._padding.slice(r)])),this._writeData(n)}_getValue(e){let n=(0,i.arrayify)(a.O$.from(e));return n.length>this.wordSize&&l.throwError("value out-of-bounds",s.Logger.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:n.length}),n.length%this.wordSize&&(n=(0,i.concat)([this._padding.slice(n.length%this.wordSize),n])),n}writeValue(e){return this._writeData(this._getValue(e))}writeUpdatableValue(){let e=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,n=>{this._data[e]=this._getValue(n)}}}class p{constructor(e,n,r,a){(0,o.defineReadOnly)(this,"_data",(0,i.arrayify)(e)),(0,o.defineReadOnly)(this,"wordSize",n||32),(0,o.defineReadOnly)(this,"_coerceFunc",r),(0,o.defineReadOnly)(this,"allowLoose",a),this._offset=0}get data(){return(0,i.hexlify)(this._data)}get consumed(){return this._offset}static coerce(e,n){let r=e.match("^u?int([0-9]+)$");return r&&48>=parseInt(r[1])&&(n=n.toNumber()),n}coerce(e,n){return this._coerceFunc?this._coerceFunc(e,n):p.coerce(e,n)}_peekBytes(e,n,r){let i=Math.ceil(n/this.wordSize)*this.wordSize;return this._offset+i>this._data.length&&(this.allowLoose&&r&&this._offset+n<=this._data.length?i=n:l.throwError("data out-of-bounds",s.Logger.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+i})),this._data.slice(this._offset,this._offset+i)}subReader(e){return new p(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(e,n){let r=this._peekBytes(0,e,!!n);return this._offset+=r.length,r.slice(0,e)}readValue(){return a.O$.from(this.readBytes(this.wordSize))}}},11388:function(e,n,r){"use strict";r.d(n,{HY:function(){return b},IC:function(){return E},QV:function(){return v},Xg:function(){return C},YW:function(){return M},_R:function(){return m},pc:function(){return h}});
1var i=r(2593),a=r(6881),o=r(1581),s=r(95851);let f=new o.Logger(s.i),l={},u={calldata:!0,memory:!0,storage:!0},c={calldata:!0,memory:!0};function d(e,n){if("bytes"===e||"string"===e){if(u[n])return!0}else if("address"===e){if("payable"===n)return!0}else if((e.indexOf("[")>=0||"tuple"===e)&&c[n])return!0;return(u[n]||"payable"===n)&&f.throwArgumentError("invalid modifier","name",n),!1}function p(e,n){for(let r in n)(0,a.defineReadOnly)(e,r,n[r])}let h=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),y=new RegExp(/^(.*)\[([0-9]*)\]$/);class m{constructor(e,n){e!==l&&f.throwError("use fromString",o.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),p(this,n);let r=this.type.match(y);r?p(this,{arrayLength:parseInt(r[2]||"-1"),arrayChildren:m.fromObject({type:r[1],components:this.components}),baseType:"array"}):p(this,{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}format(e){if(e||(e=h.sighash),h[e]||f.throwArgumentError("invalid format type","format",e),e===h.json){let n={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"==typeof this.indexed&&(n.indexed=this.indexed),this.components&&(n.components=this.components.map(n=>JSON.parse(n.format(e)))),JSON.stringify(n)}let n="";return"array"===this.baseType?n+=this.arrayChildren.format(e)+"["+(this.arrayLength<0?"":String(this.arrayLength))+"]":"tuple"===this.baseType?(e!==h.sighash&&(n+=this.type),n+="("+this.components.map(n=>n.format(e)).join(e===h.full?", ":",")+")"):n+=this.type,e!==h.sighash&&(!0===this.indexed&&(n+=" indexed"),e===h.full&&this.name&&(n+=" "+this.name)),n}static from(e,n){return"string"==typeof e?m.fromString(e,n):m.fromObject(e)}static fromObject(e){return m.isParamType(e)?e:new m(l,{name:e.name||null,type:I(e.type),indexed:null==e.indexed?null:!!e.indexed,components:e.components?e.components.map(m.fromObject):null})}static fromString(e,n){var r;return r=function(e,n){let r=e;function i(n){f.throwArgumentError(`unexpected character at position ${n}`,"param",e)}function a(e){let r={type:"",name:"",parent:e,state:{allowType:!0}};return n&&(r.indexed=!1),r}e=e.replace(/\s/g," ");let o={type:"",name:"",state:{allowType:!0}},s=o;for(let r=0;r<e.length;r++){let o=e[r];switch(o){case"(":s.state.allowType&&""===s.type?s.type="tuple":s.state.allowParams||i(r),s.state.allowType=!1,s.type=I(s.type),s.components=[a(s)],s=s.components[0];break;case")":delete s.state,"indexed"===s.name&&(n||i(r),s.indexed=!0,s.name=""),d(s.type,s.name)&&(s.name=""),s.type=I(s.type);let f=s;(s=s.parent)||i(r),delete f.parent,s.state.allowParams=!1,s.state.allowName=!0,s.state.allowArray=!0;break;case",":delete s.state,"indexed"===s.name&&(n||i(r),s.indexed=!0,s.name=""),d(s.type,s.name)&&(s.name=""),s.type=I(s.type);let l=a(s.parent);s.parent.components.push(l),delete s.parent,s=l;break;case" ":s.state.allowType&&""!==s.type&&(s.type=I(s.type),delete s.state.allowType,s.state.allowName=!0,s.state.allowParams=!0),s.state.allowName&&""!==s.name&&("indexed"===s.name?(n||i(r),s.indexed&&i(r),s.indexed=!0,s.name=""):d(s.type,s.name)?s.name="":s.state.allowName=!1);break;case"[":s.state.allowArray||i(r),s.type+=o,s.state.allowArray=!1,s.state.allowName=!1,s.state.readArray=!0;break;case"]":s.state.readArray||i(r),s.type+=o,s.state.readArray=!1,s.state.allowArray=!0,s.state.allowName=!0;break;default:s.state.allowType?(s.type+=o,s.state.allowParams=!0,s.state.allowArray=!0):s.state.allowName?(s.name+=o,delete s.state.allowArray):s.state.readArray?s.type+=o:i(r)}}return s.parent&&f.throwArgumentError("unexpected eof","param",e),delete o.state,"indexed"===s.name?(n||i(r.length-7),s.indexed&&i(r.length-7),s.indexed=!0,s.name=""):d(s.type,s.name)&&(s.name=""),o.type=I(o.type),o}(e,!!n),m.fromObject({name:r.name,type:r.type,indexed:r.indexed,components:r.components})}static isParamType(e){return!!(null!=e&&e._isParamType)}}function g(e,n){return(function(e){e=e.trim();let n=[],r="",i=0;for(let a=0;a<e.length;a++){let o=e[a];","===o&&0===i?(n.push(r),r=""):(r+=o,"("===o?i++:")"===o&&-1==--i&&f.throwArgumentError("unbalanced parenthesis","value",e))}return r&&n.push(r),n})(e).map(e=>m.fromString(e,n))}class b{constructor(e,n){e!==l&&f.throwError("use a static from method",o.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),p(this,n),this._isFragment=!0,Object.freeze(this)}static from(e){return b.isFragment(e)?e:"string"==typeof e?b.fromString(e):b.fromObject(e)}static fromObject(e){if(b.isFragment(e))return e;switch(e.type){case"function":return M.fromObject(e);case"event":return v.fromObject(e);case"constructor":return C.fromObject(e);case"error":return E.fromObject(e);case"fallback":case"receive":return null}return f.throwArgumentError("invalid fragment object","value",e)}
1static fromString(e){return"event"===(e=(e=(e=e.replace(/\s/g," ")).replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," ")).trim()).split(" ")[0]?v.fromString(e.substring(5).trim()):"function"===e.split(" ")[0]?M.fromString(e.substring(8).trim()):"constructor"===e.split("(")[0].trim()?C.fromString(e.trim()):"error"===e.split(" ")[0]?E.fromString(e.substring(5).trim()):f.throwArgumentError("unsupported fragment","value",e)}static isFragment(e){return!!(e&&e._isFragment)}}class v extends b{format(e){if(e||(e=h.sighash),h[e]||f.throwArgumentError("invalid format type","format",e),e===h.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(n=>JSON.parse(n.format(e)))});let n="";return e!==h.sighash&&(n+="event "),n+=this.name+"("+this.inputs.map(n=>n.format(e)).join(e===h.full?", ":",")+") ",e!==h.sighash&&this.anonymous&&(n+="anonymous "),n.trim()}static from(e){return"string"==typeof e?v.fromString(e):v.fromObject(e)}static fromObject(e){return v.isEventFragment(e)?e:("event"!==e.type&&f.throwArgumentError("invalid event object","value",e),new v(l,{name:k(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(m.fromObject):[],type:"event"}))}static fromString(e){let n=e.match(N);n||f.throwArgumentError("invalid event string","value",e);let r=!1;return n[3].split(" ").forEach(e=>{switch(e.trim()){case"anonymous":r=!0;break;case"":break;default:f.warn("unknown modifier: "+e)}}),v.fromObject({name:n[1].trim(),anonymous:r,inputs:g(n[2],!0),type:"event"})}static isEventFragment(e){return e&&e._isFragment&&"event"===e.type}}function w(e,n){n.gas=null;let r=e.split("@");return 1!==r.length?(r.length>2&&f.throwArgumentError("invalid human-readable ABI signature","value",e),r[1].match(/^[0-9]+$/)||f.throwArgumentError("invalid human-readable ABI signature gas","value",e),n.gas=i.O$.from(r[1]),r[0]):e}function x(e,n){n.constant=!1,n.payable=!1,n.stateMutability="nonpayable",e.split(" ").forEach(e=>{switch(e.trim()){case"constant":n.constant=!0;break;case"payable":n.payable=!0,n.stateMutability="payable";break;case"nonpayable":n.payable=!1,n.stateMutability="nonpayable";break;case"pure":n.constant=!0,n.stateMutability="pure";break;case"view":n.constant=!0,n.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+e)}})}function T(e){let n={constant:!1,payable:!0,stateMutability:"payable"};return null!=e.stateMutability?(n.stateMutability=e.stateMutability,n.constant="view"===n.stateMutability||"pure"===n.stateMutability,null!=e.constant&&!!e.constant!==n.constant&&f.throwArgumentError("cannot have constant function with mutability "+n.stateMutability,"value",e),n.payable="payable"===n.stateMutability,null!=e.payable&&!!e.payable!==n.payable&&f.throwArgumentError("cannot have payable function with mutability "+n.stateMutability,"value",e)):null!=e.payable?(n.payable=!!e.payable,null!=e.constant||n.payable||"constructor"===e.type||f.throwArgumentError("unable to determine stateMutability","value",e),n.constant=!!e.constant,n.constant?n.stateMutability="view":n.stateMutability=n.payable?"payable":"nonpayable",n.payable&&n.constant&&f.throwArgumentError("cannot have constant payable function","value",e)):null!=e.constant?(n.constant=!!e.constant,n.payable=!n.constant,n.stateMutability=n.constant?"view":"payable"):"constructor"!==e.type&&f.throwArgumentError("unable to determine stateMutability","value",e),n}class C extends b{format(e){if(e||(e=h.sighash),h[e]||f.throwArgumentError("invalid format type","format",e),e===h.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(n=>JSON.parse(n.format(e)))});e===h.sighash&&f.throwError("cannot format a constructor for sighash",o.Logger.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let n="constructor("+this.inputs.map(n=>n.format(e)).join(e===h.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(n+=this.stateMutability+" "),n.trim()}static from(e){return"string"==typeof e?C.fromString(e):C.fromObject(e)}static fromObject(e){if(C.isConstructorFragment(e))return e;"constructor"!==e.type&&f.throwArgumentError("invalid constructor object","value",e);let n=T(e);return n.constant&&f.throwArgumentError("constructor cannot be constant","value",e),new C(l,{name:null,type:e.type,inputs:e.inputs?e.inputs.map(m.fromObject):[],payable:n.payable,stateMutability:n.stateMutability,gas:e.gas?i.O$.from(e.gas):null})}static fromString(e){let n={type:"constructor"},r=(e=w(e,n)).match(N);return r&&"constructor"===r[1].trim()||f.throwArgumentError("invalid constructor string","value",e),n.inputs=g(r[2].trim(),!1),x(r[3].trim(),n),C.fromObject(n)}static isConstructorFragment(e){return e&&e._isFragment&&"constructor"===e.type}}class M extends C{format(e){if(e||(e=h.sighash),h[e]||f.throwArgumentError("invalid format type","format",e),e===h.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(n=>JSON.parse(n.format(e))),outputs:this.outputs.map(n=>JSON.parse(n.format(e)))});let n="";return e!==h.sighash&&(n+="function "),n+=this.name+"("+this.inputs.map(n=>n.format(e)).join(e===h.full?", ":",")+") ",e!==h.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(n+=this.stateMutability+" "):this.constant&&(n+="view "),this.outputs&&this.outputs.length&&(n+="returns ("+this.outputs.map(n=>n.format(e)).join(", ")+") "),null!=this.gas&&(n+="@"+this.gas.toString()+" ")),n.trim()}static from(e){return"string"==typeof e?M.fromString(e):M.fromObject(e)}static fromObject(e){if(M.isFunctionFragment(e))return e;"function"!==e.type&&f.throwArgumentError("invalid function object","value",e);let n=T(e);return new M(l,{type:e.type,name:k(e.name),constant:n.constant,inputs:e.inputs?e.inputs.map(m.fromObject):[],outputs:e.outputs?e.outputs.map(m.fromObject):[],payable:n.payable,stateMutability:n.stateMutability,gas:e.gas?i.O$.from(e.gas):null})}static fromString(e){let n={type:"function"},r=(e=w(e,n)).split(" returns ");r.length>2&&f.throwArgumentError("invalid function string","value",e);let i=r[0].match(N);if(i||f.throwArgumentError("invalid function signature","value",e),n.name=i[1].trim(),n.name&&k(n.name),n.inputs=g(i[2],!1),x(i[3].trim(),n),r.length>1){let i=r[1].match(N);(""!=i[1].trim()||""!=i[3].trim())&&f.throwArgumentError("unexpected tokens","value",e),n.outputs=g(i[2],!1)}else n.outputs=[];return M.fromObject(n)}static isFunctionFragment(e){return e&&e._isFragment&&"function"===e.type}}function A(e){let n=e.format();return("Error(string)"===n||"Panic(uint256)"===n)&&f.throwArgumentError(`cannot specify user defined ${n} error`,"fragment",e),e}class E extends b{format(e){if(e||(e=h.sighash),h[e]||f.throwArgumentError("invalid format type","format",e),e===h.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(n=>JSON.parse(n.format(e)))});let n="";return e!==h.sighash&&(n+="error "),(n+=this.name+"("+this.inputs.map(n=>n.format(e)).join(e===h.full?", ":",")+") ").trim()}static from(e){return"string"==typeof e?E.fromString(e):E.fromObject(e)}static fromObject(e){return E.isErrorFragment(e)?e:("error"!==e.type&&f.throwArgumentError("invalid error object","value",e),A(new E(l,{type:e.type,name:k(e.name),inputs:e.inputs?e.inputs.map(m.fromObject):[]})))}static fromString(e){let n={type:"error"},r=e.match(N);return r||f.throwArgumentError("invalid error signature","value",e),n.name=r[1].trim(),n.name&&k(n.name),n.inputs=g(r[2],!1),A(E.fromObject(n))}static isErrorFragment(e){return e&&e._isFragment&&"error"===e.type}}function I(e){return e.match(/^uint($|[^1-9])/)?e="uint256"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e="int256"+e.substring(3)),e}let S=RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function k(e){return e&&e.match(S)||f.throwArgumentError(`invalid identifier "${e}"`,"value",e),e}let N=RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$")},83893:function(e,n,r){"use strict";r.r(n),r.d(n,{AbiCoder:function(){return a.R},ConstructorFragment:function(){return i.Xg},ErrorFragment:function(){return i.IC},EventFragment:function(){return i.QV},FormatTypes:function(){return i.pc},Fragment:function(){return i.HY},FunctionFragment:function(){return i.YW},Indexed:function(){return o.Hk},Interface:function(){return o.vU},LogDescription:function(){return o.CC},ParamType:function(){return i._R},TransactionDescription:function(){return o.vk},checkResultErrors:function(){return s.BR},defaultAbiCoder:function(){return a.$}});var i=r(11388),a=r(84243),o=r(8198),s=r(61184)},8198:function(e,n,r){"use strict";r.d(n,{CC:function(){return y},Hk:function(){return b},vU:function(){return x},vk:function(){return m}});
1var i=r(19485),a=r(2593),o=r(16441),s=r(32046),f=r(38197),l=r(6881),u=r(84243),c=r(11388),d=r(1581),p=r(95851);let h=new d.Logger(p.i);class y extends l.Description{}class m extends l.Description{}class g extends l.Description{}class b extends l.Description{static isIndexed(e){return!!(e&&e._isIndexed)}}let v={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function w(e,n){let r=Error(`deferred error during ABI decoding triggered accessing ${e}`);return r.error=n,r}class x{constructor(e){let n=[];n="string"==typeof e?JSON.parse(e):e,(0,l.defineReadOnly)(this,"fragments",n.map(e=>c.HY.from(e)).filter(e=>null!=e)),(0,l.defineReadOnly)(this,"_abiCoder",(0,l.getStatic)(new.target,"getAbiCoder")()),(0,l.defineReadOnly)(this,"functions",{}),(0,l.defineReadOnly)(this,"errors",{}),(0,l.defineReadOnly)(this,"events",{}),(0,l.defineReadOnly)(this,"structs",{}),this.fragments.forEach(e=>{let n=null;switch(e.type){case"constructor":if(this.deploy){h.warn("duplicate definition - constructor");return}(0,l.defineReadOnly)(this,"deploy",e);return;case"function":n=this.functions;break;case"event":n=this.events;break;case"error":n=this.errors;break;default:return}let r=e.format();if(n[r]){h.warn("duplicate definition - "+r);return}n[r]=e}),this.deploy||(0,l.defineReadOnly)(this,"deploy",c.Xg.from({payable:!1,type:"constructor"})),(0,l.defineReadOnly)(this,"_isInterface",!0)}format(e){e||(e=c.pc.full),e===c.pc.sighash&&h.throwArgumentError("interface does not support formatting sighash","format",e);let n=this.fragments.map(n=>n.format(e));return e===c.pc.json?JSON.stringify(n.map(e=>JSON.parse(e))):n}static getAbiCoder(){return u.$}static getAddress(e){return(0,i.getAddress)(e)}static getSighash(e){return(0,o.hexDataSlice)((0,s.id)(e.format()),0,4)}static getEventTopic(e){return(0,s.id)(e.format())}getFunction(e){if((0,o.isHexString)(e)){for(let n in this.functions)if(e===this.getSighash(n))return this.functions[n];h.throwArgumentError("no matching function","sighash",e)}if(-1===e.indexOf("(")){let n=e.trim(),r=Object.keys(this.functions).filter(e=>e.split("(")[0]===n);return 0===r.length?h.throwArgumentError("no matching function","name",n):r.length>1&&h.throwArgumentError("multiple matching functions","name",n),this.functions[r[0]]}let n=this.functions[c.YW.fromString(e).format()];return n||h.throwArgumentError("no matching function","signature",e),n}getEvent(e){if((0,o.isHexString)(e)){let n=e.toLowerCase();for(let e in this.events)if(n===this.getEventTopic(e))return this.events[e];h.throwArgumentError("no matching event","topichash",n)}if(-1===e.indexOf("(")){let n=e.trim(),r=Object.keys(this.events).filter(e=>e.split("(")[0]===n);return 0===r.length?h.throwArgumentError("no matching event","name",n):r.length>1&&h.throwArgumentError("multiple matching events","name",n),this.events[r[0]]}let n=this.events[c.QV.fromString(e).format()];return n||h.throwArgumentError("no matching event","signature",e),n}getError(e){if((0,o.isHexString)(e)){let n=(0,l.getStatic)(this.constructor,"getSighash");for(let r in this.errors)if(e===n(this.errors[r]))return this.errors[r];h.throwArgumentError("no matching error","sighash",e)}if(-1===e.indexOf("(")){let n=e.trim(),r=Object.keys(this.errors).filter(e=>e.split("(")[0]===n);return 0===r.length?h.throwArgumentError("no matching error","name",n):r.length>1&&h.throwArgumentError("multiple matching errors","name",n),this.errors[r[0]]}let n=this.errors[c.YW.fromString(e).format()];return n||h.throwArgumentError("no matching error","signature",e),n}getSighash(e){if("string"==typeof e)try{e=this.getFunction(e)}catch(n){try{e=this.getError(e)}catch(e){throw n}}return(0,l.getStatic)(this.constructor,"getSighash")(e)}getEventTopic(e){return"string"==typeof e&&(e=this.getEvent(e)),(0,l.getStatic)(this.constructor,"getEventTopic")(e)}_decodeParams(e,n){return this._abiCoder.decode(e,n)}_encodeParams(e,n){return this._abiCoder.encode(e,n)}encodeDeploy(e){return this._encodeParams(this.deploy.inputs,e||[])}decodeErrorResult(e,n){"string"==typeof e&&(e=this.getError(e));let r=(0,o.arrayify)(n);return(0,o.hexlify)(r.slice(0,4))!==this.getSighash(e)&&h.throwArgumentError(`data signature does not match error ${e.name}.`,"data",(0,o.hexlify)(r)),this._decodeParams(e.inputs,r.slice(4))}encodeErrorResult(e,n){return"string"==typeof e&&(e=this.getError(e)),(0,o.hexlify)((0,o.concat)([this.get
1Sighash(e),this._encodeParams(e.inputs,n||[])]))}decodeFunctionData(e,n){"string"==typeof e&&(e=this.getFunction(e));let r=(0,o.arrayify)(n);return(0,o.hexlify)(r.slice(0,4))!==this.getSighash(e)&&h.throwArgumentError(`data signature does not match function ${e.name}.`,"data",(0,o.hexlify)(r)),this._decodeParams(e.inputs,r.slice(4))}encodeFunctionData(e,n){return"string"==typeof e&&(e=this.getFunction(e)),(0,o.hexlify)((0,o.concat)([this.getSighash(e),this._encodeParams(e.inputs,n||[])]))}decodeFunctionResult(e,n){"string"==typeof e&&(e=this.getFunction(e));let r=(0,o.arrayify)(n),i=null,a="",s=null,f=null,l=null;switch(r.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,r)}catch(e){}break;case 4:{let e=(0,o.hexlify)(r.slice(0,4)),n=v[e];if(n)s=this._abiCoder.decode(n.inputs,r.slice(4)),f=n.name,l=n.signature,n.reason&&(i=s[0]),"Error"===f?a=`; VM Exception while processing transaction: reverted with reason string ${JSON.stringify(s[0])}`:"Panic"===f&&(a=`; VM Exception while processing transaction: reverted with panic code ${s[0]}`);else try{let n=this.getError(e);s=this._abiCoder.decode(n.inputs,r.slice(4)),f=n.name,l=n.format()}catch(e){}}}return h.throwError("call revert exception"+a,d.Logger.errors.CALL_EXCEPTION,{method:e.format(),data:(0,o.hexlify)(n),errorArgs:s,errorName:f,errorSignature:l,reason:i})}encodeFunctionResult(e,n){return"string"==typeof e&&(e=this.getFunction(e)),(0,o.hexlify)(this._abiCoder.encode(e.outputs,n||[]))}encodeFilterTopics(e,n){"string"==typeof e&&(e=this.getEvent(e)),n.length>e.inputs.length&&h.throwError("too many arguments for "+e.format(),d.Logger.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:n});let r=[];e.anonymous||r.push(this.getEventTopic(e));let i=(e,n)=>"string"===e.type?(0,s.id)(n):"bytes"===e.type?(0,f.keccak256)((0,o.hexlify)(n)):("bool"===e.type&&"boolean"==typeof n&&(n=n?"0x01":"0x00"),e.type.match(/^u?int/)&&(n=a.O$.from(n).toHexString()),"address"===e.type&&this._abiCoder.encode(["address"],[n]),(0,o.hexZeroPad)((0,o.hexlify)(n),32));for(n.forEach((n,a)=>{let o=e.inputs[a];if(!o.indexed){null!=n&&h.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+o.name,n);return}null==n?r.push(null):"array"===o.baseType||"tuple"===o.baseType?h.throwArgumentError("filtering with tuples or arrays not supported","contract."+o.name,n):Array.isArray(n)?r.push(n.map(e=>i(o,e))):r.push(i(o,n))});r.length&&null===r[r.length-1];)r.pop();return r}encodeEventLog(e,n){"string"==typeof e&&(e=this.getEvent(e));let r=[],i=[],a=[];return e.anonymous||r.push(this.getEventTopic(e)),n.length!==e.inputs.length&&h.throwArgumentError("event arguments/values mismatch","values",n),e.inputs.forEach((e,o)=>{let l=n[o];if(e.indexed){if("string"===e.type)r.push((0,s.id)(l));else if("bytes"===e.type)r.push((0,f.keccak256)(l));else if("tuple"===e.baseType||"array"===e.baseType)throw Error("not implemented");else r.push(this._abiCoder.encode([e.type],[l]))}else i.push(e),a.push(l)}),{data:this._abiCoder.encode(i,a),topics:r}}decodeEventLog(e,n,r){if("string"==typeof e&&(e=this.getEvent(e)),null!=r&&!e.anonymous){let n=this.getEventTopic(e);(0,o.isHexString)(r[0],32)&&r[0].toLowerCase()===n||h.throwError("fragment/topic mismatch",d.Logger.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:n,value:r[0]}),r=r.slice(1)}let i=[],a=[],s=[];e.inputs.forEach((e,n)=>{e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(i.push(c._R.fromObject({type:"bytes32",name:e.name})),s.push(!0)):(i.push(e),s.push(!1)):(a.push(e),s.push(!1))});let f=null!=r?this._abiCoder.decode(i,(0,o.concat)(r)):null,l=this._abiCoder.decode(a,n,!0),u=[],p=0,y=0;e.inputs.forEach((e,n)=>{if(e.indexed){if(null==f)u[n]=new b({_isIndexed:!0,hash:null});else if(s[n])u[n]=new b({_isIndexed:!0,hash:f[y++]});else try{u[n]=f[y++]}catch(e){u[n]=e}}else try{u[n]=l[p++]}catch(e){u[n]=e}if(e.name&&null==u[e.name]){let r=u[n];r instanceof Error?Object.defineProperty(u,e.name,{enumerable:!0,get:()=>{throw w(`property ${JSON.stringify(e.name)}`,r)}}):u[e.name]=r}});for(let e=0;e<u.length;e++){let n=u[e];n instanceof Error&&Object.defineProperty(u,e,{enumerable:!0,get:()=>{throw w(`index ${e}`,n)}})}return Object.freeze(u)}parseTransaction(e){let n=this.getFunction(e.data.substring(0,10).toLowerCase());return n?new m({args:this._abiCoder.decode(n.inputs,"0x"+e.data.substring(10)),functionFragment:n,name:n.name,signature:n.format(),sighash:this.getSighash(n),value:a.O$.from(e.value||"0")}):null}parseLog(e){let n=this.getEvent(e.topics[0]);return!n||n.anonymous?null:new y({eventFragment:n,name:n.name,signature:n.format(),topic:this.getEventTopic(n),args:this.decodeEventLog(n,e.data,e.topics)})}parseError(e){let n=(0,o.hexlify)(e),r=this.getError(n.substring(0,10).toLowerCase());return r?new g({args:this._abiCoder.decode(r.inputs,"0x"+n.substring(10)),errorFragment:r,name:r.name,signature:r.format(),sighash:this.getSighash(r)}):null}static isInterface(e){return!!(e&&e._isInterface)}}},81556:function(e,n,r){"use strict";r.r(n),r.d(n,{BlockForkEvent:function(){return l},ForkEvent:function(){return f},Provider:function(){return d},TransactionForkEvent:function(){return u},TransactionOrderForkEvent:function(){return c}});
1var i=r(2593),a=r(16441),o=r(6881);let s=new(r(1581)).Logger("abstract-provider/5.7.0");class f extends o.Description{static isForkEvent(e){return!!(e&&e._isForkEvent)}}class l extends f{constructor(e,n){(0,a.isHexString)(e,32)||s.throwArgumentError("invalid blockHash","blockHash",e),super({_isForkEvent:!0,_isBlockForkEvent:!0,expiry:n||0,blockHash:e})}}class u extends f{constructor(e,n){(0,a.isHexString)(e,32)||s.throwArgumentError("invalid transaction hash","hash",e),super({_isForkEvent:!0,_isTransactionForkEvent:!0,expiry:n||0,hash:e})}}class c extends f{constructor(e,n,r){(0,a.isHexString)(e,32)||s.throwArgumentError("invalid transaction hash","beforeHash",e),(0,a.isHexString)(n,32)||s.throwArgumentError("invalid transaction hash","afterHash",n),super({_isForkEvent:!0,_isTransactionOrderForkEvent:!0,expiry:r||0,beforeHash:e,afterHash:n})}}class d{constructor(){s.checkAbstract(new.target,d),(0,o.defineReadOnly)(this,"_isProvider",!0)}getFeeData(){var e,n,r,a;return e=this,n=void 0,r=void 0,a=function*(){let{block:e,gasPrice:n}=yield(0,o.resolveProperties)({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch(e=>null)}),r=null,a=null,s=null;return e&&e.baseFeePerGas&&(r=e.baseFeePerGas,s=i.O$.from("1500000000"),a=e.baseFeePerGas.mul(2).add(s)),{lastBaseFeePerGas:r,maxFeePerGas:a,maxPriorityFeePerGas:s,gasPrice:n}},new(r||(r=Promise))(function(i,o){function s(e){try{l(a.next(e))}catch(e){o(e)}}function f(e){try{l(a.throw(e))}catch(e){o(e)}}function l(e){var n;e.done?i(e.value):((n=e.value)instanceof r?n:new r(function(e){e(n)})).then(s,f)}l((a=a.apply(e,n||[])).next())})}addListener(e,n){return this.on(e,n)}removeListener(e,n){return this.off(e,n)}static isProvider(e){return!!(e&&e._isProvider)}}},48088:function(e,n,r){"use strict";r.r(n),r.d(n,{Signer:function(){return u},VoidSigner:function(){return c}});var i=r(6881),a=r(1581),o=function(e,n,r,i){return new(r||(r=Promise))(function(a,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function f(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var n;e.done?a(e.value):((n=e.value)instanceof r?n:new r(function(e){e(n)})).then(s,f)}l((i=i.apply(e,n||[])).next())})};let s=new a.Logger("abstract-signer/5.7.0"),f=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],l=[a.Logger.errors.INSUFFICIENT_FUNDS,a.Logger.errors.NONCE_EXPIRED,a.Logger.errors.REPLACEMENT_UNDERPRICED];class u{constructor(){s.checkAbstract(new.target,u),(0,i.defineReadOnly)(this,"_isSigner",!0)}getBalance(e){return o(this,void 0,void 0,function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),e)})}getTransactionCount(e){return o(this,void 0,void 0,function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),e)})}estimateGas(e){return o(this,void 0,void 0,function*(){this._checkProvider("estimateGas");let n=yield(0,i.resolveProperties)(this.checkTransaction(e));return yield this.provider.estimateGas(n)})}call(e,n){return o(this,void 0,void 0,function*(){this._checkProvider("call");let r=yield(0,i.resolveProperties)(this.checkTransaction(e));return yield this.provider.call(r,n)})}sendTransaction(e){return o(this,void 0,void 0,function*(){this._checkProvider("sendTransaction");let n=yield this.populateTransaction(e),r=yield this.signTransaction(n);return yield this.provider.sendTransaction(r)})}getChainId(){return o(this,void 0,void 0,function*(){return this._checkProvider("getChainId"),(yield this.provider.getNetwork()).chainId})}getGasPrice(){return o(this,void 0,void 0,function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()})}getFeeData(){return o(this,void 0,void 0,function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()})}resolveName(e){return o(this,void 0,void 0,function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(e)})}checkTransaction(e){for(let n in e)-1===f.indexOf(n)&&s.throwArgumentError("invalid transaction key: "+n,"transaction",e);let n=(0,i.shallowCopy)(e);return null==n.from?n.from=this.getAddress():n.from=Promise.all([Promise.resolve(n.from),this.getAddress()]).then(n=>(n[0].toLowerCase()!==n[1].toLowerCase()&&s.throwArgumentError("from address mismatch","transaction",e),n[0])),n}populateTransaction(e){return o(this,void 0,void 0,function*(){let n=yield(0,i.resolveProperties)(this.checkTransaction(e));null!=n.to&&(n.to=Promise.resolve(n.to).then(e=>o(this,void 0,void 0,function*(){if(null==e)return null;let n=yield this.resolveName(e);return null==n&&s.throwArgumentError("provided ENS name resolves to null","tx.to",e),n})),n.to.catch(e=>{}));let r=null!=n.maxFeePerGas||null!=n.maxPriorityFeePerGas;if(null!=n.gasPrice&&(2===n.type||r)?s.throwArgumentError("eip-1559 transaction do n
1ot support gasPrice","transaction",e):(0===n.type||1===n.type)&&r&&s.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",e),(2===n.type||null==n.type)&&null!=n.maxFeePerGas&&null!=n.maxPriorityFeePerGas)n.type=2;else if(0===n.type||1===n.type)null==n.gasPrice&&(n.gasPrice=this.getGasPrice());else{let e=yield this.getFeeData();if(null==n.type){if(null!=e.maxFeePerGas&&null!=e.maxPriorityFeePerGas){if(n.type=2,null!=n.gasPrice){let e=n.gasPrice;delete n.gasPrice,n.maxFeePerGas=e,n.maxPriorityFeePerGas=e}else null==n.maxFeePerGas&&(n.maxFeePerGas=e.maxFeePerGas),null==n.maxPriorityFeePerGas&&(n.maxPriorityFeePerGas=e.maxPriorityFeePerGas)}else null!=e.gasPrice?(r&&s.throwError("network does not support EIP-1559",a.Logger.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),null==n.gasPrice&&(n.gasPrice=e.gasPrice),n.type=0):s.throwError("failed to get consistent fee data",a.Logger.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"})}else 2===n.type&&(null==n.maxFeePerGas&&(n.maxFeePerGas=e.maxFeePerGas),null==n.maxPriorityFeePerGas&&(n.maxPriorityFeePerGas=e.maxPriorityFeePerGas))}return null==n.nonce&&(n.nonce=this.getTransactionCount("pending")),null==n.gasLimit&&(n.gasLimit=this.estimateGas(n).catch(e=>{if(l.indexOf(e.code)>=0)throw e;return s.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",a.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,tx:n})})),null==n.chainId?n.chainId=this.getChainId():n.chainId=Promise.all([Promise.resolve(n.chainId),this.getChainId()]).then(n=>(0!==n[1]&&n[0]!==n[1]&&s.throwArgumentError("chainId address mismatch","transaction",e),n[0])),yield(0,i.resolveProperties)(n)})}_checkProvider(e){this.provider||s.throwError("missing provider",a.Logger.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}static isSigner(e){return!!(e&&e._isSigner)}}class c extends u{constructor(e,n){super(),(0,i.defineReadOnly)(this,"address",e),(0,i.defineReadOnly)(this,"provider",n||null)}getAddress(){return Promise.resolve(this.address)}_fail(e,n){return Promise.resolve().then(()=>{s.throwError(e,a.Logger.errors.UNSUPPORTED_OPERATION,{operation:n})})}signMessage(e){return this._fail("VoidSigner cannot sign messages","signMessage")}signTransaction(e){return this._fail("VoidSigner cannot sign transactions","signTransaction")}_signTypedData(e,n,r){return this._fail("VoidSigner cannot sign typed data","signTypedData")}connect(e){return new c(this.address,e)}}},19485:function(e,n,r){"use strict";r.r(n),r.d(n,{getAddress:function(){return p},getContractAddress:function(){return m},getCreate2Address:function(){return g},getIcapAddress:function(){return y},isAddress:function(){return h}});var i=r(16441),a=r(2593),o=r(38197),s=r(59052);let f=new(r(1581)).Logger("address/5.7.0");function l(e){(0,i.isHexString)(e,20)||f.throwArgumentError("invalid address","address",e);let n=(e=e.toLowerCase()).substring(2).split(""),r=new Uint8Array(40);for(let e=0;e<40;e++)r[e]=n[e].charCodeAt(0);let a=(0,i.arrayify)((0,o.keccak256)(r));for(let e=0;e<40;e+=2)a[e>>1]>>4>=8&&(n[e]=n[e].toUpperCase()),(15&a[e>>1])>=8&&(n[e+1]=n[e+1].toUpperCase());return"0x"+n.join("")}let u={};for(let e=0;e<10;e++)u[String(e)]=String(e);for(let e=0;e<26;e++)u[String.fromCharCode(65+e)]=String(10+e);let c=Math.floor(Math.log10?Math.log10(9007199254740991):Math.log(9007199254740991)/Math.LN10);function d(e){let n=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map(e=>u[e]).join("");for(;n.length>=c;){let e=n.substring(0,c);n=parseInt(e,10)%97+n.substring(e.length)}let r=String(98-parseInt(n,10)%97);for(;r.length<2;)r="0"+r;return r}function p(e){let n=null;if("string"!=typeof e&&f.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==e.substring(0,2)&&(e="0x"+e),n=l(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&n!==e&&f.throwArgumentError("bad address checksum","address",e);else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==d(e)&&f.throwArgumentError("bad icap checksum","address",e),n=(0,a.g$)(e.substring(4));n.length<40;)n="0"+n;n=l("0x"+n)}else f.throwArgumentError("invalid address","address",e);return n}function h(e){try{return p(e),!0}catch(e){}return!1}function y(e){let n=(0,a.t2)(p(e).substring(2)).toUpperCase();for(;n.length<30;)n="0"+n;return"XE"+d("XE00"+n)+n}function m(e){let n=null;try{n=p(e.from)}catch(n){f.throwArgumentError("missing from address","transaction",e)}let r=(0,i.stripZeros)((0,i.arrayify)(a.O$.from(e.nonce).toHexString()));return p((0,i.hexDataSlice)((0,o.keccak256)((0,s.encode)([n,r])),12))}function g(e,n,r){return 32!==(0,i.hexDataLength)(n)&&f.throwArgumentError("salt must be 32 bytes","salt",n),32!==(0,i.hexDataLength)(r)&&f.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",r),p((0,i.hexDataSlice)((0,o.keccak256)((0,i.concat)(["0xff",p(e),n,r])),12))}},59567:function(e,n,r){"use strict";r.d(n,{J:function(){return a},c:function(){return o}});var i=r(16441);function a(e){e=atob(e);let n=[];for(let r=0;r<e.length;r++)n.push(e.charCodeAt(r));return(0,i.arrayify)(n)}function o(e){e=(0,i.arrayify)(e);let n="";for(let r=0;r<e.length;r++)n+=String.fromCharCode(e[r]);return btoa(n)}},4089:function(e,n,r){"use strict";r.r(n),r.d(n,{decode:function(){return i.J},encode:function(){return i.c}});var i=r(59567)},57727:function(e,n,r){"use strict";r.r(n),r.d(n,{Base32:function(){return s},Base58:function(){return f},BaseX:function(){return o}});var i=r(16441),a=r(6881);class o{constructor(e){(0,a.defineReadOnly)(this,"alphabet",e),(0,a.defineReadOnly)(this,"base",e.length),(0,a.defineReadOnly)(this,"_alphabetMap",{}),(0,a.defineReadOnly)(this,"_leader",e.charAt(0));for(let n=0;n<e.length;n++)this._alphabetMap[e.charAt(n)]=n}encode(e){let n=(0,i.arrayify)(e);if(0===n.length)return"";let r=[0];for(let e=0;e<n.length;++e){let i=n[e];for(let e=0;e<r.length;++e)i+=r[e]<<8,r[e]=i%this.base,i=i/this.base|0;for(;i>0;)r.push(i%this.base),i=i/this.base|0}let a="";for(let e=0;0===n[e]&&e<n.length-1;++e)a+=this._leader;for(let e=r.length-1;e>=0;--e)a+=this.alphabet[r[e]];return a}decode(e){if("string"!=typeof e)throw TypeError("Expected String");let n=[];if(0===e.length)return new Uint8Array(n);n.push(0);for(let r=0;r<e.length;r++){let i=this._alphabetMap[e[r]];if(void 0===i)throw Error("Non-base"+this.base+" character");let a=i;for(let e=0;e<n.length;++e)a+=n[e]*this.base,n[e]=255&a,a>>=8;for(;a>0;)n.push(255&a),a>>=8}for(let r=0;e[r]===this._leader&&r<e.length-1;++r)n.push(0);return(0,i.arrayify)(new Uint8Array(n.reverse()))}}let s=new o("abcdefghijklmnopqrstuvwxyz234567"),f=new o("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},48794:function(e,n,r){"use strict";r.d(n,{i:function(){return i}});let i="bignumber/5.7.0"},2593:function(e,n,r){"use strict";r.d(n,{O$:function(){return h},Zm:function(){return d},g$:function(){return v},t2:function(){return w}});var i=r(13550),a=r.n(i),o=r(16441),s=r(1581),f=r(48794),l=a().BN;let u=new s.Logger(f.i),c={};function d(e){return null!=e&&(h.isBigNumber(e)||"number"==typeof e&&e%1==0||"string"==typeof e&&!!e.match(/^-?[0-9]+$/)||(0,o.isHexString)(e)||"bigint"==typeof e||(0,o.isBytes)(e))}let p=!1;class h{constructor(e,n){e!==c&&u.throwError("cannot call constructor directly; use BigNumber.from",s.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=n,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return m(g(this).fromTwos(e))}toTwos(e){return m(g(this).toTwos(e))}abs(){return"-"===this._hex[0]?h.from(this._hex.substring(1)):this}add(e){return m(g(this).add(g(e)))}sub(e){return m(g(this).sub(g(e)))}div(e){return h.from(e).isZero()&&b("division-by-zero","div"),m(g(this).div(g(e)))}mul(e){return m(g(this).mul(g(e)))}mod(e){let n=g(e);return n.isNeg()&&b("division-by-zero","mod"),m(g(this).umod(n))}pow(e){let n=g(e);return n.isNeg()&&b("negative-power","pow"),m(g(this).pow(n))}and(e){let n=g(e);return(this.isNegative()||n.isNeg())&&b("unbound-bitwise-result","and"),m(g(this).and(n))}or(e){let n=g(e);return(this.isNegative()||n.isNeg())&&b("unbound-bitwise-result","or"),m(g(this).or(n))}xor(e){let n=g(e);return(this.isNegative()||n.isNeg())&&b("unbound-bitwise-result","xor"),m(g(this).xor(n))}mask(e){return(this.isNegative()||e<0)&&b("negative-width","mask"),m(g(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&b("negative-width","shl"),m(g(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&b("negative-width","shr"),m(g(this).shrn(e))}eq(e){return g(this).eq(g(e))}lt(e){return g(this).lt(g(e))}lte(e){return g(this).lte(g(e))}gt(e){return g(this).gt(g(e))}gte(e){return g(this).gte(g(e))}isNegative(){return"-"===this._hex[0]}isZero(){return g(this).isZero()}toNumber(){try{return g(this).toNumber()}catch(e){b("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(e){}return u.throwError("this platform does not support BigInt",s.Logger.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?p||(p=!0,u.warn("BigNumber.toString does not accept any parameters;
1 base-10 is assumed")):16===arguments[0]?u.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",s.Logger.errors.UNEXPECTED_ARGUMENT,{}):u.throwError("BigNumber.toString does not accept parameters",s.Logger.errors.UNEXPECTED_ARGUMENT,{})),g(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof h)return e;if("string"==typeof e)return e.match(/^-?0x[0-9a-f]+$/i)?new h(c,y(e)):e.match(/^-?[0-9]+$/)?new h(c,y(new l(e))):u.throwArgumentError("invalid BigNumber string","value",e);if("number"==typeof e)return e%1&&b("underflow","BigNumber.from",e),(e>=9007199254740991||e<=-9007199254740991)&&b("overflow","BigNumber.from",e),h.from(String(e));if("bigint"==typeof e)return h.from(e.toString());if((0,o.isBytes)(e))return h.from((0,o.hexlify)(e));if(e){if(e.toHexString){let n=e.toHexString();if("string"==typeof n)return h.from(n)}else{let n=e._hex;if(null==n&&"BigNumber"===e.type&&(n=e.hex),"string"==typeof n&&((0,o.isHexString)(n)||"-"===n[0]&&(0,o.isHexString)(n.substring(1))))return h.from(n)}}return u.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!!(e&&e._isBigNumber)}}function y(e){if("string"!=typeof e)return y(e.toString(16));if("-"===e[0])return("-"===(e=e.substring(1))[0]&&u.throwArgumentError("invalid hex","value",e),"0x00"===(e=y(e)))?e:"-"+e;if("0x"!==e.substring(0,2)&&(e="0x"+e),"0x"===e)return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&"0x00"===e.substring(0,4);)e="0x"+e.substring(4);return e}function m(e){return h.from(y(e))}function g(e){let n=h.from(e).toHexString();return"-"===n[0]?new l("-"+n.substring(3),16):new l(n.substring(2),16)}function b(e,n,r){let i={fault:e,operation:n};return null!=r&&(i.value=r),u.throwError(e,s.Logger.errors.NUMERIC_FAULT,i)}function v(e){return new l(e,36).toString(16)}function w(e){return new l(e,16).toString(36)}},20335:function(e,n,r){"use strict";r.d(n,{Ox:function(){return m},S5:function(){return y},xO:function(){return g},xs:function(){return b}});var i=r(16441),a=r(1581),o=r(48794),s=r(2593);let f=new a.Logger(o.i),l={},u=s.O$.from(0),c=s.O$.from(-1);function d(e,n,r,i){let o={fault:n,operation:r};return void 0!==i&&(o.value=i),f.throwError(e,a.Logger.errors.NUMERIC_FAULT,o)}let p="0";for(;p.length<256;)p+=p;function h(e){if("number"!=typeof e)try{e=s.O$.from(e).toNumber()}catch(e){}return"number"==typeof e&&e>=0&&e<=256&&!(e%1)?"1"+p.substring(0,e):f.throwArgumentError("invalid decimal size","decimals",e)}function y(e,n){null==n&&(n=0);let r=h(n),i=(e=s.O$.from(e)).lt(u);i&&(e=e.mul(c));let a=e.mod(r).toString();for(;a.length<r.length-1;)a="0"+a;a=a.match(/^([0-9]*[1-9]|0)(0*)/)[1];let o=e.div(r).toString();return e=1===r.length?o:o+"."+a,i&&(e="-"+e),e}function m(e,n){null==n&&(n=0);let r=h(n);"string"==typeof e&&e.match(/^-?[0-9.]+$/)||f.throwArgumentError("invalid decimal value","value",e);let i="-"===e.substring(0,1);i&&(e=e.substring(1)),"."===e&&f.throwArgumentError("missing value","value",e);let a=e.split(".");a.length>2&&f.throwArgumentError("too many decimal points","value",e);let o=a[0],l=a[1];for(o||(o="0"),l||(l="0");"0"===l[l.length-1];)l=l.substring(0,l.length-1);for(l.length>r.length-1&&d("fractional component exceeds decimals","underflow","parseFixed"),""===l&&(l="0");l.length<r.length-1;)l+="0";let u=s.O$.from(o),p=s.O$.from(l),y=u.mul(r).add(p);return i&&(y=y.mul(c)),y}class g{constructor(e,n,r,i){e!==l&&f.throwError("cannot use FixedFormat constructor; use FixedFormat.from",a.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.signed=n,this.width=r,this.decimals=i,this.name=(n?"":"u")+"fixed"+String(r)+"x"+String(i),this._multiplier=h(i),Object.freeze(this)}static from(e){if(e instanceof g)return e;"number"==typeof e&&(e=`fixed128x${e}`);let n=!0,r=128,i=18;if("string"==typeof e){if("fixed"===e);else if("ufixed"===e)n=!1;else{let a=e.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);a||f.throwArgumentError("invalid fixed format","format",e),n="u"!==a[1],r=parseInt(a[2]),i=parseInt(a[3])}}else if(e){let a=(n,r,i)=>null==e[n]?i:(typeof e[n]!==r&&f.throwArgumentError("invalid fixed format ("+n+" not "+r+")","format."+n,e[n]),e[n]);n=a("signed","boolean",n),r=a("width","number",r),i=a("decimals","number",i)}return r%8&&f.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",r),i>80&&f.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",i),new g(l,n,r,i)}}class b{constructor(e,n,r,i){e!==l&&f.throwError("cannot use FixedNumber constructor; use FixedNumber.from",a.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=i,this._hex=n,this._value=r,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(e){this.format.name!==e.format.name&&f.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}addUnsafe(e){this._checkFormat(e);let n=m(this._value,this.format.decimals),r=m(e._value,e.format.decimals);return b.fromValue(n.add(r),this.format.decimals,this.format)}subUnsafe(e){this._checkFormat(e);let n=m(this._value,this.format.decimals),r=m(e._value,e.format.decimals);return b.fromValue(n.sub(r),this.format.decimals,this.format)}mulUnsafe(e){this._checkFormat(e);let n=m(this._value,this.format.decimals),r=m(e._value,e.format.decimals);return b.fromValue(n.mul(r).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(e){this._checkFormat(e);let n=m(this._value,this.format.decimals),r=m(e._value,e.format.decimals);return b.fromValue(n.mul(this.format._multiplier).div(r),this.format.decimals,this.format)}floor(){let e=this.toString().split(".");1===e.length&&e.push("0");let n=b.from(e[0],this.format),r=!e[1].match(/^(0*)$/);return this.isNegative()&&r&&(n=n.subUnsafe(v.toFormat(n.format))),n}ceiling(){let e=this.toString().split(".");1===e.length&&e.push("0");let n=b.from(e[0],this.format),r=!e[1].match(/^(0*)$/);return!this.isNegative()&&r&&(n=n.addUnsafe(v.toFormat(n.format))),n}round(e){null==e&&(e=0);let n=this.toString().split(".");if(1===n.length&&n.push("0"),(e<0||e>80||e%1)&&f.throwArgumentError("invalid decimal count","decimals",e),n[1].length<=e)return this;let r=b.from("1"+p.substring(0,e),this.format),i=w.toFormat(this.format);return this.mulUnsafe(r).addUnsafe(i).floor().divUnsafe(r)}isZero(){return"0.0"===this._value||"0"===this._value}isNegative(){return"-"===this._value[0]}toString(){return this._value}toHexString(e){if(null==e)return this._hex;e%8&&f.throwArgumentError("invalid byte width","width",e);let n=s.O$.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return(0,i.hexZeroPad)(n,e/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return b.fromString(this._value,e)}static fromValue(e,n,r){return null!=r||null==n||(0,s.Zm)(n)||(r=n,n=null),null==n&&(n=0),null==r&&(r="fixed"),b.fromString(y(e,n),g.from(r))}static fromString(e,n){null==n&&(n="fixed");let r=g.from(n),a=m(e,r.decimals);!r.signed&&a.lt(u)&&d("unsigned value cannot be negative","overflow","value",e);let o=null;return r.signed?o=a.toTwos(r.width).toHexString():(o=a.toHexString(),o=(0,i.hexZeroPad)(o,r.width/8)),new b(l,o,y(a,r.decimals),r)}static fromBytes(e,n){null==n&&(n="fixed");let r=g.from(n);if((0,i.arrayify)(e).length>r.width/8)throw Error("overflow");let a=s.O$.from(e);return r.signed&&(a=a.fromTwos(r.width)),new b(l,a.toTwos((r.signed?0:1)+r.width).toHexString(),y(a,r.decimals),r)}static from(e,n){if("string"==typeof e)return b.fromString(e,n);if((0,i.isBytes)(e))return b.fromBytes(e,n);try{return b.fromValue(e,0,n)}catch(e){if(e.code!==a.Logger.errors.INVALID_ARGUMENT)throw e}return f.throwArgumentError("invalid FixedNumber value","value",e)}static isFixedNumber(e){return!!(e&&e._isFixedNumber)}}let v=b.from(1),w=b.from("0.5")},16441:function(e,n,r){"use strict";r.r(n),r.d(n,{arrayify:function(){return u},concat:function(){return c},hexConcat:function(){return v},hexDataLength:function(){return g},hexDataSlice:function(){return b},hexStripZeros:function(){return x},hexValue:function(){return w},hexZeroPad:function(){return T},hexlify:function(){return m},isBytes:function(){return l},isBytesLike:function(){return s},isHexString:function(){return h},joinSignature:function(){return M},splitSignature:function(){return C}
1,stripZeros:function(){return d},zeroPad:function(){return p}});let i=new(r(1581)).Logger("bytes/5.7.0");function a(e){return!!e.toHexString}function o(e){return e.slice||(e.slice=function(){let n=Array.prototype.slice.call(arguments);return o(new Uint8Array(Array.prototype.slice.apply(e,n)))}),e}function s(e){return h(e)&&!(e.length%2)||l(e)}function f(e){return"number"==typeof e&&e==e&&e%1==0}function l(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"==typeof e||!f(e.length)||e.length<0)return!1;for(let n=0;n<e.length;n++){let r=e[n];if(!f(r)||r<0||r>=256)return!1}return!0}function u(e,n){if(n||(n={}),"number"==typeof e){i.checkSafeUint53(e,"invalid arrayify value");let n=[];for(;e;)n.unshift(255&e),e=parseInt(String(e/256));return 0===n.length&&n.push(0),o(new Uint8Array(n))}if(n.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),a(e)&&(e=e.toHexString()),h(e)){let r=e.substring(2);r.length%2&&("left"===n.hexPad?r="0"+r:"right"===n.hexPad?r+="0":i.throwArgumentError("hex data is odd-length","value",e));let a=[];for(let e=0;e<r.length;e+=2)a.push(parseInt(r.substring(e,e+2),16));return o(new Uint8Array(a))}return l(e)?o(new Uint8Array(e)):i.throwArgumentError("invalid arrayify value","value",e)}function c(e){let n=e.map(e=>u(e)),r=new Uint8Array(n.reduce((e,n)=>e+n.length,0));return n.reduce((e,n)=>(r.set(n,e),e+n.length),0),o(r)}function d(e){let n=u(e);if(0===n.length)return n;let r=0;for(;r<n.length&&0===n[r];)r++;return r&&(n=n.slice(r)),n}function p(e,n){(e=u(e)).length>n&&i.throwArgumentError("value out of range","value",arguments[0]);let r=new Uint8Array(n);return r.set(e,n-e.length),o(r)}function h(e,n){return"string"==typeof e&&!!e.match(/^0x[0-9A-Fa-f]*$/)&&(!n||e.length===2+2*n)}let y="0123456789abcdef";function m(e,n){if(n||(n={}),"number"==typeof e){i.checkSafeUint53(e,"invalid hexlify value");let n="";for(;e;)n=y[15&e]+n,e=Math.floor(e/16);return n.length?(n.length%2&&(n="0"+n),"0x"+n):"0x00"}if("bigint"==typeof e)return(e=e.toString(16)).length%2?"0x0"+e:"0x"+e;if(n.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),a(e))return e.toHexString();if(h(e))return e.length%2&&("left"===n.hexPad?e="0x0"+e.substring(2):"right"===n.hexPad?e+="0":i.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(l(e)){let n="0x";for(let r=0;r<e.length;r++){let i=e[r];n+=y[(240&i)>>4]+y[15&i]}return n}return i.throwArgumentError("invalid hexlify value","value",e)}function g(e){if("string"!=typeof e)e=m(e);else if(!h(e)||e.length%2)return null;return(e.length-2)/2}function b(e,n,r){return("string"!=typeof e?e=m(e):(!h(e)||e.length%2)&&i.throwArgumentError("invalid hexData","value",e),n=2+2*n,null!=r)?"0x"+e.substring(n,2+2*r):"0x"+e.substring(n)}function v(e){let n="0x";return e.forEach(e=>{n+=m(e).substring(2)}),n}function w(e){let n=x(m(e,{hexPad:"left"}));return"0x"===n?"0x0":n}function x(e){"string"!=typeof e&&(e=m(e)),h(e)||i.throwArgumentError("invalid hex string","value",e),e=e.substring(2);let n=0;for(;n<e.length&&"0"===e[n];)n++;return"0x"+e.substring(n)}function T(e,n){for("string"!=typeof e?e=m(e):h(e)||i.throwArgumentError("invalid hex string","value",e),e.length>2*n+2&&i.throwArgumentError("value out of range","value",arguments[1]);e.length<2*n+2;)e="0x0"+e.substring(2);return e}function C(e){let n={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(s(e)){let r=u(e);64===r.length?(n.v=27+(r[32]>>7),r[32]&=127,n.r=m(r.slice(0,32)),n.s=m(r.slice(32,64))):65===r.length?(n.r=m(r.slice(0,32)),n.s=m(r.slice(32,64)),n.v=r[64]):i.throwArgumentError("invalid signature string","signature",e),n.v<27&&(0===n.v||1===n.v?n.v+=27:i.throwArgumentError("signature invalid v byte","signature",e)),n.recoveryParam=1-n.v%2,n.recoveryParam&&(r[32]|=128),n._vs=m(r.slice(32,64))}else{if(n.r=e.r,n.s=e.s,n.v=e.v,n.recoveryParam=e.recoveryParam,n._vs=e._vs,null!=n._vs){let r=p(u(n._vs),32);n._vs=m(r);let a=r[0]>=128?1:0;null==n.recoveryParam?n.recoveryParam=a:n.recoveryParam!==a&&i.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),r[0]&=127;let o=m(r);null==n.s?n.s=o:n.s!==o&&i.throwArgumentError("signature v mismatch _vs","signature",e)}if(null==n.recoveryParam)null==n.v?i.throwArgumentError("signature missing v and recoveryParam","signature",e):0===n.v||1===n.v?n.recoveryParam=n.v:n.recoveryParam=1-n.v%2;else if(null==n.v)n.v=27+n.recoveryParam;else{let r=0===n.v||1===n.v?n.v:1-n.v%2;n.recoveryParam!==r&&i.throwArgumentError("signature recoveryParam mismatch v","signature",e)}null!=n.r&&h(n.r)?n.r=T(n.r,32):i.throwArgumentError("signature missing or invalid r","signature",e),null!=n.s&&h(n.s)?n.s=T(n.s,32):i.throwArgumentError("signature missing or invalid s","signature",e);let r=u(n.s);r[0]>=128&&i.throwArgumentError("signature s out of range","signature",e),n.recoveryParam&&(r[0]|=128);let a=m(r);n._vs&&(h(n._vs)||i.throwArgumentError("signature invalid _vs","signature",e),n._vs=T(n._vs,32)),null==n._vs?n._vs=a:n._vs!==a&&i.throwArgumentError("signature _vs mismatch v and s","signature",e)}return n.yParityAndS=n._vs,n.compact=n.r+n.yParityAndS.substring(2),n}function M(e){return m(c([(e=C(e)).r,e.s,e.recoveryParam?"0x1c":"0x1b"]))}},9279:function(e,n,r){"use strict";r.d(n,{d:function(){return i}});let i="0x0000000000000000000000000000000000000000"},21046:function(e,n,r){"use strict";r.d(n,{$B:function(){return c},Bz:function(){return u},Ce:function(){return l},PS:function(){return d},Py:function(){return f},_Y:function(){return o},fh:function(){return s},tL:function(){return a}});var i=r(2593);let a=i.O$.from(-1),o=i.O$.from(0),s=i.O$.from(1),f=i.O$.from(2),l=i.O$.from("1000000000000000000"),u=i.O$.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),c=i.O$.from("-0x8000000000000000000000000000000000000000000000000000000000000000"),d=i.O$.from("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")},57218:function(e,n,r){"use strict";r.d(n,{R:function(){return i}});let i="0x0000000000000000000000000000000000000000000000000000000000000000"},21815:function(e,n,r){"use strict";r.r(n),r.d(n,{AddressZero:function(){return i.d},EtherSymbol:function(){return s},HashZero:function(){return o.R},MaxInt256:function(){return a.PS},MaxUint256:function(){return a.Bz},MinInt256:function(){return a.$B},NegativeOne:function(){return a.tL},One:function(){return a.fh},Two:function(){return a.Py},WeiPerEther:function(){return a.Ce},Zero:function(){return a._Y}});var i=r(9279),a=r(21046),o=r(57218);let s="Î"},64146:function(e,n,r){"use strict";
1r.d(n,{VZ:function(){return S},CH:function(){return k},lV:function(){return N}});var i=r(61184),a=r(8198),o=r(81556),s=r(48088),f=r(19485),l=r(2593),u=r(16441),c=r(6881),d=r(83875),p=r(1581),h=function(e,n,r,i){return new(r||(r=Promise))(function(a,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function f(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var n;e.done?a(e.value):((n=e.value)instanceof r?n:new r(function(e){e(n)})).then(s,f)}l((i=i.apply(e,n||[])).next())})};let y=new p.Logger("contracts/5.7.0"),m={chainId:!0,data:!0,from:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0,customData:!0,ccipReadEnabled:!0};function g(e,n){return h(this,void 0,void 0,function*(){let r=yield n;"string"!=typeof r&&y.throwArgumentError("invalid address or ENS name","name",r);try{return(0,f.getAddress)(r)}catch(e){}e||y.throwError("a provider or signer is needed to resolve ENS names",p.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"});let i=yield e.resolveName(r);return null==i&&y.throwArgumentError("resolver or addr is not configured for ENS name","name",r),i})}function b(e,n,r){return h(this,void 0,void 0,function*(){return Array.isArray(r)?yield Promise.all(r.map((r,i)=>b(e,Array.isArray(n)?n[i]:n[r.name],r))):"address"===r.type?yield g(e,n):"tuple"===r.type?yield b(e,n,r.components):"array"===r.baseType?Array.isArray(n)?yield Promise.all(n.map(n=>b(e,n,r.arrayChildren))):Promise.reject(y.makeError("invalid value for array",p.Logger.errors.INVALID_ARGUMENT,{argument:"value",value:n})):n})}function v(e,n,r){return h(this,void 0,void 0,function*(){let i={};r.length===n.inputs.length+1&&"object"==typeof r[r.length-1]&&(i=(0,c.shallowCopy)(r.pop())),y.checkArgumentCount(r.length,n.inputs.length,"passed to contract"),e.signer?i.from?i.from=(0,c.resolveProperties)({override:g(e.signer,i.from),signer:e.signer.getAddress()}).then(e=>h(this,void 0,void 0,function*(){return(0,f.getAddress)(e.signer)!==e.override&&y.throwError("Contract with a Signer cannot override from",p.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),e.override})):i.from=e.signer.getAddress():i.from&&(i.from=g(e.provider,i.from));let a=yield(0,c.resolveProperties)({args:b(e.signer||e.provider,r,n.inputs),address:e.resolvedAddress,overrides:(0,c.resolveProperties)(i)||{}}),o=e.interface.encodeFunctionData(n,a.args),s={data:o,to:a.address},m=a.overrides;if(null!=m.nonce&&(s.nonce=l.O$.from(m.nonce).toNumber()),null!=m.gasLimit&&(s.gasLimit=l.O$.from(m.gasLimit)),null!=m.gasPrice&&(s.gasPrice=l.O$.from(m.gasPrice)),null!=m.maxFeePerGas&&(s.maxFeePerGas=l.O$.from(m.maxFeePerGas)),null!=m.maxPriorityFeePerGas&&(s.maxPriorityFeePerGas=l.O$.from(m.maxPriorityFeePerGas)),null!=m.from&&(s.from=m.from),null!=m.type&&(s.type=m.type),null!=m.accessList&&(s.accessList=(0,d.accessListify)(m.accessList)),null==s.gasLimit&&null!=n.gas){let e=21e3,r=(0,u.arrayify)(o);for(let n=0;n<r.length;n++)e+=4,r[n]&&(e+=64);s.gasLimit=l.O$.from(n.gas).add(e)}if(m.value){let e=l.O$.from(m.value);e.isZero()||n.payable||y.throwError("non-payable method cannot override value",p.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:i.value}),s.value=e}m.customData&&(s.customData=(0,c.shallowCopy)(m.customData)),m.ccipReadEnabled&&(s.ccipReadEnabled=!!m.ccipReadEnabled),delete i.nonce,delete i.gasLimit,delete i.gasPrice,delete i.from,delete i.value,delete i.type,delete i.accessList,delete i.maxFeePerGas,delete i.maxPriorityFeePerGas,delete i.customData,delete i.ccipReadEnabled;let v=Object.keys(i).filter(e=>null!=i[e]);return v.length&&y.throwError(`cannot override ${v.map(e=>JSON.stringify(e)).join(",")}`,p.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:v}),s})}function w(e,n){let r=n.wait.bind(n);n.wait=n=>r(n).then(n=>(n.events=n.logs.map(r=>{let i=(0,c.deepCopy)(r),a=null;try{a=e.interface.parseLog(r)}catch(e){}return a&&(i.args=a.args,i.decode=(n,r)=>e.interface.decodeEventLog(a.eventFragment,n,r),i.event=a.name,i.eventSignature=a.signature),i.removeListener=()=>e.provider,i.getBlock=()=>e.provider.getBlock(n.blockHash),i.getTransaction=()=>e.provider.getTransaction(n.transactionHash),i.getTransactionReceipt=()=>Promise.resolve(n),i}),n))}function x(e,n,r){let i=e.signer||e.provider;return function(...a){return h(this,void 0,void 0,function*(){let o;if(a.length===n.inputs.length+1&&"object"==typeof a[a.length-1]){let e=(0,c.shallowCopy)(a.pop());null!=e.blockTag&&(o=yield e.blockTag),delete e.blockTag,a.push(e)}null!=e.deployTransaction&&(yield e._deployed(o));let s=yield v(e,n,a),f=yield i.call(s,o);try{let i=e.interface.decodeFunctionResult(n,f);return r&&1===n.outputs.length&&(i=i[0]),i}catch(n){throw n.code===p.Logger.errors.CALL_EXCEPTION&&(n.address=e.address,n.args=a,n.transaction=s),n}})}}function T(e,n,r){return n.constant?x(e,n,r):function(...r){return h(this,void 0,void 0,function*(){e.signer||y.throwError("sending a transaction requires a signer",p.Logger.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),null!=e.deployTransaction&&(yield e._deployed());let i=yield v(e,n,r),a=yield e.signer.sendTransaction(i);return w(e,a),a})}}function C(e){return e.address&&(null==e.topics||0===e.topics.length)?"*":(e.address||"*")+"@"+(e.topics?e.topics.map(e=>Array.isArray(e)?e.join("|"):e).join(":"):"")}class M{constructor(e,n){(0,c.defineReadOnly)(this,"tag",e),(0,c.defineReadOnly)(this,"filter",n),this._listeners=[]}addListener(e,n){this._listeners.push({listener:e,once:n})}removeListener(e){let n=!1;this._listeners=this._listeners.filter(r=>!!n||r.listener!==e||(n=!0,!1))}removeAllListeners(){this._listeners=[]}listeners(){return this._listeners.map(e=>e.listener)}listenerCount(){return this._listeners.length}run(e){let n=this.listenerCount();return this._listeners=this._listeners.filter(n=>{let r=e.slice();return setTimeout(()=>{n.listener.apply(this,r)},0),!n.once}),n}prepareEvent(e){}getEmit(e){return[e]}}class A extends M{constructor(){super("error",null)}}class E extends M{constructor(e,n,r,i){let a={address:e},o=n.getEventTopic(r);i?(o!==i[0]&&y.throwArgumentError("topic mismatch","topics",i),a.topics=i.slice()):a.topics=[o],super(C(a),a),(0,c.defineReadOnly)(this,"address",e),(0,c.defineReadOnly)(this,"interface",n
1),(0,c.defineReadOnly)(this,"fragment",r)}prepareEvent(e){super.prepareEvent(e),e.event=this.fragment.name,e.eventSignature=this.fragment.format(),e.decode=(e,n)=>this.interface.decodeEventLog(this.fragment,e,n);try{e.args=this.interface.decodeEventLog(this.fragment,e.data,e.topics)}catch(n){e.args=null,e.decodeError=n}}getEmit(e){let n=(0,i.BR)(e.args);if(n.length)throw n[0].error;let r=(e.args||[]).slice();return r.push(e),r}}class I extends M{constructor(e,n){super("*",{address:e}),(0,c.defineReadOnly)(this,"address",e),(0,c.defineReadOnly)(this,"interface",n)}prepareEvent(e){super.prepareEvent(e);try{let n=this.interface.parseLog(e);e.event=n.name,e.eventSignature=n.signature,e.decode=(e,r)=>this.interface.decodeEventLog(n.eventFragment,e,r),e.args=n.args}catch(e){}}}class S{constructor(e,n,r){(0,c.defineReadOnly)(this,"interface",(0,c.getStatic)(new.target,"getInterface")(n)),null==r?((0,c.defineReadOnly)(this,"provider",null),(0,c.defineReadOnly)(this,"signer",null)):s.Signer.isSigner(r)?((0,c.defineReadOnly)(this,"provider",r.provider||null),(0,c.defineReadOnly)(this,"signer",r)):o.Provider.isProvider(r)?((0,c.defineReadOnly)(this,"provider",r),(0,c.defineReadOnly)(this,"signer",null)):y.throwArgumentError("invalid signer or provider","signerOrProvider",r),(0,c.defineReadOnly)(this,"callStatic",{}),(0,c.defineReadOnly)(this,"estimateGas",{}),(0,c.defineReadOnly)(this,"functions",{}),(0,c.defineReadOnly)(this,"populateTransaction",{}),(0,c.defineReadOnly)(this,"filters",{});{let e={};Object.keys(this.interface.events).forEach(n=>{let r=this.interface.events[n];(0,c.defineReadOnly)(this.filters,n,(...e)=>({address:this.address,topics:this.interface.encodeFilterTopics(r,e)})),e[r.name]||(e[r.name]=[]),e[r.name].push(n)}),Object.keys(e).forEach(n=>{let r=e[n];1===r.length?(0,c.defineReadOnly)(this.filters,n,this.filters[r[0]]):y.warn(`Duplicate definition of ${n} (${r.join(", ")})`)})}if((0,c.defineReadOnly)(this,"_runningEvents",{}),(0,c.defineReadOnly)(this,"_wrappedEmits",{}),null==e&&y.throwArgumentError("invalid contract address or ENS name","addressOrName",e),(0,c.defineReadOnly)(this,"address",e),this.provider)(0,c.defineReadOnly)(this,"resolvedAddress",g(this.provider,e));else try{(0,c.defineReadOnly)(this,"resolvedAddress",Promise.resolve((0,f.getAddress)(e)))}catch(e){y.throwError("provider is required to use ENS name as contract address",p.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}this.resolvedAddress.catch(e=>{});let i={},a={};Object.keys(this.interface.functions).forEach(e=>{let n=this.interface.functions[e];if(a[e]){y.warn(`Duplicate ABI entry for ${JSON.stringify(e)}`);return}a[e]=!0;{let r=n.name;i[`%${r}`]||(i[`%${r}`]=[]),i[`%${r}`].push(e)}if(null==this[e]&&(0,c.defineReadOnly)(this,e,T(this,n,!0)),null==this.functions[e]&&(0,c.defineReadOnly)(this.functions,e,T(this,n,!1)),null==this.callStatic[e]&&(0,c.defineReadOnly)(this.callStatic,e,x(this,n,!0)),null==this.populateTransaction[e]){var r;(0,c.defineReadOnly)(this.populateTransaction,e,(r=this,function(...e){return v(r,n,e)}))}null==this.estimateGas[e]&&(0,c.defineReadOnly)(this.estimateGas,e,function(e,n){let r=e.signer||e.provider;return function(...i){return h(this,void 0,void 0,function*(){r||y.throwError("estimate require a provider or signer",p.Logger.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"});let a=yield v(e,n,i);return yield r.estimateGas(a)})}}(this,n))}
1),Object.keys(i).forEach(e=>{let n=i[e];if(n.length>1)return;e=e.substring(1);let r=n[0];try{null==this[e]&&(0,c.defineReadOnly)(this,e,this[r])}catch(e){}null==this.functions[e]&&(0,c.defineReadOnly)(this.functions,e,this.functions[r]),null==this.callStatic[e]&&(0,c.defineReadOnly)(this.callStatic,e,this.callStatic[r]),null==this.populateTransaction[e]&&(0,c.defineReadOnly)(this.populateTransaction,e,this.populateTransaction[r]),null==this.estimateGas[e]&&(0,c.defineReadOnly)(this.estimateGas,e,this.estimateGas[r])})}static getContractAddress(e){return(0,f.getContractAddress)(e)}static getInterface(e){return a.vU.isInterface(e)?e:new a.vU(e)}deployed(){return this._deployed()}_deployed(e){return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then(()=>this):this._deployedPromise=this.provider.getCode(this.address,e).then(e=>("0x"===e&&y.throwError("contract not deployed",p.Logger.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this))),this._deployedPromise}fallback(e){this.signer||y.throwError("sending a transactions require a signer",p.Logger.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});let n=(0,c.shallowCopy)(e||{});return["from","to"].forEach(function(e){null!=n[e]&&y.throwError("cannot override "+e,p.Logger.errors.UNSUPPORTED_OPERATION,{operation:e})}),n.to=this.resolvedAddress,this.deployed().then(()=>this.signer.sendTransaction(n))}connect(e){"string"==typeof e&&(e=new s.VoidSigner(e,this.provider));let n=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&(0,c.defineReadOnly)(n,"deployTransaction",this.deployTransaction),n}attach(e){return new this.constructor(e,this.interface,this.signer||this.provider)}static isIndexed(e){return a.Hk.isIndexed(e)}_normalizeRunningEvent(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e}_getRunningEvent(e){if("string"==typeof e){if("error"===e)return this._normalizeRunningEvent(new A);if("event"===e)return this._normalizeRunningEvent(new M("event",null));if("*"===e)return this._normalizeRunningEvent(new I(this.address,this.interface));let n=this.interface.getEvent(e);return this._normalizeRunningEvent(new E(this.address,this.interface,n))}if(e.topics&&e.topics.length>0){try{let n=e.topics[0];if("string"!=typeof n)throw Error("invalid topic");let r=this.interface.getEvent(n);return this._normalizeRunningEvent(new E(this.address,this.interface,r,e.topics))}catch(e){}let n={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new M(C(n),n))}return this._normalizeRunningEvent(new I(this.address,this.interface))}_checkRunningEvents(e){if(0===e.listenerCount()){delete this._runningEvents[e.tag];let n=this._wrappedEmits[e.tag];n&&e.filter&&(this.provider.off(e.filter,n),delete this._wrappedEmits[e.tag])}}_wrapEvent(e,n,r){let i=(0,c.deepCopy)(n);return i.removeListener=()=>{r&&(e.removeListener(r),this._checkRunningEvents(e))},i.getBlock=()=>this.provider.getBlock(n.blockHash),i.getTransaction=()=>this.provider.getTransaction(n.transactionHash),i.getTransactionReceipt=()=>this.provider.getTransactionReceipt(n.transactionHash),e.prepareEvent(i),i}_addEventListener(e,n,r){if(this.provider||y.throwError("events require a provider or a signer with a provider",p.Logger.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(n,r),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){let r=r=>{let i=this._wrapEvent(e,r,n);if(null==i.decodeError)try{let n=e.getEmit(i);this.emit(e.filter,...n)}catch(e){i.decodeError=e.error}null!=e.filter&&this.emit("event",i),null!=i.decodeError&&this.emit("error",i.decodeError,i)};this._wrappedEmits[e.tag]=r,null!=e.filter&&this.provider.on(e.filter,r)}}queryFilter(e,n,r){let i=this._getRunningEvent(e),a=(0,c.shallowCopy)(i.filter);return"string"==typeof n&&(0,u.isHexString)(n,32)?(null!=r&&y.throwArgumentError("cannot specify toBlock with blockhash","toBlock",r),a.blockHash=n):(a.fromBlock=null!=n?n:0,a.toBlock=null!=r?r:"latest"),this.provider.getLogs(a).then(e=>e.map(e=>this._wrapEvent(i,e,null)))}on(e,n){return this._addEventListener(this._getRunningEvent(e),n,!1),this}once(e,n){return this._addEventListener(this._getRunningEvent(e),n,!0),this}emit(e,...n){if(!this.provider)return!1;let r=this._getRunningEvent(e),i=r.run(n)>0;return this._checkRunningEvents(r),i}listenerCount(e){return this.provider?null==e?Object.keys(this._runningEvents).reduce((e,n)=>e+this._runningEvents[n].listenerCount(),0):this._getRunningEvent(e).listenerCount():0}listeners(e){if(!this.provider)return[];if(null==e){let e=[];for(let n in this._runningEvents)this._runningEvents[n].listeners().forEac
1h(n=>{e.push(n)});return e}return this._getRunningEvent(e).listeners()}removeAllListeners(e){if(!this.provider)return this;if(null==e){for(let e in this._runningEvents){let n=this._runningEvents[e];n.removeAllListeners(),this._checkRunningEvents(n)}return this}let n=this._getRunningEvent(e);return n.removeAllListeners(),this._checkRunningEvents(n),this}off(e,n){if(!this.provider)return this;let r=this._getRunningEvent(e);return r.removeListener(n),this._checkRunningEvents(r),this}removeListener(e,n){return this.off(e,n)}}class k extends S{}class N{constructor(e,n,r){let i=null;"0x"!==(i="string"==typeof n?n:(0,u.isBytes)(n)?(0,u.hexlify)(n):n&&"string"==typeof n.object?n.object:"!").substring(0,2)&&(i="0x"+i),(!(0,u.isHexString)(i)||i.length%2)&&y.throwArgumentError("invalid bytecode","bytecode",n),r&&!s.Signer.isSigner(r)&&y.throwArgumentError("invalid signer","signer",r),(0,c.defineReadOnly)(this,"bytecode",i),(0,c.defineReadOnly)(this,"interface",(0,c.getStatic)(new.target,"getInterface")(e)),(0,c.defineReadOnly)(this,"signer",r||null)}getDeployTransaction(...e){let n={};if(e.length===this.interface.deploy.inputs.length+1&&"object"==typeof e[e.length-1]){for(let r in n=(0,c.shallowCopy)(e.pop()))if(!m[r])throw Error("unknown transaction override "+r)}return["data","from","to"].forEach(e=>{null!=n[e]&&y.throwError("cannot override "+e,p.Logger.errors.UNSUPPORTED_OPERATION,{operation:e})}),!n.value||l.O$.from(n.value).isZero()||this.interface.deploy.payable||y.throwError("non-payable constructor cannot override value",p.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:n.value}),y.checkArgumentCount(e.length,this.interface.deploy.inputs.length," in Contract constructor"),n.data=(0,u.hexlify)((0,u.concat)([this.bytecode,this.interface.encodeDeploy(e)])),n}deploy(...e){return h(this,void 0,void 0,function*(){let n={};e.length===this.interface.deploy.inputs.length+1&&(n=e.pop()),y.checkArgumentCount(e.length,this.interface.deploy.inputs.length," in Contract constructor");let r=yield b(this.signer,e,this.interface.deploy.inputs);r.push(n);let i=this.getDeployTransaction(...r),a=yield this.signer.sendTransaction(i),o=(0,c.getStatic)(this.constructor,"getContractAddress")(a),s=(0,c.getStatic)(this.constructor,"getContract")(o,this.interface,this.signer);return w(s,a),(0,c.defineReadOnly)(s,"deployTransaction",a),s})}attach(e){return this.constructor.getContract(e,this.interface,this.signer)}connect(e){return new this.constructor(this.interface,this.bytecode,e)}static fromSolidity(e,n){null==e&&y.throwError("missing compiler output",p.Logger.errors.MISSING_ARGUMENT,{argument:"compilerOutput"}),"string"==typeof e&&(e=JSON.parse(e));let r=e.abi,i=null;return e.bytecode?i=e.bytecode:e.evm&&e.evm.bytecode&&(i=e.evm.bytecode),new this(r,i,n)}static getInterface(e){return k.getInterface(e)}static getContractAddress(e){return(0,f.getContractAddress)(e)}static getContract(e,n,r){return new k(e,n,r)}}},35644:function(e,n,r){"use strict";r.d(n,{i:function(){return i}});let i="hash/5.7.0"},32046:function(e,n,r){"use strict";r.d(n,{id:function(){return o}});var i=r(38197),a=r(29251);function o(e){return(0,i.keccak256)((0,a.Y0)(e))}},75931:function(e,n,r){"use strict";r.r(n),r.d(n,{_TypedDataEncoder:function(){return s.E},dnsEncode:function(){return a.Kn},ensNormalize:function(){return a.w3},hashMessage:function(){return o.r},id:function(){return i.id},isValidName:function(){return a.r1},messagePrefix:function(){return o.B},namehash:function(){return a.VM}});var i=r(32046),a=r(27586),o=r(93684),s=r(67827)},93684:function(e,n,r){"use strict";r.d(n,{B:function(){return s},r:function(){return f}});var i=r(16441),a=r(38197),o=r(29251);let s="\x19Ethereum Signed Message:\n";function f(e){return"string"==typeof e&&(e=(0,o.Y0)(e)),(0,a.keccak256)((0,i.concat)([(0,o.Y0)(s),(0,o.Y0)(String(e.length)),e]))}},27586:function(e,n,r){"use strict";let i,a;r.d(n,{Kn:function(){return N},w3:function(){return I},r1:function(){return S},VM:function(){return k}});var o,s=r(16441),f=r(29251),l=r(38197),u=r(1581),c=r(35644);function d(e,n){null==n&&(n=1);let r=[],i=r.forEach,a=function(e,n){i.call(e,function(e){n>0&&Array.isArray(e)?a(e,n-1):r.push(e)})};return a(e,n),r}function p(e,n){let r=Array(e);for(let i=0,a=-1;i<e;i++)r[i]=a+=1+n();return r}function h(e,n){let r=p(e(),e),i=e(),a=p(i,e),o=function(e,n){let r=Array(e);for(let i=0;i<e;i++)r[i]=1+n();return r}(i,e);for(let e=0;e<i;e++)for(let n=0;n<o[e];n++)r.push(a[e]+n);return n?r.map(e=>n[e]):r}function y(e,n,r){let i=Array(e).fill(void 0).map(()=>[]);for(let a=0;a<n;a++)(function(e,n){let r=Array(e);for(let a=0,o=0;a<e;a++){var i;r[a]=o+=1&(i=n())?~i>>1:i>>1}return r})(e,r).forEach((e,n)=>i[n].push(e));return i}let m=(o=function(e){let n=0;function r(){return e[n++]<<8|e[n++]}let i=r(),a=1,o=[0,1];for(let e=1;e<i;e++)o.push(a+=r());let s=r(),f=n;n+=s;let l=0,u=0;function c(){return 0==l&&(u=u<<8|e[n++],l=8),u>>--l&1}let d=0;for(let e=0;e<31;e++)d=d<<1|c();let p=[],h=0,y=2147483648;for(;;){let e=Math.floor(((d-h+1)*a-1)/y),n=0,r=i;for(;r-n>1;){let i=n+r>>>1;e<o[i]?r=i:n=i}if(0==n)break;p.push(n);let s=h+Math.floor(y*o[n]/a),f=h+Math.floor(y*o[n+1]/a)-1;for(;((s^f)&1073741824)==0;)d=d<<1&2147483647|c(),s=s<<1&2147483647,f=f<<1&2147483647|1;for(;s&~f&536870912;)d=1073741824&d|d<<1&1073741823|c(),s=s<<1^1073741824,f=(1073741824^f)<<1|1073741825;h=s,y=1+f-s}let m=i-4;return p.map(n=>{switch(n-m){case 3:return m+65792+(e[f++]<<16|e[f++]<<8|e[f++]);case 2:return m+256+(e[f++]<<8|e[f++]);case 1:return m+e[f++];default:return n-1}})}
1((0,r(59567).J)("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuX
1R4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl
1+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA==")),a=0,()=>o[a++]),g=new Set(h(m)),b=new Set(h(m)),v=function(e){let n=[];for(;;){let r=e();if(0==r)break;n.push(function(e,n){let r=1+n(),i=n(),a=function(e){let n=[];for(;;){let r=e();if(0==r)break;n.push(r)}return n}(n);return d(y(a.length,1+e,n).map((e,n)=>{let o=e[0],s=e.slice(1);return Array(a[n]).fill(void 0).map((e,n)=>{let a=n*i;return[o+n*r,s.map(e=>e+a)]})}))}(r,e))}for(;;){let r=e()-1;if(r<0)break;n.push(y(1+e(),1+r,e).map(e=>[e[0],e.slice(1)]))}return function(e){let n={};for(let r=0;r<e.length;r++){let i=e[r];n[i[0]]=i[1]}return n}(d(n))}(m),w=(i=h(m).sort((e,n)=>e-n),function e(){let n=[];for(;;){let r=h(m,i);if(0==r.length)break;n.push({set:new Set(r),node:e()})}n.sort((e,n)=>n.set.size-e.set.size);let r=m();return{branches:n,valid:r%3,fe0f:!!(1&(r=r/3|0)),save:1==(r>>=1),check:2==r}}());function x(e){return e.filter(e=>65039!=e)}function T(e){for(let n of e.split(".")){let e=(0,f.XL)(n);try{for(let n=e.lastIndexOf(95)-1;n>=0;n--)if(95!==e[n])throw Error("underscore only allowed at start");if(e.length>=4&&e.every(e=>e<128)&&45===e[2]&&45===e[3])throw Error("invalid label extension")}catch(e){throw Error(`Invalid label "${n}": ${e.message}`)}}return e}let C=new u.Logger(c.i),M=new Uint8Array(32);function A(e){if(0===e.length)throw Error("invalid ENS name; empty component");return e}function E(e){let n=(0,f.Y0)(T(function(e,n){let r=(0,f.XL)(e).reverse(),i=[];for(;r.length;){let e=function(e,n){var r;let i,a;let o=w,s=[],f=e.length;for(;f;){let n=e[--f];if(!(o=null===(r=o.branches.find(e=>
1e.set.has(n)))||void 0===r?void 0:r.node))break;if(o.save)a=n;else if(o.check&&n===a)break;s.push(n),o.fe0f&&(s.push(65039),f>0&&65039==e[f-1]&&f--),o.valid&&(i=s.slice(),2==o.valid&&i.splice(1,1),e.length=f)}return i}(r);if(e){i.push(...n(e));continue}let a=r.pop();if(g.has(a)){i.push(a);continue}if(b.has(a))continue;let o=v[a];if(o){i.push(...o);continue}throw Error(`Disallowed codepoint: 0x${a.toString(16).toUpperCase()}`)}return T(String.fromCodePoint(...i).normalize("NFC"))}(e,x))),r=[];if(0===e.length)return r;let i=0;for(let e=0;e<n.length;e++)46===n[e]&&(r.push(A(n.slice(i,e))),i=e+1);if(i>=n.length)throw Error("invalid ENS name; empty component");return r.push(A(n.slice(i))),r}function I(e){return E(e).map(e=>(0,f.ZN)(e)).join(".")}function S(e){try{return 0!==E(e).length}catch(e){}return!1}function k(e){"string"!=typeof e&&C.throwArgumentError("invalid ENS name; not a string","name",e);let n=M,r=E(e);for(;r.length;)n=(0,l.keccak256)((0,s.concat)([n,(0,l.keccak256)(r.pop())]));return(0,s.hexlify)(n)}function N(e){return(0,s.hexlify)((0,s.concat)(E(e).map(e=>{if(e.length>63)throw Error("invalid DNS encoded entry; length exceeds 63 bytes");let n=new Uint8Array(e.length+1);return n.set(e,1),n[0]=n.length-1,n})))+"00"}M.fill(0)},67827:function(e,n,r){"use strict";r.d(n,{E:function(){return E}});var i=r(19485),a=r(2593),o=r(16441),s=r(38197),f=r(6881),l=r(1581),u=r(35644),c=r(32046);let d=new l.Logger(u.i),p=new Uint8Array(32);p.fill(0);let h=a.O$.from(-1),y=a.O$.from(0),m=a.O$.from(1),g=a.O$.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),b=(0,o.hexZeroPad)(m.toHexString(),32),v=(0,o.hexZeroPad)(y.toHexString(),32),w={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},x=["name","version","chainId","verifyingContract","salt"];function T(e){return function(n){return"string"!=typeof n&&d.throwArgumentError(`invalid domain value for ${JSON.stringify(e)}`,`domain.${e}`,n),n}}let C={name:T("name"),version:T("version"),chainId:function(e){try{return a.O$.from(e).toString()}catch(e){}return d.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",e)},verifyingContract:function(e){try{return(0,i.getAddress)(e).toLowerCase()}catch(e){}return d.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){try{let n=(0,o.arrayify)(e);if(32!==n.length)throw Error("bad length");return(0,o.hexlify)(n)}catch(e){}return d.throwArgumentError('invalid domain value "salt"',"domain.salt",e)}};function M(e){{let n=e.match(/^(u?)int(\d*)$/);if(n){let r=""===n[1],i=parseInt(n[2]||"256");(i%8!=0||i>256||n[2]&&n[2]!==String(i))&&d.throwArgumentError("invalid numeric width","type",e);let s=g.mask(r?i-1:i),f=r?s.add(m).mul(h):y;return function(n){let r=a.O$.from(n);return(r.lt(f)||r.gt(s))&&d.throwArgumentError(`value out-of-bounds for ${e}`,"value",n),(0,o.hexZeroPad)(r.toTwos(256).toHexString(),32)}}}{let n=e.match(/^bytes(\d+)$/);if(n){let r=parseInt(n[1]);return(0===r||r>32||n[1]!==String(r))&&d.throwArgumentError("invalid bytes width","type",e),function(n){return(0,o.arrayify)(n).length!==r&&d.throwArgumentError(`invalid length for ${e}`,"value",n),function(e){let n=(0,o.arrayify)(e),r=n.length%32;return r?(0,o.hexConcat)([n,p.slice(r)]):(0,o.hexlify)(n)}(n)}}}switch(e){case"address":return function(e){return(0,o.hexZeroPad)((0,i.getAddress)(e),32)};case"bool":return function(e){return e?b:v};case"bytes":return function(e){return(0,s.keccak256)(e)};case"string":return function(e){return(0,c.id)(e)}}return null}function A(e,n){return`${e}(${n.map(({name:e,type:n})=>n+" "+e).join(",")})`}class E{constructor(e){(0,f.defineReadOnly)(this,"types",Object.freeze((0,f.deepCopy)(e))),(0,f.defineReadOnly)(this,"_encoderCache",{}),(0,f.defineReadOnly)(this,"_types",{});let n={},r={},i={};for(let a in Object.keys(e).forEach(e=>{n[e]={},r[e]=[],i[e]={}}),e){let i={};e[a].forEach(o=>{i[o.name]&&d.throwArgumentError(`duplicate variable name ${JSON.stringify(o.name)} in ${JSON.stringify(a)}`,"types",e),i[o.name]=!0;let s=o.type.match(/^([^\x5b]*)(\x5b|$)/)[1];s===a&&d.throwArgumentError(`circular type reference to ${JSON.stringify(s)}`,"types",e),M(s)||(r[s]||d.throwArgumentError(`unknown type ${JSON.stringify(s)}`,"types",e),r[s].push(a),n[a][s]=!0)})}let a=Object.keys(r).filter(e=>0===r[e].length);for(let o in 0===a.length?d.throwArgumentError("missing primary type","types",e):a.length>1&&d.throwArgumentError(`ambiguous primary types or unused types: ${a.map(e=>JSON.stringify(e)).join(", ")}`,"types",e),(0,f.defineReadOnly)(this,"primaryType",a[0]),!function a(o,s){s[o]&&d.throwArgumentError(`circular type reference to ${JSON.stringify(o)}
1`,"types",e),s[o]=!0,Object.keys(n[o]).forEach(e=>{r[e]&&(a(e,s),Object.keys(s).forEach(n=>{i[n][e]=!0}))}),delete s[o]}(this.primaryType,{}),i){let n=Object.keys(i[o]);n.sort(),this._types[o]=A(o,e[o])+n.map(n=>A(n,e[n])).join("")}}getEncoder(e){let n=this._encoderCache[e];return n||(n=this._encoderCache[e]=this._getEncoder(e)),n}_getEncoder(e){{let n=M(e);if(n)return n}let n=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(n){let e=n[1],r=this.getEncoder(e),i=parseInt(n[3]);return n=>{i>=0&&n.length!==i&&d.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",n);let a=n.map(r);return this._types[e]&&(a=a.map(s.keccak256)),(0,s.keccak256)((0,o.hexConcat)(a))}}let r=this.types[e];if(r){let n=(0,c.id)(this._types[e]);return e=>{let i=r.map(({name:n,type:r})=>{let i=this.getEncoder(r)(e[n]);return this._types[r]?(0,s.keccak256)(i):i});return i.unshift(n),(0,o.hexConcat)(i)}}return d.throwArgumentError(`unknown type: ${e}`,"type",e)}encodeType(e){let n=this._types[e];return n||d.throwArgumentError(`unknown type: ${JSON.stringify(e)}`,"name",e),n}encodeData(e,n){return this.getEncoder(e)(n)}hashStruct(e,n){return(0,s.keccak256)(this.encodeData(e,n))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,n,r){if(M(e))return r(e,n);let i=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(i){let e=i[1],a=parseInt(i[3]);return a>=0&&n.length!==a&&d.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",n),n.map(n=>this._visit(e,n,r))}let a=this.types[e];return a?a.reduce((e,{name:i,type:a})=>(e[i]=this._visit(a,n[i],r),e),{}):d.throwArgumentError(`unknown type: ${e}`,"type",e)}visit(e,n){return this._visit(this.primaryType,e,n)}static from(e){return new E(e)}static getPrimaryType(e){return E.from(e).primaryType}static hashStruct(e,n,r){return E.from(n).hashStruct(e,r)}static hashDomain(e){let n=[];for(let r in e){let i=w[r];i||d.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(r)}`,"domain",e),n.push({name:r,type:i})}return n.sort((e,n)=>x.indexOf(e.name)-x.indexOf(n.name)),E.hashStruct("EIP712Domain",{EIP712Domain:n},e)}static encode(e,n,r){return(0,o.hexConcat)(["0x1901",E.hashDomain(e),E.from(n).hash(r)])}static hash(e,n,r){return(0,s.keccak256)(E.encode(e,n,r))}static resolveNames(e,n,r,i){var a,s,l,u;return a=this,s=void 0,l=void 0,u=function*(){e=(0,f.shallowCopy)(e);let a={};e.verifyingContract&&!(0,o.isHexString)(e.verifyingContract,20)&&(a[e.verifyingContract]="0x");let s=E.from(n);for(let e in s.visit(r,(e,n)=>("address"!==e||(0,o.isHexString)(n,20)||(a[n]="0x"),n)),a)a[e]=yield i(e);return e.verifyingContract&&a[e.verifyingContract]&&(e.verifyingContract=a[e.verifyingContract]),r=s.visit(r,(e,n)=>"address"===e&&a[n]?a[n]:n),{domain:e,value:r}},new(l||(l=Promise))(function(e,n){function r(e){try{o(u.next(e))}catch(e){n(e)}}function i(e){try{o(u.throw(e))}catch(e){n(e)}}function o(n){var a;n.done?e(n.value):((a=n.value)instanceof l?a:new l(function(e){e(a)})).then(r,i)}o((u=u.apply(a,s||[])).next())})}static getPayload(e,n,r){E.hashDomain(e);let i={},s=[];x.forEach(n=>{let r=e[n];null!=r&&(i[n]=C[n](r),s.push({name:n,type:w[n]}))});let l=E.from(n),u=(0,f.shallowCopy)(n);return u.EIP712Domain?d.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",n):u.EIP712Domain=s,l.encode(r),{types:u,domain:i,primaryType:l.primaryType,message:l.visit(r,(e,n)=>{if(e.match(/^bytes(\d*)/))return(0,o.hexlify)((0,o.arrayify)(n));if(e.match(/^u?int/))return a.O$.from(n).toString();switch(e){case"address":return n.toLowerCase();case"bool":return!!n;case"string":return"string"!=typeof n&&d.throwArgumentError("invalid string","value",n),n}return d.throwArgumentError("unsupported type","type",e)})}}}},84178:function(e,n,r){"use strict";r.r(n),r.d(n,{HDNode:function(){return M},defaultPath:function(){return C},entropyToMnemonic:function(){return I},getAccountPath:function(){return k},isValidMnemonic:function(){return S},mnemonicToEntropy:function(){return E},mnemonicToSeed:function(){return A}});var i=r(57727),a=r(16441),o=r(2593),s=r(29251),f=r(85306),l=r(6881),u=r(67669),c=r(2006),d=r(21261),p=r(83875),h=r(10234);
1let y=new(r(1581)).Logger("hdnode/5.7.0"),m=o.O$.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),g=(0,s.Y0)("Bitcoin seed");function b(e){return(1<<e)-1<<8-e}function v(e){return(0,a.hexZeroPad)((0,a.hexlify)(e),32)}function w(e){return i.Base58.encode((0,a.concat)([e,(0,a.hexDataSlice)((0,c.JQ)((0,c.JQ)(e)),0,4)]))}function x(e){if(null==e)return h.E.en;if("string"==typeof e){let n=h.E[e];return null==n&&y.throwArgumentError("unknown locale","wordlist",e),n}return e}let T={},C="m/44'/60'/0'/0/0";class M{constructor(e,n,r,i,o,s,f,d){if(e!==T)throw Error("HDNode constructor cannot be called directly");if(n){let e=new u.SigningKey(n);(0,l.defineReadOnly)(this,"privateKey",e.privateKey),(0,l.defineReadOnly)(this,"publicKey",e.compressedPublicKey)}else(0,l.defineReadOnly)(this,"privateKey",null),(0,l.defineReadOnly)(this,"publicKey",(0,a.hexlify)(r));(0,l.defineReadOnly)(this,"parentFingerprint",i),(0,l.defineReadOnly)(this,"fingerprint",(0,a.hexDataSlice)((0,c.bP)((0,c.JQ)(this.publicKey)),0,4)),(0,l.defineReadOnly)(this,"address",(0,p.computeAddress)(this.publicKey)),(0,l.defineReadOnly)(this,"chainCode",o),(0,l.defineReadOnly)(this,"index",s),(0,l.defineReadOnly)(this,"depth",f),null==d?((0,l.defineReadOnly)(this,"mnemonic",null),(0,l.defineReadOnly)(this,"path",null)):"string"==typeof d?((0,l.defineReadOnly)(this,"mnemonic",null),(0,l.defineReadOnly)(this,"path",d)):((0,l.defineReadOnly)(this,"mnemonic",d),(0,l.defineReadOnly)(this,"path",d.path))}get extendedKey(){if(this.depth>=256)throw Error("Depth too large!");return w((0,a.concat)([null!=this.privateKey?"0x0488ADE4":"0x0488B21E",(0,a.hexlify)(this.depth),this.parentFingerprint,(0,a.hexZeroPad)((0,a.hexlify)(this.index),4),this.chainCode,null!=this.privateKey?(0,a.concat)(["0x00",this.privateKey]):this.publicKey]))}neuter(){return new M(T,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}_derive(e){if(e>4294967295)throw Error("invalid index - "+String(e));let n=this.path;n&&(n+="/"+(2147483647&e));let r=new Uint8Array(37);if(2147483648&e){if(!this.privateKey)throw Error("cannot derive child of neutered node");r.set((0,a.arrayify)(this.privateKey),1),n&&(n+="'")}else r.set((0,a.arrayify)(this.publicKey));for(let n=24;n>=0;n-=8)r[33+(n>>3)]=e>>24-n&255;let i=(0,a.arrayify)((0,c.Gy)(d.p.sha512,this.chainCode,r)),s=i.slice(0,32),f=i.slice(32),l=null,p=null;this.privateKey?l=v(o.O$.from(s).add(this.privateKey).mod(m)):p=new u.SigningKey((0,a.hexlify)(s))._addPoint(this.publicKey);let h=n,y=this.mnemonic;return y&&(h=Object.freeze({phrase:y.phrase,path:n,locale:y.locale||"en"})),new M(T,l,p,this.fingerprint,v(f),e,this.depth+1,h)}derivePath(e){let n=e.split("/");if(0===n.length||"m"===n[0]&&0!==this.depth)throw Error("invalid path - "+e);"m"===n[0]&&n.shift();let r=this;for(let e=0;e<n.length;e++){let i=n[e];if(i.match(/^[0-9]+'$/)){let e=parseInt(i.substring(0,i.length-1));if(e>=2147483648)throw Error("invalid path index - "+i);r=r._derive(2147483648+e)}else if(i.match(/^[0-9]+$/)){let e=parseInt(i);if(e>=2147483648)throw Error("invalid path index - "+i);r=r._derive(e)}else throw Error("invalid path component - "+i)}return r}static _fromSeed(e,n){let r=(0,a.arrayify)(e);if(r.length<16||r.length>64)throw Error("invalid seed");let i=(0,a.arrayify)((0,c.Gy)(d.p.sha512,g,r));return new M(T,v(i.slice(0,32)),null,"0x00000000",v(i.slice(32)),0,0,n)}static fromMnemonic(e,n,r){return r=x(r),e=I(E(e,r),r),M._fromSeed(A(e,n),{phrase:e,path:"m",locale:r.locale})}static fromSeed(e){return M._fromSeed(e,null)}static fromExtendedKey(e){let n=i.Base58.decode(e);(82!==n.length||w(n.slice(0,78))!==e)&&y.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");let r=n[4],o=(0,a.hexlify)(n.slice(5,9)),s=parseInt((0,a.hexlify)(n.slice(9,13)).substring(2),16),f=(0,a.hexlify)(n.slice(13,45)),l=n.slice(45,78);switch((0,a.hexlify)(n.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new M(T,null,(0,a.hexlify)(l),o,f,s,r,null);case"0x0488ade4":case"0x04358394 ":if(0!==l[0])break;return new M(T,(0,a.hexlify)(l.slice(1)),null,o,f,s,r,null)}return y.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}function A(e,n){n||(n="");let r=(0,s.Y0)("mnemonic"+n,s.Uj.NFKD);return(0,f.n)((0,s.Y0)(e,s.Uj.NFKD),r,2048,64,"sha512")}function E(e,n){n=x(n),y.checkNormalize();let r=n.split(e);
1if(r.length%3!=0)throw Error("invalid mnemonic");let i=(0,a.arrayify)(new Uint8Array(Math.ceil(11*r.length/8))),o=0;for(let e=0;e<r.length;e++){let a=n.getWordIndex(r[e].normalize("NFKD"));if(-1===a)throw Error("invalid mnemonic");for(let e=0;e<11;e++)a&1<<10-e&&(i[o>>3]|=1<<7-o%8),o++}let s=32*r.length/3,f=b(r.length/3);if(((0,a.arrayify)((0,c.JQ)(i.slice(0,s/8)))[0]&f)!=(i[i.length-1]&f))throw Error("invalid checksum");return(0,a.hexlify)(i.slice(0,s/8))}function I(e,n){if(n=x(n),(e=(0,a.arrayify)(e)).length%4!=0||e.length<16||e.length>32)throw Error("invalid entropy");let r=[0],i=11;for(let n=0;n<e.length;n++)i>8?(r[r.length-1]<<=8,r[r.length-1]|=e[n],i-=8):(r[r.length-1]<<=i,r[r.length-1]|=e[n]>>8-i,r.push(e[n]&(1<<8-i)-1),i+=3);let o=e.length/4,s=(0,a.arrayify)((0,c.JQ)(e))[0]&b(o);return r[r.length-1]<<=o,r[r.length-1]|=s>>8-o,n.join(r.map(e=>n.getWord(e)))}function S(e,n){try{return E(e,n),!0}catch(e){}return!1}function k(e){return("number"!=typeof e||e<0||e>=2147483648||e%1)&&y.throwArgumentError("invalid account index","index",e),`m/44'/60'/${e}'/0/0`}},29816:function(e,n,r){"use strict";r.d(n,{i:function(){return i}});let i="json-wallets/5.7.0"},64341:function(e,n,r){"use strict";r.r(n),r.d(n,{decryptCrowdsale:function(){return g},decryptJsonWallet:function(){return w},decryptJsonWalletSync:function(){return x},decryptKeystore:function(){return v.pe},decryptKeystoreSync:function(){return v.hb},encryptKeystore:function(){return v.HI},getJsonWalletAddress:function(){return b.Rb},isCrowdsaleWallet:function(){return b.LW},isKeystoreWallet:function(){return b.aO}});var i=r(78826),a=r.n(i),o=r(19485),s=r(16441),f=r(38197),l=r(85306),u=r(29251),c=r(6881),d=r(1581),p=r(29816),h=r(65199);let y=new d.Logger(p.i);class m extends c.Description{isCrowdsaleAccount(e){return!!(e&&e._isCrowdsaleAccount)}}function g(e,n){let r=JSON.parse(e);n=(0,h.Ij)(n);let i=(0,o.getAddress)((0,h.gx)(r,"ethaddr")),c=(0,h.p3)((0,h.gx)(r,"encseed"));c&&c.length%16==0||y.throwArgumentError("invalid encseed","json",e);let d=(0,s.arrayify)((0,l.n)(n,n,2e3,32,"sha256")).slice(0,16),p=c.slice(0,16),g=c.slice(16),b=new(a()).ModeOfOperation.cbc(d,p),v=a().padding.pkcs7.strip((0,s.arrayify)(b.decrypt(g))),w="";for(let e=0;e<v.length;e++)w+=String.fromCharCode(v[e]);let x=(0,u.Y0)(w);return new m({_isCrowdsaleAccount:!0,address:i,privateKey:(0,f.keccak256)(x)})}var b=r(67949),v=r(81964);function w(e,n,r){if((0,b.LW)(e)){r&&r(0);let i=g(e,n);return r&&r(1),Promise.resolve(i)}return(0,b.aO)(e)?(0,v.pe)(e,n,r):Promise.reject(Error("invalid JSON wallet"))}function x(e,n){if((0,b.LW)(e))return g(e,n);if((0,b.aO)(e))return(0,v.hb)(e,n);throw Error("invalid JSON wallet")}},67949:function(e,n,r){"use strict";r.d(n,{LW:function(){return a},Rb:function(){return s},aO:function(){return o}});var i=r(19485);function a(e){let n=null;try{n=JSON.parse(e)}catch(e){return!1}return n.encseed&&n.ethaddr}function o(e){let n=null;try{n=JSON.parse(e)}catch(e){return!1}return!!n.version&&parseInt(n.version)===n.version&&3===parseInt(n.version)}function s(e){if(a(e))try{return(0,i.getAddress)(JSON.parse(e).ethaddr)}catch(e){return null}if(o(e))try{return(0,i.getAddress)(JSON.parse(e).address)}catch(e){}return null}},81964:function(e,n,r){"use strict";r.d(n,{HI:function(){return S},hb:function(){return E},pe:function(){return I}});var i=r(78826),a=r.n(i),o=r(17635),s=r.n(o),f=r(19485),l=r(16441),u=r(84178),c=r(38197),d=r(85306),p=r(5634),h=r(6881),y=r(83875),m=r(65199),g=r(1581),b=r(29816);let v=new g.Logger(b.i);function w(e){return null!=e&&e.mnemonic&&e.mnemonic.phrase}class x extends h.Description{isKeystoreAccount(e){return!!(e&&e._isKeystoreAccount)}}function T(e,n){let r=(0,m.p3)((0,m.gx)(e,"crypto/ciphertext"));if((0,l.hexlify)((0,c.keccak256)((0,l.concat)([n.slice(16,32),r]))).substring(2)!==(0,m.gx)(e,"crypto/mac").toLowerCase())throw Error("invalid password");let i=function(e,n,r){if("aes-128-ctr"===(0,m.gx)(e,"crypto/cipher")){let i=(0,m.p3)((0,m.gx)(e,"crypto/cipherparams/iv")),o=new(a()).Counter(i),s=new(a()).ModeOfOperation.ctr(n,o);return(0,l.arrayify)(s.decrypt(r))}return null}(e,n.slice(0,16),r);i||v.throwError("unsupported cipher",g.Logger.errors.UNSUPPORTED_OPERATION,{operation:"decrypt"});let o=n.slice(32,64),s=(0,y.computeAddress)(i);if(e.address){let n=e.address.toLowerCase();if("0x"!==n.substring(0,2)&&(n="0x"+n),(0,f.getAddress)(n)!==s)throw Error("address mismatch")}let d={_isKeystoreAccount:!0,address:s,privateKey:(0,l.hexlify)(i)};if("0.1"===(0,m.gx)(e,"x-ethers/version")){let n=(0,m.p3)((0,m.gx)(e,"x-ethers/mnemonicCiphertext")),r=(0,m.p3)((0,m.gx)(e,"x-ethers/mnemonicCounter")),i=new(a()).Counter(r),s=new(a()).ModeOfOperation.ctr(o,i),f=(0,m.gx)(e,"x-ethers/path")||u.defaultPath,c=(0,m.gx)(e,"x-ethers/locale")||"en",p=(0,l.arrayify)(s.decrypt(n));try{let e=(0,u.entropyToMnemonic)(p,c),n=u.HDNode.fromMnemonic(e,null,c).derivePath(f);if(n.privateKey!=d.privateKey)throw Error("mnemonic mismatch");d.mnemonic=n.mnemonic}catch(e){if(e.code!==g.Logger.errors.INVALID_ARGUMENT||"wordlist"!==e.argument)throw e}}return new x(d)}function C(e,n,r,i,a){return(0,l.arrayify)((0,d.n)(e,n,r,i,a))}function M(e,n,r,i,a){return Promise.resolve(C(e,n,r,i,a))}function A(e,n,r,i,a){let o=(0,m.Ij)(n),s=(0,m.gx)(e,"crypto/kdf");if(s&&"string"==typeof s){let n=function(e,n){return v.throwArgumentError("invalid key-derivation function parameters",e,n)};if("scrypt"===s.toLowerCase()){let r=(0,m.p3)((0,m.gx)(e,"crypto/kdfparams/salt")),f=parseInt((0,m.gx)(e,"crypto/kdfparams/n")),l=parseInt((0,m.gx)(e,"crypto/kdfparams/r")),u=parseInt((0,m.gx)(e,"crypto/kdfparams/p"));f&&l&&u||n("kdf",s),(f&f-1)!=0&&n("N",f);let c=parseInt((0,m.gx)(e,"crypto/kdfparams/dklen"));return 32!==c&&n("dklen",c),i(o,r,f,l,u,64,a)}if("pbkdf2"===s.toLowerCase()){let i=(0,m.p3)((0,m.gx)(e,"crypto/kdfparams/salt")),a=null,s=(0,m.gx)(e,"crypto/kdfparams/prf");
1"hmac-sha256"===s?a="sha256":"hmac-sha512"===s?a="sha512":n("prf",s);let f=parseInt((0,m.gx)(e,"crypto/kdfparams/c")),l=parseInt((0,m.gx)(e,"crypto/kdfparams/dklen"));return 32!==l&&n("dklen",l),r(o,i,f,l,a)}}return v.throwArgumentError("unsupported key-derivation function","kdf",s)}function E(e,n){let r=JSON.parse(e),i=A(r,n,C,s().syncScrypt);return T(r,i)}function I(e,n,r){var i,a,o,f;return i=this,a=void 0,o=void 0,f=function*(){let i=JSON.parse(e),a=yield A(i,n,M,s().scrypt,r);return T(i,a)},new(o||(o=Promise))(function(e,n){function r(e){try{l(f.next(e))}catch(e){n(e)}}function s(e){try{l(f.throw(e))}catch(e){n(e)}}function l(n){var i;n.done?e(n.value):((i=n.value)instanceof o?i:new o(function(e){e(i)})).then(r,s)}l((f=f.apply(i,a||[])).next())})}function S(e,n,r,i){try{if((0,f.getAddress)(e.address)!==(0,y.computeAddress)(e.privateKey))throw Error("address/privateKey mismatch");if(w(e)){let n=e.mnemonic;if(u.HDNode.fromMnemonic(n.phrase,null,n.locale).derivePath(n.path||u.defaultPath).privateKey!=e.privateKey)throw Error("mnemonic mismatch")}}catch(e){return Promise.reject(e)}"function"!=typeof r||i||(i=r,r={}),r||(r={});let o=(0,l.arrayify)(e.privateKey),d=(0,m.Ij)(n),h=null,g=null,b=null;if(w(e)){let n=e.mnemonic;h=(0,l.arrayify)((0,u.mnemonicToEntropy)(n.phrase,n.locale||"en")),g=n.path||u.defaultPath,b=n.locale||"en"}let v=r.client;v||(v="ethers.js");let x=null;x=r.salt?(0,l.arrayify)(r.salt):(0,p.O)(32);let T=null;if(r.iv){if(16!==(T=(0,l.arrayify)(r.iv)).length)throw Error("invalid iv")}else T=(0,p.O)(16);let C=null;if(r.uuid){if(16!==(C=(0,l.arrayify)(r.uuid)).length)throw Error("invalid uuid")}else C=(0,p.O)(16);let M=131072,A=8,E=1;return r.scrypt&&(r.scrypt.N&&(M=r.scrypt.N),r.scrypt.r&&(A=r.scrypt.r),r.scrypt.p&&(E=r.scrypt.p)),s().scrypt(d,x,M,A,E,64,i).then(n=>{let r=(n=(0,l.arrayify)(n)).slice(0,16),i=n.slice(16,32),s=n.slice(32,64),f=new(a()).Counter(T),u=new(a()).ModeOfOperation.ctr(r,f),d=(0,l.arrayify)(u.encrypt(o)),y=(0,c.keccak256)((0,l.concat)([i,d])),w={address:e.address.substring(2).toLowerCase(),id:(0,m.EH)(C),version:3,crypto:{cipher:"aes-128-ctr",cipherparams:{iv:(0,l.hexlify)(T).substring(2)},ciphertext:(0,l.hexlify)(d).substring(2),kdf:"scrypt",kdfparams:{salt:(0,l.hexlify)(x).substring(2),n:M,dklen:32,p:E,r:A},mac:y.substring(2)}};if(h){let e=(0,p.O)(16),n=new(a()).Counter(e),r=new(a()).ModeOfOperation.ctr(s,n),i=(0,l.arrayify)(r.encrypt(h)),o=new Date,f=o.getUTCFullYear()+"-"+(0,m.VP)(o.getUTCMonth()+1,2)+"-"+(0,m.VP)(o.getUTCDate(),2)+"T"+(0,m.VP)(o.getUTCHours(),2)+"-"+(0,m.VP)(o.getUTCMinutes(),2)+"-"+(0,m.VP)(o.getUTCSeconds(),2)+".0Z";w["x-ethers"]={client:v,gethFilename:"UTC--"+f+"--"+w.address,mnemonicCounter:(0,l.hexlify)(e).substring(2),mnemonicCiphertext:(0,l.hexlify)(i).substring(2),path:g,locale:b,version:"0.1"}}return JSON.stringify(w)})}},65199:function(e,n,r){"use strict";r.d(n,{EH:function(){return u},Ij:function(){return f},VP:function(){return s},gx:function(){return l},p3:function(){return o}});var i=r(16441),a=r(29251);function o(e){return"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),(0,i.arrayify)(e)}function s(e,n){for(e=String(e);e.length<n;)e="0"+e;return e}function f(e){return"string"==typeof e?(0,a.Y0)(e,a.Uj.NFKC):(0,i.arrayify)(e)}function l(e,n){let r=e,i=n.toLowerCase().split("/");for(let e=0;e<i.length;e++){let n=null;for(let a in r)if(a.toLowerCase()===i[e]){n=r[a];break}if(null===n)return null;r=n}return r}function u(e){let n=(0,i.arrayify)(e);n[6]=15&n[6]|64,n[8]=63&n[8]|128;let r=(0,i.hexlify)(n);return[r.substring(2,10),r.substring(10,14),r.substring(14,18),r.substring(18,22),r.substring(22,34)].join("-")}},38197:function(e,n,r){"use strict";r.r(n),r.d(n,{keccak256:function(){return s}});var i=r(91094),a=r.n(i),o=r(16441);function s(e){return"0x"+a().keccak_256((0,o.arrayify)(e))}},1581:function(e,n,r){"use strict";var i,a,o,s;r.r(n),r.d(n,{ErrorCode:function(){return a},LogLevel:function(){return i},Logger:function(){return y}});let f=!1,l=!1,u={debug:1,default:2,info:2,warning:3,error:4,off:5},c=u.default,d=null,p=function(){try{let e=[];
1if(["NFD","NFC","NFKD","NFKC"].forEach(n=>{try{if("test"!=="test".normalize(n))throw Error("bad normalize")}catch(r){e.push(n)}}),e.length)throw Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw Error("broken implementation")}catch(e){return e.message}return null}();(o=i||(i={})).DEBUG="DEBUG",o.INFO="INFO",o.WARNING="WARNING",o.ERROR="ERROR",o.OFF="OFF",(s=a||(a={})).UNKNOWN_ERROR="UNKNOWN_ERROR",s.NOT_IMPLEMENTED="NOT_IMPLEMENTED",s.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",s.NETWORK_ERROR="NETWORK_ERROR",s.SERVER_ERROR="SERVER_ERROR",s.TIMEOUT="TIMEOUT",s.BUFFER_OVERRUN="BUFFER_OVERRUN",s.NUMERIC_FAULT="NUMERIC_FAULT",s.MISSING_NEW="MISSING_NEW",s.INVALID_ARGUMENT="INVALID_ARGUMENT",s.MISSING_ARGUMENT="MISSING_ARGUMENT",s.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",s.CALL_EXCEPTION="CALL_EXCEPTION",s.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",s.NONCE_EXPIRED="NONCE_EXPIRED",s.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",s.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",s.TRANSACTION_REPLACED="TRANSACTION_REPLACED",s.ACTION_REJECTED="ACTION_REJECTED";let h="0123456789abcdef";class y{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,n){let r=e.toLowerCase();null==u[r]&&this.throwArgumentError("invalid log level name","logLevel",e),c>u[r]||console.log.apply(console,n)}debug(...e){this._log(y.levels.DEBUG,e)}info(...e){this._log(y.levels.INFO,e)}warn(...e){this._log(y.levels.WARNING,e)}makeError(e,n,r){if(l)return this.makeError("censored error",n,{});n||(n=y.errors.UNKNOWN_ERROR),r||(r={});let i=[];Object.keys(r).forEach(e=>{let n=r[e];try{if(n instanceof Uint8Array){let r="";for(let e=0;e<n.length;e++)r+=h[n[e]>>4]+h[15&n[e]];i.push(e+"=Uint8Array(0x"+r+")")}else i.push(e+"="+JSON.stringify(n))}catch(n){i.push(e+"="+JSON.stringify(r[e].toString()))}}),i.push(`code=${n}`),i.push(`version=${this.version}`);let o=e,s="";switch(n){case a.NUMERIC_FAULT:{s="NUMERIC_FAULT";let n=e;switch(n){case"overflow":case"underflow":case"division-by-zero":s+="-"+n;break;case"negative-power":case"negative-width":s+="-unsupported";break;case"unbound-bitwise-result":s+="-unbound-result"}break}case a.CALL_EXCEPTION:case a.INSUFFICIENT_FUNDS:case a.MISSING_NEW:case a.NONCE_EXPIRED:case a.REPLACEMENT_UNDERPRICED:case a.TRANSACTION_REPLACED:case a.UNPREDICTABLE_GAS_LIMIT:s=n}s&&(e+=" [ See: https://links.ethers.org/v5-errors-"+s+" ]"),i.length&&(e+=" ("+i.join(", ")+")");let f=Error(e);return f.reason=o,f.code=n,Object.keys(r).forEach(function(e){f[e]=r[e]}),f}throwError(e,n,r){throw this.makeError(e,n,r)}throwArgumentError(e,n,r){return this.throwError(e,y.errors.INVALID_ARGUMENT,{argument:n,value:r})}assert(e,n,r,i){e||this.throwError(n,r,i)}assertArgument(e,n,r,i){e||this.throwArgumentError(n,r,i)}checkNormalize(e){null==e&&(e="platform missing String.prototype.normalize"),p&&this.throwError("platform missing String.prototype.normalize",y.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:p})}checkSafeUint53(e,n){"number"==typeof e&&(null==n&&(n="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(n,y.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(n,y.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,n,r){r=r?": "+r:"",e<n&&this.throwError("missing argument"+r,y.errors.MISSING_ARGUMENT,{count:e,expectedCount:n}),e>n&&this.throwError("too many arguments"+r,y.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:n})}checkNew(e,n){(e===Object||null==e)&&this.throwError("missing new",y.errors.MISSING_NEW,{name:n.name})}checkAbstract(e,n){e===n?this.throwError("cannot instantiate abstract class "+JSON.stringify(n.name)+" directly; use a sub-class",y.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||null==e)&&this.throwError("missing new",y.errors.MISSING_NEW,{name:n.name})}static globalLogger(){return d||(d=new y("logger/5.7.0")),d}static setCensorship(e,n){if(!e&&n&&this.globalLogger().throwError("cannot permanently disable censorship",y.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),f){if(!e)return;this.globalLogger().throwError("error censorship permanent",y.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}l=!!e,f=!!n}static setLogLevel(e){let n=u[e.toLowerCase()];if(null==n){y.globalLogger().warn("invalid log level - "+e);return}c=n}static from(e){return new y(e)}}y.errors=a,y.levels=i},45710:function(e,n,r){"use strict";r.d(n,{H:function(){return c}});let i=new(r(1581)).Logger("networks/5.7.1");function a(e){let n=function(n,r){null==r&&(r={});let i=[];if(n.InfuraProvider&&"-"!==r.infura)try{i.push(new n.InfuraProvider(e,r.infura))}catch(e){}if(n.EtherscanProvider&&"-"!==r.etherscan)try{i.push(new n.EtherscanProvider(e,r.etherscan))}catch(e){}
1if(n.AlchemyProvider&&"-"!==r.alchemy)try{i.push(new n.AlchemyProvider(e,r.alchemy))}catch(e){}if(n.PocketProvider&&"-"!==r.pocket)try{let a=new n.PocketProvider(e,r.pocket);a.network&&-1===["goerli","ropsten","rinkeby","sepolia"].indexOf(a.network.name)&&i.push(a)}catch(e){}if(n.CloudflareProvider&&"-"!==r.cloudflare)try{i.push(new n.CloudflareProvider(e))}catch(e){}if(n.AnkrProvider&&"-"!==r.ankr)try{let a=new n.AnkrProvider(e,r.ankr);a.network&&-1===["ropsten"].indexOf(a.network.name)&&i.push(a)}catch(e){}if(0===i.length)return null;if(n.FallbackProvider){let a=1;return null!=r.quorum?a=r.quorum:"homestead"===e&&(a=2),new n.FallbackProvider(i,a)}return i[0]};return n.renetwork=function(e){return a(e)},n}function o(e,n){let r=function(r,i){return r.JsonRpcProvider?new r.JsonRpcProvider(e,n):null};return r.renetwork=function(n){return o(e,n)},r}let s={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:a("homestead")},f={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:a("ropsten")},l={chainId:63,name:"classicMordor",_defaultProvider:o("https://www.ethercluster.com/mordor","classicMordor")},u={unspecified:{chainId:0,name:"unspecified"},homestead:s,mainnet:s,morden:{chainId:2,name:"morden"},ropsten:f,testnet:f,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:a("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:a("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:a("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:a("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:o("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:l,classicTestnet:l,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:o("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:a("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:a("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function c(e){if(null==e)return null;if("number"==typeof e){for(let n in u){let r=u[n];if(r.chainId===e)return{name:r.name,chainId:r.chainId,ensAddress:r.ensAddress||null,_defaultProvider:r._defaultProvider||null}}return{chainId:e,name:"unknown"}}if("string"==typeof e){let n=u[e];return null==n?null:{name:n.name,chainId:n.chainId,ensAddress:n.ensAddress,_defaultProvider:n._defaultProvider||null}}let n=u[e.name];if(!n)return"number"!=typeof e.chainId&&i.throwArgumentError("invalid network chainId","network",e),e;0!==e.chainId&&e.chainId!==n.chainId&&i.throwArgumentError("network chainId mismatch","network",e);let r=e._defaultProvider||null;if(null==r&&n._defaultProvider){var a;r=(a=n._defaultProvider)&&"function"==typeof a.renetwork?n._defaultProvider.renetwork(e):n._defaultProvider}return{name:e.name,chainId:n.chainId,ensAddress:e.ensAddress||n.ensAddress||null,_defaultProvider:r}}},85306:function(e,n,r){"use strict";r.d(n,{n:function(){return o}});var i=r(16441),a=r(2006);function o(e,n,r,o,s){let f,l,u;e=(0,i.arrayify)(e),n=(0,i.arrayify)(n);let c=1,d=new Uint8Array(o),p=new Uint8Array(n.length+4);p.set(n);for(let h=1;h<=c;h++){p[n.length]=h>>24&255,p[n.length+1]=h>>16&255,p[n.length+2]=h>>8&255,p[n.length+3]=255&h;let y=(0,i.arrayify)((0,a.Gy)(s,e,p));f||(u=new Uint8Array(f=y.length),c=Math.ceil(o/f),l=o-(c-1)*f),u.set(y);for(let n=1;n<r;n++){y=(0,i.arrayify)((0,a.Gy)(s,e,y));for(let e=0;e<f;e++)u[e]^=y[e]}let m=(h-1)*f,g=h===c?l:f;d.set((0,i.arrayify)(u).slice(0,g),m)}return(0,i.hexlify)(d)}},6881:function(e,n,r){"use strict";r.r(n),r.d(n,{Description:function(){return d},checkProperties:function(){return f},deepCopy:function(){return c},defineReadOnly:function(){return a},getStatic:function(){return o},resolveProperties:function(){return s},shallowCopy:function(){return l}});let i=new(r(1581)).Logger("properties/5.7.0");function a(e,n,r){Object.defineProperty(e,n,{enumerable:!0,value:r,writable:!1})}function o(e,n){for(let r=0;r<32;r++){if(e[n])return e[n];if(!e.prototype||"object"!=typeof e.prototype)break;e=Object.getPrototypeOf(e.prototype).constructor}return null}function s(e){var n,r,i,a;return n=this,r=void 0,i=void 0,a=function*(){let n=Object.keys(e).map(n=>Promise.resolve(e[n]).then(e=>({key:n,value:e})));return(yield Promise.all(n)).reduce((e,n)=>(e[n.key]=n.value,e),{})}
1,new(i||(i=Promise))(function(e,o){function s(e){try{l(a.next(e))}catch(e){o(e)}}function f(e){try{l(a.throw(e))}catch(e){o(e)}}function l(n){var r;n.done?e(n.value):((r=n.value)instanceof i?r:new i(function(e){e(r)})).then(s,f)}l((a=a.apply(n,r||[])).next())})}function f(e,n){e&&"object"==typeof e||i.throwArgumentError("invalid object","object",e),Object.keys(e).forEach(r=>{n[r]||i.throwArgumentError("invalid object key - "+r,"transaction:"+r,e)})}function l(e){let n={};for(let r in e)n[r]=e[r];return n}let u={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function c(e){return function(e){if(function e(n){if(null==n||u[typeof n])return!0;if(Array.isArray(n)||"object"==typeof n){if(!Object.isFrozen(n))return!1;let r=Object.keys(n);for(let i=0;i<r.length;i++){let a=null;try{a=n[r[i]]}catch(e){continue}if(!e(a))return!1}return!0}return i.throwArgumentError(`Cannot deepCopy ${typeof n}`,"object",n)}(e))return e;if(Array.isArray(e))return Object.freeze(e.map(e=>c(e)));if("object"==typeof e){let n={};for(let r in e){let i=e[r];void 0!==i&&a(n,r,c(i))}return n}return i.throwArgumentError(`Cannot deepCopy ${typeof e}`,"object",e)}(e)}class d{constructor(e){for(let n in e)this[n]=c(e[n])}}},34216:function(e,n,r){"use strict";r.d(n,{i:function(){return i}});let i="providers/5.7.2"},97013:function(e,n,r){"use strict";r.d(n,{H2:function(){return U},Zk:function(){return W}});var i=r(81556),a=r(59567),o=r(57727),s=r(2593),f=r(16441),l=r(57218),u=r(27586),c=r(45710),d=r(6881),p=r(2006),h=r(29251),y=r(37707),m=r(92882),g=r.n(m),b=r(1581),v=r(34216),w=r(30032),x=function(e,n,r,i){return new(r||(r=Promise))(function(a,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function f(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var n;e.done?a(e.value):((n=e.value)instanceof r?n:new r(function(e){e(n)})).then(s,f)}l((i=i.apply(e,n||[])).next())})};let T=new b.Logger(v.i);function C(e){return null==e?"null":(32!==(0,f.hexDataLength)(e)&&T.throwArgumentError("invalid topic","topic",e),e.toLowerCase())}function M(e){for(e=e.slice();e.length>0&&null==e[e.length-1];)e.pop();return e.map(e=>{if(!Array.isArray(e))return C(e);{let n={};e.forEach(e=>{n[C(e)]=!0});let r=Object.keys(n);return r.sort(),r.join("|")}}).join("&")}function A(e){if("string"==typeof e){if(e=e.toLowerCase(),32===(0,f.hexDataLength)(e))return"tx:"+e;if(-1===e.indexOf(":"))return e}else if(Array.isArray(e))return"filter:*:"+M(e);else if(i.ForkEvent.isForkEvent(e))throw T.warn("not implemented"),Error("not implemented");else if(e&&"object"==typeof e)return"filter:"+(e.address||"*")+":"+M(e.topics||[]);throw Error("invalid event - "+e)}function E(){return new Date().getTime()}function I(e){return new Promise(n=>{setTimeout(n,e)})}let S=["block","network","pending","poll"];class k{constructor(e,n,r){(0,d.defineReadOnly)(this,"tag",e),(0,d.defineReadOnly)(this,"listener",n),(0,d.defineReadOnly)(this,"once",r),this._lastBlockNumber=-2,this._inflight=!1}get event(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}get type(){return this.tag.split(":")[0]}get hash(){let e=this.tag.split(":");return"tx"!==e[0]?null:e[1]}get filter(){var e;let n=this.tag.split(":");if("filter"!==n[0])return null;let r=n[1],i=""===(e=n[2])?[]:e.split(/&/g).map(e=>{if(""===e)return[];let n=e.split("|").map(e=>"null"===e?null:e);return 1===n.length?n[0]:n}),a={};return i.length>0&&(a.topics=i),r&&"*"!==r&&(a.address=r),a}pollable(){return this.tag.indexOf(":")>=0||S.indexOf(this.tag)>=0}}let N={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function j(e){return(0,f.hexZeroPad)(s.O$.from(e).toHexString(),32)}function D(e){return o.Base58.encode((0,f.concat)([e,(0,f.hexDataSlice)((0,p.JQ)((0,p.JQ)(e)),0,4)]))}let _=RegExp("^(ipfs)://(.*)$","i"),O=[RegExp("^(https)://(.*)$","i"),RegExp("^(data):(.*)$","i"),_,RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function P(e,n){try{return(0,h.ZN)(L(e,n))}catch(e){}return null}function L(e,n){if("0x"===e)return null;let r=s.O$.from((0,f.hexDataSlice)(e,n,n+32)).toNumber(),i=s.O$.from((0,f.hexDataSlice)(e,r,r+32)).toNumber();return(0,f.hexDataSlice)(e,r+32,r+32+i)}function R(e){return e.match(/^ipfs:\/\/ipfs\//i)?e=e.substring(12):e.match(/^ipfs:\/\//i)?e=e.substring(7):T.throwArgumentError("unsupported IPFS format","link",e),`https://gateway.ipfs.io/ipfs/${e}`}function z(e){let n=(0,f.arrayify)(e);if(n.length>32)throw Error("internal; should not happen");let r=new Uint8Array(32);return r.set(n,32-n.length),r}function B(e){let n=[],r=0;for(let i=0;i<e.length;i++)n.push(null),r+=32;for(let i=0;i<e.length;i++){let a=(0,f.arrayify)(e[i]);n[i]=z(r),n.push(z(a.length)),n.push(function(e){if(e.length%32==0)return e;let n=new Uint8Array(32*Math.ceil(e.length/32));return n.set(e),n}(a)),r+=32+32*Math.ceil(a.length/32)}return(0,f.hexConcat)(n)}class U{constructor(e,n,r,i){(0,d.defineReadOnly)(this,"provider",e),(0,d.defineReadOnly)(this,"name",r),(0,d.defineReadOnly)(this,"address",e.formatter.address(n)),(0,d.defineReadOnly)(this,"_resolvedAddress",i)}supportsWildcard(){return this._supportsEip2544||(this._supportsEip2544=this.provider.call({to:this.address,data:"0x01ffc9a79061b92300000000000000000000000000000000000000000000000000000000"}).then(e=>s.O$.from(e).eq(1)).catch(e=>{if(e.code===b.Logger.errors.CALL_EXCEPTION)return!1;throw this._supportsEip2544=null,e})),this._supportsEip2544}
1_fetch(e,n){return x(this,void 0,void 0,function*(){let r={to:this.address,ccipReadEnabled:!0,data:(0,f.hexConcat)([e,(0,u.VM)(this.name),n||"0x"])},i=!1;(yield this.supportsWildcard())&&(i=!0,r.data=(0,f.hexConcat)(["0x9061b923",B([(0,u.Kn)(this.name),r.data])]));try{let e=yield this.provider.call(r);return(0,f.arrayify)(e).length%32==4&&T.throwError("resolver threw error",b.Logger.errors.CALL_EXCEPTION,{transaction:r,data:e}),i&&(e=L(e,0)),e}catch(e){if(e.code===b.Logger.errors.CALL_EXCEPTION)return null;throw e}})}_fetchBytes(e,n){return x(this,void 0,void 0,function*(){let r=yield this._fetch(e,n);return null!=r?L(r,0):null})}_getAddress(e,n){let r=N[String(e)];if(null==r&&T.throwError(`unsupported coin type: ${e}`,b.Logger.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`}),"eth"===r.ilk)return this.provider.formatter.address(n);let i=(0,f.arrayify)(n);if(null!=r.p2pkh){let e=n.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(e){let n=parseInt(e[1],16);if(e[2].length===2*n&&n>=1&&n<=75)return D((0,f.concat)([[r.p2pkh],"0x"+e[2]]))}}if(null!=r.p2sh){let e=n.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(e){let n=parseInt(e[1],16);if(e[2].length===2*n&&n>=1&&n<=75)return D((0,f.concat)([[r.p2sh],"0x"+e[2]]))}}if(null!=r.prefix){let e=i[1],n=i[0];if(0===n?20!==e&&32!==e&&(n=-1):n=-1,n>=0&&i.length===2+e&&e>=1&&e<=75){let e=g().toWords(i.slice(2));return e.unshift(n),g().encode(r.prefix,e)}}return null}getAddress(e){return x(this,void 0,void 0,function*(){if(null==e&&(e=60),60===e)try{let e=yield this._fetch("0x3b3b57de");if("0x"===e||e===l.R)return null;return this.provider.formatter.callAddress(e)}catch(e){if(e.code===b.Logger.errors.CALL_EXCEPTION)return null;throw e}let n=yield this._fetchBytes("0xf1cb7e06",j(e));if(null==n||"0x"===n)return null;let r=this._getAddress(e,n);return null==r&&T.throwError("invalid or unsupported coin data",b.Logger.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`,coinType:e,data:n}),r})}getAvatar(){return x(this,void 0,void 0,function*(){let e=[{type:"name",content:this.name}];try{let n=yield this.getText("avatar");if(null==n)return null;for(let r=0;r<O.length;r++){let i=n.match(O[r]);if(null==i)continue;let a=i[1].toLowerCase();switch(a){case"https":return e.push({type:"url",content:n}),{linkage:e,url:n};case"data":return e.push({type:"data",content:n}),{linkage:e,url:n};case"ipfs":return e.push({type:"ipfs",content:n}),{linkage:e,url:R(n)};case"erc721":case"erc1155":{let r="erc721"===a?"0xc87b56dd":"0x0e89341c";e.push({type:a,content:n});let o=this._resolvedAddress||(yield this.getAddress()),l=(i[2]||"").split("/");if(2!==l.length)return null;let u=yield this.provider.formatter.address(l[0]),c=(0,f.hexZeroPad)(s.O$.from(l[1]).toHexString(),32);if("erc721"===a){let n=this.provider.formatter.callAddress((yield this.provider.call({to:u,data:(0,f.hexConcat)(["0x6352211e",c])})));if(o!==n)return null;e.push({type:"owner",content:n})}else if("erc1155"===a){let n=s.O$.from((yield this.provider.call({to:u,data:(0,f.hexConcat)(["0x00fdd58e",(0,f.hexZeroPad)(o,32),c])})));if(n.isZero())return null;e.push({type:"balance",content:n.toString()})}let d={to:this.provider.formatter.address(l[0]),data:(0,f.hexConcat)([r,c])},p=P((yield this.provider.call(d)),0);if(null==p)return null;e.push({type:"metadata-url-base",content:p}),"erc1155"===a&&(p=p.replace("{id}",c.substring(2)),e.push({type:"metadata-url-expanded",content:p})),p.match(/^ipfs:/i)&&(p=R(p)),e.push({type:"metadata-url",content:p});let h=yield(0,y.fetchJson)(p);if(!h)return null;e.push({type:"metadata",content:JSON.stringify(h)});let m=h.image;if("string"!=typeof m)return null;if(m.match(/^(https:\/\/|data:)/i));else{let n=m.match(_);if(null==n)return null;e.push({type:"url-ipfs",content:m}),m=R(m)}return e.push({type:"url",content:m}),{linkage:e,url:m}}}}}catch(e){}return null})}getContentHash(){return x(this,void 0,void 0,function*(){let e=yield this._fetchBytes("0xbc1c58d1");if(null==e||"0x"===e)return null;let n=e.match(/^0xe3010170(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(n){let e=parseInt(n[3],16);if(n[4].length===2*e)return"ipfs://"+o.Base58.encode("0x"+n[1])}let r=e.match(/^0xe5010172(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(r){let e=parseInt(r[3],16);if(r[4].length===2*e)return"ipns://"+o.Base58.encode("0x"+r[1])}let i=e.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(i&&64===i[1].length)return"bzz://"+i[1];let s=e.match(/^0x90b2c605([0-9a-f]*)$/);if(s&&68===s[1].length){let e={"=":"","+":"-","/":"_"};return"sia://"+(0,a.c)("0x"+s[1]).replace(/[=+\/]/g,n=>e[n])}return T.throwError("invalid or unsupported content hash data",b.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:e})})}getText(e){return x(this,void 0,void 0,function*(){let n=(0,h.Y0)(e);(n=(0,f.concat)([j(64),j(n.length),n])).length%32!=0&&(n=(0,f.concat)([n,(0,f.hexZeroPad)("0x",32-e.length%32)]));let r=yield this._fetchBytes("0x59d1d43c",(0,f.hexlify)(n));return null==r||"0x"===r?null:(0,h.ZN)(r)})}}let F=null,Z=1;class W extends i.Provider{constructor(e){if(super(),this._events=[],this._emitted={block:-2},this.disableCcipRead=!1,this.formatter=new.target.getFormatter(),(0,d.defineReadOnly)(this,"anyNetwork","any"===e),this.anyNetwork&&(e=this.detectNetwork()),e instanceof Promise)this._networkPromise=e,e.catch(e=>{}),this._ready().catch(e=>{});else{let n=(0,d.getStatic)(new.target,"getNetwork")(e);
1n?((0,d.defineReadOnly)(this,"_network",n),this.emit("network",n,null)):T.throwArgumentError("invalid network","network",e)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return x(this,void 0,void 0,function*(){if(null==this._network){let e=null;if(this._networkPromise)try{e=yield this._networkPromise}catch(e){}null==e&&(e=yield this.detectNetwork()),e||T.throwError("no network detected",b.Logger.errors.UNKNOWN_ERROR,{}),null==this._network&&(this.anyNetwork?this._network=e:(0,d.defineReadOnly)(this,"_network",e),this.emit("network",e,null))}return this._network})}get ready(){return(0,y.poll)(()=>this._ready().then(e=>e,e=>{if(e.code!==b.Logger.errors.NETWORK_ERROR||"noNetwork"!==e.event)throw e}))}static getFormatter(){return null==F&&(F=new w.Mb),F}static getNetwork(e){return(0,c.H)(null==e?"homestead":e)}ccipReadFetch(e,n,r){return x(this,void 0,void 0,function*(){if(this.disableCcipRead||0===r.length)return null;let i=e.to.toLowerCase(),a=n.toLowerCase(),o=[];for(let e=0;e<r.length;e++){let n=r[e],s=n.replace("{sender}",i).replace("{data}",a),f=n.indexOf("{data}")>=0?null:JSON.stringify({data:a,sender:i}),l=yield(0,y.fetchJson)({url:s,errorPassThrough:!0},f,(e,n)=>(e.status=n.statusCode,e));if(l.data)return l.data;let u=l.message||"unknown error";if(l.status>=400&&l.status<500)return T.throwError(`response not found during CCIP fetch: ${u}`,b.Logger.errors.SERVER_ERROR,{url:n,errorMessage:u});o.push(u)}return T.throwError(`error encountered during CCIP fetch: ${o.map(e=>JSON.stringify(e)).join(", ")}`,b.Logger.errors.SERVER_ERROR,{urls:r,errorMessages:o})})}_getInternalBlockNumber(e){return x(this,void 0,void 0,function*(){if(yield this._ready(),e>0)for(;this._internalBlockNumber;){let n=this._internalBlockNumber;try{let r=yield n;if(E()-r.respTime<=e)return r.blockNumber;break}catch(e){if(this._internalBlockNumber===n)break}}let n=E(),r=(0,d.resolveProperties)({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then(e=>null,e=>e)}).then(({blockNumber:e,networkError:i})=>{if(i)throw this._internalBlockNumber===r&&(this._internalBlockNumber=null),i;let a=E();return(e=s.O$.from(e).toNumber())<this._maxInternalBlockNumber&&(e=this._maxInternalBlockNumber),this._maxInternalBlockNumber=e,this._setFastBlockNumber(e),{blockNumber:e,reqTime:n,respTime:a}});return this._internalBlockNumber=r,r.catch(e=>{this._internalBlockNumber===r&&(this._internalBlockNumber=null)}),(yield r).blockNumber})}poll(){return x(this,void 0,void 0,function*(){let e=Z++,n=[],r=null;try{r=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}catch(e){this.emit("error",e);return}if(this._setFastBlockNumber(r),this.emit("poll",e,r),r===this._lastBlockNumber){this.emit("didPoll",e);return}if(-2===this._emitted.block&&(this._emitted.block=r-1),Math.abs(this._emitted.block-r)>1e3)T.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${r})`),this.emit("error",T.makeError("network block skew detected",b.Logger.errors.NETWORK_ERROR,{blockNumber:r,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",r);else for(let e=this._emitted.block+1;e<=r;e++)this.emit("block",e);this._emitted.block!==r&&(this._emitted.block=r,Object.keys(this._emitted).forEach(e=>{if("block"===e)return;let n=this._emitted[e];"pending"!==n&&r-n>12&&delete this._emitted[e]})),-2===this._lastBlockNumber&&(this._lastBlockNumber=r-1),this._events.forEach(e=>{switch(e.type){case"tx":{let r=e.hash,i=this.getTransactionReceipt(r).then(e=>(e&&null!=e.blockNumber&&(this._emitted["t:"+r]=e.blockNumber,this.emit(r,e)),null)).catch(e=>{this.emit("error",e)});n.push(i);break}case"filter":if(!e._inflight){e._inflight=!0,-2===e._lastBlockNumber&&(e._lastBlockNumber=r-1);let i=e.filter;i.fromBlock=e._lastBlockNumber+1,i.toBlock=r;let a=i.toBlock-this._maxFilterBlockRange;a>i.fromBlock&&(i.fromBlock=a),i.fromBlock<0&&(i.fromBlock=0);let o=this.getLogs(i).then(n=>
1{e._inflight=!1,0!==n.length&&n.forEach(n=>{n.blockNumber>e._lastBlockNumber&&(e._lastBlockNumber=n.blockNumber),this._emitted["b:"+n.blockHash]=n.blockNumber,this._emitted["t:"+n.transactionHash]=n.blockNumber,this.emit(i,n)})}).catch(n=>{this.emit("error",n),e._inflight=!1});n.push(o)}}}),this._lastBlockNumber=r,Promise.all(n).then(()=>{this.emit("didPoll",e)}).catch(e=>{this.emit("error",e)})})}resetEventsBlock(e){this._lastBlockNumber=e-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return x(this,void 0,void 0,function*(){return T.throwError("provider does not support network detection",b.Logger.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})})}getNetwork(){return x(this,void 0,void 0,function*(){let e=yield this._ready(),n=yield this.detectNetwork();if(e.chainId!==n.chainId){if(this.anyNetwork)return this._network=n,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",n,e),yield I(0),this._network;let r=T.makeError("underlying network changed",b.Logger.errors.NETWORK_ERROR,{event:"changed",network:e,detectedNetwork:n});throw this.emit("error",r),r}return e})}get blockNumber(){return this._getInternalBlockNumber(100+this.pollingInterval/2).then(e=>{this._setFastBlockNumber(e)},e=>{}),null!=this._fastBlockNumber?this._fastBlockNumber:-1}get polling(){return null!=this._poller}set polling(e){e&&!this._poller?(this._poller=setInterval(()=>{this.poll()},this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout(()=>{this.poll(),this._bootstrapPoll=setTimeout(()=>{this._poller||this.poll(),this._bootstrapPoll=null},this.pollingInterval)},0))):!e&&this._poller&&(clearInterval(this._poller),this._poller=null)}get pollingInterval(){return this._pollingInterval}set pollingInterval(e){if("number"!=typeof e||e<=0||parseInt(String(e))!=e)throw Error("invalid polling interval");this._pollingInterval=e,this._poller&&(clearInterval(this._poller),this._poller=setInterval(()=>{this.poll()},this._pollingInterval))}_getFastBlockNumber(){let e=E();return e-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=e,this._fastBlockNumberPromise=this.getBlockNumber().then(e=>((null==this._fastBlockNumber||e>this._fastBlockNumber)&&(this._fastBlockNumber=e),this._fastBlockNumber))),this._fastBlockNumberPromise}_setFastBlockNumber(e){(null==this._fastBlockNumber||!(e<this._fastBlockNumber))&&(this._fastQueryDate=E(),(null==this._fastBlockNumber||e>this._fastBlockNumber)&&(this._fastBlockNumber=e,this._fastBlockNumberPromise=Promise.resolve(e)))}waitForTransaction(e,n,r){return x(this,void 0,void 0,function*(){return this._waitForTransaction(e,null==n?1:n,r||0,null)})}_waitForTransaction(e,n,r,i){return x(this,void 0,void 0,function*(){let a=yield this.getTransactionReceipt(e);return(a?a.confirmations:0)>=n?a:new Promise((a,o)=>{let s=[],f=!1,l=function(){return!!f||(f=!0,s.forEach(e=>{e()}),!1)},u=e=>{e.confirmations<n||l()||a(e)};if(this.on(e,u),s.push(()=>{this.removeListener(e,u)}),i){let r=i.startBlock,a=null,u=s=>x(this,void 0,void 0,function*(){f||(yield I(1e3),this.getTransactionCount(i.from).then(c=>x(this,void 0,void 0,function*(){if(!f){if(c<=i.nonce)r=s;else{{let n=yield this.getTransaction(e);if(n&&null!=n.blockNumber)return}for(null==a&&(a=r-3)<i.startBlock&&(a=i.startBlock);a<=s;){if(f)return;let r=yield this.getBlockWithTransactions(a);for(let a=0;a<r.transactions.length;a++){let s=r.transactions[a];if(s.hash===e)return;if(s.from===i.from&&s.nonce===i.nonce){if(f)return;let r=yield this.waitForTransaction(s.hash,n);if(l())return;let a="replaced";s.data===i.data&&s.to===i.to&&s.value.eq(i.value)?a="repriced":"0x"===s.data&&s.from===s.to&&s.value.isZero()&&(a="cancelled"),o(T.makeError("transaction was replaced",b.Logger.errors.TRANSACTION_REPLACED,{cancelled:"replaced"===a||"cancelled"===a,reason:a,replacement:this._wrapTransaction(s),hash:e,receipt:r}));return}}a++}}f||this.once("block",u)}}),e=>{f||this.once("block",u)}))});if(f)return;this.once("block",u),s.push(()=>{this.removeListener("block",u)})}if("number"==typeof r&&r>0){let e=setTimeout(()=>{l()||o(T.makeError("timeout exceeded",b.Logger.errors.TIMEOUT,{timeout:r}))},r);e.unref&&e.unref(),s.push(()=>{clearTimeout(e)})}})})}getBlockNumber(){return x(this,void 0,void 0,function*(){return this._getInternalBlockNumber(0)})}getGasPrice(){return x(this,void 0,void 0,function*(){yield this.getNetwork();let e=yield this.perform("getGasPrice",{});try{return s.O$.from(e)}catch(n){return T.throwError("bad result from backend",b.Logger.errors.SERVER_ERROR,{method:"getGasPrice",result:e,error:n})}})}getBalance(e,n){return x(this,void 0,void 0,function*(){yield this.getNetwork();let r=yield(0,d.resolveProperties)({address:this._getAddress(e),blockTag:this._getBlockTag(n)}),i=yield this.perform("getBalance",r);try{return s.O$.from(i)}catch(e){return T.throwError("bad result from backend",b.Logger.errors.SERVER_ERROR,{method:"getBalance",params:r,result:i,error:e})}})}getTransactionCount(e,n){return x(this,void 0,void 0,function*(){yield this.getNetwork();let r=yield(0,d.resolveProperties)({address:this._getAddress(e),blockTag:this._getBlockTag(n)}),i=yield this.perform("getTransactionCount",r);try{return s.O$.from(i).toNumber()}catch(e){return T.throwError("bad result from backend",b.Logger.errors.SERVER_ERROR,{method:"getTransactionCount",params:r,result:i,error:e})}})}getCode(e,n){return x(this,void 0,void 0,function*(){yield this.getNetwork();let r=yield(0,d.resolveProperties)({address:this._getAddress(e),blockTag:this._getBlockTag(n)}),i=yield this.perform("getCode",r);try{return(0,f.hexlify)(i)}catch(e){return T.throwError("bad result from backend",b.Logger.errors.SERVER_ERROR,{method:"getCode",params:r,result:i,error:e})}})}getStorageAt(e,n,r){return x(this,void 0,void 0,function*(){yield this.getNetwork();let i=yield(0,d.resolveProperties)({address:this._getAddress(e),blockTag:this._getBlockTag(r),position:Prom
1ise.resolve(n).then(e=>(0,f.hexValue)(e))}),a=yield this.perform("getStorageAt",i);try{return(0,f.hexlify)(a)}catch(e){return T.throwError("bad result from backend",b.Logger.errors.SERVER_ERROR,{method:"getStorageAt",params:i,result:a,error:e})}})}_wrapTransaction(e,n,r){if(null!=n&&32!==(0,f.hexDataLength)(n))throw Error("invalid response - sendTransaction");return null!=n&&e.hash!==n&&T.throwError("Transaction hash mismatch from Provider.sendTransaction.",b.Logger.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:n}),e.wait=(n,i)=>x(this,void 0,void 0,function*(){let a;null==n&&(n=1),null==i&&(i=0),0!==n&&null!=r&&(a={data:e.data,from:e.from,nonce:e.nonce,to:e.to,value:e.value,startBlock:r});let o=yield this._waitForTransaction(e.hash,n,i,a);return null==o&&0===n?null:(this._emitted["t:"+e.hash]=o.blockNumber,0===o.status&&T.throwError("transaction failed",b.Logger.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:o}),o)}),e}sendTransaction(e){return x(this,void 0,void 0,function*(){yield this.getNetwork();let n=yield Promise.resolve(e).then(e=>(0,f.hexlify)(e)),r=this.formatter.transaction(e);null==r.confirmations&&(r.confirmations=0);let i=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{let e=yield this.perform("sendTransaction",{signedTransaction:n});return this._wrapTransaction(r,e,i)}catch(e){throw e.transaction=r,e.transactionHash=r.hash,e}})}_getTransactionRequest(e){return x(this,void 0,void 0,function*(){let n=yield e,r={};return["from","to"].forEach(e=>{null!=n[e]&&(r[e]=Promise.resolve(n[e]).then(e=>e?this._getAddress(e):null))}),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach(e=>{null!=n[e]&&(r[e]=Promise.resolve(n[e]).then(e=>e?s.O$.from(e):null))}),["type"].forEach(e=>{null!=n[e]&&(r[e]=Promise.resolve(n[e]).then(e=>null!=e?e:null))}),n.accessList&&(r.accessList=this.formatter.accessList(n.accessList)),["data"].forEach(e=>{null!=n[e]&&(r[e]=Promise.resolve(n[e]).then(e=>e?(0,f.hexlify)(e):null))}),this.formatter.transactionRequest((yield(0,d.resolveProperties)(r)))})}_getFilter(e){return x(this,void 0,void 0,function*(){e=yield e;let n={};return null!=e.address&&(n.address=this._getAddress(e.address)),["blockHash","topics"].forEach(r=>{null!=e[r]&&(n[r]=e[r])}),["fromBlock","toBlock"].forEach(r=>{null!=e[r]&&(n[r]=this._getBlockTag(e[r]))}),this.formatter.filter((yield(0,d.resolveProperties)(n)))})}_call(e,n,r){return x(this,void 0,void 0,function*(){r>=10&&T.throwError("CCIP read exceeded maximum redirections",b.Logger.errors.SERVER_ERROR,{redirects:r,transaction:e});let i=e.to,a=yield this.perform("call",{transaction:e,blockTag:n});if(r>=0&&"latest"===n&&null!=i&&"0x556f1830"===a.substring(0,10)&&(0,f.hexDataLength)(a)%32==4)try{let o=(0,f.hexDataSlice)(a,4),l=(0,f.hexDataSlice)(o,0,32);s.O$.from(l).eq(i)||T.throwError("CCIP Read sender did not match",b.Logger.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:a});let u=[],c=s.O$.from((0,f.hexDataSlice)(o,32,64)).toNumber(),d=s.O$.from((0,f.hexDataSlice)(o,c,c+32)).toNumber(),p=(0,f.hexDataSlice)(o,c+32);for(let n=0;n<d;n++){let r=P(p,32*n);null==r&&T.throwError("CCIP Read contained corrupt URL string",b.Logger.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:a}),u.push(r)}let h=L(o,64);s.O$.from((0,f.hexDataSlice)(o,100,128)).isZero()||T.throwError("CCIP Read callback selector included junk",b.Logger.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:a});let y=(0,f.hexDataSlice)(o,96,100),m=L(o,128),g=yield this.ccipReadFetch(e,h,u);null==g&&T.throwError("CCIP Read disabled or provided no URLs",b.Logger.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:a});let v={to:i,data:(0,f.hexConcat)([y,B([g,m])])};return this._call(v,n,r+1)}catch(e){if(e.code===b.Logger.errors.SERVER_ERROR)throw e}try{return(0,f.hexlify)(a)}catch(r){return T.throwError("bad result from backend",b.Logger.errors.SERVER_ERROR,{method:"call",params:{transaction:e,blockTag:n},result:a,error:r})}})}call(e,n){return x(this,void 0,void 0,function*(){yield this.getNetwork();let r=yield(0,d.resolveProperties)({transaction:this._getTransactionRequest(e),blockTag:this._getBlockTag(n),ccipReadEnabled:Promise.resolve(e.cci
1pReadEnabled)});return this._call(r.transaction,r.blockTag,r.ccipReadEnabled?0:-1)})}estimateGas(e){return x(this,void 0,void 0,function*(){yield this.getNetwork();let n=yield(0,d.resolveProperties)({transaction:this._getTransactionRequest(e)}),r=yield this.perform("estimateGas",n);try{return s.O$.from(r)}catch(e){return T.throwError("bad result from backend",b.Logger.errors.SERVER_ERROR,{method:"estimateGas",params:n,result:r,error:e})}})}_getAddress(e){return x(this,void 0,void 0,function*(){"string"!=typeof(e=yield e)&&T.throwArgumentError("invalid address or ENS name","name",e);let n=yield this.resolveName(e);return null==n&&T.throwError("ENS name not configured",b.Logger.errors.UNSUPPORTED_OPERATION,{operation:`resolveName(${JSON.stringify(e)})`}),n})}_getBlock(e,n){return x(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;let r=-128,i={includeTransactions:!!n};if((0,f.isHexString)(e,32))i.blockHash=e;else try{i.blockTag=yield this._getBlockTag(e),(0,f.isHexString)(i.blockTag)&&(r=parseInt(i.blockTag.substring(2),16))}catch(n){T.throwArgumentError("invalid block hash or block tag","blockHashOrBlockTag",e)}return(0,y.poll)(()=>x(this,void 0,void 0,function*(){let e=yield this.perform("getBlock",i);if(null==e)return null!=i.blockHash&&null==this._emitted["b:"+i.blockHash]||null!=i.blockTag&&r>this._emitted.block?null:void 0;if(n){let n=null;for(let r=0;r<e.transactions.length;r++){let i=e.transactions[r];if(null==i.blockNumber)i.confirmations=0;else if(null==i.confirmations){null==n&&(n=yield this._getInternalBlockNumber(100+2*this.pollingInterval));let e=n-i.blockNumber+1;e<=0&&(e=1),i.confirmations=e}}let r=this.formatter.blockWithTransactions(e);return r.transactions=r.transactions.map(e=>this._wrapTransaction(e)),r}return this.formatter.block(e)}),{oncePoll:this})})}getBlock(e){return this._getBlock(e,!1)}getBlockWithTransactions(e){return this._getBlock(e,!0)}getTransaction(e){return x(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;let n={transactionHash:this.formatter.hash(e,!0)};return(0,y.poll)(()=>x(this,void 0,void 0,function*(){let r=yield this.perform("getTransaction",n);if(null==r)return null==this._emitted["t:"+e]?null:void 0;let i=this.formatter.transactionResponse(r);if(null==i.blockNumber)i.confirmations=0;else if(null==i.confirmations){let e=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-i.blockNumber+1;e<=0&&(e=1),i.confirmations=e}return this._wrapTransaction(i)}),{oncePoll:this})})}getTransactionReceipt(e){return x(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;let n={transactionHash:this.formatter.hash(e,!0)};return(0,y.poll)(()=>x(this,void 0,void 0,function*(){let r=yield this.perform("getTransactionReceipt",n);if(null==r)return null==this._emitted["t:"+e]?null:void 0;if(null==r.blockHash)return;let i=this.formatter.receipt(r);if(null==i.blockNumber)i.confirmations=0;else if(null==i.confirmations){let e=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-i.blockNumber+1;e<=0&&(e=1),i.confirmations=e}return i}),{oncePoll:this})})}getLogs(e){return x(this,void 0,void 0,function*(){yield this.getNetwork();let n=yield(0,d.resolveProperties)({filter:this._getFilter(e)}),r=yield this.perform("getLogs",n);return r.forEach(e=>{null==e.removed&&(e.removed=!1)}),w.Mb.arrayOf(this.formatter.filterLog.bind(this.formatter))(r)})}getEtherPrice(){return x(this,void 0,void 0,function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})})}_getBlockTag(e){return x(this,void 0,void 0,function*(){if("number"==typeof(e=yield e)&&e<0){e%1&&T.throwArgumentError("invalid BlockTag","blockTag",e);let n=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return(n+=e)<0&&(n=0),this.formatter.blockTag(n)}return this.formatter.blockTag(e)})}getResolver(e){return x(this,void 0,void 0,function*(){let n=e;for(;;){if(""===n||"."===n||"eth"!==e&&"eth"===n)return null;let r=yield this._getResolver(n,"getResolver");if(null!=r){let i=new U(this,r,e);if(n!==e&&!(yield i.supportsWildcard()))return null;return i}n=n.split(".").slice(1).join(".")}})}_getResolver(e,n){return x(this,void 0,void 0,function*(){null==n&&(n="ENS");let r=yield this.getNetwork();r.ensAddress||T.throwError("network does not support ENS",b.Logger.errors.UNSUPPORTED_OPERATION,{operation:n,network:r.name});try{let n=yield this.call({to:r.ensAddress,data:"0x0178b8bf"+(0,u.VM)(e).substring(2)});return this.formatter.callAddress(n)}catch(e){}return null})}resolveName(e){return x(this,void 0,void 0,function*(){e=yield e;try{return Promise.resolve(this.formatter.address(e))}catch(n){if((0,f.isHexString)(e))throw n}"string"!=typeof e&&T.throwArgumentError("invalid ENS name","name",e);let n=yield this.getResolver(e);return n?yield n.getAddress():null})}lookupAddress(e){return x(this,void 0,void 0,function*(){e=yield e;let n=(e=this.formatter.address(e)).substring(2).toLowerCase()+".addr.reverse",r=yield this._getResolver(n,"lookupAddress");if(null==r)return null;let i=P((yield this.call({to:r,data:"0x691f3431"+(0,u.VM)(n).substring(2)})),0);return(yield this.resolveName(i))!=e?null:i})}getAvatar(e){return x(this,void 0,void 0,function*(){let n=null;if((0,f.isHexString)(e)){let r=this.formatter.address(e).substring(2).toLowerCase()+".addr.reverse",i=yield this._getResolver(r,"getAvatar");if(!i)return null;n=new U(this,i,r);try{let e=yield n.getAvatar();if(e)return e.url}catch(e){if(e.code!==b.Logger.errors.CALL_EXCEPTION)throw e}try{let e=P((yield this.call({to:i,data:"0x691f3431"+(0,u.VM)(r).substring(2)})),0);n=yield this.getResolver(e)}catch(e){if(e.code!==b.Logger.errors.CALL_EXCEPTION)throw e;return null}}else if(!(n=yield this.getResolver(e)))return null;let r=yield n.getAvatar();return null==r?null:r.url})}perform(e,n){return T.throwError(e+" not implemented",b.Logger.errors.NOT_IMPLEMENT
1ED,{operation:e})}_startEvent(e){this.polling=this._events.filter(e=>e.pollable()).length>0}_stopEvent(e){this.polling=this._events.filter(e=>e.pollable()).length>0}_addEventListener(e,n,r){let i=new k(A(e),n,r);return this._events.push(i),this._startEvent(i),this}on(e,n){return this._addEventListener(e,n,!1)}once(e,n){return this._addEventListener(e,n,!0)}emit(e,...n){let r=!1,i=[],a=A(e);return this._events=this._events.filter(e=>e.tag!==a||(setTimeout(()=>{e.listener.apply(this,n)},0),r=!0,!e.once||(i.push(e),!1))),i.forEach(e=>{this._stopEvent(e)}),r}listenerCount(e){if(!e)return this._events.length;let n=A(e);return this._events.filter(e=>e.tag===n).length}listeners(e){if(null==e)return this._events.map(e=>e.listener);let n=A(e);return this._events.filter(e=>e.tag===n).map(e=>e.listener)}off(e,n){if(null==n)return this.removeAllListeners(e);let r=[],i=!1,a=A(e);return this._events=this._events.filter(e=>e.tag!==a||e.listener!=n||!!i||(i=!0,r.push(e),!1)),r.forEach(e=>{this._stopEvent(e)}),this}removeAllListeners(e){let n=[];if(null==e)n=this._events,this._events=[];else{let r=A(e);this._events=this._events.filter(e=>e.tag!==r||(n.push(e),!1))}return n.forEach(e=>{this._stopEvent(e)}),this}}},30032:function(e,n,r){"use strict";r.d(n,{Ed:function(){return h},Gp:function(){return y},Mb:function(){return p},vh:function(){return g}});var i=r(19485),a=r(2593),o=r(16441),s=r(9279),f=r(6881),l=r(83875),u=r(1581),c=r(34216);let d=new u.Logger(c.i);class p{constructor(){this.formats=this.getDefaultFormats()}getDefaultFormats(){let e={},n=this.address.bind(this),r=this.bigNumber.bind(this),i=this.blockTag.bind(this),a=this.data.bind(this),o=this.hash.bind(this),s=this.hex.bind(this),l=this.number.bind(this),u=this.type.bind(this);return e.transaction={hash:o,type:u,accessList:p.allowNull(this.accessList.bind(this),null),blockHash:p.allowNull(o,null),blockNumber:p.allowNull(l,null),transactionIndex:p.allowNull(l,null),confirmations:p.allowNull(l,null),from:n,gasPrice:p.allowNull(r),maxPriorityFeePerGas:p.allowNull(r),maxFeePerGas:p.allowNull(r),gasLimit:r,to:p.allowNull(n,null),value:r,nonce:l,data:a,r:p.allowNull(this.uint256),s:p.allowNull(this.uint256),v:p.allowNull(l),creates:p.allowNull(n,null),raw:p.allowNull(a)},e.transactionRequest={from:p.allowNull(n),nonce:p.allowNull(l),gasLimit:p.allowNull(r),gasPrice:p.allowNull(r),maxPriorityFeePerGas:p.allowNull(r),maxFeePerGas:p.allowNull(r),to:p.allowNull(n),value:p.allowNull(r),data:p.allowNull(e=>this.data(e,!0)),type:p.allowNull(l),accessList:p.allowNull(this.accessList.bind(this),null)},e.receiptLog={transactionIndex:l,blockNumber:l,transactionHash:o,address:n,topics:p.arrayOf(o),data:a,logIndex:l,blockHash:o},e.receipt={to:p.allowNull(this.address,null),from:p.allowNull(this.address,null),contractAddress:p.allowNull(n,null),transactionIndex:l,root:p.allowNull(s),gasUsed:r,logsBloom:p.allowNull(a),blockHash:o,transactionHash:o,logs:p.arrayOf(this.receiptLog.bind(this)),blockNumber:l,confirmations:p.allowNull(l,null),cumulativeGasUsed:r,effectiveGasPrice:p.allowNull(r),status:p.allowNull(l),type:u},e.block={hash:p.allowNull(o),parentHash:o,number:l,timestamp:l,nonce:p.allowNull(s),difficulty:this.difficulty.bind(this),gasLimit:r,gasUsed:r,miner:p.allowNull(n),extraData:a,transactions:p.allowNull(p.arrayOf(o)),baseFeePerGas:p.allowNull(r)},e.blockWithTransactions=(0,f.shallowCopy)(e.block),e.blockWithTransactions.transactions=p.allowNull(p.arrayOf(this.transactionResponse.bind(this))),e.filter={fromBlock:p.allowNull(i,void 0),toBlock:p.allowNull(i,void 0),blockHash:p.allowNull(o,void 0),address:p.allowNull(n,void 0),topics:p.allowNull(this.topics.bind(this),void 0)},e.filterLog={blockNumber:p.allowNull(l),blockHash:p.allowNull(o),transactionIndex:l,removed:p.allowNull(this.boolean.bind(this)),address:n,data:p.allowFalsish(a,"0x"),topics:p.arrayOf(o),transactionHash:o,logIndex:l},e}accessList(e){return(0,l.accessListify)(e||[])}number(e){return"0x"===e?0:a.O$.from(e).toNumber()}type(e){return"0x"===e||null==e?0:a.O$.from(e).toNumber()}bigNumber(e){return a.O$.from(e)}boolean(e){if("boolean"==typeof e)return e;if("string"==typeof e){if("true"===(e=e.toLowerCase()))return!0;
1if("false"===e)return!1}throw Error("invalid boolean - "+e)}hex(e,n){return"string"==typeof e&&(n||"0x"===e.substring(0,2)||(e="0x"+e),(0,o.isHexString)(e))?e.toLowerCase():d.throwArgumentError("invalid hash","value",e)}data(e,n){let r=this.hex(e,n);if(r.length%2!=0)throw Error("invalid data; odd-length - "+e);return r}address(e){return(0,i.getAddress)(e)}callAddress(e){if(!(0,o.isHexString)(e,32))return null;let n=(0,i.getAddress)((0,o.hexDataSlice)(e,12));return n===s.d?null:n}contractAddress(e){return(0,i.getContractAddress)(e)}blockTag(e){if(null==e)return"latest";if("earliest"===e)return"0x0";switch(e){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return e}if("number"==typeof e||(0,o.isHexString)(e))return(0,o.hexValue)(e);throw Error("invalid blockTag")}hash(e,n){let r=this.hex(e,n);return 32!==(0,o.hexDataLength)(r)?d.throwArgumentError("invalid hash","value",e):r}difficulty(e){if(null==e)return null;let n=a.O$.from(e);try{return n.toNumber()}catch(e){}return null}uint256(e){if(!(0,o.isHexString)(e))throw Error("invalid uint256");return(0,o.hexZeroPad)(e,32)}_block(e,n){null!=e.author&&null==e.miner&&(e.miner=e.author);let r=null!=e._difficulty?e._difficulty:e.difficulty,i=p.check(n,e);return i._difficulty=null==r?null:a.O$.from(r),i}block(e){return this._block(e,this.formats.block)}blockWithTransactions(e){return this._block(e,this.formats.blockWithTransactions)}transactionRequest(e){return p.check(this.formats.transactionRequest,e)}transactionResponse(e){null!=e.gas&&null==e.gasLimit&&(e.gasLimit=e.gas),e.to&&a.O$.from(e.to).isZero()&&(e.to="0x0000000000000000000000000000000000000000"),null!=e.input&&null==e.data&&(e.data=e.input),null==e.to&&null==e.creates&&(e.creates=this.contractAddress(e)),(1===e.type||2===e.type)&&null==e.accessList&&(e.accessList=[]);let n=p.check(this.formats.transaction,e);if(null!=e.chainId){let r=e.chainId;(0,o.isHexString)(r)&&(r=a.O$.from(r).toNumber()),n.chainId=r}else{let r=e.networkId;null==r&&null==n.v&&(r=e.chainId),(0,o.isHexString)(r)&&(r=a.O$.from(r).toNumber()),"number"!=typeof r&&null!=n.v&&((r=(n.v-35)/2)<0&&(r=0),r=parseInt(r)),"number"!=typeof r&&(r=0),n.chainId=r}return n.blockHash&&"x"===n.blockHash.replace(/0/g,"")&&(n.blockHash=null),n}transaction(e){return(0,l.parse)(e)}receiptLog(e){return p.check(this.formats.receiptLog,e)}receipt(e){let n=p.check(this.formats.receipt,e);if(null!=n.root){if(n.root.length<=4){let e=a.O$.from(n.root).toNumber();0===e||1===e?(null!=n.status&&n.status!==e&&d.throwArgumentError("alt-root-status/status mismatch","value",{root:n.root,status:n.status}),n.status=e,delete n.root):d.throwArgumentError("invalid alt-root-status","value.root",n.root)}else 66!==n.root.length&&d.throwArgumentError("invalid root hash","value.root",n.root)}return null!=n.status&&(n.byzantium=!0),n}topics(e){return Array.isArray(e)?e.map(e=>this.topics(e)):null!=e?this.hash(e,!0):null}filter(e){return p.check(this.formats.filter,e)}filterLog(e){return p.check(this.formats.filterLog,e)}static check(e,n){let r={};for(let i in e)try{let a=e[i](n[i]);void 0!==a&&(r[i]=a)}catch(e){throw e.checkKey=i,e.checkValue=n[i],e}return r}static allowNull(e,n){return function(r){return null==r?n:e(r)}}static allowFalsish(e,n){return function(r){return r?e(r):n}}static arrayOf(e){return function(n){if(!Array.isArray(n))throw Error("not an array");let r=[];return n.forEach(function(n){r.push(e(n))}),r}}}function h(e){return e&&"function"==typeof e.isCommunityResource}function y(e){return h(e)&&e.isCommunityResource()}let m=!1;function g(){m||(m=!0,console.log("========= NOTICE ========="),console.log("Request-Rate Exceeded (this message will not be repeated)"),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.io/api-keys/"),console.log("=========================="))}},27349:function(e,n,r){"use strict";
1r.r(n),r.d(n,{AlchemyProvider:function(){return m},AlchemyWebSocketProvider:function(){return y},AnkrProvider:function(){return v},BaseProvider:function(){return o.Zk},CloudflareProvider:function(){return x},EtherscanProvider:function(){return D},FallbackProvider:function(){return Y},Formatter:function(){return f.Mb},InfuraProvider:function(){return J},InfuraWebSocketProvider:function(){return $},IpcProvider:function(){return V},JsonRpcBatchProvider:function(){return ee.I},JsonRpcProvider:function(){return X.r},JsonRpcSigner:function(){return X.C},NodesmithProvider:function(){return en},PocketProvider:function(){return ea},Provider:function(){return i.Provider},Resolver:function(){return o.H2},StaticJsonRpcProvider:function(){return d.c},UrlJsonRpcProvider:function(){return d.l},Web3Provider:function(){return eo.Q},WebSocketProvider:function(){return l.q},getDefaultProvider:function(){return ef},getNetwork:function(){return a.H},isCommunityResourcable:function(){return f.Ed},isCommunityResource:function(){return f.Gp},showThrottleMessage:function(){return f.vh}});var i=r(81556),a=r(45710),o=r(97013),s=r(6881),f=r(30032),l=r(88089),u=r(1581),c=r(34216),d=r(93901);let p=new u.Logger(c.i),h="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";class y extends l.q{constructor(e,n){let r=new m(e,n);super(r.connection.url.replace(/^http/i,"ws").replace(".alchemyapi.",".ws.alchemyapi."),r.network),(0,s.defineReadOnly)(this,"apiKey",r.apiKey)}isCommunityResource(){return this.apiKey===h}}class m extends d.l{static getWebSocketProvider(e,n){return new y(e,n)}static getApiKey(e){return null==e?h:(e&&"string"!=typeof e&&p.throwArgumentError("invalid apiKey","apiKey",e),e)}static getUrl(e,n){let r=null;switch(e.name){case"homestead":r="eth-mainnet.alchemyapi.io/v2/";break;case"goerli":r="eth-goerli.g.alchemy.com/v2/";break;case"matic":r="polygon-mainnet.g.alchemy.com/v2/";break;case"maticmum":r="polygon-mumbai.g.alchemy.com/v2/";break;case"arbitrum":r="arb-mainnet.g.alchemy.com/v2/";break;case"arbitrum-goerli":r="arb-goerli.g.alchemy.com/v2/";break;case"optimism":r="opt-mainnet.g.alchemy.com/v2/";break;case"optimism-goerli":r="opt-goerli.g.alchemy.com/v2/";break;default:p.throwArgumentError("unsupported network","network",arguments[0])}return{allowGzip:!0,url:"https://"+r+n,throttleCallback:(e,r)=>(n===h&&(0,f.vh)(),Promise.resolve(!0))}}isCommunityResource(){return this.apiKey===h}}let g=new u.Logger(c.i),b="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";class v extends d.l{isCommunityResource(){return this.apiKey===b}static getApiKey(e){return null==e?b:e}static getUrl(e,n){null==n&&(n=b);let r={allowGzip:!0,url:"https://"+function(e){switch(e){case"homestead":return"rpc.ankr.com/eth/";case"ropsten":return"rpc.ankr.com/eth_ropsten/";case"rinkeby":return"rpc.ankr.com/eth_rinkeby/";case"goerli":return"rpc.ankr.com/eth_goerli/";case"matic":return"rpc.ankr.com/polygon/";case"arbitrum":return"rpc.ankr.com/arbitrum/"}return g.throwArgumentError("unsupported network","name",e)}(e.name)+n,throttleCallback:(e,r)=>(n.apiKey===b&&(0,f.vh)(),Promise.resolve(!0))};return null!=n.projectSecret&&(r.user="",r.password=n.projectSecret),r}}let w=new u.Logger(c.i);class x extends d.l{static getApiKey(e){return null!=e&&w.throwArgumentError("apiKey not supported for cloudflare","apiKey",e),null}static getUrl(e,n){let r=null;return"homestead"===e.name?r="https://cloudflare-eth.com/":w.throwArgumentError("unsupported network","network",arguments[0]),r}perform(e,n){var r,i,a,o;let s=Object.create(null,{perform:{get:()=>super.perform}});return r=this,i=void 0,a=void 0,o=function*(){return"getBlockNumber"===e?(yield s.perform.call(this,"getBlock",{blockTag:"latest"})).number:s.perform.call(this,e,n)},new(a||(a=Promise))(function(e,n){function s(e){try{l(o.next(e))}catch(e){n(e)}}function f(e){try{l(o.throw(e))}catch(e){n(e)}}function l(n){var r;n.done?e(n.value):((r=n.value)instanceof a?r:new a(function(e){e(r)})).then(s,f)}l((o=o.apply(r,i||[])).next())})}}var T=r(16441),C=r(83875),M=r(37707),A=function(e,n,r,i){return new(r||(r=Promise))(function(a,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function f(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var n;e.done?a(e.value):((n=e.value)instanceof r?n:new r(function(e){e(n)})).then(s,f)}l((i=i.apply(e,n||[])).next())})};let E=new u.Logger(c.i);function I(e){let n={};for(let r in e){if(null==e[r])continue;let i=e[r];("type"!==r||0!==i)&&(i=({type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0})[r]?(0,T.hexValue)((0,T.hexlify)(i)):"accessList"===r?"["+(0,C.accessListify)(i).map(e=>`{address:"${e.address}",storageKeys:["${e.storageKeys.join('","')}"]}`).join(",")+"]":(0,T.hexlify)(i),n[r]=i)}return n}
1function S(e){if(0==e.status&&("No records found"===e.message||"No transactions found"===e.message))return e.result;if(1!=e.status||"string"!=typeof e.message||!e.message.match(/^OK/)){let n=Error("invalid response");throw n.result=JSON.stringify(e),(e.result||"").toLowerCase().indexOf("rate limit")>=0&&(n.throttleRetry=!0),n}return e.result}function k(e){if(e&&0==e.status&&"NOTOK"==e.message&&(e.result||"").toLowerCase().indexOf("rate limit")>=0){let n=Error("throttled response");throw n.result=JSON.stringify(e),n.throttleRetry=!0,n}if("2.0"!=e.jsonrpc){let n=Error("invalid response");throw n.result=JSON.stringify(e),n}if(e.error){let n=Error(e.error.message||"unknown error");throw e.error.code&&(n.code=e.error.code),e.error.data&&(n.data=e.error.data),n}return e.result}function N(e){if("pending"===e)throw Error("pending not supported");return"latest"===e?e:parseInt(e.substring(2),16)}function j(e,n,r){if("call"===e&&n.code===u.Logger.errors.SERVER_ERROR){let e=n.error;if(e&&(e.message.match(/reverted/i)||e.message.match(/VM execution error/i))){let r=e.data;if(r&&(r="0x"+r.replace(/^.*0x/i,"")),(0,T.isHexString)(r))return r;E.throwError("missing revert data in call exception",u.Logger.errors.CALL_EXCEPTION,{error:n,data:"0x"})}}let i=n.message;throw n.code===u.Logger.errors.SERVER_ERROR&&(n.error&&"string"==typeof n.error.message?i=n.error.message:"string"==typeof n.body?i=n.body:"string"==typeof n.responseText&&(i=n.responseText)),(i=(i||"").toLowerCase()).match(/insufficient funds/)&&E.throwError("insufficient funds for intrinsic transaction cost",u.Logger.errors.INSUFFICIENT_FUNDS,{error:n,method:e,transaction:r}),i.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&E.throwError("nonce has already been used",u.Logger.errors.NONCE_EXPIRED,{error:n,method:e,transaction:r}),i.match(/another transaction with same nonce/)&&E.throwError("replacement fee too low",u.Logger.errors.REPLACEMENT_UNDERPRICED,{error:n,method:e,transaction:r}),i.match(/execution failed due to an exception|execution reverted/)&&E.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",u.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:n,method:e,transaction:r}),n}class D extends o.Zk{constructor(e,n){super(e),(0,s.defineReadOnly)(this,"baseUrl",this.getBaseUrl()),(0,s.defineReadOnly)(this,"apiKey",n||null)}getBaseUrl(){switch(this.network?this.network.name:"invalid"){case"homestead":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"matic":return"https://api.polygonscan.com";case"maticmum":return"https://api-testnet.polygonscan.com";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io"}return E.throwArgumentError("unsupported network","network",this.network.name)}getUrl(e,n){let r=Object.keys(n).reduce((e,r)=>{let i=n[r];return null!=i&&(e+=`&${r}=${i}`),e},""),i=this.apiKey?`&apikey=${this.apiKey}`:"";return`${this.baseUrl}/api?module=${e}${r}${i}`}getPostUrl(){return`${this.baseUrl}/api`}getPostData(e,n){return n.module=e,n.apikey=this.apiKey,n}fetch(e,n,r){return A(this,void 0,void 0,function*(){let i=r?this.getPostUrl():this.getUrl(e,n),a=r?this.getPostData(e,n):null,o="proxy"===e?k:S;this.emit("debug",{action:"request",request:i,provider:this});let l={url:i,throttleSlotInterval:1e3,throttleCallback:(e,n)=>(this.isCommunityResource()&&(0,f.vh)(),Promise.resolve(!0))},u=null;a&&(l.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},u=Object.keys(a).map(e=>`${e}=${a[e]}`).join("&"));let c=yield(0,M.fetchJson)(l,u,o||k);return this.emit("debug",{action:"response",request:i,response:(0,s.deepCopy)(c),provider:this}),c})}detectNetwork(){return A(this,void 0,void 0,function*(){return this.network})}perform(e,n){let r=Object.create(null,{perform:{get:()=>super.perform}});return A(this,void 0,void 0,function*(){switch(e){case"getBlockNumber":return this.fetch("proxy",{action:"eth_blockNumber"});case"getGasPrice":return this.fetch("proxy",{action:"eth_gasPrice"});case"getBalance":return this.fetch("account",{action:"balance",address:n.address,tag:n.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:n.address,tag:n.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:n.address,tag:n.blockTag});case"getStorageAt":return this.fetch("proxy",{action:"eth_getStorageAt",address:n.address,position:n.position,tag:n.blockTag});case"sendTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:n.signedTransaction},!0).catch(e=>j("sendTransaction",e,n.signedTransaction));case"getBlock":if(n.blockTag)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:n.blockTag,boolean:n.includeTransactions?"true":"false"});throw Error("getBlock by blockHash not implemented");case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:n.transactionHash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:n.transactionHash});case"call":{if("latest"!==n.blockTag)throw Error("EtherscanProvider does not support blockTag for call");let e=I(n.transaction);e.module="proxy",e.action="eth_call";try{return yield this.fetch("proxy",e,!0)}catch(e){return j("call",e,n.transaction)}}case"estimateGas":{let e=I(n.transaction);e.module="proxy",e.action="eth_estimateGas";try{return yield this.fetch("proxy",e,!0)}catch(e){return j("estimateGas",e,n.transaction)}}case"getLogs":{let e={action:"getLogs"};if(n.filter.fromBlock&&(e.fromBlock=N(n.filter.fromBlock)),n.filter.toBlock&&(e.toBlock=N(n.filter.toBlock)),n.filter.address&&(e.address=n.filter.address),n.filter.topics&&n.filter.topics.length>0&&(n.filter.topics.length>1&&E.throwError("unsupported topic count",u.Logger.errors.UNSUPPORTED_OPERATION,{topics:n.filter.topics}),1===n.filter.topics.length)){let r=n.filter.topics[0];("string"!=typeof r||66!==r.length)&&E.throwError("unsupported topic format",u.Logger.errors.UNSUPPORTED_OPERATION,{topic0:r}),e.topic0=r}let r=yield this.fetch("logs",e),i={};for(let e=0;e<r.length;e++){let n=r[e];if(null==n.blockHash){if(null==i[n.blockNumber]){let e=yield this.getBlock(n.blockNumber);e&&(i[n.blockNumber]=e.hash)}n.blockHash=i[n.blockNumber]}}return r}case"getEtherPrice":if("homestead"!==this.network.name)return 0;return parseFloat((yield this.fetch("stats",{action:"ethprice"})).ethusd)}return r.perform.call(this,e,n)})}getHistory(e,n,r){return A(this,void 0,void 0,function*(){let i={action:"txlist",address:yield this.resolveName(e),startblock:null==n?0:n,endblock:null==r?99999999:r,sort:"asc"};return(yield this.fetch("account",i)).map(e=>{["contractAddress","to"].forEach(function(n){""==e[n]&&delete e[n]}),null==e.creates&&null!=e.contractAddress&&(e.creates=e.contractAddress);let n=this.formatter.transactionResponse(e);return e.timeStamp&&(n.timestamp=parseInt(e.timeStamp)),n})})}isCommunityResource(){return null==this.apiKey}}var _=r(2593),O=r(52472),P=function(e,n,r,i){return new(r||(r=Promise))(function(a,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function f(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var n;e.done?a(e.value):((n=e.value)instanceof r?n:new r(function(e){e(n)})).then(s,f)}l((i=i.apply(e,n||[])).next())})};let L=new u.Logger(c.i);function R(){return new Date().getTime()}function z(e){let n=null;for(let r=0;r<e.length;r++){let i=e[r];if(null==i)return null;n?n.name===i.name&&n.chainId===i.chainId&&(n.ensAddress===i.ensAddress||null==n.ensAddress&&null==i.ensAddress)||L.throwArgumentError("provider mismatch","networks",e):n=i}return n}function B(e,n){let r=Math.floor((e=e.slice().sort()).length/2);if(e.length%2)return e[r];let i=e[r-1],a=e[r];return null!=n&&Math.abs(i-a)>n?null:(i+a)/2}function U(e){if(null===e)return"null";if("number"==typeof e||"boolean"==typeof e)return JSON.stringify(e);if("string"==typeof e)return e;if(_.O$.isBigNumber(e))return e.toString();if(Array.isArray(e))return JSON.stringify(e.map(e=>U(e)));if("object"==typeof e){let n=Object.keys(e);return n.sort(),"{"+n.map(n=>{let r=e[n];return r="function"==typeof r?"[function]":U(r),JSON.stringify(n)+":"+r}).join(",")+"}"}throw Error("unknown value type: "+typeof e)}let F=1;function Z(e){let n=null,r=null,i=new Promise(i=>{r=setTimeout(n=function(){r&&(clearTimeout(r),r=null),i()},e)});return{cancel:n,getPromise:function(){return i},wait:e=>i=i.then(e)}}let W=[u.Logger.errors.CALL_EXCEPTION,u.Logger.errors.INSUFFICIENT_FUNDS,u.Logger.errors.NONCE_EXPIRED,u.Logger.errors.REPLACEMENT_UNDERPRICED,u.Logger.errors.UNPREDICTABLE_GAS_LIMIT],H=["address","args","errorArgs","errorSignature","method","transaction"];function G(e,n){let r={weight:e.weight};return Object.defineProperty(r,"provider",{get:()=>e.provider}),e.start&&(r.start=e.start),n&&(r.duration=n-e.start),e.done&&(e.error?r.error=e.error:r.result=e.result||null),r}function q(e,n){return P(this,void 0,void 0,function*(){let r=e.provider;return null!=r.blockNumber&&r.blockNumber>=n||-1===n?r:(0,M.poll)(()=>new Promise((i,a)=>{setTimeout(function(){return r.blockNumber>=n?i(r):e.cancelled?i(null):i(void 0)}
1,0)}),{oncePoll:r})})}class Y extends o.Zk{constructor(e,n){0===e.length&&L.throwArgumentError("missing providers","providers",e);let r=e.map((e,n)=>{if(i.Provider.isProvider(e)){let n=(0,f.Gp)(e)?2e3:750;return Object.freeze({provider:e,weight:1,stallTimeout:n,priority:1})}let r=(0,s.shallowCopy)(e);null==r.priority&&(r.priority=1),null==r.stallTimeout&&(r.stallTimeout=(0,f.Gp)(e)?2e3:750),null==r.weight&&(r.weight=1);let a=r.weight;return(a%1||a>512||a<1)&&L.throwArgumentError("invalid weight; must be integer in [1, 512]",`providers[${n}].weight`,a),Object.freeze(r)}),a=r.reduce((e,n)=>e+n.weight,0);null==n?n=a/2:n>a&&L.throwArgumentError("quorum will always fail; larger than total weight","quorum",n);let o=z(r.map(e=>e.provider.network));null==o&&(o=new Promise((e,n)=>{setTimeout(()=>{this.detectNetwork().then(e,n)},0)})),super(o),(0,s.defineReadOnly)(this,"providerConfigs",Object.freeze(r)),(0,s.defineReadOnly)(this,"quorum",n),this._highestBlockNumber=-1}detectNetwork(){return P(this,void 0,void 0,function*(){return z((yield Promise.all(this.providerConfigs.map(e=>e.provider.getNetwork()))))})}perform(e,n){return P(this,void 0,void 0,function*(){if("sendTransaction"===e){let e=yield Promise.all(this.providerConfigs.map(e=>e.provider.sendTransaction(n.signedTransaction).then(e=>e.hash,e=>e)));for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r)return r}throw e[0]}-1===this._highestBlockNumber&&"getBlockNumber"!==e&&(yield this.getBlockNumber());let r=function(e,n,r){var i,a;let o=U;switch(n){case"getBlockNumber":return function(n){let r=n.map(e=>e.result),i=B(n.map(e=>e.result),2);if(null!=i)return i=Math.ceil(i),r.indexOf(i+1)>=0&&i++,i>=e._highestBlockNumber&&(e._highestBlockNumber=i),e._highestBlockNumber};case"getGasPrice":return function(e){let n=e.map(e=>e.result);return n.sort(),n[Math.floor(n.length/2)]};case"getEtherPrice":return function(e){return B(e.map(e=>e.result))};case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break;case"getTransaction":case"getTransactionReceipt":o=function(e){return null==e?null:((e=(0,s.shallowCopy)(e)).confirmations=-1,U(e))};break;case"getBlock":o=r.includeTransactions?function(e){return null==e?null:((e=(0,s.shallowCopy)(e)).transactions=e.transactions.map(e=>((e=(0,s.shallowCopy)(e)).confirmations=-1,e)),U(e))}:function(e){return null==e?null:U(e)};break;default:throw Error("unknown method: "+n)}return i=o,a=e.quorum,function(e){let n={};e.forEach(e=>{let r=i(e.result);n[r]||(n[r]={count:0,result:e.result}),n[r].count++});let r=Object.keys(n);for(let e=0;e<r.length;e++){let i=n[r[e]];if(i.count>=a)return i.result}}}(this,e,n),i=(0,O.y)(this.providerConfigs.map(s.shallowCopy));i.sort((e,n)=>e.priority-n.priority);let a=this._highestBlockNumber,o=0,f=!0;for(;;){let l=R(),c=i.filter(e=>e.runner&&l-e.start<e.stallTimeout).reduce((e,n)=>e+n.weight,0);for(;c<this.quorum&&o<i.length;){let r=i[o++],f=F++;r.start=R(),r.staller=Z(r.stallTimeout),r.staller.wait(()=>{r.staller=null}),r.runner=(function(e,n,r,i){return P(this,void 0,void 0,function*(){let a=e.provider;switch(r){case"getBlockNumber":case"getGasPrice":return a[r]();case"getEtherPrice":if(a.getEtherPrice)return a.getEtherPrice();break;case"getBalance":case"getTransactionCount":case"getCode":return i.blockTag&&(0,T.isHexString)(i.blockTag)&&(a=yield q(e,n)),a[r](i.address,i.blockTag||"latest");case"getStorageAt":return i.blockTag&&(0,T.isHexString)(i.blockTag)&&(a=yield q(e,n)),a.getStorageAt(i.address,i.position,i.blockTag||"latest");case"getBlock":return i.blockTag&&(0,T.isHexString)(i.blockTag)&&(a=yield q(e,n)),a[i.includeTransactions?"getBlockWithTransactions":"getBlock"](i.blockTag||i.blockHash);case"call":case"estimateGas":if(i.blockTag&&(0,T.isHexString)(i.blockTag)&&(a=yield q(e,n)),"call"===r&&i.blockTag)return a[r](i.transaction,i.blockTag);return a[r](i.transaction);case"getTransaction":case"getTransactionReceipt":return a[r](i.transactionHash);case"getLogs":{let r=i.filter;return(r.fromBlock&&(0,T.isHexString)(r.fromBlock)||r.toBlock&&(0,T.isHexString)(r.toBlock))&&(a=yield q(e,n)),a.getLogs(r)}}return L.throwError("unknown method error",u.Logger.errors.UNKNOWN_ERROR,{method:r,params:i})})})(r,a,e,n).then(i=>
1{r.done=!0,r.result=i,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:f,backend:G(r,R()),request:{method:e,params:(0,s.deepCopy)(n)},provider:this})},i=>{r.done=!0,r.error=i,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:f,backend:G(r,R()),request:{method:e,params:(0,s.deepCopy)(n)},provider:this})}),this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:f,backend:G(r,null),request:{method:e,params:(0,s.deepCopy)(n)},provider:this}),c+=r.weight}let d=[];i.forEach(e=>{!e.done&&e.runner&&(d.push(e.runner),e.staller&&d.push(e.staller.getPromise()))}),d.length&&(yield Promise.race(d));let p=i.filter(e=>e.done&&null==e.error);if(p.length>=this.quorum){let e=r(p);if(void 0!==e)return i.forEach(e=>{e.staller&&e.staller.cancel(),e.cancelled=!0}),e;f||(yield Z(100).getPromise()),f=!1}let h=i.reduce((e,n)=>{if(!n.done||null==n.error)return e;let r=n.error.code;return W.indexOf(r)>=0&&(e[r]||(e[r]={error:n.error,weight:0}),e[r].weight+=n.weight),e},{});if(Object.keys(h).forEach(e=>{let n=h[e];if(n.weight<this.quorum)return;i.forEach(e=>{e.staller&&e.staller.cancel(),e.cancelled=!0});let r=n.error,a={};H.forEach(e=>{null!=r[e]&&(a[e]=r[e])}),L.throwError(r.reason||r.message,e,a)}),0===i.filter(e=>!e.done).length)break}return i.forEach(e=>{e.staller&&e.staller.cancel(),e.cancelled=!0}),L.throwError("failed to meet quorum",u.Logger.errors.SERVER_ERROR,{method:e,params:n,results:i.map(e=>G(e)),provider:this})})}}let V=null,Q=new u.Logger(c.i),K="84842078b09946638c03157f83405213";class $ extends l.q{constructor(e,n){let r=new J(e,n),i=r.connection;i.password&&Q.throwError("INFURA WebSocket project secrets unsupported",u.Logger.errors.UNSUPPORTED_OPERATION,{operation:"InfuraProvider.getWebSocketProvider()"}),super(i.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/"),e),(0,s.defineReadOnly)(this,"apiKey",r.projectId),(0,s.defineReadOnly)(this,"projectId",r.projectId),(0,s.defineReadOnly)(this,"projectSecret",r.projectSecret)}isCommunityResource(){return this.projectId===K}}class J extends d.l{static getWebSocketProvider(e,n){return new $(e,n)}static getApiKey(e){let n={apiKey:K,projectId:K,projectSecret:null};return null==e||("string"==typeof e?n.projectId=e:null!=e.projectSecret?(Q.assertArgument("string"==typeof e.projectId,"projectSecret requires a projectId","projectId",e.projectId),Q.assertArgument("string"==typeof e.projectSecret,"invalid projectSecret","projectSecret","[REDACTED]"),n.projectId=e.projectId,n.projectSecret=e.projectSecret):e.projectId&&(n.projectId=e.projectId),n.apiKey=n.projectId),n}static getUrl(e,n){let r=null;switch(e?e.name:"unknown"){case"homestead":r="mainnet.infura.io";break;case"goerli":r="goerli.infura.io";break;case"sepolia":r="sepolia.infura.io";break;case"matic":r="polygon-mainnet.infura.io";break;case"maticmum":r="polygon-mumbai.infura.io";break;case"optimism":r="optimism-mainnet.infura.io";break;case"optimism-goerli":r="optimism-goerli.infura.io";break;case"arbitrum":r="arbitrum-mainnet.infura.io";break;case"arbitrum-goerli":r="arbitrum-goerli.infura.io";break;default:Q.throwError("unsupported network",u.Logger.errors.INVALID_ARGUMENT,{argument:"network",value:e})}let i={allowGzip:!0,url:"https://"+r+"/v3/"+n.projectId,throttleCallback:(e,r)=>(n.projectId===K&&(0,f.vh)(),Promise.resolve(!0))};return null!=n.projectSecret&&(i.user="",i.password=n.projectSecret),i}isCommunityResource(){return this.projectId===K}}var X=r(82169),ee=r(42947);let et=new u.Logger(c.i);class en extends d.l{static getApiKey(e){return e&&"string"!=typeof e&&et.throwArgumentError("invalid apiKey","apiKey",e),e||"ETHERS_JS_SHARED"}static getUrl(e,n){et.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform.");let r=null;switch(e.name){case"homestead":r="https://ethereum.api.nodesmith.io/v1/mainnet/jsonrpc";break;case"ropsten":r="https://ethereum.api.nodesmith.io/v1/ropsten/jsonrpc";break;case"rinkeby":r="https://ethereum.api.nodesmith.io/v1/rinkeby/jsonrpc";break;case"goerli":r="https://ethereum.api.nodesmith.io/v1/goerli/jsonrpc";break;case"kovan":r="https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc";break;default:et.throwArgumentError("unsupported network","network",arguments[0])}return r+"?apiKey="+n}}
1let er=new u.Logger(c.i),ei="62e1ad51b37b8e00394bda3b";class ea extends d.l{static getApiKey(e){let n={applicationId:null,loadBalancer:!0,applicationSecretKey:null};return null==e?n.applicationId=ei:"string"==typeof e?n.applicationId=e:null!=e.applicationSecretKey?(n.applicationId=e.applicationId,n.applicationSecretKey=e.applicationSecretKey):e.applicationId?n.applicationId=e.applicationId:er.throwArgumentError("unsupported PocketProvider apiKey","apiKey",e),n}static getUrl(e,n){let r=null;switch(e?e.name:"unknown"){case"goerli":r="eth-goerli.gateway.pokt.network";break;case"homestead":r="eth-mainnet.gateway.pokt.network";break;case"kovan":r="poa-kovan.gateway.pokt.network";break;case"matic":r="poly-mainnet.gateway.pokt.network";break;case"maticmum":r="polygon-mumbai-rpc.gateway.pokt.network";break;case"rinkeby":r="eth-rinkeby.gateway.pokt.network";break;case"ropsten":r="eth-ropsten.gateway.pokt.network";break;default:er.throwError("unsupported network",u.Logger.errors.INVALID_ARGUMENT,{argument:"network",value:e})}let i={headers:{},url:`https://${r}/v1/lb/${n.applicationId}`};return null!=n.applicationSecretKey&&(i.user="",i.password=n.applicationSecretKey),i}isCommunityResource(){return this.applicationId===ei}}var eo=r(241);let es=new u.Logger(c.i);function ef(e,n){if(null==e&&(e="homestead"),"string"==typeof e){let n=e.match(/^(ws|http)s?:/i);if(n)switch(n[1].toLowerCase()){case"http":case"https":return new X.r(e);case"ws":case"wss":return new l.q(e);default:es.throwArgumentError("unsupported URL scheme","network",e)}}let r=(0,a.H)(e);return r&&r._defaultProvider||es.throwError("unsupported getDefaultProvider network",u.Logger.errors.NETWORK_ERROR,{operation:"getDefaultProvider",network:e}),r._defaultProvider({FallbackProvider:Y,AlchemyProvider:m,AnkrProvider:v,CloudflareProvider:x,EtherscanProvider:D,InfuraProvider:J,JsonRpcProvider:X.r,NodesmithProvider:en,PocketProvider:ea,Web3Provider:eo.Q,IpcProvider:V},n)}},42947:function(e,n,r){"use strict";r.d(n,{I:function(){return s}});var i=r(6881),a=r(37707),o=r(82169);class s extends o.r{send(e,n){let r={method:e,params:n,id:this._nextId++,jsonrpc:"2.0"};null==this._pendingBatch&&(this._pendingBatch=[]);let o={request:r,resolve:null,reject:null},s=new Promise((e,n)=>{o.resolve=e,o.reject=n});return this._pendingBatch.push(o),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout(()=>{let e=this._pendingBatch;this._pendingBatch=null,this._pendingBatchAggregator=null;let n=e.map(e=>e.request);return this.emit("debug",{action:"requestBatch",request:(0,i.deepCopy)(n),provider:this}),(0,a.fetchJson)(this.connection,JSON.stringify(n)).then(r=>{this.emit("debug",{action:"response",request:n,response:r,provider:this}),e.forEach((e,n)=>{let i=r[n];if(i.error){let n=Error(i.error.message);n.code=i.error.code,n.data=i.error.data,e.reject(n)}else e.resolve(i.result)})},r=>{this.emit("debug",{action:"response",error:r,request:n,provider:this}),e.forEach(e=>{e.reject(r)})})},10)),s}}},82169:function(e,n,r){"use strict";r.d(n,{C:function(){return M},r:function(){return I}});var i=r(48088),a=r(2593),o=r(16441),s=r(67827),f=r(6881),l=r(29251),u=r(83875),c=r(37707),d=r(1581),p=r(34216),h=r(97013),y=function(e,n,r,i){return new(r||(r=Promise))(function(a,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function f(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var n;e.done?a(e.value):((n=e.value)instanceof r?n:new r(function(e){e(n)})).then(s,f)}l((i=i.apply(e,n||[])).next())})};let m=new d.Logger(p.i),g=["call","estimateGas"];function b(e,n){if(null==e)return null;if("string"==typeof e.message&&e.message.match("reverted")){let r=(0,o.isHexString)(e.data)?e.data:null;if(!n||r)return{message:e.message,data:r}}if("object"==typeof e){for(let r in e){let i=b(e[r],n);if(i)return i}return null}if("string"==typeof e)try{return b(JSON.parse(e),n)}catch(e){}return null}function v(e,n,r){let i=r.transaction||r.signedTransaction;if("call"===e){let e=b(n,!0);if(e)return e.data;m.throwError("missing revert data in call exception; Transaction reverted without a reason string",d.Logger.errors.CALL_EXCEPTION,{data:"0x",transaction:i,error:n})}
1if("estimateGas"===e){let r=b(n.body,!1);null==r&&(r=b(n,!1)),r&&m.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",d.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{reason:r.message,method:e,transaction:i,error:n})}let a=n.message;throw n.code===d.Logger.errors.SERVER_ERROR&&n.error&&"string"==typeof n.error.message?a=n.error.message:"string"==typeof n.body?a=n.body:"string"==typeof n.responseText&&(a=n.responseText),(a=(a||"").toLowerCase()).match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)&&m.throwError("insufficient funds for intrinsic transaction cost",d.Logger.errors.INSUFFICIENT_FUNDS,{error:n,method:e,transaction:i}),a.match(/nonce (is )?too low/i)&&m.throwError("nonce has already been used",d.Logger.errors.NONCE_EXPIRED,{error:n,method:e,transaction:i}),a.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&m.throwError("replacement fee too low",d.Logger.errors.REPLACEMENT_UNDERPRICED,{error:n,method:e,transaction:i}),a.match(/only replay-protected/i)&&m.throwError("legacy pre-eip-155 transactions not supported",d.Logger.errors.UNSUPPORTED_OPERATION,{error:n,method:e,transaction:i}),g.indexOf(e)>=0&&a.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&m.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",d.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:n,method:e,transaction:i}),n}function w(e){return new Promise(function(n){setTimeout(n,e)})}function x(e){if(e.error){let n=Error(e.error.message);throw n.code=e.error.code,n.data=e.error.data,n}return e.result}function T(e){return e?e.toLowerCase():e}let C={};class M extends i.Signer{constructor(e,n,r){if(super(),e!==C)throw Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");(0,f.defineReadOnly)(this,"provider",n),null==r&&(r=0),"string"==typeof r?((0,f.defineReadOnly)(this,"_address",this.provider.formatter.address(r)),(0,f.defineReadOnly)(this,"_index",null)):"number"==typeof r?((0,f.defineReadOnly)(this,"_index",r),(0,f.defineReadOnly)(this,"_address",null)):m.throwArgumentError("invalid address or index","addressOrIndex",r)}connect(e){return m.throwError("cannot alter JSON-RPC Signer connection",d.Logger.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new A(C,this.provider,this._address||this._index)}getAddress(){return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then(e=>(e.length<=this._index&&m.throwError("unknown account #"+this._index,d.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(e[this._index])))}sendUncheckedTransaction(e){e=(0,f.shallowCopy)(e);let n=this.getAddress().then(e=>(e&&(e=e.toLowerCase()),e));if(null==e.gasLimit){let r=(0,f.shallowCopy)(e);r.from=n,e.gasLimit=this.provider.estimateGas(r)}return null!=e.to&&(e.to=Promise.resolve(e.to).then(e=>y(this,void 0,void 0,function*(){if(null==e)return null;let n=yield this.provider.resolveName(e);return null==n&&m.throwArgumentError("provided ENS name resolves to null","tx.to",e),n}))),(0,f.resolveProperties)({tx:(0,f.resolveProperties)(e),sender:n}).then(({tx:n,sender:r})=>{null!=n.from?n.from.toLowerCase()!==r&&m.throwArgumentError("from address mismatch","transaction",e):n.from=r;let i=this.provider.constructor.hexlifyTransaction(n,{from:!0});return this.provider.send("eth_sendTransaction",[i]).then(e=>e,e=>("string"==typeof e.message&&e.message.match(/user denied/i)&&m.throwError("user rejected transaction",d.Logger.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:n}),v("sendTransaction",e,i)))})}signTransaction(e){return m.throwError("signing transactions is unsupported",d.Logger.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(e){return y(this,void 0,void 0,function*(){let n=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),r=yield this.sendUncheckedTransaction(e);try{return yield(0,c.poll)(()=>y(this,void 0,void 0,function*(){let e=yield this.provider.getTransaction(r);if(null!==e)return this.provider._wrapTransaction(e,r,n)}),{oncePoll:this.provider})}catch(e){throw e.transactionHash=r,e}})}signMessage(e){return y(this,void 0,void 0,function*(){let n="string"==typeof e?(0,l.Y0)(e):e,r=yield this.getAddress();try{return yield this.provider.send("personal_sign",[(0,o.hexlify)(n),r.toLowerCase()])}catch(n){throw"string"==typeof n.message&&n.message.match(/user denied/i)&&m.throwError("user rejected signing",d.Logger.errors.ACTION_REJECTED,{action:"signMessage",from:r,messageData:e}),n}})}_legacySignMessage(e){return y(this,void 0,void 0,function*(){let n="string"==typeof e?(0,l.Y0)(e):e,r=yield this.getAddress();try{return yield this.provider.send("eth_sign",[r.toLowerCase(),(0,o.hexlify)(n)])}catch(n){throw"string"==typeof n.message&&n.message.match(/user denied/i)&&m.throwError("user rejected signing",d.Logger.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:r,messageData:e}),n}})}_signTypedData(e,n,r){return y(this,void 0,void 0,function*(){let i=yield s.E.resolveNames(e,n,r,e=>this.provider.resolveName(e)),a=yield this.getAddress();try{return yield this.provider.send("eth_signTypedData_v4",[a.toLowerCase(),JSON.stringify(s.E.getPayload(i.domain,n,i.value))])}catch(e){throw"string"==typeof e.message&&e.message.match(/user denied/i)&&m.throwError("user rejected signing",d.Logger.errors.ACTION_REJECTED,{action:"_signTypedData",from:a,messageData:{domain:i.domain,types:n,value:i.value}}),e}}
1)}unlock(e){return y(this,void 0,void 0,function*(){let n=this.provider,r=yield this.getAddress();return n.send("personal_unlockAccount",[r.toLowerCase(),e,null])})}}class A extends M{sendTransaction(e){return this.sendUncheckedTransaction(e).then(e=>({hash:e,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:n=>this.provider.waitForTransaction(e,n)}))}}let E={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};class I extends h.Zk{constructor(e,n){let r=n;null==r&&(r=new Promise((e,n)=>{setTimeout(()=>{this.detectNetwork().then(n=>{e(n)},e=>{n(e)})},0)})),super(r),e||(e=(0,f.getStatic)(this.constructor,"defaultUrl")()),"string"==typeof e?(0,f.defineReadOnly)(this,"connection",Object.freeze({url:e})):(0,f.defineReadOnly)(this,"connection",Object.freeze((0,f.shallowCopy)(e))),this._nextId=42}get _cache(){return null==this._eventLoopCache&&(this._eventLoopCache={}),this._eventLoopCache}static defaultUrl(){return"http://localhost:8545"}detectNetwork(){return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout(()=>{this._cache.detectNetwork=null},0)),this._cache.detectNetwork}_uncachedDetectNetwork(){return y(this,void 0,void 0,function*(){yield w(0);let e=null;try{e=yield this.send("eth_chainId",[])}catch(n){try{e=yield this.send("net_version",[])}catch(e){}}if(null!=e){let n=(0,f.getStatic)(this.constructor,"getNetwork");try{return n(a.O$.from(e).toNumber())}catch(n){return m.throwError("could not detect network",d.Logger.errors.NETWORK_ERROR,{chainId:e,event:"invalidNetwork",serverError:n})}}return m.throwError("could not detect network",d.Logger.errors.NETWORK_ERROR,{event:"noNetwork"})})}getSigner(e){return new M(C,this,e)}getUncheckedSigner(e){return this.getSigner(e).connectUnchecked()}listAccounts(){return this.send("eth_accounts",[]).then(e=>e.map(e=>this.formatter.address(e)))}send(e,n){let r={method:e,params:n,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:(0,f.deepCopy)(r),provider:this});let i=["eth_chainId","eth_blockNumber"].indexOf(e)>=0;if(i&&this._cache[e])return this._cache[e];let a=(0,c.fetchJson)(this.connection,JSON.stringify(r),x).then(e=>(this.emit("debug",{action:"response",request:r,response:e,provider:this}),e),e=>{throw this.emit("debug",{action:"response",error:e,request:r,provider:this}),e});return i&&(this._cache[e]=a,setTimeout(()=>{this._cache[e]=null},0)),a}prepareRequest(e,n){switch(e){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[T(n.address),n.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[T(n.address),n.blockTag]];case"getCode":return["eth_getCode",[T(n.address),n.blockTag]];case"getStorageAt":return["eth_getStorageAt",[T(n.address),(0,o.hexZeroPad)(n.position,32),n.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[n.signedTransaction]];case"getBlock":if(n.blockTag)return["eth_getBlockByNumber",[n.blockTag,!!n.includeTransactions]];if(n.blockHash)return["eth_getBlockByHash",[n.blockHash,!!n.includeTransactions]];break;case"getTransaction":return["eth_getTransactionByHash",[n.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[n.transactionHash]];case"call":return["eth_call",[(0,f.getStatic)(this.constructor,"hexlifyTransaction")(n.transaction,{from:!0}),n.blockTag]];case"estimateGas":return["eth_estimateGas",[(0,f.getStatic)(this.constructor,"hexlifyTransaction")(n.transaction,{from:!0})]];case"getLogs":return n.filter&&null!=n.filter.address&&(n.filter.address=T(n.filter.address)),["eth_getLogs",[n.filter]]}return null}perform(e,n){return y(this,void 0,void 0,function*(){if("call"===e||"estimateGas"===e){let e=n.transaction;if(e&&null!=e.type&&a.O$.from(e.type).isZero()&&null==e.maxFeePerGas&&null==e.maxPriorityFeePerGas){let r=yield this.getFeeData();null==r.maxFeePerGas&&null==r.maxPriorityFeePerGas&&((n=(0,f.shallowCopy)(n)).transaction=(0,f.shallowCopy)(e),delete n.transaction.type)}}let r=this.prepareRequest(e,n);null==r&&m.throwError(e+" not implemented",d.Logger.errors.NOT_IMPLEMENT
1ED,{operation:e});try{return yield this.send(r[0],r[1])}catch(r){return v(e,r,n)}})}_startEvent(e){"pending"===e.tag&&this._startPending(),super._startEvent(e)}_startPending(){if(null!=this._pendingFilter)return;let e=this,n=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=n,n.then(function(r){return function i(){e.send("eth_getFilterChanges",[r]).then(function(r){if(e._pendingFilter!=n)return null;let i=Promise.resolve();return r.forEach(function(n){e._emitted["t:"+n.toLowerCase()]="pending",i=i.then(function(){return e.getTransaction(n).then(function(n){return e.emit("pending",n),null})})}),i.then(function(){return w(1e3)})}).then(function(){if(e._pendingFilter!=n){e.send("eth_uninstallFilter",[r]);return}return setTimeout(function(){i()},0),null}).catch(e=>{})}(),r}).catch(e=>{})}_stopEvent(e){"pending"===e.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),super._stopEvent(e)}static hexlifyTransaction(e,n){let r=(0,f.shallowCopy)(E);if(n)for(let e in n)n[e]&&(r[e]=!0);(0,f.checkProperties)(e,r);let i={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(function(n){if(null==e[n])return;let r=(0,o.hexValue)(a.O$.from(e[n]));"gasLimit"===n&&(n="gas"),i[n]=r}),["from","to","data"].forEach(function(n){null!=e[n]&&(i[n]=(0,o.hexlify)(e[n]))}),e.accessList&&(i.accessList=(0,u.accessListify)(e.accessList)),i}}},93901:function(e,n,r){"use strict";r.d(n,{c:function(){return l},l:function(){return u}});var i=r(6881),a=r(1581),o=r(34216),s=r(82169);let f=new a.Logger(o.i);class l extends s.r{detectNetwork(){var e,n,r,o;let s=Object.create(null,{detectNetwork:{get:()=>super.detectNetwork}});return e=this,n=void 0,r=void 0,o=function*(){let e=this.network;return null==e&&((e=yield s.detectNetwork.call(this))||f.throwError("no network detected",a.Logger.errors.UNKNOWN_ERROR,{}),null==this._network&&((0,i.defineReadOnly)(this,"_network",e),this.emit("network",e,null))),e},new(r||(r=Promise))(function(i,a){function s(e){try{l(o.next(e))}catch(e){a(e)}}function f(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var n;e.done?i(e.value):((n=e.value)instanceof r?n:new r(function(e){e(n)})).then(s,f)}l((o=o.apply(e,n||[])).next())})}}class u extends l{constructor(e,n){f.checkAbstract(new.target,u),e=(0,i.getStatic)(new.target,"getNetwork")(e),super((0,i.getStatic)(new.target,"getUrl")(e,n=(0,i.getStatic)(new.target,"getApiKey")(n)),e),"string"==typeof n?(0,i.defineReadOnly)(this,"apiKey",n):null!=n&&Object.keys(n).forEach(e=>{(0,i.defineReadOnly)(this,e,n[e])})}_startPending(){f.warn("WARNING: API provider does not support pending filters")}isCommunityResource(){return!1}getSigner(e){return f.throwError("API provider does not support signing",a.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getSigner"})}listAccounts(){return Promise.resolve([])}static getApiKey(e){return e}static getUrl(e,n){return f.throwError("not implemented; sub-classes must override getUrl",a.Logger.errors.NOT_IMPLEMENTED,{operation:"getUrl"})}}},241:function(e,n,r){"use strict";r.d(n,{Q:function(){return c}});var i=r(6881),a=r(1581),o=r(34216),s=r(82169);let f=new a.Logger(o.i),l=1;function u(e,n){let r="Web3LegacyFetcher";return function(e,a){let o={method:e,params:a,id:l++,jsonrpc:"2.0"};return new Promise((e,a)=>{this.emit("debug",{action:"request",fetcher:r,request:(0,i.deepCopy)(o),provider:this}),n(o,(n,i)=>{if(n)return this.emit("debug",{action:"response",fetcher:r,error:n,request:o,provider:this}),a(n);if(this.emit("debug",{action:"response",fetcher:r,request:o,response:i,provider:this}),i.error){let e=Error(i.error.message);return e.code=i.error.code,e.data=i.error.data,a(e)}e(i.result)})})}}class c extends s.r{constructor(e,n){null==e&&f.throwArgumentError("missing provider","provider",e);let r=null,a=null,o=null;"function"==typeof e?(r="unknown:",a=e):(((r=e.host||e.path||"")||!e.isMetaMask||(r="metamask"),o=e,e.request)?(""===r&&(r="eip-1193:"),a=function(n,r){null==r&&(r=[]);let a={method:n,params:r};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:(0,i.deepCopy)(a),provider:this}),e.request(a).then(e=>
1(this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:a,response:e,provider:this}),e),e=>{throw this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:a,error:e,provider:this}),e})}):e.sendAsync?a=u(e,e.sendAsync.bind(e)):e.send?a=u(e,e.send.bind(e)):f.throwArgumentError("unsupported provider","provider",e),r||(r="unknown:")),super(r,n),(0,i.defineReadOnly)(this,"jsonRpcFetchFunc",a),(0,i.defineReadOnly)(this,"provider",o)}send(e,n){return this.jsonRpcFetchFunc(e,n)}}},88089:function(e,n,r){"use strict";r.d(n,{q:function(){return p}});var i=r(2593),a=r(6881),o=r(82169),s=r(1581),f=r(34216);let l=null;try{if(l=WebSocket,null==l)throw Error("inject please")}catch(n){let e=new s.Logger(f.i);l=function(){e.throwError("WebSockets not supported in this environment",s.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new WebSocket()"})}}var u=function(e,n,r,i){return new(r||(r=Promise))(function(a,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function f(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var n;e.done?a(e.value):((n=e.value)instanceof r?n:new r(function(e){e(n)})).then(s,f)}l((i=i.apply(e,n||[])).next())})};let c=new s.Logger(f.i),d=1;class p extends o.r{constructor(e,n){"any"===n&&c.throwError("WebSocketProvider does not support 'any' network yet",s.Logger.errors.UNSUPPORTED_OPERATION,{operation:"network:any"}),"string"==typeof e?super(e,n):super("_websocket",n),this._pollingInterval=-1,this._wsReady=!1,"string"==typeof e?(0,a.defineReadOnly)(this,"_websocket",new l(this.connection.url)):(0,a.defineReadOnly)(this,"_websocket",e),(0,a.defineReadOnly)(this,"_requests",{}),(0,a.defineReadOnly)(this,"_subs",{}),(0,a.defineReadOnly)(this,"_subIds",{}),(0,a.defineReadOnly)(this,"_detectNetwork",super.detectNetwork()),this.websocket.onopen=()=>{this._wsReady=!0,Object.keys(this._requests).forEach(e=>{this.websocket.send(this._requests[e].payload)})},this.websocket.onmessage=e=>{let n=e.data,r=JSON.parse(n);if(null!=r.id){let e=String(r.id),i=this._requests[e];if(delete this._requests[e],void 0!==r.result)i.callback(null,r.result),this.emit("debug",{action:"response",request:JSON.parse(i.payload),response:r.result,provider:this});else{let e=null;r.error?(e=Error(r.error.message||"unknown error"),(0,a.defineReadOnly)(e,"code",r.error.code||null),(0,a.defineReadOnly)(e,"response",n)):e=Error("unknown error"),i.callback(e,void 0),this.emit("debug",{action:"response",error:e,request:JSON.parse(i.payload),provider:this})}}else if("eth_subscription"===r.method){let e=this._subs[r.params.subscription];e&&e.processFunc(r.params.result)}else console.warn("this should not happen")};let r=setInterval(()=>{this.emit("poll")},1e3);r.unref&&r.unref()}get websocket(){return this._websocket}detectNetwork(){return this._detectNetwork}get pollingInterval(){return 0}resetEventsBlock(e){c.throwError("cannot reset events block on WebSocketProvider",s.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resetEventBlock"})}set pollingInterval(e){c.throwError("cannot set polling interval on WebSocketProvider",s.Logger.errors.UNSUPPORTED_OPERATION,{operation:"setPollingInterval"})}poll(){return u(this,void 0,void 0,function*(){return null})}set polling(e){e&&c.throwError("cannot set polling on WebSocketProvider",s.Logger.errors.UNSUPPORTED_OPERATION,{operation:"setPolling"})}send(e,n){let r=d++;return new Promise((i,a)=>{let o=JSON.stringify({method:e,params:n,id:r,jsonrpc:"2.0"});this.emit("debug",{action:"request",request:JSON.parse(o),provider:this}),this._requests[String(r)]={callback:function(e,n){return e?a(e):i(n)},payload:o},this._wsReady&&this.websocket.send(o)})}static defaultUrl(){return"ws://localhost:8546"}_subscribe(e,n,r){return u(this,void 0,void 0,function*(){let i=this._subIds[e];null==i&&(i=Promise.all(n).then(e=>this.send("eth_subscribe",e)),this._subIds[e]=i);let a=yield i;this._subs[a]={tag:e,processFunc:r}})}_startEvent(e){switch(e.type){case"block":this._subscribe("block",["newHeads"],e=>{let n=i.O$.from(e.number).toNumber();this._emitted.block=n,this.emit("block",n)});break;case"pending":this._subscribe("pending",["newPendingTransactions"],e=>
1{this.emit("pending",e)});break;case"filter":this._subscribe(e.tag,["logs",this._getFilter(e.filter)],n=>{null==n.removed&&(n.removed=!1),this.emit(e.filter,this.formatter.filterLog(n))});break;case"tx":{let n=e=>{let n=e.hash;this.getTransactionReceipt(n).then(e=>{e&&this.emit(n,e)})};n(e),this._subscribe("tx",["newHeads"],e=>{this._events.filter(e=>"tx"===e.type).forEach(n)});break}case"debug":case"poll":case"willPoll":case"didPoll":case"error":break;default:console.log("unhandled:",e)}}_stopEvent(e){let n=e.tag;if("tx"===e.type){if(this._events.filter(e=>"tx"===e.type).length)return;n="tx"}else if(this.listenerCount(e.event))return;let r=this._subIds[n];r&&(delete this._subIds[n],r.then(e=>{this._subs[e]&&(delete this._subs[e],this.send("eth_unsubscribe",[e]))}))}destroy(){return u(this,void 0,void 0,function*(){this.websocket.readyState===l.CONNECTING&&(yield new Promise(e=>{this.websocket.onopen=function(){e(!0)},this.websocket.onerror=function(){e(!1)}})),this.websocket.close(1e3)})}}},22118:function(e,n,r){"use strict";r.r(n),r.d(n,{randomBytes:function(){return i.O},shuffled:function(){return a.y}});var i=r(5634),a=r(52472)},5634:function(e,n,r){"use strict";r.d(n,{O:function(){return l}});var i=r(16441),a=r(1581);let o=new a.Logger("random/5.7.0"),s=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r.g)return r.g;throw Error("unable to locate global object")}(),f=s.crypto||s.msCrypto;function l(e){(e<=0||e>1024||e%1||e!=e)&&o.throwArgumentError("invalid length","length",e);let n=new Uint8Array(e);return f.getRandomValues(n),(0,i.arrayify)(n)}f&&f.getRandomValues||(o.warn("WARNING: Missing strong random number source"),f={getRandomValues:function(e){return o.throwError("no secure random source avaialble",a.Logger.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}})},52472:function(e,n,r){"use strict";function i(e){e=e.slice();for(let n=e.length-1;n>0;n--){let r=Math.floor(Math.random()*(n+1)),i=e[n];e[n]=e[r],e[r]=i}return e}r.d(n,{y:function(){return i}})},59052:function(e,n,r){"use strict";r.r(n),r.d(n,{decode:function(){return d},encode:function(){return l}});var i=r(16441),a=r(1581);let o=new a.Logger("rlp/5.7.0");function s(e){let n=[];for(;e;)n.unshift(255&e),e>>=8;return n}function f(e,n,r){let i=0;for(let a=0;a<r;a++)i=256*i+e[n+a];return i}function l(e){return(0,i.hexlify)(function e(n){if(Array.isArray(n)){let r=[];if(n.forEach(function(n){r=r.concat(e(n))}),r.length<=55)return r.unshift(192+r.length),r;let i=s(r.length);return i.unshift(247+i.length),i.concat(r)}(0,i.isBytesLike)(n)||o.throwArgumentError("RLP object must be BytesLike","object",n);let r=Array.prototype.slice.call((0,i.arrayify)(n));if(1===r.length&&r[0]<=127)return r;if(r.length<=55)return r.unshift(128+r.length),r;let a=s(r.length);return a.unshift(183+a.length),a.concat(r)}(e))}function u(e,n,r,i){let s=[];for(;r<n+1+i;){let f=c(e,r);s.push(f.result),(r+=f.consumed)>n+1+i&&o.throwError("child data too short",a.Logger.errors.BUFFER_OVERRUN,{})}return{consumed:1+i,result:s}}function c(e,n){if(0===e.length&&o.throwError("data too short",a.Logger.errors.BUFFER_OVERRUN,{}),e[n]>=248){let r=e[n]-247;n+1+r>e.length&&o.throwError("data short segment too short",a.Logger.errors.BUFFER_OVERRUN,{});let i=f(e,n+1,r);return n+1+r+i>e.length&&o.throwError("data long segment too short",a.Logger.errors.BUFFER_OVERRUN,{}),u(e,n,n+1+r,r+i)}if(e[n]>=192){let r=e[n]-192;return n+1+r>e.length&&o.throwError("data array too short",a.Logger.errors.BUFFER_OVERRUN,{}),u(e,n,n+1,r)}if(e[n]>=184){let r=e[n]-183;n+1+r>e.length&&o.throwError("data array too short",a.Logger.errors.BUFFER_OVERRUN,{});let s=f(e,n+1,r);n+1+r+s>e.length&&o.throwError("data array too short",a.Logger.errors.BUFFER_OVERRUN,{});let l=(0,i.hexlify)(e.slice(n+1+r,n+1+r+s));return{consumed:1+r+s,result:l}}if(e[n]>=128){let r=e[n]-128;n+1+r>e.length&&o.throwError("data too short",a.Logger.errors.BUFFER_OVERRUN,{});let s=(0,i.hexlify)(e.slice(n+1,n+1+r));return{consumed:1+r,result:s}}return{consumed:1,result:(0,i.hexlify)(e[n])}}function d(e){let n=(0,i.arrayify)(e),r=c(n,0);return r.consumed!==n.length&&o.throwArgumentError("invalid rlp data","data",e),r.result}},91278:function(e,n,r){"use strict";r.r(n),r.d(n,{SupportedAlgorithm:function(){return a.p}
1,computeHmac:function(){return i.Gy},ripemd160:function(){return i.bP},sha256:function(){return i.JQ},sha512:function(){return i.o}});var i=r(2006),a=r(21261)},2006:function(e,n,r){"use strict";r.d(n,{Gy:function(){return p},bP:function(){return u},JQ:function(){return c},o:function(){return d}});var i=r(33715),a=r.n(i),o=r(16441),s=r(21261),f=r(1581);let l=new f.Logger("sha2/5.7.0");function u(e){return"0x"+a().ripemd160().update((0,o.arrayify)(e)).digest("hex")}function c(e){return"0x"+a().sha256().update((0,o.arrayify)(e)).digest("hex")}function d(e){return"0x"+a().sha512().update((0,o.arrayify)(e)).digest("hex")}function p(e,n,r){return s.p[e]||l.throwError("unsupported algorithm "+e,f.Logger.errors.UNSUPPORTED_OPERATION,{operation:"hmac",algorithm:e}),"0x"+a().hmac(a()[e],(0,o.arrayify)(n)).update((0,o.arrayify)(r)).digest("hex")}},21261:function(e,n,r){"use strict";var i,a;r.d(n,{p:function(){return i}}),(a=i||(i={})).sha256="sha256",a.sha512="sha512"},67669:function(e,n,r){"use strict";r.r(n),r.d(n,{SigningKey:function(){return W},computePublicKey:function(){return G},recoverPublicKey:function(){return H}});var i=r(13550),a=r.n(i),o=r(33715),s=r.n(o);function f(e,n,r){return e(r={path:n,exports:{},require:function(e,n){return function(){throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(e,null==n?r.path:n)}},r.exports),r.exports}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self&&self;var l=u;function u(e,n){if(!e)throw Error(n||"Assertion failed")}u.equal=function(e,n,r){if(e!=n)throw Error(r||"Assertion failed: "+e+" != "+n)};var c=f(function(e,n){function r(e){return 1===e.length?"0"+e:e}function i(e){for(var n="",i=0;i<e.length;i++)n+=r(e[i].toString(16));return n}n.toArray=function(e,n){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!=typeof e){for(var i=0;i<e.length;i++)r[i]=0|e[i];return r}if("hex"===n){(e=e.replace(/[^a-z0-9]+/ig,"")).length%2!=0&&(e="0"+e);for(var i=0;i<e.length;i+=2)r.push(parseInt(e[i]+e[i+1],16))}else for(var i=0;i<e.length;i++){var a=e.charCodeAt(i),o=a>>8,s=255&a;o?r.push(o,s):r.push(s)}return r},n.zero2=r,n.toHex=i,n.encode=function(e,n){return"hex"===n?i(e):e}}
1),d=f(function(e,n){n.assert=l,n.toArray=c.toArray,n.zero2=c.zero2,n.toHex=c.toHex,n.encode=c.encode,n.getNAF=function(e,n,r){var i=Array(Math.max(e.bitLength(),r)+1);i.fill(0);for(var a=1<<n+1,o=e.clone(),s=0;s<i.length;s++){var f,l=o.andln(a-1);o.isOdd()?(f=l>(a>>1)-1?(a>>1)-l:l,o.isubn(f)):f=0,i[s]=f,o.iushrn(1)}return i},n.getJSF=function(e,n){var r=[[],[]];e=e.clone(),n=n.clone();for(var i=0,a=0;e.cmpn(-i)>0||n.cmpn(-a)>0;){var o,s,f,l=e.andln(3)+i&3,u=n.andln(3)+a&3;3===l&&(l=-1),3===u&&(u=-1),s=(1&l)==0?0:(3==(o=e.andln(7)+i&7)||5===o)&&2===u?-l:l,r[0].push(s),f=(1&u)==0?0:(3==(o=n.andln(7)+a&7)||5===o)&&2===l?-u:u,r[1].push(f),2*i===s+1&&(i=1-i),2*a===f+1&&(a=1-a),e.iushrn(1),n.iushrn(1)}return r},n.cachedProperty=function(e,n,r){var i="_"+n;e.prototype[n]=function(){return void 0!==this[i]?this[i]:this[i]=r.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new(a())(e,"hex","le")}}),p=d.getNAF,h=d.getJSF,y=d.assert;function m(e,n){this.type=e,this.p=new(a())(n.p,16),this.red=n.prime?a().red(n.prime):a().mont(this.p),this.zero=new(a())(0).toRed(this.red),this.one=new(a())(1).toRed(this.red),this.two=new(a())(2).toRed(this.red),this.n=n.n&&new(a())(n.n,16),this.g=n.g&&this.pointFromJSON(n.g,n.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function g(e,n){this.curve=e,this.type=n,this.precomputed=null}m.prototype.point=function(){throw Error("Not implemented")},m.prototype.validate=function(){throw Error("Not implemented")},m.prototype._fixedNafMul=function(e,n){y(e.precomputed);var r,i,a=e._getDoubles(),o=p(n,1,this._bitLength),s=(1<<a.step+1)-(a.step%2==0?2:1);s/=3;var f=[];for(r=0;r<o.length;r+=a.step){i=0;for(var l=r+a.step-1;l>=r;l--)i=(i<<1)+o[l];f.push(i)}for(var u=this.jpoint(null,null,null),c=this.jpoint(null,null,null),d=s;d>0;d--){for(r=0;r<f.length;r++)(i=f[r])===d?c=c.mixedAdd(a.points[r]):i===-d&&(c=c.mixedAdd(a.points[r].neg()));u=u.add(c)}return u.toP()},m.prototype._wnafMul=function(e,n){var r=4,i=e._getNAFPoints(r);r=i.wnd;for(var a=i.points,o=p(n,r,this._bitLength),s=this.jpoint(null,null,null),f=o.length-1;f>=0;f--){for(var l=0;f>=0&&0===o[f];f--)l++;if(f>=0&&l++,s=s.dblp(l),f<0)break;var u=o[f];y(0!==u),s="affine"===e.type?u>0?s.mixedAdd(a[u-1>>1]):s.mixedAdd(a[-u-1>>1].neg()):u>0?s.add(a[u-1>>1]):s.add(a[-u-1>>1].neg())}return"affine"===e.type?s.toP():s},m.prototype._wnafMulAdd=function(e,n,r,i,a){var o,s,f,l=this._wnafT1,u=this._wnafT2,c=this._wnafT3,d=0;for(o=0;o<i;o++){var y=(f=n[o])._getNAFPoints(e);l[o]=y.wnd,u[o]=y.points}for(o=i-1;o>=1;o-=2){var m=o-1,g=o;if(1!==l[m]||1!==l[g]){c[m]=p(r[m],l[m],this._bitLength),c[g]=p(r[g],l[g],this._bitLength),d=Math.max(c[m].length,d),d=Math.max(c[g].length,d);continue}var b=[n[m],null,null,n[g]];0===n[m].y.cmp(n[g].y)?(b[1]=n[m].add(n[g]),b[2]=n[m].toJ().mixedAdd(n[g].neg())):0===n[m].y.cmp(n[g].y.redNeg())?(b[1]=n[m].toJ().mixedAdd(n[g]),b[2]=n[m].add(n[g].neg())):(b[1]=n[m].toJ().mixedAdd(n[g]),b[2]=n[m].toJ().mixedAdd(n[g].neg()));var v=[-3,-1,-5,-7,0,7,5,1,3],w=h(r[m],r[g]);for(s=0,d=Math.max(w[0].length,d),c[m]=Array(d),c[g]=Array(d);s<d;s++){var x=0|w[0][s],T=0|w[1][s];c[m][s]=v[(x+1)*3+(T+1)],c[g][s]=0,u[m]=b}}var C=this.jpoint(null,null,null),M=this._wnafT4;for(o=d;o>=0;o--){for(var A=0;o>=0;){var E=!0;for(s=0;s<i;s++)M[s]=0|c[s][o],0!==M[s]&&(E=!1);if(!E)break;A++,o--}if(o>=0&&A++,C=C.dblp(A),o<0)break;for(s=0;s<i;s++){var I=M[s];0!==I&&(I>0?f=u[s][I-1>>1]:I<0&&(f=u[s][-I-1>>1].neg()),C="affine"===f.type?C.mixedAdd(f):C.add(f))}}for(o=0;o<i;o++)u[o]=null;return a?C:C.toP()},m.BasePoint=g,g.prototype.eq=function(){throw Error("Not implemented")},g.prototype.validate=function(){return this.curve.validate(this)},m.prototype.decodePoint=function(e,n){e=d.toArray(e,n);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?y(e[e.length-1]%2==0):7===e[0]&&y(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw Error("Unknown point format")},g.prototype.encodeCompressed=function(e){return this.encode(e,!0)},g.prototype._encode=function(e){var n=this.curve.p.byteLength(),r=this.getX().toArray("be",n);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",n))},g.prototype.encode=function(e,n){return d.encode(this._encode(n),e)}
1,g.prototype.precompute=function(e){if(this.precomputed)return this;var n={doubles:null,naf:null,beta:null};return n.naf=this._getNAFPoints(8),n.doubles=this._getDoubles(4,e),n.beta=this._getBeta(),this.precomputed=n,this},g.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var n=this.precomputed.doubles;return!!n&&n.points.length>=Math.ceil((e.bitLength()+1)/n.step)},g.prototype._getDoubles=function(e,n){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],i=this,a=0;a<n;a+=e){for(var o=0;o<e;o++)i=i.dbl();r.push(i)}return{step:e,points:r}},g.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var n=[this],r=(1<<e)-1,i=1===r?null:this.dbl(),a=1;a<r;a++)n[a]=n[a-1].add(i);return{wnd:e,points:n}},g.prototype._getBeta=function(){return null},g.prototype.dblp=function(e){for(var n=this,r=0;r<e;r++)n=n.dbl();return n};var b=f(function(e){"function"==typeof Object.create?e.exports=function(e,n){n&&(e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,n){if(n){e.super_=n;var r=function(){};r.prototype=n.prototype,e.prototype=new r,e.prototype.constructor=e}}}),v=d.assert;function w(e){m.call(this,"short",e),this.a=new(a())(e.a,16).toRed(this.red),this.b=new(a())(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}function x(e,n,r,i){m.BasePoint.call(this,e,"affine"),null===n&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new(a())(n,16),this.y=new(a())(r,16),i&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function T(e,n,r,i){m.BasePoint.call(this,e,"jacobian"),null===n&&null===r&&null===i?(this.x=this.curve.one,this.y=this.curve.one,this.z=new(a())(0)):(this.x=new(a())(n,16),this.y=new(a())(r,16),this.z=new(a())(i,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}b(w,m),w.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){if(e.beta)n=new(a())(e.beta,16).toRed(this.red);else{var n,r,i,o=this._getEndoRoots(this.p);n=(n=0>o[0].cmp(o[1])?o[0]:o[1]).toRed(this.red)}if(e.lambda)r=new(a())(e.lambda,16);else{var s=this._getEndoRoots(this.n);0===this.g.mul(s[0]).x.cmp(this.g.x.redMul(n))?r=s[0]:(r=s[1],v(0===this.g.mul(r).x.cmp(this.g.x.redMul(n))))}return i=e.basis?e.basis.map(function(e){return{a:new(a())(e.a,16),b:new(a())(e.b,16)}}):this._getEndoBasis(r),{beta:n,lambda:r,basis:i}}},w.prototype._getEndoRoots=function(e){var n=e===this.p?this.red:a().mont(e),r=new(a())(2).toRed(n).redInvm(),i=r.redNeg(),o=new(a())(3).toRed(n).redNeg().redSqrt().redMul(r);return[i.redAdd(o).fromRed(),i.redSub(o).fromRed()]},w.prototype._getEndoBasis=function(e){for(var n,r,i,o,s,f,l,u,c,d=this.n.ushrn(Math.floor(this.n.bitLength()/2)),p=e,h=this.n.clone(),y=new(a())(1),m=new(a())(0),g=new(a())(0),b=new(a())(1),v=0;0!==p.cmpn(0);){var w=h.div(p);u=h.sub(w.mul(p)),c=g.sub(w.mul(y));var x=b.sub(w.mul(m));if(!i&&0>u.cmp(d))n=l.neg(),r=y,i=u.neg(),o=c;else if(i&&2==++v)break;l=u,h=p,p=u,g=y,y=c,b=m,m=x}s=u.neg(),f=c;var T=i.sqr().add(o.sqr());return s.sqr().add(f.sqr()).cmp(T)>=0&&(s=n,f=r),i.negative&&(i=i.neg(),o=o.neg()),s.negative&&(s=s.neg(),f=f.neg()),[{a:i,b:o},{a:s,b:f}]},w.prototype._endoSplit=function(e){var n=this.endo.basis,r=n[0],i=n[1],a=i.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),s=a.mul(r.a),f=o.mul(i.a),l=a.mul(r.b),u=o.mul(i.b);return{k1:e.sub(s).sub(f),k2:l.add(u).neg()}},w.prototype.pointFromX=function(e,n){(e=new(a())(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw Error("invalid point");var o=i.fromRed().isOdd();return(n&&!o||!n&&o)&&(i=i.redNeg()),this.point(e,i)},w.prototype.validate=function(e){if(e.inf)return!0;var n=e.x,r=e.y,i=this.a.redMul(n),a=n.redSqr().redMul(n).redIAdd(i).redIAdd(this.b);return 0===r.redSqr().redISub(a).cmpn(0)},w.prototype._endoWnafMulAdd=function(e,n,r){for(var i=this._endoWnafT1,a=this._endoWnafT2,o=0;o<e.length;o++){var s=this._endoSplit(n[o]),f=e[o],l=f._getBeta();s.k1.negative&&(s.k1.ineg(),f=f.neg(!0)),s.k2.negative&&(s.k2.ineg(),l=l.neg(!0)),i[2*o]=f,i[2*o+1]=l,a[2*o]=s.k1,a[2*o+1]=s.k2}for(var u=this._wnafMulAdd(1,i,a,2*o,r),c=0;c<2*o;c++)i[c]=null,a[c]=null;return u},b(x,m.BasePoint),w.prototype.point=function(e,n,r){return new x(this,e,n,r)},w.prototype.pointFromJSON=function(e,n){return x.fromJSON(this,e,n)},x.prototype._getBeta=function(){if(this.curve.endo){var e=this.prec
vendor: 4,161 bytes, line 1
1omputed;if(e&&e.beta)return e.beta;var n=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,i=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=n,n.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(i)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(i)}}}return n}},x.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},x.fromJSON=function(e,n,r){"string"==typeof n&&(n=JSON.parse(n));var i=e.point(n[0],n[1],r);if(!n[2])return i;function a(n){return e.point(n[0],n[1],r)}var o=n[2];return i.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[i].concat(o.doubles.points.map(a))},naf:o.naf&&{wnd:o.naf.wnd,points:[i].concat(o.naf.points.map(a))}},i},x.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},x.prototype.isInfinity=function(){return this.inf},x.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e)||0===this.x.cmp(e.x))return this.curve.point(null,null);var n=this.y.redSub(e.y);0!==n.cmpn(0)&&(n=n.redMul(this.x.redSub(e.x).redInvm()));var r=n.redSqr().redISub(this.x).redISub(e.x),i=n.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,i)},x.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var n=this.curve.a,r=this.x.redSqr(),i=e.redInvm(),a=r.redAdd(r).redIAdd(r).redIAdd(n).redMul(i),o=a.redSqr().redISub(this.x.redAdd(this.x)),s=a.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,s)},x.prototype.getX=function(){return this.x.fromRed()},x.prototype.getY=function(){return this.y.fromRed()},x.prototype.mul=function(e){return(e=new(a())(e,16),this.isInfinity())?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},x.prototype.mulAdd=function(e,n,r){var i=[this,n],a=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,a):this.curve._wnafMulAdd(1,i,a,2)},x.prototype.jmulAdd=function(e,n,r){var i=[this,n],a=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,a,!0):this.curve._wnafMulAdd(1,i,a,2,!0)},x.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},x.prototype.neg=function(e){if(this.inf)return this;var n=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,i=function(e){return e.neg()};n.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(i)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(i)}}}return n},x.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},b(T,m.BasePoint),w.prototype.jpoint=function(e,n,r){return new T(this,e,n,r)},T.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),n=e.redSqr(),r=this.x.redMul(n),i=this.y.redMul(n).redMul(e);return this.curve.point(r,i)},T.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},T.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var n=e.z.redSqr(),r=this.z.redSqr(),i=this.x.redMul(n),a=e.x.redMul(r),o=this.y.redMul(n.redMul(e.z)),s=e.y.redMul(r.redMul(this.z)),f=i.redSub(a),l=o.redSub(s);if(0===f.cmpn(0))return 0!==l.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=f.redSqr(),c=u.redMul(f),d=i.redMul(u),p=l.redSqr().redIAdd(c).redISub(d).redISub(d),h=l.redMul(d.redISub(p)).redISub(o.redMul(c)),y=this.z.redMul(e.z).redMul(f);return this.curve.jpoint(p,h,y)},T.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;
1var n=this.z.redSqr(),r=this.x,i=e.x.redMul(n),a=this.y,o=e.y.redMul(n).redMul(this.z),s=r.redSub(i),f=a.redSub(o);if(0===s.cmpn(0))return 0!==f.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=s.redSqr(),u=l.redMul(s),c=r.redMul(l),d=f.redSqr().redIAdd(u).redISub(c).redISub(c),p=f.redMul(c.redISub(d)).redISub(a.redMul(u)),h=this.z.redMul(s);return this.curve.jpoint(d,p,h)},T.prototype.dblp=function(e){if(0===e||this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){var n,r=this;for(n=0;n<e;n++)r=r.dbl();return r}var i=this.curve.a,a=this.curve.tinv,o=this.x,s=this.y,f=this.z,l=f.redSqr().redSqr(),u=s.redAdd(s);for(n=0;n<e;n++){var c=o.redSqr(),d=u.redSqr(),p=d.redSqr(),h=c.redAdd(c).redIAdd(c).redIAdd(i.redMul(l)),y=o.redMul(d),m=h.redSqr().redISub(y.redAdd(y)),g=y.redISub(m),b=h.redMul(g);b=b.redIAdd(b).redISub(p);var v=u.redMul(f);n+1<e&&(l=l.redMul(p)),o=m,f=v,u=b}return this.curve.jpoint(o,u.redMul(a),f)},T.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},T.prototype._zeroDbl=function(){if(this.zOne){var e,n,r,i=this.x.redSqr(),a=this.y.redSqr(),o=a.redSqr(),s=this.x.redAdd(a).redSqr().redISub(i).redISub(o);s=s.redIAdd(s);var f=i.redAdd(i).redIAdd(i),l=f.redSqr().redISub(s).redISub(s),u=o.redIAdd(o);u=(u=u.redIAdd(u)).redIAdd(u),e=l,n=f.redMul(s.redISub(l)).redISub(u),r=this.y.redAdd(this.y)}else{var c=this.x.redSqr(),d=this.y.redSqr(),p=d.redSqr(),h=this.x.redAdd(d).redSqr().redISub(c).redISub(p);h=h.redIAdd(h);var y=c.redAdd(c).redIAdd(c),m=y.redSqr(),g=p.redIAdd(p);g=(g=g.redIAdd(g)).redIAdd(g),e=m.redISub(h).redISub(h),n=y.redMul(h.redISub(e)).redISub(g),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,n,r)},T.prototype._threeDbl=function(){if(this.zOne){var e,n,r,i=this.x.redSqr(),a=this.y.redSqr(),o=a.redSqr(),s=this.x.redAdd(a).redSqr().redISub(i).redISub(o);s=s.redIAdd(s);var f=i.redAdd(i).redIAdd(i).redIAdd(this.curve.a),l=f.redSqr().redISub(s).redISub(s);e=l;var u=o.redIAdd(o);u=(u=u.redIAdd(u)).redIAdd(u),n=f.redMul(s.redISub(l)).redISub(u),r=this.y.redAdd(this.y)}else{var c=this.z.redSqr(),d=this.y.redSqr(),p=this.x.redMul(d),h=this.x.redSub(c).redMul(this.x.redAdd(c));h=h.redAdd(h).redIAdd(h);var y=p.redIAdd(p),m=(y=y.redIAdd(y)).redAdd(y);e=h.redSqr().redISub(m),r=this.y.redAdd(this.z).redSqr().redISub(d).redISub(c);var g=d.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),n=h.redMul(y.redISub(e)).redISub(g)}return this.curve.jpoint(e,n,r)},T.prototype._dbl=function(){var e=this.curve.a,n=this.x,r=this.y,i=this.z,a=i.redSqr().redSqr(),o=n.redSqr(),s=r.redSqr(),f=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(a)),l=n.redAdd(n),u=(l=l.redIAdd(l)).redMul(s),c=f.redSqr().redISub(u.redAdd(u)),d=u.redISub(c),p=s.redSqr();p=(p=(p=p.redIAdd(p)).redIAdd(p)).redIAdd(p);
vendor: 1,704 bytes, line 1
1var h=f.redMul(d).redISub(p),y=r.redAdd(r).redMul(i);return this.curve.jpoint(c,h,y)},T.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),n=this.y.redSqr(),r=this.z.redSqr(),i=n.redSqr(),a=e.redAdd(e).redIAdd(e),o=a.redSqr(),s=this.x.redAdd(n).redSqr().redISub(e).redISub(i),f=(s=(s=(s=s.redIAdd(s)).redAdd(s).redIAdd(s)).redISub(o)).redSqr(),l=i.redIAdd(i);l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var u=a.redIAdd(s).redSqr().redISub(o).redISub(f).redISub(l),c=n.redMul(u);c=(c=c.redIAdd(c)).redIAdd(c);var d=this.x.redMul(f).redISub(c);d=(d=d.redIAdd(d)).redIAdd(d);var p=this.y.redMul(u.redMul(l.redISub(u)).redISub(s.redMul(f)));p=(p=(p=p.redIAdd(p)).redIAdd(p)).redIAdd(p);var h=this.z.redAdd(s).redSqr().redISub(r).redISub(f);return this.curve.jpoint(d,p,h)},T.prototype.mul=function(e,n){return e=new(a())(e,n),this.curve._wnafMul(this,e)},T.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var n=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(n)).cmpn(0))return!1;var i=n.redMul(this.z),a=r.redMul(e.z);return 0===this.y.redMul(a).redISub(e.y.redMul(i)).cmpn(0)},T.prototype.eqXToP=function(e){var n=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(n);if(0===this.x.cmp(r))return!0;for(var i=e.clone(),a=this.curve.redN.redMul(n);;){if(i.iadd(this.curve.n),i.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(a),0===this.x.cmp(r))return!0}},T.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},T.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};
vendor: 4,877 bytes, line 1
1var C=f(function(e,n){n.base=m,n.short=w,n.mont=null,n.edwards=null}),M=f(function(e,n){var r,i=d.assert;function a(e){"short"===e.type?this.curve=new C.short(e):"edwards"===e.type?this.curve=new C.edwards(e):this.curve=new C.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function o(e,r){Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get:function(){var i=new a(r);return Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:i}),i}})}n.PresetCurve=a,o("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:s().sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),o("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:s().sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),o("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:s().sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),o("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:s().sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),o("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:s().sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),o("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:s().sha256,gRed:!1,g:["9"]}),o("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:s().sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=null.crash()}catch(e){r=void 0}o("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:s().sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"}
1,{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})});function A(e){if(!(this instanceof A))return new A(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var n=c.toArray(e.entropy,e.entropyEnc||"hex"),r=c.toArray(e.nonce,e.nonceEnc||"hex"),i=c.toArray(e.pers,e.persEnc||"hex");l(n.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(n,r,i)}A.prototype._init=function(e,n,r){var i=e.concat(n).concat(r);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var a=0;a<this.V.length;a++)this.K[a]=0,this.V[a]=1;this._update(i),this._reseed=1,this.reseedInterval=281474976710656},A.prototype._hmac=function(){return new(s()).hmac(this.hash,this.K)},A.prototype._update=function(e){var n=this._hmac().update(this.V).update([0]);e&&(n=n.update(e)),this.K=n.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},A.prototype.reseed=function(e,n,r,i){"string"!=typeof n&&(i=r,r=n,n=null),e=c.toArray(e,n),r=c.toArray(r,i),l(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},A.prototype.generate=function(e,n,r,i){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof n&&(i=r,r=n,n=null),r&&(r=c.toArray(r,i||"hex"),this._update(r));for(var a=[];a.length<e;)this.V=this._hmac().update(this.V).digest(),a=a.concat(this.V);var o=a.slice(0,e);return this._update(r),this._reseed++,c.encode(o,n)};var E=d.assert;function I(e,n){this.ec=e,this.priv=null,this.pub=null,n.priv&&this._importPrivate(n.priv,n.privEnc),n.pub&&this._importPublic(n.pub,n.pubEnc)}I.fromPublic=function(e,n,r){return n instanceof I?n:new I(e,{pub:n,pubEnc:r})},I.fromPrivate=function(e,n,r){return n instanceof I?n:new I(e,{priv:n,privEnc:r})},I.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},I.prototype.getPublic=function(e,n){return("string"==typeof e&&(n=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),n)?this.pub.encode(n,e):this.pub},I.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},I.prototype._importPrivate=function(e,n){this.priv=new(a())(e,n||16),this.priv=this.priv.umod(this.ec.curve.n)},I.prototype._importPublic=function(e,n){if(e.x||e.y){"mont"===this.ec.curve.type?E(e.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&E(e.x&&e.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,n)},I.prototype.derive=function(e){return e.validate()||E(e.validate(),"public point not validated"),e.mul(this.priv).getX()},I.prototype.sign=function(e,n,r){return this.ec.sign(e,this,n,r)},I.prototype.verify=function(e,n){return this.ec.verify(e,n,this)},I.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var S=d.assert;function k(e,n){if(e instanceof k)return e;this._importDER(e,n)||(S(e.r&&e.s,"Signature without r or s"),this.r=new(a())(e.r,16),this.s=new(a())(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function N(){this.place=0}function j(e,n){var r=e[n.place++];if(!(128&r))return r;var i=15&r;if(0===i||i>4)return!1;for(var a=0,o=0,s=n.place;o<i;o++,s++)a<<=8,a|=e[s],a>>>=0;return!(a<=127)&&(n.place=s,a)}function D(e){for(var n=0,r=e.length-1;!e[n]&&!(128&e[n+1])&&n<r;)n++;return 0===n?e:e.slice(n)}function _(e,n){if(n<128){e.push(n);return}var r=1+(Math.log(n)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(n>>>(r<<3)&255);e.push(n)}k.prototype._importDER=function(e,n){e=d.toArray(e,n);var r=new N;if(48!==e[r.place++])return!1;var i=j(e,r);if(!1===i||i+r.place!==e.length||2!==e[r.place++])return!1;var o=j(e,r);if(!1===o)return!1;var s=e.slice(r.place,o+r.place);if(r.place+=o,2!==e[r.place++])return!1;var f=j(e,r);if(!1===f||e.length!==f+r.place)return!1;var l=e.slice(r.place,f+r.place);if(0===s[0]){if(!(128&s[1]))return!1;s=s.slice(1)}if(0===l[0]){if(!(128&l[1]))return!1;l=l.slice(1)}return this.r=new(a())(s),this.s=new(a())(l),this.recoveryParam=null,!0},k.prototype.toDER=function(e){var n=this.r.toArray(),r=this.s.toArray();for(128&n[0]&&(n=[0].concat(n)),128&r[0]&&(r=[0].concat(r)),n=D(n),r=D(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var i=[2];_(i,n.length),(i=i.concat(n)).push(2),_(i,r.length);var a=i.concat(r),o=[48];return _(o,a.length),o=o.concat(a),d.encode(o,e)};var O=function(){throw Error("unsupported")},P=d.assert;function L(e){if(!(this instanceof L))return new L(e);
1"string"==typeof e&&(P(Object.prototype.hasOwnProperty.call(M,e),"Unknown curve "+e),e=M[e]),e instanceof M.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}L.prototype.keyPair=function(e){return new I(this,e)},L.prototype.keyFromPrivate=function(e,n){return I.fromPrivate(this,e,n)},L.prototype.keyFromPublic=function(e,n){return I.fromPublic(this,e,n)},L.prototype.genKeyPair=function(e){e||(e={});for(var n=new A({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||O(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),i=this.n.sub(new(a())(2));;){var o=new(a())(n.generate(r));if(!(o.cmp(i)>0))return o.iaddn(1),this.keyFromPrivate(o)}},L.prototype._truncateToN=function(e,n){var r=8*e.byteLength()-this.n.bitLength();return(r>0&&(e=e.ushrn(r)),!n&&e.cmp(this.n)>=0)?e.sub(this.n):e},L.prototype.sign=function(e,n,r,i){"object"==typeof r&&(i=r,r=null),i||(i={}),n=this.keyFromPrivate(n,r),e=this._truncateToN(new(a())(e,16));for(var o=this.n.byteLength(),s=n.getPrivate().toArray("be",o),f=e.toArray("be",o),l=new A({hash:this.hash,entropy:s,nonce:f,pers:i.pers,persEnc:i.persEnc||"utf8"}),u=this.n.sub(new(a())(1)),c=0;;c++){var d=i.k?i.k(c):new(a())(l.generate(this.n.byteLength()));if(!(0>=(d=this._truncateToN(d,!0)).cmpn(1)||d.cmp(u)>=0)){var p=this.g.mul(d);if(!p.isInfinity()){var h=p.getX(),y=h.umod(this.n);if(0!==y.cmpn(0)){var m=d.invm(this.n).mul(y.mul(n.getPrivate()).iadd(e));if(0!==(m=m.umod(this.n)).cmpn(0)){var g=(p.getY().isOdd()?1:0)|(0!==h.cmp(y)?2:0);return i.canonical&&m.cmp(this.nh)>0&&(m=this.n.sub(m),g^=1),new k({r:y,s:m,recoveryParam:g})}}}}}},L.prototype.verify=function(e,n,r,i){e=this._truncateToN(new(a())(e,16)),r=this.keyFromPublic(r,i);var o,s=(n=new k(n,"hex")).r,f=n.s;if(0>s.cmpn(1)||s.cmp(this.n)>=0||0>f.cmpn(1)||f.cmp(this.n)>=0)return!1;var l=f.invm(this.n),u=l.mul(e).umod(this.n),c=l.mul(s).umod(this.n);return this.curve._maxwellTrick?!(o=this.g.jmulAdd(u,r.getPublic(),c)).isInfinity()&&o.eqXToP(s):!(o=this.g.mulAdd(u,r.getPublic(),c)).isInfinity()&&0===o.getX().umod(this.n).cmp(s)},L.prototype.recoverPubKey=function(e,n,r,i){P((3&r)===r,"The recovery param is more than two bits"),n=new k(n,i);var o=this.n,s=new(a())(e),f=n.r,l=n.s,u=1&r,c=r>>1;if(f.cmp(this.curve.p.umod(this.curve.n))>=0&&c)throw Error("Unable to find sencond key candinate");f=c?this.curve.pointFromX(f.add(this.curve.n),u):this.curve.pointFromX(f,u);var d=n.r.invm(o),p=o.sub(s).mul(d).umod(o),h=l.mul(d).umod(o);return this.g.mulAdd(p,f,h)},L.prototype.getKeyRecoveryParam=function(e,n,r,i){if(null!==(n=new k(n,i)).recoveryParam)return n.recoveryParam;for(var a,o=0;o<4;o++){try{a=this.recoverPubKey(e,n,o)}catch(e){continue}if(a.eq(r))return o}throw Error("Unable to find valid recovery factor")};
1var R=f(function(e,n){n.version="6.5.4",n.utils=d,n.rand=function(){throw Error("unsupported")},n.curve=C,n.curves=M,n.ec=L,n.eddsa=null}).ec,z=r(16441),B=r(6881);let U=new(r(1581)).Logger("signing-key/5.7.0"),F=null;function Z(){return F||(F=new R("secp256k1")),F}class W{constructor(e){(0,B.defineReadOnly)(this,"curve","secp256k1"),(0,B.defineReadOnly)(this,"privateKey",(0,z.hexlify)(e)),32!==(0,z.hexDataLength)(this.privateKey)&&U.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");let n=Z().keyFromPrivate((0,z.arrayify)(this.privateKey));(0,B.defineReadOnly)(this,"publicKey","0x"+n.getPublic(!1,"hex")),(0,B.defineReadOnly)(this,"compressedPublicKey","0x"+n.getPublic(!0,"hex")),(0,B.defineReadOnly)(this,"_isSigningKey",!0)}_addPoint(e){let n=Z().keyFromPublic((0,z.arrayify)(this.publicKey)),r=Z().keyFromPublic((0,z.arrayify)(e));return"0x"+n.pub.add(r.pub).encodeCompressed("hex")}signDigest(e){let n=Z().keyFromPrivate((0,z.arrayify)(this.privateKey)),r=(0,z.arrayify)(e);32!==r.length&&U.throwArgumentError("bad digest length","digest",e);let i=n.sign(r,{canonical:!0});return(0,z.splitSignature)({recoveryParam:i.recoveryParam,r:(0,z.hexZeroPad)("0x"+i.r.toString(16),32),s:(0,z.hexZeroPad)("0x"+i.s.toString(16),32)})}computeSharedSecret(e){let n=Z().keyFromPrivate((0,z.arrayify)(this.privateKey)),r=Z().keyFromPublic((0,z.arrayify)(G(e)));return(0,z.hexZeroPad)("0x"+n.derive(r.getPublic()).toString(16),32)}static isSigningKey(e){return!!(e&&e._isSigningKey)}}function H(e,n){let r=(0,z.splitSignature)(n),i={r:(0,z.arrayify)(r.r),s:(0,z.arrayify)(r.s)};return"0x"+Z().recoverPubKey((0,z.arrayify)(e),i,r.recoveryParam).encode("hex",!1)}function G(e,n){let r=(0,z.arrayify)(e);if(32===r.length){let e=new W(r);return n?"0x"+Z().keyFromPrivate(r).getPublic(!0,"hex"):e.publicKey}return 33===r.length?n?(0,z.hexlify)(r):"0x"+Z().keyFromPublic(r).getPublic(!1,"hex"):65===r.length?n?"0x"+Z().keyFromPublic(r).getPublic(!0,"hex"):(0,z.hexlify)(r):U.throwArgumentError("invalid public or private key","key","[REDACTED]")}},31886:function(e,n,r){"use strict";r.r(n),r.d(n,{keccak256:function(){return y},pack:function(){return h},sha256:function(){return m}});var i=r(2593),a=r(16441),o=r(38197),s=r(2006),f=r(29251),l=r(1581);let u=RegExp("^bytes([0-9]+)$"),c=RegExp("^(u?int)([0-9]*)$"),d=RegExp("^(.*)\\[([0-9]*)\\]$"),p=new l.Logger("solidity/5.7.0");function h(e,n){e.length!=n.length&&p.throwArgumentError("wrong number of values; expected ${ types.length }","values",n);let r=[];return e.forEach(function(e,o){r.push(function e(n,r,o){switch(n){case"address":if(o)return(0,a.zeroPad)(r,32);return(0,a.arrayify)(r);case"string":return(0,f.Y0)(r);case"bytes":return(0,a.arrayify)(r);case"bool":if(r=r?"0x01":"0x00",o)return(0,a.zeroPad)(r,32);return(0,a.arrayify)(r)}let s=n.match(c);if(s){let e=parseInt(s[2]||"256");return(s[2]&&String(e)!==s[2]||e%8!=0||0===e||e>256)&&p.throwArgumentError("invalid number type","type",n),o&&(e=256),r=i.O$.from(r).toTwos(e),(0,a.zeroPad)(r,e/8)}if(s=n.match(u)){let e=parseInt(s[1]);return((String(e)!==s[1]||0===e||e>32)&&p.throwArgumentError("invalid bytes type","type",n),(0,a.arrayify)(r).byteLength!==e&&p.throwArgumentError(`invalid value for ${n}`,"value",r),o)?(0,a.arrayify)((r+"0000000000000000000000000000000000000000000000000000000000000000").substring(0,66)):r}if((s=n.match(d))&&Array.isArray(r)){let i=s[1];parseInt(s[2]||String(r.length))!=r.length&&p.throwArgumentError(`invalid array length for ${n}`,"value",r);let o=[];return r.forEach(function(n){o.push(e(i,n,!0))}),(0,a.concat)(o)}return p.throwArgumentError("invalid type","type",n)}(e,n[o]))}),(0,a.hexlify)((0,a.concat)(r))}function y(e,n){return(0,o.keccak256)(h(e,n))}function m(e,n){return(0,s.JQ)(h(e,n))}},86237:function(e,n,r){"use strict";r.d(n,{F:function(){return f},s:function(){return s}});var i=r(57218),a=r(16441),o=r(29251);function s(e){let n=(0,o.Y0)(e);if(n.length>31)throw Error("bytes32 string must be less than 32 bytes");return(0,a.hexlify)((0,a.concat)([n,i.R]).slice(0,32))}function f(e){let n=(0,a.arrayify)(e);if(32!==n.length)throw Error("invalid bytes32 - not 32 bytes long");if(0!==n[31])throw Error("invalid bytes32 string - no null terminator");let r=31;for(;0===n[r-1];)r--;return(0,o.ZN)(n.slice(0,r))}},35637:function(e,n,r){"use strict";r.d(n,{Ll:function(){return y}});var i=r(29251);function a(e,n){n||(n=function(e){return[parseInt(e,16)]});let r=0,i={};
1return e.split(",").forEach(e=>{let a=e.split(":");i[r+=parseInt(a[0],16)]=n(a[1])}),i}function o(e){let n=0;return e.split(",").map(e=>{let r=e.split("-");return 1===r.length?r[1]="0":""===r[1]&&(r[1]="1"),{l:n+parseInt(r[0],16),h:n=parseInt(r[1],16)}})}function s(e,n){let r=0;for(let i=0;i<n.length;i++){let a=n[i];if(e>=(r+=a.l)&&e<=r+a.h&&(e-r)%(a.d||1)==0){if(a.e&&-1!==a.e.indexOf(e-r))continue;return a}}return null}let f=o("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),l="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map(e=>parseInt(e,16)),u=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],c=a("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),d=a("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),p=a("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",function(e){if(e.length%4!=0)throw Error("bad data");let n=[];for(let r=0;r<e.length;r+=4)n.push(parseInt(e.substring(r,r+4),16));return n}),h=o("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");function y(e){if(e.match(/^[a-z0-9-]*$/i)&&e.length<=59)return e.toLowerCase();let n=(0,i.XL)(e);n=n.map(e=>l.indexOf(e)>=0||e>=65024&&e<=65039?[]:function(e){let n=s(e,u);if(n)return[e+n.s];let r=c[e];if(r)return r;let i=d[e];return i?[e+i[0]]:p[e]||null}(e)||[e]).reduce((e,n)=>(n.forEach(n=>{e.push(n)}
1),e),[]),(n=(0,i.XL)((0,i.uu)(n),i.Uj.NFKC)).forEach(e=>{if(s(e,h))throw Error("STRINGPREP_CONTAINS_PROHIBITED")}),n.forEach(e=>{if(s(e,f))throw Error("STRINGPREP_CONTAINS_UNASSIGNED")});let r=(0,i.uu)(n);if("-"===r.substring(0,1)||"--"===r.substring(2,4)||"-"===r.substring(r.length-1))throw Error("invalid hyphen");return r}},62741:function(e,n,r){"use strict";r.r(n),r.d(n,{UnicodeNormalizationForm:function(){return o.Uj},Utf8ErrorFuncs:function(){return o.te},Utf8ErrorReason:function(){return o.Uw},_toEscapedUtf8String:function(){return o.U$},formatBytes32String:function(){return i.s},nameprep:function(){return a.Ll},parseBytes32String:function(){return i.F},toUtf8Bytes:function(){return o.Y0},toUtf8CodePoints:function(){return o.XL},toUtf8String:function(){return o.ZN}});var i=r(86237),a=r(35637),o=r(29251)},29251:function(e,n,r){"use strict";r.d(n,{Uj:function(){return o},te:function(){return c},Uw:function(){return s},U$:function(){return y},uu:function(){return m},Y0:function(){return p},XL:function(){return b},ZN:function(){return g}});var i,a,o,s,f=r(16441);let l=new(r(1581)).Logger("strings/5.7.0");function u(e,n,r,i,a){if(e===s.BAD_PREFIX||e===s.UNEXPECTED_CONTINUE){let e=0;for(let i=n+1;i<r.length&&r[i]>>6==2;i++)e++;return e}return e===s.OVERRUN?r.length-n-1:0}(i=o||(o={})).current="",i.NFC="NFC",i.NFD="NFD",i.NFKC="NFKC",i.NFKD="NFKD",(a=s||(s={})).UNEXPECTED_CONTINUE="unexpected continuation byte",a.BAD_PREFIX="bad codepoint prefix",a.OVERRUN="string overrun",a.MISSING_CONTINUE="missing continuation byte",a.OUT_OF_RANGE="out of UTF-8 range",a.UTF16_SURROGATE="UTF-16 surrogate",a.OVERLONG="overlong representation";let c=Object.freeze({error:function(e,n,r,i,a){return l.throwArgumentError(`invalid codepoint at offset ${n}; ${e}`,"bytes",r)},ignore:u,replace:function(e,n,r,i,a){return e===s.OVERLONG?(i.push(a),0):(i.push(65533),u(e,n,r,i,a))}});function d(e,n){null==n&&(n=c.error),e=(0,f.arrayify)(e);let r=[],i=0;for(;i<e.length;){let a=e[i++];if(a>>7==0){r.push(a);continue}let o=null,f=null;if((224&a)==192)o=1,f=127;else if((240&a)==224)o=2,f=2047;else if((248&a)==240)o=3,f=65535;else{(192&a)==128?i+=n(s.UNEXPECTED_CONTINUE,i-1,e,r):i+=n(s.BAD_PREFIX,i-1,e,r);continue}if(i-1+o>=e.length){i+=n(s.OVERRUN,i-1,e,r);continue}let l=a&(1<<8-o-1)-1;for(let a=0;a<o;a++){let a=e[i];if((192&a)!=128){i+=n(s.MISSING_CONTINUE,i,e,r),l=null;break}l=l<<6|63&a,i++}if(null!==l){if(l>1114111){i+=n(s.OUT_OF_RANGE,i-1-o,e,r,l);continue}if(l>=55296&&l<=57343){i+=n(s.UTF16_SURROGATE,i-1-o,e,r,l);continue}if(l<=f){i+=n(s.OVERLONG,i-1-o,e,r,l);continue}r.push(l)}}return r}function p(e,n=o.current){n!=o.current&&(l.checkNormalize(),e=e.normalize(n));let r=[];for(let n=0;n<e.length;n++){let i=e.charCodeAt(n);if(i<128)r.push(i);else if(i<2048)r.push(i>>6|192),r.push(63&i|128);else if((64512&i)==55296){n++;let a=e.charCodeAt(n);if(n>=e.length||(64512&a)!=56320)throw Error("invalid utf-8 string");let o=65536+((1023&i)<<10)+(1023&a);r.push(o>>18|240),r.push(o>>12&63|128),r.push(o>>6&63|128),r.push(63&o|128)}else r.push(i>>12|224),r.push(i>>6&63|128),r.push(63&i|128)}return(0,f.arrayify)(r)}function h(e){let n="0000"+e.toString(16);return"\\u"+n.substring(n.length-4)}function y(e,n){return'"'+d(e,n).map(e=>{if(e<256){switch(e){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(e>=32&&e<127)return String.fromCharCode(e)}return e<=65535?h(e):h(((e-=65536)>>10&1023)+55296)+h((1023&e)+56320)}).join("")+'"'}function m(e){return e.map(e=>e<=65535?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10&1023)+55296,(1023&e)+56320)).join("")}function g(e,n){return m(d(e,n))}function b(e,n=o.current){return d(p(e,n))}},83875:function(e,n,r){"use strict";r.r(n),r.d(n,{TransactionTypes:function(){return a},accessListify:function(){return M},computeAddress:function(){return w},parse:function(){return N},recoverAddress:function(){return x},serialize:function(){return S}});var i,a,o=r(19485),s=r(2593),f=r(16441),l=r(21046),u=r(38197),c=r(6881),d=r(59052),p=r(67669),h=r(1581);let y=new h.Logger("transactions/5.7.0");function m(e){return"0x"===e?null:(0,o.getAddress)(e)}function g(e){return"0x"===e?l._Y:s.O$.from(e)}(i=a||(a={}))[i.legacy=0]="legacy",i[i.eip2930=1]="eip2930",i[i.eip1559=2]="eip1559";let b=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],v={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function w(e){let n=(0,p.computePublicKey)(e);return(0,o.getAddress)((0,f.hexDataSlice)((0,u.keccak256)((0,f.hexDataSlice)(n,1)),12))}function x(e,n){return w((0,p.recoverPublicKey)((0,f.arrayify)(e),n))}function T(e,n){let r=(0,f.stripZeros)(s.O$.from(e).toHexString());return r.length>32&&y.throwArgumentError("invalid length for "+n,"transaction:"+n,e),r}function C(e,n){return{address:(0,o.getAddress)(e),storageKeys:(n||[]).map((n,r)=>(32!==(0,f.hexDataLength)(n)&&y.throwArgumentError("invalid access list storageKey",`accessList[${e}:${r}]`,n),n.toLowerCase()))}}function M(e){if(Array.isArray(e))return e.map((e,n)=>Array.isArray(e)?(e.length>2&&y.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${n}]`,e),C(e[0],e[1])):C(e.address,e.storageKeys));let n=Object.keys(e).map(n=>{let r=e[n].reduce((e,n)=>(e[n]=!0,e),{});return C(n,Object.keys(r).sort())});return n.sort((e,n)=>e.address.localeCompare(n.address)),n}function A(e){return M(e).map(e=>[e.address,e.storageKeys])}function E(e,n){if(null!=e.gasPrice){let n=s.O$.from(e.gasPrice),r=s.O$.from(e.maxFeePerGas||0);n.eq(r)||y.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:n,maxFeePerGas:r})}let r=[T(e.chainId||0,"chainId"),T(e.nonce||0,"nonce"),T(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),T(e.maxFeePerGas||0,"maxFeePerGas"),T(e.gasLim
1it||0,"gasLimit"),null!=e.to?(0,o.getAddress)(e.to):"0x",T(e.value||0,"value"),e.data||"0x",A(e.accessList||[])];if(n){let e=(0,f.splitSignature)(n);r.push(T(e.recoveryParam,"recoveryParam")),r.push((0,f.stripZeros)(e.r)),r.push((0,f.stripZeros)(e.s))}return(0,f.hexConcat)(["0x02",d.encode(r)])}function I(e,n){let r=[T(e.chainId||0,"chainId"),T(e.nonce||0,"nonce"),T(e.gasPrice||0,"gasPrice"),T(e.gasLimit||0,"gasLimit"),null!=e.to?(0,o.getAddress)(e.to):"0x",T(e.value||0,"value"),e.data||"0x",A(e.accessList||[])];if(n){let e=(0,f.splitSignature)(n);r.push(T(e.recoveryParam,"recoveryParam")),r.push((0,f.stripZeros)(e.r)),r.push((0,f.stripZeros)(e.s))}return(0,f.hexConcat)(["0x01",d.encode(r)])}function S(e,n){if(null==e.type||0===e.type)return null!=e.accessList&&y.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",e),function(e,n){(0,c.checkProperties)(e,v);let r=[];b.forEach(function(n){let i=e[n.name]||[],a={};n.numeric&&(a.hexPad="left"),i=(0,f.arrayify)((0,f.hexlify)(i,a)),n.length&&i.length!==n.length&&i.length>0&&y.throwArgumentError("invalid length for "+n.name,"transaction:"+n.name,i),n.maxLength&&(i=(0,f.stripZeros)(i)).length>n.maxLength&&y.throwArgumentError("invalid length for "+n.name,"transaction:"+n.name,i),r.push((0,f.hexlify)(i))});let i=0;if(null!=e.chainId?"number"!=typeof(i=e.chainId)&&y.throwArgumentError("invalid transaction.chainId","transaction",e):n&&!(0,f.isBytesLike)(n)&&n.v>28&&(i=Math.floor((n.v-35)/2)),0!==i&&(r.push((0,f.hexlify)(i)),r.push("0x"),r.push("0x")),!n)return d.encode(r);let a=(0,f.splitSignature)(n),o=27+a.recoveryParam;return 0!==i?(r.pop(),r.pop(),r.pop(),o+=2*i+8,a.v>28&&a.v!==o&&y.throwArgumentError("transaction.chainId/signature.v mismatch","signature",n)):a.v!==o&&y.throwArgumentError("transaction.chainId/signature.v mismatch","signature",n),r.push((0,f.hexlify)(o)),r.push((0,f.stripZeros)((0,f.arrayify)(a.r))),r.push((0,f.stripZeros)((0,f.arrayify)(a.s))),d.encode(r)}(e,n);switch(e.type){case 1:return I(e,n);case 2:return E(e,n)}return y.throwError(`unsupported transaction type: ${e.type}`,h.Logger.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:e.type})}function k(e,n,r){try{let r=g(n[0]).toNumber();if(0!==r&&1!==r)throw Error("bad recid");e.v=r}catch(e){y.throwArgumentError("invalid v for transaction type: 1","v",n[0])}e.r=(0,f.hexZeroPad)(n[1],32),e.s=(0,f.hexZeroPad)(n[2],32);try{let n=(0,u.keccak256)(r(e));e.from=x(n,{r:e.r,s:e.s,recoveryParam:e.v})}catch(e){}}function N(e){let n=(0,f.arrayify)(e);if(n[0]>127)return function(e){let n=d.decode(e);9!==n.length&&6!==n.length&&y.throwArgumentError("invalid raw transaction","rawTransaction",e);let r={nonce:g(n[0]).toNumber(),gasPrice:g(n[1]),gasLimit:g(n[2]),to:m(n[3]),value:g(n[4]),data:n[5],chainId:0};if(6===n.length)return r;try{r.v=s.O$.from(n[6]).toNumber()}catch(e){return r}if(r.r=(0,f.hexZeroPad)(n[7],32),r.s=(0,f.hexZeroPad)(n[8],32),s.O$.from(r.r).isZero()&&s.O$.from(r.s).isZero())r.chainId=r.v,r.v=0;else{r.chainId=Math.floor((r.v-35)/2),r.chainId<0&&(r.chainId=0);let i=r.v-27,a=n.slice(0,6);0!==r.chainId&&(a.push((0,f.hexlify)(r.chainId)),a.push("0x"),a.push("0x"),i-=2*r.chainId+8);let o=(0,u.keccak256)(d.encode(a));try{r.from=x(o,{r:(0,f.hexlify)(r.r),s:(0,f.hexlify)(r.s),recoveryParam:i})}catch(e){}r.hash=(0,u.keccak256)(e)}return r.type=null,r}(n);switch(n[0]){case 1:return function(e){let n=d.decode(e.slice(1));8!==n.length&&11!==n.length&&y.throwArgumentError("invalid component count for transaction type: 1","payload",(0,f.hexlify)(e));let r={type:1,chainId:g(n[0]).toNumber(),nonce:g(n[1]).toNumber(),gasPrice:g(n[2]),gasLimit:g(n[3]),to:m(n[4]),value:g(n[5]),data:n[6],accessList:M(n[7])};return 8===n.length||(r.hash=(0,u.keccak256)(e),k(r,n.slice(8),I)),r}(n);case 2:return function(e){let n=d.decode(e.slice(1));9!==n.length&&12!==n.length&&y.throwArgumentError("invalid component count for transaction type: 2","payload",(0,f.hexlify)(e));let r=g(n[2]),i=g(n[3]),a={type:2,chainId:g(n[0]).toNumber(),nonce:g(n[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:i,gasPrice:null,gasLimit:g(n[4]),to:m(n[5]),value:g(n[6]),data:n[7],accessList:M(n[8])};return 9===n.length||(a.hash=(0,u.keccak256)(e),k(a,n.slice(9),E)),a}(n)}return y.throwError(`unsupported transaction type: ${n[0]}`,h.Logger.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:n[0]})}},61744:function(e,n,r){"use strict";r.r(n),r.d(n,{commify:function(){return s},formatEther:function(){return u},formatUnits:function(){return f},parseEther:function(){return c},parseUnits:function(){return l}});var i=r(20335);let a=new(r(1581)).Logger("units/5.7.0"),o=["wei","kwei","mwei","gwei","szabo","finney","ether"];function s(e){let n=String(e).split(".");(n.length>
12||!n[0].match(/^-?[0-9]*$/)||n[1]&&!n[1].match(/^[0-9]*$/)||"."===e||"-."===e)&&a.throwArgumentError("invalid value","value",e);let r=n[0],i="";for("-"===r.substring(0,1)&&(i="-",r=r.substring(1));"0"===r.substring(0,1);)r=r.substring(1);""===r&&(r="0");let o="";for(2===n.length&&(o="."+(n[1]||"0"));o.length>2&&"0"===o[o.length-1];)o=o.substring(0,o.length-1);let s=[];for(;r.length;){if(r.length<=3){s.unshift(r);break}{let e=r.length-3;s.unshift(r.substring(e)),r=r.substring(0,e)}}return i+s.join(",")+o}function f(e,n){if("string"==typeof n){let e=o.indexOf(n);-1!==e&&(n=3*e)}return(0,i.S5)(e,null!=n?n:18)}function l(e,n){if("string"!=typeof e&&a.throwArgumentError("value must be a string","value",e),"string"==typeof n){let e=o.indexOf(n);-1!==e&&(n=3*e)}return(0,i.Ox)(e,null!=n?n:18)}function u(e){return f(e,18)}function c(e){return l(e,18)}},79911:function(e,n,r){"use strict";r.r(n),r.d(n,{Wallet:function(){return x},verifyMessage:function(){return T},verifyTypedData:function(){return C}});var i=r(19485),a=r(81556),o=r(48088),s=r(16441),f=r(93684),l=r(67827),u=r(84178),c=r(38197),d=r(6881),p=r(5634),h=r(67669),y=r(81964),m=r(64341),g=r(83875),b=r(1581),v=function(e,n,r,i){return new(r||(r=Promise))(function(a,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function f(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var n;e.done?a(e.value):((n=e.value)instanceof r?n:new r(function(e){e(n)})).then(s,f)}l((i=i.apply(e,n||[])).next())})};let w=new b.Logger("wallet/5.7.0");class x extends o.Signer{constructor(e,n){var r;if(super(),null!=(r=e)&&(0,s.isHexString)(r.privateKey,32)&&null!=r.address){let n=new h.SigningKey(e.privateKey);if((0,d.defineReadOnly)(this,"_signingKey",()=>n),(0,d.defineReadOnly)(this,"address",(0,g.computeAddress)(this.publicKey)),this.address!==(0,i.getAddress)(e.address)&&w.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),function(e){let n=e.mnemonic;return n&&n.phrase}(e)){let n=e.mnemonic;(0,d.defineReadOnly)(this,"_mnemonic",()=>({phrase:n.phrase,path:n.path||u.defaultPath,locale:n.locale||"en"}));let r=this.mnemonic,i=u.HDNode.fromMnemonic(r.phrase,null,r.locale).derivePath(r.path);(0,g.computeAddress)(i.privateKey)!==this.address&&w.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else(0,d.defineReadOnly)(this,"_mnemonic",()=>null)}else{if(h.SigningKey.isSigningKey(e))"secp256k1"!==e.curve&&w.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),(0,d.defineReadOnly)(this,"_signingKey",()=>e);else{"string"==typeof e&&e.match(/^[0-9a-f]*$/i)&&64===e.length&&(e="0x"+e);let n=new h.SigningKey(e);(0,d.defineReadOnly)(this,"_signingKey",()=>n)}(0,d.defineReadOnly)(this,"_mnemonic",()=>null),(0,d.defineReadOnly)(this,"address",(0,g.computeAddress)(this.publicKey))}n&&!a.Provider.isProvider(n)&&w.throwArgumentError("invalid provider","provider",n),(0,d.defineReadOnly)(this,"provider",n||null)}get mnemonic(){return this._mnemonic()}get privateKey(){return this._signingKey().privateKey}get publicKey(){return this._signingKey().publicKey}getAddress(){return Promise.resolve(this.address)}connect(e){return new x(this,e)}signTransaction(e){return(0,d.resolveProperties)(e).then(n=>{null!=n.from&&((0,i.getAddress)(n.from)!==this.address&&w.throwArgumentError("transaction from address mismatch","transaction.from",e.from),delete n.from);let r=this._signingKey().signDigest((0,c.keccak256)((0,g.serialize)(n)));return(0,g.serialize)(n,r)})}signMessage(e){return v(this,void 0,void 0,function*(){return(0,s.joinSignature)(this._signingKey().signDigest((0,f.r)(e)))})}_signTypedData(e,n,r){return v(this,void 0,void 0,function*(){let i=yield l.E.resolveNames(e,n,r,e=>(null==this.provider&&w.throwError("cannot resolve ENS names without a provider",b.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:e}),this.provider.resolveName(e)));return(0,s.joinSignature)(this._signingKey().signDigest(l.E.hash(i.domain,n,i.value)))})}encrypt(e,n,r){if("function"!=typeof n||r||(r=n,n={}),r&&"function"!=typeof r)throw Error("invalid callback");return n||(n={}),(0,y.HI)(this,e,n,r)}static createRandom(e){let n=(0,p.O)(16);e||(e={}),e.extraEntropy&&(n=(0,s.arrayify)((0,s.hexDataSlice)((0,c.keccak256)((0,s.concat)([n,e.extraEntropy])),0,16)));let r=(0,u.entropyToMnemonic)(n,e.locale);return x.fromMnemonic(r,e.path,e.locale)}static fromEncryptedJson(e,n,r){return(0,m.decryptJsonWallet)(e,n,r).then(e=>new x(e))}static fromEncryptedJsonSync(e,n){return new x((0,m.decryptJsonWalletSync)(e,n))}static fromMnemonic(e,n,r){return n||(n=u.defaultPath),new x(u.HDNode.fromMnemonic(e,null,r).derivePath(n))}}function T(e,n){return(0,g.recoverAddress)((0,f.r)(e),n)}function C(e,n,r,i){return(0,g.recoverAddress)(l.E.hash(e,n,r),i)}},37707:function(e,n,r){"use strict";r.r(n),r.d(n,{_fetchData:function(){return d},fetchJson:function(){return p},poll:function(){return h}});var i=r(59567),a=r(16441),o=r(6881),s=r(29251),f=r(1581);let l=new f.Logger("web/5.7.1");function u(e){return new Promise(n=>{setTimeout(n,e)})}function c(e,n){if(null==e)return null;if("string"==typeof e)return e;if((0,a.isBytesLike)(e)){if(n&&("text"===n.split("/")[0]||"application/json"===n.split(";")[0].trim()))try{return(0,s.ZN)(e)}catch(e){}return(0,a.hexlify)(e)}return e}function d(e,n,r){let d;let p="object"==typeof e&&null!=e.throttleLimit?e.throttleLimit:12;l.assertArgument(p>0&&p%1==0,"invalid connection throttle limit","connection.throttleLimit",p);let h="object"==typeof e?e.throttleCallback:null,y="object"==typeof e&&"number"==typeof e.throttleSlotInterval?e.throttleSlotInterval:100;l.assertArgument(y>0&&y%1==0,"invalid connection throttle slot interval","connection.throttleSlotInterval",y);let m="object"==typeof e&&!!e.errorPassThrough,g={},b=null,v={method:"GET"},w=!1,x=12e4;if("string"==typeof e)b=e;else if("object"==typeof e){if((null==e||null==e.url)&&l.throwArgumentError("missing URL","connection.url",e),b=e.url,"number"==typeof e.timeout&&e.timeout>0&&(x=e.timeout),e.headers)for(let n in e.headers)g[n.toLowerCase()]={key:n,value:String(e.headers[n])},["if-none-match","if-modified-since"].indexOf(n.toLowerCase())>=0&&(w=!0);if(v.allowGzip=!!e.allowGzip,null!=e.user&&null!=e.password){"https:"!==b.substring(0,6)&&!0!==e.allowInsecureAuthentication&&l.throwError("basic authentication requires a secure https url",f.Logger.errors.INVALID_ARGUMENT,{argument:"url",url:b,user:e.user,password:"[REDACTED]"});let n=e.user+":"+e.password;g.authorization={key:"Authorization",value:"Basic "+(0,i.c)((0,s.Y0)(n))}}
1null!=e.skipFetchSetup&&(v.skipFetchSetup=!!e.skipFetchSetup),null!=e.fetchOptions&&(v.fetchOptions=(0,o.shallowCopy)(e.fetchOptions))}let T=RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),C=b?b.match(T):null;if(C)try{var M;let e={statusCode:200,statusMessage:"OK",headers:{"content-type":C[1]||"text/plain"},body:C[2]?(0,i.J)(C[3]):(M=C[3],(0,s.Y0)(M.replace(/%([0-9a-f][0-9a-f])/gi,(e,n)=>String.fromCharCode(parseInt(n,16)))))},n=e.body;return r&&(n=r(e.body,e)),Promise.resolve(n)}catch(e){l.throwError("processing response error",f.Logger.errors.SERVER_ERROR,{body:c(C[1],C[2]),error:e,requestBody:null,requestMethod:"GET",url:b})}n&&(v.method="POST",v.body=n,null==g["content-type"]&&(g["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==g["content-length"]&&(g["content-length"]={key:"Content-Length",value:String(n.length)}));let A={};Object.keys(g).forEach(e=>{let n=g[e];A[n.key]=n.value}),v.headers=A;let E=(d=null,{promise:new Promise(function(e,n){x&&(d=setTimeout(()=>{null!=d&&(d=null,n(l.makeError("timeout",f.Logger.errors.TIMEOUT,{requestBody:c(v.body,A["content-type"]),requestMethod:v.method,timeout:x,url:b})))},x))}),cancel:function(){null!=d&&(clearTimeout(d),d=null)}}),I=function(){var e,n,i,o;return e=this,n=void 0,i=void 0,o=function*(){for(let e=0;e<p;e++){let n=null;try{if(n=yield function(e,n){var r,i,o,s;return r=this,i=void 0,o=void 0,s=function*(){null==n&&(n={});let r={method:n.method||"GET",headers:n.headers||{},body:n.body||void 0};
1if(!0!==n.skipFetchSetup&&(r.mode="cors",r.cache="no-cache",r.credentials="same-origin",r.redirect="follow",r.referrer="client"),null!=n.fetchOptions){let e=n.fetchOptions;e.mode&&(r.mode=e.mode),e.cache&&(r.cache=e.cache),e.credentials&&(r.credentials=e.credentials),e.redirect&&(r.redirect=e.redirect),e.referrer&&(r.referrer=e.referrer)}let i=yield fetch(e,r),o=yield i.arrayBuffer(),s={};return i.headers.forEach?i.headers.forEach((e,n)=>{s[n.toLowerCase()]=e}):i.headers.keys().forEach(e=>{s[e.toLowerCase()]=i.headers.get(e)}),{headers:s,statusCode:i.status,statusMessage:i.statusText,body:(0,a.arrayify)(new Uint8Array(o))}},new(o||(o=Promise))(function(e,n){function a(e){try{l(s.next(e))}catch(e){n(e)}}function f(e){try{l(s.throw(e))}catch(e){n(e)}}function l(n){var r;n.done?e(n.value):((r=n.value)instanceof o?r:new o(function(e){e(r)})).then(a,f)}l((s=s.apply(r,i||[])).next())})}(b,v),e<p){if(301===n.statusCode||302===n.statusCode){let e=n.headers.location||"";if("GET"===v.method&&e.match(/^https:/)){b=n.headers.location;continue}}else if(429===n.statusCode){let r=!0;if(h&&(r=yield h(e,b)),r){let r=0,i=n.headers["retry-after"];r="string"==typeof i&&i.match(/^[1-9][0-9]*$/)?1e3*parseInt(i):y*parseInt(String(Math.random()*Math.pow(2,e))),yield u(r);continue}}}}catch(e){null==(n=e.response)&&(E.cancel(),l.throwError("missing response",f.Logger.errors.SERVER_ERROR,{requestBody:c(v.body,A["content-type"]),requestMethod:v.method,serverError:e,url:b}))}let i=n.body;if(w&&304===n.statusCode?i=null:!m&&(n.statusCode<200||n.statusCode>=300)&&(E.cancel(),l.throwError("bad response",f.Logger.errors.SERVER_ERROR,{status:n.statusCode,headers:n.headers,body:c(i,n.headers?n.headers["content-type"]:null),requestBody:c(v.body,A["content-type"]),requestMethod:v.method,url:b})),r)try{let e=yield r(i,n);return E.cancel(),e}catch(r){if(r.throttleRetry&&e<p){let n=!0;if(h&&(n=yield h(e,b)),n){let n=y*parseInt(String(Math.random()*Math.pow(2,e)));yield u(n);continue}}E.cancel(),l.throwError("processing response error",f.Logger.errors.SERVER_ERROR,{body:c(i,n.headers?n.headers["content-type"]:null),error:r,requestBody:c(v.body,A["content-type"]),requestMethod:v.method,url:b})}return E.cancel(),i}return l.throwError("failed response",f.Logger.errors.SERVER_ERROR,{requestBody:c(v.body,A["content-type"]),requestMethod:v.method,url:b})},new(i||(i=Promise))(function(r,a){function s(e){try{l(o.next(e))}catch(e){a(e)}}function f(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var n;e.done?r(e.value):((n=e.value)instanceof i?n:new i(function(e){e(n)})).then(s,f)}l((o=o.apply(e,n||[])).next())})}();return Promise.race([E.promise,I])}function p(e,n,r){let i=null;if(null!=n){i=(0,s.Y0)(n);let r="string"==typeof e?{url:e}:(0,o.shallowCopy)(e);r.headers?0!==Object.keys(r.headers).filter(e=>"content-type"===e.toLowerCase()).length||(r.headers=(0,o.shallowCopy)(r.headers),r.headers["content-type"]="application/json"):r.headers={"content-type":"application/json"},e=r}return d(e,i,(e,n)=>{let i=null;if(null!=e)try{i=JSON.parse((0,s.ZN)(e))}catch(n){l.throwError("invalid JSON",f.Logger.errors.SERVER_ERROR,{body:e,error:n})}return r&&(i=r(i,n)),i})}function h(e,n){return n||(n={}),null==(n=(0,o.shallowCopy)(n)).floor&&(n.floor=0),null==n.ceiling&&(n.ceiling=1e4),null==n.interval&&(n.interval=250),new Promise(function(r,i){let a=null,o=!1,s=()=>!o&&(o=!0,a&&clearTimeout(a),!0);n.timeout&&(a=setTimeout(()=>{s()&&i(Error("timeout"))},n.timeout));let f=n.retryLimit,l=0;!function a(){return e().then(function(e){if(void 0!==e)s()&&r(e);else if(n.oncePoll)n.oncePoll.once("poll",a);else if(n.onceBlock)n.onceBlock.once("block",a);else if(!o){if(++l>f){s()&&i(Error("retry limit reached"));return}let e=n.interval*parseInt(String(Math.random()*Math.pow(2,l)));e<n.floor&&(e=n.floor),e>n.ceiling&&(e=n.ceiling),setTimeout(a,e)}return null},function(e){s()&&i(e)})}()})}},48812:function(e,n,r){"use strict";r.d(n,{D:function(){return s}});var i=r(32046),a=r(6881);let o=new(r(1581)).Logger("wordlists/5.7.0");class s{constructor(e){o.checkAbstract(new.target,s),(0,a.defineReadOnly)(this,"locale",e)}split(e){return e.toLowerCase().split(/ +/g)}join(e){return e.join(" ")}static check(e){let n=[];for(let r=0;r<2048;r++){let i=e.getWord(r);if(r!==e.getWordIndex(i))return"0x";n.push(i)}return(0,i.id)(n.join("\n")+"\n")}static register(e,n){n||(n=e.locale)}}},10234:function(e,n,r){"use strict";r.d(n,{E:function(){return l}});var i=r(48812);let a=null;function o(e){if(null==a&&(a="AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCat
1chCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductConfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobster
1LocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMuseumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThe
1nTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),"0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60"!==i.D.check(e)))throw a=null,Error("BIP39 Wordlist for en (English) FAILED")}class s extends i.D{constructor(){super("en")}getWord(e){return o(this),a[e]}getWordIndex(e){return o(this),a.indexOf(e)}}let f=new s;i.D.register(f);let l={en:f}},95957:function(e,n,r){"use strict";function i(e,n){var r=n&&n.cache?n.cache:l,i=n&&n.serializer?n.serializer:s;return(n&&n.strategy?n.strategy:function(e,n){var r,i,s=1===e.length?a:o;return r=n.cache.create(),i=n.serializer,s.bind(this,e,r,i)})(e,{cache:r,serializer:i})}function a(e,n,r,i){var a=null==i||"number"==typeof i||"boolean"==typeof i?i:r(i),o=n.get(a);return void 0===o&&(o=e.call(this,i),n.set(a,o)),o}function o(e,n,r){var i=Array.prototype.slice.call(arguments,3),a=r(i),o=n.get(a);return void 0===o&&(o=e.apply(this,i),n.set(a,o)),o}r.d(n,{A:function(){return u},H:function(){return i}});var s=function(){return JSON.stringify(arguments)};function f(){this.cache=Object.create(null)}f.prototype.get=function(e){return this.cache[e]},f.prototype.set=function(e,n){this.cache[e]=n};var l={create:function(){return new f}},u={variadic:function(e,n){var r,i;return r=n.cache.create(),i=n.serializer,o.bind(this,e,r,i)},monadic:function(e,n){var r,i;return r=n.cache.create(),i=n.serializer,a.bind(this,e,r,i)}}},88222:function(e,n,r){"use strict";r.d(n,{$6:function(){return p},OV:function(){return l},Qe:function(){return c},X9:function(){return d},gb:function(){return u},wI:function(){return f}});var i,a,o=r(80361);(i=a||(a={})).FORMAT_ERROR="FORMAT_ERROR",i.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",i.INVALID_CONFIG="INVALID_CONFIG",i.MISSING_DATA="MISSING_DATA",i.MISSING_TRANSLATION="MISSING_TRANSLATION";var s=function(e){function n(r,i,a){var o=this,s=a?a instanceof Error?a:Error(String(a)):void 0;return(o=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(i,"\n").concat(s?"\n".concat(s.message,"\n").concat(s.stack):""))||this).code=r,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(o,n),o}return(0,o.ZT)(n,e),n}(Error),f=function(e){function n(n,r){return e.call(this,a.UNSUPPORTED_FORMATTER,n,r)||this}return(0,o.ZT)(n,e),n}(s),l=function(e){function n(n,r){return e.call(this,a.INVALID_CONFIG,n,r)||this}return(0,o.ZT)(n,e),n}(s),u=function(e){function n(n,r){return e.call(this,a.MISSING_DATA,n,r)||this}return(0,o.ZT)(n,e),n}(s),c=function(e){function n(n,r,i){var o=e.call(this,a.FORMAT_ERROR,"".concat(n,"\nLocale: ").concat(r,"\n"),i)||this;return o.locale=r,o}return(0,o.ZT)(n,e),n}(s),d=function(e){function n(n,r,i,a){var o=e.call(this,"".concat(n,"\nMessageID: ").concat(null==i?void 0:i.id,"\nDefault Message: ").concat(null==i?void 0:i.defaultMessage,"\nDescription: ").concat(null==i?void 0:i.description,"\n"),r,a)||this;return o.descriptor=i,o.locale=r,o}return(0,o.ZT)(n,e),n}(c),p=function(e){function n(n,r){var i=e.call(this,a.MISSING_TRANSLATION,'Missing message: "'.concat(n.id,'" for locale "').concat(r,'", using ').concat(n.defaultMessage?"default message (".concat("string"==typeof n.defaultMessage?n.defaultMessage:n.defaultMessage.map(function(e){var n;return null!==(n=e.value)&&void 0!==n?n:JSON.stringify(e)}).join(),")"):"id"," as fallback."))||this;return i.descriptor=n,i}return(0,o.ZT)(n,e),n}(s)},82644:function(e,n,r){"use strict";r.d(n,{L6:function(){return f},Sn:function(){return u},TB:function(){return p},Z0:function(){return l},ax:function(){return d}});var i=r(80361),a=r(16284),o=r(95957),s=r(88222);function f(e,n,r){return void 0===r&&(r={}),n.reduce(function(n,i){return i in e?n[i]=e[i]:i in r&&(n[i]=r[i]),n},{})}var l={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){},onWarn:function(e){}};function u(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function c(e){return{create:function(){return{get:function(n){return e[n]},set:function(n,r){e[n]=r}}}}}function d(e){void 0===e&&(e=u());var n=Intl.RelativeTimeFormat,r=Intl.ListFormat,s=Intl.DisplayNames,f=(0,o.H)(function(){for(var e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,(0,i.ev)([void 0],n,!1)))},{cache:c(e.dateTime),strategy:o.A.variadic}),l=(0,o.H)(function(){for(var e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,(0,i.ev)([void 0],n,!1)))},{cache:c(e.number),strategy:o.A.variadic}),d=(0,o.H)(function(){for(var e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,(0,i.ev)([void 0],n,!1)))},{cache:c(e.pluralRules),strategy:o.A.variadic});return{getDateTimeFormat:f,getNumberFormat:l,getMessageFormat:(0,o.H)(function(e,n,r,o){return new a.C(e,n,r,(0,i.pi)({formatters:{getNumberFormat:l,getDateTimeFormat:f,getPluralRules:d}},o||{}))},{cache:c(e.message),strategy:o.A.variadic}),getRelativeTimeFormat:(0,o.H)(function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new(n.bind.apply(n,(0,i.ev)([void 0],e,!1)))},{cache:c(e.relativeTime),strategy:o.A.variadic}),getPluralRules:d,getListFormat:(0,o.H)(function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new(r.bind.apply(r,(0,i.ev)([void 0],e,!1)))},{cache:c(e.list),strategy:o.A.variadic}),getDisplayNames:(0,o.H)(function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new(s.bind.apply(s,(0,i.ev)([void 0],e,!1)))},{cache:c(e.displayNames),strategy:o.A.variadic})}}function p(e,n,r,i){var a,o=e&&e[n];if(o&&(a=o[r]),a)return a;i(new s.wI("No ".concat(n," format named: ").concat(r)))}},44819:function(e,n,r){"use strict";let i=r(67294).createContext(null);n.Z=i},56760:function(e,n,r){"use strict";r.d(n,{Z:function(){return o}});var i=r(67294),a=r(44819);function o(){return i.useContext(a.Z)}},41234:function(e,n,r){"use strict";r.d(n,{Z:function(){return o}}),r(67294);var i=r(70917),a=r(85893);function o(e){let{styles:n,defaultTheme:r={}}=e,o="function"==typeof n?e=>n(null==e||0===Object.keys(e).length?r:e):n;return(0,a.jsx)(i.xB,{styles:o})}},94810:function(e,n,r){"use strict";let i;r.d(n,{Z:function(){return f}}),r(67294);var a=r(38741),o=r(48711),s=r(85893);function f(e){let{injectFirst:n,children:r}=e;return n&&i?(0,s.jsx)(a.C,{value:i,children:r}):r}
1"object"==typeof document&&(i=(0,o.Z)({key:"css",prepend:!0}))},6509:function(e,n,r){"use strict";r.r(n),r.d(n,{GlobalStyles:function(){return v.Z},StyledEngineProvider:function(){return b.Z},ThemeContext:function(){return s.T},css:function(){return g.iv},default:function(){return w},internal_processStyles:function(){return x},keyframes:function(){return g.F4}});var i=r(87462),a=r(67294),o=r(71068),s=r(38741),f=r(70444),l=r(85662),u=r(27278),c=o.Z,d=function(e){return"theme"!==e},p=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?c:d},h=function(e,n,r){var i;if(n){var a=n.shouldForwardProp;i=e.__emotion_forwardProp&&a?function(n){return e.__emotion_forwardProp(n)&&a(n)}:a}return"function"!=typeof i&&r&&(i=e.__emotion_forwardProp),i},y=function(e){var n=e.cache,r=e.serialized,i=e.isStringTag;return(0,f.hC)(n,r,i),(0,u.L)(function(){return(0,f.My)(n,r,i)}),null},m=(function e(n,r){var o,u,c=n.__emotion_real===n,d=c&&n.__emotion_base||n;void 0!==r&&(o=r.label,u=r.target);var m=h(n,r,c),g=m||p(d),b=!g("as");return function(){var v=arguments,w=c&&void 0!==n.__emotion_styles?n.__emotion_styles.slice(0):[];if(void 0!==o&&w.push("label:"+o+";"),null==v[0]||void 0===v[0].raw)w.push.apply(w,v);else{w.push(v[0][0]);for(var x=v.length,T=1;T<x;T++)w.push(v[T],v[0][T])}var C=(0,s.w)(function(e,n,r){var i=b&&e.as||d,o="",c=[],h=e;if(null==e.theme){for(var v in h={},e)h[v]=e[v];h.theme=a.useContext(s.T)}"string"==typeof e.className?o=(0,f.fp)(n.registered,c,e.className):null!=e.className&&(o=e.className+" ");var x=(0,l.O)(w.concat(c),n.registered,h);o+=n.key+"-"+x.name,void 0!==u&&(o+=" "+u);var T=b&&void 0===m?p(i):g,C={};for(var M in e)(!b||"as"!==M)&&T(M)&&(C[M]=e[M]);return C.className=o,r&&(C.ref=r),a.createElement(a.Fragment,null,a.createElement(y,{cache:n,serialized:x,isStringTag:"string"==typeof i}),a.createElement(i,C))});return C.displayName=void 0!==o?o:"Styled("+("string"==typeof d?d:d.displayName||d.name||"Component")+")",C.defaultProps=n.defaultProps,C.__emotion_real=C,C.__emotion_base=d,C.__emotion_styles=w,C.__emotion_forwardProp=m,Object.defineProperty(C,"toString",{value:function(){return"."+u}}),C.withComponent=function(n,a){return e(n,(0,i.Z)({},r,a,{shouldForwardProp:h(C,a,!0)})).apply(void 0,w)},C}}).bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){m[e]=m(e)});var g=r(70917),b=r(94810),v=r(41234);function w(e,n){return m(e,n)}let x=(e,n)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=n(e.__emotion_styles))}},2101:function(e,n,r){"use strict";var i=r(64836);n.Fq=p,n._j=h,n._4=m,n.mi=function(e,n){let r=d(e),i=d(n);return(Math.max(r,i)+.05)/(Math.min(r,i)+.05)},n.ve=c,n.$n=y,n.zp=function(e,n,r){try{return p(e,n)}catch(n){return e}},n.LR=void 0,n.q8=function(e,n,r){try{return h(e,n)}catch(n){return e}},n.fk=function(e,n,r){try{return m(e,n)}catch(n){return e}},n.ux=function(e,n,r){try{return y(e,n)}catch(n){return e}};var a=i(r(55480)),o=i(r(14800));function s(e,n=0,r=1){return(0,o.default)(e,n,r)}function f(e){let n;if(e.type)return e;if("#"===e.charAt(0))return f(function(e){e=e.slice(1);let n=RegExp(`.{1,${e.length>=6?2:1}}`,"g"),r=e.match(n);return r&&1===r[0].length&&(r=r.map(e=>e+e)),r?`rgb${4===r.length?"a":""}(${r.map((e,n)=>n<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));let r=e.indexOf("("),i=e.substring(0,r);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(i))throw Error((0,a.default)(9,e));let o=e.substring(r+1,e.length-1);if("color"===i){if(n=(o=o.split(" ")).shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw Error((0,a.default)(10,n))}else o=o.split(",");return{type:i,values:o=o.map(e=>parseFloat(e)),colorSpace:n}}let l=e=>{let n=f(e);return n.values.slice(0,3).map((e,r)=>-1!==n.type.indexOf("hsl")&&0!==r?`${e}%`:e).join(" ")};function u(e){let{type:n,colorSpace:r}=e,{values:i}=e;return -1!==n.indexOf("rgb")?i=i.map((e,n)=>n<3?parseInt(e,10):e):-1!==n.indexOf("hsl")&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),i=-1!==n.indexOf("color")?`${r} ${i.join(" ")}`:`${i.join(", ")}`,`${n}(${i})`}function c(e){let{values:n}=e=f(e),r=n[0],i=n[1]/100,a=n[2]/100,o=i*Math.min(a,1-a),s=(e,n=(e+r/30)%12)=>a-o*Math.max(Math.min(n-3,9-n,1),-1),l="rgb",c=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(4))];return"hsla"===e.type&&(l+="a",c.push(n[3])),u({type:l,values:c})}function d(e){let n="hsl"===(e=f(e)).type||"hsla"===e.type?f(c(e)).values:e.values;return Number((.2126*(n=n.map(n=>("color"!==e.type&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)))[0]+.7152*n[1]+.0722*n[2]).toFixed(3))}function p(e,n){return e=f(e),n=s(n),("rgb"===e.type||"hsl"===e.type)&&(e.type+="a"),"color"===e.type?e.values[3]=`/${n}`:e.values[3]=n,u(e)}function h(e,n){if(e=f(e),n=s(n),-1!==e.type.indexOf("hsl"))e.values[2]*=1-n;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-n;return u(e)}function y(e,n){if(e=f(e),n=s(n),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*n;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*n;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*n;return u(e)}function m(e,n=.15){return d(e)>.5?h(e,n):y(e,n)}n.LR=(e,n)=>{try{return l(e)}catch(n){return e}}},58128:function(e,n,r){"use strict";var i=r(64836);n.ZP=function(e={}){let{themeId:n,defaultTheme:r=m,rootShouldForwardProp:i=y,slotShouldForwardProp:l=y}=e,c=e=>(0,u.default)((0,a.default)({},e,{theme:b((0,a.default)({},e,{defaultTheme:r,themeId:n}))}));return c.__mui_systemSx=!0,(e,u={})=>{var d;let h;(0,s.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));let{name:m,slot:w,skipVariantsResolver:x,skipSx:T,overridesResolver:C=(d=g(w))?(e,n)=>n[d]:null}=u,M=(0,o.default)(u,p),A=void 0!==x?x:w&&"Root"!==w&&"root"!==w||!1,E=T||!1,I=y;"Root"===w||"root"===w?I=i:w?I=l:"string"==typeof e&&e.charCodeAt(0)>96&&(I=void 0);let S=(0,s.default)(e,(0,a.default)({shouldForwardProp:I,label:h},M)),k=e=>"function"==typeof e&&e.__emotion_real!==e||(0,f.isPlainObject)(e)?i=>v(e,(0,a.default)({},i,{theme:b({theme:i.theme,defaultTheme:r,themeId:n})})):e,N=(i,...o)=>{let s=k(i),f=o?o.map(k):[];m&&C&&f.push(e=>{let i=b((0,a.default)({},e,{defaultTheme:r,themeId:n}));if(!i.components||!i.components[m]||!i.components[m].styleOverrides)return null;let o=i.components[m].styleOverrides,s={};
1return Object.entries(o).forEach(([n,r])=>{s[n]=v(r,(0,a.default)({},e,{theme:i}))}),C(e,s)}),m&&!A&&f.push(e=>{var i;let o=b((0,a.default)({},e,{defaultTheme:r,themeId:n}));return v({variants:null==o||null==(i=o.components)||null==(i=i[m])?void 0:i.variants},(0,a.default)({},e,{theme:o}))}),E||f.push(c);let l=f.length-o.length;if(Array.isArray(i)&&l>0){let e=Array(l).fill("");(s=[...i,...e]).raw=[...i.raw,...e]}let u=S(s,...f);return e.muiName&&(u.muiName=e.muiName),u};return S.withConfig&&(N.withConfig=S.withConfig),N}};var a=i(r(10434)),o=i(r(7071)),s=function(e,n){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=h(void 0);if(r&&r.has(e))return r.get(e);var i={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=a?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(i,o,s):i[o]=e[o]}return i.default=e,r&&r.set(e,i),i}(r(6509)),f=r(58524);i(r(87641)),i(r(92125));var l=i(r(19926)),u=i(r(386));let c=["ownerState"],d=["variants"],p=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function h(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,r=new WeakMap;return(h=function(e){return e?r:n})(e)}function y(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}let m=(0,l.default)(),g=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function b({defaultTheme:e,theme:n,themeId:r}){return 0===Object.keys(n).length?e:n[r]||n}function v(e,n){let{ownerState:r}=n,i=(0,o.default)(n,c),s="function"==typeof e?e((0,a.default)({ownerState:r},i)):e;if(Array.isArray(s))return s.flatMap(e=>v(e,(0,a.default)({ownerState:r},i)));if(s&&"object"==typeof s&&Array.isArray(s.variants)){let{variants:e=[]}=s,n=(0,o.default)(s,d);return e.forEach(e=>{let o=!0;"function"==typeof e.props?o=e.props((0,a.default)({ownerState:r},i,r)):Object.keys(e.props).forEach(n=>{(null==r?void 0:r[n])!==e.props[n]&&i[n]!==e.props[n]&&(o=!1)}),o&&(Array.isArray(n)||(n=[n]),n.push("function"==typeof e.style?e.style((0,a.default)({ownerState:r},i,r)):e.style))}),n}return s}},32842:function(e,n,r){"use strict";r.d(n,{i:function(){return f}});var i=r(67294),a=r(35971),o=r(85893);let s=i.createContext(void 0);function f({props:e,name:n}){return function(e){let{theme:n,name:r,props:i}=e;if(!n||!n.components||!n.components[r])return i;let o=n.components[r];return o.defaultProps?(0,a.Z)(o.defaultProps,i):o.styleOverrides||o.variants?i:(0,a.Z)(o,i)}({props:e,name:n,theme:{components:i.useContext(s)}})}n.Z=function({value:e,children:n}){return(0,o.jsx)(s.Provider,{value:e,children:n})}},82056:function(e,n,r){"use strict";
1r.d(n,{V:function(){return u}});var i=r(87462),a=r(63366),o=r(67294),s=r(85893);let f=["value"],l=o.createContext(),u=()=>{let e=o.useContext(l);return null!=e&&e};n.Z=function(e){let{value:n}=e,r=(0,a.Z)(e,f);return(0,s.jsx)(l.Provider,(0,i.Z)({value:null==n||n},r))}},1819:function(e,n,r){"use strict";r.d(n,{Z:function(){return M}});var i=r(63366),a=r(87462),o=r(67294),s=r(90512),f=r(4953),l=r(34867),u=r(94780),c=r(45098),d=r(29628),p=r(39707),h=r(88647),y=r(95408),m=r(98700),g=r(85893);let b=["component","direction","spacing","divider","children","className","useFlexGap"],v=(0,h.Z)(),w=(0,c.Z)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,n)=>n.root});function x(e){return(0,d.Z)({props:e,name:"MuiStack",defaultTheme:v})}let T=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],C=({ownerState:e,theme:n})=>{let r=(0,a.Z)({display:"flex",flexDirection:"column"},(0,y.k9)({theme:n},(0,y.P$)({values:e.direction,breakpoints:n.breakpoints.values}),e=>({flexDirection:e})));if(e.spacing){let i=(0,m.hB)(n),a=Object.keys(n.breakpoints.values).reduce((n,r)=>(("object"==typeof e.spacing&&null!=e.spacing[r]||"object"==typeof e.direction&&null!=e.direction[r])&&(n[r]=!0),n),{}),o=(0,y.P$)({values:e.direction,base:a}),s=(0,y.P$)({values:e.spacing,base:a});"object"==typeof o&&Object.keys(o).forEach((e,n,r)=>{if(!o[e]){let i=n>0?o[r[n-1]]:"column";o[e]=i}}),r=(0,f.Z)(r,(0,y.k9)({theme:n},s,(n,r)=>e.useFlexGap?{gap:(0,m.NA)(i,n)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${T(r?o[r]:e.direction)}`]:(0,m.NA)(i,n)}}))}return(0,y.dt)(n.breakpoints,r)};function M(e={}){let{createStyledComponent:n=w,useThemeProps:r=x,componentName:f="MuiStack"}=e,c=()=>(0,u.Z)({root:["root"]},e=>(0,l.ZP)(f,e),{}),d=n(C);return o.forwardRef(function(e,n){let f=r(e),l=(0,p.Z)(f),{component:u="div",direction:h="column",spacing:y=0,divider:m,children:v,className:w,useFlexGap:x=!1}=l,T=(0,i.Z)(l,b),C=c();return(0,g.jsx)(d,(0,a.Z)({as:u,ownerState:{direction:h,spacing:y,useFlexGap:x},ref:n,className:(0,s.Z)(C.root,w)},T,{children:m?function(e,n){let r=o.Children.toArray(e).filter(Boolean);return r.reduce((e,i,a)=>(e.push(i),a<r.length-1&&e.push(o.cloneElement(n,{key:`separator-${a}`})),e),[])}(v,m):v}))})}},71927:function(e,n,r){"use strict";r.d(n,{Z:function(){return g}});var i=r(87462),a=r(67294),o=r(56760),s=r(44819),f="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",l=r(85893),u=function(e){let{children:n,theme:r}=e,u=(0,o.Z)(),c=a.useMemo(()=>{let e=null===u?r:"function"==typeof r?r(u):(0,i.Z)({},u,r);return null!=e&&(e[f]=null!==u),e},[r,u]);return(0,l.jsx)(s.Z.Provider,{value:c,children:n})},c=r(38741),d=r(34168),p=r(82056),h=r(32842);let y={};function m(e,n,r,o=!1){return a.useMemo(()=>{let a=e&&n[e]||n;if("function"==typeof r){let s=r(a),f=e?(0,i.Z)({},n,{[e]:s}):s;return o?()=>f:f}return e?(0,i.Z)({},n,{[e]:r}):(0,i.Z)({},n,r)},[e,n,r,o])}var g=function(e){let{children:n,theme:r,themeId:i}=e,a=(0,d.Z)(y),s=(0,o.Z)()||y,f=m(i,a,r),g=m(i,s,r,!0),b="rtl"===f.direction;return(0,l.jsx)(u,{theme:g,children:(0,l.jsx)(c.T.Provider,{value:f,children:(0,l.jsx)(p.Z,{value:b,children:(0,l.jsx)(h.Z,{value:null==f?void 0:f.components,children:n})})})})}},95408:function(e,n,r){"use strict";r.d(n,{L7:function(){return l},P$:function(){return c},VO:function(){return a},W8:function(){return f},dt:function(){return u},k9:function(){return s}});var i=r(4953);let a={xs:0,sm:600,md:900,lg:1200,xl:1536},o={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${a[e]}px)`};function s(e,n,r){let i=e.theme||{};if(Array.isArray(n)){let e=i.breakpoints||o;return n.reduce((i,a,o)=>(i[e.up(e.keys[o])]=r(n[o]),i),{})}if("object"==typeof n){let e=i.breakpoints||o;return Object.keys(n).reduce((i,o)=>(-1!==Object.keys(e.values||a).indexOf(o)?i[e.up(o)]=r(n[o],o):i[o]=n[o],i),{})}return r(n)}function f(e={}){var n;return(null==(n=e.keys)?void 0:n.reduce((n,r)=>(n[e.up(r)]={},n),{}))||{}}function l(e,n){return e.reduce((e,n)=>{let r=e[n];return r&&0!==Object.keys(r).length||delete e[n],e},n)}function u(e,...n){let r=f(e),a=[r,...n].reduce((e,n)=>
1(0,i.Z)(e,n),{});return l(Object.keys(r),a)}function c({values:e,breakpoints:n,base:r}){let i;let a=Object.keys(r||function(e,n){if("object"!=typeof e)return{};let r={},i=Object.keys(n);return Array.isArray(e)?i.forEach((n,i)=>{i<e.length&&(r[n]=!0)}):i.forEach(n=>{null!=e[n]&&(r[n]=!0)}),r}(e,n));return 0===a.length?e:a.reduce((n,r,a)=>(Array.isArray(e)?(n[r]=null!=e[a]?e[a]:e[i],i=a):"object"==typeof e?(n[r]=null!=e[r]?e[r]:e[i],i=r):n[r]=e,n),{})}},41796:function(e,n,r){"use strict";r.d(n,{$n:function(){return m},Fq:function(){return h},H3:function(){return d},_4:function(){return g},_j:function(){return y},mi:function(){return p},oo:function(){return s},tB:function(){return f},ve:function(){return c},vq:function(){return u},wy:function(){return l}});var i=r(56535),a=r(7610);function o(e,n=0,r=1){return(0,a.Z)(e,n,r)}function s(e){e=e.slice(1);let n=RegExp(`.{1,${e.length>=6?2:1}}`,"g"),r=e.match(n);return r&&1===r[0].length&&(r=r.map(e=>e+e)),r?`rgb${4===r.length?"a":""}(${r.map((e,n)=>n<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}function f(e){let n;if(e.type)return e;if("#"===e.charAt(0))return f(s(e));let r=e.indexOf("("),a=e.substring(0,r);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(a))throw Error((0,i.Z)(9,e));let o=e.substring(r+1,e.length-1);if("color"===a){if(n=(o=o.split(" ")).shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw Error((0,i.Z)(10,n))}else o=o.split(",");return{type:a,values:o=o.map(e=>parseFloat(e)),colorSpace:n}}function l(e){let{type:n,colorSpace:r}=e,{values:i}=e;return -1!==n.indexOf("rgb")?i=i.map((e,n)=>n<3?parseInt(e,10):e):-1!==n.indexOf("hsl")&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),i=-1!==n.indexOf("color")?`${r} ${i.join(" ")}`:`${i.join(", ")}`,`${n}(${i})`}function u(e){if(0===e.indexOf("#"))return e;let{values:n}=f(e);return`#${n.map((e,n)=>(function(e){let n=e.toString(16);return 1===n.length?`0${n}`:n})(3===n?Math.round(255*e):e)).join("")}`}function c(e){let{values:n}=e=f(e),r=n[0],i=n[1]/100,a=n[2]/100,o=i*Math.min(a,1-a),s=(e,n=(e+r/30)%12)=>a-o*Math.max(Math.min(n-3,9-n,1),-1),u="rgb",c=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(4))];return"hsla"===e.type&&(u+="a",c.push(n[3])),l({type:u,values:c})}function d(e){let n="hsl"===(e=f(e)).type||"hsla"===e.type?f(c(e)).values:e.values;return Number((.2126*(n=n.map(n=>("color"!==e.type&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)))[0]+.7152*n[1]+.0722*n[2]).toFixed(3))}function p(e,n){let r=d(e),i=d(n);return(Math.max(r,i)+.05)/(Math.min(r,i)+.05)}function h(e,n){return e=f(e),n=o(n),("rgb"===e.type||"hsl"===e.type)&&(e.type+="a"),"color"===e.type?e.values[3]=`/${n}`:e.values[3]=n,l(e)}function y(e,n){if(e=f(e),n=o(n),-1!==e.type.indexOf("hsl"))e.values[2]*=1-n;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-n;return l(e)}function m(e,n){if(e=f(e),n=o(n),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*n;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*n;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*n;return l(e)}function g(e,n=.15){return d(e)>.5?y(e,n):m(e,n)}},61354:function(e,n,r){"use strict";r.d(n,{Z:function(){return h}});var i=r(87462),a=r(63366),o=r(67294),s=r(90512),f=r(6509),l=r(86523),u=r(39707),c=r(96682),d=r(85893);let p=["className","component"];function h(e={}){let{themeId:n,defaultTheme:r,defaultClassName:h="MuiBox-root",generateClassName:y}=e,m=(0,f.default)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(l.Z);return o.forwardRef(function(e,o){let f=(0,c.Z)(r),l=(0,u.Z)(e),{className:g,component:b="div"}=l,v=(0,a.Z)(l,p);return(0,d.jsx)(m,(0,i.Z)({as:b,ref:o,className:(0,s.Z)(g,y?y(h):h),theme:n&&f[n]||f},v))})}},57064:function(e,n,r){"use strict";function i(e,n){return this.vars&&"function"==typeof this.getColorSchemeSelector?{[this.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:n}:this.palette.mode===e?n:{}}r.d(n,{Z:function(){return i}})},41512:function(e,n,r){"use strict";r.d(n,{Z:function(){return f}});var i=r(63366),a=r(87462);let o=["values","unit","step"],s=e=>{let n=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return n.sort((e,n)=>e.val-n.val),n.reduce((e,n)=>(0,a.Z)({},e,{[n.key]:n.val}),{})};function f(e){let{values:n={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:f=5}=e,l=(0,i.Z)(e,o),u=s(n),c=Object.keys(u);function d(e){let i="number"==typeof n[e]?n[e]:e;return`@media (min-width:${i}${r})`}function p(e){let i="number"==typeof n[e]?n[e]:e;return`@media (max-width:${i-f/100}${r})`}function h(e,i){let a=c.indexOf(i);return`@media (min-width:${"number"==typeof n[e]?n[e]:e}${r}) and (max-width:${(-1!==a&&"number"==typeof n[c[a]]?n[c[a]]:i)-f/100}${r})`}return(0,a.Z)({keys:c,values:u,up:d,down:p,between:h,only:function(e){return c.indexOf(e)+1<c.length?h(e,c[c.indexOf(e)+1]):d(e)},not:function(e){let n=c.indexOf(e);return 0===n?d(c[1]):n===c.length-1?p(c[n]):h(e,c[c.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},l)}},98373:function(e,n,r){"use strict";r.d(n,{Z:function(){return a}});var i=r(98700);function a(e=8){if(e.mui)return e;let n=(0,i.hB)({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map(e=>{let r=n(e);return"number"==typeof r?`${r}px`:r}).join(" ");return r.mui=!0,r}},88647:function(e,n,r){"use strict";r.d(n,{Z:function(){return h}});
1var i=r(87462),a=r(63366),o=r(4953),s=r(41512),f={borderRadius:4},l=r(98373),u=r(86523),c=r(44920),d=r(57064);let p=["breakpoints","palette","spacing","shape"];var h=function(e={},...n){let{breakpoints:r={},palette:h={},spacing:y,shape:m={}}=e,g=(0,a.Z)(e,p),b=(0,s.Z)(r),v=(0,l.Z)(y),w=(0,o.Z)({breakpoints:b,direction:"ltr",components:{},palette:(0,i.Z)({mode:"light"},h),spacing:v,shape:(0,i.Z)({},f,m)},g);return w.applyStyles=d.Z,(w=n.reduce((e,n)=>(0,o.Z)(e,n),w)).unstable_sxConfig=(0,i.Z)({},c.Z,null==g?void 0:g.unstable_sxConfig),w.unstable_sx=function(e){return(0,u.Z)({sx:e,theme:this})},w}},19926:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return i.Z},private_createBreakpoints:function(){return a.Z},unstable_applyStyles:function(){return o.Z}});var i=r(88647),a=r(41512),o=r(57064)},47730:function(e,n,r){"use strict";var i=r(4953);n.Z=function(e,n){return n?(0,i.Z)(e,n,{clone:!1}):e}},98700:function(e,n,r){"use strict";r.d(n,{hB:function(){return y},eI:function(){return h},NA:function(){return m},e6:function(){return b},o3:function(){return v}});var i=r(95408),a=r(54844),o=r(47730);let s={m:"margin",p:"padding"},f={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},u=function(e){let n={};return r=>(void 0===n[r]&&(n[r]=e(r)),n[r])}(e=>{if(e.length>2){if(!l[e])return[e];e=l[e]}let[n,r]=e.split(""),i=s[n],a=f[r]||"";return Array.isArray(a)?a.map(e=>i+e):[i+a]}),c=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],p=[...c,...d];function h(e,n,r,i){var o;let s=null!=(o=(0,a.DW)(e,n,!1))?o:r;return"number"==typeof s?e=>"string"==typeof e?e:s*e:Array.isArray(s)?e=>"string"==typeof e?e:s[e]:"function"==typeof s?s:()=>void 0}function y(e){return h(e,"spacing",8,"spacing")}function m(e,n){if("string"==typeof n||null==n)return n;let r=e(Math.abs(n));return n>=0?r:"number"==typeof r?-r:`-${r}`}function g(e,n){let r=y(e.theme);return Object.keys(e).map(a=>(function(e,n,r,a){var o;if(-1===n.indexOf(r))return null;let s=(o=u(r),e=>o.reduce((n,r)=>(n[r]=m(a,e),n),{})),f=e[r];return(0,i.k9)(e,f,s)})(e,n,a,r)).reduce(o.Z,{})}function b(e){return g(e,c)}function v(e){return g(e,d)}function w(e){return g(e,p)}b.propTypes={},b.filterProps=c,v.propTypes={},v.filterProps=d,w.propTypes={},w.filterProps=p},54844:function(e,n,r){"use strict";r.d(n,{DW:function(){return o},Jq:function(){return s}});var i=r(14142),a=r(95408);function o(e,n,r=!0){if(!n||"string"!=typeof n)return null;if(e&&e.vars&&r){let r=`vars.${n}`.split(".").reduce((e,n)=>e&&e[n]?e[n]:null,e);if(null!=r)return r}return n.split(".").reduce((e,n)=>e&&null!=e[n]?e[n]:null,e)}function s(e,n,r,i=r){let a;return a="function"==typeof e?e(r):Array.isArray(e)?e[r]||i:o(e,r)||i,n&&(a=n(a,i,e)),a}n.ZP=function(e){let{prop:n,cssProperty:r=e.prop,themeKey:f,transform:l}=e,u=e=>{if(null==e[n])return null;let u=e[n],c=o(e.theme,f)||{};return(0,a.k9)(e,u,e=>{let a=s(c,l,e);return(e===a&&"string"==typeof e&&(a=s(c,l,`${n}${"default"===e?"":(0,i.Z)(e)}`,e)),!1===r)?a:{[r]:a}})};return u.propTypes={},u.filterProps=[n],u}},44920:function(e,n,r){"use strict";r.d(n,{Z:function(){return F}});var i=r(98700),a=r(54844),o=r(47730),s=function(...e){let n=e.reduce((e,n)=>(n.filterProps.forEach(r=>{e[r]=n}),e),{}),r=e=>Object.keys(e).reduce((r,i)=>n[i]?(0,o.Z)(r,n[i](e)):r,{});return r.propTypes={},r.filterProps=e.reduce((e,n)=>e.concat(n.filterProps),[]),r},f=r(95408);function l(e){return"number"!=typeof e?e:`${e}px solid`}function u(e,n){return(0,a.ZP)({prop:e,themeKey:"borders",transform:n})}let c=u("border",l),d=u("borderTop",l),p=u("borderRight",l),h=u("borderBottom",l),y=u("borderLeft",l),m=u("borderColor"),g=u("borderTopColor"),b=u("borderRightColor"),v=u("borderBottomColor"),w=u("borderLeftColor"),x=u("outline",l),T=u("outlineColor"),C=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){let n=(0,i.eI)(e.theme,"shape.borderRadius",4,"borderRadius");return(0,f.k9)(e,e.borderRadius,e=>({borderRadius:(0,i.NA)(n,e)}))}return null};C.propTypes={},C.filterProps=["borderRadius"],s(c,d,p,h,y,m,g,b,v,w,C,x,T);let M=e=>{if(void 0!==e.gap&&null!==e.gap){let n=(0,i.eI)(e.theme,"spacing",8,"gap");return(0,f.k9)(e,e.gap,e=>({gap:(0,i.NA)(n,e)}))}return null};M.propTypes={},M.filterProps=["gap"];let A=e=>
1{if(void 0!==e.columnGap&&null!==e.columnGap){let n=(0,i.eI)(e.theme,"spacing",8,"columnGap");return(0,f.k9)(e,e.columnGap,e=>({columnGap:(0,i.NA)(n,e)}))}return null};A.propTypes={},A.filterProps=["columnGap"];let E=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){let n=(0,i.eI)(e.theme,"spacing",8,"rowGap");return(0,f.k9)(e,e.rowGap,e=>({rowGap:(0,i.NA)(n,e)}))}return null};E.propTypes={},E.filterProps=["rowGap"];let I=(0,a.ZP)({prop:"gridColumn"}),S=(0,a.ZP)({prop:"gridRow"}),k=(0,a.ZP)({prop:"gridAutoFlow"}),N=(0,a.ZP)({prop:"gridAutoColumns"}),j=(0,a.ZP)({prop:"gridAutoRows"}),D=(0,a.ZP)({prop:"gridTemplateColumns"});function _(e,n){return"grey"===n?n:e}function O(e){return e<=1&&0!==e?`${100*e}%`:e}s(M,A,E,I,S,k,N,j,D,(0,a.ZP)({prop:"gridTemplateRows"}),(0,a.ZP)({prop:"gridTemplateAreas"}),(0,a.ZP)({prop:"gridArea"})),s((0,a.ZP)({prop:"color",themeKey:"palette",transform:_}),(0,a.ZP)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:_}),(0,a.ZP)({prop:"backgroundColor",themeKey:"palette",transform:_}));let P=(0,a.ZP)({prop:"width",transform:O}),L=e=>void 0!==e.maxWidth&&null!==e.maxWidth?(0,f.k9)(e,e.maxWidth,n=>{var r,i;let a=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[n])||f.VO[n];return a?(null==(i=e.theme)||null==(i=i.breakpoints)?void 0:i.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:O(n)}}):null;L.filterProps=["maxWidth"];let R=(0,a.ZP)({prop:"minWidth",transform:O}),z=(0,a.ZP)({prop:"height",transform:O}),B=(0,a.ZP)({prop:"maxHeight",transform:O}),U=(0,a.ZP)({prop:"minHeight",transform:O});(0,a.ZP)({prop:"size",cssProperty:"width",transform:O}),(0,a.ZP)({prop:"size",cssProperty:"height",transform:O}),s(P,L,R,z,B,U,(0,a.ZP)({prop:"boxSizing"}));var F={border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:l},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:C},color:{themeKey:"palette",transform:_},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:_},backgroundColor:{themeKey:"palette",transform:_},p:{style:i.o3},pt:{style:i.o3},pr:{style:i.o3},pb:{style:i.o3},pl:{style:i.o3},px:{style:i.o3},py:{style:i.o3},padding:{style:i.o3},paddingTop:{style:i.o3},paddingRight:{style:i.o3},paddingBottom:{style:i.o3},paddingLeft:{style:i.o3},paddingX:{style:i.o3},paddingY:{style:i.o3},paddingInline:{style:i.o3},paddingInlineStart:{style:i.o3},paddingInlineEnd:{style:i.o3},paddingBlock:{style:i.o3},paddingBlockStart:{style:i.o3},paddingBlockEnd:{style:i.o3},m:{style:i.e6},mt:{style:i.e6},mr:{style:i.e6},mb:{style:i.e6},ml:{style:i.e6},mx:{style:i.e6},my:{style:i.e6},margin:{style:i.e6},marginTop:{style:i.e6},marginRight:{style:i.e6},marginBottom:{style:i.e6},marginLeft:{style:i.e6},marginX:{style:i.e6},marginY:{style:i.e6},marginInline:{style:i.e6},marginInlineStart:{style:i.e6},marginInlineEnd:{style:i.e6},marginBlock:{style:i.e6},marginBlockStart:{style:i.e6},marginBlockEnd:{style:i.e6},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:M},rowGap:{style:E},columnGap:{style:A},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:O},maxWidth:{style:L},minWidth:{transform:O},height:{transform:O},maxHeight:{transform:O},minHeight:{transform:O},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}}},39707:function(e,n,r){"use strict";r.d(n,{Z:function(){return u}});
1var i=r(87462),a=r(63366),o=r(4953),s=r(44920);let f=["sx"],l=e=>{var n,r;let i={systemProps:{},otherProps:{}},a=null!=(n=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?n:s.Z;return Object.keys(e).forEach(n=>{a[n]?i.systemProps[n]=e[n]:i.otherProps[n]=e[n]}),i};function u(e){let n;let{sx:r}=e,{systemProps:s,otherProps:u}=l((0,a.Z)(e,f));return n=Array.isArray(r)?[s,...r]:"function"==typeof r?(...e)=>{let n=r(...e);return(0,o.P)(n)?(0,i.Z)({},s,n):s}:(0,i.Z)({},s,r),(0,i.Z)({},u,{sx:n})}},386:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return i.Z},extendSxProp:function(){return a.Z},unstable_createStyleFunctionSx:function(){return i.n},unstable_defaultSxConfig:function(){return o.Z}});var i=r(86523),a=r(39707),o=r(44920)},86523:function(e,n,r){"use strict";r.d(n,{n:function(){return l}});var i=r(14142),a=r(47730),o=r(54844),s=r(95408),f=r(44920);function l(){function e(e,n,r,a){let f={[e]:n,theme:r},l=a[e];if(!l)return{[e]:n};let{cssProperty:u=e,themeKey:c,transform:d,style:p}=l;if(null==n)return null;if("typography"===c&&"inherit"===n)return{[e]:n};let h=(0,o.DW)(r,c)||{};return p?p(f):(0,s.k9)(f,n,n=>{let r=(0,o.Jq)(h,d,n);return(n===r&&"string"==typeof n&&(r=(0,o.Jq)(h,d,`${e}${"default"===n?"":(0,i.Z)(n)}`,n)),!1===u)?r:{[u]:r}})}return function n(r){var i;let{sx:o,theme:l={}}=r||{};if(!o)return null;let u=null!=(i=l.unstable_sxConfig)?i:f.Z;function c(r){let i=r;if("function"==typeof r)i=r(l);else if("object"!=typeof r)return r;if(!i)return null;let o=(0,s.W8)(l.breakpoints),f=Object.keys(o),c=o;
1return Object.keys(i).forEach(r=>{var o;let f="function"==typeof(o=i[r])?o(l):o;if(null!=f){if("object"==typeof f){if(u[r])c=(0,a.Z)(c,e(r,f,l,u));else{let e=(0,s.k9)({theme:l},f,e=>({[r]:e}));(function(...e){let n=new Set(e.reduce((e,n)=>e.concat(Object.keys(n)),[]));return e.every(e=>n.size===Object.keys(e).length)})(e,f)?c[r]=n({sx:f,theme:l}):c=(0,a.Z)(c,e)}}else c=(0,a.Z)(c,e(r,f,l,u))}}),(0,s.L7)(f,c)}return Array.isArray(o)?o.map(c):c(o)}}let u=l();u.filterProps=["sx"],n.Z=u},45098:function(e,n,r){"use strict";r.d(n,{Z:function(){return b}});var i=r(87462),a=r(63366),o=r(6509),s=r(4953),f=r(88647),l=r(86523);let u=["ownerState"],c=["variants"],d=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function p(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}let h=(0,f.Z)(),y=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function m({defaultTheme:e,theme:n,themeId:r}){return 0===Object.keys(n).length?e:n[r]||n}function g(e,n){let{ownerState:r}=n,o=(0,a.Z)(n,u),s="function"==typeof e?e((0,i.Z)({ownerState:r},o)):e;if(Array.isArray(s))return s.flatMap(e=>g(e,(0,i.Z)({ownerState:r},o)));if(s&&"object"==typeof s&&Array.isArray(s.variants)){let{variants:e=[]}=s,n=(0,a.Z)(s,c);return e.forEach(e=>{let a=!0;"function"==typeof e.props?a=e.props((0,i.Z)({ownerState:r},o,r)):Object.keys(e.props).forEach(n=>{(null==r?void 0:r[n])!==e.props[n]&&o[n]!==e.props[n]&&(a=!1)}),a&&(Array.isArray(n)||(n=[n]),n.push("function"==typeof e.style?e.style((0,i.Z)({ownerState:r},o,r)):e.style))}),n}return s}var b=function(e={}){let{themeId:n,defaultTheme:r=h,rootShouldForwardProp:f=p,slotShouldForwardProp:u=p}=e,c=e=>(0,l.Z)((0,i.Z)({},e,{theme:m((0,i.Z)({},e,{defaultTheme:r,themeId:n}))}));return c.__mui_systemSx=!0,(e,l={})=>{var h;let b;(0,o.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));let{name:v,slot:w,skipVariantsResolver:x,skipSx:T,overridesResolver:C=(h=y(w))?(e,n)=>n[h]:null}=l,M=(0,a.Z)(l,d),A=void 0!==x?x:w&&"Root"!==w&&"root"!==w||!1,E=T||!1,I=p;"Root"===w||"root"===w?I=f:w?I=u:"string"==typeof e&&e.charCodeAt(0)>96&&(I=void 0);let S=(0,o.default)(e,(0,i.Z)({shouldForwardProp:I,label:b},M)),k=e=>"function"==typeof e&&e.__emotion_real!==e||(0,s.P)(e)?a=>g(e,(0,i.Z)({},a,{theme:m({theme:a.theme,defaultTheme:r,themeId:n})})):e,N=(a,...o)=>{let s=k(a),f=o?o.map(k):[];v&&C&&f.push(e=>{let a=m((0,i.Z)({},e,{defaultTheme:r,themeId:n}));if(!a.components||!a.components[v]||!a.components[v].styleOverrides)return null;let o=a.components[v].styleOverrides,s={};return Object.entries(o).forEach(([n,r])=>{s[n]=g(r,(0,i.Z)({},e,{theme:a}))}),C(e,s)}),v&&!A&&f.push(e=>{var a;let o=m((0,i.Z)({},e,{defaultTheme:r,themeId:n}));return g({variants:null==o||null==(a=o.components)||null==(a=a[v])?void 0:a.variants},(0,i.Z)({},e,{theme:o}))}),E||f.push(c);let l=f.length-o.length;if(Array.isArray(a)&&l>0){let e=Array(l).fill("");(s=[...a,...e]).raw=[...a.raw,...e]}let u=S(s,...f);return e.muiName&&(u.muiName=e.muiName),u};return S.withConfig&&(N.withConfig=S.withConfig),N}}()},61730:function(e,n,r){"use strict";r.d(n,{Z:function(){return u}});var i,a=r(67294),o=r(73546),s=r(20539),f=r(34168);let l=(i||(i=r.t(a,2))).useSyncExternalStore;function u(e,n={}){let r=(0,f.Z)(),i="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:u=!1,matchMedia:c=i?window.matchMedia:null,ssrMatchMedia:d=null,noSsr:p=!1}=(0,s.Z)({name:"MuiUseMediaQuery",props:n,theme:r}),h="function"==typeof e?e(r):e;return(void 0!==l?function(e,n,r,i,o){let s=a.useCallback(()=>n,[n]),f=a.useMemo(()=>{if(o&&r)return()=>r(e).matches;if(null!==i){let{matches:n}=i(e);return()=>n}return s},[s,e,i,o,r]),[u,c]=a.useMemo(()=>{if(null===r)return[s,()=>()=>{}];let n=r(e);return[()=>n.matches,e=>(n.addListener(e),()=>{n.removeListener(e)})]},[s,r,e]);return l(c,u,f)}:function(e,n,r,i,s){let[f,l]=a.useState(()=>s&&r?r(e).matches:i?i(e).matches:n);return(0,o.Z)(()=>{let n=!0;if(!r)return;let i=r(e),a=()=>{n&&l(i.matches)};return a(),i.addListener(a),()=>{n=!1,i.removeListener(a)}},[e,r]),f})(h=h.replace(/^@media( ?)/m,""),u,c,d,p)}},96682:function(e,n,r){"use strict";var i=r(88647),a=r(34168);let o=(0,i.Z)();n.Z=function(e=o){return(0,a.Z)(e)}},20539:function(e,n,r){"use strict";r.d(n,{Z:function(){return a}});var i=r(35971);function a(e){let{theme:n,name:r,props:a}=e;
1return n&&n.components&&n.components[r]&&n.components[r].defaultProps?(0,i.Z)(n.components[r].defaultProps,a):a}},29628:function(e,n,r){"use strict";r.d(n,{Z:function(){return o}});var i=r(20539),a=r(96682);function o({props:e,name:n,defaultTheme:r,themeId:o}){let s=(0,a.Z)(r);return o&&(s=s[o]||s),(0,i.Z)({theme:s,name:n,props:e})}},34168:function(e,n,r){"use strict";var i=r(67294),a=r(38741);n.Z=function(e=null){let n=i.useContext(a.T);return n&&0!==Object.keys(n).length?n:e}},91070:function(e,n,r){"use strict";n.Z=void 0;var i=function(e,n){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=o(void 0);if(r&&r.has(e))return r.get(e);var i={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var f=a?Object.getOwnPropertyDescriptor(e,s):null;f&&(f.get||f.set)?Object.defineProperty(i,s,f):i[s]=e[s]}return i.default=e,r&&r.set(e,i),i}(r(67294)),a=r(6509);function o(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:n})(e)}n.Z=function(e=null){let n=i.useContext(a.ThemeContext);return n&&0!==Object.keys(n).length?n:e}},37078:function(e,n){"use strict";let r;let i=e=>e,a=(r=i,{configure(e){r=e},generate:e=>r(e),reset(){r=i}});n.Z=a},86542:function(e,n,r){"use strict";var i=r(87462),a=r(90712);n.Z=function(e,n,r){return void 0===e||(0,a.Z)(e)?n:(0,i.Z)({},n,{ownerState:(0,i.Z)({},n.ownerState,r)})}},14142:function(e,n,r){"use strict";r.d(n,{Z:function(){return a}});var i=r(56535);function a(e){if("string"!=typeof e)throw Error((0,i.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},87641:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return i.Z}});var i=r(14142)},7610:function(e,n){"use strict";n.Z=function(e,n=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(n,Math.min(e,r))}},14800:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return i.Z}});var i=r(7610)},94780:function(e,n,r){"use strict";function i(e,n,r){let i={};return Object.keys(e).forEach(a=>{i[a]=e[a].reduce((e,i)=>{if(i){let a=n(i);""!==a&&e.push(a),r&&r[i]&&e.push(r[i])}return e},[]).join(" ")}),i}r.d(n,{Z:function(){return i}})},91476:function(e,n,r){"use strict";function i(...e){return e.reduce((e,n)=>null==n?e:function(...r){e.apply(this,r),n.apply(this,r)},()=>{})}r.d(n,{Z:function(){return i}})},39336:function(e,n,r){"use strict";function i(e,n=166){let r;function i(...a){clearTimeout(r),r=setTimeout(()=>{e.apply(this,a)},n)}return i.clear=()=>{clearTimeout(r)},i}r.d(n,{Z:function(){return i}})},4953:function(e,n,r){"use strict";r.d(n,{P:function(){return a},Z:function(){return function e(n,r,o={clone:!0}){let s=o.clone?(0,i.Z)({},n):n;return a(n)&&a(r)&&Object.keys(r).forEach(i=>{a(r[i])&&Object.prototype.hasOwnProperty.call(n,i)&&a(n[i])?s[i]=e(n[i],r[i],o):o.clone?s[i]=a(r[i])?function e(n){if(!a(n))return n;let r={};return Object.keys(n).forEach(i=>{r[i]=e(n[i])}),r}(r[i]):r[i]:s[i]=r[i]}),s}}});var i=r(87462);function a(e){if("object"!=typeof e||null===e)return!1;let n=Object.getPrototypeOf(e);return(null===n||n===Object.prototype||null===Object.getPrototypeOf(n))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}},58524:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return i.Z},isPlainObject:function(){return i.P}});var i=r(4953)},99113:function(e,n){"use strict";n.Z=function(e,n=[]){if(void 0===e)return{};let r={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!n.includes(r)).forEach(n=>{r[n]=e[n]}),r}},56535:function(e,n,r){"use strict";function i(e){let n="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)n+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+n+" for the full message."}r.d(n,{Z:function(){return i}})},55480:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return i.Z}});var i=r(56535)},34867:function(e,n,r){"use strict";r.d(n,{ZP:function(){return o}});var i=r(37078);let a={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function o(e,n,r="Mui"){let o=a[n];return o?`${r}-${o}`:`${i.Z.generate(e)}-${n}`}},1588:function(e,n,r){"use strict";r.d(n,{Z:function(){return a}});var i=r(34867);function a(e,n,r="Mui"){let a={};
1return n.forEach(n=>{a[n]=(0,i.ZP)(e,n,r)}),a}},92125:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return l},getFunctionName:function(){return o}});var i=r(59864);let a=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function o(e){let n=`${e}`.match(a);return n&&n[1]||""}function s(e,n=""){return e.displayName||e.name||o(e)||n}function f(e,n,r){let i=s(n);return e.displayName||(""!==i?`${r}(${i})`:r)}function l(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return s(e,"Component");if("object"==typeof e)switch(e.$$typeof){case i.ForwardRef:return f(e,e.render,"ForwardRef");case i.Memo:return f(e,e.type,"memo")}}}},29726:function(e,n,r){"use strict";function i(e){let n=e.documentElement.clientWidth;return Math.abs(window.innerWidth-n)}r.d(n,{Z:function(){return i}})},97258:function(e,n,r){"use strict";r.d(n,{Z:function(){return a}});var i=r(67294);function a(e){return i.Children.toArray(e).filter(e=>i.isValidElement(e))}},90712:function(e,n){"use strict";n.Z=function(e){return"string"==typeof e}},17317:function(e,n,r){"use strict";r.d(n,{Z:function(){return a}});var i=r(67294);function a(e,n){var r,a;return i.isValidElement(e)&&-1!==n.indexOf(null!=(r=e.type.muiName)?r:null==(a=e.type)||null==(a=a._payload)||null==(a=a.value)?void 0:a.muiName)}},55120:function(e,n,r){"use strict";r.d(n,{Z:function(){return f}});var i=r(87462),a=r(90512),o=r(99113),s=function(e){if(void 0===e)return{};let n={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&"function"==typeof e[n])).forEach(r=>{n[r]=e[r]}),n},f=function(e){let{getSlotProps:n,additionalProps:r,externalSlotProps:f,externalForwardedProps:l,className:u}=e;if(!n){let e=(0,a.Z)(null==r?void 0:r.className,u,null==l?void 0:l.className,null==f?void 0:f.className),n=(0,i.Z)({},null==r?void 0:r.style,null==l?void 0:l.style,null==f?void 0:f.style),o=(0,i.Z)({},r,l,f);return e.length>0&&(o.className=e),Object.keys(n).length>0&&(o.style=n),{props:o,internalRef:void 0}}let c=(0,o.Z)((0,i.Z)({},l,f)),d=s(f),p=s(l),h=n(c),y=(0,a.Z)(null==h?void 0:h.className,null==r?void 0:r.className,u,null==l?void 0:l.className,null==f?void 0:f.className),m=(0,i.Z)({},null==h?void 0:h.style,null==r?void 0:r.style,null==l?void 0:l.style,null==f?void 0:f.style),g=(0,i.Z)({},h,r,p,d);return y.length>0&&(g.className=y),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:h.ref}}},82690:function(e,n,r){"use strict";function i(e){return e&&e.ownerDocument||document}r.d(n,{Z:function(){return i}})},74161:function(e,n,r){"use strict";r.d(n,{Z:function(){return a}});var i=r(82690);function a(e){return(0,i.Z)(e).defaultView||window}},65610:function(e,n){"use strict";n.Z=function(e,n,r){return"function"==typeof e?e(n,r):e}},35971:function(e,n,r){"use strict";r.d(n,{Z:function(){return function e(n,r){let a=(0,i.Z)({},r);return Object.keys(n).forEach(o=>{if(o.toString().match(/^(components|slots)$/))a[o]=(0,i.Z)({},n[o],a[o]);else if(o.toString().match(/^(componentsProps|slotProps)$/)){let s=n[o]||{},f=r[o];a[o]={},f&&Object.keys(f)?s&&Object.keys(s)?(a[o]=(0,i.Z)({},f),Object.keys(s).forEach(n=>{a[o][n]=e(s[n],f[n])})):a[o]=f:a[o]=s}else void 0===a[o]&&(a[o]=n[o])}),a}}});var i=r(87462)},27364:function(e,n,r){"use strict";function i(e,n){"function"==typeof e?e(n):e&&(e.current=n)}r.d(n,{Z:function(){return i}})},19032:function(e,n,r){"use strict";r.d(n,{Z:function(){return a}});var i=r(67294);function a({controlled:e,default:n,name:r,state:a="value"}){let{current:o}=i.useRef(void 0!==e),[s,f]=i.useState(n),l=i.useCallback(e=>{o||f(e)},[]);return[o?e:s,l]}},73546:function(e,n,r){"use strict";var i=r(67294);let a="undefined"!=typeof window?i.useLayoutEffect:i.useEffect;n.Z=a},59948:function(e,n,r){"use strict";var i=r(67294),a=r(73546);n.Z=function(e){let n=i.useRef(e);return(0,a.Z)(()=>{n.current=e}),i.useRef((...e)=>(0,n.current)(...e)).current}},33703:function(e,n,r){"use strict";r.d(n,{Z:function(){return o}});var i=r(67294),a=r(27364);function o(...e){return i.useMemo(()=>e.every(e=>null==e)?null:n=>{e.forEach(e=>{(0,a.Z)(e,n)})},e)}},92996:function(e,n,r){"use strict";r.d(n,{Z:function(){return f}});var i,a=r(67294);let o=0,s=(i||(i=r.t(a,2)))["useId".toString()];function f(e){if(void 0!==s){let n=s();return null!=e?e:n}return function(e){let[n,r]=a.useState(e),i=e||n;return a.useEffect(()=>{null==n&&(o+=1,r(`mui-${o}`))},[n]),i}(e)}},36728:function(e,n,r){"use strict";r.d(n,{Z:function(){return p}});var i=r(67294),a=r(46271);let o=!0,s=!1,f=new a.V,l={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function u(e){e.metaKey||e.altKey||e.ctrlKey||(o=!0)}function c(){o=!1}function d(){"hidden"===this.visibilityState&&s&&(o=!0)}function p(){let e=i.useCallback(e=>{if(null!=e){var n;(n=e.ownerDocument).addEventListener("keydown",u,!0),n.addEventListener("mousedown",c,!0),n.addEventListener("pointerdown",c,!0),n.addEventListener("touchstart",c,!0),n.addEventListener("visibilitychange",d,!0)}},[]),n=i.useRef(!1);return{isFocusVisibleRef:n,onFocus:function(e){return!!function(e){let{target:n}=e;try{return n.matches(":focus-visible")}catch(e){}return o||function(e){let{type:n,tagName:r}=e;
1return"INPUT"===r&&!!l[n]&&!e.readOnly||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(n)}(e)&&(n.current=!0,!0)},onBlur:function(){return!!n.current&&(s=!0,f.start(100,()=>{s=!1}),n.current=!1,!0)},ref:e}}},44287:function(e,n,r){"use strict";var i=r(67294);n.Z=e=>{let n=i.useRef({});return i.useEffect(()=>{n.current=e}),n.current}},82963:function(e,n,r){"use strict";var i=r(87462),a=r(63366),o=r(33703),s=r(86542),f=r(55120),l=r(65610);let u=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];n.Z=function(e){var n;let{elementType:r,externalSlotProps:c,ownerState:d,skipResolvingSlotProps:p=!1}=e,h=(0,a.Z)(e,u),y=p?{}:(0,l.Z)(c,d),{props:m,internalRef:g}=(0,f.Z)((0,i.Z)({},h,{externalSlotProps:y})),b=(0,o.Z)(g,null==y?void 0:y.ref,null==(n=e.additionalProps)?void 0:n.ref);return(0,s.Z)(r,(0,i.Z)({},m,{ref:b}),d)}},46271:function(e,n,r){"use strict";r.d(n,{V:function(){return s},Z:function(){return f}});var i=r(67294);let a={},o=[];class s{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new s}start(e,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},e)}}function f(){var e;let n=function(e,n){let r=i.useRef(a);return r.current===a&&(r.current=e(void 0)),r}(s.create).current;return e=n.disposeEffect,i.useEffect(e,o),n}},28820:function(e){"use strict";e.exports=function(e){if(e.length>=255)throw TypeError("Alphabet too long");for(var n=new Uint8Array(256),r=0;r<n.length;r++)n[r]=255;for(var i=0;i<e.length;i++){var a=e.charAt(i),o=a.charCodeAt(0);if(255!==n[o])throw TypeError(a+" is ambiguous");n[o]=i}var s=e.length,f=e.charAt(0),l=Math.log(s)/Math.log(256),u=Math.log(256)/Math.log(s);function c(e){if("string"!=typeof e)throw TypeError("Expected String");if(0===e.length)return new Uint8Array;var r=0;if(" "!==e[0]){for(var i=0,a=0;e[r]===f;)i++,r++;for(var o=(e.length-r)*l+1>>>0,u=new Uint8Array(o);e[r];){var c=n[e.charCodeAt(r)];if(255===c)return;for(var d=0,p=o-1;(0!==c||d<a)&&-1!==p;p--,d++)c+=s*u[p]>>>0,u[p]=c%256>>>0,c=c/256>>>0;if(0!==c)throw Error("Non-zero carry");a=d,r++}if(" "!==e[r]){for(var h=o-a;h!==o&&0===u[h];)h++;for(var y=new Uint8Array(i+(o-h)),m=i;h!==o;)y[m++]=u[h++];return y}}}return{encode:function(n){if(n instanceof Uint8Array||(ArrayBuffer.isView(n)?n=new Uint8Array(n.buffer,n.byteOffset,n.byteLength):Array.isArray(n)&&(n=Uint8Array.from(n))),!(n instanceof Uint8Array))throw TypeError("Expected Uint8Array");if(0===n.length)return"";for(var r=0,i=0,a=0,o=n.length;a!==o&&0===n[a];)a++,r++;for(var l=(o-a)*u+1>>>0,c=new Uint8Array(l);a!==o;){for(var d=n[a],p=0,h=l-1;(0!==d||p<i)&&-1!==h;h--,p++)d+=256*c[h]>>>0,c[h]=d%s>>>0,d=d/s>>>0;if(0!==d)throw Error("Non-zero carry");i=p,a++}for(var y=l-i;y!==l&&0===c[y];)y++;for(var m=f.repeat(r);y<l;++y)m+=e.charAt(c[y]);return m},decodeUnsafe:c,decode:function(e){var n=c(e);if(n)return n;throw Error("Non-base"+s+" character")}}}},95551:function(e,n,r){"use strict";function i(e){if(null==e)return window;if("[object Window]"!==e.toString()){var n=e.ownerDocument;return n&&n.defaultView||window}return e}function a(e){var n=i(e).Element;return e instanceof n||e instanceof Element}function o(e){var n=i(e).HTMLElement;return e instanceof n||e instanceof HTMLElement}function s(e){if("undefined"==typeof ShadowRoot)return!1;var n=i(e).ShadowRoot;return e instanceof n||e instanceof ShadowRoot}r.d(n,{fi:function(){return eu}});var f,l,u,c,d,p=Math.max,h=Math.min,y=Math.round;function m(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function g(){return!/^((?!chrome|android).)*safari/i.test(m())}function b(e,n,r){void 0===n&&(n=!1),void 0===r&&(r=!1);var s=e.getBoundingClientRect(),f=1,l=1;n&&o(e)&&(f=e.offsetWidth>0&&y(s.width)/e.offsetWidth||1,l=e.offsetHeight>0&&y(s.height)/e.offsetHeight||1);var u=(a(e)?i(e):window).visualViewport,c=!g()&&r,d=(s.left+(c&&u?u.offsetLeft:0))/f,p=(s.top+(c&&u?u.offsetTop:0))/l,h=s.width/f,m=s.height/l;return{width:h,height:m,top:p,right:d+h,bottom:p+m,left:d,x:d,y:p}}function v(e){var n=i(e);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function w(e){return e?(e.nodeName||"").toLowerCase():null}function x(e){return((a(e)?e.ownerDocument:e.document)||window.document).documentElement}function T(e){return b(x(e)).left+v(e).scrollLeft}function C(e){return i(e).getComputedStyle(e)}function M(e){var n=C(e),r=n.overflow,i=n.overflowX,a=n.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+i)}function A(e){var n=b(e),r=e.offsetWidth,i=e.offsetHeight;return 1>=Math.abs(n.width-r)&&(r=n.width),1>=Math.abs(n.height-i)&&(i=n.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:i}}function E(e){return"html"===w(e)?e:e.assignedSlot||e.parentNode||(s(e)?e.host:null)||x(e)}function I(e,n){void 0===n&&(n=[]);var r,a=function e(n){return["html","body","#document"].indexOf(w(n))>=0?n.ownerDocument.body:o(n)&&M(n)?n:e(E(n))}(e),s=a===(null==(r=e.ownerDocument)?void 0:r.body),f=i(a),l=s?[f].concat(f.visualVie
vendor: 13,451 bytes, line 1
1wport||[],M(a)?a:[]):a,u=n.concat(l);return s?u:u.concat(I(E(l)))}function S(e){return o(e)&&"fixed"!==C(e).position?e.offsetParent:null}function k(e){for(var n=i(e),r=S(e);r&&["table","td","th"].indexOf(w(r))>=0&&"static"===C(r).position;)r=S(r);return r&&("html"===w(r)||"body"===w(r)&&"static"===C(r).position)?n:r||function(e){var n=/firefox/i.test(m());if(/Trident/i.test(m())&&o(e)&&"fixed"===C(e).position)return null;var r=E(e);for(s(r)&&(r=r.host);o(r)&&0>["html","body"].indexOf(w(r));){var i=C(r);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||n&&"filter"===i.willChange||n&&i.filter&&"none"!==i.filter)return r;r=r.parentNode}return null}(e)||n}var N="bottom",j="right",D="left",_="auto",O=["top",N,j,D],P="start",L="viewport",R="popper",z=O.reduce(function(e,n){return e.concat([n+"-"+P,n+"-end"])},[]),B=[].concat(O,[_]).reduce(function(e,n){return e.concat([n,n+"-"+P,n+"-end"])},[]),U=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],F={placement:"bottom",modifiers:[],strategy:"absolute"};function Z(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return!n.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}var W={passive:!0};function H(e){return e.split("-")[0]}function G(e){return e.split("-")[1]}function q(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Y(e){var n,r=e.reference,i=e.element,a=e.placement,o=a?H(a):null,s=a?G(a):null,f=r.x+r.width/2-i.width/2,l=r.y+r.height/2-i.height/2;switch(o){case"top":n={x:f,y:r.y-i.height};break;case N:n={x:f,y:r.y+r.height};break;case j:n={x:r.x+r.width,y:l};break;case D:n={x:r.x-i.width,y:l};break;default:n={x:r.x,y:r.y}}var u=o?q(o):null;if(null!=u){var c="y"===u?"height":"width";switch(s){case P:n[u]=n[u]-(r[c]/2-i[c]/2);break;case"end":n[u]=n[u]+(r[c]/2-i[c]/2)}}return n}var V={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Q(e){var n,r,a,o,s,f,l,u=e.popper,c=e.popperRect,d=e.placement,p=e.variation,h=e.offsets,m=e.position,g=e.gpuAcceleration,b=e.adaptive,v=e.roundOffsets,w=e.isFixed,T=h.x,M=void 0===T?0:T,A=h.y,E=void 0===A?0:A,I="function"==typeof v?v({x:M,y:E}):{x:M,y:E};M=I.x,E=I.y;var S=h.hasOwnProperty("x"),_=h.hasOwnProperty("y"),O=D,P="top",L=window;if(b){var R=k(u),z="clientHeight",B="clientWidth";R===i(u)&&"static"!==C(R=x(u)).position&&"absolute"===m&&(z="scrollHeight",B="scrollWidth"),("top"===d||(d===D||d===j)&&"end"===p)&&(P=N,E-=(w&&R===L&&L.visualViewport?L.visualViewport.height:R[z])-c.height,E*=g?1:-1),(d===D||("top"===d||d===N)&&"end"===p)&&(O=j,M-=(w&&R===L&&L.visualViewport?L.visualViewport.width:R[B])-c.width,M*=g?1:-1)}var U=Object.assign({position:m},b&&V),F=!0===v?(n={x:M,y:E},r=i(u),a=n.x,o=n.y,{x:y(a*(s=r.devicePixelRatio||1))/s||0,y:y(o*s)/s||0}):{x:M,y:E};return(M=F.x,E=F.y,g)?Object.assign({},U,((l={})[P]=_?"0":"",l[O]=S?"0":"",l.transform=1>=(L.devicePixelRatio||1)?"translate("+M+"px, "+E+"px)":"translate3d("+M+"px, "+E+"px, 0)",l)):Object.assign({},U,((f={})[P]=_?E+"px":"",f[O]=S?M+"px":"",f.transform="",f))}var K={left:"right",right:"left",bottom:"top",top:"bottom"};function $(e){return e.replace(/left|right|bottom|top/g,function(e){return K[e]})}var J={start:"end",end:"start"};function X(e){return e.replace(/start|end/g,function(e){return J[e]})}function ee(e,n){var r=n.getRootNode&&n.getRootNode();if(e.contains(n))return!0;if(r&&s(r)){var i=n;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function et(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function en(e,n,r){var o,s,f,l,u,c,d,h,y,m;return n===L?et(function(e,n){var r=i(e),a=x(e),o=r.visualViewport,s=a.clientWidth,f=a.clientHeight,l=0,u=0;if(o){s=o.width,f=o.height;var c=g();(c||!c&&"fixed"===n)&&(l=o.offsetLeft,u=o.offsetTop)}return{width:s,height:f,x:l+T(e),y:u}}(e,r)):a(n)?((o=b(n,!1,"fixed"===r)).top=o.top+n.clientTop,o.left=o.left+n.clientLeft,o.bottom=o.top+n.clientHeight,o.right=o.left+n.clientWidth,o.width=n.clientWidth,o.height=n.clientHeight,o.x=o.left,o.y=o.top,o):et((s=x(e),l=x(s),u=v(s),c=null==(f=s.ownerDocument)?void 0:f.body,d=p(l.scrollWidth,l.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),h=p(l.scrollHeight,l.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),y=-u.scrollLeft+T(s),m=-u.scrollTop,"rtl"===C(c||l).direction&&(y+=p(l.clientWidth,c?c.clientWidth:0)-d),{width:d,height:h,x:y,y:m}))}function er(){return{top:0,right:0,bottom:0,left:0}}function ei(e){return Object.assign({},er(),e)}function ea(e,n){return n.reduce(function(n,r){return n[r]=e,n},{})}function eo(e,n){void 0===n&&(n={});var r,i,s,f,l,u,c,d,y=n,m=y.placement,g=void 0===m?e.placement:m,v=y.strategy,T=void 0===v?e.strategy:v,M=y.boundary,A=y.rootBoundary,S=y.elementContext,D=void 0===S?R:S,_=y.altBoundary,P=y.padding,z=void 0===P?0:P,B=ei("number"!=typeof z?z:ea(z,O)),U=e.rects.popper,F=e.elements[void 0!==_&&_?D===R?"reference":R:D],Z=(r=a(F)?F:F.contextElement||x(e.elements.popper),i=void 0===M?"clippingParents":M,s=void 0===A?L:A,c=(u=[].concat("clippingParents"===i?(f=I(E(r)),a(l=["absolute","fixed"].indexOf(C(r).position)>=0&&o(r)?k(r):r)?f.filter(function(e){return a(e)&&ee(e,l)&&"body"!==w(e)}):[]):[].concat(i),[s]))[0],(d=u.reduce(function(e,n){var i=en(r,n,T);return e.top=p(i.top,e.top),e.right=h(i.right,e.right),e.bottom=h(i.bottom,e.bottom),e.left=p(i.left,e.left),e},en(r,c,T))).width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d),W=b(e.elements.reference),H=Y({reference:W,element:U,strategy:"absolute",placement:g}),G=et(Object.assign({},U,H)),q=D===R?G:W,V={top:Z.top-q.top+B.top,bottom:q.bottom-Z.bottom+B.bottom,left:Z.left-q.left+B.left,right:q.right-Z.right+B.right},Q=e.modifiersData.offset;if(D===R&&Q){var K=Q[g];Object.keys(V).forEach(function(e){var n=[j,N].indexOf(e)>=0?1:-1,r=["top",N].indexOf(e)>=0?"y":"x";V[e]+=K[r]*n})}return V}function es(e,n,r){return p(e,h(n,r))}function ef(e,n,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-n.height-r.y,right:e.right-n.width+r.x,bottom:e.bottom-n.height+r.y,left:e.left-n.width-r.x}}function el(e){return["top",j,N,D].some(function(n){return e[n]>=0})}var eu=(u=void 0===(l=(f={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var n=e.state,r=e.instance,a=e.options,o=a.scroll,s=void 0===o||o,f=a.resize,l=void 0===f||f,u=i(n.elements.popper),c=[].concat(n.scrollParents.reference,n.scrollParents.popper);return s&&c.forEach(function(e){e.addEventListener("scroll",r.update,W)}),l&&u.addEventListener("resize",r.update,W),function(){s&&c.forEach(function(e){e.removeEventListener("scroll",r.update,W)}),l&&u.removeEventListener("resize",r.update,W)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var n=e.state,r=e.name;n.modifiersData[r]=Y({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var n=e.state,r=e.options,i=r.gpuAcceleration,a=r.adaptive,o=r.roundOffsets,s=void 0===o||o,f={placement:H(n.placement),variation:G(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:void 0===i||i,isFixed:"fixed"===n.options.strategy};null!=n.modifiersData.popperOffsets&&(n.styles.popper=Object.assign({},n.styles.popper,Q(Object.assign({},f,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:void 0===a||a,roundOffsets:s})))),null!=n.modifiersData.arrow&&(n.styles.arrow=Object.assign({},n.styles.arrow,Q(Object.assign({},f,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var n=e.state;Object.keys(n.elements).forEach(function(e){var r=n.styles[e]||{},i=n.attributes[e]||{},a=n.elements[e];o(a)&&w(a)&&(Object.assign(a.style,r),Object.keys(i).forEach(function(e){var n=i[e];!1===n?a.removeAttribute(e):a.setAttribute(e,!0===n?"":n)}))})},effect:function(e){var n=e.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow),function(){Object.keys(n.elements).forEach(function(e){var i=n.elements[e],a=n.attributes[e]||{},s=Object.keys(n.styles.hasOwnProperty(e)?n.styles[e]:r[e]).reduce(function(e,n){return e[n]="",e},{});o(i)&&w(i)&&(Object.assign(i.style,s),Object.keys(a).forEach(function(e){i.removeAttribute(e)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var n=e.state,r=e.options,i=e.name,a=r.offset,o=void 0===a?[0,0]:a,s=B.reduce(function(e,r){var i,a,s,f,l,u;return e[r]=(i=n.rects,s=[D,"top"].indexOf(a=H(r))>=0?-1:1,l=(f="function"==typeof o?o(Object.assign({},i,{placement:r})):o)[0],u=f[1],l=l||0,u=(u||0)*s,[D,j].indexOf(a)>=0?{x:u,y:l}:{x:l,y:u}),e},{}),f=s[n.placement],l=f.x,u=f.y;null!=n.modifiersData.popperOffsets&&(n.modifiersData.popperOffsets.x+=l,n.modifiersData.popperOffsets.y+=u),n.modifiersData[i]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var n=e.state,r=e.options,i=e.name;if(!n.modifiersData[i]._skip){for(var a=r.mainAxis,o=void 0===a||a,s=r.altAxis,f=void 0===s||s,l=r.fallbackPlacements,u=r.padding,c=r.boundary,d=r.rootBoundary,p=r.altBoundary,h=r.flipVariations,y=void 0===h||h,m=r.allowedAutoPlacements,g=n.options.placement,b=H(g)===g,v=l||(b||!y?[$(g)]:function(e){if(H(e)===_)return[];var n=$(e);return[X(e),n,X(n)]}(g)),w=[g].concat(v).reduce(function(e,r){var i,a,o,s,f,l,p,h,g,b,v,w;return e.concat(H(r)===_?(a=(i={placement:r,boundary:c,rootBoundary:d,padding:u,flipVariations:y,allowedAutoPlacements:m}).placement,o=i.boundary,s=i.rootBoundary,f=i.padding,l=i.flipVariations,h=void 0===(p=i.allowedAutoPlacements)?B:p,0===(v=(b=(g=G(a))?l?z:z.filter(function(e){return G(e)===g}):O).filter(function(e){return h.indexOf(e)>=0})).length&&(v=b),Object.keys(w=v.reduce(function(e,r){return e[r]=eo(n,{placement:r,boundary:o,rootBoundary:s,padding:f})[H(r)],e},{})).sort(function(e,n){return w[e]-w[n]})):r)},[]),x=n.rects.reference,T=n.rects.popper,C=new Map,M=!0,A=w[0],E=0;E<w.length;E++){var I=w[E],S=H(I),k=G(I)===P,L=["top",N].indexOf(S)>=0,R=L?"width":"height",U=eo(n,{placement:I,boundary:c,rootBoundary:d,altBoundary:p,padding:u}),F=L?k?j:D:k?N:"top";x[R]>T[R]&&(F=$(F));var Z=$(F),W=[];if(o&&W.push(U[S]<=0),f&&W.push(U[F]<=0,U[Z]<=0),W.every(function(e){return e})){A=I,M=!1;break}C.set(I,W)}if(M)for(var q=y?3:1,Y=function(e){var n=w.find(function(n){var r=C.get(n);if(r)return r.slice(0,e).every(function(e){return e})});if(n)return A=n,"break"},V=q;V>0&&"break"!==Y(V);V--);n.placement!==A&&(n.modifiersData[i]._skip=!0,n.placement=A,n.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var n=e.state,r=e.options,i=e.name,a=r.mainAxis,o=r.altAxis,s=r.boundary,f=r.rootBoundary,l=r.altBoundary,u=r.padding,c=r.tether,d=void 0===c||c,y=r.tetherOffset,m=void 0===y?0:y,g=eo(n,{boundary:s,rootBoundary:f,padding:u,altBoundary:l}),b=H(n.placement),v=G(n.placement),w=!v,x=q(b),T="x"===x?"y":"x",C=n.modifiersData.popperOffsets,M=n.rects.reference,E=n.rects.popper,I="function"==typeof m?m(Object.assign({},n.rects,{placement:n.placement})):m,S="number"==typeof I?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),_=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,O={x:0,y:0};if(C){if(void 0===a||a){var L,R="y"===x?"top":D,z="y"===x?N:j,B="y"===x?"height":"width",U=C[x],F=U+g[R],Z=U-g[z],W=d?-E[B]/2:0,Y=v===P?M[B]:E[B],V=v===P?-E[B]:-M[B],Q=n.elements.arrow,K=d&&Q?A(Q):{width:0,height:0},$=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:er(),J=$[R],X=$[z],ee=es(0,M[B],K[B]),et=w?M[B]/2-W-ee-J-S.mainAxis:Y-ee-J-S.mainAxis,en=w?-M[B]/2+W+ee+X+S.mainAxis:V+ee+X+S.mainAxis,ei=n.elements.arrow&&k(n.elements.arrow),ea=ei?"y"===x?ei.clientTop||0:ei.clientLeft||0:0,ef=null!=(L=null==_?void 0:_[x])?L:0,el=es(d?h(F,U+et-ef-ea):F,U,d?p(Z,U+en-ef):Z);C[x]=el,O[x]=el-U}if(void 0!==o&&o){var eu,ec,ed="x"===x?"top":D,ep="x"===x?N:j,eh=C[T],ey="y"===T?"height":"width",em=eh+g[ed],eg=eh-g[ep],eb=-1!==["top",D].indexOf(b),ev=null!=(ec=null==_?void 0:_[T])?ec:0,ew=eb?em:eh-M[ey]-E[ey]-ev+S.altAxis,ex=eb?eh+M[ey]+E[ey]-ev-S.altAxis:eg,eT=d&&eb?(eu=es(ew,eh,ex))>ex?ex:eu:es(d?ew:em,eh,d?ex:eg);C[T]=eT,O[T]=eT-eh}n.modifiersData[i]=O}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var n,r,i=e.state,a=e.name,o=e.options,s=i.elements.arrow,f=i.modifiersData.popperOffsets,l=H(i.placement),u=q(l),c=[D,j].indexOf(l)>=0?"height":"width";if(s&&f){var d=ei("number"!=typeof(n="function"==typeof(n=o.padding)?n(Object.assign({},i.rects,{placement:i.placement})):n)?n:ea(n,O)),p=A(s),h="y"===u?"top":D,y="y"===u?N:j,m=i.rects.reference[c]+i.rects.reference[u]-f[u]-i.rects.popper[c],g=f[u]-i.rects.reference[u],b=k(s),v=b?"y"===u?b.clientHeight||0:b.clientWidth||0:0,w=d[h],x=v-p[c]-d[y],T=v/2-p[c]/2+(m/2-g/2),C=es(w,T,x);i.modifiersData[a]=((r={})[u]=C,r.centerOffset=C-T,r)}},effect:function(e){var n=e.state,r=e.options.element,i=void 0===r?"[data-
1popper-arrow]":r;null!=i&&("string"!=typeof i||(i=n.elements.popper.querySelector(i)))&&ee(n.elements.popper,i)&&(n.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var n=e.state,r=e.name,i=n.rects.reference,a=n.rects.popper,o=n.modifiersData.preventOverflow,s=eo(n,{elementContext:"reference"}),f=eo(n,{altBoundary:!0}),l=ef(s,i),u=ef(f,a,o),c=el(l),d=el(u);n.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]}).defaultModifiers)?[]:l,d=void 0===(c=f.defaultOptions)?F:c,function(e,n,r){void 0===r&&(r=d);var s,f,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},F,d),modifiersData:{},elements:{reference:e,popper:n},attributes:{},styles:{}},c=[],p=!1,h={state:l,setOptions:function(r){var i,o,s,f,p,y="function"==typeof r?r(l.options):r;m(),l.options=Object.assign({},d,l.options,y),l.scrollParents={reference:a(e)?I(e):e.contextElement?I(e.contextElement):[],popper:I(n)};var g=(o=Object.keys(i=[].concat(u,l.options.modifiers).reduce(function(e,n){var r=e[n.name];return e[n.name]=r?Object.assign({},r,n,{options:Object.assign({},r.options,n.options),data:Object.assign({},r.data,n.data)}):n,e},{})).map(function(e){return i[e]}),s=new Map,f=new Set,p=[],o.forEach(function(e){s.set(e.name,e)}),o.forEach(function(e){f.has(e.name)||function e(n){f.add(n.name),[].concat(n.requires||[],n.requiresIfExists||[]).forEach(function(n){if(!f.has(n)){var r=s.get(n);r&&e(r)}}),p.push(n)}(e)}),U.reduce(function(e,n){return e.concat(p.filter(function(e){return e.phase===n}))},[]));return l.orderedModifiers=g.filter(function(e){return e.enabled}),l.orderedModifiers.forEach(function(e){var n=e.name,r=e.options,i=e.effect;if("function"==typeof i){var a=i({state:l,name:n,instance:h,options:void 0===r?{}:r});c.push(a||function(){})}}),h.update()},forceUpdate:function(){if(!p){var e,n,r,a,s,f,u,c,d,m,g,C,E=l.elements,I=E.reference,S=E.popper;if(Z(I,S)){l.rects={reference:(n=k(S),r="fixed"===l.options.strategy,a=o(n),c=o(n)&&(f=y((s=n.getBoundingClientRect()).width)/n.offsetWidth||1,u=y(s.height)/n.offsetHeight||1,1!==f||1!==u),d=x(n),m=b(I,c,r),g={scrollLeft:0,scrollTop:0},C={x:0,y:0},(a||!a&&!r)&&(("body"!==w(n)||M(d))&&(g=(e=n)!==i(e)&&o(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:v(e)),o(n)?(C=b(n,!0),C.x+=n.clientLeft,C.y+=n.clientTop):d&&(C.x=T(d))),{x:m.left+g.scrollLeft-C.x,y:m.top+g.scrollTop-C.y,width:m.width,height:m.height}),popper:A(S)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(e){return l.modifiersData[e.name]=Object.assign({},e.data)});for(var N=0;N<l.orderedModifiers.length;N++){if(!0===l.reset){l.reset=!1,N=-1;continue}var j=l.orderedModifiers[N],D=j.fn,_=j.options,O=void 0===_?{}:_,P=j.name;"function"==typeof D&&(l=D({state:l,options:O,name:P,instance:h})||l)}}}},update:(s=function(){return new Promise(function(e){h.forceUpdate(),e(l)})},function(){return f||(f=new Promise(function(e){Promise.resolve().then(function(){f=void 0,e(s())})})),f}),destroy:function(){m(),p=!0}};if(!Z(e,n))return h;function m(){c.forEach(function(e){return e()}),c=[]}return h.setOptions(r).then(function(e){!p&&r.onFirstUpdate&&r.onFirstUpdate(e)}),h})},62469:function(e,n,r){"use strict";r.d(n,{AS7:function(){return ea},BGW:function(){return X},Fds:function(){return $},Jot:function(){return F},LAO:function(){return R},LPM:function(){return j},LZ3:function(){return s},NhS:function(){return c},Pxu:function(){return A},RgI:function(){return Y},T39:function(){return v},TIy:function(){return x},XCv:function(){return g},_Ve:function(){return W},h0n:function(){return P},hsE:function(){return B},iz5:function(){return _},jH6:function(){return et},kcA:function(){return G},m50:function(){return k},nQG:function(){return l},pOD:function(){return Q},ux3:function(){return er},v4q:function(){return p},wyc:function(){return y},xrR:function(){return I},ypG:function(){return C}});var i=r(67294);function a(e,n){if(null==e)return{};var r,i,a={},o=Object.keys(e);for(i=0;i<o.length;i++)r=o[i],n.indexOf(r)>=0||(a[r]=e[r]);return a}var o=["color"],s=(0,i.forwardRef)(function(e,n){var r=e.color,s=a(e,o);return(0,i.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s,{ref:n}),(0,i.createElement)("path",{d:"M8.14645 3.14645C8.34171 2.95118 8.65829 2.95118 8.85355 3.14645L12.8536 7.14645C13.0488 7.34171 13.0488 7.65829 12.8536 7.85355L8.85355 11.8536C8.65829 12.0488 8.34171 12.0488 8.14645 11.8536C7.95118 11.6583 7.95118 11.3417 8.14645 11.1464L11.2929 8H2.5C2.22386 8 2 7.77614 2 7.5C2 7.22386 2.22386 7 2.5 7H11.2929L8.14645 3.85355C7.95118 3.65829 7.95118 3.34171 8.14645 3.14645Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),f=["color"],l=(0,i.forwardRef)(function(e,n){var r=e.color,o=a(e,f);return(0,i.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:n}),(0,i.createElement)("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),u=["color"],c=(0,i.forwardRef)(function(e,n){var r=e.color,o=a(e,u);return(0,i.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:n}),(0,i.createElement)("path",{d:"M7.49991 0.877045C3.84222 0.877045 0.877075 3.84219 0.877075 7.49988C0.877075 11.1575 3.84222 14.1227 7.49991 14.1227C11.1576 14.1227 14.1227 11.1575 14.1227 7.49988C14.1227 3.84219 11.1576 0.877045 7.49991 0.877045ZM1.82708 7.49988C1.82708 4.36686 4.36689 1.82704 7.49991 1.82704C10.6329 1.82704 13.1727 4.36686 13.1727 7.49988C13.1727 10.6329 10.6329 13.1727 7.49991 13.1727C4.36689 13.1727 1.82708 10.6329 1.82708 7.49988ZM10.1589 5.53774C10.3178 5.31191 10.2636 5.00001 10.0378 4.84109C9.81194 4.68217 9.50004 4.73642 9.34112 4.96225L6.51977 8.97154L5.35681 7.78706C5.16334 7.59002 4.84677 7.58711 4.64973 7.78058C4.45268 7.97404 4.44978 8.29061 4.64325 8.48765L6.22658 10.1003C6.33054 10.2062 6.47617 10.2604 6.62407 10.2483C6.77197 10.2363 6.90686 10.1591 6.99226 10.0377L10.1589 5.53774Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),d=["color"],p=(0,i.forwardRef)(function(e,n){var r=e.color,o=a(e,d);return(0,i.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:n}),(0,i.createElement)("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.564
164L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),h=["color"],y=(0,i.forwardRef)(function(e,n){var r=e.color,o=a(e,h);return(0,i.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:n}),(0,i.createElement)("path",{d:"M8.84182 3.13514C9.04327 3.32401 9.05348 3.64042 8.86462 3.84188L5.43521 7.49991L8.86462 11.1579C9.05348 11.3594 9.04327 11.6758 8.84182 11.8647C8.64036 12.0535 8.32394 12.0433 8.13508 11.8419L4.38508 7.84188C4.20477 7.64955 4.20477 7.35027 4.38508 7.15794L8.13508 3.15794C8.32394 2.95648 8.64036 2.94628 8.84182 3.13514Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),m=["color"],g=(0,i.forwardRef)(function(e,n){var r=e.color,o=a(e,m);return(0,i.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:n}),(0,i.createElement)("path",{d:"M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),b=["color"],v=(0,i.forwardRef)(function(e,n){var r=e.color,o=a(e,b);return(0,i.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:n}),(0,i.createElement)("path",{d:"M7.50009 0.877014C3.84241 0.877014 0.877258 3.84216 0.877258 7.49984C0.877258 11.1575 3.8424 14.1227 7.50009 14.1227C11.1578 14.1227 14.1229 11.1575 14.1229 7.49984C14.1229 3.84216 11.1577 0.877014 7.50009 0.877014ZM1.82726 7.49984C1.82726 4.36683 4.36708 1.82701 7.50009 1.82701C10.6331 1.82701 13.1729 4.36683 13.1729 7.49984C13.1729 10.6328 10.6331 13.1727 7.50009 13.1727C4.36708 13.1727 1.82726 10.6328 1.82726 7.49984ZM8 4.50001C8 4.22387 7.77614 4.00001 7.5 4.00001C7.22386 4.00001 7 4.22387 7 4.50001V7.50001C7 7.63262 7.05268 7.7598 7.14645 7.85357L9.14645 9.85357C9.34171 10.0488 9.65829 10.0488 9.85355 9.85357C10.0488 9.65831 10.0488 9.34172 9.85355 9.14646L8 7.29291V4.50001Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),w=["color"],x=(0,i.forwardRef)(function(e,n){var r=e.color,o=a(e,w);return(0,i.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:n}),(0,i.createElement)("path",{d:"M1 9.50006C1 10.3285 1.67157 11.0001 2.5 11.0001H4L4 10.0001H2.5C2.22386 10.0001 2 9.7762 2 9.50006L2 2.50006C2 2.22392 2.22386 2.00006 2.5 2.00006L9.5 2.00006C9.77614 2.00006 10 2.22392 10 2.50006V4.00002H5.5C4.67158 4.00002 4 4.67159 4 5.50002V12.5C4 13.3284 4.67158 14 5.5 14H12.5C13.3284 14 14 13.3284 14 12.5V5.50002C14 4.67159 13.3284 4.00002 12.5 4.00002H11V2.50006C11 1.67163 10.3284 1.00006 9.5 1.00006H2.5C1.67157 1.00006 1 1.67163 1 2.50006V9.50006ZM5 5.50002C5 5.22388 5.22386 5.00002 5.5 5.00002H12.5C12.7761 5.00002 13 5.22388 13 5.50002V12.5C13 12.7762 12.7761 13 12.5 13H5.5C5.22386 13 5 12.7762 5 12.5V5.50002Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),T=["color"],C=(0,i.forwardRef)(function(e,n){var r=e.color,o=a(e,T);return(0,i.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:n}),(0,i.createElement)("path",{d:"M12.8536 2.85355C13.0488 2.65829 13.0488 2.34171 12.8536 2.14645C12.6583 1.95118 12.3417 1.95118 12.1464 2.14645L7.5 6.79289L2.85355 2.14645C2.65829 1.95118 2.34171 1.95118 2.14645 2.14645C1.95118 2.34171 1.95118 2.65829 2.14645 2.85355L6.79289 7.5L2.14645 12.1464C1.95118 12.3417 1.95118 12.6583 2.14645 12.8536C2.34171 13.0488 2.65829 13.0488 2.85355 12.8536L7.5 8.20711L12.1464 12.8536C12.3417 13.0488 12.6583 13.0488 12.8536 12.8536C13.0488 12.6583 13.0488 12.3417 12.8536 12.1464L8.20711 7.5L12.8536 2.85355Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),M=["color"],A=(0,i.forwardRef)(function(e,n){var r=e.color,o=a(e,M);return(0,i.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:n}),(0,i.createElement)("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),E=["color"],I=(0,i.forwardRef)(function(e,n){var r=e.color,o=a(e,E);return(0,i.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:n}),(0,i.createElement)("path",{d:"M0.877075 7.49988C0.877075 3.84219 3.84222 0.877045 7.49991 0.877045C11.1576 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.
11576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49988ZM7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 4.36686 10.6329 1.82704 7.49991 1.82704ZM9.85358 5.14644C10.0488 5.3417 10.0488 5.65829 9.85358 5.85355L8.20713 7.49999L9.85358 9.14644C10.0488 9.3417 10.0488 9.65829 9.85358 9.85355C9.65832 10.0488 9.34173 10.0488 9.14647 9.85355L7.50002 8.2071L5.85358 9.85355C5.65832 10.0488 5.34173 10.0488 5.14647 9.85355C4.95121 9.65829 4.95121 9.3417 5.14647 9.14644L6.79292 7.49999L5.14647 5.85355C4.95121 5.65829 4.95121 5.3417 5.14647 5.14644C5.34173 4.95118 5.65832 4.95118 5.85358 5.14644L7.50002 6.79289L9.14647 5.14644C9.34173 4.95118 9.65832 4.95118 9.85358 5.14644Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),S=["color"],k=(0,i.forwardRef)(function(e,n){var r=e.color,o=a(e,S);return(0,i.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:n}),(0,i.createElement)("path",{d:"M4.5 1C4.22386 1 4 1.22386 4 1.5C4 1.77614 4.22386 2 4.5 2H12V13H4.5C4.22386 13 4 13.2239 4 13.5C4 13.7761 4.22386 14 4.5 14H12C12.5523 14 13 13.5523 13 13V2C13 1.44772 12.5523 1 12 1H4.5ZM6.60355 4.89645C6.40829 4.70118 6.09171 4.70118 5.89645 4.89645C5.70118 5.09171 5.70118 5.40829 5.89645 5.60355L7.29289 7H0.5C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H7.29289L5.89645 9.39645C5.70118 9.59171 5.70118 9.90829 5.89645 10.1036C6.09171 10.2988 6.40829 10.2988 6.60355 10.1036L8.85355 7.85355C9.04882 7.65829 9.04882 7.34171 8.85355 7.14645L6.60355 4.89645Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),N=["color"],j=(0,i.forwardRef)(function(e,n){var r=e.color,o=a(e,N);return(0,i.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:n}),(0,i.createElement)("path",{d:"M8.4449 0.608765C8.0183 -0.107015 6.9817 -0.107015 6.55509 0.608766L0.161178 11.3368C-0.275824 12.07 0.252503 13 1.10608 13H13.8939C14.7475 13 15.2758 12.07 14.8388 11.3368L8.4449 0.608765ZM7.4141 1.12073C7.45288 1.05566 7.54712 1.05566 7.5859 1.12073L13.9798 11.8488C14.0196 11.9154 13.9715 12 13.8939 12H1.10608C1.02849 12 0.980454 11.9154 1.02018 11.8488L7.4141 1.12073ZM6.8269 4.48611C6.81221 4.10423 7.11783 3.78663 7.5 3.78663C7.88217 3.78663 8.18778 4.10423 8.1731 4.48612L8.01921 8.48701C8.00848 8.766 7.7792 8.98664 7.5 8.98664C7.2208 8.98664 6.99151 8.766 6.98078 8.48701L6.8269 4.48611ZM8.24989 10.476C8.24989 10.8902 7.9141 11.226 7.49989 11.226C7.08567 11.226 6.74989 10.8902 6.74989 10.476C6.74989 10.0618 7.08567 9.72599 7.49989 9.72599C7.9141 9.72599 8.24989 10.0618 8.24989 10.476Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),D=["color"],_=(0,i.forwardRef)(function(e,n){var r=e.color,o=a(e,D);return(0,i.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:n}),(0,i.createElement)("path",{d:"M3 1C2.44771 1 2 1.44772 2 2V13C2 13.5523 2.44772 14 3 14H10.5C10.7761 14 11 13.7761 11 13.5C11 13.2239 10.7761 13 10.5 13H3V2L10.5 2C10.7761 2 11 1.77614 11 1.5C11 1.22386 10.7761 1 10.5 1H3ZM12.6036 4.89645C12.4083 4.70118 12.0917 4.70118 11.8964 4.89645C11.7012 5.09171 11.7012 5.40829 11.8964 5.60355L13.2929 7H6.5C6.22386 7 6 7.22386 6 7.5C6 7.77614 6.22386 8 6.5 8H13.2929L11.8964 9.39645C11.7012 9.59171 11.7012 9.90829 11.8964 10.1036C12.0917 10.2988 12.4083 10.2988 12.6036 10.1036L14.8536 7.85355C15.0488 7.65829 15.0488 7.34171 14.8536 7.14645L12.6036 4.89645Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),O=["color"],P=(0,i.forwardRef)(function(e,n){var r=e.color,o=a(e,O);return(0,i.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:n}),(0,i.createElement)("path",{d:"M3 2C2.44772 2 2 2.44772 2 3V12C2 12.5523 2.44772 13 3 13H12C12.5523 13 13 12.5523 13 12V8.5C13 8.22386 12.7761 8 12.5 8C12.2239 8 12 8.22386 12 8.5V12H3V3L6.5 3C6.77614 3 7 2.77614 7 2.5C7 2.22386 6.77614 2 6.5 2H3ZM12.8536 2.14645C12.9015 2.19439 12.9377 2.24964 12.9621 2.30861C12.9861 2.36669 12.9996 2.4303 13 2.497L13 2.5V2.50049V5.5C13 5.77614 12.7761 6 12.5 6C12.2239 6 12 5.77614 12 5.5V3.70711L6.85355 8.85355C6.65829 9.04882 6.34171 9.04882 6.14645 8.85355C5.95118 8.65829 5.95118 8.34171 6.14645 8.14645L11.2929 3H9.5C9.22386 3 9 2.77614 9 2.5C9 2.22386 9.22386 2 9.5 2H12.4999H12.5C12.5678 2 12.6324 2.01349 12.6914 2.03794C12.7504 2.06234 12.8056 2.09851 12.8536 2.14645Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),L=["color"],R=(0,i.forwardRef)(function(e,n){var r=e.color,o=a(e,L);return(0,i.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:n}),(0,i.createElement)("path",{d:"M14.7649 6.07596C14.9991 6.22231 15.0703 6.53079 14.9239 6.76495C14.4849 7.46743 13.9632 8.10645 13.3702 8.66305L14.5712 9.86406C14.7664 10.0593 14.7664 10.3759 14.5712 10.5712C14.3759 10.7664 14.0593 10.7664 13.8641 10.5712L12.6011 9.30817C11.805 9.90283 10.9089 10.3621 9.93375 10.651L10.383 12.3277C10.4544 12.5944
110.2961 12.8685 10.0294 12.94C9.76267 13.0115 9.4885 12.8532 9.41704 12.5865L8.95917 10.8775C8.48743 10.958 8.00036 10.9999 7.50001 10.9999C6.99965 10.9999 6.51257 10.958 6.04082 10.8775L5.58299 12.5864C5.51153 12.8532 5.23737 13.0115 4.97064 12.94C4.7039 12.8686 4.5456 12.5944 4.61706 12.3277L5.06625 10.651C4.09111 10.3621 3.19503 9.90282 2.3989 9.30815L1.1359 10.5712C0.940638 10.7664 0.624058 10.7664 0.428798 10.5712C0.233537 10.3759 0.233537 10.0593 0.428798 9.86405L1.62982 8.66303C1.03682 8.10643 0.515113 7.46742 0.0760677 6.76495C-0.0702867 6.53079 0.000898544 6.22231 0.235065 6.07596C0.469231 5.9296 0.777703 6.00079 0.924058 6.23496C1.40354 7.00213 1.989 7.68057 2.66233 8.2427C2.67315 8.25096 2.6837 8.25972 2.69397 8.26898C4.00897 9.35527 5.65537 9.99991 7.50001 9.99991C10.3078 9.99991 12.6564 8.5063 14.076 6.23495C14.2223 6.00079 14.5308 5.9296 14.7649 6.07596Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),z=["color"],B=(0,i.forwardRef)(function(e,n){var r=e.color,o=a(e,z);return(0,i.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:n}),(0,i.createElement)("path",{d:"M7.5 11C4.80285 11 2.52952 9.62184 1.09622 7.50001C2.52952 5.37816 4.80285 4 7.5 4C10.1971 4 12.4705 5.37816 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11ZM7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C1.65639 10.2936 4.30786 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C13.3436 4.70638 10.6921 3 7.5 3ZM7.5 9.5C8.60457 9.5 9.5 8.60457 9.5 7.5C9.5 6.39543 8.60457 5.5 7.5 5.5C6.39543 5.5 5.5 6.39543 5.5 7.5C5.5 8.60457 6.39543 9.5 7.5 9.5Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),U=["color"],F=(0,i.forwardRef)(function(e,n){var r=e.color,o=a(e,U);return(0,i.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:n}),(0,i.createElement)("path",{d:"M7.4986 0C6.3257 0 5.36107 0.38943 4.73753 1.19361C4.23745 1.83856 4 2.68242 4 3.63325H5C5 2.84313 5.19691 2.23312 5.5278 1.80636C5.91615 1.30552 6.55152 1 7.4986 1C8.35683 1 8.96336 1.26502 9.35846 1.68623C9.75793 2.11211 10 2.76044 10 3.63601V6H3C2.44772 6 2 6.44772 2 7V13C2 13.5523 2.44772 14 3 14H12C12.5523 14 13 13.5523 13 13V7C13 6.44771 12.5523 6 12 6H11V3.63601C11 2.58135 10.7065 1.66167 10.0878 1.0021C9.46477 0.337871 8.57061 0 7.4986 0ZM3 7H12V13H3V7Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),Z=["color"],W=(0,i.forwardRef)(function(e,n){var r=e.color,o=a(e,Z);return(0,i.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:n}),(0,i.createElement)("path",{d:"M10 6.5C10 8.433 8.433 10 6.5 10C4.567 10 3 8.433 3 6.5C3 4.567 4.567 3 6.5 3C8.433 3 10 4.567 10 6.5ZM9.30884 10.0159C8.53901 10.6318 7.56251 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56251 10.6318 8.53901 10.0159 9.30884L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L9.30884 10.0159Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),H=["color"],G=(0,i.forwardRef)(function(e,n){var r=e.color,o=a(e,H);return(0,i.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:n}),(0,i.createElement)("path",{d:"M1.20308 1.04312C1.00481 0.954998 0.772341 1.0048 0.627577 1.16641C0.482813 1.32802 0.458794 1.56455 0.568117 1.75196L3.92115 7.50002L0.568117 13.2481C0.458794 13.4355 0.482813 13.672 0.627577 13.8336C0.772341 13.9952 1.00481 14.045 1.20308 13.9569L14.7031 7.95693C14.8836 7.87668 15 7.69762 15 7.50002C15 7.30243 14.8836 7.12337 14.7031 7.04312L1.20308 1.04312ZM4.84553 7.10002L2.21234 2.586L13.2689 7.50002L2.21234 12.414L4.84552 7.90002H9C9.22092 7.90002 9.4 7.72094 9.4 7.50002C9.4 7.27911 9.22092 7.10002 9 7.10002H4.84553Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),q=["color"],Y=(0,i.forwardRef)(function(e,n){var r=e.color,o=a(e,q);return(0,i.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:n}),(0,i.createElement)("path",{d:"M13.5 13.95C13.7485 13.95 13.95 13.7485 13.95 13.5C13.95 13.2514 13.7485 13.05 13.5 13.05L1.49995 13.05C1.25142 13.05 1.04995 13.2514 1.04995 13.5C1.04995 13.7485 1.25142 13.95 1.49995 13.95L13.5 13.95ZM11.0681 7.5683C11.2439 7.39257 11.2439 7.10764 11.0681 6.93191C10.8924 6.75617 10.6075 6.75617 10.4317 6.93191L7.94993 9.41371L7.94993 1.49998C7.94993 1.25146 7.74846 1.04998 7.49993 1.04998C7.2514 1.04998 7.04993 1.25146 7.04993 1.49998L7.04993 9.41371L4.56813 6.93191C4.39239 6.75617 4.10746 6.75617 3.93173 6.93191C3.75599 7.10764 3.75599 7.39257 3.93173 7.5683L7.18173 10.8183C7.35746 10.994 7.64239 10.994 7.81812 10.8183L11.0681 7.5683Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),V=["color"],Q=(0,i.forwardRef)(function(e,n){var r=e.color,o=a(e,V);return(0,i.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:n}),(0,i.createElement)("path",{d:"M8 2.75C8 2.47386 7.77614 2.25 7.5 2.25C7.22386 2.25 7 2.47386 7 2.75V7H2.75C2.47386 7 2.25 7.22386 2.25 7.5C2.25 7.77614 2.47386 8 2.75 8H7V12.25C7 12.5261 7.22386 12.75 7.5 12.75C7.77614 12.75 8 12.5261 8 12.25V8H12.25C12.5261 8 12.75 7.77614 12.75 7.5C12.75 7.22386 12.5261 7 12.25 7H8V2.75Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),K=["color"],$=(0,i.forwardRef)(function(e,n){var r=e.color,o=a(e,K);return(0,i.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:n}),(0,i.createElement)("path",{d:"M7.49985 0.877045C3.84216 0.877045 0.877014 3.84219 0.877014 7.49988C0.877014 11.1575 3.84216 14.1227 7.49985 14.1227C11.1575 14.1227 14.1227 11.1575 14.1227 7.49988C14.1227 3.84219 11.1575 0.877045 7.49985 0.877045ZM1.82701 7.49988C1.82701 4.36686 4.36683 1.82704 7.49985 1.82704C10.6328 1.82704 13.1727 4.36686 13.1727 7.49988C13.1727 10.6329 10.6328 13.1727 7.49985 13.1727C4.36683 13.1727 1.82701 10.6329 1.82701 7.49988ZM7.49999 9.49999C8.60456 9.49999 9.49999 8.60456 9.49999 7.49999C9.49999 6.39542 8.60456 5.49999 7.49999 5.49999C6.39542 5.49999 5.49999 6.39542 5.49999 7.49999C5.49999 8.60456 6.39542 9.49999 7.49999 9.49999Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),J=["color"],X=(0,i.forwardRef)(function(e,n){var r=e.color,o=a(e,J);return(0,i.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:n}),(0,i.createElement)("path",{d:"M1.84998 7.49998C1.84998 4.66458 4.05979 1.84998 7.49998 1.84998C10.2783 1.84998 11.6515 3.9064 12.2367 5H10.5C10.2239 5 10 5.22386 10 5.5C10 5.77614 10.2239 6 10.5 6H13.5C13.7761 6 14 5.77614 14 5.5V2.5C14 2.22386 13.7761 2 13.5 2C13.2239 2 13 2.22386 13 2.5V4.31318C12.2955 3.07126 10.6659 0.849976 7.49998 0.849976C3.43716 0.849976 0.849976 4.18537 0.849976 7.49998C0.849976 10.8146 3.43716 14.15 7.49998 14.15C9.44382
114.15 11.0622 13.3808 12.2145 12.2084C12.8315 11.5806 13.3133 10.839 13.6418 10.0407C13.7469 9.78536 13.6251 9.49315 13.3698 9.38806C13.1144 9.28296 12.8222 9.40478 12.7171 9.66014C12.4363 10.3425 12.0251 10.9745 11.5013 11.5074C10.5295 12.4963 9.16504 13.15 7.49998 13.15C4.05979 13.15 1.84998 10.3354 1.84998 7.49998Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),ee=["color"],et=(0,i.forwardRef)(function(e,n){var r=e.color,o=a(e,ee);return(0,i.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:n}),(0,i.createElement)("path",{d:"M12.3536 1.14645C12.1583 0.951184 11.8417 0.951184 11.6464 1.14645C11.4512 1.34171 11.4512 1.65829 11.6464 1.85355L12.7929 3H12C10.7037 3 9.71111 3.58423 8.87248 4.38931C8.20065 5.03427 7.59349 5.85684 6.99461 6.6682C6.86287 6.84668 6.73154 7.02462 6.6 7.2C5.10874 9.18835 3.49037 11 0.5 11C0.223858 11 0 11.2239 0 11.5C0 11.7761 0.223858 12 0.5 12C4.00963 12 5.89126 9.81165 7.4 7.8C7.54367 7.60845 7.6832 7.41962 7.81996 7.23454L7.82005 7.23443L7.82006 7.23441C8.41674 6.42695 8.96069 5.69085 9.56502 5.11069C10.2889 4.41577 11.0463 4 12 4H12.7929L11.6464 5.14645C11.4512 5.34171 11.4512 5.65829 11.6464 5.85355C11.8417 6.04882 12.1583 6.04882 12.3536 5.85355L14.3536 3.85355C14.5488 3.65829 14.5488 3.34171 14.3536 3.14645L12.3536 1.14645ZM0.5 3C3.35278 3 5.12992 4.44588 6.50548 6.06746L6.3762 6.24266C6.2483 6.4161 6.12293 6.58609 6 6.75C5.96397 6.79804 5.92798 6.84581 5.892 6.89331C4.57348 5.29306 3.02637 4
10.5 4C0.223858 4 0 3.77614 0 3.5C0 3.22386 0.223858 3 0.5 3ZM8.87248 10.6107C8.37284 10.131 7.90897 9.55314 7.45767 8.95468C7.64688 8.71693 7.82704 8.48061 8 8.25L8.08987 8.12987C8.58412 8.79402 9.05288 9.39766 9.56502 9.88931C10.2889 10.5842 11.0463 11 12 11H12.7929L11.6464 9.85355C11.4512 9.65829 11.4512 9.34171 11.6464 9.14645C11.8417 8.95118 12.1583 8.95118 12.3536 9.14645L14.3536 11.1464C14.5488 11.3417 14.5488 11.6583 14.3536 11.8536L12.3536 13.8536C12.1583 14.0488 11.8417 14.0488 11.6464 13.8536C11.4512 13.6583 11.4512 13.3417 11.6464 13.1464L12.7929 12H12C10.7037 12 9.71111 11.4158 8.87248 10.6107Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),en=["color"],er=(0,i.forwardRef)(function(e,n){var r=e.color,o=a(e,en);return(0,i.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:n}),(0,i.createElement)("path",{d:"M2.5 4C2.22386 4 2 4.22386 2 4.5C2 4.77614 2.22386 5 2.5 5H12.5C12.7761 5 13 4.77614 13 4.5C13 4.22386 12.7761 4 12.5 4H2.5ZM2 7.5C2 7.22386 2.22386 7 2.5 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H2.5C2.22386 8 2 7.77614 2 7.5ZM2 10.5C2 10.2239 2.22386 10 2.5 10H12.5C12.7761 10 13 10.2239 13 10.5C13 10.7761 12.7761 11 12.5 11H2.5C2.22386 11 2 10.7761 2 10.5Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),ei=["color"],ea=(0,i.forwardRef)(function(e,n){var r=e.color,o=a(e,ei);return(0,i.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:n}),(0,i.createElement)("path",{d:"M4 6H11L7.5 10.5L4 6Z",fill:void 0===r?"currentColor":r}))})},77236:function(e,n,r){"use strict";function i(e){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(e){return"'"+e+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function a(e){return!!e&&!!e[H]}function o(e){var n;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var n=Object.getPrototypeOf(e);if(null===n)return!0;var r=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return r===Object||"function"==typeof r&&Function.toString.call(r)===G}(e)||Array.isArray(e)||!!e[W]||!!(null===(n=e.constructor)||void 0===n?void 0:n[W])||d(e)||p(e))}function s(e,n,r){void 0===r&&(r=!1),0===f(e)?(r?Object.keys:q)(e).forEach(function(i){r&&"symbol"==typeof i||n(i,e[i],e)}):e.forEach(function(r,i){return n(i,r,e)})}function f(e){var n=e[H];return n?n.i>3?n.i-4:n.i:Array.isArray(e)?1:d(e)?2:p(e)?3:0}function l(e,n){return 2===f(e)?e.has(n):Object.prototype.hasOwnProperty.call(e,n)}function u(e,n,r){var i=f(e);2===i?e.set(n,r):3===i?e.add(r):e[n]=r}function c(e,n){return e===n?0!==e||1/e==1/n:e!=e&&n!=n}function d(e){return B&&e instanceof Map}function p(e){return U&&e instanceof Set}function h(e){return e.o||e.t}function y(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var n=Y(e);delete n[H];for(var r=q(n),i=0;i<r.length;i++){var a=r[i],o=n[a];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(n[a]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),n)}function m(e,n){return void 0===n&&(n=!1),b(e)||a(e)||!o(e)||(f(e)>1&&(e.set=e.add=e.clear=e.delete=g),Object.freeze(e),n&&s(e,function(e,n){return m(n,!0)},!0)),e}function g(){i(2)}function b(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function v(e){var n=V[e];return n||i(18,e),n}function w(e,n){n&&(v("Patches"),e.u=[],e.s=[],e.v=n)}function x(e){T(e),e.p.forEach(M),e.p=null}function T(e){e===R&&(R=e.l)}function C(e){return R={p:[],l:R,h:e,m:!0,_:0}}function M(e){var n=e[H];0===n.i||1===n.i?n.j():n.g=!0}function A(e,n){n._=n.p.length;var r=n.p[0],a=void 0!==e&&e!==r;return n.h.O||v("ES5").S(n,e,a),a?(r[H].P&&(x(n),i(4)),o(e)&&(e=E(n,e),n.l||S(n,e)),n.u&&v("Patches").M(r[H].t,e,n.u,n.s)):e=E(n,r,[]),x(n),n.u&&n.v(n.u,n.s),e!==Z?e:void 0}function E(e,n,r){if(b(n))return n;var i=n[H];if(!i)return s(n,function(a,o){return I(e,i,n,a,o,r)},!0),n;if(i.A!==e)return n;if(!i.P)return S(e,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var a=4===i.i||5===i.i?i.o=y(i.k):i.o,o=a,f=!1;
13===i.i&&(o=new Set(a),a.clear(),f=!0),s(o,function(n,o){return I(e,i,a,n,o,r,f)}),S(e,a,!1),r&&e.u&&v("Patches").N(i,r,e.u,e.s)}return i.o}function I(e,n,r,i,s,f,c){if(a(s)){var d=E(e,s,f&&n&&3!==n.i&&!l(n.R,i)?f.concat(i):void 0);if(u(r,i,d),!a(d))return;e.m=!1}else c&&r.add(s);if(o(s)&&!b(s)){if(!e.h.D&&e._<1)return;E(e,s),n&&n.A.l||S(e,s)}}function S(e,n,r){void 0===r&&(r=!1),!e.l&&e.h.D&&e.m&&m(n,r)}function k(e,n){var r=e[H];return(r?h(r):e)[n]}function N(e,n){if(n in e)for(var r=Object.getPrototypeOf(e);r;){var i=Object.getOwnPropertyDescriptor(r,n);if(i)return i;r=Object.getPrototypeOf(r)}}function j(e){e.P||(e.P=!0,e.l&&j(e.l))}function D(e){e.o||(e.o=y(e.t))}function _(e,n,r){var i,a,o,s,f,l,u,c=d(n)?v("MapSet").F(n,r):p(n)?v("MapSet").T(n,r):e.O?(o=a={i:(i=Array.isArray(n))?1:0,A:r?r.A:R,P:!1,I:!1,R:{},l:r,t:n,k:null,o:null,j:null,C:!1},s=Q,i&&(o=[a],s=K),l=(f=Proxy.revocable(o,s)).revoke,u=f.proxy,a.k=u,a.j=l,u):v("ES5").J(n,r);return(r?r.A:R).p.push(c),c}function O(e,n){switch(n){case 2:return new Map(e);case 3:return Array.from(e)}return y(e)}r.d(n,{xC:function(){return ev},oM:function(){return ex}});var P,L,R,z="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),B="undefined"!=typeof Map,U="undefined"!=typeof Set,F="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Z=z?Symbol.for("immer-nothing"):((L={})["immer-nothing"]=!0,L),W=z?Symbol.for("immer-draftable"):"__$immer_draftable",H=z?Symbol.for("immer-state"):"__$immer_state",G=""+Object.prototype.constructor,q="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Y=Object.getOwnPropertyDescriptors||function(e){var n={};return q(e).forEach(function(r){n[r]=Object.getOwnPropertyDescriptor(e,r)}),n},V={},Q={get:function(e,n){if(n===H)return e;var r,i,a=h(e);if(!l(a,n))return(i=N(a,n))?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(e.k):void 0;var s=a[n];return e.I||!o(s)?s:s===k(e.t,n)?(D(e),e.o[n]=_(e.A.h,s,e)):s},has:function(e,n){return n in h(e)},ownKeys:function(e){return Reflect.ownKeys(h(e))},set:function(e,n,r){var i=N(h(e),n);if(null==i?void 0:i.set)return i.set.call(e.k,r),!0;if(!e.P){var a=k(h(e),n),o=null==a?void 0:a[H];if(o&&o.t===r)return e.o[n]=r,e.R[n]=!1,!0;if(c(r,a)&&(void 0!==r||l(e.t,n)))return!0;D(e),j(e)}return e.o[n]===r&&(void 0!==r||n in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[n])||(e.o[n]=r,e.R[n]=!0),!0},deleteProperty:function(e,n){return void 0!==k(e.t,n)||n in e.t?(e.R[n]=!1,D(e),j(e)):delete e.R[n],e.o&&delete e.o[n],!0},getOwnPropertyDescriptor:function(e,n){var r=h(e),i=Reflect.getOwnPropertyDescriptor(r,n);return i?{writable:!0,configurable:1!==e.i||"length"!==n,enumerable:i.enumerable,value:r[n]}:i},defineProperty:function(){i(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){i(12)}},K={};s(Q,function(e,n){K[e]=function(){return arguments[0]=arguments[0][0],n.apply(this,arguments)}}),K.deleteProperty=function(e,n){return K.set.call(this,e,n,void 0)},K.set=function(e,n,r){return Q.set.call(this,e[0],n,r,e[0])};var $=new(function(){function e(e){var n=this;this.O=F,this.D=!0,this.produce=function(e,r,a){if("function"==typeof e&&"function"!=typeof r){var s,f=r;return r=e,function(e){var i=this;void 0===e&&(e=f);for(var a=arguments.length,o=Array(a>1?a-1:0),s=1;s<a;s++)o[s-1]=arguments[s];return n.produce(e,function(e){var n;return(n=r).call.apply(n,[i,e].concat(o))})}}if("function"!=typeof r&&i(6),void 0!==a&&"function"!=typeof a&&i(7),o(e)){var l=C(n),u=_(n,e,void 0),c=!0;try{s=r(u),c=!1}finally{c?x(l):T(l)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then(function(e){return w(l,a),A(e,l)},function(e){throw x(l),e}):(w(l,a),A(s,l))}if(!e||"object"!=typeof e){if(void 0===(s=r(e))&&(s=e),s===Z&&(s=void 0),n.D&&m(s,!0),a){var d=[],p=[];v("Patches").M(e,s,d,p),a(d,p)}return s}i(21,e)},this.produceWithPatches=function(e,r){if("function"==typeof e)return function(r){for(var i=arguments.length,a=Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];return n.produceWithPatches(r,function(n){return e.apply(void 0,[n].concat(a))})};var i,a,o=n.produce(e,r,function(e,n){i=e,a=n});return"undefined"!=typeof Promise&&o instanceof Promise?o.then(function(e){return[e,i,a]}):[o,i,a]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}
1var n=e.prototype;return n.createDraft=function(e){o(e)||i(8),a(e)&&(a(n=e)||i(22,n),e=function e(n){if(!o(n))return n;var r,i=n[H],a=f(n);if(i){if(!i.P&&(i.i<4||!v("ES5").K(i)))return i.t;i.I=!0,r=O(n,a),i.I=!1}else r=O(n,a);return s(r,function(n,a){var o;i&&(2===f(o=i.t)?o.get(n):o[n])===a||u(r,n,e(a))}),3===a?new Set(r):r}(n));var n,r=C(this),l=_(this,e,void 0);return l[H].C=!0,T(r),l},n.finishDraft=function(e,n){var r=(e&&e[H]).A;return w(r,n),A(void 0,r)},n.setAutoFreeze=function(e){this.D=e},n.setUseProxies=function(e){e&&!F&&i(20),this.O=e},n.applyPatches=function(e,n){for(r=n.length-1;r>=0;r--){var r,i=n[r];if(0===i.path.length&&"replace"===i.op){e=i.value;break}}r>-1&&(n=n.slice(r+1));var o=v("Patches").$;return a(e)?o(e,n):this.produce(e,function(e){return o(e,n)})},e}()),J=$.produce;$.produceWithPatches.bind($),$.setAutoFreeze.bind($),$.setUseProxies.bind($),$.applyPatches.bind($),$.createDraft.bind($),$.finishDraft.bind($);var X=r(45217);function ee(e){return function(n){var r=n.dispatch,i=n.getState;return function(n){return function(a){return"function"==typeof a?a(r,i,e):n(a)}}}}var et=ee();et.withExtraArgument=ee,r(34155);var en=(P=function(e,n){return(P=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}P(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),er=function(e,n){var r,i,a,o,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:f(0),throw:f(1),return:f(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function f(o){return function(f){return function(o){if(r)throw TypeError("Generator is already executing.");for(;s;)try{if(r=1,i&&(a=2&o[0]?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(a=(a=s.trys).length>0&&a[a.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){s.label=o[1];break}if(6===o[0]&&s.label<a[1]){s.label=a[1],a=o;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(o);break}a[2]&&s.ops.pop(),s.trys.pop();continue}o=n.call(e,s)}catch(e){o=[6,e],i=0}finally{r=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,f])}}},ei=function(e,n){for(var r=0,i=n.length,a=e.length;r<i;r++,a++)e[a]=n[r];return e},ea=Object.defineProperty,eo=Object.defineProperties,es=Object.getOwnPropertyDescriptors,ef=Object.getOwnPropertySymbols,el=Object.prototype.hasOwnProperty,eu=Object.prototype.propertyIsEnumerable,ec=function(e,n,r){return n in e?ea(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r},ed=function(e,n){for(var r in n||(n={}))el.call(n,r)&&ec(e,r,n[r]);if(ef)for(var i=0,a=ef(n);i<a.length;i++){var r=a[i];eu.call(n,r)&&ec(e,r,n[r])}return e},ep=function(e,n){return eo(e,es(n))},eh="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!=arguments.length)return"object"==typeof arguments[0]?X.compose:X.compose.apply(null,arguments)};function ey(e,n){function r(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(n){var a=n.apply(void 0,r);if(!a)throw Error("prepareAction did not return an object");return ed(ed({type:e,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:e,payload:r[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(n){return n.type===e},r}"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var em=function(e){function n(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var a=e.apply(this,r)||this;return Object.setPrototypeOf(a,n.prototype),a}return en(n,e),Object.defineProperty(n,Symbol.species,{get:function(){return n}
1,enumerable:!1,configurable:!0}),n.prototype.concat=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e.prototype.concat.apply(this,n)},n.prototype.prepend=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return 1===e.length&&Array.isArray(e[0])?new(n.bind.apply(n,ei([void 0],e[0].concat(this)))):new(n.bind.apply(n,ei([void 0],e.concat(this))))},n}(Array),eg=function(e){function n(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var a=e.apply(this,r)||this;return Object.setPrototypeOf(a,n.prototype),a}return en(n,e),Object.defineProperty(n,Symbol.species,{get:function(){return n},enumerable:!1,configurable:!0}),n.prototype.concat=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e.prototype.concat.apply(this,n)},n.prototype.prepend=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return 1===e.length&&Array.isArray(e[0])?new(n.bind.apply(n,ei([void 0],e[0].concat(this)))):new(n.bind.apply(n,ei([void 0],e.concat(this))))},n}(Array);function eb(e){return o(e)?J(e,function(){}):e}function ev(e){var n,r=function(e){var n,r,i,a;return void 0===(n=e)&&(n={}),i=void 0===(r=n.thunk)||r,n.immutableCheck,n.serializableCheck,n.actionCreatorCheck,a=new em,i&&("boolean"==typeof i?a.push(et):a.push(et.withExtraArgument(i.extraArgument))),a},i=e||{},a=i.reducer,o=void 0===a?void 0:a,s=i.middleware,f=void 0===s?r():s,l=i.devTools,u=void 0===l||l,c=i.preloadedState,d=i.enhancers,p=void 0===d?void 0:d;if("function"==typeof o)n=o;else if(function(e){if("object"!=typeof e||null===e)return!1;var n=Object.getPrototypeOf(e);if(null===n)return!0;for(var r=n;null!==Object.getPrototypeOf(r);)r=Object.getPrototypeOf(r);return n===r}(o))n=(0,X.combineReducers)(o);else throw Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var h=f;"function"==typeof h&&(h=h(r));var y=X.applyMiddleware.apply(void 0,h),m=X.compose;u&&(m=eh(ed({trace:!1},"object"==typeof u&&u)));var g=new eg(y),b=g;Array.isArray(p)?b=ei([y],p):"function"==typeof p&&(b=p(g));var v=m.apply(void 0,b);return(0,X.createStore)(n,void 0===c?void 0:c,v)}function ew(e){var n,r={},i=[],a={addCase:function(e,n){var i="string"==typeof e?e:e.type;if(!i)throw Error("`builder.addCase` cannot be called with an empty action type");if(i in r)throw Error("`builder.addCase` cannot be called with two reducers for the same action type");return r[i]=n,a},addMatcher:function(e,n){return i.push({matcher:e,reducer:n}),a},addDefaultCase:function(e){return n=e,a}};return e(a),[r,i,n]}function ex(e){var n,r=e.name;if(!r)throw Error("`name` is a required option for createSlice");var i="function"==typeof e.initialState?e.initialState:eb(e.initialState),s=e.reducers||{},f=Object.keys(s),l={},u={},c={};function d(){var n="function"==typeof e.extraReducers?ew(e.extraReducers):[e.extraReducers],r=n[0],s=n[1],f=void 0===s?[]:s,l=n[2],c=void 0===l?void 0:l,d=ed(ed({},void 0===r?{}:r),u);return function(e,n,r,i){void 0===r&&(r=[]);var s,f="function"==typeof n?ew(n):[n,r,void 0],l=f[0],u=f[1],c=f[2];if("function"==typeof e)s=function(){return eb(e())};else{var d=eb(e);s=function(){return d}}function p(e,n){void 0===e&&(e=s());var r=ei([l[n.type]],u.filter(function(e){return(0,e.matcher)(n)}).map(function(e){return e.reducer}));return 0===r.filter(function(e){return!!e}).length&&(r=[c]),r.reduce(function(e,r){if(r){if(a(e)){var i=r(e,n);return void 0===i?e:i}if(o(e))return J(e,function(e){return r(e,n)});var i=r(e,n);if(void 0===i){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return i}return e},e)}return p.getInitialState=s,p}(i,function(e){for(var n in d)e.addCase(n,d[n]);for(var r=0;r<f.length;r++){var i=f[r];e.addMatcher(i.matcher,i.reducer)}c&&e.addDefaultCase(c)})}return f.forEach(function(e){var n,i,a=s[e],o=r+"/"+e;"reducer"in a?(n=a.reducer,i=a.prepare):n=a,l[e]=n,u[o]=n,c[e]=i?ey(o,i):ey(o)}),{name:r,reducer:function(e,r){return n||(n=d()),n(e,r)},actions:c,caseReducers:l,getInitialState:function(){return n||(n=d()),n.getInitialState()}}}var eT=function(e){void 0===e&&(e=21);for(var n="",r=e;r--;)n+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return n},eC=["name","message","stack","code"],eM=function(e,n){this.payload=e,this.meta=n},eA=function(e,n){this.payload=e,this.meta=n},eE=function(e){if("object"==typeof e&&null!==e){for(var n={},r=0;r<eC.length;r++){var i=eC[r];"string"==typeof e[i]&&(n[i]=e[i])}return n}return{message:String(e)}};function eI(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}!function(){function e(e,n,r){var i=ey(e+"/fulfilled",function(e,n,r,i){return{payload:e,meta:ep(ed({},i||{}),{arg:r,requestId:n,requestStatus:"fulfilled"})}}),a=ey(e+"/pending",function(e,n,r){return{payload:void 0,meta:ep(ed({},r||{}),{arg:n,requestId:e,requestStatus:"pending"})}}),o=ey(e+"/rejected",function(e,n,i,a,o){return{payload:a,error:(r&&r.serializeError||eE)(e||"Rejected"),meta:ep(ed({},o||{}),{arg:i,requestId:n,rejectedWithValue:!!a,requestStatus:"rejected",aborted:(null==e?void 0:e.name)==="AbortError",condition:(null==e?void 0:e.name)==="ConditionError"})}}),s="undefined"!=typeof AbortController?AbortController:function(){function e(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return e.prototype.abort=function(){},e}();return Object.assign(function(e){return function(f,l,u){var c,d=(null==r?void 0:r.idGenerator)?r.idGenerator(e):eT(),p=new s;function h(e){c=e,p.abort()}var y=function(){var s,y;return s=this,y=function(){var s,y,m,g,b,v;return er(this,function(w){switch(w.label){case 0:var x;if(w.trys.push([0,4,,5]),!(null!==(x=g=null==(s=null==r?void 0:r.condition)?void 0:s.call(r,e,{getState:l,extra:u}))&&"object"==typeof x&&"function"==typeof x.then))return[3,2];return[4,g];case 1:g=w.sent(),w.label=2;case 2:if(!1===g||p.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise(function(e,n){return p.signal.addEventListener("abort",function(){return n({name:"AbortError",message:c||"Aborted"})})}),f(a(d,e,null==(y=null==r?void 0:r.getPendingMeta)?void 0:y.call(r,{requestId:d,arg:e},{getState:l,extra:u}))),[4,Promise.race([b,Promise.resolve(n(e,{dispatch:f,getState:l,extra:u,requestId:d,signal:p.signal,abort:h,rejectWithValue:function(e,n){return new eM(e,n)},fulfillWithValue:function(e,n){return new eA(e,n)}})).then(function(n){if(n instanceof eM)throw n;return n instanceof eA?i(n.payload,d,e,n.meta):i(n,d,e)})])];case 3:return m=w.sent(),[3,5];case 4:return m=(v=w.sent())instanceof eM?o(null,d,e,v.payload,v.meta):o(v,d,e),[3,5];case 5:return r&&!r.dispatchConditionRejection&&o.match(m)&&m.meta.condition||f(m),[2,m]}})},new Promise(function(e,n){var r=function(e){try{a(y.next(e))}catch(e){n(e)}},i=function(e){try{a(y.throw(e))}catch(e){n(e)}},a=function(n){return n.done?e(n.value):Promise.resolve(n.value).then(r,i)};a((y=y.apply(s,null)).next())})}();return Object.assign(y,{abort:h,requestId:d,arg:e,unwrap:function(){return y.then(eI)}})}},{pending:a,rejected:o,fulfilled:i,typePrefix:e})}e.withTypes=function(){return e}}();var eS="listenerMiddleware";ey(eS+"/add"),ey(eS+"/removeAll"),ey(eS+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:void 0!==r.g?r.g:globalThis),"undefined"!=typeof window&&window.requestAnimationFrame&&window.requestAnimationFrame,function(){function e(e,n){var r=f[e];return r?r.enumerable=n:f[e]=r={configurable:!0,enumerable:n,get:function(){var n=this[H];return Q.get(n,e)},set:function(n){var r=this[H];Q.set(r,e,n)}},r}function n(e){for(var n=e.length-1;n>=0;n--){var a=e[n][H];if(!a.P)switch(a.i){case 5:i(a)&&j(a);break;case 4:r(a)&&j(a)}}}function r(e){for(var n=e.t,r=e.k,i=q(r),a=i.length-1;a>=0;a--){var o=i[a];if(o!==H){var s=n[o];if(void 0===s&&!l(n,o))return!0;var f=r[o],u=f&&f[H];if(u?u.t!==s:!c(f,s))return!0}}var d=!!n[H];return i.length!==q(n).length+(d?0:1)}function i(e){var n=e.k;if(n.length!==e.t.length)return!0;var r=Object.getOwnPropertyDescriptor(n,n.length-1);if(r&&!r.get)return!0;for(var i=0;i<n.length;i++)if(!n.hasOwnProperty(i))return!0;return!1}var o,f={};o={J:function(n,r){var i=Array.isArray(n),a=function(n,r){if(n){for(var i=Array(r.length),a=0;a<r.length;a++)Object.defineProperty(i,""+a,e(a,!0));return i}var o=Y(r);delete o[H];for(var s=q(o),f=0;f<s.length;f++){var l=s[f];o[l]=e(l,n||!!o[l].enumerable)}return Object.create(Object.getPrototypeOf(r),o)}(i,n),o={i:i?5:4,A:r?r.A:R,P:!1,I:!1,R:{},l:r,t:n,k:a,o:null,g:!1,C:!1};return Object.defineProperty(a,H,{value:o,writable:!0}),a},S:function(e,r,o){o?a(r)&&r[H].A===e&&n(e.p):(e.u&&function e(n){if(n&&"object"==typeof n){var r=n[H];if(r){var a=r.t,o=r.k,f=r.R,u=r.i;
1if(4===u)s(o,function(n){n!==H&&(void 0!==a[n]||l(a,n)?f[n]||e(o[n]):(f[n]=!0,j(r)))}),s(a,function(e){void 0!==o[e]||l(o,e)||(f[e]=!1,j(r))});else if(5===u){if(i(r)&&(j(r),f.length=!0),o.length<a.length)for(var c=o.length;c<a.length;c++)f[c]=!1;else for(var d=a.length;d<o.length;d++)f[d]=!0;for(var p=Math.min(o.length,a.length),h=0;h<p;h++)o.hasOwnProperty(h)||(f[h]=!0),void 0===f[h]&&e(o[h])}}}}(e.p[0]),n(e.p))},K:function(e){return 4===e.i?r(e):i(e)}},V.ES5||(V.ES5=o)}()},98099:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=r(97117);function a(e,n,r){return void 0===n&&(n=new Uint8Array(2)),void 0===r&&(r=0),n[r+0]=e>>>8,n[r+1]=e>>>0,n}function o(e,n,r){return void 0===n&&(n=new Uint8Array(2)),void 0===r&&(r=0),n[r+0]=e>>>0,n[r+1]=e>>>8,n}function s(e,n){return void 0===n&&(n=0),e[n]<<24|e[n+1]<<16|e[n+2]<<8|e[n+3]}function f(e,n){return void 0===n&&(n=0),(e[n]<<24|e[n+1]<<16|e[n+2]<<8|e[n+3])>>>0}function l(e,n){return void 0===n&&(n=0),e[n+3]<<24|e[n+2]<<16|e[n+1]<<8|e[n]}function u(e,n){return void 0===n&&(n=0),(e[n+3]<<24|e[n+2]<<16|e[n+1]<<8|e[n])>>>0}function c(e,n,r){return void 0===n&&(n=new Uint8Array(4)),void 0===r&&(r=0),n[r+0]=e>>>24,n[r+1]=e>>>16,n[r+2]=e>>>8,n[r+3]=e>>>0,n}function d(e,n,r){return void 0===n&&(n=new Uint8Array(4)),void 0===r&&(r=0),n[r+0]=e>>>0,n[r+1]=e>>>8,n[r+2]=e>>>16,n[r+3]=e>>>24,n}function p(e,n,r){return void 0===n&&(n=new Uint8Array(8)),void 0===r&&(r=0),c(e/4294967296>>>0,n,r),c(e>>>0,n,r+4),n}function h(e,n,r){return void 0===n&&(n=new Uint8Array(8)),void 0===r&&(r=0),d(e>>>0,n,r),d(e/4294967296>>>0,n,r+4),n}n.readInt16BE=function(e,n){return void 0===n&&(n=0),(e[n+0]<<8|e[n+1])<<16>>16},n.readUint16BE=function(e,n){return void 0===n&&(n=0),(e[n+0]<<8|e[n+1])>>>0},n.readInt16LE=function(e,n){return void 0===n&&(n=0),(e[n+1]<<8|e[n])<<16>>16},n.readUint16LE=function(e,n){return void 0===n&&(n=0),(e[n+1]<<8|e[n])>>>0},n.writeUint16BE=a,n.writeInt16BE=a,n.writeUint16LE=o,n.writeInt16LE=o,n.readInt32BE=s,n.readUint32BE=f,n.readInt32LE=l,n.readUint32LE=u,n.writeUint32BE=c,n.writeInt32BE=c,n.writeUint32LE=d,n.writeInt32LE=d,n.readInt64BE=function(e,n){void 0===n&&(n=0);var r=s(e,n),i=s(e,n+4);return 4294967296*r+i-(i>>31)*4294967296},n.readUint64BE=function(e,n){return void 0===n&&(n=0),4294967296*f(e,n)+f(e,n+4)},n.readInt64LE=function(e,n){void 0===n&&(n=0);var r=l(e,n);return 4294967296*l(e,n+4)+r-(r>>31)*4294967296},n.readUint64LE=function(e,n){void 0===n&&(n=0);var r=u(e,n);return 4294967296*u(e,n+4)+r},n.writeUint64BE=p,n.writeInt64BE=p,n.writeUint64LE=h,n.writeInt64LE=h,n.readUintBE=function(e,n,r){if(void 0===r&&(r=0),e%8!=0)throw Error("readUintBE supports only bitLengths divisible by 8");if(e/8>n.length-r)throw Error("readUintBE: array is too short for the given b
1itLength");for(var i=0,a=1,o=e/8+r-1;o>=r;o--)i+=n[o]*a,a*=256;return i},n.readUintLE=function(e,n,r){if(void 0===r&&(r=0),e%8!=0)throw Error("readUintLE supports only bitLengths divisible by 8");if(e/8>n.length-r)throw Error("readUintLE: array is too short for the given bitLength");for(var i=0,a=1,o=r;o<r+e/8;o++)i+=n[o]*a,a*=256;return i},n.writeUintBE=function(e,n,r,a){if(void 0===r&&(r=new Uint8Array(e/8)),void 0===a&&(a=0),e%8!=0)throw Error("writeUintBE supports only bitLengths divisible by 8");if(!i.isSafeInteger(n))throw Error("writeUintBE value must be an integer");for(var o=1,s=e/8+a-1;s>=a;s--)r[s]=n/o&255,o*=256;return r},n.writeUintLE=function(e,n,r,a){if(void 0===r&&(r=new Uint8Array(e/8)),void 0===a&&(a=0),e%8!=0)throw Error("writeUintLE supports only bitLengths divisible by 8");if(!i.isSafeInteger(n))throw Error("writeUintLE value must be an integer");for(var o=1,s=a;s<a+e/8;s++)r[s]=n/o&255,o*=256;return r},n.readFloat32BE=function(e,n){return void 0===n&&(n=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat32(n)},n.readFloat32LE=function(e,n){return void 0===n&&(n=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat32(n,!0)},n.readFloat64BE=function(e,n){return void 0===n&&(n=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat64(n)},n.readFloat64LE=function(e,n){return void 0===n&&(n=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat64(n,!0)},n.writeFloat32BE=function(e,n,r){return void 0===n&&(n=new Uint8Array(4)),void 0===r&&(r=0),new DataView(n.buffer,n.byteOffset,n.byteLength).setFloat32(r,e),n},n.writeFloat32LE=function(e,n,r){return void 0===n&&(n=new Uint8Array(4)),void 0===r&&(r=0),new DataView(n.buffer,n.byteOffset,n.byteLength).setFloat32(r,e,!0),n},n.writeFloat64BE=function(e,n,r){return void 0===n&&(n=new Uint8Array(8)),void 0===r&&(r=0),new DataView(n.buffer,n.byteOffset,n.byteLength).setFloat64(r,e),n},n.writeFloat64LE=function(e,n,r){return void 0===n&&(n=new Uint8Array(8)),void 0===r&&(r=0),new DataView(n.buffer,n.byteOffset,n.byteLength).setFloat64(r,e,!0),n}},25439:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=r(98099),a=r(17309);function o(e,n,r,o,s){if(void 0===s&&(s=0),32!==e.length)throw Error("ChaCha: key size must be 32 bytes");if(o.length<r.length)throw Error("ChaCha: destination is shorter than source");if(0===s){if(8!==n.length&&12!==n.length)throw Error("ChaCha nonce must be 8 or 12 bytes");l=(f=new Uint8Array(16)).length-n.length,f.set(n,l)}else{if(16!==n.length)throw Error("ChaCha nonce with counter must be 16 bytes");f=n,l=s}for(var f,l,u=new Uint8Array(64),c=0;c<r.length;c+=64){!function(e,n,r){for(var a=r[3]<<24|r[2]<<16|r[1]<<8|r[0],o=r[7]<<24|r[6]<<16|r[5]<<8|r[4],s=r[11]<<24|r[10]<<16|r[9]<<8|r[8],f=r[15]<<24|r[14]<<16|r[13]<<8|r[12],l=r[19]<<24|r[18]<<16|r[17]<<8|r[16],u=r[23]<<24|r[22]<<16|r[21]<<8|r[20],c=r[27]<<24|r[26]<<16|r[25]<<8|r[24],d=r[31]<<24|r[30]<<16|r[29]<<8|r[28],p=n[3]<<24|n[2]<<16|n[1]<<8|n[0],h=n[7]<<24|n[6]<<16|n[5]<<8|n[4],y=n[11]<<24|n[10]<<16|n[9]<<8|n[8],m=n[15]<<24|n[14]<<16|n[13]<<8|n[12],g=1634760805,b=857760878,v=2036477234,w=1797285236,x=a,T=o,C=s,M=f,A=l,E=u,I=c,S=d,k=p,N=h,j=y,D=m,_=0;_<20;_+=2)k^=g=g+x|0,x^=A=A+(k=k>>>16|k<<16)|0,x=x>>>20|x<<12,N^=b=b+T|0,T^=E=E+(N=N>>>16|N<<16)|0,T=T>>>20|T<<12,j^=v=v+C|0,C^=I=I+(j=j>>>16|j<<16)|0,C=C>>>20|C<<12,D^=w=w+M|0,M^=S=S+(D=D>>>16|D<<16)|0,M=M>>>20|M<<12,j^=v=v+C|0,C^=I=I+(j=j>>>24|j<<8)|0,C=C>>>25|C<<7,D^=w=w+M|0,M^=S=S+(D=D>>>24|D<<8)|0,M=M>>>25|M<<7,N^=b=b+T|0,T^=E=E+(N=N>>>24|N<<8)|0,T=T>>>25|T<<7,k^=g=g+x|0,x^=A=A+(k=k>>>24|k<<8)|0,x=x>>>25|x<<7,D^=g=g+T|0,T^=I=I+(D=D>>>16|D<<16)|0,T=T>>>20|T<<12,k^=b=b+C|0,C^=S=S+(k=k>>>16|k<<16)|0,C=C>>>20|C<<12,N^=v=v+M|0,M^=A=A+(N=N>>>16|N<<16)|0,M=M>>>20|M<<12,j^=w=w+x|0,x^=E=E+(j=j>>>16|j<<16)|0,x=x>>>20|x<<12,N^=v=v+M|0,M^=A=A+(N=N>>>24|N<<8)|0,M=M>>>25|M<<7,j^=w=w+x|0,x^=E=E+(j=j>>>24|j<<8)|0,x=x>>>25|x<<7,k^=b=b+C|0,C^=S=S+(k=k>>>24|k<<8)|0,C=C>>>25|C<<7,D^=g=g+T|0,T^=I=I+(D=D>>>24|D<<8)|0,T=T>>>25|T<<7;i.writeUint32LE(g+1634760805|0,e,0),i.writeUint32LE(b+857760878|0,e,4),i.writeUint32LE(v+2036477234|0,e,8),i.writeUint32LE(w+1797285236|0,e,12),i.writeUint32LE(x+a|0,e,16),i.writeUint32LE(T+o|0,e,20),i.writeUint32LE(C+s|0,e,24),i.writeUint32LE(M+f|0,e,28),i.writeUint32LE(A+l|0,e,32),i.writeUint32LE(E+u|0,e,36),i.writeUint32LE(I+c|0,e,40),i.writeUint32LE(S+d|0,e,44),i.writeUint32LE(k+p|0,e,48),i.writeUint32LE(N+h|0,e,52),i.writeUint32LE(j+y|0,e,56),i.writeUint32LE(D+m|0,e,60)}(u,f,e);for(var d=c;d<c+64&&d<r.length;d++)o[d]=r[d]^u[d-c];!function(e,n,r){for(var i=1;r--;)i=i+(255&e[n])|0,e[n]=255&i,i>>>=8,n++;if(i>0)throw Error("ChaCha: counter overflow")}(f,0,l)}return a.wipe(u),0===s&&a.wipe(f),o}n.streamXOR=o,n.stream=function(e,n,r,i){return void 0===i&&(i=0),a.wipe(r),o(e,n,r,r,i
1)}},15501:function(e,n,r){"use strict";var i=r(25439),a=r(63027),o=r(17309),s=r(98099),f=r(4153);n.Cv=32,n.WH=12,n.pg=16;var l=new Uint8Array(16),u=function(){function e(e){if(this.nonceLength=n.WH,this.tagLength=n.pg,e.length!==n.Cv)throw Error("ChaCha20Poly1305 needs 32-byte key");this._key=new Uint8Array(e)}return e.prototype.seal=function(e,n,r,a){if(e.length>16)throw Error("ChaCha20Poly1305: incorrect nonce length");var s,f=new Uint8Array(16);f.set(e,f.length-e.length);var l=new Uint8Array(32);i.stream(this._key,f,l,4);var u=n.length+this.tagLength;if(a){if(a.length!==u)throw Error("ChaCha20Poly1305: incorrect destination length");s=a}else s=new Uint8Array(u);return i.streamXOR(this._key,f,n,s,4),this._authenticate(s.subarray(s.length-this.tagLength,s.length),l,s.subarray(0,s.length-this.tagLength),r),o.wipe(f),s},e.prototype.open=function(e,n,r,a){if(e.length>16)throw Error("ChaCha20Poly1305: incorrect nonce length");if(n.length<this.tagLength)return null;var s,l=new Uint8Array(16);l.set(e,l.length-e.length);var u=new Uint8Array(32);i.stream(this._key,l,u,4);var c=new Uint8Array(this.tagLength);if(this._authenticate(c,u,n.subarray(0,n.length-this.tagLength),r),!f.equal(c,n.subarray(n.length-this.tagLength,n.length)))return null;var d=n.length-this.tagLength;if(a){if(a.length!==d)throw Error("ChaCha20Poly1305: incorrect destination length");s=a}else s=new Uint8Array(d);return i.streamXOR(this._key,l,n.subarray(0,n.length-this.tagLength),s,4),o.wipe(l),s},e.prototype.clean=function(){return o.wipe(this._key),this},e.prototype._authenticate=function(e,n,r,i){var f=new a.Poly1305(n);i&&(f.update(i),i.length%16>0&&f.update(l.subarray(i.length%16))),f.update(r),r.length%16>0&&f.update(l.subarray(r.length%16));var u=new Uint8Array(8);i&&s.writeUint64LE(i.length,u),f.update(u),s.writeUint64LE(r.length,u),f.update(u);for(var c=f.digest(),d=0;d<c.length;d++)e[d]=c[d];f.clean(),o.wipe(c),o.wipe(u)},e}();n.OK=u},4153:function(e,n){"use strict";function r(e,n){if(e.length!==n.length)return 0;for(var r=0,i=0;i<e.length;i++)r|=e[i]^n[i];return 1&r-1>>>8}Object.defineProperty(n,"__esModule",{value:!0}),n.select=function(e,n,r){return~(e-1)&n|e-1&r},n.lessOrEqual=function(e,n){return(0|e)-(0|n)-1>>>31&1},n.compare=r,n.equal=function(e,n){return 0!==e.length&&0!==n.length&&0!==r(e,n)}},17265:function(e,n,r){"use strict";n.Xx=n._w=n.aP=n.KS=n.jQ=void 0,r(31416);let i=r(93350);function a(e){let n=new Float64Array(16);if(e)for(let r=0;r<e.length;r++)n[r]=e[r];return n}r(17309),n.jQ=64,n.KS=64,n.aP=32,new Uint8Array(32)[0]=9;let o=a(),s=a([1]),f=(a([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),a([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222])),l=a([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),u=a([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]);function c(e,n){for(let r=0;r<16;r++)e[r]=0|n[r]}function d(e){let n=1;for(let r=0;r<16;r++){let i=e[r]+n+65535;n=Math.floor(i/65536),e[r]=i-65536*n}e[0]+=n-1+37*(n-1)}function p(e,n,r){let i=~(r-1);for(let r=0;r<16;r++){let a=i&(e[r]^n[r]);e[r]^=a,n[r]^=a}}function h(e,n){let r=a(),i=a();for(let e=0;e<16;e++)i[e]=n[e];d(i),d(i),d(i);for(let e=0;e<2;e++){r[0]=i[0]-65517;for(let e=1;e<15;e++)r[e]=i[e]-65535-(r[e-1]>>16&1),r[e-1]&=65535;r[15]=i[15]-32767-(r[14]>>16&1);let e=r[15]>>16&1;r[14]&=65535,p(i,r,1-e)}for(let n=0;n<16;n++)e[2*n]=255&i[n],e[2*n+1]=i[n]>>8}a([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function y(e,n,r){for(let i=0;i<16;i++)e[i]=n[i]+r[i]}function m(e,n,r){for(let i=0;i<16;i++)e[i]=n[i]-r[i]}function g(e,n,r){let i,a,o=0,s=0,f=0,l=0,u=0,c=0,d=0,p=0,h=0,y=0,m=0,g=0,b=0,v=0,w=0,x=0,T=0,C=0,M=0,A=0,E=0,I=0,S=0,k=0,N=0,j=0,D=0,_=0,O=0,P=0,L=0,R=r[0],z=r[1],B=r[2],U=r[3],F=r[4],Z=r[5],W=r[6],H=r[7],G=r[8],q=r[9],Y=r[10],V=r[11],Q=r[12],K=r[13],$=r[14],J=r[15];o+=(i=n[0])*R,s+=i*z,f+=i*B,l+=i*U,u+=i*F,c+=i*Z,d+=i*W,p+=i*H,h+=i*G,y+=i*q,m+=i*Y,g+=i*V,b+=i*Q,v+=i*K,w+=i*$,x+=i*J,s+=(i=n[1])*R,f+=i*z,l+=i*B,u+=i*U,c+=i*F,d+=i*Z,p+=i*W,h+=i*H,y+=i*G,m+=i*q,g+=i*Y,b+=i*V,v+=i*Q,w+=i*K,x+=i*$,T+=i*J,f+=(i=n[2])*R,l+=i*z,u+=i*B,c+=i*U,d+=i*F,p+=i*Z,h+=i*W,y+=i*H,m+=i*G,g+=i*q,b+=i*Y,v+=i*V,w+=i*Q,x+=i*K,T+=i*$,C+=i*J,l+=(i=n[3])*R,u+=i*z,c+=i*B,d+=i*U,p+=i*F,h+=i*Z,y+=i*W,m+=i*H,g+=i*G,b+=i*q,v+=i*Y,w+=i*V,x+=i*Q,T+=i*K,C+=i*$,M+=i*J,u+=(i=n[4])*R,c+=i*z,d+=i*B,p+=i*U,h+=i*F,y+=i*Z,m+=i*W,g+=i*H,b+=i*G,v+=i*q,w+=i*Y,x+=i*V,T+=i*Q,C+=i*K,M+=i*$,A+=i*J,c+=(i=n[5])*R,d+=i*z,p+=i*B,h+=i*U,y+=i*F,m+=i*Z,g+=i*W,b+=i*H,v+=i*G,w+=i*q,x+=i*Y,T+=i*V,C+=i*Q,M+=i*K,A+=i*$,E+=i*J,d+=(i=n[6])*R,p+=i*z,h+=i*B,y+=i*U,m+=i*F,g+=i*Z,b+=i*W,v+=i*H,w+=i*G,x+=i*q,T+=i*Y,C+=i*V,M+=i*Q,A+=i*K,E+=i*$,I+=i*J,p+=(i=n[7])*R,h+=i*z,y+=i*B,m+=i*U,g+=i*F,b+=i*Z,v+=i*W,w+=i*H,x+=i*G,T+=i*q,C+=i*Y,M+=i*V,A+=i*Q,E+=i*K,I+=i*$,S+=i*J,h+=(i=n[8])*R,y+=i*z,m+=i*B,g+=i*U,b+=i*F,v+=i*Z,w+=i*W,x+=i*H,T+=i*G,C+=i*q,M+=i*Y,A+=i*V,E+=i*Q,I+=i*K,S+=i*$,k+=i*J,y+=(i=n[9])*R,m+=i*z,g+=i*B,b+=i*U,v+=i*F,w+=i*Z,x+=i*W,T+=i*H,C+=i*G,M+=i*q,A+=i*Y,E+=i*V,I+=i*Q,S+=i*K,k+=i*$,N+=i*J,m+=(i=n[10])*R,g+=i*z,b+=i*B,v+=i*U,w+=i*F,x+=i*Z,T+=i*W,C+=i*H,M+=i*G,A+=i*q,E+=i*Y,I+=i*V,S+=i*Q,k+=i*K,N+=i*$,j+=i*J,g+=(i=n[11])*R,b+=i*z,v+=i*B,w+=i*U,x+=i*F,T+=i*Z,C+=i*W,M+=i*H,A+=i*G,E+=i*q,I+=i*Y,S+=i*V,k+=i*Q,N+=i*K,j+=i*$,D+=i*J,b+=(i=n[12])*
1R,v+=i*z,w+=i*B,x+=i*U,T+=i*F,C+=i*Z,M+=i*W,A+=i*H,E+=i*G,I+=i*q,S+=i*Y,k+=i*V,N+=i*Q,j+=i*K,D+=i*$,_+=i*J,v+=(i=n[13])*R,w+=i*z,x+=i*B,T+=i*U,C+=i*F,M+=i*Z,A+=i*W,E+=i*H,I+=i*G,S+=i*q,k+=i*Y,N+=i*V,j+=i*Q,D+=i*K,_+=i*$,O+=i*J,w+=(i=n[14])*R,x+=i*z,T+=i*B,C+=i*U,M+=i*F,A+=i*Z,E+=i*W,I+=i*H,S+=i*G,k+=i*q,N+=i*Y,j+=i*V,D+=i*Q,_+=i*K,O+=i*$,P+=i*J,x+=(i=n[15])*R,T+=i*z,C+=i*B,M+=i*U,A+=i*F,E+=i*Z,I+=i*W,S+=i*H,k+=i*G,N+=i*q,j+=i*Y,D+=i*V,_+=i*Q,O+=i*K,P+=i*$,L+=i*J,o+=38*T,s+=38*C,f+=38*M,l+=38*A,u+=38*E,c+=38*I,d+=38*S,p+=38*k,h+=38*N,y+=38*j,m+=38*D,g+=38*_,b+=38*O,v+=38*P,w+=38*L,a=Math.floor((i=o+(a=1)+65535)/65536),o=i-65536*a,a=Math.floor((i=s+a+65535)/65536),s=i-65536*a,a=Math.floor((i=f+a+65535)/65536),f=i-65536*a,a=Math.floor((i=l+a+65535)/65536),l=i-65536*a,a=Math.floor((i=u+a+65535)/65536),u=i-65536*a,a=Math.floor((i=c+a+65535)/65536),c=i-65536*a,a=Math.floor((i=d+a+65535)/65536),d=i-65536*a,a=Math.floor((i=p+a+65535)/65536),p=i-65536*a,a=Math.floor((i=h+a+65535)/65536),h=i-65536*a,a=Math.floor((i=y+a+65535)/65536),y=i-65536*a,a=Math.floor((i=m+a+65535)/65536),m=i-65536*a,a=Math.floor((i=g+a+65535)/65536),g=i-65536*a,a=Math.floor((i=b+a+65535)/65536),b=i-65536*a,a=Math.floor((i=v+a+65535)/65536),v=i-65536*a,a=Math.floor((i=w+a+65535)/65536),w=i-65536*a,a=Math.floor((i=x+a+65535)/65536),x=i-65536*a,o+=a-1+37*(a-1),a=Math.floor((i=o+(a=1)+65535)/65536),o=i-65536*a,a=Math.floor((i=s+a+65535)/65536),s=i-65536*a,a=Math.floor((i=f+a+65535)/65536),f=i-65536*a,a=Math.floor((i=l+a+65535)/65536),l=i-65536*a,a=Math.floor((i=u+a+65535)/65536),u=i-65536*a,a=Math.floor((i=c+a+65535)/65536),c=i-65536*a,a=Math.floor((i=d+a+65535)/65536),d=i-65536*a,a=Math.floor((i=p+a+65535)/65536),p=i-65536*a,a=Math.floor((i=h+a+65535)/65536),h=i-65536*a,a=Math.floor((i=y+a+65535)/65536),y=i-65536*a,a=Math.floor((i=m+a+65535)/65536),m=i-65536*a,a=Math.floor((i=g+a+65535)/65536),g=i-65536*a,a=Math.floor((i=b+a+65535)/65536),b=i-65536*a,a=Math.floor((i=v+a+65535)/65536),v=i-65536*a,a=Math.floor((i=w+a+65535)/65536),w=i-65536*a,a=Math.floor((i=x+a+65535)/65536),x=i-65536*a,o+=a-1+37*(a-1),e[0]=o,e[1]=s,e[2]=f,e[3]=l,e[4]=u,e[5]=c,e[6]=d,e[7]=p,e[8]=h,e[9]=y,e[10]=m,e[11]=g,e[12]=b,e[13]=v,e[14]=w,e[15]=x}function b(e,n){let r=a(),i=a(),o=a(),s=a(),l=a(),u=a(),c=a(),d=a(),p=a();m(r,e[1],e[0]),m(p,n[1],n[0]),g(r,r,p),y(i,e[0],e[1]),y(p,n[0],n[1]),g(i,i,p),g(o,e[3],n[3]),g(o,o,f),g(s,e[2],n[2]),y(s,s,s),m(l,i,r),m(u,s,o),y(c,s,o),y(d,i,r),g(e[0],l,u),g(e[1],d,c),g(e[2],c,u),g(e[3],l,d)}function v(e,n,r){for(let i=0;i<4;i++)p(e[i],n[i],r)}function w(e,n){let r=a(),i=a(),o=a();(function(e,n){let r;let i=a();for(r=0;r<16;r++)i[r]=n[r];for(r=253;r>=0;r--)g(i,i,i),2!==r&&4!==r&&g(i,i,n);for(r=0;r<16;r++)e[r]=i[r]})(o,n[2]),g(r,n[0],o),g(i,n[1],o),h(e,i),e[31]^=function(e){let n=new Uint8Array(32);return h(n,e),1&n[0]}(r)<<7}function x(e,n){let r=[a(),a(),a(),a()];c(r[0],l),c(r[1],u),c(r[2],s),g(r[3],l,u),function(e,n,r){c(e[0],o),c(e[1],s),c(e[2],s),c(e[3],o);for(let i=255;i>=0;--i){let a=r[i/8|0]>>(7&i)&1;v(e,n,a),b(n,e),b(e,e),v(e,n,a)}}(e,r,n)}n._w=function(e){if(e.length!==n.aP)throw Error(`ed25519: seed must be ${n.aP} bytes`);let r=(0,i.hash)(e);r[0]&=248,r[31]&=127,r[31]|=64;let o=new Uint8Array(32),s=[a(),a(),a(),a()];x(s,r),w(o,s);let f=new Uint8Array(64);return f.set(e),f.set(o,32),{publicKey:o,secretKey:f}};let T=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function C(e,n){let r,i,a,o;for(i=63;i>=32;--i){for(r=0,a=i-32,o=i-12;a<o;++a)n[a]+=r-16*n[i]*T[a-(i-32)],r=Math.floor((n[a]+128)/256),n[a]-=256*r;n[a]+=r,n[i]=0}for(a=0,r=0;a<32;a++)n[a]+=r-(n[31]>>4)*T[a],r=n[a]>>8,n[a]&=255;for(a=0;a<32;a++)n[a]-=r*T[a];for(i=0;i<32;i++)n[i+1]+=n[i]>>8,e[i]=255&n[i]}function M(e){let n=new Float64Array(64);for(let r=0;r<64;r++)n[r]=e[r];for(let n=0;n<64;n++)e[n]=0;C(e,n)}n.Xx=function(e,n){let r=new Float64Array(64),o=[a(),a(),a(),a()],s=(0,i.hash)(e.subarray(0,32));s[0]&=248,s[31]&=127,s[31]|=64;let f=new Uint8Array(64);f.set(s.subarray(32),32);let l=new i.SHA512;l.update(f.subarray(32)),l.update(n);let u=l.digest();
1l.clean(),M(u),x(o,u),w(f,o),l.reset(),l.update(f.subarray(0,32)),l.update(e.subarray(32)),l.update(n);let c=l.digest();M(c);for(let e=0;e<32;e++)r[e]=u[e];for(let e=0;e<32;e++)for(let n=0;n<32;n++)r[e+n]+=c[e]*s[n];return C(f.subarray(32),r),f}},79984:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isSerializableHash=function(e){return void 0!==e.saveState&&void 0!==e.restoreState&&void 0!==e.cleanSavedState}},512:function(e,n,r){"use strict";var i=r(25629),a=r(17309),o=function(){function e(e,n,r,a){void 0===r&&(r=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=e,this._info=a;var o=i.hmac(this._hash,r,n);this._hmac=new i.HMAC(e,o),this._buffer=new Uint8Array(this._hmac.digestLength),this._bufpos=this._buffer.length}return e.prototype._fillBuffer=function(){this._counter[0]++;var e=this._counter[0];if(0===e)throw Error("hkdf: cannot expand more");this._hmac.reset(),e>1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},e.prototype.expand=function(e){for(var n=new Uint8Array(e),r=0;r<n.length;r++)this._bufpos===this._buffer.length&&this._fillBuffer(),n[r]=this._buffer[this._bufpos++];return n},e.prototype.clean=function(){this._hmac.clean(),a.wipe(this._buffer),a.wipe(this._counter),this._bufpos=0},e}();n.t=o},25629:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=r(79984),a=r(4153),o=r(17309),s=function(){function e(e,n){this._finished=!1,this._inner=new e,this._outer=new e,this.blockSize=this._outer.blockSize,this.digestLength=this._outer.digestLength;var r=new Uint8Array(this.blockSize);n.length>this.blockSize?this._inner.update(n).finish(r).clean():r.set(n);for(var a=0;a<r.length;a++)r[a]^=54;this._inner.update(r);for(var a=0;a<r.length;a++)r[a]^=106;this._outer.update(r),i.isSerializableHash(this._inner)&&i.isSerializableHash(this._outer)&&(this._innerKeyedState=this._inner.saveState(),this._outerKeyedState=this._outer.saveState()),o.wipe(r)}return e.prototype.reset=function(){if(!i.isSerializableHash(this._inner)||!i.isSerializableHash(this._outer))throw Error("hmac: can't reset() because hash doesn't implement restoreState()");return this._inner.restoreState(this._innerKeyedState),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},e.prototype.clean=function(){i.isSerializableHash(this._inner)&&this._inner.cleanSavedState(this._innerKeyedState),i.isSerializableHash(this._outer)&&this._outer.cleanSavedState(this._outerKeyedState),this._inner.clean(),this._outer.clean()},e.prototype.update=function(e){return this._inner.update(e),this},e.prototype.finish=function(e){return this._finished?this._outer.finish(e):(this._inner.finish(e),this._outer.update(e.subarray(0,this.digestLength)).finish(e),this._finished=!0),this},e.prototype.digest=function(){var e=new Uint8Array(this.digestLength);return this.finish(e),e},e.prototype.saveState=function(){if(!i.isSerializableHash(this._inner))throw Error("hmac: can't saveState() because hash doesn't implement it");return this._inner.saveState()},e.prototype.restoreState=function(e){if(!i.isSerializableHash(this._inner)||!i.isSerializableHash(this._outer))throw Error("hmac: can't restoreState() because hash doesn't implement it");return this._inner.restoreState(e),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},e.prototype.cleanSavedState=function(e){if(!i.isSerializableHash(this._inner))throw Error("hmac: can't cleanSavedState() because hash doesn't implement it");this._inner.cleanSavedState(e)},e}();n.HMAC=s,n.hmac=function(e,n,r){var i=new s(e,n);i.update(r);var a=i.digest();return i.clean(),a},n.equal=a.equal},97117:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.mul=Math.imul||function(e,n){var r=65535&e,i=65535&n;return r*i+((e>>>16&65535)*i+r*(n>>>16&65535)<<16>>>0)|0},n.add=function(e,n){return e+n|0},n.sub=function(e,n){return e-n|0},n.rotl=function(e,n){return e<<n|e>>>32-n},n.rotr=function(e,n){return e<<32-n|e>>>n},n.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},n.MAX_SAFE_INTEGER=9007199254740991,n.isSafeInteger=function(e){return n.isInteger(e)&&e>
1=-n.MAX_SAFE_INTEGER&&e<=n.MAX_SAFE_INTEGER}},63027:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=r(4153),a=r(17309);n.DIGEST_LENGTH=16;var o=function(){function e(e){this.digestLength=n.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var r=e[0]|e[1]<<8;this._r[0]=8191&r;var i=e[2]|e[3]<<8;this._r[1]=(r>>>13|i<<3)&8191;var a=e[4]|e[5]<<8;this._r[2]=(i>>>10|a<<6)&7939;var o=e[6]|e[7]<<8;this._r[3]=(a>>>7|o<<9)&8191;var s=e[8]|e[9]<<8;this._r[4]=(o>>>4|s<<12)&255,this._r[5]=s>>>1&8190;var f=e[10]|e[11]<<8;this._r[6]=(s>>>14|f<<2)&8191;var l=e[12]|e[13]<<8;this._r[7]=(f>>>11|l<<5)&8065;var u=e[14]|e[15]<<8;this._r[8]=(l>>>8|u<<8)&8191,this._r[9]=u>>>5&127,this._pad[0]=e[16]|e[17]<<8,this._pad[1]=e[18]|e[19]<<8,this._pad[2]=e[20]|e[21]<<8,this._pad[3]=e[22]|e[23]<<8,this._pad[4]=e[24]|e[25]<<8,this._pad[5]=e[26]|e[27]<<8,this._pad[6]=e[28]|e[29]<<8,this._pad[7]=e[30]|e[31]<<8}return e.prototype._blocks=function(e,n,r){for(var i=this._fin?0:2048,a=this._h[0],o=this._h[1],s=this._h[2],f=this._h[3],l=this._h[4],u=this._h[5],c=this._h[6],d=this._h[7],p=this._h[8],h=this._h[9],y=this._r[0],m=this._r[1],g=this._r[2],b=this._r[3],v=this._r[4],w=this._r[5],x=this._r[6],T=this._r[7],C=this._r[8],M=this._r[9];r>=16;){var A,E=e[n+0]|e[n+1]<<8;a+=8191&E;var I=e[n+2]|e[n+3]<<8;o+=(E>>>13|I<<3)&8191;var S=e[n+4]|e[n+5]<<8;s+=(I>>>10|S<<6)&8191;var k=e[n+6]|e[n+7]<<8;f+=(S>>>7|k<<9)&8191;var N=e[n+8]|e[n+9]<<8;l+=(k>>>4|N<<12)&8191,u+=N>>>1&8191;var j=e[n+10]|e[n+11]<<8;c+=(N>>>14|j<<2)&8191;var D=e[n+12]|e[n+13]<<8;d+=(j>>>11|D<<5)&8191;var _=e[n+14]|e[n+15]<<8;p+=(D>>>8|_<<8)&8191,h+=_>>>5|i;var O=0;O=(A=0+a*y+5*M*o+5*C*s+5*T*f+5*x*l)>>>13,A&=8191,A+=5*w*u+5*v*c+5*b*d+5*g*p+5*m*h,O+=A>>>13,A&=8191;var P=O;P+=a*m+o*y+5*M*s+5*C*f+5*T*l,O=P>>>13,P&=8191,P+=5*x*u+5*w*c+5*v*d+5*b*p+5*g*h,O+=P>>
1>13,P&=8191;var L=O;L+=a*g+o*m+s*y+5*M*f+5*C*l,O=L>>>13,L&=8191,L+=5*T*u+5*x*c+5*w*d+5*v*p+5*b*h,O+=L>>>13,L&=8191;var R=O;R+=a*b+o*g+s*m+f*y+5*M*l,O=R>>>13,R&=8191,R+=5*C*u+5*T*c+5*x*d+5*w*p+5*v*h,O+=R>>>13,R&=8191;var z=O;z+=a*v+o*b+s*g+f*m+l*y,O=z>>>13,z&=8191,z+=5*M*u+5*C*c+5*T*d+5*x*p+5*w*h,O+=z>>>13,z&=8191;var B=O;B+=a*w+o*v+s*b+f*g+l*m,O=B>>>13,B&=8191,B+=u*y+5*M*c+5*C*d+5*T*p+5*x*h,O+=B>>>13,B&=8191;var U=O;U+=a*x+o*w+s*v+f*b+l*g,O=U>>>13,U&=8191,U+=u*m+c*y+5*M*d+5*C*p+5*T*h,O+=U>>>13,U&=8191;var F=O;F+=a*T+o*x+s*w+f*v+l*b,O=F>>>13,F&=8191,F+=u*g+c*m+d*y+5*M*p+5*C*h,O+=F>>>13,F&=8191;var Z=O;Z+=a*C+o*T+s*x+f*w+l*v,O=Z>>>13,Z&=8191,Z+=u*b+c*g+d*m+p*y+5*M*h,O+=Z>>>13,Z&=8191;var W=O;W+=a*M+o*C+s*T+f*x+l*w,O=W>>>13,W&=8191,W+=u*v+c*b+d*g+p*m+h*y,O+=W>>>13,W&=8191,A=8191&(O=(O=(O<<2)+O|0)+A|0),O>>>=13,P+=O,a=A,o=P,s=L,f=R,l=z,u=B,c=U,d=F,p=Z,h=W,n+=16,r-=16}this._h[0]=a,this._h[1]=o,this._h[2]=s,this._h[3]=f,this._h[4]=l,this._h[5]=u,this._h[6]=c,this._h[7]=d,this._h[8]=p,this._h[9]=h},e.prototype.finish=function(e,n){void 0===n&&(n=0);var r,i,a,o,s=new Uint16Array(10);if(this._leftover){for(o=this._leftover,this._buffer[o++]=1;o<16;o++)this._buffer[o]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(r=this._h[1]>>>13,this._h[1]&=8191,o=2;o<10;o++)this._h[o]+=r,r=this._h[o]>>>13,this._h[o]&=8191;for(this._h[0]+=5*r,r=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=r,r=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=r,s[0]=this._h[0]+5,r=s[0]>>>13,s[0]&=8191,o=1;o<10;o++)s[o]=this._h[o]+r,r=s[o]>>>13,s[o]&=8191;for(s[9]-=8192,i=(1^r)-1,o=0;o<10;o++)s[o]&=i;for(o=0,i=~i;o<10;o++)this._h[o]=this._h[o]&i|s[o];for(o=1,this._h[0]=(this._h[0]|this._h[1]<<13)&65535,this._h[1]=(this._h[1]>>>3|this._h[2]<<10)&65535,this._h[2]=(this._h[2]>>>6|this._h[3]<<7)&65535,this._h[3]=(this._h[3]>>>9|this._h[4]<<4)&65535,this._h[4]=(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14)&65535,this._h[5]=(this._h[6]>>>2|this._h[7]<<11)&65535,this._h[6]=(this._h[7]>>>5|this._h[8]<<8)&65535,this._h[7]=(this._h[8]>>>8|this._h[9]<<5)&65535,a=this._h[0]+this._pad[0],this._h[0]=65535&a;o<8;o++)a=(this._h[o]+this._pad[o]|0)+(a>>>16)|0,this._h[o]=65535&a;return e[n+0]=this._h[0]>>>0,e[n+1]=this._h[0]>>>8,e[n+2]=this._h[1]>>>0,e[n+3]=this._h[1]>>>8,e[n+4]=this._h[2]>>>0,e[n+5]=this._h[2]>>>8,e[n+6]=this._h[3]>>>0,e[n+7]=this._h[3]>>>8,e[n+8]=this._h[4]>>>0,e[n+9]=this._h[4]>>>8,e[n+10]=this._h[5]>>>0,e[n+11]=this._h[5]>>>8,e[n+12]=this._h[6]>>>0,e[n+13]=this._h[6]>>>8,e[n+14]=this._h[7]>>>0,e[n+15]=this._h[7]>>>8,this._finished=!0,this},e.prototype.update=function(e){var n,r=0,i=e.length;if(this._leftover){(n=16-this._leftover)>i&&(n=i);for(var a=0;a<n;a++)this._buffer[this._leftover+a]=e[r+a];if(i-=n,r+=n,this._leftover+=n,this._leftover<16)return this;this._blocks(this._buffer,0,16),this._leftover=0}if(i>=16&&(n=i-i%16,this._blocks(e,r,n),r+=n,i-=n),i){for(var a=0;a<i;a++)this._buffer[this._leftover+a]=e[r+a];this._leftover+=i}return this},e.prototype.digest=function(){if(this._finished)throw Error("Poly1305 was finished");var e=new Uint8Array(16);return this.finish(e),e},e.prototype.clean=function(){return a.wipe(this._buffer),a.wipe(this._r),a.wipe(this._h),a.wipe(this._pad),this._leftover=0,this._fin=0,this._finished=!0,this},e}();n.Poly1305=o,n.oneTimeAuth=function(e,n){var r=new o(e);r.update(n);var i=r.digest();return r.clean(),i},n.equal=function(e,r){return e.length===n.DIGEST_LENGTH&&r.length===n.DIGEST_LENGTH&&i.equal(e,r)}},31416:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.randomStringForEntropy=n.randomString=n.randomUint32=n.randomBytes=n.defaultRandomSource=void 0;let i=r(46008),a=r(98099),o=r(17309);function s(e,r=n.defaultRandomSource){return r.randomBytes(e)}n.defaultRandomSource=new i.SystemRandomSource,n.randomBytes=s,n.randomUint32=function(e=n.defaultRandomSource){let r=s(4,e),i=(0,a.readUint32LE)(r);return(0,o.wipe)(r),i};let f="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function l(e,r=f,i=n.defaultRandomSource){if(r.length<2)throw Error("randomString charset is too short");if(r.length>256)throw Error("randomString charset is too long");let a="",l=r.length,u=256-256%l;for(;e>0;){let n=s(Math.ceil(256*e/u),i);for(let i=0;i<n.length&&e>0;i++){let o=n[i];o<u&&(a+=r.charAt(o%l),e--)}(0,o.wipe)(n)}return a}n.randomString=l,n.randomStringForEntropy=function(e,r=f,i=n.defaultRandomSource){return l(Math.ceil(e/(Math.log(r.length)/Math.LN2)),r,i)}},75455:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.BrowserRandomSource=void 0;
1class r{constructor(){this.isAvailable=!1,this.isInstantiated=!1;let e="undefined"!=typeof self?self.crypto||self.msCrypto:null;e&&void 0!==e.getRandomValues&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}randomBytes(e){if(!this.isAvailable||!this._crypto)throw Error("Browser random byte generator is not available.");let n=new Uint8Array(e);for(let e=0;e<n.length;e+=65536)this._crypto.getRandomValues(n.subarray(e,e+Math.min(n.length-e,65536)));return n}}n.BrowserRandomSource=r},58871:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.NodeRandomSource=void 0;let i=r(17309);class a{constructor(){this.isAvailable=!1,this.isInstantiated=!1;{let e=r(35883);e&&e.randomBytes&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}}randomBytes(e){if(!this.isAvailable||!this._crypto)throw Error("Node.js random byte generator is not available.");let n=this._crypto.randomBytes(e);if(n.length!==e)throw Error("NodeRandomSource: got fewer bytes than requested");let r=new Uint8Array(e);for(let e=0;e<r.length;e++)r[e]=n[e];return(0,i.wipe)(n),r}}n.NodeRandomSource=a},46008:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.SystemRandomSource=void 0;let i=r(75455),a=r(58871);class o{constructor(){if(this.isAvailable=!1,this.name="",this._source=new i.BrowserRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Browser";return}if(this._source=new a.NodeRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Node";return}}randomBytes(e){if(!this.isAvailable)throw Error("System random byte generator is not available.");return this._source.randomBytes(e)}}n.SystemRandomSource=o},73294:function(e,n,r){"use strict";var i=r(98099),a=r(17309);n.k=32,n.cn=64;var o=function(){function e(){this.digestLength=n.k,this.blockSize=n.cn,this._state=new Int32Array(8),this._temp=new Int32Array(64),this._buffer=new Uint8Array(128),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return e.prototype._initState=function(){this._state[0]=1779033703,this._state[1]=3144134277,this._state[2]=1013904242,this._state[3]=2773480762,this._state[4]=1359893119,this._state[5]=2600822924,this._state[6]=528734635,this._state[7]=1541459225},e.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},e.prototype.clean=function(){a.wipe(this._buffer),a.wipe(this._temp),this.reset()},e.prototype.update=function(e,n){if(void 0===n&&(n=e.length),this._finished)throw Error("SHA256: can't update because hash was finished.");var r=0;if(this._bytesHashed+=n,this._bufferLength>0){for(;this._bufferLength<this.blockSize&&n>0;)this._buffer[this._bufferLength++]=e[r++],n--;this._bufferLength===this.blockSize&&(f(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(n>=this.blockSize&&(r=f(this._temp,this._state,e,r,n),n%=this.blockSize);n>0;)this._buffer[this._bufferLength++]=e[r++],n--;return this},e.prototype.finish=function(e){if(!this._finished){var n=this._bytesHashed,r=this._bufferLength,a=n%64<56?64:128;this._buffer[r]=128;for(var o=r+1;o<a-8;o++)this._buffer[o]=0;i.writeUint32BE(n/536870912|0,this._buffer,a-8),i.writeUint32BE(n<<3,this._buffer,a-4),f(this._temp,this._state,this._buffer,0,a),this._finished=!0}for(var o=0;o<this.digestLength/4;o++)i.writeUint32BE(this._state[o],e,4*o);return this},e.prototype.digest=function(){var e=new Uint8Array(this.digestLength);return this.finish(e),e},e.prototype.saveState=function(){if(this._finished)throw Error("SHA256: cannot save finished state");return{state:new Int32Array(this._state),buffer:this._bufferLength>0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},e.prototype.restoreState=function(e){return this._state.set(e.state),this._bufferLength=e.bufferLength,e.buffer&&this._buffer.set(e.buffer),this._bytesHashed=e.bytesHashed,this._finished=!1,this},e.prototype.cleanSavedState=function(e){a.wipe(e.state),e.buffer&&a.wipe(e.buffer),e.bufferLength=0,e.bytesHashed=0},e}();n.mE=o;var s=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756
1734187,3204031479,3329325298]);function f(e,n,r,a,o){for(;o>=64;){for(var f=n[0],l=n[1],u=n[2],c=n[3],d=n[4],p=n[5],h=n[6],y=n[7],m=0;m<16;m++){var g=a+4*m;e[m]=i.readUint32BE(r,g)}for(var m=16;m<64;m++){var b=e[m-2],v=(b>>>17|b<<15)^(b>>>19|b<<13)^b>>>10,w=((b=e[m-15])>>>7|b<<25)^(b>>>18|b<<14)^b>>>3;e[m]=(v+e[m-7]|0)+(w+e[m-16]|0)}for(var m=0;m<64;m++){var v=(((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&p^~d&h)|0)+(y+(s[m]+e[m]|0)|0)|0,w=((f>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10))+(f&l^f&u^l&u)|0;y=h,h=p,p=d,d=c+v|0,c=u,u=l,l=f,f=v+w|0}n[0]+=f,n[1]+=l,n[2]+=u,n[3]+=c,n[4]+=d,n[5]+=p,n[6]+=h,n[7]+=y,a+=64,o-=64}return a}n.vp=function(e){var n=new o;n.update(e);var r=n.digest();return n.clean(),r}},93350:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=r(98099),a=r(17309);n.DIGEST_LENGTH=64,n.BLOCK_SIZE=128;var o=function(){function e(){this.digestLength=n.DIGEST_LENGTH,this.blockSize=n.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return e.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},e.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},e.prototype.clean=function(){a.wipe(this._buffer),a.wipe(this._tempHi),a.wipe(this._tempLo),this.reset()},e.prototype.update=function(e,r){if(void 0===r&&(r=e.length),this._finished)throw Error("SHA512: can't update because hash was finished.");var i=0;if(this._bytesHashed+=r,this._bufferLength>0){for(;this._bufferLength<n.BLOCK_SIZE&&r>0;)this._buffer[this._bufferLength++]=e[i++],r--;this._bufferLength===this.blockSize&&(f(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(r>=this.blockSize&&(i=f(this._tempHi,this._tempLo,this._stateHi,this._stateLo,e,i,r),r%=this.blockSize);r>0;)this._buffer[this._bufferLength++]=e[i++],r--;return this},e.prototype.finish=function(e){if(!this._finished){var n=this._bytesHashed,r=this._bufferLength,a=n%128<112?128:256;this._buffer[r]=128;for(var o=r+1;o<a-8;o++)this._buffer[o]=0;i.writeUint32BE(n/536870912|0,this._buffer,a-8),i.writeUint32BE(n<<3,this._buffer,a-4),f(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,a),this._finished=!0}for(var o=0;o<this.digestLength/8;o++)i.writeUint32BE(this._stateHi[o],e,8*o),i.writeUint32BE(this._stateLo[o],e,8*o+4);return this},e.prototype.digest=function(){var e=new Uint8Array(this.digestLength);return this.finish(e),e},e.prototype.saveState=function(){if(this._finished)throw Error("SHA256: cannot save finished state");return{stateHi:new Int32Array(this._stateHi),stateLo:new Int32Array(this._stateLo),buffer:this._bufferLength>0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},e.prototype.restoreState=function(e){return this._stateHi.set(e.stateHi),this._stateLo.set(e.stateLo),this._bufferLength=e.bufferLength,e.buffer&&this._buffer.set(e.buffer),this._bytesHashed=e.bytesHashed,this._finished=!1,this},e.prototype.cleanSavedState=function(e){a.wipe(e.stateHi),a.wipe(e.stateLo),e.buffer&&a.wipe(e.buffer),e.bufferLength=0,e.bytesHashed=0},e}();n.SHA512=o;var s=new Int32Array([1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,
11322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591]);function f(e,n,r,a,o,f,l){for(var u,c,d,p,h,y,m,g,b=r[0],v=r[1],w=r[2],x=r[3],T=r[4],C=r[5],M=r[6],A=r[7],E=a[0],I=a[1],S=a[2],k=a[3],N=a[4],j=a[5],D=a[6],_=a[7];l>=128;){for(var O=0;O<16;O++){var P=8*O+f;e[O]=i.readUint32BE(o,P),n[O]=i.readUint32BE(o,P+4)}for(var O=0;O<80;O++){var L=b,R=v,z=w,B=x,U=T,F=C,Z=M,W=A,H=E,G=I,q=S,Y=k,V=N,Q=j,K=D,$=_;if(u=A,h=65535&(c=_),y=c>>>16,m=65535&u,g=u>>>16,u=(T>>>14|N<<18)^(T>>>18|N<<14)^(N>>>9|T<<23),h+=65535&(c=(N>>>14|T<<18)^(N>>>18|T<<14)^(T>>>9|N<<23)),y+=c>>>16,m+=65535&u,g+=u>>>16,u=T&C^~T&M,h+=65535&(c=N&j^~N&D),y+=c>>>16,m+=65535&u,g+=u>>>16,u=s[2*O],h+=65535&(c=s[2*O+1]),y+=c>>>16,m+=65535&u,g+=u>>>16,u=e[O%16],h+=65535&(c=n[O%16]),y+=c>>>16,m+=65535&u,g+=u>>>16,y+=h>>>16,m+=y>>>16,g+=m>>>16,d=65535&m|g<<16,p=65535&h|y<<16,u=d,h=65535&(c=p),y=c>>>16,m=65535&u,g=u>>>16,u=(b>>>28|E<<4)^(E>>>2|b<<30)^(E>>>7|b<<25),h+=65535&(c=(E>>>28|b<<4)^(b>>>2|E<<30)^(b>>>7|E<<25)),y+=c>>>16,m+=65535&u,g+=u>>>16,u=b&v^b&w^v&w,h+=65535&(c=E&I^E&S^I&S),y+=c>>>16,m+=65535&u,g+=u>>>16,y+=h>>>16,m+=y>>>16,g+=m>>>16,W=65535&m|g<<16,$=65535&h|y<<16,u=B,h=65535&(c=Y),y=c>>>16,m=65535&u,g=u>>>16,u=d,h+=65535&(c=p),y+=c>>>16,m+=65535&u,g+=u>>>16,y+=h>>>16,m+=y>>>16,g+=m>>>16,B=65535&m|g<<16,Y=65535&h|y<<16,v=L,w=R,x=z,T=B,C=U,M=F,A=Z,b=W,I=H,S=G,k=q,N=Y,j=V,D=Q,_=K,E=$,O%16==15)for(var P=0;P<16;P++)u=e[P],h=65535&(c=n[P]),y=c>>>16,m=65535&u,g=u>>>16,u=e[(P+9)%16],h+=65535&(c=n[(P+9)%16]),y+=c>>>16,m+=65535&u,g+=u>>>16,u=((d=e[(P+1)%16])>>>1|(p=n[(P+1)%16])<<31)^(d>>>8|p<<24)^d>>>7,h+=65535&(c=(p>>>1|d<<31)^(p>>>8|d<<24)^(p>>>7|d<<25)),y+=c>>>16,m+=65535&u,g+=u>>>16,u=((d=e[(P+14)%16])>>>19|(p=n[(P+14)%16])<<13)^(p>>>29|d<<3)^d>>>6,h+=65535&(c=(p>>>19|d<<13)^(d>>>29|p<<3)^(p>>>6|d<<26)),y+=c>>>16,m+=65535&u,g+=u>>>16,y+=h>>>16,m+=y>>>16,g+=m>>>16,e[P]=65535&m|g<<16,n[P]=65535&h|y<<16}u=b,h=65535&(c=E),y=c>>>16,m=65535&u,g=u>>>16,u=r[0],h+=65535&(c=a[0]),y+=c>>>16,m+=65535&u,g+=u>>>16,y+=h>>>16,m+=y>>>16,g+=m>>>16,r[0]=b=65535&m|g<<16,a[0]=E=65535&h|y<<16,u=v,h=65535&(c=I),y=c>>>16,m=65535&u,g=u>>>16,u=r[1],h+=65535&(c=a[1]),y+=c>>>16,m+=65535&u,g+=u>>>16,y+=h>>>16,m+=y>>>16,g+=m>>>16,r[1]=v=65535&m|g<<16,a[1]=I=65535&h|y<<16,u=w,h=65535&(c=S),y=c>>>16,m=65535&u,g=u>>>16,u=r[2],h+=65535&(c=a[2]),y+=c>>>16,m+=65535&u,g+=u>>>16,y+=h>>>16,m+=y>>>16,g+=m>>>16,r[2]=w=65535&m|g<<16,a[2]=S=65535&h|y<<16,u=x,h=65535&(c=k),y=c>>>16,m=65535&u,g=u>>>16,u=r[3],h+=65535&(c=a[3]),y+=c>>>16,m+=65535&u,g+=u>>>16,y+=h>>>16,m+=y>>>16,g+=m>>>16,r[3]=x=65535&m|g<<16,a[3]=k=65535&h|y<<16,u=T,h=65535&(c=N),y=c>>>16,m=65535&u,g=u>>>16,u=r[4],h+=65535&(c=a[4]),y+=c>>>16,m+=65535&u,g+=u>>>16,y+=h>>>16,m+=y>>>16,g+=m>>>16,r[4]=T=65535&m|g<<16,a[4]=N=65535&h|y<<16,u=C,h=65535&(c=j),y=c>>>16,m=65535&u,g=u>>>16,u=r[5],h+=65535&(c=a[5]),y+=c>>>16,m+=65535&u,g+=u>>>16,y+=h>>>16,m+=y>>>16,g+=m>>>16,r[5]=C=65535&m|g<<16,a[5]=j=65535&h|y<<16,u=M,h=65535&(c=D),y=c>>>16,m=65535&u,g=u>>>16,u=r[6],h+=65535&(c=a[6]),y+=c>>>16,m+=65535&u,g+=u>>>16,y+=h>>>16,m+=y>>>16,g+=m>>>16,r[6]=M=65535&m|g<<16,a[6]=D=65535&h|y<<16,u=A,h=65535&(c=_),y=c>>>16,m=65535&u,g=u>>>16,u=r[7],h+=65535&(c=a[7]),y+=c>>>16,m+=65535&u,g+=u>>>16,y+=h>>>16,m+=y>>>16,g+=m>>>16,r[7]=A=65535&m|g<<16,a[7]=_=65535&h|y<<16,f+=128,l-=128}return f}n.hash=function(e){var n=new o;n.update(e);var r=n.digest();return n.clean(),r}},17309:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.wipe=function(e){for(var n=0;n<e.length;n++)e[n]=0;return e}},57664:function(e,n,r){"use strict";n.gi=n.Au=n.KS=n.kz=void 0;let i=r(31416),a=r(17309);function o(e){let n=new Float64Array(16);if(e)for(let r=0;r<e.length;r++)n[r]=e[r];return n}n.kz=32,n.KS=32;let s=new Uint8Array(32);s[0]=9;let f=o([56129,1]);function l(e){let n=1;for(let r=0;r<16;r++){let i=e[r]+n+65535;n=Math.floor(i/65536),e[r]=i-65536*n}e[0]+=n-1+37*(n-1)}function u(e,n,r){let i=~(r-1);for(let r=0;r<16;r++){let a=i&(e[r]^n[r]);e[r]^=a,n[r]^=a}}function c(e,n,r){for(let i=0;i<16;i++)e[i]=n[i]+r[i]}function d(e,n,r){for(let i=0;i<16;i++)e[i]=n[i]-r[i]}function p(e,n,r){let i,a,o=0,s=0,f=0,l=0,u=0,c=0,d=0,p=0,h=0,y=0,m=0,g=0,b=0,v=0,w=0,x=0,T=0,C=0,M=0,A=0,E=0,I=0,S=0,k=0,N=0,j=0,D=0,_=0,O=0,P=0,L=0,R=r[0],z=r[1],B=r[2],U=r[3],F=r[4],Z=r[5],W=r[6],H=r[7],G=r[8],q=r[9],Y=r[10],V=r[11],Q=r[12],K=r[13],$=r[14],J=r[15];o+=(i=n[0])*R,s+=i*z,f+=i*B,l+=i*U,u+=i*F,c+=i*Z,d+=i*W,p+=i*H,h+=i*G,y+=i*q,m+=i*Y,g+=i*V,b+=i*Q,v+=i*K,w+=i*$,x+=i*J,s+=(i=n[1])*R,f+=i*z,l+=i*B,u+=i*U,c+=i*F,d+=i*Z,p+=i*W,h+=i*H,y+=i*G,m+=i*q,g+=i*Y,b+=i*V,v+=i*Q,w+=i*K,x+=i*$,T+=i*J,f+=(i=n[2])*R,l+=i*z,u+=i*B,c+=i*U,d+=i*F,p+=i*Z,h+=i*W,y+=i*H,m+=i*G,g+=i*q,b+=i*Y,v+=i*V,w+=i*Q,x+=i*K,T+=i*$,C+=i*J,l+=(i=n[3])*R,u+=i*z,c+=i*B,d+=i*U,p+=i*F,h+=i*Z,y+=i*W,m+=i*H,g+=i*G,b+=i*q,v+=i*Y,w+=i*V,x+=i*Q,T+=i*K,C+=i*$,M+=i*J,u+=(i=n[4])*R,c+=i*z,d+=i*B,p+=i*U,h+=i*F,y+=i*Z,m+=i*W,g+=i*H,b+=i*G,v+=i*q,w+=i*Y,x+=i*V,T+=i*Q,C+=i*K,M+=i*$,A+=i*J,c+=(i=n[5])*R,d+=i*z,p+=i*B,h+=i*U,y+=i*F,m+=i*Z,g+=i*W,b+=i*H,v+=i*G,w+=i*q,x+=i*Y,T+=i*V,C+=i*Q,M+=i*K,A+=i*$,E+=i*J,d+=(i=n[6])*R,p+=i*z,h+=i*B,y+=i*U,m+=i*F,g+=i*Z,b+=i*W,v+=i*H,w+=i*G,x+=i*q,T+=i*Y,C+=i*V,M+=i*Q,A+=i*K,E+=i*$,I+=i*J,p+=(i=n[7])*R,h+=i*z,y+=i*B,m+=i*U,g+=i*F,b+=i*Z,v+=i*W,w+=i*H,x+=i*G,T+=i*q,C+=i*Y,M+=i*V,A+=i*Q,E+=i*K,I+=i*$,S+=i*J,h+=(i=n[8])*R,y+=i*z,m+=i*B,g+=i*U,b+=i*F,v+=i*Z,w+=i*W,x+=i*H,T+=i*G,C+=i*q,M+=i*Y,A+=i*V,E+=i*Q,I+=i*K,S+=i*$,k+=i*J,y+=(i=n[9])*R,m+=i*z,g+=i*B,b+=i*U,v+=i*F,w+=i*Z,x+=i*W,T+=i*H,C+=i*G,M+=i*q,A+=i*Y,E+=i*V,I+=i*Q,S+=i*K,k+=i*$,N+=i*J,m+=(i=n[10])*R,g+=i*z,b+=i*B,v+=i*U,w+=i*F,x+=i*Z,T+=i*W,C+=i*H,M+=i*G,A+=i*q,E+=i*Y,I+=i*V,S+=i*Q,k+=i*K,N+=i*$,j+=i*J,g+=(i=n[11])*R,b+=i*z,v+=i*B,w+=i*U,x+=i*F,T+=i*Z,C+=i*W,M+=i*H,A+=i*G,E+=i*q,I+=i*Y,S+=i*V,k+=i*Q,N+=i*K,j+=i*$,D+=i*J,b+=(i=n[12])*
1R,v+=i*z,w+=i*B,x+=i*U,T+=i*F,C+=i*Z,M+=i*W,A+=i*H,E+=i*G,I+=i*q,S+=i*Y,k+=i*V,N+=i*Q,j+=i*K,D+=i*$,_+=i*J,v+=(i=n[13])*R,w+=i*z,x+=i*B,T+=i*U,C+=i*F,M+=i*Z,A+=i*W,E+=i*H,I+=i*G,S+=i*q,k+=i*Y,N+=i*V,j+=i*Q,D+=i*K,_+=i*$,O+=i*J,w+=(i=n[14])*R,x+=i*z,T+=i*B,C+=i*U,M+=i*F,A+=i*Z,E+=i*W,I+=i*H,S+=i*G,k+=i*q,N+=i*Y,j+=i*V,D+=i*Q,_+=i*K,O+=i*$,P+=i*J,x+=(i=n[15])*R,T+=i*z,C+=i*B,M+=i*U,A+=i*F,E+=i*Z,I+=i*W,S+=i*H,k+=i*G,N+=i*q,j+=i*Y,D+=i*V,_+=i*Q,O+=i*K,P+=i*$,L+=i*J,o+=38*T,s+=38*C,f+=38*M,l+=38*A,u+=38*E,c+=38*I,d+=38*S,p+=38*k,h+=38*N,y+=38*j,m+=38*D,g+=38*_,b+=38*O,v+=38*P,w+=38*L,a=Math.floor((i=o+(a=1)+65535)/65536),o=i-65536*a,a=Math.floor((i=s+a+65535)/65536),s=i-65536*a,a=Math.floor((i=f+a+65535)/65536),f=i-65536*a,a=Math.floor((i=l+a+65535)/65536),l=i-65536*a,a=Math.floor((i=u+a+65535)/65536),u=i-65536*a,a=Math.floor((i=c+a+65535)/65536),c=i-65536*a,a=Math.floor((i=d+a+65535)/65536),d=i-65536*a,a=Math.floor((i=p+a+65535)/65536),p=i-65536*a,a=Math.floor((i=h+a+65535)/65536),h=i-65536*a,a=Math.floor((i=y+a+65535)/65536),y=i-65536*a,a=Math.floor((i=m+a+65535)/65536),m=i-65536*a,a=Math.floor((i=g+a+65535)/65536),g=i-65536*a,a=Math.floor((i=b+a+65535)/65536),b=i-65536*a,a=Math.floor((i=v+a+65535)/65536),v=i-65536*a,a=Math.floor((i=w+a+65535)/65536),w=i-65536*a,a=Math.floor((i=x+a+65535)/65536),x=i-65536*a,o+=a-1+37*(a-1),a=Math.floor((i=o+(a=1)+65535)/65536),o=i-65536*a,a=Math.floor((i=s+a+65535)/65536),s=i-65536*a,a=Math.floor((i=f+a+65535)/65536),f=i-65536*a,a=Math.floor((i=l+a+65535)/65536),l=i-65536*a,a=Math.floor((i=u+a+65535)/65536),u=i-65536*a,a=Math.floor((i=c+a+65535)/65536),c=i-65536*a,a=Math.floor((i=d+a+65535)/65536),d=i-65536*a,a=Math.floor((i=p+a+65535)/65536),p=i-65536*a,a=Math.floor((i=h+a+65535)/65536),h=i-65536*a,a=Math.floor((i=y+a+65535)/65536),y=i-65536*a,a=Math.floor((i=m+a+65535)/65536),m=i-65536*a,a=Math.floor((i=g+a+65535)/65536),g=i-65536*a,a=Math.floor((i=b+a+65535)/65536),b=i-65536*a,a=Math.floor((i=v+a+65535)/65536),v=i-65536*a,a=Math.floor((i=w+a+65535)/65536),w=i-65536*a,a=Math.floor((i=x+a+65535)/65536),x=i-65536*a,o+=a-1+37*(a-1),e[0]=o,e[1]=s,e[2]=f,e[3]=l,e[4]=u,e[5]=c,e[6]=d,e[7]=p,e[8]=h,e[9]=y,e[10]=m,e[11]=g,e[12]=b,e[13]=v,e[14]=w,e[15]=x}function h(e,n){let r=new Uint8Array(32),i=new Float64Array(80),a=o(),s=o(),h=o(),y=o(),m=o(),g=o();for(let n=0;n<31;n++)r[n]=e[n];r[31]=127&e[31]|64,r[0]&=248,function(e,n){for(let r=0;r<16;r++)e[r]=n[2*r]+(n[2*r+1]<<8);e[15]&=32767}(i,n);for(let e=0;e<16;e++)s[e]=i[e];a[0]=y[0]=1;for(let e=254;e>=0;--e){let n=r[e>>>3]>>>(7&e)&1;u(a,s,n),u(h,y,n),c(m,a,h),d(a,a,h),c(h,s,y),d(s,s,y),p(y,m,m),p(g,a,a),p(a,h,a),p(h,s,m),c(m,a,h),d(a,a,h),p(s,a,a),d(h,y,g),p(a,h,f),c(a,a,y),p(h,h,a),p(a,y,g),p(y,s,i),p(s,m,m),u(a,s,n),u(h,y,n)}for(let e=0;e<16;e++)i[e+16]=a[e],i[e+32]=h[e],i[e+48]=s[e],i[e+64]=y[e];let b=i.subarray(32),v=i.subarray(16);!function(e,n){let r=o();for(let e=0;e<16;e++)r[e]=n[e];for(let e=253;e>=0;e--)p(r,r,r),2!==e&&4!==e&&p(r,r,n);for(let n=0;n<16;n++)e[n]=r[n]}(b,b),p(v,v,b);let w=new Uint8Array(32);return!function(e,n){let r=o(),i=o();for(let e=0;e<16;e++)i[e]=n[e];l(i),l(i),l(i);for(let e=0;e<2;e++){r[0]=i[0]-65517;for(let e=1;e<15;e++)r[e]=i[e]-65535-(r[e-1]>>16&1),r[e-1]&=65535;r[15]=i[15]-32767-(r[14]>>16&1);let e=r[15]>>16&1;r[14]&=65535,u(i,r,1-e)}for(let n=0;n<16;n++)e[2*n]=255&i[n],e[2*n+1]=i[n]>>8}(w,v),w}n.Au=function(e){let r=(0,i.randomBytes)(32,e),o=function(e){if(e.length!==n.KS)throw Error(`x25519: seed must be ${n.KS} bytes`);let r=new Uint8Array(e);return{publicKey:h(r,s),secretKey:r}}(r);return(0,a.wipe)(r),o},n.gi=function(e,r,i=!1){if(e.length!==n.kz)throw Error("X25519: incorrect secret key length");if(r.length!==n.kz)throw Error("X25519: incorrect public key length");let a=h(e,r);if(i){let e=0;for(let n=0;n<a.length;n++)e|=a[n];if(0===e)throw Error("X25519: invalid shared key")}return a}},22555:function(e,n,r){"use strict";r.d(n,{IsU:function(){return f},Lll:function(){return c},M8s:function(){return d},Nj4:function(){return h},OZ$:function(){return x},WNf:function(){return s},XYF:function(){return u},YY$:function(){return l},ZfX:function(){return v},_dw:function(){return m},eEd:function(){return g},gL9:function(){return E}
1,kJW:function(){return i},m3x:function(){return p},mgq:function(){return o},nRj:function(){return T},qry:function(){return a},rBG:function(){return w},spE:function(){return A},u6G:function(){return y},xVk:function(){return b}});var i={chain:"ETH",chainId:1,ens:{registry:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},explorers:[{name:"etherscan",url:"https://etherscan.io",standard:"EIP3091"},{name:"blockscout",url:"https://eth.blockscout.com",standard:"EIP3091",icon:{url:"ipfs://QmYtUimyqHkkFxYdbXXRbUqNg2VLPUg6Uu2C2nmFWowiZM",width:551,height:540,format:"png"}},{name:"dexguru",url:"https://ethereum.dex.guru",standard:"EIP3091",icon:{url:"ipfs://QmRaASKRSjQ5btoUQ2rNTJNxKtx2a2RoewgA7DMQkLVEne",width:83,height:82,format:"svg"}}],faucets:[],features:[{name:"EIP155"},{name:"EIP1559"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png",width:512,height:512,format:"png"},infoURL:"https://ethereum.org",name:"Ethereum Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},networkId:1,redFlags:[],rpc:["https://1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.infura.io/v3/${INFURA_API_KEY}","wss://mainnet.infura.io/ws/v3/${INFURA_API_KEY}","https://eth-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://api.mycryptoapi.com/eth","https://cloudflare-eth.com","https://ethereum-rpc.publicnode.com","wss://ethereum-rpc.publicnode.com","https://mainnet.gateway.tenderly.co","wss://mainnet.gateway.tenderly.co","https://rpc.blocknative.com/boost","https://rpc.flashbots.net","https://rpc.flashbots.net/fast","https://rpc.mevblocker.io","https://rpc.mevblocker.io/fast","https://rpc.mevblocker.io/noreverts","https://rpc.mevblocker.io/fullprivacy","https://eth.drpc.org","wss://eth.drpc.org"],shortName:"eth",slip44:60,slug:"ethereum",testnet:!1},a={chain:"ETH",chainId:10,explorers:[{name:"etherscan",url:"https://optimistic.etherscan.io",standard:"EIP3091"},{name:"blockscout",url:"https://optimism.blockscout.com",standard:"EIP3091",icon:{url:"ipfs://QmYtUimyqHkkFxYdbXXRbUqNg2VLPUg6Uu2C2nmFWowiZM",width:551,height:540,format:"png"}},{name:"dexguru",url:"https://optimism.dex.guru",standard:"EIP3091",icon:{url:"ipfs://QmRaASKRSjQ5btoUQ2rNTJNxKtx2a2RoewgA7DMQkLVEne",width:83,height:82,format:"svg"}}],faucets:[],features:[],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/optimism/512.png",width:512,height:512,format:"png"},infoURL:"https://optimism.io",name:"OP Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},networkId:10,redFlags:[],rpc:["https://10.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://optimism-mainnet.infura.io/v3/${INFURA_API_KEY}","https://mainnet.optimism.io","https://optimism.publicnode.com","wss://optimism.publicnode.com","https://optimism.gateway.tenderly.co","wss://optimism.gateway.tenderly.co","https://optimism-rpc.publicnode.com","wss://optimism-rpc.publicnode.com","https://optimism.drpc.org","wss://optimism.drpc.org"],shortName:"oeth",slug:"optimism",testnet:!1},o={chain:"Polygon",chainId:137,explorers:[{name:"polygonscan",url:"https://polygonscan.com",standard:"EIP3091"},{name:"dexguru",url:"https://polygon.dex.guru",standard:"EIP3091",icon:{url:"ipfs://QmRaASKRSjQ5btoUQ2rNTJNxKtx2a2RoewgA7DMQkLVEne",width:83,height:82,format:"svg"}}],faucets:[],features:[],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/polygon/512.png",width:512,height:512,format:"png"},infoURL:"https://polygon.technology/",name:"Polygon Mainnet",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},networkId:137,redFlags:[],rpc:["https://137.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://polygon-mainnet.infura.io/v3/${INFURA_API_KEY}","https://polygon-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://polygon-rpc.com/","https://rpc-mainnet.matic.network","https://matic-mainnet.chainstacklabs.com","https://rpc-mainnet.maticvigil.com","https://rpc-mainnet.matic.quiknode.pro","https://matic-mainnet-full-rpc.bwarelabs.com","https://polygon-bor-rpc.publicnode.com","wss://polygon-bor-rpc.publicnode.com","https://polygon.gateway.tenderly.co","wss://polygon.gateway.tenderly.co","https://polygon.drpc.org","wss://polygon.drpc.org"],shortName:"matic",slip44:966,slug:"polygon",testnet:!1},s={chain:"Flag",chainId:147,explorers:[{name:"Flag Mainnet Explorer",url:"https://flagscan.xyz",standard:"EIP3091"}],faucets:[],icon:{url:"ipfs://bafybeibcrxeavdxpwwmj4mc6hhp232nkrfbpvfpngcqux2v5rmoshycj3u",width:500,height:500,format:"png"},infoURL:"https://flagscan.xyz",name:"Flag Mainnet",nativeCurrency:{name:"Flag",symbol
1:"FLAG",decimals:18},networkId:147,rpc:["https://147.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.flagscan.xyz"],shortName:"FLAG",slug:"flag",testnet:!1},f={chain:"Flag",chainId:1147,explorers:[{name:"Flag Testnet Explorer",url:"https://testnet-explorer.flagscan.xyz",standard:"EIP3091"}],faucets:["https://faucet.flagscan.xyz"],icon:{url:"ipfs://bafybeibcrxeavdxpwwmj4mc6hhp232nkrfbpvfpngcqux2v5rmoshycj3u",width:500,height:500,format:"png"},infoURL:"https://testnet-explorer.flagscan.xyz",name:"Flag Testnet",nativeCurrency:{name:"Flag Testnet",symbol:"FLAG",decimals:18},networkId:1147,rpc:["https://1147.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.flagscan.xyz"],shortName:"tFLAG",slug:"flag-testnet",testnet:!0},l={chain:"ETH",chainId:1337,explorers:[],faucets:[],features:[],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png",width:512,height:512,format:"png"},name:"Localhost",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},networkId:1337,redFlags:[],rpc:["http://localhost:8545"],short
1Name:"local",slug:"localhost",testnet:!0},u={chain:"ETH",chainId:8453,explorers:[{name:"basescan",url:"https://basescan.org",standard:"none"},{name:"basescout",url:"https://base.blockscout.com",standard:"EIP3091",icon:{url:"ipfs://QmYtUimyqHkkFxYdbXXRbUqNg2VLPUg6Uu2C2nmFWowiZM",width:551,height:540,format:"png"}},{name:"dexguru",url:"https://base.dex.guru",standard:"EIP3091",icon:{url:"ipfs://QmRaASKRSjQ5btoUQ2rNTJNxKtx2a2RoewgA7DMQkLVEne",width:83,height:82,format:"svg"}}],faucets:[],features:[],icon:{url:"ipfs://QmW5Vn15HeRkScMfPcW12ZdZcC2yUASpu6eCsECRdEmjjj/base-512.png",width:512,height:512,format:"png"},infoURL:"https://base.org",name:"Base",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},networkId:8453,redFlags:[],rpc:["https://8453.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.base.org/","https://developer-access-mainnet.base.org/","https://base.gateway.tenderly.co","wss://base.gateway.tenderly.co","https://base-rpc.publicnode.com","wss://base-rpc.publicnode.com"],shortName:"base",slug:"base",status:"active",testnet:!1},c={chain:"CELO",chainId:42220,explorers:[{name:"blockscout",url:"https://explorer.celo.org",standard:"none"},{name:"Celoscan",url:"https://celoscan.io",standard:"EIP3091"}],faucets:[],infoURL:"https://docs.celo.org/",name:"Celo Mainnet",nativeCurrency:{name:"CELO",symbol:"CELO",decimals:18},networkId:42220,rpc:["https://42220.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://forno.celo.org","wss://forno.celo.org/ws"],shortName:"celo",slug:"celo",testnet:!1},d={chain:"CELO",chainId:44787,explorers:[{name:"Alfajoresscan",url:"https://alfajores.celoscan.io",standard:"EIP3091"}],faucets:["https://celo.org/developers/faucet","https://cauldron.pretoriaresearchlab.io/alfajores-faucet"],features:[],infoURL:"https://docs.celo.org/",name:"Celo Alfajores Testnet",nativeCurrency:{name:"CELO",symbol:"CELO",decimals:18},networkId:44787,redFlags:[],rpc:["https://44787.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://alfajores-forno.celo-testnet.org","wss://alfajores-forno.celo-testnet.org/ws"],shortName:"ALFA",slip44:1,slug:"celo-alfajores-testnet",testnet:!0},p={chain:"CELO",chainId:62320,explorers:[],faucets:["https://docs.google.com/forms/d/e/1FAIpQLSdfr1BwUTYepVmmvfVUDRCwALejZ-TUva2YujNpvrEmPAX2pg/viewform","https://cauldron.pretoriaresearchlab.io/baklava-faucet"],infoURL:"https://docs.celo.org/",name:"Celo Baklava Testnet",nativeCurrency:{name:"CELO",symbol:"CELO",decimals:18},networkId:62320,rpc:["https://62320.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://baklava-forno.celo-testnet.org"],shortName:"BKLV",slip44:1,slug:"celo-baklava-testnet",testnet:!0},h={chain:"Polygon",chainId:80001,explorers:[{name:"polygonscan",url:"https://mumbai.polygonscan.com",standard:"EIP3091"}],faucets:["https://faucet.polygon.technology/"],features:[],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/polygon/512.png",width:512,height:512,format:"png"},infoURL:"https://polygon.technology/",name:"Mumbai",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},networkId:80001,redFlags:[],rpc:["https://80001.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mumbai.maticvigil.com","https://polygon-mumbai-bor-rpc.publicnode.com","wss://polygon-mumbai-bor-rpc.publicnode.com","https://polygon-mumbai.gateway.tenderly.co","wss://polygon-mumbai.gateway.tenderly.co"],shortName:"maticmum",slip44:1,slug:"mumbai",status:"deprecated",testnet:!0,title:"Polygon Testnet Mumbai"},y={chain:"Polygon",chainId:80002,explorers:[{name:"polygonamoy",url:"https://www.oklink.com/amoy",standard:"EIP3091"}],faucets:["https://faucet.polygon.technology/"],features:[],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/polygon/512.png",width:512,height:512,format:"png"},infoURL:"https://polygon.technology/",name:"Polygon Amoy Testnet",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},networkId:80002,redFlags:[],rpc:["https://80002.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-amoy.polygon.technology","https://polygon-amoy-bor-rpc.publicnode.com","wss://polygon-amoy-bor-rpc.publicnode.com"],shortName:"polygonamoy",slip44:1,slug:"polygon-amoy-testnet",testnet:!0,title:"Polygon Amoy Testnet"},m={chain:"ETH",chainId:84532,explorers:[{name:"basescout",url:"https://base-sepolia.blockscout.com",standard:"EIP3091",icon:{url:"ipfs://QmYtUimyqHkkFxYdbXXRbUqNg2VLPUg6Uu2C2nmFWowiZM",width:551,height:540,format:"png"}}],faucets:[],icon:{url:"ipfs://QmaxRoHpxZd8PqccAynherrMznMufG6sdmHZLihkECXmZv",width:1200,height:1200,format:"png"}
1,infoURL:"https://base.org",name:"Base Sepolia Testnet",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},networkId:84532,rpc:["https://84532.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sepolia.base.org","https://base-sepolia-rpc.publicnode.com","wss://base-sepolia-rpc.publicnode.com"],shortName:"basesep",slip44:1,slug:"base-sepolia-testnet",testnet:!0},g={chain:"ETH",chainId:7777777,explorers:[{name:"Zora Network Explorer",url:"https://explorer.zora.energy",standard:"EIP3091"}],faucets:[],features:[],icon:{url:"ipfs://QmZ6qaRwTPFEZUspwMUjaxC6KhmzcELdRQcQzS3P72Dzts/Vector.svg",width:512,height:512,format:"svg"},infoURL:"https://zora.energy",name:"Zora",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},networkId:7777777,redFlags:[],rpc:["https://7777777.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.zora.energy/"],shortName:"zora",slug:"zora",testnet:!1},b={chain:"ETH",chainId:11155111,explorers:[{name:"etherscan-sepolia",url:"https://sepolia.etherscan.io",standard:"EIP3091"},{name:"otterscan-sepolia",url:"https://sepolia.otterscan.io",standard:"EIP3091"}],faucets:["http://fauceth.komputing.org?chain=11155111&address=${ADDRESS}"],features:[],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png",width:512,height:512,format:"png"},infoURL:"https://sepolia.otterscan.io",name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},networkId:11155111,redFlags:[],rpc:["https://11155111.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sepolia.infura.io/v3/${INFURA_API_KEY}","wss://sepolia.infura.io/v3/${INFURA_API_KEY}","https://rpc.sepolia.org","https://rpc2.sepolia.org","https://rpc-sepolia.rockx.com","https://rpc.sepolia.ethpandaops.io","https://sepolia.gateway.tenderly.co","wss://sepolia.gateway.tenderly.co","https://ethereum-sepolia-rpc.publicnode.com","wss://ethereum-sepolia-rpc.publicnode.com","https://sepolia.drpc.org","wss://sepolia.drpc.org"],shortName:"sep",slip44:1,slug:"sepolia",testnet:!0,title:"Ethereum Testnet Sepolia"},v={chain:"ETH",chainId:11155420,explorers:[{name:"opscout",url:"https://optimism-sepolia.blockscout.com",standard:"EIP3091",icon:{url:"ipfs://QmYtUimyqHkkFxYdbXXRbUqNg2VLPUg6Uu2C2nmFWowiZM",width:551,height:540,format:"png"}}],faucets:["https://app.optimism.io/faucet"],features:[],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/optimism/512.png",width:512,height:512,format:"png"},infoURL:"https://optimism.io",name:"OP Sepolia Testnet",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},networkId:11155420,redFlags:[],rpc:["https://11155420.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sepolia.optimism.io","https://optimism-sepolia.drpc.org","wss://optimism-sepolia.drpc.org"],shortName:"opsep",slip44:1,slug:"op-sepolia-testnet",testnet:!0},w={chain:"ETH",chainId:999999999,explorers:[{name:"Zora Sepolia Testnet Network Explorer",url:"https://sepolia.explorer.zora.energy",standard:"EIP3091"}],faucets:[],icon:{url:"ipfs://bafkreifvrly5tgd34xqeo67s4etmiu52bkroml7uy7eosizf57htf5nrzq",width:250,height:250,format:"png"},infoURL:"https://zora.energy",name:"Zora Sepolia Testnet",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},networkId:999999999,rpc:["https://999999999.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sepolia.rpc.zora.energy"],shortName:"zsep",slip44:1,slug:"zora-sepolia-testnet",testnet:!0};function x(e,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"http",i=[];if(e.rpc.forEach(e=>{if(("http"!==r||e.startsWith("http"))&&("ws"!==r||e.startsWith("ws"))){if(e.includes("${THIRDWEB_API_KEY}"))n?i.push(e.replace("${THIRDWEB_API_KEY}",n)+("undefined"!=typeof globalThis&&"APP_BUNDLE_ID"in globalThis&&globalThis.APP_BUNDLE_ID?`/?bundleId=${globalThis.APP_BUNDLE_ID}`:"")):i.push(e.replace("${THIRDWEB_API_KEY}",""));else{if(e.includes("${"))return;i.push(e)}}}),0===i.length)throw Error(`No RPC available for chainId "${e.chainId}" with mode ${r}`);return i}function T(e,n){try{return{...e,rpc:x(e,n)}}catch(n){return e}}let C={},M={};async function A(e){if("string"==typeof e&&e in M)return C[M[e]];if("number"==typeof e&&e in C)return C[e];
1let n=await fetch(`https://api.thirdweb.com/v1/chains/${e}`);if(!n.ok)return console.debug("[chains] fetchChain() failed",n.status,n.statusText),null;try{let e=await n.json();if(e.error)return console.debug("[chains] fetchChain() error",e.error),null;let r=e.data;return C[r.chainId]=r,M[r.slug]=r.chainId,e.data}catch(e){return console.debug("[chains] fetchChain() failed",e),null}}let E=[i,b,u,m,o,h,{chain:"ETH",chainId:42161,explorers:[{name:"Arbiscan",url:"https://arbiscan.io",standard:"EIP3091"},{name:"Arbitrum Explorer",url:"https://explorer.arbitrum.io",standard:"EIP3091"},{name:"dexguru",url:"https://arbitrum.dex.guru",standard:"EIP3091",icon:{url:"ipfs://QmRaASKRSjQ5btoUQ2rNTJNxKtx2a2RoewgA7DMQkLVEne",width:83,height:82,format:"svg"}}],faucets:[],features:[],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/arbitrum/512.png",width:512,height:512,format:"png"},infoURL:"https://arbitrum.io",name:"Arbitrum One",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},networkId:42161,parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.arbitrum.io"}]},redFlags:[],rpc:["https://42161.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://arbitrum-mainnet.infura.io/v3/${INFURA_API_KEY}","https://arb-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://arb1.arbitrum.io/rpc","https://arbitrum-one.publicnode.com","wss://arbitrum-one.publicnode.com"],shortName:"arb1",slug:"arbitrum",testnet:!1},{chain:"ETH",chainId:421614,explorers:[{name:"Arbitrum Sepolia Rollup Testnet Explorer",url:"https://sepolia-explorer.arbitrum.io",standard:"EIP3091"}],faucets:[],infoURL:"https://arbitrum.io",name:"Arbitrum Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},networkId:421614,parent:{type:"L2",chain:"eip155-11155111",bridges:[{url:"https://bridge.arbitrum.io"}]},rpc:["https://421614.rpc.thirdweb.com/${THIRDWEB_API_KEY}
1","https://sepolia-rollup.arbitrum.io/rpc","https://arbitrum-sepolia.infura.io/v3/${INFURA_API_KEY}"],shortName:"arb-sep",slip44:1,slug:"arbitrum-sepolia",testnet:!0,title:"Arbitrum Sepolia Rollup Testnet"},a,v,{chain:"BSC",chainId:56,explorers:[{name:"bscscan",url:"https://bscscan.com",standard:"EIP3091"},{name:"dexguru",url:"https://bnb.dex.guru",standard:"EIP3091",icon:{url:"ipfs://QmRaASKRSjQ5btoUQ2rNTJNxKtx2a2RoewgA7DMQkLVEne",width:83,height:82,format:"svg"}}],faucets:[],features:[],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/binance-coin/512.png",width:512,height:512,format:"png"},infoURL:"https://www.bnbchain.org/en",name:"BNB Smart Chain Mainnet",nativeCurrency:{name:"BNB Chain Native Token",symbol:"BNB",decimals:18},networkId:56,redFlags:[],rpc:["https://56.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bsc-dataseed1.bnbchain.org","https://bsc-dataseed2.bnbchain.org","https://bsc-dataseed3.bnbchain.org","https://bsc-dataseed4.bnbchain.org","https://bsc-dataseed1.defibit.io","https://bsc-dataseed2.defibit.io","https://bsc-dataseed3.defibit.io","https://bsc-dataseed4.defibit.io","https://bsc-dataseed1.ninicoin.io","https://bsc-dataseed2.ninicoin.io","https://bsc-dataseed3.ninicoin.io","https://bsc-dataseed4.ninicoin.io","https://bsc-rpc.publicnode.com","wss://bsc-rpc.publicnode.com","wss://bsc-ws-node.nariox.org"],shortName:"bnb",slip44:714,slug:"binance",testnet:!1},{chain:"BSC",chainId:97,explorers:[{name:"bscscan-testnet",url:"https://testnet.bscscan.com",standard:"EIP3091"}],faucets:["https://testnet.bnbchain.org/faucet-smart"],features:[],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/binance-coin/512.png",width:512,height:512,format:"png"},infoURL:"https://www.bnbchain.org/en",name:"BNB Smart Chain Testnet",nativeCurrency:{name:"BNB Chain Native Token",symbol:"tBNB",decimals:18},networkId:97,redFlags:[],rpc:["https://97.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://data-seed-prebsc-1-s1.bnbchain.org:8545","https://data-seed-prebsc-2-s1.bnbchain.org:8545","https://data-seed-prebsc-1-s2.bnbchain.org:8545","https://data-seed-prebsc-2-s2.bnbchain.org:8545","https://data-seed-prebsc-1-s3.bnbchain.org:8545","https://data-seed-prebsc-2-s3.bnbchain.org:8545","https://bsc-testnet-rpc.publicnode.com","wss://bsc-testnet-rpc.publicnode.com"],shortName:"bnbt",slip44:1,slug:"binance-testnet",testnet:!0},{chain:"FTM",chainId:250,explorers:[{name:"ftmscan",url:"https://ftmscan.com",standard:"EIP3091",icon:{url:"ipfs://QmRqbK449Fo9sJ3xMpkPbg6uV1weQj4yVV1xNMP9cdPmjf",width:73,height:73,format:"png"}},{name:"dexguru",url:"https://fantom.dex.guru",standard:"EIP3091",icon:{url:"ipfs://QmRaASKRSjQ5btoUQ2rNTJNxKtx2a2RoewgA7DMQkLVEne",width:83,height:82,format:"svg"}}],faucets:[],features:[],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/fantom/512.png",width:512,height:512,format:"png"},infoURL:"https://fantom.foundation",name:"Fantom Opera",nativeCurrency:{name:"Fantom",symbol:"FTM",decimals:18},networkId:250,redFlags:[],rpc:["https://250.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ftm.tools","https://fantom-rpc.publicnode.com","wss://fantom-rpc.publicnode.com","https://fantom.drpc.org","wss://fantom.drpc.org"],shortName:"ftm",slug:"fantom",testnet:!1},{chain:"FTM",chainId:4002,explorers:[{name:"ftmscan",url:"https://testnet.ftmscan.com",standard:"EIP3091",icon:{url:"ipfs://QmRqbK449Fo9sJ3xMpkPbg6uV1weQj4yVV1xNMP9cdPmjf",width:73,height:73,format:"png"}}],faucets:["https://faucet.fantom.network"],features:[],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/fantom/512.png",width:512,height:512,format:"png"},infoURL:"https://docs.fantom.foundation/quick-start/short-guide#fantom-testnet",name:"Fantom Testnet",nativeCurrency:{name:"Fantom",symbol:"FTM",decimals:18},networkId:4002,redFlags:[],rpc:["https://4002.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.fantom.network","https://fantom-testnet-rpc.publicnode.com","wss://fantom-testnet-rpc.publicnode.com","https://fantom-testnet.drpc.org","wss://fantom-testnet.drpc.org"],shortName:"tftm",slip44:1,slug:"fantom-testnet",testnet:!0},{chain:"AVAX",chainId:43114,explorers:[{name:"snowtrace",url:"https://snowtrace.io",standard:"EIP3091"}],faucets:[],features:[{name:"EIP1559"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/avalanche/512.png",width:512,height:512,format:"png"},infoURL:"https://www.avax.network/",name:"Avalanche C-Chain",nativeCurrency:{name:"Avalanche",symbol
1:"AVAX",decimals:18},networkId:43114,redFlags:[],rpc:["https://43114.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://avalanche-mainnet.infura.io/v3/${INFURA_API_KEY}","https://api.avax.network/ext/bc/C/rpc","https://avalanche-c-chain-rpc.publicnode.com","wss://avalanche-c-chain-rpc.publicnode.com"],shortName:"avax",slip44:9005,slug:"avalanche",testnet:!1},{chain:"AVAX",chainId:43113,explorers:[{name:"snowtrace",url:"https://testnet.snowtrace.io",standard:"EIP3091"}],faucets:["https://faucet.avax-test.network/"],features:[],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/avalanche/512.png",width:512,height:512,format:"png"},infoURL:"https://cchain.explorer.avax-test.network",name:"Avalanche Fuji Testnet",nativeCurrency:{name:"Avalanche",symbol:"AVAX",decimals:18},networkId:43113,redFlags:[],rpc:["https://43113.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.avax-test.network/ext/bc/C/rpc","https://avalanche-fuji-c-chain-rpc.publicnode.com","wss://avalanche-fuji-c-chain-rpc.publicnode.com"],shortName:"Fuji",slip44:1,slug:"avalanche-fuji",testnet:!0},l]},98286:function(e,n,r){"use strict";r.d(n,{SA:function(){return M},Ze:function(){return T},oj:function(){return C}});var i=r(53932);r(21654);class a{get encoder(){return this._encoder||(this._encoder=new TextEncoder),this._encoder}get decoder(){return this._decoder||(this._decoder=new TextDecoder),this._decoder}}let o=new a;function s(){return o.encoder}/** 2 * [js-md5]{@link https://github.com/emn178/js-md5} 3 * 4 * @namespace md5 5 * @version 0.8.3 6 * @author Chen, Yi-Cyuan [[email protected]] 7 * @copyright Chen, Yi-Cyuan 2014-2023 8 * @license MIT 9 */let f="input is invalid type",l=[128,32768,8388608,-2147483648];class u{lastByteIndex=0;constructor(){let e=new ArrayBuffer(68);this.buffer8=new Uint8Array(e),this.blocks=new Uint32Array(e),this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}update(e){if(this.finalized)throw Error("finalize already called");let[n,r]=function(e){let n=typeof e;if("string"==typeof e)return[e,!0];if("object"!==n||null===e)throw Error(f);if(e instanceof ArrayBuffer)return[new Uint8Array(e),!1];if(!Array.isArray(e)&&!ArrayBuffer.isView(e))throw Error(f);return[e,!1]}(e),i=this.blocks,a=0;a=ArrayBuffer.isView(n)?n.byteLength:n.length;let o,s=0,l,u=this.buffer8;for(;s<a;){if(this.hashed&&(this.hashed=!1,i[0]=i[16],i[16]=i[1]=i[2]=i[3]=i[4]=i[5]=i[6]=i[7]=i[8]=i[9]=i[10]=i[11]=i[12]=i[13]=i[14]=i[15]=0),r)for(l=this.start;s<a&&l<64;++s)(o=n.charCodeAt(s))<128?u[l++]=o:(o<2048?u[l++]=192|o>>>6:(o<55296||o>=57344?u[l++]=224|o>>>12:(o=65536+((1023&o)<<10|1023&n.charCodeAt(++s)),u[l++]=240|o>>>18,u[l++]=128|o>>>12&63),u[l++]=128|o>>>6&63),u[l++]=128|63&o);else for(l=this.start;s<a&&l<64;++s)u[l++]=n[s];this.lastByteIndex=l,this.bytes+=l-this.start,l>=64?(this.start=l-64,this.hash(),this.hashed=!0):this.start=l}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}finalize(){if(this.finalized)return;this.finalized=!0;let e=this.blocks,n=this.lastByteIndex;e[n>>>2]|=l[3&n],n>=56&&(this.hashed||this.hash(),e[0]=e[16],e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.bytes<<3,e[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}hash(){let e,n,r,i,a,o;let s=this.blocks;this.first?(r=((r=(-271733879^(i=((i=(-1732584194^2004318071&(e=((e=s[0]-680876937)<<7|e>>>25)-271733879<<0))+s[1]-117830708)<<12|i>>>20)+e<<0)&(-271733879^e))+s[2]-1126478375)<<17|r>>>15)+i<<0,n=((n=(e^r&(i^e))+s[3]-1316259209)<<22|n>>>10)+r<<0):(e=this.h0,n=this.h1,r=this.h2,e+=((i=this.h3)^n&(r^i))+s[0]-680876936,i+=(r^(e=(e<<7|e>>>25)+n<<0)&(n^r))+s[1]-389564586,r+=(n^(i=(i<<12|i>>>20)+e<<0)&(e^n))+s[2]+606105819,n+=(e^(r=(r<<17|r>>>15)+i<<0)&(i^e))+s[3]-1044525330,n=(n<<22|n>>>10)+r<<0),e+=(i^n&(r^i))+s[4]-176418897,i+=(r^(e=(e<<7|e>>>25)+n<<0)&(n^r))+s[5]+1200080426,r+=(n^(i=(i<<12|i>>>20)+e<<0)&(e^n))+s[6]-1473231341,n+=(e^(r=(r<<17|r>>>15)+i<<0)&(i^e))+s[7]-45705983,e+=(i^(n=(n<<22|n>>>10)+r<<0)&(r^i))+s[8]+1770035416,i+=(r^(e=(e<<7|e>>>25)+n<<0)&(n^r))+s[9]-1958414417,r+=(n^(i=(i<<12|i>>>20)+e<<0)&(e^n))+s[10]-42063,n+=(e^(r=(r<<17|r>>>15)+i<<0)&(i^e))+s[11]-1990404162,e+=(i^(n=(n<<22|n>>>10)+r<<0)&(r^i))+s[12]+1804603682,i+=(r^(e=(e<<7|e>>>25)+n<<0)&(n^r))+s[13]-40341101,r+=(n^(i=(i<<12|i>>>20)+e<<0)&(e^n))+s[14]-1502002290,n+=(e^(r=(r<<17|r>>>15)+i<<0)&(i^e))+s[15]+1236535329,n=(n<<22|n>>>10)+r<<0,e+=(r^i&(n^r))+s[1]-165796510,e=(e<<5|e>>>27)+n<<0,i+=(n^r&(e^n))+s[6]-1069501632,i=(i<<9|i>>>23)+e<<0,r+=(e^n&(i^e))+s[11]+643717713,r=(r<<14|r>>>18)+i<<0,n+=(i^e&(r^i))+s[0]-373897302,n=(n<<20|n>>>12)+r<<0,e+=(r^i&(n^r))+s[5]-701558691,e=(e<<5|e>>>27)+n<<0,i+=(n^r&(e^n))+s[10]+38016083,i=(i<<9|i>>>23)+e<<0,r+=(e^n&(i^e))+s[15]-660478335,r=(r<<14|r>>>18)+i<<0,n+=(i^e&(r^i))+s[4]-405537848,n=(n<<20|n>>>12)+r<<0,e+=(r^i&(n^r))+s[9]+568446438,e=(e<<5|e>>>27)+n<<0,i+=(n^r&(e^n))+s[14]-1019803690,i=(i<<9|i>>>23)+e<<0,r+=(e^n&(i^e))+s[3]-187363961,r=(r<<14|r>>>18)+i<<0,n+=(i^e&(r^i))+s[8]+1163531501,n=(n<<20|n>>>12)+r<<0,e+=(r^i&(n^r))+s[13]-1444681467,e=(e<<5|e>>>27)+n<<0,i+=(n^r&(e^n))+s[2]-51403784,i=(i<<9|i>>>23)+e<<0,r+=(e^n&(i^e))+s[7]+1735328473,r=(r<<14|r>>>18)+i<<0,n+=(i^e&(r^i))+s[12]-1926607734,e+=((a=(n=(n<<20|n>>>
912)+r<<0)^r)^i)+s[5]-378558,i+=(a^(e=(e<<4|e>>>28)+n<<0))+s[8]-2022574463,r+=((o=(i=(i<<11|i>>>21)+e<<0)^e)^n)+s[11]+1839030562,n+=(o^(r=(r<<16|r>>>16)+i<<0))+s[14]-35309556,e+=((a=(n=(n<<23|n>>>9)+r<<0)^r)^i)+s[1]-1530992060,i+=(a^(e=(e<<4|e>>>28)+n<<0))+s[4]+1272893353,r+=((o=(i=(i<<11|i>>>21)+e<<0)^e)^n)+s[7]-155497632,n+=(o^(r=(r<<16|r>>>16)+i<<0))+s[10]-1094730640,e+=((a=(n=(n<<23|n>>>9)+r<<0)^r)^i)+s[13]+681279174,i+=(a^(e=(e<<4|e>>>28)+n<<0))+s[0]-358537222,r+=((o=(i=(i<<11|i>>>21)+e<<0)^e)^n)+s[3]-722521979,n+=(o^(r=(r<<16|r>>>16)+i<<0))+s[6]+76029189,e+=((a=(n=(n<<23|n>>>9)+r<<0)^r)^i)+s[9]-640364487,i+=(a^(e=(e<<4|e>>>28)+n<<0))+s[12]-421815835,r+=((o=(i=(i<<11|i>>>21)+e<<0)^e)^n)+s[15]+530742520,n+=(o^(r=(r<<16|r>>>16)+i<<0))+s[2]-995338651,n=(n<<23|n>>>9)+r<<0,e+=(r^(n|~i))+s[0]-198630844,e=(e<<6|e>>>26)+n<<0,i+=(n^(e|~r))+s[7]+1126891415,i=(i<<10|i>>>22)+e<<0,r+=(e^(i|~n))+s[14]-1416354905,r=(r<<15|r>>>17)+i<<0,n+=(i^(r|~e))+s[5]-57434055,n=(n<<21|n>>>11)+r<<0,e+=(r^(n|~i))+s[12]+1700485571,e=(e<<6|e>>>26)+n<<0,i+=(n^(e|~r))+s[3]-1894986606,i=(i<<10|i>>>22)+e<<0,r+=(e^(i|~n))+s[10]-1051523,r=(r<<15|r>>>17)+i<<0,n+=(i^(r|~e))+s[1]-2054922799,n=(n<<21|n>>>11)+r<<0,e+=(r^(n|~i))+s[8]+1873313359,e=(e<<6|e>>>26)+n<<0,i+=(n^(e|~r))+s[15]-30611744,i=(i<<10|i>>>22)+e<<0,r+=(e^(i|~n))+s[6]-1560198380,r=(r<<15|r>>>17)+i<<0,n+=(i^(r|~e))+s[13]+1309151649,n=(n<<21|n>>>11)+r<<0,e+=(r^(n|~i))+s[4]-145523070,e=(e<<6|e>>>26)+n<<0,i+=(n^(e|~r))+s[11]-1120210379,i=(i<<10|i>>>22)+e<<0,r+=(e^(i|~n))+s[2]+718787259,r=(r<<15|r>>>17)+i<<0,n+=(i^(r|~e))+s[9]-343485551,n=(n<<21|n>>>11)+r<<0,this.first?(this.h0=e+1732584193<<0,this.h1=n-271733879<<0,this.h2=r-1732584194<<0,this.h3=i+271733878<<0,this.first=!1):(this.h0=this.h0+e<<0,this.h1=this.h1+n<<0,this.h2=this.h2+r<<0,this.h3=this.h3+i<<0)}arrayBuffer(){this.finalize();let e=new ArrayBuffer(16),n=new Uint32Array(e);return n[0]=this.h0,n[1]=this.h1,n[2]=this.h2,n[3]=this.h3,e}}function c(e){let n=new u;return n.update(e),n.arrayBuffer()}let d=Object.prototype.toString;function p(e){if(!(e&&(e.constructor===Uint8Array||"[object Uint8Array]"===d.call(e))))throw TypeError(`Expected \`Uint8Array\`, got \`${typeof e}\``)}function h(e,n){if(0===e.length)return new Uint8Array(0);null==n&&(n=e.reduce((e,n)=>e+n.length,0));let r=new Uint8Array(n),i=0;for(let n of e)p(n),r.set(n,i),i+=n.length;return r}function y(e){return!function(e){if("string"!=typeof e)throw TypeError(`Expected \`string\`, got \`${typeof e}\``)}(e),Uint8Array.from(globalThis.atob(e.replaceAll("-","+").replaceAll("_","/")),e=>e.codePointAt(0))}let m=Array.from({length:256},(e,n)=>n.toString(16).padStart(2,"0"));async function g(){return"crypto"in globalThis?globalThis.crypto:(await r(89844)("node:crypto")).webcrypto}async function b(e,n,r){let{keySizeDWORD:i=8,ivSizeDWORD:a=4,iterations:s=1}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},f=await g(),{key:l,iv:u}=await v(r,e,i,a,s);try{let e=await f.subtle.decrypt({name:"AES-CBC",iv:u},l,n);return o.decoder.decode(e)}catch(e){throw Error("Decrypt failed")}}async function v(e,n,r,i,a){let o=await g(),[f,l]=w(function(e,n,r,i){let a=new Uint8Array,o=new Uint8Array;for(;a.byteLength<4*r;){o=new Uint8Array(c(h([o,e,n])));for(let e=1;e<i;e++)o=new Uint8Array(c(o));a=h([a,o])}return a}(s().encode(e),n,r+i,a),4*r);return{key:await o.subtle.importKey("raw",f,"AES-CBC",!1,["decrypt"]),iv:l}}function w(e,n){return[e.subarray(0,n),e.subarray(n,e.length)]}async function x(e,n){let r=await g(),i=s().encode(n),a=await r.subtle.digest("SHA-256",i),f=y(e),l={name:"AES-GCM",iv:f.slice(0,12)},u=await r.subtle.importKey("raw",a,l,!1,["decrypt"]),c=f.slice(12);try{let e=await r.subtle.decrypt(l,u,c);return o.decoder.decode(e)}catch(e){throw Error("Decrypt failed")}}async function T(e,n){let r=function(e){let n=null,r=y(e),[i,a]=w(r,8),o=new DataView(i.buffer);return 1398893684===o.getInt32(0)&&1701076831===o.getInt32(4)&&([n,r]=w(a,8)),{ciphertext:r,salt:n}}(e);
9return r.salt&&r.ciphertext?b(r.salt,r.ciphertext,n):x(e,n)}async function C(e,n){let r=await g(),i=s(),a=i.encode(n),o=await r.subtle.digest("SHA-256",a),f=r.getRandomValues(new Uint8Array(12)),l={name:"AES-GCM",iv:f},u=await r.subtle.importKey("raw",o,l,!1,["encrypt"]),c=i.encode(e);return function(e){let n,{urlSafe:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(p(e),e.length<65535)n=globalThis.btoa(String.fromCodePoint.apply(this,e));else{for(let r of(n="",e))n+=String.fromCodePoint(r);n=globalThis.btoa(n)}return r?n.replaceAll("+","-").replaceAll("/","_").replace(/=+$/,""):n}(h([f,new Uint8Array(await r.subtle.encrypt(l,u,c))]))}function M(e){return function(e){p(e);let n="";for(let r=0;r<e.length;r++)n+=m[e[r]];return n}((0,i.J)(e))}},89844:function(e){function n(e){return Promise.resolve().then(function(){var n=Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n})}n.keys=function(){return[]},n.resolve=n,n.id=89844,e.exports=n},21654:function(e,n,r){var i,a=r(34155);!function(){"use strict";var o="input is invalid type",s="object"==typeof window,f=s?window:{};f.JS_SHA3_NO_WINDOW&&(s=!1);var l=!s&&"object"==typeof self;!f.JS_SHA3_NO_NODE_JS&&"object"==typeof a&&a.versions&&a.versions.node?f=r.g:l&&(f=self);for(var u=!f.JS_SHA3_NO_COMMON_JS&&e.exports,c=r.amdO,d=!f.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,p="0123456789abcdef".split(""),h=[4,1024,262144,67108864],y=[0,8,16,24],m=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],g=[224,256,384,512],b=[128,256],v=["hex","buffer","arrayBuffer","array","digest"],w={128:168,256:136},x=f.JS_SHA3_NO_NODE_JS||!Array.isArray?function(e){return"[object Array]"===Object.prototype.toString.call(e)}:Array.isArray,T=d&&(f.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)?function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer}:ArrayBuffer.isView,C=function(e){var n=typeof e;if("string"===n)return[e,!0];if("object"!==n||null===e)throw Error(o);if(d&&e.constructor===ArrayBuffer)return[new Uint8Array(e),!1];if(!x(e)&&!T(e))throw Error(o);return[e,!1]},M=function(e){return 0===C(e)[0].length},A=function(e){for(var n=[],r=0;r<e.length;++r)n[r]=e[r];return n},E=function(e,n,r){return function(i){return new F(e,n,e).update(i)[r]()}},I=function(e,n,r){return function(i,a){return new F(e,n,a).update(i)[r]()}},S=function(e,n,r){return function(n,i,a,o){return _["cshake"+e].update(n,i,a,o)[r]()}},k=function(e,n,r){return function(n,i,a,o){return _["kmac"+e].update(n,i,a,o)[r]()}},N=function(e,n,r,i){for(var a=0;a<v.length;++a){var o=v[a];e[o]=n(r,i,o)}return e},j=function(e,n){var r=E(e,n,"hex");return r.create=function(){return new F(e,n,e)},r.update=function(e){return r.create().update(e)},N(r,E,e,n)},D=[{name:"keccak",padding:[1,256,65536,16777216],bits:g,createMethod:j},{name:"sha3",padding:[6,1536,393216,100663296],bits:g,createMethod:j},{name:"shake",padding:[31,7936,2031616,520093696],bits:b,createMethod:function(e,n){var r=I(e,n,"hex");return r.create=function(r){return new F(e,n,r)},r.update=function(e,n){return r.create(n).update(e)},N(r,I,e,n)}},{name:"cshake",padding:h,bits:b,createMethod:function(e,n){var r=w[e],i=S(e,n,"hex");return i.create=function(i,a,o){return M(a)&&M(o)?_["shake"+e].create(i):new F(e,n,i).bytepad([a,o],r)},i.update=function(e,n,r,a){return i.create(n,r,a).update(e)},N(i,S,e,n)}},{name:"kmac",padding:h,bits:b,createMethod:function(e,n){var r=w[e],i=k(e,n,"hex");return i.create=function(i,a,o){return new Z(e,n,a).bytepad(["KMAC",o],r).bytepad([i],r)},i.update=function(e,n,r,a){return i.create(e,r,a).update(n)},N(i,k,e,n)}}],_={},O=[],P=0;P<D.length;++P)for(var L=D[P],R=L.bits,z=0;z<R.length;++z){var B=L.name+"_"+R[z];if(O.push(B),_[B]=L.createMethod(R[z],L.padding),"sha3"!==L.name){var U=L.name+R[z];O.push(U),_[U]=_[B]}}function F(e,n,r){this.blocks=[],this.s=[],this.padding=n,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var i=0;i<50;++i)this.s[i]=0}function Z(e,n,r){F.call(this,e,n,r)}F.prototype.update=function(e){if(this.finalized)throw Error("finalize already called");var n=C(e);e=n[0];for(var r,i,a=n[1],o=this.blocks,s=this.byteCount,f=e.length,l=this.blockCount,u=0,c=this.s;u<f;){if(this.reset)for(r=1,this.reset=!1,o[0]=this.block;r<l+1;++r)o[r]=0;if(a)for(r=this.start;u<f&&r<s;++u)(i=e.charCodeAt(u))<128?o[r>>2]|=i<<y[3&r++]:(i<2048?o[r>>2]|=(192|i>>6)<<y[3&r++]:(i<55296||i>=57344?o[r>>2]|=(224|i>>12)<<y[3&r++]:(i=65536+((1023&i)<<10|1023&e.charCodeAt(++u)),o[r>>2]|=(240|i>>18)<<y[3&r++],o[r>>2]|=(128|i>>12&63)<<y[3&r++]),o[r>>2]|=(128|i>>6&63)<<y[3&r++]),o[r>>2]|=(128|63&i)<<y[3&r++]);else for(r=this.start;u<f&&r<s;++u)o[r>>2]|=e[u]<<y[3&r++];if(this.lastByteIndex=r,r>=s){for(this.start=r-s,this.block=o[l],r=0;r<l;++r)c[r]^=o[r];W(c),this.reset=!0}else this.start=r}return this},F.prototype.encode=function(e,n){var r=255&e,i=1,a=[r];for(e>>=8,r=255&e;r>0;)a.unshift(r),e>>=8,r=255&e,++i;return n?a.push(i):a.unshift(i),this.update(a),a.length},F.prototype.encodeString=function(e){var n=C(e);e=n[0];var r=n[1],i=0,a=e.length;if(r)for(var o=0;o<e.length;++o){var s=e.charCodeAt(o);s<128?i+=1:s<2048?i+=2:s<55296||s>=57344?i+=3:(s=65536+((1023&s)<<10|1023&e.charCodeAt(++o)),i+=4)}else i=a;return i+=this.encode(8*i),this.update(e),i},F.prototype.bytepad=function(e,n){for(var r=this.encode(n),i=0;i<e.length;++i)r+=this.encodeString(e[i]);var a=(n-r%n)%n,o=[];return o.length=a,this.update(o),this},F.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,n=this.lastByteIndex,r=this.blockCount,i=this.s;if(e[n>>2]|=this.padding[3&n],this.lastByteIndex===this.byteCount)for(n=1,e[0]=e[r];n<r+1;++n)e[n]=0;
9for(e[r-1]|=2147483648,n=0;n<r;++n)i[n]^=e[n];W(i)}},F.prototype.toString=F.prototype.hex=function(){this.finalize();for(var e,n=this.blockCount,r=this.s,i=this.outputBlocks,a=this.extraBytes,o=0,s=0,f="";s<i;){for(o=0;o<n&&s<i;++o,++s)f+=p[(e=r[o])>>4&15]+p[15&e]+p[e>>12&15]+p[e>>8&15]+p[e>>20&15]+p[e>>16&15]+p[e>>28&15]+p[e>>24&15];s%n==0&&(W(r=A(r)),o=0)}return a&&(f+=p[(e=r[o])>>4&15]+p[15&e],a>1&&(f+=p[e>>12&15]+p[e>>8&15]),a>2&&(f+=p[e>>20&15]+p[e>>16&15])),f},F.prototype.arrayBuffer=function(){this.finalize();for(var e,n=this.blockCount,r=this.s,i=this.outputBlocks,a=this.extraBytes,o=0,s=0,f=this.outputBits>>3,l=new Uint32Array(e=new ArrayBuffer(a?i+1<<2:f));s<i;){for(o=0;o<n&&s<i;++o,++s)l[s]=r[o];s%n==0&&W(r=A(r))}return a&&(l[s]=r[o],e=e.slice(0,f)),e},F.prototype.buffer=F.prototype.arrayBuffer,F.prototype.digest=F.prototype.array=function(){this.finalize();for(var e,n,r=this.blockCount,i=this.s,a=this.outputBlocks,o=this.extraBytes,s=0,f=0,l=[];f<a;){for(s=0;s<r&&f<a;++s,++f)e=f<<2,n=i[s],l[e]=255&n,l[e+1]=n>>8&255,l[e+2]=n>>16&255,l[e+3]=n>>24&255;f%r==0&&W(i=A(i))}return o&&(e=f<<2,n=i[s],l[e]=255&n,o>1&&(l[e+1]=n>>8&255),o>2&&(l[e+2]=n>>16&255)),l},Z.prototype=new F,Z.prototype.finalize=function(){return this.encode(this.outputBits,!0),F.prototype.finalize.call(this)};var W=function(e){var n,r,i,a,o,s,f,l,u,c,d,p,h,y,g,b,v,w,x,T,C,M,A,E,I,S,k,N,j,D,_,O,P,L,R,z,B,U,F,Z,W,H,G,q,Y,V,Q,K,$,J,X,ee,et,en,er,ei,ea,eo,es,ef,el,eu,ec;for(i=0;i<48;i+=2)a=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],s=e[2]^e[12]^e[22]^e[32]^e[42],f=e[3]^e[13]^e[23]^e[33]^e[43],l=e[4]^e[14]^e[24]^e[34]^e[44],u=e[5]^e[15]^e[25]^e[35]^e[45],c=e[6]^e[16]^e[26]^e[36]^e[46],d=e[7]^e[17]^e[27]^e[37]^e[47],p=e[8]^e[18]^e[28]^e[38]^e[48],h=e[9]^e[19]^e[29]^e[39]^e[49],n=p^(s<<1|f>>>31),r=h^(f<<1|s>>>31),e[0]^=n,e[1]^=r,e[10]^=n,e[11]^=r,e[20]^=n,e[21]^=r,e[30]^=n,e[31]^=r,e[40]^=n,e[41]^=r,n=a^(l<<1|u>>>31),r=o^(u<<1|l>>>31),e[2]^=n,e[3]^=r,e[12]^=n,e[13]^=r,e[22]^=n,e[23]^=r,e[32]^=n,e[33]^=r,e[42]^=n,e[43]^=r,n=s^(c<<1|d>>>31),r=f^(d<<1|c>>>31),e[4]^=n,e[5]^=r,e[14]^=n,e[15]^=r,e[24]^=n,e[25]^=r,e[34]^=n,e[35]^=r,e[44]^=n,e[45]^=r,n=l^(p<<1|h>>>31),r=u^(h<<1|p>>>31),e[6]^=n,e[7]^=r,e[16]^=n,e[17]^=r,e[26]^=n,e[27]^=r,e[36]^=n,e[37]^=r,e[46]^=n,e[47]^=r,n=c^(a<<1|o>>>31),r=d^(o<<1|a>>>31),e[8]^=n,e[9]^=r,e[18]^=n,e[19]^=r,e[28]^=n,e[29]^=r,e[38]^=n,e[39]^=r,e[48]^=n,e[49]^=r,y=e[0],g=e[1],V=e[11]<<4|e[10]>>>28,Q=e[10]<<4|e[11]>>>28,N=e[20]<<3|e[21]>>>29,j=e[21]<<3|e[20]>>>29,ef=e[31]<<9|e[30]>>>23,el=e[30]<<9|e[31]>>>23,H=e[40]<<18|e[41]>>>14,G=e[41]<<18|e[40]>>>14,L=e[2]<<1|e[3]>>>31,R=e[3]<<1|e[2]>>>31,b=e[13]<<12|e[12]>>>20,v=e[12]<<12|e[13]>>>20,K=e[22]<<10|e[23]>>>22,$=e[23]<<10|e[22]>>>22,D=e[33]<<13|e[32]>>>19,_=e[32]<<13|e[33]>>>19,eu=e[42]<<2|e[43]>>>30,ec=e[43]<<2|e[42]>>>30,en=e[5]<<30|e[4]>>>2,er=e[4]<<30|e[5]>>>2,z=e[14]<<6|e[15]>>>26,B=e[15]<<6|e[14]>>>26,w=e[25]<<11|e[24]>>>21,x=e[24]<<11|e[25]>>>21,J=e[34]<<15|e[35]>>>17,X=e[35]<<15|e[34]>>>17,O=e[45]<<29|e[44]>>>3,P=e[44]<<29|e[45]>>>3,E=e[6]<<28|e[7]>>>4,I=e[7]<<28|e[6]>>>4,ei=e[17]<<23|e[16]>>>9,ea=e[16]<<23|e[17]>>>9,U=e[26]<<25|e[27]>>>7,F=e[27]<<25|e[26]>>>7,T=e[36]<<21|e[37]>>>11,C=e[37]<<21|e[36]>>>11,ee=e[47]<<24|e[46]>>>8,et=e[46]<<24|e[47]>>>8,q=e[8]<<27|e[9]>>>5,Y=e[9]<<27|e[8]>>>5,S=e[18]<<20|e[19]>>>12,k=e[19]<<20|e[18]>>>12,eo=e[29]<<7|e[28]>>>25,es=e[28]<<7|e[29]>>>25,Z=e[38]<<8|e[39]>>>24,W=e[39]<<8|e[38]>>>24,M=e[48]<<14|e[49]>>>18,A=e[49]<<14|e[48]>>>18,e[0]=y^~b&w,e[1]=g^~v&x,e[10]=E^~S&N,e[11]=I^~k&j,e[20]=L^~z&U,e[21]=R^~B&F,e[30]=q^~V&K,e[31]=Y^~Q&$,e[40]=en^~ei&eo,e[41]=er^~ea&es,e[2]=b^~w&T,e[3]=v^~x&C,e[12]=S^~N&D,e[13]=k^~j&_,e[22]=z^~U&Z,e[23]=B^~F&W,e[32]=V^~K&J,e[33]=Q^~$&X,e[42]=ei^~eo&ef,e[43]=ea^~es&el,e[4]=w^~T&M,e[5]=x^~C&A,e[14]=N^~D&O,e[15]=j^~_&P,e[24]=U^~Z&H,e[25]=F^~W&G,e[34]=K^~J&ee,e[35]=$^~X&et,e[44]=eo^~ef&eu,e[45]=es^~el&ec,e[6]=T^~M&y,e[7]=C^~A&g,e[16]=D^~O&E,e[17]=_^~P&I,e[26]=Z^~H&L,e[27]=W^~G&R,e[36]=J^~ee&q,e[37]=X^~et&Y,e[46]=ef^~eu&en,e[47]=el^~ec&er,e[8]=M^~y&b,e[9]=A^~g&v,e[18]=O^~E&S,e[19]=P^~I&k,e[28]=H^~L&z,e[29]=G^~R&B,e[38]=ee^~q&V,e[39]=et^~Y&Q,e[48]=eu^~en&ei,e[49]=ec^~er&ea,e[0]^=m[i],e[1]^=m[i+1]};if(u)e.exports=_;else{for(P=0;P<O.length;++P)f[O[P]]=_[O[P]];c&&void 0!==(i=(function(){return _}).call(n,r,n,e))&&(e.exports=i)}}()},88003:function(e,n,r){"use strict";let i,a;r.d(n,{gtM:function(){return e2},XnK:function(){return tl},SyX:function(){return tf},SFn:function(){return e9},aCi:function(){return tt},KQd:function(){return e8},NW_:function(){return tu},YW1:function(){return tc},gJB:function(){return td},AbE:function(){return te},xxU:function(){return e7},$4A:function(){return eO},pX8:function(){return eL},xUo:function(){return eR},qL0:function(){return eP},UvD:function(){return ts},f0v:function(){return tn},aU_:function(){return eW},DUm:function(){return ta},eC:function(){return e$},DZU:function(){return eJ},mx9:function(){return to},y$C:function(){return ti},EnH:function(){return e3},o$C:function(){return ez},Jgv:function(){return eb},aFb:function(){return tr},Osb:function(){return ej},w_p:function(){return eD},tNP:function(){return eE},rBi:function(){return e_}}),r(12109);var o=r(67294),s=r(85945),f=r(48228),l=r(32161),u=r(30819),c=r(30081),d=r(72379),p=r(89643);
9class h extends p.F{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||u._,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){let n="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==n,i=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:n,dataUpdateCount:0,dataUpdatedAt:r?null!=i?i:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,n){let r=(0,l.oE)(this.state.data,e,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:null==n?void 0:n.updatedAt,manual:null==n?void 0:n.manual}),r}setState(e,n){this.dispatch({type:"setState",state:e,setStateOptions:n})}cancel(e){var n;let r=this.promise;return null==(n=this.retryer)||n.cancel(e),r?r.then(l.ZT).catch(l.ZT):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>!1!==e.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,l.Kp)(this.state.dataUpdatedAt,e)}onFocus(){var e;let n=this.observers.find(e=>e.shouldFetchOnWindowFocus());n&&n.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;let n=this.observers.find(e=>e.shouldFetchOnReconnect());n&&n.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(n=>n!==e),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,n){var r,i,a,o;if("idle"!==this.state.fetchStatus){if(this.state.dataUpdatedAt&&null!=n&&n.cancelRefetch)this.cancel({silent:!0});else if(this.promise)return null==(a=this.retryer)||a.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let s=(0,l.G9)(),f={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},u=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(s)return this.abortSignalConsumed=!0,s.signal}})};u(f);let c={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(f)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};u(c),null==(r=this.options.behavior)||r.onFetch(c),this.revertState=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(i=c.fetchOptions)?void 0:i.meta))&&this.dispatch({type:"fetch",meta:null==(o=c.fetchOptions)?void 0:o.meta});let p=e=>{if((0,d.DV)(e)&&e.silent||this.dispatch({type:"error",error:e}),!(0,d.DV)(e)){var n,r,i,a;null==(n=(r=this.cache.config).onError)||n.call(r,e,this),null==(i=(a=this.cache.config).onSettled)||i.call(a,this.state.data,e,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=(0,d.Mz)({fn:c.fetchFn,abort:null==s?void 0:s.abort.bind(s),onSuccess:e=>{var n,r,i,a;if(void 0===e){p(Error(this.queryHash+" data is undefined"));return}this.setData(e),null==(n=(r=this.cache.config).onSuccess)||n.call(r,e,this),null==(i=(a=this.cache.config).onSettled)||i.call(a,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:p,onFail:(e,n)=>{this.dispatch({type:"failed",failureCount:e,error:n})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(n=>{var r,i;switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(r=e.meta)?r:null,fetchStatus:(0,d.Kw)(this.options.networkMode)?"fetching":"paused",...!n.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:null!=(i=e.dataUpdatedAt)?i:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let a=e.error;if((0,d.DV)(a)&&a.revert&&this.revertState)return{...this.revertState,fetchStatus:"idle"};
9return{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}})(this.state),c.V.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}var y=r(33989);class m extends y.l{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,n,r){var i;let a=n.queryKey,o=null!=(i=n.queryHash)?i:(0,l.Rm)(a,n),s=this.get(o);return s||(s=new h({cache:this,logger:e.getLogger(),queryKey:a,queryHash:o,options:e.defaultQueryOptions(n),state:r,defaultOptions:e.getQueryDefaults(a)}),this.add(s)),s}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){let n=this.queriesMap[e.queryHash];n&&(e.destroy(),this.queries=this.queries.filter(n=>n!==e),n===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){c.V.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,n){let[r]=(0,l.I6)(e,n);return void 0===r.exact&&(r.exact=!0),this.queries.find(e=>(0,l._x)(r,e))}findAll(e,n){let[r]=(0,l.I6)(e,n);return Object.keys(r).length>0?this.queries.filter(e=>(0,l._x)(r,e)):this.queries}notify(e){c.V.batch(()=>{this.listeners.forEach(({listener:n})=>{n(e)})})}onFocus(){c.V.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){c.V.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}var g=r(89886);class b extends y.l{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,n,r){let i=new g.m({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(n),state:r,defaultOptions:n.mutationKey?e.getMutationDefaults(n.mutationKey):void 0});return this.add(i),i}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(n=>n!==e),this.notify({type:"removed",mutation:e})}clear(){c.V.batch(()=>{this.mutations.forEach(e=>{this.remove(e)})})}getAll(){return this.mutations}find(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find(n=>(0,l.X7)(e,n))}findAll(e){return this.mutations.filter(n=>(0,l.X7)(e,n))}notify(e){c.V.batch(()=>{this.listeners.forEach(({listener:n})=>{n(e)})})}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then(()=>{let e=this.mutations.filter(e=>
9e.state.isPaused);return c.V.batch(()=>e.reduce((e,n)=>e.then(()=>n.continue().catch(l.ZT)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}var v=r(15761),w=r(96474);function x(e,n){return null==e.getNextPageParam?void 0:e.getNextPageParam(n[n.length-1],n)}class T{constructor(e={}){this.queryCache=e.queryCache||new m,this.mutationCache=e.mutationCache||new b,this.logger=e.logger||u._,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=v.j.subscribe(()=>{v.j.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=w.N.subscribe(()=>{w.N.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,n;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(n=this.unsubscribeOnline)||n.call(this),this.unsubscribeOnline=void 0)}isFetching(e,n){let[r]=(0,l.I6)(e,n);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,n){var r;return null==(r=this.queryCache.find(e,n))?void 0:r.state.data}ensureQueryData(e,n,r){let i=(0,l._v)(e,n,r),a=this.getQueryData(i.queryKey);return a?Promise.resolve(a):this.fetchQuery(i)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:e,state:n})=>[e,n.data])}setQueryData(e,n,r){let i=this.queryCache.find(e),a=null==i?void 0:i.state.data,o=(0,l.SE)(n,a);if(void 0===o)return;let s=(0,l._v)(e),f=this.defaultQueryOptions(s);return this.queryCache.build(this,f).setData(o,{...r,manual:!0})}setQueriesData(e,n,r){return c.V.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,n,r)]))}getQueryState(e,n){var r;return null==(r=this.queryCache.find(e,n))?void 0:r.state}removeQueries(e,n){let[r]=(0,l.I6)(e,n),i=this.queryCache;c.V.batch(()=>{i.findAll(r).forEach(e=>{i.remove(e)})})}resetQueries(e,n,r){let[i,a]=(0,l.I6)(e,n,r),o=this.queryCache,s={type:"active",...i};return c.V.batch(()=>(o.findAll(i).forEach(e=>{e.reset()}),this.refetchQueries(s,a)))}cancelQueries(e,n,r){let[i,a={}]=(0,l.I6)(e,n,r);return void 0===a.revert&&(a.revert=!0),Promise.all(c.V.batch(()=>this.queryCache.findAll(i).map(e=>e.cancel(a)))).then(l.ZT).catch(l.ZT)}invalidateQueries(e,n,r){let[i,a]=(0,l.I6)(e,n,r);return c.V.batch(()=>{var e,n;if(this.queryCache.findAll(i).forEach(e=>{e.invalidate()}),"none"===i.refetchType)return Promise.resolve();let r={...i,type:null!=(e=null!=(n=i.refetchType)?n:i.type)?e:"active"};return this.refetchQueries(r,a)})}refetchQueries(e,n,r){let[i,a]=(0,l.I6)(e,n,r),o=Promise.all(c.V.batch(()=>this.queryCache.findAll(i).filter(e=>!e.isDisabled()).map(e=>{var n;return e.fetch(void 0,{...a,cancelRefetch:null==(n=null==a?void 0:a.cancelRefetch)||n,meta:{refetchPage:i.refetchPage}})}))).then(l.ZT);return null!=a&&a.throwOnError||(o=o.catch(l.ZT)),o}fetchQuery(e,n,r){let i=(0,l._v)(e,n,r),a=this.defaultQueryOptions(i);void 0===a.retry&&(a.retry=!1);let o=this.queryCache.build(this,a);return o.isStaleByTime(a.staleTime)?o.fetch(a):Promise.resolve(o.state.data)}prefetchQuery(e,n,r){return this.fetchQuery(e,n,r).then(l.ZT).catch(l.ZT)}fetchInfiniteQuery(e,n,r){let i=(0,l._v)(e,n,r);return i.behavior={onFetch:e=>{e.fetchFn=()=>{var n,r,i,a,o,s,f;let l;let u=null==(n=e.fetchOptions)?void 0:null==(r=n.meta)?void 0:r.refetchPage,c=null==(i=e.fetchOptions)?void 0:null==(a=i.meta)?void 0:a.fetchMore,d=null==c?void 0:c.pageParam,p=(null==c?void 0:c.direction)==="forward",h=(null==c?void 0:c.direction)==="backward",y=(null==(o=e.state.data)?void 0:o.pages)||[],m=(null==(s=e.state.data)?void 0:s.pageParams)||[],g=m,b=!1,v=n=>{Object.defineProperty(n,"signal",{enumerable:!0,get:()=>{var n,r;return null!=(n=e.signal)&&n.aborted?b=!0:null==(r=e.signal)||r.addEventListener("abort",()=>{b=!0}),e.signal}})},w=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),T=(e,n,r,i)=>(g=i?[n,...g]:[...g,n],i?[r,...e]:[...e,r]),C=(n,r,i,a)=>
9{if(b)return Promise.reject("Cancelled");if(void 0===i&&!r&&n.length)return Promise.resolve(n);let o={queryKey:e.queryKey,pageParam:i,meta:e.options.meta};return v(o),Promise.resolve(w(o)).then(e=>T(n,i,e,a))};if(y.length){if(p){let n=void 0!==d,r=n?d:x(e.options,y);l=C(y,n,r)}else if(h){let n=void 0!==d,r=n?d:null==(f=e.options).getPreviousPageParam?void 0:f.getPreviousPageParam(y[0],y);l=C(y,n,r,!0)}else{g=[];let n=void 0===e.options.getNextPageParam;l=!u||!y[0]||u(y[0],0,y)?C([],n,m[0]):Promise.resolve(T([],m[0],y[0]));for(let r=1;r<y.length;r++)l=l.then(i=>{if(!u||!y[r]||u(y[r],r,y)){let a=n?m[r]:x(e.options,i);return C(i,n,a)}return Promise.resolve(T(i,m[r],y[r]))})}}else l=C([]);return l.then(e=>({pages:e,pageParams:g}))}}},this.fetchQuery(i)}prefetchInfiniteQuery(e,n,r){return this.fetchInfiniteQuery(e,n,r).then(l.ZT).catch(l.ZT)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,n){let r=this.queryDefaults.find(n=>(0,l.yF)(e)===(0,l.yF)(n.queryKey));r?r.defaultOptions=n:this.queryDefaults.push({queryKey:e,defaultOptions:n})}getQueryDefaults(e){if(!e)return;let n=this.queryDefaults.find(n=>(0,l.to)(e,n.queryKey));return null==n?void 0:n.defaultOptions}setMutationDefaults(e,n){let r=this.mutationDefaults.find(n=>(0,l.yF)(e)===(0,l.yF)(n.mutationKey));r?r.defaultOptions=n:this.mutationDefaults.push({mutationKey:e,defaultOptions:n})}getMutationDefaults(e){if(!e)return;let n=this.mutationDefaults.find(n=>(0,l.to)(e,n.mutationKey));return null==n?void 0:n.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;let n={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!n.queryHash&&n.queryKey&&(n.queryHash=(0,l.Rm)(n.queryKey,n)),void 0===n.refetchOnReconnect&&(n.refetchOnReconnect="always"!==n.networkMode),void 0===n.useErrorBoundary&&(n.useErrorBoundary=!!n.suspense),n}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}var C=r(67848),M=r(38776),A=r(85893),E=r(22555),I=r(2515),S=r(9086);r(13550),r(77191),r(71770),r(64063),globalThis.global=globalThis;var k=r(66869),N=r(85560),j=r(70840),D=r(57334),_=(r(9279),r(82169)),O=r(19485),P=r(1604),L={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let R=new Uint8Array(16),z=[];for(let e=0;e<256;++e)z.push((e+256).toString(16).slice(1));var B=function(e,n,r){if(L.randomUUID&&!n&&!e)return L.randomUUID();let a=(e=e||{}).random||(e.rng||function(){if(!i&&!(i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(R)})();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,n){r=r||0;for(let e=0;e<16;++e)n[r+e]=a[e];return n}return function(e,n=0){return z[e[n+0]]+z[e[n+1]]+z[e[n+2]]+z[e[n+3]]+"-"+z[e[n+4]]+z[e[n+5]]+"-"+z[e[n+6]]+z[e[n+7]]+"-"+z[e[n+8]]+z[e[n+9]]+"-"+z[e[n+10]]+z[e[n+11]]+z[e[n+12]]+z[e[n+13]]+z[e[n+14]]+z[e[n+15]]}(a)},U=r(93684),F=r(16441),Z=r(83875),W=r(1832);let H=P.z.union([P.z.string(),P.z.number(),P.z.boolean(),P.z.null()]),G=P.z.lazy(()=>P.z.union([H,P.z.array(G),P.z.record(G)]),{invalid_type_error:"Provided value was not valid JSON"}),q=P.z.string().refine(e=>O.isAddress(e),e=>({message:`${e} is not a valid address`})),Y=P.z.date().transform(e=>Math.floor(e.getTime()/1e3)),V=P.z.literal("evm"),Q=P.z.object({iss:P.z.string(),sub:P.z.string(),aud:P.z.string(),exp:Y,nbf:Y,iat:Y,jti:P.z.string().default(()=>B()),ctx:G.optional()});P.z.object({payload:Q,signature:P.z.string()});let K=P.z.object({domain:P.z.string(),issuerAddress:q.optional(),validateTokenId:P.z.function().args(P.z.string()).optional()}),$=P.z.object({domain:P.z.string(),statement:P.z.string().optional(),uri:P.z.string().optional(),version:P.z.string().optional(),chainId:P.z.string().optional(),validateNonce:P.z.function().args(P.z.string()).optional(),resources:P.z.array(P.z.string()).optional()}),J=P.z.object({domain:P.z.string(),tokenId:P.z.string().optional(),expirationTime:P.z.date().default(()=>new Date(Date.now()+864e5)),invalidBefore:P.z.date().optional(),session:P.z.union([G,P.z.function().args(P.z.string())]).optional(),verifyOptions:$.omit({domain:!0}).optional()}),X=P.z.object({expirationTime:P.z.date().default(()=>new Date(Date.now()+864e5))}),ee=P.z.object({domain:P.z.string(),address:P.z.string().optional(),statement:P.z.string().optional(),uri:P.z.string().optional(),version:P.z.string().optional(),chainId:P.z.string().optional(),nonce:P.z.string().optional(),expirationTime:P.z.date().default(()=>new Date(Date.now()+6e5)),invalidBefore:P.z.date().default(()=>new Date(Date.now()-6e5)),resources:P.z.array(P.z.string()).optional()}),et=P.z.object({type:V,domain:P.z.string(),address:P.z.string(),statement:P.z.string().default("Please ensure that the domain above matches the URL of the current website."),uri:P.z.string().optional(),version:P.z.string().default("1"),chain_id:P.z.string().optional(),nonce:P.z.string().default(()=>B()),issued_at:P.z.date().default(new Date).transform(e=>e.toISOString()),expiration_time:P.z.date().transform(e=>e.toISOString()),invalid_before:P.z.date().default(new Date).transform(e=>e.toISOString()),resources:P.z.array(P.z.string()).optional()});async function en(e,n,r,i,a,o){try{let i=U.r(e),a=F.arrayify(i);if(Z.recoverAddress(a,n)===r)return!0}catch{}return!!i&&(0,W.c)(e,n,r,i,a,o)}function er(e){let n=[`${e.domain} wants you to sign in with your Ethereum account:`,e.address].join("\n");n=[n,e.statement].join("\n\n"),e.statement&&(n+="\n");let r=[];if(e.uri){let n=`URI: ${e.uri}`;r.push(n)}
9let i=`Version: ${e.version}`;if(r.push(i),e.chain_id){let n="Chain ID: "+e.chain_id;r.push(n)}let a=`Nonce: ${e.nonce}`;r.push(a);let o=`Issued At: ${e.issued_at}`;r.push(o);let s=`Expiration Time: ${e.expiration_time}`;if(r.push(s),e.invalid_before){let n=`Not Before: ${e.invalid_before}`;r.push(n)}return e.resources&&r.push(["Resources:",...e.resources.map(e=>`- ${e}`)].join("\n")),[n,r.join("\n")].join("\n")}async function ei(e){let{wallet:n,options:r}=e,i=ee.parse(r),a=i?.chainId;if(!a&&n.getChainId)try{a=(await n.getChainId()).toString()}catch{}return et.parse({type:n.type,domain:i.domain,address:i?.address||await n.getAddress(),statement:i?.statement,version:i?.version,uri:i?.uri,chain_id:a,nonce:i?.nonce,expiration_time:i.expirationTime,invalid_before:i.invalidBefore,resources:i?.resources})}async function ea(e){let{wallet:n,payload:r}=e,i=er(r);return{payload:r,signature:await n.signMessage(i)}}async function eo(e){let{wallet:n,options:r}=e,i=await ei({wallet:n,options:r});return ea({wallet:n,payload:i}
9)}async function es(e){let{payload:n,options:r,clientOptions:i}=e,a=$.parse(r);if(n.payload.domain!==a.domain)throw Error(`Expected domain '${a.domain}' does not match domain on payload '${n.payload.domain}'`);if(a?.statement&&n.payload.statement!==a.statement)throw Error(`Expected statement '${a.statement}' does not match statement on payload '${n.payload.statement}'`);if(a?.uri&&n.payload.uri!==a.uri)throw Error(`Expected URI '${a.uri}' does not match URI on payload '${n.payload.uri}'`);if(a?.version&&n.payload.version!==a.version)throw Error(`Expected version '${a.version}' does not match version on payload '${n.payload.version}'`);if(a?.chainId&&n.payload.chain_id!==a.chainId)throw Error(`Expected chain ID '${a.chainId}' does not match chain ID on payload '${n.payload.chain_id}'`);if(a?.validateNonce!==void 0)try{await a.validateNonce(n.payload.nonce)}catch(e){throw Error("Login request nonce is invalid")}let o=new Date;if(o<new Date(n.payload.invalid_before))throw Error("Login request is not yet valid");if(o>new Date(n.payload.expiration_time))throw Error("Login request has expired");if(a?.resources){let e=a.resources.filter(e=>!n.payload.resources?.includes(e));if(e.length>0)throw Error(`Login request is missing required resources: ${e.join(", ")}`)}let s=er(n.payload),f=n.payload.chain_id?parseInt(n.payload.chain_id):void 0;if(!await en(s,n.signature,n.payload.address,f,i?.clientId,i?.secretKey))throw Error(`Signer address does not match payload address '${n.payload.address.toLowerCase()}'`);return n.payload.address}function ef(e){return window.btoa(e)}function el(e){return window.atob(e)}async function eu(e){let{wallet:n,payload:r}=e,i=Q.parse(r),a=JSON.stringify(i),o=await n.signMessage(a),s=ef(JSON.stringify({alg:"ES256",typ:"JWT"})),f=ef(JSON.stringify(i)),l=ef(o);return`${s}.${f}.${l}`}async function ec(e){let n,{wallet:r,payload:i,options:a,clientOptions:o}=e,s=J.parse(a),f=await es({payload:i,options:{domain:s.domain,...s.verifyOptions},clientOptions:o});if("function"==typeof s?.session){let e=await s.session(f);e&&(n=e)}else n=s?.session;let l=await r.getAddress();return eu({wallet:r,payload:{iss:l,sub:f,aud:s.domain,nbf:s?.invalidBefore||new Date,exp:s.expirationTime,iat:new Date,jti:s?.tokenId,ctx:n}})}function ed(e){let n=e.split(".")[1],r=e.split(".")[2];return{payload:JSON.parse(el(n)),signature:el(r)}}async function ep(e){let{wallet:n,jwt:r,options:i}=e,{payload:a}=ed(r),o=X.parse(i);return eu({wallet:n,payload:{iss:a.iss,sub:a.sub,aud:a.aud,nbf:new Date,exp:o.expirationTime,iat:new Date,ctx:a.ctx}})}async function eh(e){let n,{wallet:r,jwt:i,options:a,clientOptions:o}=e,s=K.parse(a),{payload:f,signature:l}=ed(i);if(s?.validateTokenId!==void 0)try{await s.validateTokenId(f.jti)}
9catch(e){throw Error("Token ID is invalid")}if(f.aud!==s.domain)throw Error(`Expected token to be for the domain '${s.domain}', but found token with domain '${f.aud}'`);let u=Math.floor(new Date().getTime()/1e3);if(u<f.nbf)throw Error(`This token is invalid before epoch time '${f.nbf}', current epoch time is '${u}'`);if(u>f.exp)throw Error(`This token expired at epoch time '${f.exp}', current epoch time is '${u}'`);let c=s.issuerAddress?s.issuerAddress:await r.getAddress();if(c.toLowerCase()!==f.iss.toLowerCase())throw Error(`The expected issuer address '${c}' did not match the token issuer address '${f.iss}'`);if(r.getChainId)try{n=await r.getChainId()}catch{}if(!await en(JSON.stringify(f),l,c,n,o.clientId,o.secretKey))throw Error(`The expected signer address '${c}' did not sign the token`);return{address:f.sub,session:f.ctx}}P.z.object({payload:et,signature:P.z.string()}).extend({payload:et.extend({issued_at:P.z.string(),expiration_time:P.z.string(),invalid_before:P.z.string()})});class ey{constructor(e,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.wallet=e,this.domain=n,this.options=r}updateWallet(e){this.wallet=e}async payload(e){return ei({wallet:this.wallet,options:this.formatOptions(e)})}async loginWithPayload(e){return ea({wallet:this.wallet,payload:e})}async login(e){return eo({wallet:this.wallet,options:this.formatOptions(e)})}
9async verify(e,n){return es({payload:e,options:this.formatOptions(n),clientOptions:this.options})}async generate(e,n){return ec({wallet:this.wallet,payload:e,options:this.formatOptions(n),clientOptions:this.options})}async refresh(e,n){return ep({wallet:this.wallet,jwt:e,options:{expirationTime:n}})}async authenticate(e,n){return eh({wallet:this.wallet,jwt:e,options:this.formatOptions(n),clientOptions:this.options})}parseToken(e){return ed(e)}formatOptions(e){return e?{...e,domain:e?.domain||this.domain}:{domain:this.domain}}}let em=(0,o.createContext)(void 0),eg=(0,o.createContext)(void 0);function eb(){return(0,o.useContext)(eg)}let ev=e=>{let n=e?.getOptions();return n&&"walletConnectReceiver"in n&&n.walletConnectReceiver},ew="lastConnectedWallet",ex=new Map,eT=new Map,eC=(0,o.createContext)(void 0);function eM(e,n){let{chains:r,chainToConnect:i,dAppMeta:s,clientId:f,activeChain:l}=e,[u,c]=(0,o.useState)(void 0),[d,p]=(0,o.useState)(n.connectionStatus),[h,y]=(0,o.useState)(),[m,g]=(0,o.useState)(),[b,v]=(0,o.useState)(),[w,x]=(0,o.useState)(void 0),[T,C]=(0,o.useState)(void 0),M=(0,o.useMemo)(()=>({chains:r,dappMetadata:s,chain:l||r[0],clientId:f}),[r,s,l,f]),A=(0,o.useCallback)(e=>{let n=e.create(M);return n.walletId===N.w.magicLink&&g(n),ex.set(n,e),n},[M]),E=(0,o.useCallback)(async function(e,n){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=ex.get(e);if(!i)throw Error("Wallet config not found for given wallet instance. Do not create a wallet instance manually - use the useCreateWalletInstance() hook instead");let[a,o,s]=await Promise.all([e.getSigner(),e.getChainId(),e.getAddress()]);y(e),x(o),C(s),c(a),v(i),p("connected");let f=e.getPersonalWallet();if(eT.set(f,e),r)return;let l={walletId:i.id,connectParams:n||e.getConnectParams()},u=ex.get(f);f&&u&&(l.connectParams={...l.connectParams,personalWallet:{walletId:u.id,connectParams:f.getConnectParams()}}),eS(l)},[]),I=(0,o.useCallback)(async e=>{let n=await a.getItem(ew);if(n)try{let r=JSON.parse(n);r.connectParams?r.connectParams.chainId=e:r.connectParams={chainId:e},await a.setItem(ew,JSON.stringify(r))}catch(e){console.error(`Error saving the last active chain: ${e}`)}},[]),S=(0,o.useCallback)(async e=>{if(!h)throw Error("No active wallet");await h.switchChain(e);let n=await h.getSigner();await I(e),c(n)},[h,I]),k=(0,o.useCallback)(async function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];let[a,o]=n,s={chainId:i?.chainId,...o||{}},f=A(a);p("connecting");try{a.id===N.w.magicLink&&eS({walletId:a.id,connectParams:s}),await f.connect(s),E(f,s)}catch(e){throw console.error(`Error connecting to wallet: ${e}`),p("disconnected"),e}return f},[A,E,i]),j=(0,o.useCallback)(()=>{p("disconnected"),c(void 0),y(void 0),v(void 0),x(void 0),C(void 0),a.removeItem(ew)},[]),D=(0,o.useCallback)(async()=>{if(!h){j();return}j();let e=h.getPersonalWallet();await h.disconnect(),e&&await e?.disconnect()},[h,j]);return(0,o.useEffect)(()=>{if(!h){c(void 0),x(void 0),C(void 0);return}let e=async()=>{Promise.all([h.getSigner(),h.getChainId(),h.getAddress()]).then(e=>{let[n,r,i]=e;c(n),x(r),C(i)})};return e(),h.addListener("change",e),h.addListener("disconnect",j),()=>{h.removeListener("change",e),h.removeListener("disconnect",j)}},[h,j]),(0,o.useEffect)(()=>{h&&h.updateChains(r)},[h,r]),{signer:u,connectionStatus:d,setConnectionStatus:p,activeWallet:h,createdWalletInstance:m,activeWalletConfig:b,createWalletInstance:A,setConnectedWallet:E,switchChain:S,connectWallet:k,disconnectWallet:D,chainId:w,address:T}}function eA(e){let n=e.autoSwitch?e.activeChain:void 0,r=e.autoConnectTimeout||15e3,i={chains:e.chains,dAppMeta:e.dAppMeta,activeChain:e.activeChain,clientId:e.clientId,chainToConnect:n},{signer:s,connectionStatus:f,setConnectionStatus:l,activeWallet:u,createdWalletInstance:c,activeWalletConfig:d,createWalletInstance:p,setConnectedWallet:h,switchChain:y,connectWallet:m,disconnectWallet:g,address:b,chainId:v}=eM(i,{connectionStatus:"unknown"}),w=eM(i,{connectionStatus:"disconnected"}),[x,T]=(0,o.useState)(!1),[C,M]=(0,o.useState)();a||(a=e.createWalletStorage("coordinatorStorage")),(0,o.useEffect)(()=>
9{if(!u)return;let e=async()=>{let e=u?.getOptions(),n=new j.Wj({walletConnectReceiver:{...e?.walletConnectReceiver===!0?{}:e?.walletConnectReceiver}},u);await n.init(),M(n)};ev(u)&&e()},[u]);let E=(0,o.useRef)(!1);(0,o.useEffect)(()=>{if(!E.current&&(E.current=!0,!e.signerWallet&&!u&&"unknown"===f)){if(!1===e.shouldAutoConnect){l("disconnected");return}!async function(){let n;let i=await eI();if(!i){l("disconnected");return}let o=e.supportedWallets.find(e=>e.id===i.walletId);if(!o){l("disconnected");return}let s=i.connectParams?.personalWallet,f=!1;o.personalWallets&&!s&&(f=i.walletId!==N.w.magicLink||!i.connectParams||!("oauthProvider"in i.connectParams),s={walletId:i.walletId,connectParams:i.connectParams});let u=s;if(u){let e=(o.personalWallets||[]).find(e=>e.id===u.walletId);if(e){n=p(e);try{await ek(n.autoConnect(u.connectParams),{ms:r,message:eN}),f&&h(n,u.connectParams,!0)}catch(e){console.error("Failed to auto connect personal wallet"),console.error(e),l("disconnected");return}i.connectParams={...i.connectParams,personalWallet:n}}else{l("disconnected");return}}let c=p(o);try{T(!0),l("connecting"),n&&eT.set(n,c),await ek(c.autoConnect(i.connectParams),{ms:r,message:eN}),f||h(c,i.connectParams,!0)}catch(e){console.error("Failed to auto connect wallet"),console.error(e),e instanceof Error&&e.message===eN&&a.removeItem(ew),l("disconnected")}T(!1)}()}},[p,e.supportedWallets,h,e.shouldAutoConnect,u,f,e.signerWallet,l,r]);let I=(0,o.useRef)();return(0,o.useEffect)(()=>{if(!e.signerWallet){I.current&&(g(),I.current=void 0);return}I.current!==e.signerWallet&&(h(p(e.signerWallet)),I.current=e.signerWallet)},[p,e.supportedWallets,h,e.signerWallet,g]),(0,A.jsx)(eC.Provider,{value:{address:b,chainId:v,disconnect:g,wallets:e.supportedWallets,connect:m,signer:s,activeWallet:u,activeWalletConfig:d,connectionStatus:f,setConnectionStatus:l,createWalletInstance:p,createdWalletInstance:c,createWalletStorage:e.createWalletStorage,switchChain:y,setConnectedWallet:h,activeChain:e.activeChain,chainToConnect:n,getWalletConfig:e=>ex.get(e),getWrapperWallet:e=>eT.get(e),activeChainSetExplicitly:e.activeChainSetExplicitly,clientId:e.clientId,walletConnectHandler:C,personalWalletConnection:w,isAutoConnecting:x},children:e.children})}function eE(){let e=(0,o.useContext)(eC);if(!e)throw Error("useWalletContext() can only be used inside <ThirdwebProvider />");return e}async function eI(){let e=await a.getItem(ew);if(!e)return null;try{return JSON.parse(e)}catch{return await a.removeItem(ew),null}}async function eS(e){try{await a.setItem(ew,JSON.stringify(e))}catch(e){console.error("Error saving the last connected wallet info",e)}}function ek(e,n){return new Promise((r,i)=>{let a=setTimeout(()=>{i(Error(n.message))},n.ms);e.then(e=>{clearTimeout(a),r(e)},e=>{clearTimeout(a),i(e)})})}let eN="Failed to Auto connect. Auto connect timed out. You can increase the timeout duration using the autoConnectTimeout prop on <ThirdwebProvider />";function ej(e){let n=eE();(0,M.Z)(n,"useWallet() hook must be used within a <ThirdwebProvider/>");let r=n.activeWallet;if(r&&(!e||r.walletId===e))return r}function eD(){let e=eE();return(0,M.Z)(e,"useWallet() hook must be used within a <ThirdwebProvider/>"),e.activeWalletConfig}function e_(){let e=eE();return(0,M.Z)(e,"useWallets() hook must be used within a <ThirdwebProvider/>"),e.wallets}function eO(){let e=eE();return(0,M.Z)(e,"useConnect() hook must be used within a <ThirdwebProvider/>"),e.connect}function eP(){let e=eE();return(0,M.Z)(e,"useDisconnect() hook must be used within a <ThirdwebProvider/>"),e.disconnect}function eL(){let e=eE();return(0,M.Z)(e,"useConnectionStatus() must be used within a <ThirdwebProvider/>"),e.connectionStatus}function eR(){let e=eE();return(0,M.Z)(e,"useCreateWalletInstance() must be used within a <ThirdwebProvider/>"),e.createWalletInstance}function ez(){let e=eE();return(0,M.Z)(e,"useSwitchChain() must be used within a <ThirdwebProvider/>"),e.switchChain}let eB="auth_token_storage_key",eU="tw-cache";function eF(e){return[eU,...e.filter(e=>"string"!=typeof e||e!==eU)]}let eZ={auth:{user:()=>eF(["user"])},network:{active:e=>eF(["chainId",e])},wallet:{balance:(e,n,r)=>{var i;return eF((i=eF(["balance",{walletAddress:n,tokenAddress:r}]),eF(eZ.network.active(e).concat(i))))}}};function eW(){let e=(0,s.NL)(),n=eb(),r=(0,f.D)({mutationFn:async()=>{(0,M.Z)(n,"Please specify an authConfig in the ThirdwebProvider"),(0,M.Z)(n.authUrl,"Please specify an authUrl in the authConfig."),await fetch(`${n.authUrl}/logout`,{method:"POST",credentials:"include"}
9),n.secureStorage?.removeItem(eB),e.invalidateQueries(eZ.auth.user())}});return{logout:r.mutateAsync,isLoading:r.isLoading}}let eH=e=>{let{value:n,children:r}=e,i=(0,o.useMemo)(()=>{if(n)return{...n,authUrl:n.authUrl?.replace(/\/$/,"")}},[n]);return(0,A.jsxs)(eg.Provider,{value:i,children:[r,(0,A.jsx)(eG,{})]})};function eG(){let e=ej(),{logout:n}=eW(),{switchAccount:r}=function(){let e=(0,s.NL)(),n=eb(),r=(0,f.D)({mutationFn:async r=>{(0,M.Z)(n,"Please specify an authConfig in the ThirdwebProvider"),(0,M.Z)(n.authUrl,"Please specify an authUrl in the authConfig."),await fetch(`${n.authUrl}/switch-account`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({address:r})}),e.invalidateQueries(eZ.auth.user())}});return{switchAccount:r.mutateAsync,isLoading:r.isLoading}}(),i=eb(),a=(0,s.NL)();return(0,o.useEffect)(()=>{let a=async e=>{if(e.address)try{await r(e.address)}catch(n){console.debug(`[Auth] Failed to switch account to ${e.address} with error: 10`,n)}},o=async()=>{try{await n()}catch(e){console.debug(`[Auth] Failed to logout with error: 11`,e)}},s=!!e&&i&&i.authUrl;return s&&(e.addListener("connect",a),e.addListener("change",a),e.addListener("disconnect",o)),()=>{s&&(e.removeListener("connect",a),e.removeListener("change",a),e.removeListener("disconnect",o))}},[e,a,i,n,r]),null}function eq(e,n,r){return[(0,o.useMemo)(()=>e.map(e=>(0,E.nRj)(e,r)),[e,r]),(0,o.useMemo)(()=>n&&"string"!=typeof n&&"number"!=typeof n?(0,E.nRj)(n,r):n,[n,r])]}let eY=e=>{let{queryClient:n,children:r}=e,i=(0,o.useMemo)(()=>n||new T,[n]);return(0,A.jsx)(s.aH,{client:i,children:r})},eV=(0,o.createContext)(void 0),eQ=e=>{let{value:n,children:r}=e;return(0,A.jsx)(eV.Provider,{value:n,children:r})},eK=(0,o.createContext)({});function e$(){let{sdk:e}=function(){let e=(0,o.useContext)(eK);return(0,M.Z)(e._inProvider,"useSDK must be called from within a ThirdwebProvider, did you forget to wrap your app in a <ThirdwebProvider />?"),e}();return e}function eJ(){let e=e$();return e?._chainId}let eX={wallet:void 0,address:void 0,chainId:void 0,signer:void 0},e0=(0,o.createContext)(void 0),e1=e=>{let{signer:n,children:r}=e,{chains:i,clientId:a}=function(){let e=(0,o.useContext)(eV);return(0,M.Z)(e,"useThirdwebConfigContext() hook must be used within a <ThirdwebProvider/>"),e}(),s=e$()?.storage,[f,l]=(0,o.useState)({...eX,signer:n||void 0});return(0,o.useEffect)(()=>
11{l(e=>({...e,signer:n||void 0}))},[n]),(0,o.useEffect)(()=>{if(!s)return;let e=n;return n?Promise.all([n.getAddress(),n.getChainId()]).then(r=>{let o,[f,u]=r,c=i.find(e=>e.chainId===u);if(c)try{o=(0,E.OZ$)(c,a)[0]}catch(e){console.error(e)}n===e&&l({wallet:new S.U(n,{readonlySettings:o?{rpcUrl:o,chainId:u}:void 0},s),address:f,chainId:u,signer:n})}).catch(e=>{}):l(eX),()=>{e=void 0}},[n,a]),(0,A.jsx)(e0.Provider,{value:f,children:r})},e6=e=>{let{sdkOptions:n={},storageInterface:r,supportedChains:i,activeChain:a,signer:s,children:f,clientId:l,secretKey:u}=e,c=(0,o.useMemo)(()=>a?"number"==typeof a?a:"string"==typeof a?i.find(e=>e.slug===a)?.chainId:a.chainId:i[0]?.chainId,[a,i]),d=(0,o.useMemo)(()=>{let e,a,o=c,s=i.find(e=>e.chainId===o);if(s||void 0===o||(console.warn(`The chainId ${o} is not in the configured chains, please add it to the ThirdwebProvider`),o=void 0),s&&s.rpc.length>0)try{let n=(0,E.OZ$)(s,l)[0];e={chainId:s.chainId,rpcUrl:n}}catch(e){}let f={readonlySettings:e,...n,supportedChains:i};if(o&&(a=new S.T(o,{...f,clientId:l,secretKey:u},r)),!a){if(i.length>0)o=i[0].chainId,a=new S.T(o,f,r);else{console.error("No chains configured, please pass a chain or chains to the ThirdwebProvider");return}}return a._chainId=o,a},[c,i,n,r,l,u]);(0,o.useEffect)(()=>{d&&d._chainId===c&&(s?d.updateSignerOrProvider(s):c&&d.updateSignerOrProvider(c))},[d,d?._chainId,s,c]);let p=(0,o.useMemo)(()=>({sdk:d&&d._chainId===c?d:void 0,_inProvider:!0}),[c,d]);return(0,A.jsx)(eK.Provider,{value:p,children:f})},e5=e=>{let{signer:n,children:r,queryClient:i,supportedChains:a,activeChain:s,clientId:f,...l}=e;f||(0,S.c)("No API key. Please provide a clientId. It is required to access thirdweb's services. You can create a key at https://thirdweb.com/create-api-key",f,void 0);let u=a||E.gL9,c=(0,o.useMemo)(()=>"object"==typeof s&&null!==s?u.find(e=>e.chainId===s.chainId)?u.map(e=>e.chainId===s.chainId?s:e):[...u,s]:u,[u,s]),[d,p]=eq(c,s||c[0],f),h=(0,o.useMemo)(()=>p&&"string"!=typeof p&&"number"!=typeof p?[...d.filter(e=>e.chainId!==p.chainId),p].filter((e,n,r)=>n===r.findIndex(n=>n.chainId===e.chainId)):d,[d,p]);return(0,A.jsx)(eQ,{value:{chains:h,clientId:f},children:(0,A.jsx)(eY,{queryClient:i,children:(0,A.jsx)(e6,{signer:n,supportedChains:h,clientId:f,activeChain:p,...l,children:(0,A.jsx)(e1,{signer:n,children:r})})})})},e2=e=>{let{activeChain:n,createWalletStorage:r=D.c}=e,i=e.supportedChains||E.gL9,a=(0,o.useMemo)(()=>"object"==typeof n&&null!==n?i.find(e=>e.chainId===n.chainId)?i.map(e=>e.chainId===n.chainId?n:e):[...i,n]:i,[i,n]),[s,f]=eq(a,e.activeChain||a[0],e.clientId),l=(0,o.useMemo)(()=>{if("number"==typeof f){let e=s.find(e=>e.chainId===f);if(!e)throw Error(`Invalid chainId: ${f}. It is not one of supportedChains`);return e}if("string"==typeof f){let e=s.find(e=>e.slug===f);if(!e)throw Error(`Invalid chain: "${f}". It is not one of supportedChains`);return e}return f},[f,s]),u=e.dAppMeta;return(0,A.jsx)(em.Provider,{value:e.theme,children:(0,A.jsx)(eA,{chains:s,supportedWallets:e.supportedWallets,shouldAutoConnect:e.autoConnect,createWalletStorage:r,dAppMeta:u,activeChain:l,autoSwitch:e.autoSwitch,autoConnectTimeout:e.autoConnectTimeout,clientId:e.clientId,activeChainSetExplicitly:!!e.activeChain,signerWallet:e.signerWallet,children:(0,A.jsx)(e4,{queryClient:e.queryClient,sdkOptions:e.sdkOptions,supportedChains:s,activeChain:l,storageInterface:e.storageInterface,authConfig:e.authConfig,clientId:e.clientId,secretKey:e.secretKey,children:(0,A.jsx)(eH,{value:e.authConfig,children:e.children})})})})},e4=e=>{let{children:n,...r}=e,i=eE()?.signer;return(0,A.jsx)(e5,{signer:i,...r,children:n})};function e3(){let e=(0,o.useContext)(eV);return(0,M.Z)(e,"useSupportedChains() hook must be used within a <ThirdwebProvider/>"),e.chains}function e8(e){let n=e9(),{wallet:r,address:i,chainId:a}=function(){let e=(0,o.useContext)(e0);return(0,M.Z)(e,"useThirdwebConnectedWalletContext() hook must be used within a <ThirdwebProvider/>"),e}(),s=(0,o.useMemo)(()=>eZ.wallet.balance(a||-1,i,e),[a,e,i]);return(0,C.a)(s,()=>r?.balance(e),{enabled:!!r&&!!n&&!!a,retry:!0,keepPreviousData:!1})}function e9(){let e=(0,o.useContext)(e0),n=(0,o.useContext)(eC);return n?n.address:((0,M.Z)(e,"useAddress() hook must be used within a <ThirdwebProvider/>"),e.address)}function e7(){let e=(0,o.useContext)(e0),n=(0,o.useContext)(eC);return n?n.chainId:((0,M.Z)(e,"useChainId() hook must be used within a <ThirdwebProvider/> or <ThirdwebSDKProvider/> component"),e.chainId)}function te(){let e=e7(),n=e3(),r=(0,o.useMemo)(()=>n.find(n=>n.chainId===e),[e,n]),i=(0,o.useMemo)(()=>
11{if(!r)return E.gL9.find(n=>n.chainId===e)},[e,r]);return r||i}function tt(){let e=ej(),n=eb();return(0,o.useMemo)(()=>{if(n?.domain&&e)return new ey(e,n.domain)},[e,n?.domain])}function tn(){let e=(0,s.NL)(),n=eb(),r=ej(),i=(0,f.D)({mutationFn:async()=>{let i;(0,M.Z)(n,"Please specify an authConfig in the ThirdwebProvider"),(0,M.Z)(r,"You need a connected wallet to login."),(0,M.Z)(n.authUrl,"Please specify an authUrl in the authConfig.");let a=await r.getAddress(),o=await r.getChainId(),s=await fetch(`${n.authUrl}/payload`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({address:a,chainId:o.toString()})});if(!s.ok)throw Error(`Failed to get payload with status code ${s.status}`);try{({payload:i}=await s.json())}catch{throw Error("Failed to get payload")}let f=await ea({wallet:r,payload:i});if(!(s=await fetch(`${n.authUrl}/login`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({payload:f}),credentials:"include"})).ok){let e=await s.json();if(e.error)throw Error(e.error);throw Error(`Login request failed with status code ${s.status}`)}let{token:l}=await s.json();
11return await n.secureStorage?.setItem(eB,l),e.invalidateQueries(eZ.auth.user()),l}});return{login:()=>i.mutateAsync(),isLoading:i.isLoading}}function tr(){let e=eb(),{data:n,isLoading:r}=(0,C.a)(eZ.auth.user(),async()=>{(0,M.Z)(e,"Please specify an authConfig in the ThirdwebProvider"),(0,M.Z)(e.authUrl,"Please specify an authUrl in the authConfig.");let n=await e.secureStorage?.getItem(eB),r={credentials:"include",...n?{headers:{Authorization:`Bearer ${n}`}}:{}},i=await fetch(`${e.authUrl}/user`,r);return await i.json()},{enabled:!!e});return{user:n,isLoggedIn:!!n,isLoading:r}}function ti(){let e=e$();return e?.storage}function ta(){let e=e7(),n=eJ();return!!n&&-1!==n&&!!e&&n!==e}function to(){let e=(0,o.useContext)(e0),n=(0,o.useContext)(eC);return n?n.signer:((0,M.Z)(e,"useSigner() hook must be used within a <ThirdwebProvider/> or <ThirdwebSDKProvider/> component"),e.signer)}function ts(){let e=e9(),n=e3(),{clientId:r}=eE(),i=n.find(e=>1===e.chainId);return(0,C.a)({queryKey:["ens",e,i?.rpc],cacheTime:864e5,staleTime:36e5,retry:!1,enabled:!!e,queryFn:async()=>{if(!e)return null;let n=(0,I.a_)(1,{clientId:r,supportedChains:i?[{chainId:1,rpc:[...i.rpc],nativeCurrency:i.nativeCurrency,slug:i.slug}]:void 0});if(n instanceof _.r){let[r,i]=await Promise.all([n.lookupAddress(e),n.getAvatar(e)]);return{ens:r,avatarUrl:i}}return{ens:await n.lookupAddress(e),avatarUrl:null}}})}function tf(e){let n=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return`${e.substring(0,n?4:6)}...${e.substring(e.length-(n?3:4))}`}function tl(e){let n=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(!e)return"";try{let r=O.getAddress(e);return tf(r,n)}catch{return e}}function tu(e,n){return(0,C.a)({...n,queryKey:["buyWithCryptoHistory",e],queryFn:()=>{if(!e)throw Error("Swap params are required");return(0,k.b)(e)},enabled:!!e})}function tc(e,n){return(0,C.a)({...n,queryKey:["buyWithCryptoQuote",e],queryFn:()=>{if(!e)throw Error("Swap params are required");if(!e?.clientId)throw Error("Client ID is required in swap params");return(0,k.c)(e)},enabled:!!e})}function td(e){let[n,r]=(0,o.useState)(5e3);return(0,C.a)({queryKey:["swapStatus",e?.transactionHash],queryFn:async()=>{if(!e)throw Error("Missing swap status params");if(!e?.clientId)throw Error("Missing clientId in swap status params");let n=await (0,k.d)({...e,clientId:e.clientId});return("COMPLETED"===n.status||"FAILED"===n.status)&&r(0),n},enabled:!!e,refetchInterval:n,refetchIntervalInBackground:!0,retry:!0})}},87626:function(e,n,r){"use strict";r.d(n,{u:function(){return f}});var i=r(70917),a=r(28058),o=r(27515),s=r(85893);function f(e){return(0,s.jsx)(l,{children:(0,s.jsx)(a.uZ,{onComplete:()=>{e.onEnter()},maxLength:6,value:e.value,render:n=>{let{slots:r}=n;return(0,s.jsx)(o.C,{flex:"row",gap:"xs",center:"both",children:r.map((n,r)=>(0,s.jsx)(u,{...n,isInvalid:e.isInvalid},r))})},onChange:n=>{e.setValue(n)}})})}r(67294),r(78808),r(88003);let l=(0,o.S)({"& input":{maxWidth:"100%"}});function u(e){return(0,s.jsxs)(p,{"data-active":e.isActive,"data-error":e.isInvalid,children:[null!==e.char&&(0,s.jsx)("div",{children:e.char}),e.hasFakeCaret&&(0,s.jsx)(d,{})]})}let c=(0,i.F4)` 12 0%, 100% { 13 opacity: 0; 14 }, 15 50% { 16 opacity: 1; 17 } 18 `,d=(0,o.S)(()=>({position:"absolute",pointerEvents:"none",inset:0,display:"flex",alignItems:"center",justifyContent:"center",animation:`${c} 1s infinite`,"&::before":{content:"''",display:"block",width:"1.5px",height:"1em",backgroundColor:(0,o.u)().colors.primaryText}})),p=(0,o.S)(()=>{let e=(0,o.u)();return{position:"relative",width:"40px",height:"40px",textAlign:"center",display:"flex",alignItems:"center",justifyContent:"center",fontSize:o.f.md,padding:o.s.xs,boxSizing:"border-box",transition:"color 200ms ease",border:`2px solid ${e.colors.borderColor}`,"&[data-active='true']":{borderColor:e.colors.accentText},color:e.colors.primaryText,borderRadius:o.r.lg,"&[data-error='true']":{borderColor:e.colors.danger}}})},24902:function(e,n,r){"use strict";r.d(n,{I:function(){return eE},T:function(){return ez},a:function(){return ej},b:function(){return ex},c:function(){return ev},d:function(){return eN},e:function(){return eg},f:function(){return eS},g:function(){return eI},h:function(){return e_},i:function(){return eO},j:function(){return eP},k:function(){return eL},l:function(){return eD},m:function(){return eR},p:function(){return eb},s:function(){return ew},t:function(){return ek},v:function(){return eT}});var i=r(67294),a=r(96714),o=r(27515),s=r(67848),f=r(85893),l=r(70917),u=r(78808),c=r(36206),d=r(28771),p=r(25360),h=r(46063),y=r(91276),m=r(1371),g=r(18573),b=r(75320),v=i.forwardRef((e,n
18)=>{let{children:r,width:i=10,height:a=5,...o}=e;return(0,f.jsx)(b.WV.svg,{...o,ref:n,width:i,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,f.jsx)("polygon",{points:"0,0 30,0 15,10"})})});v.displayName="Arrow";var w=r(79698),x=r(9981),T="Popper",[C,M]=(0,p.b)(T),[A,E]=C(T),I=e=>{let{__scopePopper:n,children:r}=e,[a,o]=i.useState(null);return(0,f.jsx)(A,{scope:n,anchor:a,onAnchorChange:o,children:r})};I.displayName=T;var S="PopperAnchor",k=i.forwardRef((e,n)=>{let{__scopePopper:r,virtualRef:a,...o}=e,s=E(S,r),l=i.useRef(null),u=(0,d.e)(n,l);return i.useEffect(()=>{s.onAnchorChange(a?.current||l.current)}),a?null:(0,f.jsx)(b.WV.div,{...o,ref:u})});k.displayName=S;var N="PopperContent",[j,D]=C(N),_=i.forwardRef((e,n)=>{let{__scopePopper:r,side:a="bottom",sideOffset:o=0,align:s="center",alignOffset:l=0,arrowPadding:u=0,avoidCollisions:c=!0,collisionBoundary:p=[],collisionPadding:h=0,sticky:y="partial",hideWhenDetached:v=!1,updatePositionStrategy:T="optimized",onPlaced:C,...M}=e,A=E(N,r),[I,S]=i.useState(null),k=(0,d.e)(n,e=>S(e)),[D,_]=i.useState(null),O=function(e){let[n,r]=i.useState(void 0);return(0,x.b)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let n=new ResizeObserver(n=>{let i,a;if(!Array.isArray(n)||!n.length)return;let o=n[0];if("borderBoxSize"in o){let e=o.borderBoxSize,n=Array.isArray(e)?e[0]:e;i=n.inlineSize,a=n.blockSize}else i=e.offsetWidth,a=e.offsetHeight;r({width:i,height:a})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}r(void 0)},[e]),n}(D),P=O?.width??0,L=O?.height??0,U="number"==typeof h?h:{top:0,right:0,bottom:0,left:0,...h},F=Array.isArray(p)?p:[p],Z=F.length>0,W={padding:U,boundary:F.filter(R),altBoundary:Z},{refs:H,floatingStyles:G,placement:q,isPositioned:Y,middlewareData:V}=(0,m.YF)({strategy:"fixed",placement:a+("center"!==s?"-"+s:""),whileElementsMounted:(...e)=>(0,g.Me)(...e,{animationFrame:"always"===T}),elements:{reference:A.anchor},middleware:[(0,m.cv)({mainAxis:o+L,alignmentAxis:l}),c&&(0,m.uY)({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?(0,m.dr)():void 0,...W}),c&&(0,m.RR)({...W}),(0,m.dp)({...W,apply:({elements:e,rects:n,availableWidth:r,availableHeight:i})=>{let{width:a,height:o}=n.reference,s=e.floating.style;s.setProperty("--radix-popper-available-width",`${r}px`),s.setProperty("--radix-popper-available-height",`${i}px`),s.setProperty("--radix-popper-anchor-width",`${a}px`),s.setProperty("--radix-popper-anchor-height",`${o}px`)}}),D&&(0,m.x7)({element:D,padding:u}),z({arrowWidth:P,arrowHeight:L}),v&&(0,m.Cp)({strategy:"referenceHidden",...W})]}),[Q,K]=B(q),$=(0,w.W)(C);(0,x.b)(()=>{Y&&$?.()},[Y,$]);let J=V.arrow?.x,X=V.arrow?.y,ee=V.arrow?.centerOffset!==0,[et,en]=i.useState();return(0,x.b)(()=>{I&&en(window.getComputedStyle(I).zIndex)},[I]),(0,f.jsx)("div",{ref:H.setFloating,"data-radix-popper-content-wrapper":"",style:{...G,transform:Y?G.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:et,"--radix-popper-transform-origin":[V.transformOrigin?.x,V.transformOrigin?.y].join(" "),...V.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,f.jsx)(j,{scope:r,placedSide:Q,onArrowChange:_,arrowX:J,arrowY:X,shouldHideArrow:ee,children:(0,f.jsx)(b.WV.div,{"data-side":Q,"data-align":K,...M,ref:k,style:{...M.style,animation:Y?void 0:"none"}})})})});_.displayName=N;var O="PopperArrow",P={top:"bottom",right:"left",bottom:"top",left:"right"},L=i.forwardRef(function(e,n){let{__scopePopper:r,...i}=e,a=D(O,r),o=P[a.placedSide];return(0,f.jsx)("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:(0,f.jsx)(v,{...i,ref:n,style:{...i.style,display:"block"}})})});function R(e){return null!==e}L.displayName=O;var z=e=>({name:"transformOrigin",options:e,fn(n){let{placement:r,rects:i,middlewareData:a}=n,o=a.arrow?.centerOffset!==0,s=o?0:e.arrowWidth,f=o?0:e.arrowHeight,[l,u]=B(r),c={start:"0%",center:"50%",end:"100%"}[u],d=(a.arrow?.x??0)+s/2,p=(a.arrow?.y??0)+f/2,h="",y="";return"bottom"===l?(h=o?c:`${d}px`,y=`${-f}px`):"top"===l?(h=o?c:`${d}px`,y=`${i.floating.height+f}px`):"right"===l?(h=`${-f}px`,y=o?c:`${p}px`):"left"===l&&(h=`${i.floating.width+f}px`,y=o?c:`${p}px`),{data:{x:h,y}}}});function B(e){let[n,r="center"]=e.split("-");return[n,r]}var U=r(42651),F=r(29115),Z=r(88426),W=r(77342),H=i.forwardRef((e,n
18)=>(0,f.jsx)(b.WV.span,{...e,ref:n,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));H.displayName="VisuallyHidden";var[G,q]=(0,p.b)("Tooltip",[M]),Y=M(),V="TooltipProvider",Q="tooltip.open",[K,$]=G(V),J=e=>{let{__scopeTooltip:n,delayDuration:r=700,skipDelayDuration:a=300,disableHoverableContent:o=!1,children:s}=e,[l,u]=i.useState(!0),c=i.useRef(!1),d=i.useRef(0);return i.useEffect(()=>{let e=d.current;return()=>window.clearTimeout(e)},[]),(0,f.jsx)(K,{scope:n,isOpenDelayed:l,delayDuration:r,onOpen:i.useCallback(()=>{window.clearTimeout(d.current),u(!1)},[]),onClose:i.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>u(!0),a)},[a]),isPointerInTransitRef:c,onPointerInTransitChange:i.useCallback(e=>{c.current=e},[]),disableHoverableContent:o,children:s})};J.displayName=V;var X="Tooltip",[ee,et]=G(X),en=e=>{let{__scopeTooltip:n,children:r,open:a,defaultOpen:o=!1,onOpenChange:s,disableHoverableContent:l,delayDuration:u}=e,c=$(X,e.__scopeTooltip),d=Y(n),[p,h]=i.useState(null),m=(0,y.M)(),g=i.useRef(0),b=l??c.disableHoverableContent,v=u??c.delayDuration,w=i.useRef(!1),[x=!1,T]=(0,W.T)({prop:a,defaultProp:o,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(Q))):c.onClose(),s?.(e)}}),C=i.useMemo(()=>x?w.current?"delayed-open":"instant-open":"closed",[x]),M=i.useCallback(()=>{window.clearTimeout(g.current),w.current=!1,T(!0)},[T]),A=i.useCallback(()=>{window.clearTimeout(g.current),T(!1)},[T]),E=i.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{w.current=!0,T(!0)},v)},[v,T]);return i.useEffect(()=>()=>window.clearTimeout(g.current),[]),(0,f.jsx)(I,{...d,children:(0,f.jsx)(ee,{scope:n,contentId:m,open:x,stateAttribute:C,trigger:p,onTriggerChange:h,onTriggerEnter:i.useCallback(()=>{c.isOpenDelayed?E():M()},[c.isOpenDelayed,E,M]),onTriggerLeave:i.useCallback(()=>{b?A():window.clearTimeout(g.current)},[A,b]),onOpen:M,onClose:A,disableHoverableContent:b,children:r})})};en.displayName=X;var er="TooltipTrigger",ei=i.forwardRef((e,n)=>{let{__scopeTooltip:r,...a}=e,o=et(er,r),s=$(er,r),l=Y(r),u=i.useRef(null),p=(0,d.e)(n,u,o.onTriggerChange),h=i.useRef(!1),y=i.useRef(!1),m=i.useCallback(()=>h.current=!1,[]);return i.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),(0,f.jsx)(k,{asChild:!0,...l,children:(0,f.jsx)(b.WV.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...a,ref:p,onPointerMove:(0,c.M)(e.onPointerMove,e=>{"touch"===e.pointerType||y.current||s.isPointerInTransitRef.current||(o.onTriggerEnter(),y.current=!0)}),onPointerLeave:(0,c.M)(e.onPointerLeave,()=>{o.onTriggerLeave(),y.current=!1}),onPointerDown:(0,c.M)(e.onPointerDown,()=>{h.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:(0,c.M)(e.onFocus,()=>{h.current||o.onOpen()}),onBlur:(0,c.M)(e.onBlur,o.onClose),onClick:(0,c.M)(e.onClick,o.onClose)})})});ei.displayName=er;var ea="TooltipPortal",[eo,es]=G(ea,{forceMount:void 0}),ef=e=>{let{__scopeTooltip:n,forceMount:r,children:i,container:a}=e,o=et(ea,n);return(0,f.jsx)(eo,{scope:n,forceMount:r,children:(0,f.jsx)(F.z,{present:r||o.open,children:(0,f.jsx)(U.h,{asChild:!0,container:a,children:i})})})};ef.displayName=ea;var el="TooltipContent",eu=i.forwardRef((e,n)=>{let r=es(el,e.__scopeTooltip),{forceMount:i=r.forceMount,side:a="top",...o}=e,s=et(el,e.__scopeTooltip);return(0,f.jsx)(F.z,{present:i||s.open,children:s.disableHoverableContent?(0,f.jsx)(eh,{side:a,...o,ref:n}):(0,f.jsx)(ec,{side:a,...o,ref:n})})}),ec=i.forwardRef((e,n)=>{let r=et(el,e.__scopeTooltip),a=$(el,e.__scopeTooltip),o=i.useRef(null),s=(0,d.e)(n,o),[l,u]=i.useState(null),{trigger:c,onClose:p}=r,h=o.current,{onPointerInTransitChange:y}=a,m=i.useCallback(()=>{u(null),y(!1)},[y]),g=i.useCallback((e,n)=>{let r=e.currentTarget,i={x:e.clientX,y:e.clientY},a=function(e,n){let r=Math.abs(n.top-e.y),i=Math.abs(n.bottom-e.y),a=Math.abs(n.right-e.x),o=Math.abs(n.left-e.x);switch(Math.min(r,i,a,o)){case o:return"left";case a:return"right";case r:return"top";case i:return"bottom";default:throw Error("unreachable")}}(i,r.getBoundingClientRect());u(function(e){let n=e.slice();return n.sort((e,n)=>e.x<n.x?-1:e.x>n.x?1:e.y<n.y?-1:e.y>n.y?1:0),function(e){if(e.length<=1)return e.slice();let n=[];for(let r=0;r<e.length;r++){let i=e[r];for(;n.length>=2;){let e=n[n.length-1],r=n[n.length-2];if((e.x-r.x)*(i.y-r.y)>=(e.y-r.y)*(i.x-r.x))n.pop();else break}n.push(i)}n.pop();let r=[];for(let n=e.length-1;n>=0;n--){let i=e[n];for(;r.length>=2;){let e=r[r.length-1],n=r[r.length-2];if((e.x-n.x)*(i.y-n.y)>=(e.y-n.y)*(i.x-n.x))r.pop();else break}r.push(i)}return(r.pop(),1===n.length&&1===r.length&&n[0].x===r[0].x&&n[0].y===r[0].y)?n:n.concat(r)}(n)}([...function(e,n,r=5){let i=[];switch(n){case"top":i.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":i.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":i.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":i.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r})}return i}
18(i,a),...function(e){let{top:n,right:r,bottom:i,left:a}=e;return[{x:a,y:n},{x:r,y:n},{x:r,y:i},{x:a,y:i}]}(n.getBoundingClientRect())])),y(!0)},[y]);return i.useEffect(()=>()=>m(),[m]),i.useEffect(()=>{if(c&&h){let e=e=>g(e,h),n=e=>g(e,c);return c.addEventListener("pointerleave",e),h.addEventListener("pointerleave",n),()=>{c.removeEventListener("pointerleave",e),h.removeEventListener("pointerleave",n)}}},[c,h,g,m]),i.useEffect(()=>{if(l){let e=e=>{let n=e.target,r={x:e.clientX,y:e.clientY},i=c?.contains(n)||h?.contains(n),a=!function(e,n){let{x:r,y:i}=e,a=!1;for(let e=0,o=n.length-1;e<n.length;o=e++){let s=n[e].x,f=n[e].y,l=n[o].x,u=n[o].y;f>i!=u>i&&r<(l-s)*(i-f)/(u-f)+s&&(a=!a)}return a}(r,l);i?m():a&&(m(),p())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[c,h,l,p,m]),(0,f.jsx)(eh,{...e,ref:s})}),[ed,ep]=G(X,{isInside:!1}),eh=i.forwardRef((e,n)=>{let{__scopeTooltip:r,children:a,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:l,...u}=e,c=et(el,r),d=Y(r),{onClose:p}=c;return i.useEffect(()=>(document.addEventListener(Q,p),()=>document.removeEventListener(Q,p)),[p]),i.useEffect(()=>{if(c.trigger){let e=e=>{let n=e.target;n?.contains(c.trigger)&&p()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[c.trigger,p]),(0,f.jsx)(h.XB,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:p,children:(0,f.jsxs)(_,{"data-state":c.stateAttribute,...d,...u,ref:n,style:{...u.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,f.jsx)(Z.A4,{children:a}),(0,f.jsx)(ed,{scope:r,isInside:!0,children:(0,f.jsx)(H,{id:c.contentId,role:"tooltip",children:o||a})})]})})});eu.displayName=el;var ey="TooltipArrow",em=i.forwardRef((e,n)=>{let{__scopeTooltip:r,...i}=e,a=Y(r);return ep(ey,r).isInside?null:(0,f.jsx)(L,{...a,...i,ref:n})});em.displayName=ey;let eg="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzM1ODlfODY0OSkiPgo8cmVjdCB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHJ4PSI4IiBmaWxsPSJ1cmwoI3BhaW50MF9saW5lYXJfMzU4OV84NjQ5KSIvPgo8cmVjdCB4PSItMSIgeT0iLTEiIHdpZHRoPSI1MCIgaGVpZ2h0PSI1MCIgcng9IjkuOCIgZmlsbD0idXJsKCNwYWludDFfbGluZWFyXzM1ODlfODY0OSkiLz4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAxXzM1ODlfODY0OSkiPgo8cGF0aCBkPSJNMjQgMTQuMjVDMTguNjE3MiAxNC4yNSAxNC4yNSAxOC42MTcyIDE0LjI1IDI0QzE0LjI1IDI5LjM4MjggMTguNjE3MiAzMy43NSAyNCAzMy43NUMyNC44OTg4IDMzLjc1IDI1LjYyNSAzNC40NzYyIDI1LjYyNSAzNS4zNzVDMjUuNjI1IDM2LjI3MzggMjQuODk4OCAzNyAyNCAzN0MxNi44MTk1IDM3IDExIDMxLjE4MDUgMTEgMjRDMTEgMTYuODE5NSAxNi44MTk1IDExIDI0IDExQzMxLjE4MDUgMTEgMzcgMTYuODE5NSAzNyAyNFYyNS42MjVDMzcgMjguMzE2NCAzNC44MTY0IDMwLjUgMzIuMTI1IDMwLjVDMzAuNjM3MSAzMC41IDI5LjMwMTYgMjkuODI5NyAyOC40MDc4IDI4Ljc3ODVDMjcuMjUgMjkuODQ0OSAyNS43MDEyIDMwLjUgMjQgMzAuNUMyMC40MDk4IDMwLjUgMTcuNSAyNy41OTAyIDE3LjUgMjRDMTcuNSAyMC40MDk4IDIwLjQwOTggMTcuNSAyNCAxNy41QzI1LjQxNjggMTcuNSAyNi43MjcgMTcuOTUyIDI3Ljc5MzQgMTguNzIzOEMyOC4wODI4IDE4LjQ2OTkgMjguNDU4NiAxOC4zMTI1IDI4Ljg3NSAxOC4zMTI1QzI5Ljc3MzggMTguMzEyNSAzMC41IDE5LjAzODcgMzAuNSAxOS45Mzc1VjI1LjYyNUMzMC41IDI2LjUyMzggMzEuMjI2MiAyNy4yNSAzMi4xMjUgMjcuMjVDMzMuMDIzOCAyNy4yNSAzMy43NSAyNi41MjM4IDMzLjc1IDI1LjYyNVYyNEMzMy43NSAxOC42MTcyIDI5LjM4MjggMTQuMjUgMjQgMTQuMjVaTTI3LjI1IDI0QzI3LjI1IDIzLjEzOCAyNi45MDc2IDIyLjMxMTQgMjYuMjk4MSAyMS43MDE5QzI1LjY4ODYgMjEuMDkyNCAyNC44NjIgMjAuNzUgMjQgMjAuNzVDMjMuMTM4IDIwLjc1IDIyLjMxMTQgMjEuMDkyNCAyMS43MDE5IDIxLjcwMTlDMjEuMDkyNCAyMi4zMTE0IDIwLjc1IDIzLjEzOCAyMC43NSAyNEMyMC43NSAyNC44NjIgMjEuMDkyNCAyNS42ODg2IDIxLjcwMTkgMjYuMjk4MUMyMi4zMTE0IDI2LjkwNzYgMjMuMTM4IDI3LjI1IDI0IDI3LjI1QzI0Ljg2MiAyNy4yNSAyNS42ODg2IDI2LjkwNzYgMjYuMjk4MSAyNi4yOTgxQzI2LjkwNzYgMjUuNjg4NiAyNy4yNSAyNC44NjIgMjcuMjUgMjRaIiBmaWxsPSJ3aGl0ZSIvPgo8L2c+CjwvZz4KPGRlZnM+CjxsaW5lYXJHcmFkaWVudCBpZD0icGFpbnQwX2xpbmVhcl8zNTg5Xzg2NDkiIHgxPSIyNS41IiB5MT0iLTYuMjk1NzJlLTA2IiB4Mj0iMzAuMjAxNiIgeTI9IjQ3LjUzNSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjODM1OEJBIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzdCMUNGNyIvPgo8L2xpbmVhckdyYWRpZW50Pgo8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MV9saW5lYXJfMzU4OV84NjQ5IiB4MT0iMjUuNTYyNSIgeTE9Ii0xLjA
18wMDAxIiB4Mj0iMzAuNDYiIHkyPSI0OC41MTU2IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CjxzdG9wIHN0b3AtY29sb3I9IiM4MzU4QkEiLz4KPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjN0IxQ0Y3Ii8+CjwvbGluZWFyR3JhZGllbnQ+CjxjbGlwUGF0aCBpZD0iY2xpcDBfMzU4OV84NjQ5Ij4KPHJlY3Qgd2lkdGg9IjQ4IiBoZWlnaHQ9IjQ4IiByeD0iOCIgZmlsbD0id2hpdGUiLz4KPC9jbGlwUGF0aD4KPGNsaXBQYXRoIGlkPSJjbGlwMV8zNTg5Xzg2NDkiPgo8cmVjdCB3aWR0aD0iMjYiIGhlaWdodD0iMjYiIGZpbGw9IndoaXRlIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMSAxMSkiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K",eb="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzM1ODlfODYwMikiPgo8cmVjdCB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHJ4PSI4IiBmaWxsPSJ1cmwoI3BhaW50MF9saW5lYXJfMzU4OV84NjAyKSIvPgo8cmVjdCB4PSItMSIgeT0iLTEiIHdpZHRoPSI1MCIgaGVpZ2h0PSI1MCIgcng9IjkuOCIgZmlsbD0idXJsKCNwYWludDFfbGluZWFyXzM1ODlfODYwMikiLz4KPHBhdGggZD0iTTE4Ljg2MjIgMjYuODY0NkwxOS41MTk0IDI3LjUxODlDMTkuNTE5NCAyNy41MTg5IDIxLjA4MzcgMjkuMDczMSAyNS4zNTIxIDI0LjgyOTNDMjkuNjIwNSAyMC41ODU1IDI4LjA1NjEgMTkuMDMxMyAyOC4wNTYxIDE5LjAzMTNMMjcuNjQzIDE4LjYxODFDMjYuNjIxOCAxNy42MDQxIDI2LjUyNSAxNS45NzQ4IDI3LjQxNjIgMTQuNzg0NkwyOS4yMzYyIDEyLjM1MzVDMzAuMzM5OCAxMC44ODAyIDMyLjQ3MDQgMTAuNjg1MiAzMy43MzQzIDExLjk0MTlMMzYuMDAyMSAxNC4xOTUyQzM2LjYyNzUgMTQuODE5MiAzNy4wNDY0IDE1LjYyNTIgMzYuOTk1OSAxNi41MjA4QzM2Ljg2NTkgMTguODEzMSAzNS44Mjg4IDIzLjc0MzEgMzAuMDQ1MSAyOS40OTQ5QzIzLjkxMDUgMzUuNTkzNCAxOC4xNTQ0IDM1LjgzNjEgMTUuODAxNCAzNS42MTY1QzE1LjA1NiAzNS41NDcyIDE0LjQwODkgMzUuMTY4NyAxMy44ODc0IDM0LjY0ODdMMTEuODM2MyAzMi42MDkyQzEwLjQ0OTYgMzEuMjMyNiAxMC44Mzk2IDI4Ljg3MDkgMTIuNjEzNCAyNy45MDc0TDE1LjM3MjMgMjYuNDA2N0MxNi41MzY2IDI1Ljc3NCAxNy45NTIxIDI1Ljk2MDMgMTguODYyMiAyNi44NjQ2WiIgZmlsbD0id2hpdGUiLz4KPC9nPgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzM1ODlfODYwMiIgeDE9IjI1LjUiIHkxPSItNi4yOTU3MmUtMDYiIHgyPSIzMC4yMDE2IiB5Mj0iNDcuNTM1IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CjxzdG9wIHN0b3AtY29sb3I9IiM4MzU4QkEiLz4KPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjN0IxQ0Y3Ii8+CjwvbGluZWFyR3JhZGllbnQ+CjxsaW5lYXJHcmFkaWVudCBpZD0icGFpbnQxX2xpbmVhcl8zNTg5Xzg2MDIiIHgxPSIyNS41NjI1IiB5MT0iLTEuMDAwMDEiIHgyPSIzMC40NiIgeTI9IjQ4LjUxNTYiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iIzgzNThCQSIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM3QjFDRjciLz4KPC9saW5lYXJHcmFkaWVudD4KPGNsaXBQYXRoIGlkPSJjbGlwMF8zNTg5Xzg2MDIiPgo8cmVjdCB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHJ4PSI4IiBmaWxsPSJ3aGl0ZSIvPgo8L2NsaXBQYXRoPgo8L2RlZnM+Cjwvc3ZnPgo=",ev="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzM2ODVfNjcwMikiPgo8cmVjdCB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHJ4PSI4IiBmaWxsPSJ1cmwoI3BhaW50MF9saW5lYXJfMzY4NV82NzAyKSIvPgo8cmVjdCB4PSItMSIgeT0iLTEiIHdpZHRoPSI1MCIgaGVpZ2h0PSI1MCIgcng9IjkuOCIgZmlsbD0idXJsKCNwYWludDFfbGluZWFyXzM2ODVfNjcwMikiLz4KPHBhdGggZD0iTTE3IDExQzEzLjY4NzUgMTEgMTEgMTMuNjg3NSAxMSAxN0MxMSAyMC4zMTI1IDEzLjY4NzUgMjMgMTcgMjNDMTcuNTUzMSAyMyAxOCAyMy40NDY5IDE4IDI0QzE4IDI0LjU1MzEgMTcuNTUzMSAyNSAxNyAyNUMxMi41ODEzIDI1IDkgMjEuNDE4NyA5IDE3QzkgMTIuNTgxMyAxMi41ODEzIDkgMTcgOUMyMS40MTg3IDkgMjUgMTIuNTgxMyAyNSAxN1YxOEMyNSAxOS42NTYyIDIzLjY1NjIgMjEgMjIgMjFDMjEuMDg0NCAyMSAyMC4yNjI1IDIwLjU4NzUgMTkuNzEyNSAxOS45NDA2QzE5IDIwLjU5NjkgMTguMDQ2OSAyMSAxNyAyMUMxNC43OTA2IDIxIDEzIDE5LjIwOTQgMTMgMTdDMTMgMTQuNzkwNiAxNC43OTA2IDEzIDE3IDEzQzE3Ljg3MTkgMTMgMTguNjc4MSAxMy4yNzgxIDE5LjMzNDQgMTMuNzUzMUMxOS41MTI1IDEzLjU5NjkgMTkuNzQzOCAxMy41IDIwIDEzLjVDMjAuNTUzMSAxMy41IDIxIDEzLjk0NjkgMjEgMTQuNVYxOEMyMSAxOC41NTMxIDIxLjQ0NjkgMTkgMjIgMTlDMjIuNTUzMSAxOSAyMyAxOC41NTMxIDIzIDE4VjE3QzIzIDEzLjY4NzUgMjAuMzEyNSAxMSAxNyAxMVpNMTkgMTdDMTkgMTYuNDY5NiAxOC43ODkzIDE1Ljk2MDkgMTguNDE0MiAxNS41ODU4QzE4LjAzOTEgMTUuMjEwNyAxNy41MzA0IDE1IDE3IDE1QzE2LjQ2OTYgMTUgMTUuOTYwOSAxNS4yMTA3IDE1LjU4NTggMTUuNTg1OEMxNS4yMTA3IDE1Ljk2MDkgMTUgMTYuNDY5NiAxNSAxN0MxNSAxNy41MzA0IDE1LjIxMDcgMTguMDM5MSAxNS41ODU4IDE4LjQxNDJDMTUuOTYwOSAxOC43ODkzIDE2LjQ2OTYgMTkgMTcgMTlDMTcuNTMwNCAxOSAxOC4wMzkxIDE4Ljc4OTMgMTguNDE0MiAxOC40MTQyQzE4Ljc4OTMgMTguMDM5MSAxOSAxNy41MzA0IDE5IDE3WiIgZmlsbD0id2hp
18dGUiLz4KPHBhdGggZD0iTTI3LjgzODQgMzMuMjY0NEwyOC4yNDI5IDMzLjY5MDdDMjguMjQyOSAzMy42OTA3IDI5LjIwNTUgMzQuNzAzNCAzMS44MzIyIDMxLjkzODNDMzQuNDU4OCAyOS4xNzMxIDMzLjQ5NjIgMjguMTYwNCAzMy40OTYyIDI4LjE2MDRMMzMuMjQxOSAyNy44OTEyQzMyLjYxMzUgMjcuMjMwNSAzMi41NTM5IDI2LjE2ODkgMzMuMTAyNCAyNS4zOTM0TDM0LjIyMjQgMjMuODA5NEMzNC45MDE1IDIyLjg0OTQgMzYuMjEyNiAyMi43MjIzIDM2Ljk5MDQgMjMuNTQxMkwzOC4zODU5IDI1LjAwOTRDMzguNzcwOCAyNS40MTYgMzkuMDI4NiAyNS45NDExIDM4Ljk5NzUgMjYuNTI0N0MzOC45MTc1IDI4LjAxODMgMzguMjc5MiAzMS4yMzA1IDM0LjcyMDIgMzQuOTc4M0MzMC45NDUxIDM4Ljk1MTkgMjcuNDAyOSAzOS4xMSAyNS45NTQ5IDM4Ljk2NjlDMjUuNDk2MiAzOC45MjE4IDI1LjA5OCAzOC42NzUyIDI0Ljc3NzEgMzguMzM2M0wyMy41MTQ5IDM3LjAwNzRDMjIuNjYxNiAzNi4xMTA1IDIyLjkwMTYgMzQuNTcxNyAyMy45OTMxIDMzLjk0MzlMMjUuNjkwOSAzMi45NjZDMjYuNDA3MyAzMi41NTM4IDI3LjI3ODQgMzIuNjc1MiAyNy44Mzg0IDMzLjI2NDRaIiBmaWxsPSJ3aGl0ZSIvPgo8L2c+CjxkZWZzPgo8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MF9saW5lYXJfMzY4NV82NzAyIiB4MT0iMjUuNSIgeTE9Ii02LjI5NTcyZS0wNiIgeDI9IjMwLjIwMTYiIHkyPSI0Ny41MzUiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iIzgzNThCQSIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM3QjFDRjciLz4KPC9saW5lYXJHcmFkaWVudD4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDFfbGluZWFyXzM2ODVfNjcwMiIgeDE9IjI1LjU2MjUiIHkxPSItMS4wMDAwMSIgeDI9IjMwLjQ2IiB5Mj0iNDguNTE1NiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjODM1OEJBIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzdCMUNGNyIvPgo8L2xpbmVhckdyYWRpZW50Pgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzM2ODVfNjcwMiI+CjxyZWN0IHdpZHRoPSI0OCIgaGVpZ2h0PSI0OCIgcng9IjgiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==",ew="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODAiIGhlaWdodD0iODAiIHZpZXdCb3g9IjAgMCA4MCA4MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjgwIiBoZWlnaHQ9IjgwIiByeD0iMTIiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8xXzkxKSIvPgo8cGF0aCBkPSJNMzkuOTk2OSAxOEw0MC4yMzMzIDE4LjAxNTZMNDAuMzUxMyAxOC4wMzMzTDQwLjQ3MzYgMTguMDYyMkw0MC42OTU4IDE4LjEzNzhDNDAuODQ5NCAxOC4yMDA2IDQwLjk5NTQgMTguMjg0MiA0MS4xMzA1IDE4LjM4NjdMNDEuMzM4NyAxOC41Njg5TDQxLjg0OTMgMTkuMDUzM0M0NS44ODkxIDIyLjc3NjggNTAuOTk0NyAyNC43NzYyIDU2LjI0NTggMjQuNjkxMUw1Ni45MzA3IDI0LjY2ODlDNTcuMzc4MyAyNC42NDYyIDU3LjgyIDI0Ljc5MDkgNTguMTg0OSAyNS4wNzk4QzU4LjU0OTggMjUuMzY4NyA1OC44MTY3IDI1Ljc4NSA1OC45NDMxIDI2LjI2MjJDNTkuOTI3MSAyOS45NzY5IDYwLjIyODMgMzMuODczMSA1OS44Mjg3IDM3LjcxOTRDNTkuNDI4OSA0MS41NjU4IDU4LjMzNjcgNDUuMjgzNiA1Ni42MTY1IDQ4LjY1MjNDNTQuODk2NSA1Mi4wMjA3IDUyLjU4MzYgNTQuOTcxNCA0OS44MTU2IDU3LjMyODVDNDcuMDQ3NiA1OS42ODU2IDQzLjg4MDkgNjEuNDAxMiA0MC41MDM2IDYyLjM3MzRDNDAuMTc0IDYyLjQ2ODMgMzkuODI4IDYyLjQ2ODMgMzkuNDk4MiA2Mi4zNzM0QzM2LjEyMDkgNjEuNDAxNCAzMi45NTM4IDU5LjY4NiAzMC4xODU2IDU3LjMyODlDMjcuNDE3NiA1NC45NzE4IDI1LjEwNDUgNTIuMDIxNCAyMy4zODQyIDQ4LjY1MjlDMjEuNjYzOCA0NS4yODQzIDIwLjU3MTMgNDEuNTY2MiAyMC4xNzE1IDM3LjcxOThDMTkuNzcxNyAzMy44NzM0IDIwLjA3MjcgMjkuOTc2OSAyMS4wNTY3IDI2LjI2MjJDMjEuMTgzMSAyNS43ODUgMjEuNDUwMSAyNS4zNjg3IDIxLjgxNSAyNS4wNzk4QzIyLjE3OTkgMjQuNzkwOSAyMi42MjE1IDI0LjY0NjIgMjMuMDY5MyAyNC42Njg5QzI4LjU1MTMgMjQuOTQ3IDMzLjkyOTMgMjIuOTQ0NCAzOC4xNTA3IDE5LjA1MzNMMzguNjc3MyAxOC41NTMzTDM4Ljg2OTYgMTguMzg2N0MzOS4wMDQ3IDE4LjI4NDIgMzkuMTUwNSAxOC4yMDA2IDM5LjMwNCAxOC4xMzc4TDM5LjUyODIgMTguMDYyMkMzOS42MDY5IDE4LjA0MTIgMzkuNjg2NSAxOC4wMjU2IDM5Ljc2NjcgMTguMDE1NkwzOS45OTY5IDE4Wk00MC4wMDA5IDMzLjU1NTZDMzguOTkwNSAzMy41NTUxIDM4LjAxNzMgMzMuOTc4NyAzNy4yNzY1IDM0Ljc0MTFDMzYuNTM1NiAzNS41MDM2IDM2LjA4MTYgMzYuNTQ4NSAzNi4wMDU4IDM3LjY2NjdMMzUuOTk1OCAzOEwzNi4wMDU4IDM4LjMzMzRDMzYuMDU1MSAzOS4wNTQ3IDM2LjI2MjUgMzkuNzUxOCAzNi42MDk4IDQwLjM2NEMzNi45NTY5IDQwLjk3NjIgMzcuNDMzNiA0MS40ODUxIDM3Ljk5ODUgNDEuODQ2N1Y0NS43Nzc4TDM4LjAxMjUgNDYuMDM3OEMzOC4wNzI3IDQ2LjYwMDMgMzguMzI0MiA0Ny4xMTU4IDM4LjcxNTYgNDcuNDc5NEMzOS4xMDcxIDQ3Ljg0MjkgMzkuNjA4NyA0OC4wMjY5IDQwLjExODIgNDcuOTkzOEM0MC42Mjc4IDQ3Ljk2MDUgNDEuMTA2NyA0Ny43MTI3IDQxLjQ1NzEgNDcuMzAwOUM0MS44MDc2IDQ2Ljg4ODkgNDIuMDAyOSA0Ni4zNDQzIDQyLjAwMzYgNDUuNzc3OEw0Mi4wMDU2IDQxLjg0ODlDNDIuNzY5MSA0MS4zNTk2IDQzLjM2NiA0MC42MDQyIDQzLjcwMzQgMzkuNzAwMkM0NC4wNDA3IDM4Ljc5NiA0NC4wOTk2IDM3Ljc5MzggNDMuODcxMSAzNi44NDg3QzQzLjY0MjcgMzUuOTAzNiA0My4xMzk2IDM1LjA2ODUgNDIuNDM5OCAzNC40NzMxQzQxLjc0IDMzLjg3NzYgNDAuODgyNyAzMy41NTUxIDQwLjAwMDkgMzMuNTU1NloiIGZpbGw9InVybCgjcGFpbnQxX2xpbmVhcl8xXzkxKSIvPgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzFfOTEiIHgxPSI0MCIgeTE9IjAiIHgyPS
18I0MCIgeTI9IjgwIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CjxzdG9wIHN0b3AtY29sb3I9IiM4MzU2QkQiLz4KPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjN0MyMEY0Ii8+CjwvbGluZWFyR3JhZGllbnQ+CjxsaW5lYXJHcmFkaWVudCBpZD0icGFpbnQxX2xpbmVhcl8xXzkxIiB4MT0iNDAiIHkxPSIxOCIgeDI9IjQwIiB5Mj0iNjIuNDQ0NSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSJ3aGl0ZSIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNFMUQ4RkIiLz4KPC9saW5lYXJHcmFkaWVudD4KPC9kZWZzPgo8L3N2Zz4K",ex="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzQwNDhfNDIzMSkiPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTcuNTg0IDQuODU1NjZDNy43MTA2OSA0Ljc4MjUyIDcuODU0MzkgNC43NDQwMiA4LjAwMDY3IDQuNzQ0MDJDOC4xNDY5NSA0Ljc0NDAyIDguMjkwNjUgNC43ODI1MiA4LjQxNzM0IDQuODU1NjZMMTAuNTE1MyA2LjA2NjY2QzEwLjY0MiA2LjEzOTggMTAuNzQ3MiA2LjI0NSAxMC44MjA0IDYuMzcxNjhDMTAuODkzNSA2LjQ5ODM1IDEwLjkzMiA2LjY0MjA1IDEwLjkzMiA2Ljc4ODMzVjkuMjExQzEwLjkzMiA5LjM1NzI3IDEwLjg5MzUgOS41MDA5NyAxMC44MjA0IDkuNjI3NjVDMTAuNzQ3MiA5Ljc1NDMzIDEwLjY0MiA5Ljg1OTUzIDEwLjUxNTMgOS45MzI2Nkw4LjQxNzM0IDExLjE0NEM4LjI5MDY1IDExLjIxNzEgOC4xNDY5NSAxMS4yNTU2IDguMDAwNjcgMTEuMjU1NkM3Ljg1NDM5IDExLjI1NTYgNy43MTA2OSAxMS4yMTcxIDcuNTg0IDExLjE0NEw1LjQ4NiA5LjkzMjY2QzUuMzU5MzIgOS44NTk1MyA1LjI1NDEzIDkuNzU0MzMgNS4xODA5OSA5LjYyNzY1QzUuMTA3ODUgOS41MDA5NyA1LjA2OTM0IDkuMzU3MjcgNS4wNjkzNCA5LjIxMVY2Ljc4ODY2QzUuMDY5MjggNi42NDIzMyA1LjEwNzc2IDYuNDk4NTYgNS4xODA5IDYuMzcxODJDNS4yNTQwNSA2LjI0NTA4IDUuMzU5MjcgNi4xMzk4MyA1LjQ4NiA2LjA2NjY2TDcuNTg0IDQuODU1NjZaTTguMDg0IDUuNDMzQzguMDU4NjcgNS40MTgzNyA4LjAyOTkzIDUuNDEwNjcgOC4wMDA2NyA1LjQxMDY3QzcuOTcxNDEgNS40MTA2NyA3Ljk0MjY3IDUuNDE4MzcgNy45MTczNCA1LjQzM0w1LjgxOTM0IDYuNjQ0MzNDNS43OTQgNi42NTg5NiA1Ljc3Mjk2IDYuNjggNS43NTgzMyA2LjcwNTMzQzUuNzQzNyA2LjczMDY3IDUuNzM2IDYuNzU5NDEgNS43MzYgNi43ODg2NlY5LjIxMTMzQzUuNzM2IDkuMjQwNTkgNS43NDM3IDkuMjY5MzMgNS43NTgzMyA5LjI5NDY2QzUuNzcyOTYgOS4zMiA1Ljc5NCA5LjM0MTA0IDUuODE5MzQgOS4zNTU2Nkw3LjkxNzM0IDEwLjU2NjdDNy45NDI2NyAxMC41ODEzIDcuOTcxNDEgMTAuNTg5IDguMDAwNjcgMTAuNTg5QzguMDI5OTMgMTAuNTg5IDguMDU4NjcgMTAuNTgxMyA4LjA4NCAxMC41NjY3TDEwLjE4MiA5LjM1NTMzQzEwLjIwNzMgOS4zNDA3IDEwLjIyODQgOS4zMTk2NiAxMC4yNDMgOS4yOTQzM0MxMC4yNTc2IDkuMjY4OTkgMTAuMjY1MyA5LjI0MDI1IDEwLjI2NTMgOS4yMTFWNi43ODg2NkMxMC4yNjUzIDYuNzU5NDEgMTAuMjU3NiA2LjczMDY3IDEwLjI0MyA2LjcwNTMzQzEwLjIyODQgNi42OCAxMC4yMDczIDYuNjU4OTYgMTAuMTgyIDYuNjQ0MzNMOC4wODQgNS40MzNaIiBmaWxsPSIjNUM1QzVDIi8+CjwvZz4KPGNpcmNsZSBjeD0iOCIgY3k9IjgiIHI9IjcuNjkyMzEiIHN0cm9rZT0iIzVDNUM1QyIgc3Ryb2tlLXdpZHRoPSIwLjYxNTM4NSIvPgo8Y2lyY2xlIGN4PSI3Ljk5OTU1IiBjeT0iOC4wMDAwNCIgcj0iNS44NDYxNSIgc3Ryb2tlPSIjNUM1QzVDIiBzdHJva2Utd2lkdGg9IjAuNjE1Mzg1Ii8+CjxkZWZzPgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzQwNDhfNDIzMSI+CjxyZWN0IHdpZHRoPSI4IiBoZWlnaHQ9IjgiIGZpbGw9IndoaXRlIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg0IDQpIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==";function eT(e){return/^\S+@\S+\.\S+$/.test(e.replace(/\+/g,""))}function eC(e){let{countryCode:n,setCountryCode:a}=e,o=(0,i.useRef)(null),{data:l}=(0,s.a)({queryKey:["supported-sms-countries"],queryFn:async()=>{let{supportedSmsCountries:e}=await r.e(55829).then(r.bind(r,69544));return e}});return(0,f.jsx)(f.Fragment,{children:(0,f.jsxs)(eA,{ref:o,name:"countries",id:"countries",value:n,onChange:e=>{a(e.target.value)},children:[(0,f.jsx)("option",{style:{display:"none"},value:n,children:n}),(l??[{countryIsoCode:"US",countryName:"United States",phoneNumberCode:1}]).map(e=>(0,f.jsxs)(eM,{value:`${e.countryIsoCode} +${e.phoneNumberCode}`,children:[e.countryName," +",e.phoneNumberCode," "]},e.countryIsoCode))]})})}let eM=(0,o.E)(()=>{let e=(0,o.u)();return{color:e.colors.primaryText,background:e.colors.modalBg,transition:"background 0.3s ease","&:hover":{background:e.colors.walletSelectorButtonHoverBg}}}),eA=(0,o.w)(()=>{let e=(0,o.u)();return{fontSize:o.f.sm,display:"block",padding:o.s.sm,boxSizing:"border-box",outline:"none",border:"none",borderRadius:"6px",color:e.colors.primaryText,WebkitAppearance:"none",appearance:"none",cursor:"pointer",background:"transparent","&::placeholder":{color:e.colors.secondaryText},boxShadow:`0 0 0 1.5px ${e.colors.borderColor}`,"&:focus, &:hover":{boxShadow:`0 0 0 2px ${e.colors.accentText}`},"&[disabled]":{cursor:"not-allowed"},minWidth:"0px",maxWidth:"90px",textOverflow:"ellipsis",overflow:"hidden",
18whiteSpace:"nowrap"}});function eE(e){let[n,r]=(0,i.useState)("US +1"),[s,l]=(0,i.useState)(""),[u,c]=(0,i.useState)(),[d,p]=(0,i.useState)(!1),h=()=>{p(!0),s&&!u&&e.onSelect("phone"===e.format?`+${n.split("+")[1]}${s}`:s)},y=d&&!!u||!s&&!!e.emptyErrorMessage&&d;return(0,f.jsxs)("div",{style:{width:"100%"},children:[(0,f.jsxs)("div",{style:{position:"relative",display:"flex",flexDirection:"row",gap:"12px"},children:["phone"===e.format&&(0,f.jsx)(eC,{countryCode:n,setCountryCode:r}),(0,f.jsx)(a.h,{tabIndex:-1,placeholder:e.placeholder,style:{flexGrow:1},variant:"outline",type:e.type,name:e.name,value:s,"data-error":y,onChange:n=>{l(n.target.value),e.errorMessage?c(e.errorMessage(n.target.value)):c(void 0)},onKeyDown:e=>{"Enter"===e.key&&h()}})]}),d&&u&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(a.S,{y:"xs"}),(0,f.jsx)(a.T,{color:"danger",size:"sm",children:u})]}),!(d&&u)&&!s&&e.emptyErrorMessage&&d&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(a.S,{y:"xs"}),(0,f.jsx)(a.T,{color:"danger",size:"sm",children:e.emptyErrorMessage})]}),(0,f.jsx)(a.S,{y:"md"}),(0,f.jsx)(o.B,{variant:"accent",onClick:h,fullWidth:!0,children:e.submitButtonText})]})}let eI="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI3MDUuNiIgaGVpZ2h0PSI3MjAiIHZpZXdCb3g9IjAgMCAxODYuNjkgMTkwLjUiIHhtbG5zOnY9Imh0dHBzOi8vdmVjdGEuaW8vbmFubyI+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTE4NC41ODMgNzY1LjE3MSkiPjxwYXRoIGNsaXAtcGF0aD0ibm9uZSIgbWFzaz0ibm9uZSIgZD0iTS0xMDg5LjMzMy02ODcuMjM5djM2Ljg4OGg1MS4yNjJjLTIuMjUxIDExLjg2My05LjAwNiAyMS45MDgtMTkuMTM3IDI4LjY2MmwzMC45MTMgMjMuOTg2YzE4LjAxMS0xNi42MjUgMjguNDAyLTQxLjA0NCAyOC40MDItNzAuMDUyIDAtNi43NTQtLjYwNi0xMy4yNDktMS43MzItMTkuNDgzeiIgZmlsbD0iIzQyODVmNCIvPjxwYXRoIGNsaXAtcGF0aD0ibm9uZSIgbWFzaz0ibm9uZSIgZD0iTS0xMTQyLjcxNC02NTEuNzkxbC02Ljk3MiA1LjMzNy0yNC42NzkgMTkuMjIzaDBjMTUuNjczIDMxLjA4NiA0Ny43OTYgNTIuNTYxIDg1LjAzIDUyLjU2MSAyNS43MTcgMCA0Ny4yNzgtOC40ODYgNjMuMDM4LTIzLjAzM2wtMzAuOTEzLTIzLjk4NmMtOC40ODYgNS43MTUtMTkuMzEgOS4xNzktMzIuMTI1IDkuMTc5LTI0Ljc2NSAwLTQ1LjgwNi0xNi43MTItNTMuMzQtMzkuMjI2eiIgZmlsbD0iIzM0YTg1MyIvPjxwYXRoIGNsaXAtcGF0aD0ibm9uZSIgbWFzaz0ibm9uZSIgZD0iTS0xMTc0LjM2NS03MTIuNjFjLTYuNDk0IDEyLjgxNS0xMC4yMTcgMjcuMjc2LTEwLjIxNyA0Mi42ODlzMy43MjMgMjkuODc0IDEwLjIxNyA0Mi42ODljMCAuMDg2IDMxLjY5My0yNC41OTIgMzEuNjkzLTI0LjU5Mi0xLjkwNS01LjcxNS0zLjAzMS0xMS43NzYtMy4wMzEtMTguMDk4czEuMTI2LTEyLjM4MyAzLjAzMS0xOC4wOTh6IiBmaWxsPSIjZmJiYzA1Ii8+PHBhdGggZD0iTS0xMDg5LjMzMy03MjcuMjQ0YzE0LjAyOCAwIDI2LjQ5NyA0Ljg0OSAzNi40NTUgMTQuMjAxbDI3LjI3Ni0yNy4yNzZjLTE2LjUzOS0xNS40MTMtMzguMDEzLTI0Ljg1Mi02My43MzEtMjQuODUyLTM3LjIzNCAwLTY5LjM1OSAyMS4zODgtODUuMDMyIDUyLjU2MWwzMS42OTIgMjQuNTkyYzcuNTMzLTIyLjUxNCAyOC41NzUtMzkuMjI2IDUzLjM0LTM5LjIyNnoiIGZpbGw9IiNlYTQzMzUiIGNsaXAtcGF0aD0ibm9uZSIgbWFzaz0ibm9uZSIvPjwvZz48L3N2Zz4=",eS="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGRhdGEtbmFtZT0iRWJlbmUgMSIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgaWQ9ImZhY2Vib29rLWxvZ28tMjAxOSI+PHBhdGggZmlsbD0iIzE4NzdmMiIgZD0iTTEwMjQsNTEyQzEwMjQsMjI5LjIzMDE2LDc5NC43Njk3OCwwLDUxMiwwUzAsMjI5LjIzMDE2LDAsNTEyYzAsMjU1LjU1NCwxODcuMjMxLDQ2Ny4zNzAxMiw0MzIsNTA1Ljc3Nzc3VjY2MEgzMDJWNTEySDQzMlYzOTkuMkM0MzIsMjcwLjg3OTgyLDUwOC40Mzg1NCwyMDAsNjI1LjM4OTIyLDIwMCw2ODEuNDA3NjUsMjAwLDc0MCwyMTAsNzQwLDIxMFYzMzZINjc1LjQzNzEzQzYxMS44MzUwOCwzMzYsNTkyLDM3NS40NjY2Nyw1OTIsNDE1Ljk1NzI4VjUxMkg3MzRMNzExLjMsNjYwSDU5MnYzNTcuNzc3NzdDODM2Ljc2OSw5NzkuMzcwMTIsMTAyNCw3NjcuNTU0LDEwMjQsNTEyWiI+PC9wYXRoPjxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik03MTEuMyw2NjAsNzM0LDUxMkg1OTJWNDE1Ljk1NzI4QzU5MiwzNzUuNDY2NjcsNjExLjgzNTA4LDMzNiw2NzUuNDM3MTMsMzM2SDc0MFYyMTBzLTU4LjU5MjM1LTEwLTExNC42MTA3OC0xMEM1MDguNDM4NTQsMjAwLDQzMiwyNzAuODc5ODIsNDMyLDM5OS4yVjUxMkgzMDJWNjYwSDQzMnYzNTcuNzc3NzdhNTE3LjM5NjE5LDUxNy4zOTYxOSwwLDAsMCwxNjAsMFY2NjBaIj48L3BhdGg+PC9zdmc+",ek="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiIgaWQ9InR3aXR0ZXIiPjxwYXRoIGZpbGw9IiMwM0E5RjQiIGQ9Ik0xNiAzLjUzOWE2LjgzOSA2LjgzOSAwIDAgMS0xLjg5LjUxOCAzLjI2MiAzLjI2MiAwIDAgMCAxLjQ0My0xLjgxMyA2LjU1NSA2LjU1NSAwIDAgMS0yLjA4Ljc5NCAzLjI4IDMuMjggMCAwIDAtNS42NzQgMi4yNDNjMCAuMjYuMDIyLjUxLjA3Ni43NDhhOS4yODQgOS4yODQgMCAwIDEtNi43NjEtMy40MzEgMy4yODUgMy4yODUgMCAwIDAgMS4wMDggNC4zODRBMy4yNCAzLjI0IDAgMCAxIC42NCA2LjU3OHYuMDM2YTMuMjk1IDMuMjk1IDAgMCAwIDIuNjI4IDMuMjIzID
18MuMjc0IDMuMjc0IDAgMCAxLS44Ni4xMDggMi45IDIuOSAwIDAgMS0uNjIxLS4wNTYgMy4zMTEgMy4zMTEgMCAwIDAgMy4wNjUgMi4yODUgNi41OSA2LjU5IDAgMCAxLTQuMDY3IDEuMzk5Yy0uMjY5IDAtLjUyNy0uMDEyLS43ODUtLjA0NUE5LjIzNCA5LjIzNCAwIDAgMCA1LjAzMiAxNWM2LjAzNiAwIDkuMzM2LTUgOS4zMzYtOS4zMzQgMC0uMTQ1LS4wMDUtLjI4NS0uMDEyLS40MjRBNi41NDQgNi41NDQgMCAwIDAgMTYgMy41Mzl6Ij48L3BhdGg+PC9zdmc+",eN="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzEwXzIpIj4KPHBhdGggZD0iTTcuOTk5IDBDMy41ODIwMSAwIDQuNjE2NDhlLTA2IDMuNTk2IDQuNjE2NDhlLTA2IDguMDMyQy0wLjAwMTggOS43MTU1NSAwLjUyNTUxOSAxMS4zNTcxIDEuNTA3NDQgMTIuNzI0NkMyLjQ4OTM1IDE0LjA5MjIgMy44NzYyMSAxNS4xMTY2IDUuNDcyIDE1LjY1M0M1Ljg3MiAxNS43MjcgNi4wMTggMTUuNDc5IDYuMDE4IDE1LjI2NkM2LjAxOCAxNS4wNzUgNi4wMTEgMTQuNTcgNi4wMDcgMTMuOUMzLjc4MiAxNC4zODUgMy4zMTIgMTIuODIzIDMuMzEyIDEyLjgyM0MyLjk0OSAxMS44OTUgMi40MjQgMTEuNjQ4IDIuNDI0IDExLjY0OEMxLjY5NyAxMS4xNSAyLjQ3OCAxMS4xNiAyLjQ3OCAxMS4xNkMzLjI4MSAxMS4yMTcgMy43MDMgMTEuOTg4IDMuNzAzIDExLjk4OEM0LjQxNyAxMy4yMTUgNS41NzYgMTIuODYxIDYuMDMyIDEyLjY1NUM2LjEwNCAxMi4xMzYgNi4zMTEgMTEuNzgyIDYuNTQgMTEuNTgxQzQuNzY0IDExLjM3OCAyLjg5NiAxMC42ODkgMi44OTYgNy42MTJDMi44OTYgNi43MzUgMy4yMDggNi4wMTggMy43MiA1LjQ1NkMzLjYzNyA1LjI1MyAzLjM2MyA0LjQzNiAzLjc5OCAzLjMzMUMzLjc5OCAzLjMzMSA0LjQ3IDMuMTE1IDUuOTk4IDQuMTU0QzYuNjUwNzUgMy45NzU2MSA3LjMyNDMyIDMuODg0ODIgOC4wMDEwMSAzLjg4NEM4LjY3NzcyIDMuODg1MzQgOS4zNTEyNiAzLjk3NjQ3IDEwLjAwNCA0LjE1NUMxMS41MzEgMy4xMTYgMTIuMjAyIDMuMzMyIDEyLjIwMiAzLjMzMkMxMi42MzggNC40MzggMTIuMzY0IDUuMjU0IDEyLjI4MiA1LjQ1N0MxMi43OTUgNi4wMTkgMTMuMTA0IDYuNzM2IDEzLjEwNCA3LjYxM0MxMy4xMDQgMTAuNjk4IDExLjIzNCAxMS4zNzcgOS40NTIgMTEuNTc2QzkuNzM5IDExLjgyNCA5Ljk5NSAxMi4zMTQgOS45OTUgMTMuMDYzQzkuOTk1IDE0LjEzNyA5Ljk4NSAxNS4wMDMgOS45ODUgMTUuMjY2QzkuOTg1IDE1LjQ4MSAxMC4xMjkgMTUuNzMxIDEwLjUzNSAxNS42NTJDMTIuMTI5MiAxNS4xMTQzIDEzLjUxNDQgMTQuMDg5NSAxNC40OTQ5IDEyLjcyMjNDMTUuNDc1NSAxMS4zNTUxIDE2LjAwMTkgOS43MTQ0OCAxNiA4LjAzMkMxNiAzLjU5NiAxMi40MTggMCA3Ljk5OSAwWiIgZmlsbD0iIzhCOEI4QiIvPgo8L2c+CjxkZWZzPgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzEwXzIiPgo8cmVjdCB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==",ej="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDM4IiBoZWlnaHQ9IjI1MDAiIHZpZXdCb3g9IjAgMCA0OTYuMjU1IDYwOC43MjgiIGlkPSJhcHBsZSI+PHBhdGggZmlsbD0iIzk5OSIgZD0iTTI3My44MSA1Mi45NzNDMzEzLjgwNi4yNTcgMzY5LjQxIDAgMzY5LjQxIDBzOC4yNzEgNDkuNTYyLTMxLjQ2MyA5Ny4zMDZjLTQyLjQyNiA1MC45OC05MC42NDkgNDIuNjM4LTkwLjY0OSA0Mi42MzhzLTkuMDU1LTQwLjA5NCAyNi41MTItODYuOTcxek0yNTIuMzg1IDE3NC42NjJjMjAuNTc2IDAgNTguNzY0LTI4LjI4NCAxMDguNDcxLTI4LjI4NCA4NS41NjIgMCAxMTkuMjIyIDYwLjg4MyAxMTkuMjIyIDYwLjg4M3MtNjUuODMzIDMzLjY1OS02NS44MzMgMTE1LjMzMWMwIDkyLjEzMyA4Mi4wMSAxMjMuODg1IDgyLjAxIDEyMy44ODVzLTU3LjMyOCAxNjEuMzU3LTEzNC43NjIgMTYxLjM1N2MtMzUuNTY1IDAtNjMuMjE1LTIzLjk2Ny0xMDAuNjg4LTIzLjk2Ny0zOC4xODggMC03Ni4wODQgMjQuODYxLTEwMC43NjYgMjQuODYxQzg5LjMzIDYwOC43MyAwIDQ1NS42NjYgMCAzMzIuNjI4YzAtMTIxLjA1MiA3NS42MTItMTg0LjU1NCAxNDYuNTMzLTE4NC41NTQgNDYuMTA1IDAgODEuODgzIDI2LjU4OCAxMDUuODUyIDI2LjU4OHoiPjwvcGF0aD48L3N2Zz4=",eD="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0NCIgaGVpZ2h0PSI0MCIgaWQ9ImxpbmtlZGluIj48cGF0aCBmaWxsPSIjMDA3RUJCIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00NCA0MGgtOS43MjVWMjUuOTM4YzAtMy42OC0xLjUyLTYuMTkzLTQuODY2LTYuMTkzLTIuNTU4IDAtMy45ODEgMS42OTYtNC42NDMgMy4zMy0uMjQ5LjU4Ni0uMjEgMS40MDMtLjIxIDIuMjJWNDBoLTkuNjM0cy4xMjQtMjQuOTA5IDAtMjcuMTczaDkuNjM0djQuMjY1Yy41Ny0xLjg2NSAzLjY0OC00LjUyNiA4LjU2LTQuNTI2QzM5LjIxMSAxMi41NjYgNDQgMTYuNDc0IDQ0IDI0Ljg5MVY0MHpNNS4xOCA5LjQyOGgtLjA2M0MyLjAxMyA5LjQyOCAwIDcuMzUxIDAgNC43MTggMCAyLjAzNCAyLjA3MiAwIDUuMjM5IDBjMy4xNjQgMCA1LjExIDIuMDI5IDUuMTcxIDQuNzEgMCAyLjYzMy0yLjAwNyA0LjcxOC01LjIzIDQuNzE4em0tNC4wNyAzLjM5OWg4LjU3NlY0MEgxLjExVjEyLjgyN3oiPjwvcGF0aD48L3N2Zz4=",e_="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgaWQ9ImJpdGJ1Y2tldCI+PHBhdGggZmlsbD0iIzI2ODBGOCIgZD0iTTQuMjk3IDIzaDE1LjY1OWEuNzc2Ljc3NiAwIDAgMCAuNzY5LS42NTdMMjMuOTkgMS45MTZhLjc4Ljc4IDAgMCAwLS42MzUtLjg5NyAxLjEzIDEuMTMgMCAwIDAtLjEzNC0uMDA5TC43NzkgMUEuNzc1Ljc3NSAwIDAgMCAwIDEuNzc1YzAgLjA0NC4wMDUuMDkzLjAwOS4xMzdsMy4yNjUgMjAuMTk2Yy4wODIuNTA5LjUxNS44ODcgMS4wMjMuODkyek0xNS43MzYgOC4zOTFsLTEuMjExIDcuMjA1aC01TDguMTczIDguMzkxaDcuNTYzeiI+PC9wYXRoPjwvc3ZnPg==",eO="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAwIiBoZWlnaHQ9IjIzMDUiIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaW5ZTWluIG1lZXQiIHZpZXdCb3g9IjAgMCAyNTYgMjM2IiBpZD0iZ2l0bGFiIj48cGF0aCBmaWxsPSIjRTI0MzI5IiBkPSJNMTI4LjA3NSAyMzYuMDc1bDQ3LjEwNC0xNDQuOTdIODAuOTdsNDcuMTA0IDE0NC45N3oiPjwvcGF0aD48cGF0aCBmaWxsPSIjRkM2RDI2IiBkPSJNMTI4LjA3NSAyMzYuMDc0TDgwLjk3IDkxLjEwNEgxNC45NTZsMTEzLjExOSAxNDQuOTd6Ij48L3BhdGg+PHBhdGggZmlsbD0iI0ZDQTMyNiIgZD0iTTE0Ljk1NiA5MS4xMDRMLjY0MiAxMzUuMTZhOS43NTIgOS43NTIgMCAwIDAgMy41NDIgMTAuOTAzbDEyMy44OTEgOTAuMDEyLTExMy4xMi0xNDQuOTd6Ij48L3BhdGg+PHBhdGggZmlsbD0iI0UyNDMyOSIgZD0iTTE0Ljk1NiA5MS4xMDVIODAuOTdMNTIuNjAxIDMuNzljLTEuNDYtNC40OTMtNy44MTYtNC40OTItOS4yNzUgMGwtMjguMzcgODcuMzE1eiI+PC9wYXRoPjxwYXRoIGZpbGw9IiNGQzZEMjYiIGQ9Ik0xMjguMDc1IDIzNi4wNzRsNDcuMTA0LTE0NC45N2g2Ni4wMTVsLTExMy4xMiAxNDQuOTd6Ij48L3BhdGg+PHBhdGggZmlsbD0iI0ZDQTMyNiIgZD0iTTI0MS4xOTQgOTEuMTA0bDE0LjMxNCA0NC4wNTZhOS43NTIgOS43NTIgMCAwIDEtMy41NDMgMTAuOTAzbC0xMjMuODkgOTAuMDEyIDExMy4xMTktMTQ0Ljk3eiI+PC9wYXRoPjxwYXRoIGZpbGw9IiNFMjQzMjkiIGQ9Ik0yNDEuMTk0IDkxLjEwNWgtNjYuMDE1bDI4LjM3LTg3LjMxNWMxLjQ2LTQuNDkzIDcuODE2LTQuNDkyIDkuMjc1IDBsMjguMzcgODcuMzE1eiI+PC9wYXRoPjwvc3ZnPg==",eP="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgdmlld0JveD0iMCAwIDExMS43ODY2NyAxMjcuMzg2NjciCiAgIGhlaWdodD0iMTI3LjM4NjY3IgogICB3aWR0aD0iMTExLjc4NjY3IgogICB4bWw6c3BhY2U9InByZXNlcnZlIgogICB2ZXJzaW9uPSIxLjEiCiAgIGlkPSJzdmczMzU1IgogICBzb2RpcG9kaTpkb2NuYW1lPSJUd2l0Y2hfbG9nby5zdmciCiAgIGlua3NjYXBlOnZlcnNpb249IjEuMS4xICgzYmY1YWUwZDI1LCAyMDIxLTA5LTIwKSIKICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiCiAgIHhtbG5zOnNvZGlwb2RpPSJodHRwOi8vc29kaXBvZGkuc291cmNlZm9yZ2UubmV0L0RURC9zb2RpcG9kaS0wLmR0ZCIKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcwogICBpZD0iZGVmczI5Ij4KICAgIAogICAgCiAgPC9kZWZzPjxzb2RpcG9kaTpuYW1lZHZpZXcKICAgaWQ9Im5hbWVkdmlldzI3IgogICBwYWdlY29sb3I9IiNmZmZmZmYiCiAgIGJvcmRlcmNvbG9yPSIjNjY2NjY2IgogICBib3JkZXJvcGFjaXR5PSIxLjAiCiAgIGlua3NjYXBlOnBhZ2VzaGFkb3c9IjIiCiAgIGlua3NjYXBlOnBhZ2VvcGFjaXR5PSIwLjAiCiAgIGlua3NjYXBlOnBhZ2VjaGVja2VyYm9hcmQ9IjAiCiAgIHNob3dncmlkPSJmYWxzZSIKICAgaW5rc2NhcGU6em9vbT0iNC4xOTkyMjg0IgogICBpbmtzY2FwZTpjeD0iLTUwLjYwNDUzNSIKICAgaW5rc2NhcGU6Y3k9IjE0MC4zODI5MyIKICAgaW5rc2NhcGU6d2luZG93LXdpZHRoPSIyNTYwIgogICBpbmtzY2FwZTp3aW5kb3ctaGVpZ2h0PSIxMzg3IgogICBpbmtzY2FwZTp3aW5kb3cteD0iMTkxMiIKICAgaW5rc2NhcGU6d2luZG93LXk9Ii04IgogICBpbmtzY2FwZTp3aW5kb3ctbWF4aW1pemVkPSIxIgogICBpbmtzY2FwZTpjdXJyZW50LWxheWVyPSJzdmczMzU1IiAvPgogIDxnCiAgIHRyYW5zZm9ybT0ibWF0cml4KDEuMzMzMzMzMywwLDAsLTEuMzMzMzMzMywxMDEuMzkzMzMsNjcuNTg5MzMyKSIKICAgaWQ9ImczMzY1Ij4KICAgICAgPHBhdGgKICAgaWQ9InBhdGgzMzY3IgogICBzdHlsZT0iZmlsbDojNjQ0MWE1O2ZpbGwtb3BhY2l0eToxO2ZpbGwtcnVsZTpldmVub2RkO3N0cm9rZTpub25lIgogICBkPSJtIDAsMCAtMTMuNjUyLC0xMy42NTEgaCAtMjEuNDQ1IGwgLTExLjY5OSwtMTEuNjk3IHYgMTEuNjk3IEggLTY0LjM0NCBWIDQyLjg5MyBIIDAgWiBtIC03Mi4xNDYsNTAuNjkyIC0zLjg5OSwtMTUuNTk5IHYg
18LTcwLjE5IGggMTcuNTUgdiAtOS43NTEgaCA5Ljc0NiBsIDkuNzUyLDkuNzUxIGggMTUuNTk2IEwgNy43OTUsLTMuOTA1IHYgNTQuNTk3IHoiIC8+CiAgICA8L2c+PHBhdGgKICAgaWQ9InBhdGgzMzY5IgogICBzdHlsZT0iZmlsbDojNjQ0MWE1O2ZpbGwtb3BhY2l0eToxO2ZpbGwtcnVsZTpldmVub2RkO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjMzMzMzIgogICBkPSJtIDQ0LjE5NzMzMSw2Mi4zOTQyNjYgaCAxMC4zOTg2NyBWIDMxLjE5MjkzMyBoIC0xMC4zOTg2NyB6IG0gMjguNTk0NjcsMCBoIDEwLjM5ODY2IFYgMzEuMTkyOTMzIGggLTEwLjM5ODY2IHoiIC8+Cjwvc3ZnPgo=",eL="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDEwMCAxMDAiIHZpZXdCb3g9IjAgMCAxMDAgMTAwIiBpZD0iZGlzY29yZCI+PHBhdGggZmlsbD0iIzY2NjVkMiIgZD0iTTg1LjIyLDI0Ljk1OGMtMTEuNDU5LTguNTc1LTIyLjQzOC04LjMzNC0yMi40MzgtOC4zMzRsLTEuMTIyLDEuMjgyCgkJCQljMTMuNjIzLDQuMDg3LDE5Ljk1NCwxMC4wOTcsMTkuOTU0LDEwLjA5N2MtMTkuNDkxLTEwLjczMS00NC4zMTctMTAuNjU0LTY0LjU5LDBjMCwwLDYuNTcxLTYuMzMxLDIwLjk5Ni0xMC40MThsLTAuODAxLTAuOTYyCgkJCQljMCwwLTEwLjg5OS0wLjI0LTIyLjQzOCw4LjMzNGMwLDAtMTEuNTQsMjAuNzU1LTExLjU0LDQ2LjMxOWMwLDAsNi43MzIsMTEuNTQsMjQuNDQyLDEyLjEwMWMwLDAsMi45NjUtMy41MjYsNS4zNjktNi41NzEKCQkJCWMtMTAuMTc3LTMuMDQ1LTE0LjAyNC05LjM3Ni0xNC4wMjQtOS4zNzZjNi4zOTQsNC4wMDEsMTIuODU5LDYuNTA1LDIwLjkxNiw4LjA5NGMxMy4xMDgsMi42OTgsMjkuNDEzLTAuMDc2LDQxLjU5MS04LjA5NAoJCQkJYzAsMC00LjAwNyw2LjQ5MS0xNC41MDUsOS40NTZjMi40MDQsMi45NjUsNS4yODksNi40MTEsNS4yODksNi40MTFjMTcuNzEtMC41NjEsMjQuNDQxLTEyLjEwMSwyNC40NDEtMTIuMDIKCQkJCUM5Ni43NTksNDUuNzEzLDg1LjIyLDI0Ljk1OCw4NS4yMiwyNC45NTh6IE0zNS4wNTUsNjMuODI0Yy00LjQ4OCwwLTguMTc0LTMuOTI3LTguMTc0LTguODE1CgkJCQljMC4zMjgtMTEuNzA3LDE2LjEwMi0xMS42NzEsMTYuMzQ4LDBDNDMuMjI5LDU5Ljg5NywzOS42MjIsNjMuODI0LDM1LjA1NSw2My44MjR6IE02NC4zMDQsNjMuODI0CgkJCQljLTQuNDg4LDAtOC4xNzQtMy45MjctOC4xNzQtOC44MTVjMC4zNi0xMS42ODQsMTUuOTM3LTExLjY4OSwxNi4zNDgsMEM3Mi40NzgsNTkuODk3LDY4Ljg3Miw2My44MjQsNjQuMzA0LDYzLjgyNHoiPjwvcGF0aD48L3N2Zz4=",eR="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciICB2aWV3Qm94PSIwIDAgNDggNDgiIHdpZHRoPSI0OHB4IiBoZWlnaHQ9IjQ4cHgiPjxwYXRoIGZpbGw9IiNmZjU3MjIiIGQ9Ik02IDZIMjJWMjJINnoiIHRyYW5zZm9ybT0icm90YXRlKC0xODAgMTQgMTQpIi8+PHBhdGggZmlsbD0iIzRjYWY1MCIgZD0iTTI2IDZINDJWMjJIMjZ6IiB0cmFuc2Zvcm09InJvdGF0ZSgtMTgwIDM0IDE0KSIvPjxwYXRoIGZpbGw9IiNmZmMxMDciIGQ9Ik0yNiAyNkg0MlY0MkgyNnoiIHRyYW5zZm9ybT0icm90YXRlKC0xODAgMzQgMzQpIi8+PHBhdGggZmlsbD0iIzAzYTlmNCIgZD0iTTYgMjZIMjJWNDJINnoiIHRyYW5zZm9ybT0icm90YXRlKC0xODAgMTQgMzQpIi8+PC9zdmc+",ez=e=>(0,f.jsx)(J,{delayDuration:200,children:(0,f.jsxs)(en,{children:[(0,f.jsx)(ei,{asChild:!0,children:e.children}),(0,f.jsx)(ef,{children:(0,f.jsxs)(eU,{sideOffset:e.sideOffset||6,align:e.align,side:e.side,children:[e.tip,(0,f.jsx)(eF,{})]})})]})}),eB=(0,l.F4)` 19from { 20 opacity: 0; 21 transform: translateY(2px); 22} 23to { 24 opacity: 1; 25 transform: translateY(0); 26} 27`,eU=(0,u.Z)(eu)(()=>{let e=(0,o.u)();return{background:e.colors.tooltipBg,color:e.colors.tooltipText,borderRadius:o.r.sm,padding:`${o.s.xs} ${o.s.sm}`,fontSize:o.f.sm,boxShadow:o.k.sm,userSelect:"none",willChange:"transform, opacity",animation:`${eB} 200ms cubic-bezier(0.16, 1, 0.3, 1)`,zIndex:999999999999999,maxWidth:"300px",lineHeight:1.5}}),eF=(0,u.Z)(em)(()=>({fill:(0,o.u)().colors.tooltipBg}))},27515:function(e,n,r){"use strict";r.d(n,{A:function(){return D},B:function(){return z},C:function(){return en},D:function(){return j},E:function(){return R},H:function(){return H},I:function(){return V},L:function(){return et},M:function(){return ee},S:function(){return A},a:function(){return Z},b:function(){return N},c:function(){return $},e:function(){return U},f:function(){return m},g:function(){return B},h:function(){return J},i:function(){return v},j:function(){return O},k:function(){return x},m:function(){return w},n:function(){return X},o:function(){return C},p:function(){return F},q:function(){return G},r:function(){return b},s:function(){return g},t:function(){return P},u:function(){return M},v:function(){return k},w:function(){return L},x:function(){return S},y:function(){return E},z:function(){return I}});let i="hsl(256, 6.0%, 93.2%)",a="hsl(300, 20.0%, 99.0%)",o="hsl(10, 78.0%, 54.0%)";var s=r(67294),f=r(85893),l=r(78808),u=r(62469),c=r(88003),d=r(70917);function p(e){return{type:"dark",colors:{primaryText:e.primaryText,secondaryText:e.secondaryText,accentText:e.accentText,danger:e.danger,success:e.success,modalOverlayBg:e.overlay,accentButtonBg:e.accentBg,accentButtonText:e.textOnAccent,primaryButtonBg:e.primaryText,primaryButtonText:e.base1,secondaryButtonBg:e.base3,secondaryButtonText:e.primaryText,secondaryButtonHoverBg:e.base4,modalBg:e.base1,tooltipBg:e.primaryText,tooltipText:e.base1,inputAutofillBg:e.base2,scrollbarBg:e.base2,walletSelectorButtonHoverBg:e.base2,separatorLine:e.base4,secondaryIconColor:e.secondaryText,secondaryIconHoverBg:e.base3,secondaryIconHoverColor:e.primaryText,borderColor:e.base4,skeletonBg:e.base3,selectedTextColor:e.base1,selectedTextBg:e.primaryText,connectedButtonBg:e.base1,connectedButtonBgHover:e.base2},fontFamily:"inherit"}}let h=p({base1:"hsl(230deg 11.63% 8.43%)",base2:"hsl(230deg 11.63% 12%)",base3:"hsl(230deg 11.63% 15%)",base4:"hsl(230deg 11.63% 17%)",primaryText:i,secondaryText:"hsl(247, 3.4%, 50.7%)",danger:o,success:"hsl(151, 40.2%, 54.1%)",overlay:"rgba(0, 0, 0, 0.7)",accentText:"#3385FF",accentBg:"hsl(216 100% 50%)",textOnAccent:i}),y=p({base1:a,base2:"hsl(294, 5.5%, 95.3%)",base3:"hsl(283, 4.4%, 91.3%)",base4:"hsl(278, 4.1%, 89.1%)",primaryText:"hsl(260, 25.0%, 11.0%)",secondaryText:"hsl(252, 4.0%, 45.2%)",accentText:"hsl(216 100% 45%)",success:"hsl(151, 55.0%, 41.5%)",danger:o,overlay:"rgba(0, 0, 0, 0.7)",accentBg:"hsl(216 100% 50%)",textOnAccent:a}),m={xs:"12px",sm:"14px",md:"16px",lg:"20px",xl:"24px"},g={xxs:"6px",xs:"8px",sm:"12px",md:"16px",lg:"24px",xl:"32px",xxl:"48px","3xl":"64px"},b={sm:"6px",md:"8px",lg:"12px",xl:"20px",xxl:"32px"}
27,v={xs:"12",sm:"16",md:"24",lg:"32",xl:"48",xxl:"64","3xl":"96","4xl":"128"},w={mobile:"@media (max-width: 640px)"},x={sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.07), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)"},T=(0,s.createContext)(h);function C(e){let n;let{theme:r,children:i}=e;return n="string"==typeof r?"light"===r?y:h:r,(0,f.jsx)(T.Provider,{value:n,children:i})}function M(){return(0,s.useContext)(T)}let A=l.Z.div,E=l.Z.svg,I=l.Z.circle,S=l.Z.span,k=l.Z.a,N=l.Z.button,j=l.Z.label,D=l.Z.input,_=l.Z.h2,O=l.Z.p,P=l.Z.ul,L=l.Z.select,R=l.Z.option,z=N(e=>{let n=M();return{all:"unset",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:b.md,padding:`${m.sm} ${m.sm}`,fontSize:m.md,fontWeight:500,boxSizing:"border-box",WebkitTapHighlightColor:"transparent",lineHeight:"normal",flexShrink:0,transition:"border 200ms ease",gap:e.gap&&g[e.gap]||0,width:e.fullWidth?"100%":void 0,textAlign:"center",maxWidth:"100%",background:(()=>{switch(e.variant){case"primary":return n.colors.primaryButtonBg;case"accent":return n.colors.accentButtonBg;case"secondary":return n.colors.secondaryButtonBg;default:return"none"}})(),color:(()=>{switch(e.variant){case"primary":default:return n.colors.primaryButtonText;case"accent":return n.colors.accentButtonText;case"secondary":case"outline":return n.colors.secondaryButtonText;case"link":return n.colors.accentText}})(),"&:active":{transform:"translateY(1px)"},"&[disabled]":{cursor:"not-allowed"},"&[data-disabled='true']":{background:n.colors.walletSelectorButtonHoverBg,color:n.colors.secondaryText,borderColor:"transparent",boxShadow:"none","&:hover":{borderColor:"transparent"}},..."outline"===e.variant?{border:`1.5px solid ${n.colors.borderColor}`,"&:hover":{borderColor:n.colors.accentText}}:"secondary"===e.variant?{"&:hover":{background:n.colors.secondaryButtonHoverBg}}:"link"===e.variant?{padding:0,"&:hover":{color:n.colors.primaryText}}:{}}}),B=N(()=>{let e=M();return{all:"unset",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:b.sm,WebkitTapHighlightColor:"transparent",color:e.colors.secondaryIconColor,padding:"2px",transition:"background 200ms ease, color 200ms ease","&:hover":{background:e.colors.secondaryIconHoverBg,color:e.colors.secondaryIconHoverColor}}}),U=N(()=>{let e=M();return{all:"unset",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:b.sm,padding:g.sm,cursor:"pointer",WebkitTapHighlightColor:"transparent",color:e.colors.secondaryText,"&:hover":{color:e.colors.primaryText},"&[disabled]":{cursor:"not-allowed"}}}),F=_(e=>{let n=M();return{margin:0,fontWeight:600,fontSize:m.lg,color:n.colors.primaryText,lineHeight:1.3,textAlign:"left",[w.mobile]:{textAlign:e.centerOnMobile?"center":"left"}}}),Z=O(e=>{let n=M();return{all:"unset",display:"block",fontSize:e.sm?m.sm:m.md,color:n.colors.secondaryText,lineHeight:1.5,[w.mobile]:{textAlign:e.centerOnMobile?"center":"left"}}}),W=e=>(0,f.jsx)(B,{onClick:e.onClick,style:{transform:"translateX(-25%)",...e.style},type:"button",children:(0,f.jsx)(u.wyc,{width:v.md,height:v.md})}),H=k(e=>{let n=M();return{all:"unset",cursor:"pointer",color:n.colors.accentText,fontSize:e.md?m.md:m.sm,textDecoration:"none",display:"block",lineHeight:1.5,[w.mobile]:{textAlign:"center"},"&:hover":{color:n.colors.primaryText,textDecoration:"none"}}}),G=e=>(0,f.jsx)(Y,{style:{height:e.height,width:e.width||"auto"}}),q=(0,d.F4)` 280% { 29 opacity: 0.5; 30 } 31 100% { 32 opacity: 1; 33 } 34`,Y=A(()=>({backgroundSize:"200% 200%",backgroundColor:M().colors.skeletonBg,animation:`${q} 500ms ease-in-out infinite alternate`,borderRadius:b.sm})),V=e=>{let n=(0,c.y$C)(),[r,i]=(0,s.useState)(!1),a=e.src,o=e.width+"px",l=(e.height||e.width)+"px";if(!a)return(0,f.jsx)(G,{width:o,height:l});let u=(()=>{if(!e.src)return e.fallbackImage||"";try{return n?n.resolveScheme(e.src):e.src.replace("ipfs://","https://ipfs.io/ipfs/")}catch{return e.src}})();return(0,f.jsxs)("div",{style:{position:"relative",display:"inline-flex",flexShrink:0,alignItems:"center"},children:[!r&&(0,f.jsx)(G,{width:o,height:l}),(0,f.jsx)("img",{onLoad:()=>{i(!0)},width:e.width,height:e.height,src:u,alt:e.alt||"",loading:e.loading,decoding:"async",style:{objectFit:"contain",height:r?e.height?e.height+"px":void 0:0,width:r?e.width?e.width+"px":void 0:0,userSelect:"none",visibility:r?"visible":"hidden",opacity:r?1:0,transition:"opacity 0.4s ease",...e.style}
34,draggable:!1,className:e.className,onError:n=>{e.fallbackImage&&n.currentTarget.src!==e.fallbackImage&&(n.currentTarget.src=e.fallbackImage)}},u)]})},Q=(0,d.F4)` 35 from { 36 opacity: 0; 37 transform: translateY(20%) scale(0.8) ; 38 } 39 to { 40 opacity: 1; 41 transform: translateY(0); 42 } 43`,K=(0,d.F4)` 44 from { 45 opacity: 0; 46 transform: translateY(-20%) scale(0.8) ; 47 } 48 to { 49 opacity: 1; 50 transform: translateY(0); 51 } 52`,$=(0,d.F4)` 53 from { 54 opacity: 0; 55 } 56 to { 57 opacity: 1; 58 } 59`,J=A(()=>{let e=M();return{borderTop:`1px solid ${e.colors.separatorLine}`,display:"flex",flexDirection:"column",gap:g.lg,padding:g.lg}}),X={scrollbarWidth:"none","&::-webkit-scrollbar":{width:0,display:"none"}};function ee(e){let{onBack:n,title:r,imgSrc:i}=e;return(0,f.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:[n&&(0,f.jsx)(W,{onClick:n,style:{position:"absolute",left:0,top:0}}),(0,f.jsxs)(en,{flex:"row",gap:"xs",center:"both",children:[i&&(0,f.jsx)(V,{src:i,width:v.md,height:v.md}),"string"==typeof r?(0,f.jsx)(F,{children:r}):r]})]})}let et=A(()=>({height:"1px",background:M().colors.separatorLine}));function en(e){let n={};return e.relative&&(n.position="relative"),e.fullHeight&&(n.height="100%"),e.expand&&(n.flex="1 1 0%"),e.flex&&(n.display="flex",n.flexDirection=e.flex,"row"===e.flex&&(n.flexWrap="wrap"),e.gap&&(n.gap=g[e.gap]),e.center&&("both"===e.center&&(n.justifyContent="center",n.alignItems="center"),("x"===e.center&&"row"===e.flex||"y"===e.center&&"column"===e.flex)&&(n.justifyContent="center"),("x"===e.center&&"column"===e.flex||"y"===e.center&&"row"===e.flex)&&(n.alignItems="center"))),e.p&&(n.padding=g[e.p]),e.px&&(n.paddingLeft=g[e.px],n.paddingRight=g[e.px]),e.py&&(n.paddingTop=g[e.py],n.paddingBottom=g[e.py]),e.debug&&(n.outline="1px solid red",n.outlineOffset="-1px"),(0,f.jsx)(er,{"data-scrolly":e.scrollY,"data-animate":e.animate,bg:e.bg,color:e.color,borderColor:e.borderColor,style:{...n,...e.style},children:e.children})}let er=A(e=>{let n=M();return{color:e.color?n.colors[e.color]:"inherit",background:e.bg?n.colors[e.bg]:void 0,borderColor:e.borderColor?n.colors[e.borderColor]:void 0,"&[data-animate='fadein']":{opacity:0,animation:`${$} 350ms ease forwards`},"&[data-animate='floatup']":{opacity:0,animation:`${Q} 350ms ease forwards`},"&[data-animate='floatdown']":{opacity:0,animation:`${K} 350ms ease forwards`},"&[data-scrolly='true']":{overflowY:"auto",...X}}})},96714:function(e,n,r){"use strict";r.d(n,{I:function(){return H},L:function(){return Z},M:function(){return I},S:function(){return l},T:function(){return u},W:function(){return k},a:function(){return D},b:function(){return N},c:function(){return j},e:function(){return h},f:function(){return U},g:function(){return B},h:function(){return W},j:function(){return b},k:function(){return v},l:function(){return x},m:function(){return T},n:function(){return c},o:function(){return C},p:function(){return S},q:function(){return M},r:function(){return g},s:function(){return z},t:function(){return R},u:function(){return m},w:function(){return w},x:function(){return y}});var i=r(27515),a=r(85893),o=r(70917),s=r(88003),f=r(67294);let l=e=>{let{y:n}=e;return(0,a.jsx)("div",{style:{height:i.s[n]}})},u=(0,i.x)(e=>{let n=(0,i.u)();return{fontSize:i.f[e.size||"md"],color:n.colors[e.color||"secondaryText"],margin:0,display:e.inline?"inline":"block",fontWeight:e.weight||500,lineHeight:e.multiline?1.5:"normal",textAlign:e.center?"center":"left",textWrap:e.balance?"balance":"inherit",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis"}}),c=(0,i.v)(e=>{let n=(0,i.u)();return{all:"unset",cursor:"pointer",color:n.colors[e.color||"accentText"],fontSize:i.f[e.size||"md"],textDecoration:"none",textAlign:e.center?"center":"left",display:e.inline?"inline":"block",fontWeight:e.weight||500,lineHeight:"normal",transition:"color 0.2s ease","&:hover":{color:n.colors[e.hoverColor||"primaryText"],textDecoration:"none"}}});function d(e){return{connectionScreen:{inProgress:"Awaiting Confirmation",failed:"Connection failed",instruction:`Accept the connection request in ${e}`,retry:"Try Again"},getStartedScreen:{instruction:`Scan the QR code to download the ${e} app`},scanScreen:{instruction:`Scan the QR code with the ${e} wallet app to connect`},getStartedLink:`Don't have a ${e} wallet?`}}function p(){return{connectWallet:{signIn:"Sign in",defaultButtonTitle:"Connect Wallet",connecting:"Connecting",switchNetwork:"Switch Network",switchingNetwork:"Switching Network",defaultModalTitle:"Connect",recommended:"Recommended",installed:"Installed",continueAsGuest:"Continue as guest",connectAWallet:"Connect a wallet",newToWallets:"New to wallets?",getStarted:"Get started",guest:"Guest",send:"Send",receive:"Receive",currentNetwork:"Current network",switchAccount:"Switch Account",requestTestnetFunds:"Request Testnet Funds",transactionHistory:"Transaction History",backupWallet:"Backup Wallet",guestWalletWarning:"This is a temporary guest wallet. Backup wallet if you don't want to lose access to it",switchTo:"Switch to",connectedToSmartWallet:"Connected To Smart Account",confirmInWallet:"Confirm in wallet",disconnectWallet:"Disconnect Wallet",copyAddress:"Copy Address",personalWallet:"Personal Wallet",smartWallet:"Smart Account",or:"OR",goBackButton:"Back",download:{chrome:"Download Chrome Extension",android:"Download on Google Play",iOS:"Download on App Store"},welcomeScreen:{defaultTitle:"Your gateway to the decentralized world",defaultSubtitle:"Connect a wallet to get started"},agreement:{prefix:"By connecting, you agree to the",termsOfService:"Terms of Service",and:"&",privacyPolicy:"Privacy Policy"},networkSelector:{title:"Select Network",mainnets:"Mainnets",testnets:"Testnets",allNetworks:"All",addCustomNetwork:"Add Custom Network",
59inputPlaceholder:"Search Network or Chain ID",categoryLabel:{recentlyUsed:"Recently Used",popular:"Popular",others:"All Networks"},loading:"Loading",failedToSwitch:"Failed to switch network"},receiveFundsScreen:{title:"Receive Funds",instruction:"Copy the wallet address to send funds to this wallet"},sendFundsScreen:{title:"Send Funds",submitButton:"Send",token:"Token",sendTo:"Send to",amount:"Amount",successMessage:"Transaction Successful",invalidAddress:"Invalid Address",noTokensFound:"No Tokens Found",searchToken:"Search or Paste token address",transactionFailed:"Transaction Failed",transactionRejected:"Transaction Rejected",insufficientFunds:"Insufficient Funds",selectTokenTitle:"Select a Token",sending:"Sending"},signatureScreen:{instructionScreen:{title:"Sign in",instruction:"Please sign the message request in your wallet to continue",signInButton:"Sign in",disconnectWallet:"Disconnect Wallet"},signingScreen:{title:"Signing In",prompt:"Sign the signature request in your wallet",promptForSafe:"Sign signature request in your wallet & approve transaction in Safe",approveTransactionInSafe:"Approve transaction in Safe",tryAgain:"Try Again",failedToSignIn:"Failed to Sign in",inProgress:"Awaiting Confirmation"}}},wallets:{walletConnect:{scanInstruction:"Scan this with your wallet app to connect"},smartWallet:{connecting:"Connecting to Smart Account",failedToConnect:"Failed to connect to Smart Acount",wrongNetworkScreen:{title:"Wrong Network",subtitle:"Your wallet is not connected to the required network",failedToSwitch:"Failed to switch network"}},safeWallet:{connectWalletScreen:{title:"Link personal wallet",subtitle:"Connect your personal wallet to use Safe.",learnMoreLink:"Learn more"},accountDetailsScreen:{title:"Enter your safe details",findSafeAddressIn:"You can find your safe address in",dashboardLink:"Safe Dashboard",network:"Safe Network",selectNetworkPlaceholder:"Network your safe is deployed to",invalidChainConfig:"Can not use Safe: No Safe supported chains are configured in App",failedToConnect:"Could not connect to Safe. Make sure safe address and network are correct.",failedToSwitch:"Failed to switch network",switchNetwork:"Switch Network",switchingNetwork:"Switching Network",connectToSafe:"Connect to Safe",connecting:"Connecting",mainnets:"Mainnets",testnets:"Testnets",safeAddress:"Safe Address"}},coinbaseWallet:d("Coinbase"),magicEdenWallet:d("Magic Eden"),metamaskWallet:d("MetaMask"),okxWallet:d("OKX"),phantomWallet:d("Phantom"),xdefiWallet:d("XDEFI"),rainbowWallet:d("Rainbow"),trustWallet:d("Trust"),imTokenWallet:d("imToken"),zerionWallet:d("Zerion"),coreWallet:d("Core"),oneKeyWallet:d("OneKey"),cryptoDefiWallet:d("Crypto Defi"),rabbyWallet:d("Rabby"),coin98Wallet:d("Coin98"),paperWallet:{signIn:"Sign in",signInWithGoogle:"Sign in with Google",emailPlaceholder:"Enter your email address",submitEmail:"Continue",invalidEmail:"Invalid email address",emailRequired:"Email address is required",googleLoginScreen:{title:"Sign in",instruction:"Select your Google account in the pop-up",failed:"Failed to sign in",retry:"Retry"},emailLoginScreen:{title:"Sign in",enterCodeSendTo:"Enter the verification code sent to",newDeviceDetected:"New device detected",enterRecoveryCode:"Enter the recovery code emailed to you when you first signed up",invalidCode:"Invalid verification code",invalidCodeOrRecoveryCode:"Invalid verification code or Recovery code",verify:"Verify",failedToSendCode:"Failed to send verification code",sendingCode:"Sending verification code",resendCode:"Resend verification code"}},embeddedWallet:{signInWithGoogle:"Sign in with Google",signInWithFacebook:"Sign in with Facebook",signInWithApple:"Sign in with Apple",signInWithEmail:"Sign in with Email",emailPlaceholder:"Enter your email address",submitEmail:"Continue",signIn:"Sign in",emailRequired:"Email address is required",invalidEmail:"Invalid email address",maxAccountsExceeded:"Maximum number of accounts exceeded. Please notify the app developer.",invalidPhone:"Invalid phone number",invalidEmailOrPhone:"Invalid email address or phone number",countryCodeMissing:"Phone number must start with a country code",phonePlaceholder:"Enter phone number",signInWithPhone:"Sign in with phone number",phoneRequired:"phone number is required",socialLoginScreen:{title:"Sign in",instruction:"Sign into your account in the pop-up",failed:"Failed to sign in",retry:"Retry"},otpLoginScreen:{title:"Sign in",enterCodeSendTo:"Enter the verification code sent to",newDeviceDetected:"New device detected",enterRecoveryCode:"Enter the recovery code emailed to you when you first signed up",invali
59dCode:"Invalid verification code",invalidCodeOrRecoveryCode:"Invalid verification code or Recovery code",verify:"Verify",failedToSendCode:"Failed to send verification code",sendingCode:"Sending verification code",resendCode:"Resend verification code"},createPassword:{title:"Create Password",instruction:"Set a password for your account. You will need this password when connecting from a new device.",saveInstruction:"Make sure to save it",inputPlaceholder:"Enter your password",confirmation:"I have saved my password",submitButton:"Set Password",failedToSetPassword:"Failed to set password"},enterPassword:{title:"Enter Password",instruction:"Enter the password for your account",inputPlaceholder:"Enter your password",submitButton:"Verify",wrongPassword:"Wrong password"}},magicLink:{signIn:"Sign in",loginWith:"Login with",submitEmail:"Continue",loginWithEmailOrPhone:"Login with email or phone number",emailOrPhoneRequired:"email or phone number is required",loginWithPhone:"Login with phone number",phoneRequired:"phone number is required",invalidEmail:"Invalid email address",invalidPhone:"Invalid phone number",invalidEmailOrPhone:"Invalid email address or phone number",countryCodeMissing:"Phone number must start with a country code",emailPlaceholder:"Enter your email address",emailRequired:"Email address is required"},localWallet:{passwordLabel:"Password",confirmPasswordLabel:"Confirm Password",enterYourPassword:"Enter your password",warningScreen:{title:"Warning",warning:"Your current wallet will be deleted if you create a new wallet. Backup wallet to your device before creating a new wallet",backupWallet:"Backup Wallet"},reconnectScreen:{title:"Connect to saved wallet",savedWallet:"Saved Wallet",continue:"Continue",createNewWallet:"Create a new wallet"},createScreen:{instruction:"Choose a password for your wallet. You'll be able to access and export this wallet with the same password",importWallet:"Import Wallet",createNewWallet:"Create new wallet",connecting:"Connecting"},exportScreen:{description1:"This will download a JSON file containing the wallet information onto y
59our device encrypted with the password",description2:"You can use this JSON file to import the account in MetaMask using the same password",walletAddress:"Wallet Address",download:"Download",title:"Backup Wallet"},importScreen:{title:"Import Wallet",description1:"The application can authorize any transactions on behalf of the wallet without any approvals",description2:"We recommend only connecting to trusted applications",import:"Import",uploadJSON:"Please upload a JSON file",uploadedSuccessfully:"Uploaded successfully"}},frameWallet:{...d("Frame"),connectionFailedScreen:{title:"Failed to connect to Frame",description:"Make sure the desktop app is installed and running. You can download Frame from the link below. Make sure to refresh this page once Frame is running.",downloadFrame:"Download Frame",supportLink:"Still having troubles connecting?"}}}}}function h(e){let n=p();return e?function e(n,r){let i={...n};for(let a in r){let o=r[a];void 0!==o&&("object"==typeof o&&null!==o?i[a]=e(n[a],o):i[a]=o)}return i}(n,e):n}let y=(0,f.createContext)(p());function m(){return(0,f.useContext)(y)}let g={main:"main",getStarted:"getStarted",signIn:"signIn"},b="360px",v="730px",w="570px",x="650px",T=250;function C(e){setTimeout(e,T+100)}function M(){return window.innerWidth>=770}let A=(0,f.createContext)(!1),E=(0,f.createContext)(void 0),I=(0,f.createContext)({title:"",theme:"dark",data:void 0,modalSize:"wide"}),S=(0,f.createContext)(()=>{}),k=e=>{let[n,r]=(0,f.useState)(!1),i=!M(),o=m(),[s,l]=(0,f.useState)({title:e.title||o.connectWallet.defaultModalTitle,theme:e.theme||"dark",data:void 0,modalSize:(i?"compact":e.modalSize)||"wide",termsOfServiceUrl:e.termsOfServiceUrl,privacyPolicyUrl:e.privacyPolicyUrl,welcomeScreen:e.welcomeScreen,titleIconUrl:e.titleIconUrl,isEmbed:e.isEmbed,auth:e.auth,onConnect:e.onConnect,showThirdwebBranding:e.showThirdwebBranding});return(0,a.jsx)(A.Provider,{value:n,children:(0,a.jsx)(E.Provider,{value:r,children:(0,a.jsx)(I.Provider,{value:s,children:(0,a.jsx)(S.Provider,{value:l,children:e.children})})})})},N=()=>(0,f.useContext)(A),j=()=>{let e=(0,f.useContext)(E);if(void 0===e)throw Error("useSetWalletModalOpen must be used within a ThirdwebProvider");return e},D=e=>{let n=(0,i.u)();return(0,a.jsx)(P,{style:{width:i.i[e.size]+"px",height:i.i[e.size]+"px"},viewBox:"0 0 50 50",children:(0,a.jsx)(L,{cx:"25",cy:"25",r:"20",fill:"none",stroke:n.colors[e.color],strokeWidth:"4"})})},_=(0,o.F4)` 60 0% { 61 stroke-dasharray: 1, 150; 62 stroke-dashoffset: 0; 63 } 64 50% { 65 stroke-dasharray: 90, 150; 66 stroke-dashoffset: -35; 67 } 68 100% { 69 stroke-dasharray: 90, 150; 70 stroke-dashoffset: -124; 71 } 72`,O=(0,o.F4)` 73 100% { 74 transform: rotate(360deg); 75 } 76`,P=(0,i.y)({animation:`${O} 2s linear infinite`,width:"1em",height:"1em"}),L=(0,i.z)({strokeLinecap:"round",animation:`${_} 1.5s ease-in-out infinite`}),R=(0,f.createContext)(void 0);function z(){let e=(0,s.rBi)(),n=(0,f.useContext)(I),r=g.main,i=e.find(e=>"socialLogin"===e.category);1===e.length&&e[0]&&!e[0]?.selectUI?r=e[0]:"wide"===n.modalSize&&!n.welcomeScreen&&i&&(r=i);let[a,o]=(0,f.useState)(r),l=(0,f.useRef)(r),u=(0,s.Osb)();return(0,f.useEffect)(()=>{r!==l.current&&(l.current=r,o(r))},[r]),(0,f.useEffect)(()=>{u||a!==g.signIn||o(g.main)},[u,a]),{screen:a,setScreen:o,initialScreen:r}}function B(){let e=(0,f.useContext)(R);if(!e)throw Error("useScreenContext must be used within a <ScreenProvider />");return e}let U=e=>(0,a.jsx)(F,{style:{paddingBlock:e.py?i.s[e.py]:0},children:(0,a.jsxs)("span",{children:[" ",e.text]})}),F=(0,i.S)(()=>{let e=(0,i.u)();return{display:"flex",alignItems:"center",color:e.colors.secondaryText,fontSize:i.f.sm,"&::before, &::after":{content:'""',flex:1,borderBottom:`1px solid ${e.colors.separatorLine}`},span:{margin:"0 16px"}}}),Z=(0,i.D)(e=>{let n=(0,i.u)();return{fontSize:i.f.sm,color:n.colors[e.color||"primaryText"],display:"block",fontWeight:500}}),W=(0,i.A)(e=>{let n=(0,i.u)();return{fontSize:i.f.md,fontFamily:"inherit",display:"block",padding:e.sm?i.s.sm:i.f.sm,boxSizing:"border-box",width:"100%",outline:"none",border:"none",borderRadius:"6px",color:n.colors.primaryText,WebkitAppearance:"none",appearance:"none",background:"transparent","&::placeholder":{color:n.colors.secondaryText},boxShadow:`0 0 0 1.5px ${"outline"===e.variant?n.colors.borderColor:"transparent"}`,"&:-webkit-autofill":{WebkitTextFillColor:n.colors.primaryText,WebkitBoxShadow:`0 0 0px 1000px ${n.colors.inputAutofillBg} inset !important`,boxShadow:`0 0 0px 1000px ${n.colors.inputAutofillBg} inset !important`,transition:"background-color 5000s ease-in-out 0s"},"&:-webkit-autofill:focus":{WebkitBoxShadow:`0 0 0px 1000px ${n.colors.inputAutofillBg} inset, 0 0 0 2px ${n.colors.accentText} !important`,boxShadow:`0 0 0px 1000px ${n.colors.inputAutofillBg} inset, 0 0 0 2px ${n.colors.accentText} !important`},"&[data-placeholder='true']":{color:n.colors.secondaryText},"&:focus":{boxShadow:`0 0 0 2px ${n.colors.accentText}`},"&[data-focus='false']:focus":{boxShadow:"none"},"&:not([type='password'])":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"&[data-error='true']":{boxShadow:`0 0 0 2px ${n.colors.danger} !important`},"&[disabled]":{cursor:"not-allowed"},"&[type='number']::-webkit-outer-spin-button, &[type='number']::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}
76,"&[type='number']":{appearance:"none",MozAppearance:"textfield"}}}),H=(0,i.S)(()=>{let e=(0,i.u)();return{display:"flex",borderRadius:i.r.sm,boxShadow:`0 0 0px 1.5px ${e.colors.borderColor}`,"&:focus-within":{boxShadow:`0 0 0px 2px ${e.colors.accentText}`},"input:focus":{boxShadow:"none"},"&[data-error='true']":{boxShadow:`0 0 0px 2px ${e.colors.danger}`}}})},10498:function(e,n,r){"use strict";r.d(n,{frameWallet:function(){return p}});var i=r(66006),a=r(24528),o=r(60323),s=r(67294),f=r(27515),l=r(96714),u=r(85893);r(92592),r(88003),r(78808);let c=e=>{let n=(0,l.u)().wallets.frameWallet.connectionFailedScreen;return(0,u.jsxs)(f.C,{p:"lg",children:[(0,u.jsx)(f.M,{onBack:()=>e.onBack(),title:"Frame"}),(0,u.jsx)(l.S,{y:"xl"}),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(f.p,{children:[" ",n.title," "]}),(0,u.jsx)(l.S,{y:"sm"}),(0,u.jsx)(f.a,{children:n.description})]}),(0,u.jsx)(l.S,{y:"lg"}),(0,u.jsxs)(o.B,{onClick:()=>{(0,o.o)("https://frame.sh")},children:[(0,u.jsx)(f.I,{width:f.i.lg,height:f.i.lg,src:e.walletIconURL}),(0,u.jsx)("span",{children:n.downloadFrame})]}),(0,u.jsx)(l.S,{y:"lg"}),(0,u.jsx)(f.H,{target:"_blank",href:e.supportLink,children:n.supportLink})]})},d=e=>{let[n,r]=(0,s.useState)("connecting"),i=(0,l.u)().wallets.frameWallet,{connect:a}=e,f=(0,s.useRef)(!1),{walletConfig:d,connected:p,goBack:h}=e,y=1===e.supportedWallets.length;return((0,s.useEffect)(()=>{f.current||(async()=>{if((0,o.i)())(0,o.i)()&&(0,o.o)("https://frame.sh");else try{f.current=!0,r("connecting"),await a(),p()}catch(e){r("connect-failed")}})()},[a,h,p]),"connecting"===n)?(0,u.jsx)(o.C,{locale:{getStartedLink:i.getStartedLink,instruction:i.connectionScreen.instruction,tryAgain:i.connectionScreen.retry,inProgress:i.connectionScreen.inProgress,failed:i.connectionScreen.failed},errorConnecting:!1,onRetry:()=>{},onGetStarted:()=>{r("get-started")},hideBackButton:y,onBack:h,walletName:d.meta.name,walletIconURL:d.meta.iconURL}
76):"connect-failed"===n?(0,u.jsx)(c,{onBack:h,walletIconURL:d.meta.iconURL,supportLink:"https://docs.frame.sh"}):"get-started"===n?(0,u.jsx)(o.G,{locale:{scanToDownload:i.getStartedScreen.instruction},walletIconURL:d.meta.iconURL,walletName:d.meta.name,chromeExtensionLink:d.meta.urls?.chrome,googlePlayStoreLink:d.meta.urls?.android,appleStoreLink:d.meta.urls?.ios,onBack:e.goBack}):null},p=e=>({id:i.K.id,recommended:e?.recommended,meta:{name:"Frame",iconURL:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODAiIGhlaWdodD0iODAiIHZpZXdCb3g9IjAgMCA4MCA4MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTAgMjEuNDE3NEMwIDEzLjkyMDYgMCAxMC4xNzIyIDEuNDUzNiA3LjMwODc4QzIuNzMyMjQgNC43OTAwOCA0Ljc3MjQ3IDIuNzQyMzIgNy4yODE5MSAxLjQ1ODk3QzEwLjEzNDggMCAxMy44Njk0IDAgMjEuMzM4NyAwSDU4LjY2MTNDNjYuMTMwNiAwIDY5Ljg2NTIgMCA3Mi43MTgxIDEuNDU4OTdDNzUuMjI3NiAyLjc0MjMyIDc3LjI2NzcgNC43OTAwOCA3OC41NDY0IDcuMzA4NzhDODAgMTAuMTcyMiA4MCAxMy45MjA2IDgwIDIxLjQxNzRWNTguNTgyNkM4MCA2Ni4wNzk0IDgwIDY5LjgyNzggNzguNTQ2NCA3Mi42OTEyQzc3LjI2NzcgNzUuMjEgNzUuMjI3NiA3Ny4yNTc2IDcyLjcxODEgNzguNTQxQzY5Ljg2NTIgODAgNjYuMTMwNiA4MCA1OC42NjEzIDgwSDIxLjMzODdDMTMuODY5NCA4MCAxMC4xMzQ4IDgwIDcuMjgxOTEgNzguNTQxQzQuNzcyNDcgNzcuMjU3NiAyLjczMjI0IDc1LjIxIDEuNDUzNiA3Mi42OTEyQzAgNjkuODI3OCAwIDY2LjA3OTQgMCA1OC41ODI2VjIxLjQxNzRaIiBmaWxsPSIjMjYyRDM0Ii8+CjxtYXNrIGlkPSJtYXNrMF8yNF83OCIgc3R5bGU9Im1hc2stdHlwZTpsdW1pbmFuY2UiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHg9IjE3IiB5PSIxNyIgd2lkdGg9IjQ3IiBoZWlnaHQ9IjQ3Ij4KPHBhdGggZD0iTTYzLjY2NjcgMTdIMTdWNjMuNjY2N0g2My42NjY3VjE3WiIgZmlsbD0id2hpdGUiLz4KPC9tYXNrPgo8ZyBtYXNrPSJ1cmwoI21hc2swXzI0Xzc4KSI+CjxwYXRoIGQ9Ik02MS4xNDE3IDQwLjA3MzhWMjIuMzcxN0M2MS4xNDE3IDIwLjgxNTIgNTkuODY0IDE5LjUzMzIgNTguMzEyNSAxOS41MzMySDQwLjYzNzVDNDAuNDU1IDE5LjUzMzIgNDAuMzAyOCAxOS40NzIyIDQwLjE1MDggMTkuMzUwMkwzOC4wMjEzIDE3LjIxMzdDMzcuODk5NyAxNy4wOTE1IDM3LjcxNyAxNyAzNy41MzQ1IDE3SDE5LjgyOTJDMTguMjc3NyAxNyAxNyAxOC4yNTEzIDE3IDE5LjgzODVWMzcuNTQwN0MxNyAzNy43MjM4IDE3LjA2MDggMzcuODc2MyAxNy4xODI1IDM4LjAyOUwxOS4zMTIgNDAuMTY1NUMxOS40MzM3IDQwLjI4NzUgMTkuNTI1IDQwLjQ3MDcgMTkuNTI1IDQwLjY1MzhWNTguMzU2QzE5LjUyNSA1OS45MTI1IDIwLjgwMjcgNjEuMTk0NSAyMi4zNTQyIDYxLjE5NDVINDAuMDU5NUM0MC4yNDIgNjEuMTk0NSA0MC4zOTQyIDYxLjI1NTUgNDAuNTQ2MyA2MS4zNzc3TDQyLjY3NTggNjMuNTE0QzQyLjc5NzUgNjMuNjM2MiA0Mi45OCA2My42OTcyIDQzLjE2MjUgNjMuNjk3Mkg2MC44Njc4QzYyLjQxOTMgNjMuNjk3MiA2My42OTcyIDYyLjQ0NTggNjMuNjk3MiA2MC44NTg3VjQzLjE1NjVDNjMuNjk3MiA0Mi45NzMzIDYzLjYzNjIgNDIuODIwOCA2My41MTQ1IDQyLjY2ODJMNjEuMzg1IDQwLjUzMTdDNjEuMjMzIDQwLjQwOTcgNjEuMTQxNyA0MC4yNTcgNjEuMTQxNyA0MC4wNzM4Wk00OS4xMjUyIDQ5LjUzNTVIMzEuNTcyQzMxLjM1OSA0OS41MzU1IDMxLjE3NjUgNDkuMzUyMyAzMS4xNzY1IDQ5LjEzODdWMzEuNTU4NUMzMS4xNzY1IDMxLjM0NDggMzEuMzU5IDMxLjE2MTggMzEuNTcyIDMxLjE2MThINDkuMTI1MkM0OS4zMzgyIDMxLjE2MTggNDkuNTIwNyAzMS4zNDQ4IDQ5LjUyMDcgMzEuNTU4NVY0OS4xMzg3QzQ5LjU1MSA0OS4zNTIzIDQ5LjM2ODUgNDkuNTM1NSA0OS4xMjUyIDQ5LjUzNTVaIiBmaWxsPSIjRDZGOUY4Ii8+CjwvZz4KPC9zdmc+Cg==",urls:{chrome:"https://chrome.google.com/webstore/detail/frame-companion/ldcoohedfbjoobcadoglnnmmfbdlmmhf",firefox:"https://addons.mozilla.org/en-US/firefox/addon/frame-extension"}},create:e=>new i.K(e),connectUI:d,isInstalled(){let e=globalThis?.window;return!!(0,a.a)(e)&&(e.ethereum?.isFrame||e.ethereum?.providers?.some(e=>e.isFrame)||!1)}})},3601:function(e,n,r){"use strict";r.d(n,{magicLink:function(){return d}});var i=r(70166),a=r(88003),o=r(67294),s=r(96714),f=r(27515),l=r(24902),u=r(78808),c=r(85893);function d(e){let n=!1!==e.emailLogin,r=!1!==e.smsLogin,a=e.oauthOptions?.providers,o=e.type||"auth",s=l.c,f="Email or phone";return n&&!r&&(s=l.e,f="Email"),!n&&r&&(s=l.p,f="Phone number"),n||r||(f="Social login"),{id:i.B.id,recommended:e?.recommended,isHeadless:!0,meta:{...i.B.meta,name:f,iconURL:s},create:n=>new i.B({...n,...e}),connectUI:e=>"wide"===e.modalSize||void 0===e.selectionData?(0,c.jsx)(m,{...e,type:o,emailLogin:n,smsLogin:r,oauthProviders:a}):(0,c.jsx)(y,{...e,type:o}),isInstalled:()=>!1}}let p=e=>{let n=(0,s.u)().connectWallet,r=(0,s.u)().wallets.magicLink,i=!1!==e.emailLogin,a=!1!==e.smsLogin,o=r.loginWithEmailOrPhone,u="text",d=r.emailOrPhoneRequired;if(i&&!a?(o=r.emailPlaceholder,d=r.emailRequired,u="email"):!i&&a&&(o=r.loginWithPhone,d=r.phoneRequired,u="tel"),!i&&!a&&!e.oauthProviders)throw Error('MagicLink must have either "emailLogin" or "smsLogin" or social login enabled');let{screen:p}=(0,s.g)(),h="wide"===e.modalSize||p!==s.r.main&&"compact"===e.modalSize;return(0,c.jsxs)(f.C,{flex:"column",animate:"fadein",gap:"compact"===e.modalSize?"lg":"xl",style:{width:"100%"},children:[e.oauthProviders&&(0,c.jsx)(c.Fragment,{children:e.oauthProviders.length>1?(0,c.jsx)(f.C,{gap:"md",flex:"row",style:{justifyContent:"space-between"},center:"x",children:e.oauthProviders.map(n=>(0,c.jsx)(w,{onClick:()=>{e.onSelect({provider:n})},children:(0,c.jsx)(l.T,{tip:`${r.loginWith} ${b(n)}`,sideOffset:15,children:(0,c.jsx)(f.C,{flex:"row",center:"both",children:(0,c.jsx)(f.I,{src:g[n],width:f.i.lg,height:f.i.lg,alt:""})})})},n))}):(0,c.jsx)(f.C,{gap:"xs",flex:"column",children:e.oauthProviders.map(n=>(0,c.jsxs)(v,{variant:"secondary",onClick:()=>{e.onSelect({provider:n})},children:[(0,c.jsx)(f.I,{src:g[n],width:f.i.md,height:f.i.md,alt:""}),(0,c.jsxs)("span",{children:[r.loginWith," ",b(n)]})]},n))})}),(i||a)&&(0,c.jsxs)(c.Fragment,{children:[h&&(0,c.jsx)(s.f,{text:n.or}),(0,c.jsx)(l.I,{submitButtonText:r.submitEmail,onSelect:e.onSelect,placeholder:o,name:"magic-input",type:u,emptyErrorMessage:d,errorMessage:e=>{let n=e.toLowerCase(),o=n.includes("@"),s=Number.isInteger(Number(n[n.length-1]));
76if(o&&i){if(!(0,l.v)(n))return r.invalidEmail}else if(s&&a){if(!n.startsWith("+"))return r.countryCodeMissing}else{if(i&&a)return r.invalidEmailOrPhone;if(i)return r.invalidEmail;if(a)return r.invalidPhone}}})]})]})};function h(){let{activeChain:e}=(0,a.tNP)();return(0,o.useCallback)(async n=>{let{selectionData:r,connected:i,show:a,hide:o,connect:s}=n;if("object"==typeof r){try{o(),(async()=>{await s({oauthProvider:r.provider,chainId:e.chainId})})(),i()}catch(e){console.error(e)}a()}else{let f=!!r&&r.includes("@");o();try{await s("connect"===n.type?{}:f?{email:r,chainId:e.chainId}:{phoneNumber:r,chainId:e.chainId}),i()}catch(e){console.error(e)}a()}},[e.chainId])}let y=e=>{let{connected:n,walletConfig:r,show:i,selectionData:a,supportedWallets:l,type:u,hide:d,connect:p}=e,y=(0,o.useRef)(!1),m=1===l.length,g=h();return(0,o.useEffect)(()=>{y.current||(y.current=!0,g({selectionData:a,singleWallet:m,type:u,connect:p,show:i,connected:n,hide:d}))},[g,n,a,i,m,u,r,d,p]),(0,c.jsx)(f.C,{flex:"row",center:"both",style:{minHeight:"350px"},children:(0,c.jsx)(s.a,{size:"xl",color:"accentText"})})},m=e=>{let n=(0,s.u)().wallets.magicLink,r=h();return(0,c.jsxs)(f.C,{p:"lg",fullHeight:!0,flex:"column",style:{minHeight:"300px"},children:[(0,c.jsx)(f.M,{onBack:e.goBack,title:n.signIn}),(0,c.jsx)(s.S,{y:"xl"}),(0,c.jsx)(f.C,{expand:!0,flex:"column",center:"both",px:"wide"===e.modalSize?"lg":void 0,children:(0,c.jsx)(p,{...e,onSelect:n=>{r({selectionData:n,connected:e.connected,show:e.show,singleWallet:1===e.supportedWallets.length,type:e.type,connect:e.connect,hide:e.hide})}})})]})},g={google:l.g,facebook:l.f,twitter:l.t,github:l.d,apple:l.a,linkedin:l.l,bitbucket:l.h,gitlab:l.i,twitch:l.j,discord:l.k,microsoft:l.m};function b(e){return e.charAt(0).toUpperCase()+e.slice(1)}let v=(0,u.Z)(f.B)(()=>{let e=(0,f.u)();return{display:"flex",justifyContent:"center",gap:f.s.md,fontSize:f.f.md,transition:"background-color 0.2s ease","&:hover":{backgroundColor:e.colors.secondaryButtonBg},"&:active":{boxShadow:"none"}}}),w=(0,u.Z)(f.g)(()=>{let e=(0,f.u)();return{border:`1px solid ${e.colors.borderColor}`,padding:f.s.sm,transition:"border-color 0.2s ease","&:hover":{borderColor:e.colors.accentText,background:"transparent"},flexGrow:1}})},15514:function(e,n,r){"use strict";let i;r.d(n,{C:function(){return rO},T:function(){return rq},e:function(){return tQ},x:function(){return t_}});var a=r(62469),o=r(27515),s=r(96714),f=r(88003),l=r(67294),u=r(85893),c=r(67848),d=r(48228),p=r(70917),h=r(78808),y=r(22555),m=r(29472),g=r(80381),b=r(85560),v=r(4183),w=r(10748),x=r(20640),T=r.n(x),C=r(24902),M=r(60323),A=r(87626),E=r(36206),I=r(25360),S=r(28771),k=r(88426),N=r(91276),j=r(75320),D=r(79698),_=r(77342),O=l.createContext(void 0);function P(e){let n=l.useContext(O);return e||n||"ltr"}var L="rovingFocusGroup.onEntryFocus",R={bubbles:!1,cancelable:!0},z="RovingFocusGroup",[B,U,F]=function(e){let n=e+"CollectionProvider",[r,i]=(0,I.b)(n),[a,o]=r(n,{collectionRef:{current:null},itemMap:new Map}),s=e=>{let{scope:n,children:r}=e,i=l.useRef(null),o=l.useRef(new Map).current;return(0,u.jsx)(a,{scope:n,itemMap:o,collectionRef:i,children:r})};s.displayName=n;let f=e+"CollectionSlot",c=l.forwardRef((e,n)=>{let{scope:r,children:i}=e,a=o(f,r),s=(0,S.e)(n,a.collectionRef);return(0,u.jsx)(k.g7,{ref:s,children:i})});c.displayName=f;let d=e+"CollectionItemSlot",p="data-radix-collection-item",h=l.forwardRef((e,n)=>{let{scope:r,children:i,...a}=e,s=l.useRef(null),f=(0,S.e)(n,s),c=o(d,r);return l.useEffect(()=>(c.itemMap.set(s,{ref:s,...a}),()=>void c.itemMap.delete(s))),(0,u.jsx)(k.g7,{[p]:"",ref:f,children:i})});return h.displayName=d,[{Provider:s,Slot:c,ItemSlot:h},function(n){let r=o(e+"CollectionConsumer",n);return l.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let n=Array.from(e.querySelectorAll(`[${p}]`));return Array.from(r.itemMap.values()).sort((e,r)=>n.indexOf(e.ref.current)-n.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},i]}(z),[Z,W]=(0,I.b)(z,[F]),[H,G]=Z(z),q=l.forwardRef((e,n)=>(0,u.jsx)(B.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,u.jsx)(B.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,u.jsx)(Y,{...e,ref:n})})}));q.displayName=z;
76var Y=l.forwardRef((e,n)=>{let{__scopeRovingFocusGroup:r,orientation:i,loop:a=!1,dir:o,currentTabStopId:s,defaultCurrentTabStopId:f,onCurrentTabStopIdChange:c,onEntryFocus:d,preventScrollOnEntryFocus:p=!1,...h}=e,y=l.useRef(null),m=(0,S.e)(n,y),g=P(o),[b=null,v]=(0,_.T)({prop:s,defaultProp:f,onChange:c}),[w,x]=l.useState(!1),T=(0,D.W)(d),C=U(r),M=l.useRef(!1),[A,I]=l.useState(0);return l.useEffect(()=>{let e=y.current;if(e)return e.addEventListener(L,T),()=>e.removeEventListener(L,T)},[T]),(0,u.jsx)(H,{scope:r,orientation:i,dir:g,loop:a,currentTabStopId:b,onItemFocus:l.useCallback(e=>v(e),[v]),onItemShiftTab:l.useCallback(()=>x(!0),[]),onFocusableItemAdd:l.useCallback(()=>I(e=>e+1),[]),onFocusableItemRemove:l.useCallback(()=>I(e=>e-1),[]),children:(0,u.jsx)(j.WV.div,{tabIndex:w||0===A?-1:0,"data-orientation":i,...h,ref:m,style:{outline:"none",...e.style},onMouseDown:(0,E.M)(e.onMouseDown,()=>{M.current=!0}),onFocus:(0,E.M)(e.onFocus,e=>{let n=!M.current;if(e.target===e.currentTarget&&n&&!w){let n=new CustomEvent(L,R);if(e.currentTarget.dispatchEvent(n),!n.defaultPrevented){let e=C().filter(e=>e.focusable);$([e.find(e=>e.active),e.find(e=>e.id===b),...e].filter(Boolean).map(e=>e.ref.current),p)}}M.current=!1}),onBlur:(0,E.M)(e.onBlur,()=>x(!1))})})}),V="RovingFocusGroupItem",Q=l.forwardRef((e,n)=>{let{__scopeRovingFocusGroup:r,focusable:i=!0,active:a=!1,tabStopId:o,...s}=e,f=(0,N.M)(),c=o||f,d=G(V,r),p=d.currentTabStopId===c,h=U(r),{onFocusableItemAdd:y,onFocusableItemRemove:m}=d;return l.useEffect(()=>{if(i)return y(),()=>m()},[i,y,m]),(0,u.jsx)(B.ItemSlot,{scope:r,id:c,focusable:i,active:a,children:(0,u.jsx)(j.WV.span,{tabIndex:p?0:-1,"data-orientation":d.orientation,...s,ref:n,onMouseDown:(0,E.M)(e.onMouseDown,e=>{i?d.onItemFocus(c):e.preventDefault()}),onFocus:(0,E.M)(e.onFocus,()=>d.onItemFocus(c)),onKeyDown:(0,E.M)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){d.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let n=function(e,n,r){var i;let a=(i=e.key,"rtl"!==r?i:"ArrowLeft"===i?"ArrowRight":"ArrowRight"===i?"ArrowLeft":i);if(!("vertical"===n&&["ArrowLeft","ArrowRight"].includes(a))&&!("horizontal"===n&&["ArrowUp","ArrowDown"].includes(a)))return K[a]}(e,d.orientation,d.dir);if(void 0!==n){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let a=h().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===n)a.reverse();else if("prev"===n||"next"===n){var r,i;"prev"===n&&a.reverse();let o=a.indexOf(e.currentTarget);a=d.loop?(r=a,i=o+1,r.map((e,n)=>r[(i+n)%r.length])):a.slice(o+1)}setTimeout(()=>$(a))}})})})});Q.displayName=V;var K={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function $(e,n=!1){let r=document.activeElement;for(let i of e)if(i===r||(i.focus({preventScroll:n}),document.activeElement!==r))return}var J=r(29115),X="Tabs",[ee,et]=(0,I.b)(X,[W]),en=W(),[er,ei]=ee(X),ea=l.forwardRef((e,n)=>{let{__scopeTabs:r,value:i,onValueChange:a,defaultValue:o,orientation:s="horizontal",dir:f,activationMode:l="automatic",...c}=e,d=P(f),[p,h]=(0,_.T)({prop:i,onChange:a,defaultProp:o});return(0,u.jsx)(er,{scope:r,baseId:(0,N.M)(),value:p,onValueChange:h,orientation:s,dir:d,activationMode:l,children:(0,u.jsx)(j.WV.div,{dir:d,"data-orientation":s,...c,ref:n})})});ea.displayName=X;var eo="TabsList",es=l.forwardRef((e,n)=>{let{__scopeTabs:r,loop:i=!0,...a}=e,o=ei(eo,r),s=en(r);return(0,u.jsx)(q,{asChild:!0,...s,orientation:o.orientation,dir:o.dir,loop:i,children:(0,u.jsx)(j.WV.div,{role:"tablist","aria-orientation":o.orientation,...a,ref:n})})});es.displayName=eo;var ef="TabsTrigger",el=l.forwardRef((e,n)=>{let{__scopeTabs:r,value:i,disabled:a=!1,...o}=e,s=ei(ef,r),f=en(r),l=ed(s.baseId,i),c=ep(s.baseId,i),d=i===s.value;return(0,u.jsx)(Q,{asChild:!0,...f,focusable:!a,active:d,children:(0,u.jsx)(j.WV.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":c,"data-state":d?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:l,...o,ref:n,onMouseDown:(0,E.M)(e.onMouseDown,e=>{a||0!==e.button||!1!==e.ctrlKey?e.preventDefault():s.onValueChange(i)}),onKeyDown:(0,E.M)(e.onKeyDown,e=>
76{[" ","Enter"].includes(e.key)&&s.onValueChange(i)}),onFocus:(0,E.M)(e.onFocus,()=>{let e="manual"!==s.activationMode;d||a||!e||s.onValueChange(i)})})})});el.displayName=ef;var eu="TabsContent",ec=l.forwardRef((e,n)=>{let{__scopeTabs:r,value:i,forceMount:a,children:o,...s}=e,f=ei(eu,r),c=ed(f.baseId,i),d=ep(f.baseId,i),p=i===f.value,h=l.useRef(p);return l.useEffect(()=>{let e=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,u.jsx)(J.z,{present:a||p,children:({present:r})=>(0,u.jsx)(j.WV.div,{"data-state":p?"active":"inactive","data-orientation":f.orientation,role:"tabpanel","aria-labelledby":c,hidden:!r,id:d,tabIndex:0,...s,ref:n,style:{...e.style,animationDuration:h.current?"0s":void 0},children:r&&o})})});function ed(e,n){return`${e}-trigger-${n}`}function ep(e,n){return`${e}-content-${n}`}ec.displayName=eu;var eh=r(69386),ey=r(19485),em=r(9086),eg=r(66869),eb=r(2515),ev=r(56371),ew=r(46063),ex="focusScope.autoFocusOnMount",eT="focusScope.autoFocusOnUnmount",eC={bubbles:!1,cancelable:!0},eM=l.forwardRef((e,n)=>{let{loop:r=!1,trapped:i=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...s}=e,[f,c]=l.useState(null),d=(0,D.W)(a),p=(0,D.W)(o),h=l.useRef(null),y=(0,S.e)(n,e=>c(e)),m=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(i){let e=function(e){if(m.paused||!f)return;let n=e.target;f.contains(n)?h.current=n:eI(h.current,{select:!0})},n=function(e){if(m.paused||!f)return;let n=e.relatedTarget;null===n||f.contains(n)||eI(h.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",n);let r=new MutationObserver(function(e){if(document.activeElement===document.body)for(let n of e)n.removedNodes.length>0&&eI(f)});return f&&r.observe(f,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",n),r.disconnect()}}},[i,f,m.paused]),l.useEffect(()=>{if(f){eS.add(m);let e=document.activeElement;if(!f.contains(e)){let n=new CustomEvent(ex,eC);f.addEventListener(ex,d),f.dispatchEvent(n),n.defaultPrevented||(function(e,{select:n=!1}={}){let r=document.activeElement;for(let i of e)if(eI(i,{select:n}),document.activeElement!==r)return}(eA(f).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&eI(f))}return()=>{f.removeEventListener(ex,d),setTimeout(()=>{let n=new CustomEvent(eT,eC);f.addEventListener(eT,p),f.dispatchEvent(n),n.defaultPrevented||eI(e??document.body,{select:!0}),f.removeEventListener(eT,p),eS.remove(m)},0)}}},[f,d,p,m]);let g=l.useCallback(e=>{if(!r&&!i||m.paused)return;let n="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,a=document.activeElement;if(n&&a){let n=e.currentTarget,[i,o]=function(e){let n=eA(e);return[eE(n,e),eE(n.reverse(),e)]}(n);i&&o?e.shiftKey||a!==o?e.shiftKey&&a===i&&(e.preventDefault(),r&&eI(o,{select:!0})):(e.preventDefault(),r&&eI(i,{select:!0})):a===n&&e.preventDefault()}},[r,i,m.paused]);return(0,u.jsx)(j.WV.div,{tabIndex:-1,...s,ref:y,onKeyDown:g})});function eA(e){let n=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let n="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||n?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)n.push(r.currentNode);return n}function eE(e,n){for(let r of e)if(!function(e,{upTo:n}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:n}))return r}function eI(e,{select:n=!1}={}){if(e&&e.focus){var r;let i=document.activeElement;e.focus({preventScroll:!0}),e!==i&&(r=e)instanceof HTMLInputElement&&"select"in r&&n&&e.select()}}eM.displayName="FocusScope";var eS=(i=[],{add(e){let n=i[0];e!==n&&n?.pause(),(i=ek(i,e)).unshift(e)},remove(e){i=ek(i,e),i[0]?.resume()}});function ek(e,n){let r=[...e],i=r.indexOf(n);return -1!==i&&r.splice(i,1),r}var eN=r(42651),ej=0;function eD(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var e_=function(){return(e_=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++)for(var a in n=arguments[r])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e}).apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var eO=r(71642),eP=r(99495),eL=(0,r(87122)._)(),eR=function(){},ez=l.forwardRef(function(e,n){var r=l.useRef(null),i=l.useState({onScrollCapture:eR,onWheelCapture:eR,onTouchMoveCapture:eR}),a=i[0],o=i[1],s=e.forwardProps,f=e.children,u=e.className,c=e.removeScrollBar,d=e.enabled,p=e.shards,h=e.sideCar,y=e.noIsolation,m=e.inert,g=e.allowPinchZoom,b=e.as,v=e.gapMode,w=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>n.indexOf(i)&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,i=Object.getOwnPropertySymbols(e);a<i.length;a++)0>n.indexOf(i[a])&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(r[i[a]]=e[i[a]]);return r}(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=(0,eP.q)([r,n]),T=e_(e_({},w),a);return l.createElement(l.Fragment,null,d&&l.createElement(h,{sideCar:eL,removeScrollBar:c,shards:p,noIsolation:y,inert:m,setCallbacks:o,allowPinchZoom:!!g,lockRef:r,gapMode:v}),s?l.cloneElement(l.Children.only(f),e_(e_({},T),{ref:x}
76)):l.createElement(void 0===b?"div":b,e_({},T,{className:u,ref:x}),f))});ez.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ez.classNames={fullWidth:eO.zi,zeroRight:eO.pF};var eB=r(66781),eU=r(37087),eF=r(6525),eZ=!1;if("undefined"!=typeof window)try{var eW=Object.defineProperty({},"passive",{get:function(){return eZ=!0,!0}});window.addEventListener("test",eW,eW),window.removeEventListener("test",eW,eW)}catch(e){eZ=!1}var eH=!!eZ&&{passive:!1},eG=function(e,n){var r=window.getComputedStyle(e);return"hidden"!==r[n]&&!(r.overflowY===r.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===r[n])},eq=function(e,n){var r=n.ownerDocument,i=n;do{if("undefined"!=typeof ShadowRoot&&i instanceof ShadowRoot&&(i=i.host),eY(e,i)){var a=eV(e,i);if(a[1]>a[2])return!0}i=i.parentNode}while(i&&i!==r.body);return!1},eY=function(e,n){return"v"===e?eG(n,"overflowY"):eG(n,"overflowX")},eV=function(e,n){return"v"===e?[n.scrollTop,n.scrollHeight,n.clientHeight]:[n.scrollLeft,n.scrollWidth,n.clientWidth]},eQ=function(e,n,r,i,a){var o,s=(o=window.getComputedStyle(n).direction,"h"===e&&"rtl"===o?-1:1),f=s*i,l=r.target,u=n.contains(l),c=!1,d=f>0,p=0,h=0;do{var y=eV(e,l),m=y[0],g=y[1]-y[2]-s*m;(m||g)&&eY(e,l)&&(p+=g,h+=m),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!u&&l!==document.body||u&&(n.contains(l)||n===l));return d&&(a&&1>Math.abs(p)||!a&&f>p)?c=!0:!d&&(a&&1>Math.abs(h)||!a&&-f>h)&&(c=!0),c},eK=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},e$=function(e){return[e.deltaX,e.deltaY]},eJ=function(e){return e&&"current"in e?e.current:e},eX=0,e0=[],e1=(0,eB.L)(eL,function(e){var n=l.useRef([]),r=l.useRef([0,0]),i=l.useRef(),a=l.useState(eX++)[0],o=l.useState(eF.Ws)[0],s=l.useRef(e);l.useEffect(function(){s.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var n=(function(e,n,r){if(r||2==arguments.length)for(var i,a=0,o=n.length;a<o;a++)!i&&a in n||(i||(i=Array.prototype.slice.call(n,0,a)),i[a]=n[a]);return e.concat(i||Array.prototype.slice.call(n))})([e.lockRef.current],(e.shards||[]).map(eJ),!0).filter(Boolean);return n.forEach(function(e){return e.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),n.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var f=l.useCallback(function(e,n){if("touches"in e&&2===e.touches.length)return!s.current.allowPinchZoom;var a,o=eK(e),f=r.current,l="deltaX"in e?e.deltaX:f[0]-o[0],u="deltaY"in e?e.deltaY:f[1]-o[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var p=eq(d,c);if(!p)return!0;if(p?a=d:(a="v"===d?"h":"v",p=eq(d,c)),!p)return!1;if(!i.current&&"changedTouches"in e&&(l||u)&&(i.current=a),!a)return!0;var h=i.current||a;return eQ(h,n,e,"h"===h?l:u,!0)},[]),u=l.useCallback(function(e){if(e0.length&&e0[e0.length-1]===o){var r="deltaY"in e?e$(e):eK(e),i=n.current.filter(function(n){var i;return n.name===e.type&&(n.target===e.target||e.target===n.shadowParent)&&(i=n.delta)[0]===r[0]&&i[1]===r[1]})[0];if(i&&i.should){e.cancelable&&e.preventDefault();return}if(!i){var a=(s.current.shards||[]).map(eJ).filter(Boolean).filter(function(n){return n.contains(e.target)});(a.length>0?f(e,a[0]):!s.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=l.useCallback(function(e,r,i,a){var o={name:e,delta:r,target:i,should:a,shadowParent:function(e){for(var n=null;null!==e;)e instanceof ShadowRoot&&(n=e.host,e=e.host),e=e.parentNode;return n}(i)};n.current.push(o),setTimeout(function(){n.current=n.current.filter(function(e){return e!==o})},1)},[]),d=l.useCallback(function(e){r.current=eK(e),i.current=void 0},[]),p=l.useCallback(function(n){c(n.type,e$(n),n.target,f(n,e.lockRef.current))},[]),h=l.useCallback(function(n){c(n.type,eK(n),n.target,f(n,e.lockRef.current))},[]);l.useEffect(function(){return e0.push(o),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:h}),document.addEventListener("wheel",u,eH),document.addEventListener("touchmove",u,eH),document.addEventListener("touchstart",d,eH),function(){e0=e0.filter(function(e){return e!==o}),document.removeEventListener("wheel",u,eH),document.removeEventListener("touchmove",u,eH),document.removeEventListener("touchstart",d,eH)}},[]);var y=e.removeScrollBar,m=e.inert;return l.createElement(l.Fragment,null,m?l.createElement(o,{styles:"\n .block-interactivity-".concat(a," {pointer-events: none;}\n .allow-interactivity-").concat(a," {pointer-events: all;}\n")}):null,y?l.createElement(eU.jp,{gapMode:e.gapMode}):null)}),e6=l.forwardRef(function(e,n){return l.createElement(ez,e_({},e,{ref:n,sideCar:e1}))});e6.classNames=ez.classNames;var e5=r(23541),e2="Dialog",[e4,e3]=(0,I.b)(e2),[e8,e9]=e4(e2),e7=e=>{let{__scopeDialog:n,children:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,f=l.useRef(null),c=l.useRef(null),[d=!1,p]=(0,_.T)({prop:i,defaultProp:a,onChange:o});return(0,u.jsx)(e8,{scope:n,triggerRef:f,contentRef:c,contentId:(0,N.M)(),titleId:(0,N.M)(),descriptionId:(0,N.M)(),open:d,onOpenChange:p,onOpenToggle:l.useCallback(()=>p(e=>!e),[p]),modal:s,children:r})};e7.displayName=e2;
76var te="DialogTrigger",tt=l.forwardRef((e,n)=>{let{__scopeDialog:r,...i}=e,a=e9(te,r),o=(0,S.e)(n,a.triggerRef);return(0,u.jsx)(j.WV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":tb(a.open),...i,ref:o,onClick:(0,E.M)(e.onClick,a.onOpenToggle)})});tt.displayName=te;var tn="DialogPortal",[tr,ti]=e4(tn,{forceMount:void 0}),ta=e=>{let{__scopeDialog:n,forceMount:r,children:i,container:a}=e,o=e9(tn,n);return(0,u.jsx)(tr,{scope:n,forceMount:r,children:l.Children.map(i,e=>(0,u.jsx)(J.z,{present:r||o.open,children:(0,u.jsx)(eN.h,{asChild:!0,container:a,children:e})}))})};ta.displayName=tn;var to="DialogOverlay",ts=l.forwardRef((e,n)=>{let r=ti(to,e.__scopeDialog),{forceMount:i=r.forceMount,...a}=e,o=e9(to,e.__scopeDialog);return o.modal?(0,u.jsx)(J.z,{present:i||o.open,children:(0,u.jsx)(tf,{...a,ref:n})}):null});ts.displayName=to;var tf=l.forwardRef((e,n)=>{let{__scopeDialog:r,...i}=e,a=e9(to,r);return(0,u.jsx)(e6,{as:k.g7,allowPinchZoom:!0,shards:[a.contentRef],children:(0,u.jsx)(j.WV.div,{"data-state":tb(a.open),...i,ref:n,style:{pointerEvents:"auto",...i.style}})})}),tl="DialogContent",tu=l.forwardRef((e,n)=>{let r=ti(tl,e.__scopeDialog),{forceMount:i=r.forceMount,...a}=e,o=e9(tl,e.__scopeDialog);return(0,u.jsx)(J.z,{present:i||o.open,children:o.modal?(0,u.jsx)(tc,{...a,ref:n}):(0,u.jsx)(td,{...a,ref:n})})});tu.displayName=tl;var tc=l.forwardRef((e,n)=>{let r=e9(tl,e.__scopeDialog),i=l.useRef(null),a=(0,S.e)(n,r.contentRef,i);return l.useEffect(()=>{let e=i.current;if(e)return(0,e5.Ry)(e)},[]),(0,u.jsx)(tp,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,E.M)(e.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:(0,E.M)(e.onPointerDownOutside,e=>{let n=e.detail.originalEvent,r=0===n.button&&!0===n.ctrlKey;(2===n.button||r)&&e.preventDefault()}),onFocusOutside:(0,E.M)(e.onFocusOutside,e=>e.preventDefault())})}),td=l.forwardRef((e,n)=>{let r=e9(tl,e.__scopeDialog),i=l.useRef(!1),a=l.useRef(!1);return(0,u.jsx)(tp,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:n=>{e.onCloseAutoFocus?.(n),n.defaultPrevented||(i.current||r.triggerRef.current?.focus(),n.preventDefault()),i.current=!1,a.current=!1},onInteractOutside:n=>{e.onInteractOutside?.(n),n.defaultPrevented||(i.current=!0,"pointerdown"!==n.detail.originalEvent.type||(a.current=!0));let o=n.target;r.triggerRef.current?.contains(o)&&n.preventDefault(),"focusin"===n.detail.originalEvent.type&&a.current&&n.preventDefault()}})}),tp=l.forwardRef((e,n)=>{let{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,...s}=e,f=e9(tl,r),c=l.useRef(null),d=(0,S.e)(n,c);return l.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??eD()),document.body.insertAdjacentElement("beforeend",e[1]??eD()),ej++,()=>{1===ej&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),ej--}},[]),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(eM,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:o,children:(0,u.jsx)(ew.XB,{role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":tb(f.open),...s,ref:d,onDismiss:()=>f.onOpenChange(!1)})}),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(tT,{titleId:f.titleId}),(0,u.jsx)(tC,{contentRef:c,descriptionId:f.descriptionId})]})]})}),th="DialogTitle";l.forwardRef((e,n)=>{let{__scopeDialog:r,...i}=e,a=e9(th,r);return(0,u.jsx)(j.WV.h2,{id:a.titleId,...i,ref:n})}).displayName=th;var ty="DialogDescription";l.forwardRef((e,n)=>{let{__scopeDialog:r,...i}=e,a=e9(ty,r);return(0,u.jsx)(j.WV.p,{id:a.descriptionId,...i,ref:n})}).displayName=ty;var tm="DialogClose",tg=l.forwardRef((e,n)=>{let{__scopeDialog:r,...i}=e,a=e9(tm,r);return(0,u.jsx)(j.WV.button,{type:"button",...i,ref:n,onClick:(0,E.M)(e.onClick,()=>a.onOpenChange(!1))})});function tb(e){return e?"open":"closed"}tg.displayName=tm;var tv="DialogTitleWarning",[tw,tx]=(0,I.k)(tv,{contentName:tl,titleName:th,docsSlug:"dialog"}),tT=({titleId:e})=>{let n=tx(tv),r=`\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users. 77 78If you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component. 79 80For more information, see https://radix-ui.com/primitives/docs/components/${n.docsSlug}`;return l.useEffect(()=>{e&&!document.getElementById(e)&&console.error(r)},[r,e]),null},tC=({contentRef:e,descriptionId:n})=>{let r=tx("DialogDescriptionWarning"),i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${r.contentName}}.`;return l.useEffect(()=>{let r=e.current?.getAttribute("aria-describedby");n&&r&&!document.getElementById(n)&&console.warn(i)},[i,e,n]),null};let tM="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAwIiBoZWlnaHQ9IjI1MDAiIHZpZXdCb3g9IjAgMCAzMiAzMiI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGN4PSIxNiIgY3k9IjE2IiByPSIxNiIgZmlsbD0iIzYyN0V
80FQSIvPjxnIGZpbGw9IiNGRkYiIGZpbGwtcnVsZT0ibm9uemVybyI+PHBhdGggZmlsbC1vcGFjaXR5PSIuNjAyIiBkPSJNMTYuNDk4IDR2OC44N2w3LjQ5NyAzLjM1eiIvPjxwYXRoIGQ9Ik0xNi40OTggNEw5IDE2LjIybDcuNDk4LTMuMzV6Ii8+PHBhdGggZmlsbC1vcGFjaXR5PSIuNjAyIiBkPSJNMTYuNDk4IDIxLjk2OHY2LjAyN0wyNCAxNy42MTZ6Ii8+PHBhdGggZD0iTTE2LjQ5OCAyNy45OTV2LTYuMDI4TDkgMTcuNjE2eiIvPjxwYXRoIGZpbGwtb3BhY2l0eT0iLjIiIGQ9Ik0xNi40OTggMjAuNTczbDcuNDk3LTQuMzUzLTcuNDk3LTMuMzQ4eiIvPjxwYXRoIGZpbGwtb3BhY2l0eT0iLjYwMiIgZD0iTTkgMTYuMjJsNy40OTggNC4zNTN2LTcuNzAxeiIvPjwvZz48L2c+PC9zdmc+",tA="data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMzkuNDMgMjk1LjI3Ij48dGl0bGU+dGV0aGVyLXVzZHQtbG9nbzwvdGl0bGU+PHBhdGggZD0iTTYyLjE1LDEuNDVsLTYxLjg5LDEzMGEyLjUyLDIuNTIsMCwwLDAsLjU0LDIuOTRMMTY3Ljk1LDI5NC41NmEyLjU1LDIuNTUsMCwwLDAsMy41MywwTDMzOC42MywxMzQuNGEyLjUyLDIuNTIsMCwwLDAsLjU0LTIuOTRsLTYxLjg5LTEzMEEyLjUsMi41LDAsMCwwLDI3NSwwSDY0LjQ1YTIuNSwyLjUsMCwwLDAtMi4zLDEuNDVoMFoiIHN0eWxlPSJmaWxsOiM1MGFmOTU7ZmlsbC1ydWxlOmV2ZW5vZGQiLz48cGF0aCBkPSJNMTkxLjE5LDE0NC44djBjLTEuMi4wOS03LjQsMC40Ni0yMS4yMywwLjQ2LTExLDAtMTguODEtLjMzLTIxLjU1LTAuNDZ2MGMtNDIuNTEtMS44Ny03NC4yNC05LjI3LTc0LjI0LTE4LjEzczMxLjczLTE2LjI1LDc0LjI0LTE4LjE1djI4LjkxYzIuNzgsMC4yLDEwLjc0LjY3LDIxLjc0LDAuNjcsMTMuMiwwLDE5LjgxLS41NSwyMS0wLjY2di0yOC45YzQyLjQyLDEuODksNzQuMDgsOS4yOSw3NC4wOCwxOC4xM3MtMzEuNjUsMTYuMjQtNzQuMDgsMTguMTJoMFptMC0zOS4yNVY3OS42OGg1OS4yVjQwLjIzSDg5LjIxVjc5LjY4SDE0OC40djI1Ljg2Yy00OC4xMSwyLjIxLTg0LjI5LDExLjc0LTg0LjI5LDIzLjE2czM2LjE4LDIwLjk0LDg0LjI5LDIzLjE2djgyLjloNDIuNzhWMTUxLjgzYzQ4LTIuMjEsODQuMTItMTEuNzMsODQuMTItMjMuMTRzLTM2LjA5LTIwLjkzLTg0LjEyLTIzLjE1aDBabTAsMGgwWiIgc3R5bGU9ImZpbGw6I2ZmZjtmaWxsLXJ1bGU6ZXZlbm9kZCIvPjwvc3ZnPg==",tE="data:image/svg+xml;base64,PHN2ZyBkYXRhLW5hbWU9Ijg2OTc3Njg0LTEyZGItNDg1MC04ZjMwLTIzM2E3YzI2N2QxMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMjAwMCAyMDAwIj4KICA8cGF0aCBkPSJNMTAwMCAyMDAwYzU1NC4xNyAwIDEwMDAtNDQ1LjgzIDEwMDAtMTAwMFMxNTU0LjE3IDAgMTAwMCAwIDAgNDQ1LjgzIDAgMTAwMHM0NDUuODMgMTAwMCAxMDAwIDEwMDB6IiBmaWxsPSIjMjc3NWNhIi8+CiAgPHBhdGggZD0iTTEyNzUgMTE1OC4zM2MwLTE0NS44My04Ny41LTE5NS44My0yNjIuNS0yMTYuNjYtMTI1LTE2LjY3LTE1MC01MC0xNTAtMTA4LjM0czQxLjY3LTk1LjgzIDEyNS05NS44M2M3NSAwIDExNi42NyAyNSAxMzcuNSA4Ny41IDQuMTcgMTIuNSAxNi42NyAyMC44MyAyOS4xNyAyMC44M2g2Ni42NmMxNi42NyAwIDI5LjE3LTEyLjUgMjkuMTctMjkuMTZ2LTQuMTdjLTE2LjY3LTkxLjY3LTkxLjY3LTE2Mi41LTE4Ny41LTE3MC44M3YtMTAwYzAtMTYuNjctMTIuNS0yOS4xNy0zMy4zMy0zMy4zNGgtNjIuNWMtMTYuNjcgMC0yOS4xNyAxMi41LTMzLjM0IDMzLjM0djk1LjgzYy0xMjUgMTYuNjctMjA0LjE2IDEwMC0yMDQuMTYgMjA0LjE3IDAgMTM3LjUgODMuMzMgMTkxLjY2IDI1OC4zMyAyMTIuNSAxMTYuNjcgMjAuODMgMTU0LjE3IDQ1LjgzIDE1NC4xNyAxMTIuNXMtNTguMzQgMTEyLjUtMTM3LjUgMTEyLjVjLTEwOC4zNCAwLTE0NS44NC00NS44NC0xNTguMzQtMTA4LjM0LTQuMTYtMTYuNjYtMTYuNjYtMjUtMjkuMTYtMjVoLTcwLjg0Yy0xNi42NiAwLTI5LjE2IDEyLjUtMjkuMTYgMjkuMTd2NC4xN2MxNi42NiAxMDQuMTYgODMuMzMgMTc5LjE2IDIyMC44MyAyMDB2MTAwYzAgMTYuNjYgMTIuNSAyOS4xNiAzMy4zMyAzMy4zM2g2Mi41YzE2LjY3IDAgMjkuMTctMTIuNSAzMy4zNC0zMy4zM3YtMTAwYzEyNS0yMC44NCAyMDguMzMtMTA4LjM0IDIwOC4zMy0yMjAuODR6IiBmaWxsPSIjZmZmIi8+CiAgPHBhdGggZD0iTTc4Ny41IDE1OTUuODNjLTMyNS0xMTYuNjYtNDkxLjY3LTQ3OS4xNi0zNzAuODMtODAwIDYyLjUtMTc1IDIwMC0zMDguMzMgMzcwLjgzLTM3MC44MyAxNi42Ny04LjMzIDI1LTIwLjgzIDI1LTQxLjY3VjMyNWMwLTE2LjY3LTguMzMtMjkuMTctMjUtMzMuMzMtNC4xNyAwLTEyLjUgMC0xNi42NyA0LjE2LTM5NS44MyAxMjUtNjEyLjUgNTQ1Ljg0LTQ4Ny41IDk0MS42NyA3NSAyMzMuMzMgMjU0LjE3IDQxMi41IDQ4Ny41IDQ4Ny41IDE2LjY3IDguMzMgMzMuMzQgMCAzNy41LTE2LjY3IDQuMTctNC4xNiA0LjE3LTguMzMgNC4xNy0xNi42NnYtNTguMzRjMC0xMi41LTEyLjUtMjkuMTYtMjUtMzcuNXpNMTIyOS4xNyAyOTUuODNjLTE2LjY3LTguMzMtMzMuMzQgMC0zNy41IDE2LjY3LTQuMTcgNC4xNy00LjE3IDguMzMtNC4xNyAxNi42N3Y1OC4zM2MwIDE2LjY3IDEyLjUgMzMuMzMgMjUgNDEuNjcgMzI1IDExNi42NiA0OTEuNjcgNDc5LjE2IDM3MC44MyA4MDAtNjIuNSAxNzUtMjAwIDMwOC4zMy0zNzAuODMgMzcwLjgzLTE2LjY3IDguMzMtMjUgMjAuODMtMjUgNDEuNjdWMTcwMGMwIDE2LjY3IDguMzMgMjkuMTcgMjUgMzMuMzMgNC4xNyAwIDEyLjUgMCAxNi42Ny00LjE2IDM5NS44My0xMjUgNjEyLjUtNTQ1Ljg0IDQ4Ny41LTk0MS42Ny03NS0yMzcuNS0yNTguMzQtNDE2LjY3LTQ4Ny41LTQ5MS42N3oiIGZpbGw9IiNmZmYiLz4KPC9zdmc+Cg==",tI="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDkuMjYgMTA5LjI2Ij48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6IzVhNTU2NDt9LmNscy0ye2ZpbGw6I2YwOTI0Mjt9LmNscy0ze2ZpbGw6IzI4MjEzODt9PC9zdHlsZT48L2RlZnM+PHRpdGxlPn
80dyYXBwZWQtYml0Y29pbi13YnRjPC90aXRsZT48ZyBpZD0iTGF5ZXJfMiIgZGF0YS1uYW1lPSJMYXllciAyIj48ZyBpZD0iTGF5ZXJfMS0yIiBkYXRhLW5hbWU9IkxheWVyIDEiPjxnIGlkPSJQYWdlLTEiPjxnIGlkPSJ3YnRjX2NvbG91ciIgZGF0YS1uYW1lPSJ3YnRjIGNvbG91ciI+PHBhdGggaWQ9IlNoYXBlIiBjbGFzcz0iY2xzLTEiIGQ9Ik04OS4wOSwyMi45M2wtMywzYTQyLjQ3LDQyLjQ3LDAsMCwxLDAsNTcuMzJsMywzYTQ2Ljc2LDQ2Ljc2LDAsMCwwLDAtNjMuMzlaIi8+PHBhdGggaWQ9IlNoYXBlLTIiIGRhdGEtbmFtZT0iU2hhcGUiIGNsYXNzPSJjbHMtMSIgZD0iTTI2LDIzLjE5YTQyLjQ3LDQyLjQ3LDAsMCwxLDU3LjMyLDBsMy0zYTQ2Ljc2LDQ2Ljc2LDAsMCwwLTYzLjM5LDBaIi8+PHBhdGggaWQ9IlNoYXBlLTMiIGRhdGEtbmFtZT0iU2hhcGUiIGNsYXNzPSJjbHMtMSIgZD0iTTIzLjE5LDgzLjI4YTQyLjQ3LDQyLjQ3LDAsMCwxLDAtNTcuMjlsLTMtM2E0Ni43Niw0Ni43NiwwLDAsMCwwLDYzLjM5WiIvPjxwYXRoIGlkPSJTaGFwZS00IiBkYXRhLW5hbWU9IlNoYXBlIiBjbGFzcz0iY2xzLTEiIGQ9Ik04My4yOCw4Ni4wNWE0Mi40Nyw0Mi40NywwLDAsMS01Ny4zMiwwbC0zLDNhNDYuNzYsNDYuNzYsMCwwLDAsNjMuMzksMFoiLz48cGF0aCBpZD0iU2hhcGUtNSIgZGF0YS1uYW1lPSJTaGFwZSIgY2xhc3M9ImNscy0yIiBkPSJNNzMuNTcsNDQuNjJjLS42LTYuMjYtNi04LjM2LTEyLjgzLTlWMjdINTUuNDZ2OC40NmMtMS4zOSwwLTIuODEsMC00LjIyLDBWMjdINDZ2OC42OEgzNS4yOXY1LjY1czMuOS0uMDcsMy44NCwwYTIuNzMsMi43MywwLDAsMSwzLDIuMzJWNjcuNDFhMS44NSwxLjg1LDAsMCwxLS42NCwxLjI5LDEuODMsMS44MywwLDAsMS0xLjM2LjQ2Yy4wNy4wNi0zLjg0LDAtMy44NCwwbC0xLDYuMzFINDUuOXY4LjgyaDUuMjhWNzUuNkg1NS40djguNjVoNS4yOVY3NS41M2M4LjkyLS41NCwxNS4xNC0yLjc0LDE1LjkyLTExLjA5LjYzLTYuNzItMi41My05LjcyLTcuNTgtMTAuOTNDNzIuMSw1Miw3NCw0OS4yLDczLjU3LDQ0LjYyWk02Ni4xNyw2My40YzAsNi41Ni0xMS4yNCw1LjgxLTE0LjgyLDUuODFWNTcuNTdDNTQuOTMsNTcuNTgsNjYuMTcsNTYuNTUsNjYuMTcsNjMuNFpNNjMuNzIsNDdjMCw2LTkuMzgsNS4yNy0xMi4zNiw1LjI3VjQxLjY5QzU0LjM0LDQxLjY5LDYzLjcyLDQwLjc1LDYzLjcyLDQ3WiIvPjxwYXRoIGlkPSJTaGFwZS02IiBkYXRhLW5hbWU9IlNoYXBlIiBjbGFzcz0iY2xzLTMiIGQ9Ik01NC42MiwxMDkuMjZhNTQuNjMsNTQuNjMsMCwxLDEsNTQuNjQtNTQuNjRBNTQuNjMsNTQuNjMsMCwwLDEsNTQuNjIsMTA5LjI2Wm0wLTEwNUE1MC4zNCw1MC4zNCwwLDEsMCwxMDUsNTQuNjIsNTAuMzQsNTAuMzQsMCwwLDAsNTQuNjIsNC4yNloiLz48L2c+PC9nPjwvZz48L2c+PC9zdmc+",tS="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyNCIgaGVpZ2h0PSIxMDI0IiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8Y2lyY2xlIGN4PSI1MTIiIGN5PSI1MTIiIHI9IjUxMiIgZmlsbD0iIzgyNDdFNSIvPgo8cGF0aCBkPSJNNjgxLjQ2OSA0MDIuNDU2QzY2OS4xODkgMzk1LjMxMiA2NTMuMjI0IDM5NS4zMTIgNjM5LjcxNiA0MDIuNDU2TDU0My45MjggNDU3LjIyOEw0NzguODQyIDQ5Mi45NDlMMzgzLjA1NSA1NDcuNzIxQzM3MC43NzQgNTU0Ljg2NSAzNTQuODEgNTU0Ljg2NSAzNDEuMzAxIDU0Ny43MjFMMjY1LjE2MiA1MDQuODU2QzI1Mi44ODIgNDk3LjcxMiAyNDQuMjg2IDQ4NC42MTQgMjQ0LjI4NiA0NzAuMzI1VjM4NS43ODZDMjQ0LjI4NiAzNzEuNDk4IDI1MS42NTQgMzU4LjQgMjY1LjE2MiAzNTEuMjU2TDM0MC4wNzMgMzA5LjU4MUMzNTIuMzUzIDMwMi40MzcgMzY4LjMxOCAzMDIuNDM3IDM4MS44MjcgMzA5LjU4MUw0NTYuNzM3IDM1MS4yNTZDNDY5LjAxOCAzNTguNCA0NzcuNjE0IDM3MS40OTggNDc3LjYxNCAzODUuNzg2VjQ0MC41NThMNTQyLjcgNDAzLjY0NlYzNDguODc0QzU0Mi43IDMzNC41ODYgNTM1LjMzMiAzMjEuNDg4IDUyMS44MjQgMzE0LjM0NEwzODMuMDU1IDIzNS43NThDMzcwLjc3NCAyMjguNjE0IDM1NC44MSAyMjguNjE0IDM0MS4zMDEgMjM1Ljc1OEwyMDAuMDc2IDMxNC4zNDRDMTg2LjU2NyAzMjEuNDg4IDE3OS4xOTkgMzM0LjU4NiAxNzkuMTk5IDM0OC44NzRWNTA3LjIzN0MxNzkuMTk5IDUyMS41MjUgMTg2LjU2NyA1MzQuNjIzIDIwMC4wNzYgNTQxLjc2N0wzNDEuMzAxIDYyMC4zNTNDMzUzLjU4MiA2MjcuNDk4IDM2OS41NDYgNjI3LjQ5OCAzODMuMDU1IDYyMC4zNTNMNDc4Ljg0MiA1NjYuNzcyTDU0My45MjggNTI5Ljg2TDYzOS43MTYgNDc2LjI3OUM2NTEuOTk2IDQ2OS4xMzUgNjY3Ljk2MSA0NjkuMTM1IDY4MS40NjkgNDc2LjI3OUw3NTYuMzggNTE3Ljk1M0M3NjguNjYgNTI1LjA5OCA3NzcuMjU3IDUzOC4xOTUgNzc3LjI1NyA1NTIuNDg0VjYzNy4wMjNDNzc3LjI1NyA2NTEuMzEyIDc2OS44ODggNjY0LjQwOSA3NTYuMzggNjcxLjU1M0w2ODEuNDY5IDcxNC40MTlDNjY5LjE4OSA3MjEuNTYzIDY1My4yMjQgNzIxLjU2MyA2MzkuNzE2IDcxNC40MTlMNTY0LjgwNSA2NzIuNzQ0QzU1Mi41MjUgNjY1LjYgNTQzLjkyOCA2NTIuNTAyIDU0My45MjggNjM4LjIxNFY1ODMuNDQyTDQ3OC44NDIgNjIwLjM1M1Y2NzUuMTI1QzQ3OC44NDIgNjg5LjQxNCA0ODYuMjEgNzAyLjUxMiA0OTkuNzE5IDcwOS42NTZMNjQwLjk0NCA3ODguMjQyQzY1My4yMjQgNzk1LjM4NiA2NjkuMTg5IDc5NS4zODYgNjgyLjY5NyA3ODguMjQyTDgyMy45MjIgNzA5LjY1NkM4MzYuMjAzIDcwMi41MTIgODQ0Ljc5OSA2ODkuNDE0IDg0NC43OTkgNjc1LjEyNVY1MTYuNzYzQzg0NC43OTkgNTAyLjQ3NCA4MzcuNDMxIDQ4OS4zNzcgODIzLjkyMiA0ODIuMjMyTDY4MS40NjkgNDAyLjQ1NloiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=",tk="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiI+PGcgZmlsbD0ibm9uZSI+PGNpcmNsZSBjeD0iMTYiIGN5PSIxNiIg
80cj0iMTYiIGZpbGw9IiNGM0JBMkYiLz48cGF0aCBmaWxsPSIjRkZGIiBkPSJNMTIuMTE2IDE0LjQwNEwxNiAxMC41MmwzLjg4NiAzLjg4NiAyLjI2LTIuMjZMMTYgNmwtNi4xNDQgNi4xNDQgMi4yNiAyLjI2ek02IDE2bDIuMjYtMi4yNkwxMC41MiAxNmwtMi4yNiAyLjI2TDYgMTZ6bTYuMTE2IDEuNTk2TDE2IDIxLjQ4bDMuODg2LTMuODg2IDIuMjYgMi4yNTlMMTYgMjZsLTYuMTQ0LTYuMTQ0LS4wMDMtLjAwMyAyLjI2My0yLjI1N3pNMjEuNDggMTZsMi4yNi0yLjI2TDI2IDE2bC0yLjI2IDIuMjZMMjEuNDggMTZ6bS0zLjE4OC0uMDAyaC4wMDJ2LjAwMkwxNiAxOC4yOTRsLTIuMjkxLTIuMjktLjAwNC0uMDA0LjAwNC0uMDAzLjQwMS0uNDAyLjE5NS0uMTk1TDE2IDEzLjcwNmwyLjI5MyAyLjI5M3oiLz48L2c+PC9zdmc+",tN="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMzYuNDEgMzM3LjQyIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2YwYjkwYjtzdHJva2U6I2YwYjkwYjt9PC9zdHlsZT48L2RlZnM+PHRpdGxlPkFzc2V0IDE8L3RpdGxlPjxnIGlkPSJMYXllcl8yIiBkYXRhLW5hbWU9IkxheWVyIDIiPjxnIGlkPSJMYXllcl8xLTIiIGRhdGEtbmFtZT0iTGF5ZXIgMSI+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMTY4LjIuNzFsNDEuNSw0Mi41TDEwNS4yLDE0Ny43MWwtNDEuNS00MS41WiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTIzMS4yLDYzLjcxbDQxLjUsNDIuNUwxMDUuMiwyNzMuNzFsLTQxLjUtNDEuNVoiLz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik00Mi4yLDEyNi43MWw0MS41LDQyLjUtNDEuNSw0MS41TC43LDE2OS4yMVoiLz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0yOTQuMiwxMjYuNzFsNDEuNSw0Mi41TDE2OC4yLDMzNi43MWwtNDEuNS00MS41WiIvPjwvZz48L2c+PC9zdmc+",tj="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgMzIgMzIiPjxkZWZzPjxzdHlsZT4uY2xzLTF7ZmlsbDojZmZmO2ZpbGwtcnVsZTpldmVub2RkO30uY2xzLTJ7ZmlsbDojMTNiNWVjO30uY2xzLTN7bWFzazp1cmwoI21hc2spO308L3N0eWxlPjxtYXNrIGlkPSJtYXNrIiB4PSIxMCIgeT0iNiIgd2lkdGg9IjkzLjEiIGhlaWdodD0iMjAiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiPjxnIGlkPSJhIj48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0xMCw2aDkzLjFWMjZIMTBaIi8+PC9nPjwvbWFzaz48L2RlZnM+PHRpdGxlPmZhPC90aXRsZT48ZyBpZD0iTGF5ZXJfMiIgZGF0YS1uYW1lPSJMYXllciAyIj48ZyBpZD0iTGF5ZXJfMS0yIiBkYXRhLW5hbWU9IkxheWVyIDEiPjxjaXJjbGUgY2xhc3M9ImNscy0yIiBjeD0iMTYiIGN5PSIxNiIgcj0iMTYiLz48ZyBjbGFzcz0iY2xzLTMiPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTE3LjIsMTIuOWwzLjYtMi4xVjE1Wm0zLjYsOUwxNiwyNC43bC00LjgtMi44VjE3TDE2LDE5LjgsMjAuOCwxN1pNMTEuMiwxMC44bDMuNiwyLjFMMTEuMiwxNVptNS40LDMuMUwyMC4yLDE2bC0zLjYsMi4xWm0tMS4yLDQuMkwxMS44LDE2bDMuNi0yLjFabTQuOC04LjNMMTYsMTIuMiwxMS44LDkuOCwxNiw3LjNaTTEwLDkuNFYyMi41bDYsMy40LDYtMy40VjkuNEwxNiw2WiIvPjwvZz48L2c+PC9nPjwvc3ZnPg==",tD={1:[{address:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",name:"Wrapped Ether",symbol:"WETH",icon:tM},{address:"0xdAC17F958D2ee523a2206206994597C13D831ec7",name:"Tether USD",symbol:"USDT",icon:tA},{address:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",name:"USD Coin",symbol:"USDC",icon:tE},{address:"0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599",name:"Wrapped Bitcoin",symbol:"WBTC",icon:tI},{address:"0x7D1AfA7B718fb893dB30A3aBc0Cfc608AaCfeBB0",name:"Polygon",symbol:"WMATIC",icon:tS}],5:[{address:"0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6",name:"Wrapped Ether",symbol:"WETH",icon:tM},{address:"0x07865c6E87B9F70255377e024ace6630C1Eaa37F",name:"USD Coin",symbol:"USDC",icon:tE}],10:[{address:"0x4200000000000000000000000000000000000006",name:"Wrapped Ether",symbol:"WETH",icon:tM},{address:"0x0b2c639c533813f4aa9d7837caf62653d097ff85",name:"USD Coin",symbol:"USDC",icon:tE}],56:[{address:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",name:"Wrapped Binance Chain Token",symbol:"WBNB",icon:tk},{address:"0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56",name:"Binance USD",symbol:"BUSD",icon:tN}],97:[{address:"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd",name:"Wrapped Binance Chain Testnet Token",symbol:"WBNB",icon:tk},{address:"0xed24fc36d5ee211ea25a80239fb8c4cfd80f12ee",name:"Binance USD",symbol:"BUSD",icon:tN}],137:[{address:"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",name:"USD Coin",symbol:"USDC",icon:tE},{address:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",name:"Wrapped Matic",symbol:"WMATIC",icon:tS},{address:"0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619",name:"Wrapped Ether",symbol:"WETH",icon:tM},{address:"0xc2132D05D31c914a87C6611C10748AEb04B58e8F",name:"Tether USD",symbol:"USDT",icon:tA},{address:"0x1BFD67037B42Cf73acF2047067bd4F2C47D9BfD6",name:"Wrapped BTC",symbol:"WBTC",icon:tI}
80],250:[{address:"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83",name:"Wrapped Fantom",symbol:"WFTM",icon:tj},{name:"Wrapped Ether",address:"0x74b23882a30290451A17c44f4F05243b6b58C76d",symbol:"WETH",icon:tM},{name:"USD Coin",address:"0x04068DA6C83AFCFA0e13ba15A6696662335D5B75",symbol:"USDC",icon:tE},{name:"Wrapped Bitcoin",address:"0x321162Cd933E2Be498Cd2267a90534A804051b11",symbol:"WBTC",icon:tI}],420:[{address:"0x4200000000000000000000000000000000000006",name:"Wrapped Ether",symbol:"WETH",icon:tM}],4002:[{address:"0xf1277d1Ed8AD466beddF92ef448A132661956621",name:"Wrapped Fantom",symbol:"WFTM",icon:tj}],42161:[{address:"0x82af49447d8a07e3bd95bd0d56f35241523fbab1",name:"Wrapped Ether",symbol:"WETH",icon:tM},{address:"0xaf88d065e77c8cC2239327C5EDb3A432268e5831",name:"USD Coin",symbol:"USDC",icon:tE}],43113:[{address:"0xd00ae08403B9bbb9124bB305C09058E32C39A48c",name:"Wrapped AVAX",symbol:"WAVAX",icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUwMyIgaGVpZ2h0PSIxNTA0IiB2aWV3Qm94PSIwIDAgMTUwMyAxNTA0IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cmVjdCB4PSIyODciIHk9IjI1OCIgd2lkdGg9IjkyOCIgaGVpZ2h0PSI4NDQiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTUwMi41IDc1MkMxNTAyLjUgMTE2Ni43NyAxMTY2LjI3IDE1MDMgNzUxLjUgMTUwM0MzMzYuNzM0IDE1MDMgMC41IDExNjYuNzcgMC41IDc1MkMwLjUgMzM3LjIzNCAzMzYuNzM0IDEgNzUxLjUgMUMxMTY2LjI3IDEgMTUwMi41IDMzNy4yMzQgMTUwMi41IDc1MlpNNTM4LjY4OCAxMDUwLjg2SDM5Mi45NEMzNjIuMzE0IDEwNTAuODYgMzQ3LjE4NiAxMDUwLjg2IDMzNy45NjIgMTA0NC45NkMzMjcuOTk5IDEwMzguNSAzMjEuOTExIDEwMjcuOCAzMjEuMTczIDEwMTUuOTlDMzIwLjYxOSAxMDA1LjExIDMyOC4xODQgOTkxLjgyMiAzNDMuMzEyIDk2NS4yNTVMNzAzLjE4MiAzMzAuOTM1QzcxOC40OTUgMzAzLjk5OSA3MjYuMjQzIDI5MC41MzEgNzM2LjAyMSAyODUuNTVDNzQ2LjUzNyAyODAuMiA3NTkuMDgzIDI4MC4yIDc2OS41OTkgMjg1LjU1Qzc3OS4zNzcgMjkwLjUzMSA3ODcuMTI2IDMwMy45OTkgODAyLjQzOCAzMzAuOTM1TDg3Ni40MiA0NjAuMDc5TDg3Ni43OTcgNDYwLjczOEM4OTMuMzM2IDQ4OS42MzUgOTAxLjcyMyA1MDQuMjg5IDkwNS4zODUgNTE5LjY2OUM5MDkuNDQzIDUzNi40NTggOTA5LjQ0MyA1NTQuMTY5IDkwNS4zODUgNTcwLjk1OEM5MDEuNjk1IDU4Ni40NTUgODkzLjM5MyA2MDEuMjE1IDg3Ni42MDQgNjMwLjU0OUw2ODcuNTczIDk2NC43MDJMNjg3LjA4NCA5NjUuNTU4QzY3MC40MzYgOTk0LjY5MyA2NjEuOTk5IDEwMDkuNDYgNjUwLjMwNiAxMDIwLjZDNjM3LjU3NiAxMDMyLjc4IDYyMi4yNjMgMTA0MS42MyA2MDUuNDc0IDEwNDYuNjJDNTkwLjE2MSAxMDUwLjg2IDU3My4wMDQgMTA1MC44NiA1MzguNjg4IDEwNTAuODZaTTkwNi43NSAxMDUwLjg2SDExMTUuNTlDMTE0Ni40IDEwNTAuODYgMTE2MS45IDEwNTAuODYgMTE3MS4xMyAxMDQ0Ljc4QzExODEuMDkgMTAzOC4zMiAxMTg3LjM2IDEwMjcuNDMgMTE4Ny45MiAxMDE1LjYzQzExODguNDUgMTAwNS4xIDExODEuMDUgOTkyLjMzIDExNjYuNTUgOTY3LjMwN0MxMTY2LjA1IDk2Ni40NTUgMTE2NS41NSA5NjUuNTg4IDExNjUuMDQgOTY0LjcwNkwxMDYwLjQzIDc4NS43NUwxMDU5LjI0IDc4My43MzVDMTA0NC41NCA3NTguODc3IDEwMzcuMTIgNzQ2LjMyNCAxMDI3LjU5IDc0MS40NzJDMTAxNy4wOCA3MzYuMTIxIDEwMDQuNzEgNzM2LjEyMSA5OTQuMTk5IDc0MS40NzJDOTg0LjYwNSA3NDYuNDUzIDk3Ni44NTcgNzU5LjU1MiA5NjEuNTQ0IDc4NS45MzRMODU3LjMwNiA5NjQuODkxTDg1Ni45NDkgOTY1LjUwN0M4NDEuNjkgOTkxLjg0NyA4MzQuMDY0IDEwMDUuMDEgODM0LjYxNCAxMDE1LjgxQzgzNS4zNTIgMTAyNy42MiA4NDEuNDQgMTAzOC41IDg1MS40MDIgMTA0NC45NkM4NjAuNDQzIDEwNTAuODYgODc1Ljk0IDEwNTAuODYgOTA2Ljc1IDEwNTAuODZaIiBmaWxsPSIjRTg0MTQyIi8+Cjwvc3ZnPgo="},{address:"0x5425890298aed601595a70AB815c96711a31Bc65",name:"USD Coin",symbol:"USDC",icon:tE}],43114:[{address:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",name:"Wrapped AVAX",symbol:"WAVAX",icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUwMyIgaGVpZ2h0PSIxNTA0IiB2aWV3Qm94PSIwIDAgMTUwMyAxNTA0IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cmVjdCB4PSIyODciIHk9IjI1OCIgd2lkdGg9IjkyOCIgaGVpZ2h0PSI4NDQiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTUwMi41IDc1MkMxNTAyLjUgMTE2Ni43NyAxMTY2LjI3IDE1MDMgNzUxLjUgMTUwM0MzMzYuNzM0IDE1MDMgMC41IDExNjYuNzcgMC41IDc1MkMwLjUgMzM3LjIzNCAzMzYuNzM0IDEgNzUxLjUgMUMxMTY2LjI3IDEgMTUwMi41IDMzNy4yMzQgMTUwMi41IDc1MlpNNTM4LjY4OCAxMDUwLjg2SDM5Mi45NEMzNjIuMzE0IDEwNTAuODYgMzQ3LjE4NiAxMDUwLjg2IDMzNy45NjIgMTA0NC45NkMzMjcuOTk5IDEwMzguNSAzMjEuOTExIDEwMjcuOCAzMjEuMTczIDEwMTUuOTlDMzIwLjYxOSAxMDA1LjExIDMyOC4xODQgOTkxLjgyMiAzNDMuMzEyIDk2NS4yNTVMNzAzLjE4MiAzMzAuOTM1QzcxOC40OTUgMzAzLjk5OSA3MjYuMjQzIDI5MC41MzEgNzM2LjAyMSAyODUuNTVDNzQ2LjUzNyAyODAuMiA3NTkuMDgzIDI4MC4yIDc2OS41OTkgMjg1LjU1Qzc3OS4zNzcgMjkwLjUzMSA3ODcuMTI2IDMwMy45OTkgODAyLjQzOCAzMzAuOTM1TDg3Ni40MiA0NjAuMDc5TDg3Ni43OTcgNDYwLjczOEM4OTMuMzM2IDQ4OS42MzUgOTAxLjcyMyA1MDQuMjg5IDkwNS4zODUgNTE5LjY2OUM5MDkuNDQzIDUzNi40NTggOTA5LjQ0MyA1NTQuMTY5IDkwNS4zODUgNTcwLjk1OEM5MDEuNjk1IDU4Ni40NTUgODkzLjM5MyA2MDEuMjE1IDg3Ni42MDQgNjMwLjU0OUw2ODcuNTczIDk2NC43MDJMNjg3LjA4NCA5NjUuNTU4QzY3MC40MzYgOTk0LjY5MyA2NjEuOTk5IDEwMDkuNDYgNjUwLjMwNiAxMDIwLjZDNjM3LjU3NiAxMDMyLjc4IDYyMi4yNjMgMTA0MS42MyA2MDUuNDc0IDEwNDYuNjJDNTkwLjE2MSAxMDUwLjg2IDU3My4wMDQgMTA1MC44NiA1
80MzguNjg4IDEwNTAuODZaTTkwNi43NSAxMDUwLjg2SDExMTUuNTlDMTE0Ni40IDEwNTAuODYgMTE2MS45IDEwNTAuODYgMTE3MS4xMyAxMDQ0Ljc4QzExODEuMDkgMTAzOC4zMiAxMTg3LjM2IDEwMjcuNDMgMTE4Ny45MiAxMDE1LjYzQzExODguNDUgMTAwNS4xIDExODEuMDUgOTkyLjMzIDExNjYuNTUgOTY3LjMwN0MxMTY2LjA1IDk2Ni40NTUgMTE2NS41NSA5NjUuNTg4IDExNjUuMDQgOTY0LjcwNkwxMDYwLjQzIDc4NS43NUwxMDU5LjI0IDc4My43MzVDMTA0NC41NCA3NTguODc3IDEwMzcuMTIgNzQ2LjMyNCAxMDI3LjU5IDc0MS40NzJDMTAxNy4wOCA3MzYuMTIxIDEwMDQuNzEgNzM2LjEyMSA5OTQuMTk5IDc0MS40NzJDOTg0LjYwNSA3NDYuNDUzIDk3Ni44NTcgNzU5LjU1MiA5NjEuNTQ0IDc4NS45MzRMODU3LjMwNiA5NjQuODkxTDg1Ni45NDkgOTY1LjUwN0M4NDEuNjkgOTkxLjg0NyA4MzQuMDY0IDEwMDUuMDEgODM0LjYxNCAxMDE1LjgxQzgzNS4zNTIgMTAyNy42MiA4NDEuNDQgMTAzOC41IDg1MS40MDIgMTA0NC45NkM4NjAuNDQzIDEwNTAuODYgODc1Ljk0IDEwNTAuODYgOTA2Ljc1IDEwNTAuODZaIiBmaWxsPSIjRTg0MTQyIi8+Cjwvc3ZnPgo="},{address:"0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB",name:"Wrapped Ether",symbol:"WETH",icon:tM},{address:"0x9702230a8ea53601f5cd2dc00fdbc13d4df4a8c7",name:"Tether USD",symbol:"USDT",icon:tA},{address:"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",name:"USD Coin",symbol:"USDC",icon:tE},{address:"0x50b7545627a5162F82A992c33b87aDc75187B218",name:"Wrapped BTC",symbol:"WBTC",icon:tI}],80001:[{address:"0x9c3C9283D3e44854697Cd22D3Faa240Cfb032889",name:"Wrapped Matic",symbol:"WMATIC",icon:tS},{name:"Wrapped Ether",address:"0xa6fa4fb5f76172d178d61b04b0ecd319c5d1c0aa",symbol:"WETH",icon:tM},{address:"0x0FA8781a83E46826621b3BC094Ea2A0212e71B23",name:"USD Coin",symbol:"USDC",icon:tE},{name:"Tether USD",address:"0x3813e82e6f7098b9583FC0F33a962D02018B6803",symbol
80:"USDT",icon:tA}],421613:[{address:"0xe39Ab88f8A4777030A534146A9Ca3B52bd5D43A3",name:"Wrapped Ether",symbol:"WETH",icon:tM},{address:"0xfd064A18f3BF249cf1f87FC203E90D8f650f2d63",name:"USD Coin",symbol:"USDC",icon:tE}],8453:[{address:"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",name:"USD Coin",symbol:"USDC",icon:tE}]};function t_(e,n){let{height:r,width:i}="facebook"===e?{width:715,height:555}:{width:350,height:500},a=(window.innerHeight-r)/2,o=(window.innerWidth-i)/2,s=window.open("",void 0,`width=${i}, height=${r}, top=${a}, left=${o}`);if(s){let r="google"===e?"Sign In - Google Accounts":`Sign In - ${e.slice(0,1).toUpperCase()}${e.slice(1)}`;s.document.title=r,s.document.body.innerHTML=tO,s.document.body.style.background=n?.colors.modalBg||"black",s.document.body.style.color=n?.colors.accentText||"white"}return s&&window.addEventListener("beforeunload",()=>{s?.close()}),s}let tO=` 81<svg class="loader" viewBox="0 0 50 50"> 82 <circle 83 cx="25" 84 cy="25" 85 r="20" 86 fill="none" 87 stroke="currentColor" 88 stroke-width="4" 89 /> 90</svg> 91 92<style> 93 body, 94 html { 95 height: 100%; 96 margin: 0; 97 padding: 0; 98 } 99 100 body { 101 display: flex; 102 justify-content: center; 103 align-items: center; 104 } 105 106 .loader { 107 width: 50px; 108 height: 50px; 109 animation: spin 2s linear infinite; 110 } 111 112 .loader circle { 113 animation: loading 1.5s linear infinite; 114 } 115 116 @keyframes loading { 117 0% { 118 stroke-dasharray: 1, 150; 119 stroke-dashoffset: 0; 120 } 121 50% { 122 stroke-dasharray: 90, 150; 123 stroke-dashoffset: -35; 124 } 125 100% { 126 stroke-dasharray: 90, 150; 127 stroke-dashoffset: -124; 128 } 129 } 130 131 @keyframes spin { 132 100% { 133 transform: rotate(360deg); 134 } 135 } 136</style> 137`,tP=(0,o.b)(()=>{let e=(0,o.u)();return{all:"unset",color:e.colors.accentText,fontSize:o.f.sm,cursor:"pointer",textAlign:"center",fontWeight:500,width:"100%","&:hover":{color:e.colors.primaryText}}}),tL={google:C.g,apple:C.a,facebook:C.f},tR=e=>{let n=(0,s.u)(),r=n.wallets.embeddedWallet,{createWalletInstance:i,setConnectionStatus:a,setConnectedWallet:f}=e,c=(0,o.u)(),d={google:r.signInWithGoogle,facebook:r.signInWithFacebook,apple:r.signInWithApple},p=e.authOptions.indexOf("email"),h=-1!==p,y=e.authOptions.indexOf("phone"),m=-1!==y,[g,b]=(0,l.useState)(h&&m?p<y?"email":"phone":h?"email":m?"phone":"none"),v="email"===g?r.emailPlaceholder:r.phonePlaceholder,w="email"===g?r.emailRequired:r.phoneRequired,x="text";"email"===g?x="email":"phone"===g&&(x="tel");let T="email"===g?r.signInWithPhone:r.signInWithEmail,M=(0,l.useCallback)(()=>{b(e=>"email"===e?"phone":"email")},[]),A=h&&m,E=e.authOptions.filter(e=>"email"!==e&&"phone"!==e),I=E.length>0,S=async e=>{try{let n=i();a("connecting");let r=t_(e,c);if(!r)throw Error("Failed to open login window");let o=await n.authenticate({strategy:e,openedWindow:r,closeOpenedWindow:e=>{e.close()}});await n.connect({authResult:o}),f(n)}catch(n){a("disconnected"),console.error(`Error sign in with ${e}`,n)}},k=E.length>1;return(0,u.jsxs)(o.C,{flex:"column",gap:"lg",style:{position:"relative"},children:[I&&(0,u.jsx)(o.C,{flex:k?"row":"column",center:"x",gap:"sm",style:{justifyContent:"space-between"},children:E.map(n=>{let r=k?o.i.lg:o.i.md;return(0,u.jsxs)(tB,{"aria-label":`Login with ${n}`,"data-variant":k?"icon":"full",variant:k?"outline":"secondary",fullWidth:!k,onClick:()=>{S(n),e.onSelect(n)},children:[(0,u.jsx)(o.I,{src:tL[n],width:r,height:r}),!k&&d[n]]},n)})}),"wide"===e.modalSize&&I&&h&&(0,u.jsx)(s.f,{text:n.connectWallet.or}),"none"!==g&&(0,u.jsxs)(o.C,{children:["email"===g?(0,u.jsx)(C.I,{type:x,onSelect:n=>{e.onSelect({email:n})},placeholder:v,name:"email",errorMessage:e=>{if(!(0,C.v)(e.toLowerCase()))return r.invalidEmail},emptyErrorMessage:w,submitButtonText:r.submitEmail}):(0,u.jsx)(C.I,{format:"phone",type:x,onSelect:n=>{e.onSelect({phone:n.replace(/[-\(\) ]/g,"")})},placeholder:v,name:"phone",errorMessage:e=>{let n=e.replace(/[-\(\) ]/g,"");if(!/^[0-9]+$/.test(n)&&m)return r.invalidPhone},emptyErrorMessage:w,submitButtonText:r.submitEmail}),A&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(s.S,{y:"md"}),(0,u.jsx)(tP,{onClick:M,type:"button",children:T})]})]})]})},tz=e=>{let n=(0,s.u)().wallets.embeddedWallet.otpLoginScreen,r="compact"===e.modalSize,{initialScreen:i,screen:a}=(0,s.g)(),f=(0,l.useContext)(s.M);return(0,u.jsxs)(o.C,{fullHeight:!0,flex:"column",p:"lg",animate:"fadein",style:{minHeight:"250px"},children:[(0,u.jsx)(o.M,{onBack:a===e.walletConfig&&i===e.walletConfig?void 0:e.onBack,title:n.title}),r?(0,u.jsx)(s.S,{y:"xl"}):null,(0,u.jsx)(o.C,{expand:!0,flex:"column",center:"y",p:r?void 0:"lg",children:(0,u.jsx)(tR,{modalSize:e.modalSize,authOptions:e.authOptions,walletConfig:e.walletConfig,onSelect:e.onSelect,createWalletInstance:e.createWalletInstance,setConnectionStatus:e.setConnectionStatus,setConnectedWallet:e.setConnectedWallet})}),r&&(!1!==f.showThirdwebBranding||f.termsOfServiceUrl||f.privacyPolicyUrl)&&(0,u.jsx)(s.S,{y:"xl"}),(0,u.jsxs)(o.C,{flex:"column",gap:"lg",children:[(0,u.jsx)(M.T,{termsOfServiceUrl:f.termsOfServiceUrl,privacyPolicyUrl:f.privacyPolicyUrl}),!1!==f.showThirdwebBranding&&(0,u.jsx)(M.P,{})]})]})},tB=(0,h.Z)(o.B)({"&[data-variant='full']":{display:"flex",justifyContent:"center",gap:o.s.md,fontSize:o.f.md,transition:"background-color 0.2s ease","&:active":{boxShadow:"none"}},"&[data-variant='icon']":{padding:o.s.sm,flexGrow:1}}),tU=e=>{let n=(0,s.u)().wallets.embeddedWallet,r=n.socialLoginScreen,{goBack:i,modalSize:a,createWalletInstance:f,setConnectionStatus:c,setConnectedWallet:d,connectionStatus:p}=e,h=(0,o.u)(),[y,m]=(0,l.useState)(void 0),g=async()=>
137{try{let n=f();c("connecting");let r=t_(e.strategy,h);if(!r)throw Error(`Failed to open ${e.strategy} login window`);let i=await n.authenticate({strategy:e.strategy,openedWindow:r,closeOpenedWindow:e=>{e.close()}});await n.connect({authResult:i}),d(n),e.connected()}catch(r){r?.message?.includes("PAYMENT_METHOD_REQUIRED")&&m(n.maxAccountsExceeded),c("disconnected"),console.error(`Error sign in with ${e.strategy}`,r)}},b=e.connected,v=(0,l.useRef)(!1);return(0,l.useEffect)(()=>{v.current||"connected"!==p||(b(),v.current=!0)},[p,b]),(0,u.jsx)(o.C,{animate:"fadein",flex:"column",fullHeight:!0,children:(0,u.jsxs)(o.C,{flex:"column",expand:!0,p:"lg",style:{paddingBottom:0},children:[(0,u.jsx)(o.M,{title:r.title,onBack:i}),"compact"===a?(0,u.jsx)(s.S,{y:"xl"}):null,(0,u.jsxs)(o.C,{flex:"column",center:"both",expand:!0,style:{textAlign:"center",minHeight:"250px"},children:["connecting"===p&&(0,u.jsxs)(o.C,{animate:"fadein",children:[(0,u.jsx)(s.T,{color:"primaryText",center:!0,multiline:!0,style:{maxWidth:"250px"},children:r.instruction}),(0,u.jsx)(s.S,{y:"xl"}),(0,u.jsx)(o.C,{center:"x",flex:"row",children:(0,u.jsx)(s.a,{size:"lg",color:"accentText"})}),(0,u.jsx)(s.S,{y:"xxl"})]}),"disconnected"===p&&(0,u.jsxs)(o.C,{animate:"fadein",children:[(0,u.jsx)(s.T,{color:"danger",children:r.failed}),y&&(0,u.jsx)(s.T,{color:"danger",children:y}),(0,u.jsx)(s.S,{y:"lg"}),(0,u.jsx)(o.B,{variant:"primary",onClick:g,children:r.retry}),(0,u.jsx)(s.S,{y:"xxl"})]})]})]})})},tF=(0,o.S)({animation:`${o.c} 0.15s ease-in`});function tZ(e){let n=(0,s.u)().wallets.embeddedWallet.createPassword,[r,i]=(0,l.useState)(!1),[f,c]=(0,l.useState)(!1),[d,p]=(0,l.useState)(""),[h,y]=(0,l.useState)(!1),[m,g]=(0,l.useState)(!1);return(0,u.jsxs)(o.C,{fullHeight:!0,flex:"column",animate:"fadein",children:[(0,u.jsx)(o.C,{p:"lg",children:(0,u.jsx)(o.M,{title:n.title,onBack:e.goBack})}),(0,u.jsx)(o.L,{}),(0,u.jsxs)(o.C,{expand:!0,px:"wide"===e.modalSize?"xxl":"lg",flex:"column",center:"y",style:{paddingTop:0},children:["compact"===e.modalSize&&(0,u.jsx)(s.S,{y:"xxl"}),(0,u.jsx)(o.C,{flex:"row",center:"x",color:"accentText",children:(0,u.jsx)(tG,{children:(0,u.jsx)(a.Jot,{width:o.i.xxl,height:o.i.xxl})})}),(0,u.jsx)(s.S,{y:"xl"}),(0,u.jsxs)("form",{onSubmit:async n=>{if(n.preventDefault(),i(!1),y(!1),d){try{i(!0),await e.onPassword(d)}catch(e){y(!0),console.error(e)}i(!1)}},children:[(0,u.jsx)(s.T,{center:!0,multiline:!0,children:n.instruction}),(0,u.jsx)(s.S,{y:"xs"}),(0,u.jsx)(s.T,{center:!0,color:"primaryText",children:n.saveInstruction}),(0,u.jsx)(s.S,{y:"xl"}),(0,u.jsxs)(s.I,{children:[(0,u.jsx)(s.h,{variant:"transparent",required:!0,name:"new-password",autoComplete:"new-password",id:"new-password",onChange:e=>p(e.target.value),value:d,type:f?"text":"password",placeholder:n.inputPlaceholder}),(0,u.jsx)(o.e,{type:"button",onClick:()=>c(!f),children:f?(0,u.jsx)(a.LAO,{}):(0,u.jsx)(a.hsE,{})})]}),(0,u.jsx)(s.S,{y:"lg"}),(0,u.jsxs)(o.C,{flex:"row",gap:"sm",center:"y",children:[(0,u.jsx)(tW,{"aria-checked":m,type:"button",id:"save-checkbox",onClick:()=>{g(!m)},children:(0,u.jsx)(a.nQG,{width:20,height:20,style:{opacity:m?1:0,transform:m?"scale(1)":"scale(0)",transition:"opacity 200ms ease, transform 200ms ease"}})}),(0,u.jsx)("label",{htmlFor:"save-checkbox",style:{cursor:"pointer",userSelect:"none"},children:(0,u.jsx)(s.T,{size:"sm",color:"primaryText",children:n.confirmation})})]}),(0,u.jsx)(s.S,{y:"md"}),(0,u.jsx)(o.B,{disabled:r||!m,variant:"accent",fullWidth:!0,style:{minWidth:"100px"},type:"submit",children:r?(0,u.jsx)(s.a,{size:"md",color:"accentButtonText"}):n.submitButton}),h&&(0,u.jsxs)(o.C,{children:[(0,u.jsx)(s.S,{y:"lg"}),(0,u.jsx)(s.T,{size:"sm",color:"danger",center:!0,children:n.failedToSetPassword})]})]})]}),(0,u.jsx)(s.S,{y:"xl"})]})}let tW=(0,h.Z)(o.g)(()=>{let e=(0,o.u)();return{border:`2px solid ${e.colors.accentText}`,color:`${e.colors.accentText} !important`,padding:0,"&[aria-checked='true']":{background:e.colors.accentText,color:`${e.colors.modalBg} !important`}}}),tH=(0,p.F4)` 138from { 139 transform: translateY(-3px); 140} 141to { 142 transform: translateY(3px); 143} 144`,tG=(0,o.S)({animation:`${tH} 1s ease-in-out infinite alternate`});function tq(e){let n=(0,s.u)().wallets.embeddedWallet.enterPassword,[r,i]=(0,l.useState)(!1),[f,c]=(0,l.useState)(!1),[d,p]=(0,l.useState)(""),[h,y]=(0,l.useState)(!1);return(0,u.jsxs)(o.C,{fullHeight:!0,flex:"column",animate:"fadein",children:[(0,u.jsx)(o.C,{p:"lg",children:(0,u.jsx)(o.M,{title:n.title,onBack:e.goBack})}),(0,u.jsx)(o.L,{}),(0,u.jsx)(s.S,{y:"xxl"}),(0,u.jsx)(o.C,{expand:!0,flex:"column",center:"y",p:"wide"===e.modalSize?"xxl":"lg",style:{paddingTop:0},children:(0,u.jsxs)("form",{onSubmit:async n=>{n.preventDefault(),i(!0),y(!1);try{await e.onVerify(d)}catch(e){y(!0),console.error(e)}i(!1)},children:[(0,u.jsx)(s.T,{center:!0,children:n.instruction}),(0,u.jsx)(s.S,{y:"sm"}),(0,u.jsx)(s.T,{center:!0,color:"primaryText",children:e.emailOrPhone}),(0,u.jsx)(s.S,{y:"xl"}),(0,u.jsxs)(s.I,{"data-error":!!h,children:[(0,u.jsx)(s.h,{variant:"transparent",required:!0,name:"new-password",autoComplete:"new-password",id:"new-password",onChange:e=>{p(e.target.value),y(!1)},value:d,type:f?"text":"password",placeholder:n.inputPlaceholder}),(0,u.jsx)(o.e,{type:"button",onClick:()=>c(!f),children:f?(0,u.jsx)(a.LAO,{}):(0,u.jsx)(a.hsE,{})})]}),h&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(s.S,{y:"sm"}),(0,u.jsx)(s.T,{color:"danger",size:"sm",children:n.wrongPassword})]}),(0,u.jsx)(s.S,{y:"md"}),(0,u.jsx)(o.B,{fullWidth:!0,variant:"accent",type:"submit",disabled:r,children:r?(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(s.a,{size:"md",color:"accentButtonText"})}):(0,u.jsx)(u.Fragment,{children:n.submitButton})})]})}),(0,u.jsx)(s.S,{y:"sm"})]})}let tY=e=>{let{userInfo:n}=e,r="wide"===e.modalSize,i=(0,s.u)().wallets.embeddedWallet,[a,f]=(0,l.useState)(""),{createWalletInstance:c,setConnectedWallet:d,setConnectionStatus:p}=e,[h,y]=(0,l.useState)(null),[m,g]=(0,l.useState)("idle"),[b,v]=(0,l.useState)("sending"),[w,x]=(0,l.useState)("base"),T=(0,l.useCallback)(async()=>{f(""),g("idle"),v("sending");try{let e=c();if(y(e),"email"in n){let r=await e.sendVerificationEmail({email:n.email});v(r)}else{let r=await e.sendVerificationSms({phoneNumber:n.phone});v(r)}}catch(e){console.error(e),g("idle"),v("error")}},[c,n]),C=async r=>{if("object"==typeof b&&6===r.length&&(g("idle"),"object"==typeof b&&h))try{if
144(g("verifying"),p("connecting"),"USER_MANAGED"===b.recoveryShareManagement&&(b.isNewUser||b.isNewDevice)){if(b.isNewUser)try{"email"in n?await h.authenticate({strategy:"email_verification",email:n.email,verificationCode:r}):await h.authenticate({strategy:"phone_number_verification",phoneNumber:n.phone,verificationCode:r})}catch(e){if(e instanceof Error&&e.message.includes("encryption key"))x("create-password");else throw e}else try{"email"in n?await h.authenticate({strategy:"email_verification",email:n.email,verificationCode:r}):await h.authenticate({strategy:"phone_number_verification",phoneNumber:n.phone,verificationCode:r})}catch(e){if(e instanceof Error&&e.message.includes("encryption key"))x("enter-password-or-recovery-code");else throw e}}else{let i;if(!(i="email"in n?await h.authenticate({strategy:"email_verification",email:n.email,verificationCode:r}):await h.authenticate({strategy:"phone_number_verification",phoneNumber:n.phone,verificationCode:r})))throw Error("Failed to verify OTP");await h.connect({authResult:i}),d(h),e.connected()}g("valid")}catch(e){e?.message?.includes("PAYMENT_METHOD_REQUIRED")?g("payment_required"):g("invalid"),console.error("Authentication Error",e)}},M=(0,l.useRef)(!1);return((0,l.useEffect)(()=>{M.current||(M.current=!0,T())},[T]),"create-password"===w)?(0,u.jsx)(tZ,{modalSize:e.modalSize,goBack:e.goBack,onPassword:async r=>{let i;if(h&&"object"==typeof b){if(!(i="email"in n?await h.authenticate({strategy:"email_verification",email:n.email,verificationCode:a,recoveryCode:r}):await h.authenticate({strategy:"phone_number_verification",phoneNumber:n.phone,verificationCode:a,recoveryCode:r})))throw Error("Failed to verify recovery code");await h.connect({authResult:i}),d(h),e.connected()}}}):"enter-password-or-recovery-code"===w?(0,u.jsx)(tq,{modalSize:e.modalSize,goBack:e.goBack,emailOrPhone:"email"in n?n.email:n.phone,onVerify:async r=>{let i;if(h&&"object"==typeof b){if(!(i="email"in n?await h.authenticate({strategy:"email_verification",email:n.email,verificationCode:a,recoveryCode:r}):await h.authenticate({strategy:"phone_number_verification",phoneNumber:n.phone,verificationCode:a,recoveryCode:r})))throw Error("Failed to verify recovery code");await h.connect({authResult:i}),d(h),e.connected()}}}):"base"===w?(0,u.jsxs)(o.C,{fullHeight:!0,flex:"column",animate:"fadein",children:[(0,u.jsx)(o.C,{p:"lg",children:(0,u.jsx)(o.M,{title:i.signIn,onBack:e.goBack})}),(0,u.jsx)(o.C,{expand:!0,flex:"column",center:"y",children:(0,u.jsxs)("form",{onSubmit:e=>{e.preventDefault()},children:[(0,u.jsxs)(o.C,{flex:"column",center:"x",px:"lg",children:[!r&&(0,u.jsx)(s.S,{y:"xl"}),(0,u.jsx)(s.T,{children:i.otpLoginScreen.enterCodeSendTo}),(0,u.jsx)(s.S,{y:"sm"}),(0,u.jsx)(s.T,{color:"primaryText",children:"email"in n?n.email:n.phone}),(0,u.jsx)(s.S,{y:"xl"})]}),(0,u.jsx)(A.u,{isInvalid:"invalid"===m,digits:6,value:a,setValue:e=>{f(e),g("idle")},onEnter:()=>{C(a)}}),"invalid"===m&&(0,u.jsxs)(tF,{children:[(0,u.jsx)(s.S,{y:"md"}),(0,u.jsx)(s.T,{size:"sm",color:"danger",center:!0,children:i.otpLoginScreen.invalidCode})]}),"payment_required"===m&&(0,u.jsxs)(tF,{children:[(0,u.jsx)(s.S,{y:"md"}),(0,u.jsx)(s.T,{size:"sm",color:"danger",center:!0,children:i.maxAccountsExceeded})]}),(0,u.jsx)(s.S,{y:"xl"}),(0,u.jsx)(o.C,{px:r?"xxl":"lg",children:"verifying"===m?(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(o.C,{flex:"row",center:"x",animate:"fadein",children:(0,u.jsx)(s.a,{size:"lg",color:"accentText"})})}):(0,u.jsx)(o.C,{animate:"fadein",children:(0,u.jsx)(o.B,{onClick:()=>C(a),variant:"accent",type:"submit",style:{width:"100%"},children:i.otpLoginScreen.verify})},"btn-container")}),(0,u.jsx)(s.S,{y:"xl"}),!r&&(0,u.jsx)(o.L,{}),(0,u.jsxs)(o.C,{p:r?void 0:"lg",children:["error"===b&&(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(s.T,{size:"sm",center:!0,color:"danger",children:i.otpLoginScreen.failedToSendCode})}),"sending"===b&&(0,u.jsxs)(o.C,{flex:"row",center:"both",gap:"xs",style:{textAlign:"center"},children:[(0,u.jsx)(s.T,{size:"sm",children:i.otpLoginScreen.sendingCode}),(0,u.jsx)(s.a,{size:"xs",color:"secondaryText"})]}),"object"==typeof b&&(0,u.jsx)(tP,{onClick:T,type:"button",children:i.otpLoginScreen.resendCode})]})]})})]}):null},tV=["email","phone","google","apple","facebook"],tQ=e=>{let n=e?.auth?.options??tV,r=-1!==n.indexOf("email"),i=-1!==n.indexOf("phone"),a=n.some(e=>
144"email"!==e&&"phone"!==e);return{category:"socialLogin",isHeadless:!0,id:m.c.id,recommended:e?.recommended,meta:{...m.c.meta,name:!r||i||a?!i||r||a?i&&r&&!a?"Email & Phone":i&&a&&!r?"Phone & Socials":r&&a&&!i?"Email & Socials":"Social Login":"Phone":"Email",iconURL:C.e},create:n=>new m.c({...n,...e,clientId:n?.clientId??""}),selectUI:e=>(0,u.jsx)(tK,{...e,authOptions:n}),connectUI:e=>(0,u.jsx)(t$,{...e,authOptions:n})}},tK=e=>{let{screen:n}=(0,s.g)();return"wide"===e.modalSize||n!==s.r.main&&"compact"===e.modalSize?(0,u.jsx)(M.W,{walletConfig:e.walletConfig,selectWallet:()=>{e.onSelect(void 0)}}):(0,u.jsx)("div",{children:(0,u.jsx)(tR,{onSelect:e.onSelect,walletConfig:e.walletConfig,authOptions:e.authOptions,createWalletInstance:e.createWalletInstance,setConnectedWallet:e.setConnectedWallet,setConnectionStatus:e.setConnectionStatus,modalSize:e.modalSize})})},t$=e=>{let[n,r]=(0,l.useState)(e.selectionData);if(n){let i=()=>{"wide"===e.modalSize?r(void 0):e.goBack()};return"string"!=typeof n?(0,u.jsx)(tY,{...e,userInfo:n,goBack:i}):(0,u.jsx)(tU,{...e,goBack:i,strategy:n})}return(0,u.jsx)(tz,{modalSize:e.modalSize,onSelect:r,walletConfig:e.walletConfig,onBack:e.goBack,authOptions:e.authOptions,createWalletInstance:e.createWalletInstance,setConnectedWallet:e.setConnectedWallet,setConnectionStatus:e.setConnectionStatus})},tJ=e=>{let n=(0,s.u)().wallets.localWallet,[r,i]=(0,l.useState)(""),[c,d]=(0,l.useState)(!1),[p,h]=(0,l.useState)(!1),[y,m]=(0,l.useState)(!1),b=e.walletInstance,[v,w]=(0,l.useState)(""),x=(0,f.xUo)(),T=e.walletAddress,C=(0,l.useRef)(!1);(0,l.useEffect)(()=>{C.current||(C.current=!0,(async()=>{if(b&&b instanceof g.S){T&&w(T);let e=await b.getSavedData();e?.address!==T&&m(!0)}else{let n=x(e.localWalletConfig),r=await n.getSavedData();r&&w(r.address)}})())},[b,e.localWalletConfig,x,r,T]);let A=async()=>{if(b&&b instanceof g.S){let n=await b.getSavedData();if(n&&n.address===T)tX(n.data),e.onExport();else try{let n=await b.export({password:r,strategy:"encryptedJson"});tX(n),e.onExport()}catch(e){console.error(e),h(!0)}}else{let n=x(e.localWalletConfig);tX((await n.getSavedData()).data),e.onExport()}};return v?(0,u.jsx)(o.C,{fullHeight:!0,animate:"fadein",children:(0,u.jsxs)("form",{style:{height:"100%",display:"flex",flexDirection:"column"},onSubmit:e=>{e.preventDefault(),A()},children:[(0,u.jsx)(o.C,{p:"lg",children:(0,u.jsx)(o.M,{onBack:e.onBack,title:n.exportScreen.title})}),(0,u.jsx)(o.L,{}),(0,u.jsxs)(o.C,{expand:!0,p:"lg",children:[(0,u.jsx)(o.a,{children:n.exportScreen.description1}),(0,u.jsx)(s.S,{y:"sm"}),(0,u.jsx)(o.a,{children:n.exportScreen.description2}),(0,u.jsx)(s.S,{y:"xl"}),(0,u.jsx)(s.L,{children:n.exportScreen.walletAddress}),(0,u.jsx)(s.S,{y:"sm"}
144),(0,u.jsx)(t0,{children:(0,f.XnK)(v)}),y&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(s.S,{y:"lg"}),(0,u.jsx)("input",{type:"text",name:"username",autoComplete:"off",value:T,disabled:!0,style:{display:"none"}}),(0,u.jsx)(M.F,{noSave:!0,required:!0,name:"current-password",autocomplete:"current-password",id:"current-password",onChange:e=>{i(e),h(!1)},right:{onClick:()=>d(!c),icon:c?(0,u.jsx)(a.LAO,{}):(0,u.jsx)(a.hsE,{})},label:n.passwordLabel,type:c?"text":"password",value:r,error:p?"Wrong Password":"",dataTest:"current-password"}),(0,u.jsx)(s.S,{y:"md"})]})]}),(0,u.jsx)(o.h,{style:{borderTop:"wide"===e.modalSize?"none":void 0},children:(0,u.jsxs)(o.B,{disabled:p,variant:"accent",fullWidth:!0,style:{opacity:p?.5:1,display:"flex",gap:o.s.sm},type:"submit",children:[(0,u.jsx)(a.RgI,{width:o.i.sm,height:o.i.sm}),n.exportScreen.download]})})]})}):(0,u.jsx)(o.C,{animate:"fadein",flex:"row",center:"both",style:{height:"300px"},children:(0,u.jsx)(s.a,{size:"md",color:"accentText"})})};function tX(e){let n=new Blob([JSON.stringify(JSON.parse(e),null,2)],{type:"application/json"}),r=URL.createObjectURL(n),i=document.createElement("a");i.href=r,i.download="wallet.json",document.body.appendChild(i),i.style.display="none",i.click(),URL.revokeObjectURL(i.href)}let t0=(0,o.j)(()=>{let e=(0,o.u)();return{fontSize:o.f.md,color:e.colors.secondaryText,margin:0}}),t1="data:image/svg+xml;charset=UTF-8,%3csvg width='15' height='14' viewBox='0 0 15 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M7 8.04238e-07C5.1435 8.04238e-07 3.36301 0.737501 2.05025 2.05025C0.7375 3.36301 0 5.1435 0 7C0 7.225 -1.52737e-07 7.445 0.0349998 7.665C0.16385 9.0151 0.68213 10.2988 1.52686 11.3598C2.37158 12.4209 3.50637 13.2137 4.79326 13.642C6.0801 14.0702 7.4637 14.1153 8.7758 13.7719C10.0879 13.4285 11.2719 12.7113 12.184 11.7075C13.0961 10.7038 13.6969 9.4567 13.9135 8.1178C14.1301 6.7789 13.9531 5.406 13.4039 4.16587C12.8548 2.92574 11.9573 1.87184 10.8204 1.13228C9.6835 0.392721 8.3563 -0.000649196 7 8.04238e-07ZM7 1C8.581 1.00137 10.0975 1.62668 11.22 2.74V3.24C9.2438 2.55991 7.0956 2.56872 5.125 3.265C4.96758 3.1116 4.76997 3.00586 4.555 2.96H4.43C4.37 2.75 4.315 2.54 4.27 2.325C4.225 2.11 4.2 1.92 4.175 1.715C5.043 1.24658 6.0137 1.00091 7 1ZM5.5 3.935C7.3158 3.32693 9.2838 3.34984 11.085 4C10.8414 5.2703 10.3094 6.4677 9.53 7.5C9.312 7.4077 9.0707 7.3855 8.8395 7.4366C8.6083 7.4877 8.3988 7.6094 8.24 7.785C8.065 7.685 7.89 7.585 7.74 7.47C6.7307 6.7966 5.8877 5.9023 5.275 4.855C5.374 4.73221 5.4461 4.58996 5.4866 4.43749C5.5271 4.28502 5.5351 4.12575 5.51 3.97L5.5 3.935ZM3.5 2.135C3.5 2.24 3.53 2.35 3.55 2.455C3.595 2.675 3.655 2.89 3.715 3.105C3.52353 3.21838 3.36943 3.38531 3.2717 3.58522C3.17397 3.78513 3.13688 4.00927 3.165 4.23C2.37575 4.7454 1.67078 5.3795 1.075 6.11C1.19455 5.3189 1.47112 4.55966 1.88843 3.87701C2.30575 3.19437 2.85539 2.60208 3.505 2.135H3.5ZM3.5 9.99C3.30481 10.0555 3.13037 10.1714 2.9943 10.3259C2.85822 10.4804 2.76533 10.6681 2.725 10.87H2.405C1.59754 9.9069 1.1146 8.7136 1.025 7.46L1.08 7.365C1.70611 6.3942 2.52463 5.562 3.485 4.92C3.62899 5.0704 3.81094 5.179 4.01162 5.2345C4.2123 5.2899 4.42423 5.2901 4.625 5.235C5.2938 6.3652 6.208 7.3306 7.3 8.06C7.505 8.195 7.715 8.32 7.925 8.44C7.9082 8.6312 7.9391 8.8237 8.015 9C7.1 9.7266 6.0445 10.256 4.915 10.555C4.78401 10.3103 4.57028 10.1201 4.31199 10.0184C4.05369 9.9167 3.76766 9.9102 3.505 10L3.5 9.99ZM7 12.99C5.9831 12.9903 4.98307 12.7304 4.095 12.235L4.235 12.205C4.43397 12.1397 4.61176 12.0222 4.74984 11.8648C4.88792 11.7074 4.98122 11.5158 5.02 11.31C6.2985 10.984 7.4921 10.3872 8.52 9.56C8.7642 9.7027 9.0525 9.75 9.3295 9.6927C9.6064 9.6355 9.8524 9.4778 10.02 9.25C10.7254 9.4334 11.4511 9.5275 12.18 9.53H12.445C11.9626 10.5673 11.1938 11.4451 10.2291 12.0599C9.2643 12.6747 8.144 13.0009 7 13V12.99ZM10.255 8.54C10.2545 8.3304 10.1975 8.1249 10.09 7.945C10.9221 6.8581 11.5012 5.5991 11.785 4.26C12.035 4.37667 12.2817 4.50667 12.525 4.65C13.0749 5.9495 13.1493 7.4012 12.735 8.75C11.9049 8.8142 11.0698 8.7484 10.26 8.555L10.255 8.54Z' fill='%23646D7A'/%3e%3c/svg%3e",t6=e=>{let n=(0,f.y$C)();return(0,u.jsxs)("div",{style:{position:"relative",display:"flex",flexShrink:0,alignItems:"center"},children:[(0,u.jsx)(o.I,{src:(()=>{let r=e.chain?.icon?.url;if(!r)return t1;try{return n?n.resolveScheme(r):r.replace("ipfs://","https://ipfs.io/ipfs/")}catch{return t1}})(),width:e.size,height:e.size,fallbackImage:t1}),e.active&&(0,u.jsx)(t5,{})]})},t5=(0,o.S)({width:"28%",height:"28%",borderRadius:"50%",position:"absolute",top:"60%",right:0,backgroundColor:"#00d395",boxShadow:"0 0 0 2px var(--bg)"});function t2(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},[r,i]=(0,l.useState)(!1),{timeout:a=1500,...o}="number"==typeof n?{timeout:n}:n,s=(0,l.useCallback)(()=>{i(T()(e,o))},[e,o]);return(0,l.useEffect)(()=>{let e=null;return r&&(e=window.setTimeout(()=>{i(!1)},a)),()=>{e&&window.clearTimeout(e)}},[a,r]),{value:e,onCopy:s,hasCopied:r}}let t4=e=>{let{hasCopied:n,onCopy:r}=t2(e.text);return(0,u.jsx)("div",{onClick:r,style:{display:"flex",alignItems:"center",justifyContent:"center"},children:(0,u.jsx)(C.T,{tip:e.tip,side:e.side,align:e.align,children:e.hasCopied||n?(0,u.jsx)(t3,{}):(0,u.jsx)(a.TIy,{})})})},t3=(0,h.Z)(a.nQG)(()=>
144({color:(0,o.u)().colors.success})),t8=(0,p.F4)` 145 from { 146 opacity: 0; 147 } 148 to { 149 opacity: 1; 150 } 151`,t9=(0,o.S)(()=>({backgroundColor:(0,o.u)().colors.modalOverlayBg,zIndex:9999,position:"fixed",inset:0,animation:`${t8} 400ms cubic-bezier(0.16, 1, 0.3, 1)`,backdropFilter:"blur(10px)"}));function t7(e){let{height:n,elementRef:r}=function(){let e=(0,l.useRef)(null),[n,r]=(0,l.useState)();return(0,l.useEffect)(()=>{let n=e.current;if(!n)return;let i=new ResizeObserver(()=>{r(n.scrollHeight)});return i.observe(n),()=>{i.disconnect()}},[e]),{height:n,elementRef:e}}();return(0,u.jsx)("div",{style:{height:n?`${n}px`:"auto",transition:"height 210ms cubic-bezier(0.175, 0.885, 0.32, 1.1)",overflow:"hidden",boxSizing:"border-box"},children:(0,u.jsx)("div",{ref:r,style:{maxHeight:e.maxHeight},children:e.children})})}let ne=e=>{let[n,r]=(0,l.useState)(e.open),i=(0,l.useRef)(null),f=(0,l.useRef)(null);return(0,l.useEffect)(()=>{if(e.open)r(e.open);else if(i.current){let e={duration:s.m,fill:"forwards",easing:"ease"};i.current.animate([{opacity:0}],{...e}).onfinish=()=>{r(!1)},f.current?.animate([{opacity:0}],{...e,duration:s.m+100})}else r(e.open)},[e.open]),(0,u.jsxs)(e7,{open:n,onOpenChange:e.setOpen,children:[e.trigger&&(0,u.jsx)(tt,{asChild:!0,children:e.trigger}),(0,u.jsxs)(ta,{children:[!e.hide&&(0,u.jsx)(ts,{asChild:!0,children:(0,u.jsx)(t9,{ref:f})}),(0,u.jsx)(eM,{trapped:!e.hide,children:(0,u.jsx)(tu,{asChild:!0,children:(0,u.jsxs)(ni,{ref:i,style:e.hide?{width:0,height:0,overflow:"hidden",opacity:0}:{height:"compact"===e.size?"auto":s.w,maxWidth:"compact"===e.size?s.j:s.k},children:["compact"===e.size?(0,u.jsxs)(t7,{maxHeight:s.l,children:[e.children," "]}):e.children,!e.hideCloseIcon&&(0,u.jsx)(nt,{children:(0,u.jsx)(tg,{asChild:!0,children:(0,u.jsx)(o.g,{type:"button","aria-label":"Close",children:(0,u.jsx)(a.Pxu,{width:o.i.md,height:o.i.md,style:{color:"inherit"}})})})})]})})})]})]})},nt=(0,o.S)({position:"absolute",top:o.s.lg,right:o.s.lg,transform:"translateX(15%)",[o.m.mobile]:{right:o.s.md}}),nn=(0,p.F4)` 152 from { 153 opacity: 0; 154 transform: translate(-50%, -48%) scale(0.96); 155 } 156 to { 157 opacity: 1; 158 transform: translate(-50%, -50%) scale(1); 159 } 160`,nr=(0,p.F4)` 161 from { 162 opacity: 0; 163 transform: translate(0, 50%); 164 } 165 to { 166 opacity: 1; 167 transform: translate(0, 0); 168 } 169`,ni=(0,o.S)(()=>{let e=(0,o.u)();return{zIndex:1e4,background:e.colors.modalBg,"--bg":e.colors.modalBg,color:e.colors.primaryText,borderRadius:o.r.xl,position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"calc(100vw - 40px)",boxSizing:"border-box",animation:`${nn} 300ms ease`,boxShadow:o.k.lg,lineHeight:"normal",border:`1px solid ${e.colors.borderColor}`,outline:"none",overflow:"hidden",fontFamily:e.fontFamily,[o.m.mobile]:{top:"auto",bottom:0,left:0,right:0,transform:"none",width:"100vw",animation:`${nr} 0.35s cubic-bezier(0.15, 1.15, 0.6, 1)`,borderRadius:o.r.xxl,borderBottomRightRadius:0,borderBottomLeftRadius:0,maxWidth:"none !important"},"& *::selection":{backgroundColor:e.colors.selectedTextBg,color:e.colors.selectedTextColor},"& *":{boxSizing:"border-box"},...o.n}});function na(e){let[n,r]=(0,l.useState)(""),i=(0,l.useDeferredValue)(n),a=(0,s.u)().connectWallet.networkSelector,c=(0,f.EnH)(),d=e.chains||c,p=a.categoryLabel.others,h=a.categoryLabel.popular,y=a.categoryLabel.recentlyUsed,{chainSections:m,allChains:g,allChainsToSectionMap:b}=(0,l.useMemo)(()=>{let n=[],r=[],i=new Map;function a(e,n){i.set(e.chainId,n),r.push(e)}if(e.sections)e.sections.forEach(e=>{let r=e.chains.filter(e=>!i.has(e.chainId));r.length>0&&(n.push({label:e.label,chains:r}),r.forEach(n=>a(n,e.label)))});else if(e.recentChains&&e.recentChains.length>0&&(n.push({label:y,chains:e.recentChains}),e.recentChains.forEach(e=>a(e,y))),e.popularChains&&e.popularChains.length>0){let r=e.popularChains.filter(e=>!i.has(e.chainId));r.length>0&&(n.push({label:h,chains:r}),r.forEach(e=>a(e,h)))}let o=d.filter(e=>!i.has(e.chainId));return o.length>0&&(n.push({label:p,chains:o}),o.forEach(e=>a(e,p))),{chainSections:n,allChains:r,allChainsToSectionMap:i}},[e.sections,e.recentChains,e.popularChains,d,y,h,p]),v=(0,l.useMemo)(()=>new eh.Z(g,{threshold:.4,keys:[{name:"name",weight:1},{name:"chainId",weight:1}]}),[g]),w=(0,l.useMemo)(()=>
169{if(""===i)return;let e=[];return v.search(i).map(e=>e.item).forEach(n=>{let r=b.get(n.chainId);if(!r)return;let i=e.find(e=>e.label===r);return i?i.chains.push(n):e.push({label:r,chains:[n]}),e}),e},[i,v,b])||m,{onClose:x,onSwitch:T,onCustomClick:C}=e,M=(0,l.useCallback)(e=>{T&&T(e),x&&x()},[T,x]);return(0,u.jsxs)(o.C,{children:[(0,u.jsx)(o.C,{p:"lg",children:e.onBack?(0,u.jsx)(o.M,{title:a.title,onBack:e.onBack}):(0,u.jsx)(o.p,{children:a.title})}),(0,u.jsxs)(ea,{className:"TabsRoot",defaultValue:"all",children:[!1!==e.showTabs&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(o.C,{px:"lg",children:(0,u.jsxs)(es,{className:"TabsList","aria-label":"Manage your account",style:{display:"flex",gap:o.s.xxs},children:[(0,u.jsx)(nu,{className:"TabsTrigger",value:"all",children:a.allNetworks}),(0,u.jsx)(nu,{className:"TabsTrigger",value:"mainnet",children:a.mainnets}),(0,u.jsx)(nu,{className:"TabsTrigger",value:"testnet",children:a.testnets})]})}),(0,u.jsx)(s.S,{y:"lg"})]}),!1===e.showTabs&&(0,u.jsx)(s.S,{y:"xxs"}),g.length>10&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(o.C,{px:"lg",children:(0,u.jsxs)("div",{style:{display:"flex",alignItems:"center",position:"relative"},children:[(0,u.jsx)(nh,{width:o.i.md,height:o.i.md}),(0,u.jsx)(s.h,{style:{padding:`${o.s.sm} ${o.s.md} ${o.s.sm} ${o.s.xxl}`},tabIndex:-1,variant:"outline",placeholder:a.inputPlaceholder,value:n,onChange:e=>{r(e.target.value)}}),i!==n&&(0,u.jsx)("div",{style:{position:"absolute",right:o.s.md},children:(0,u.jsx)(s.a,{size:"md",color:"accentText"})})]})}),(0,u.jsx)(s.S,{y:"lg"})]}),(0,u.jsxs)(o.C,{px:"md",children:[(0,u.jsx)(ec,{className:"TabsContent",value:"all",style:{outline:"none"},children:(0,u.jsx)(ns,{chainSections:w,type:"all",onSwitch:M,renderChain:e.renderChain,close:e.onClose})}),(0,u.jsx)(ec,{className:"TabsContent",value:"mainnet",style:{outline:"none"},children:(0,u.jsx)(ns,{chainSections:w,type:"mainnet",onSwitch:M,renderChain:e.renderChain,close:e.onClose})}),(0,u.jsx)(ec,{className:"TabsContent",value:"testnet",style:{outline:"none"},children:(0,u.jsx)(ns,{chainSections:w,type:"testnet",onSwitch:M,renderChain:e.renderChain,close:e.onClose})})]}),C&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(o.L,{}),(0,u.jsx)(o.C,{p:"lg",children:(0,u.jsx)(o.B,{fullWidth:!0,variant:"link",onClick:()=>{C(),x&&x()},style:{display:"flex",fontSize:o.f.sm,boxShadow:"none"},children:a.addCustomNetwork})})]})]})]})}let no=(e,n)=>"all"===n?e:"testnet"===n?e.filter(e=>e.testnet):e.filter(e=>!e.testnet),ns=e=>{let n=(0,l.useMemo)(()=>e.chainSections.map(n=>({label:n.label,chains:no(n.chains,e.type)})).filter(e=>e.chains.length>0),[e.chainSections,e.type]),r=n.length>1;return(0,u.jsx)(o.C,{scrollY:!0,animate:"fadein",style:{height:"330px",paddingBottom:o.s.lg},children:n.length>0?(0,u.jsx)(o.C,{flex:"column",gap:"lg",children:n.map(n=>(0,u.jsxs)("div",{children:[r&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(nc,{children:n.label}),(0,u.jsx)(s.S,{y:"sm"})]}),(0,u.jsx)(nf,{chains:n.chains,onSwitch:e.onSwitch,renderChain:e.renderChain,close:e.close})]},n.label))}):(0,u.jsxs)(o.C,{flex:"column",gap:"md",center:"both",color:"secondaryText",children:[(0,u.jsx)(s.S,{y:"xl"}),(0,u.jsx)(a.xrR,{width:o.i.xl,height:o.i.xl}),(0,u.jsxs)(s.T,{children:[" ","No Results"," "]})]})})},nf=(0,l.memo)(function(e){let n=(0,f.o$C)(),r=(0,f.xxU)(),[i,a]=(0,l.useState)(-1),[s,c]=(0,l.useState)(-1),d=e.close;(0,l.useEffect)(()=>{-1!==i&&r===i&&d&&d()},[i,d,r]);let p=async r=>{c(-1),a(r.chainId);try{await n(r.chainId),e.onSwitch(r)}catch(e){c(r.chainId),console.error(e)}finally{a(-1)}},h=e.renderChain,[y,m]=(0,l.useState)(e.chains.length>100);return((0,l.useEffect)(()=>{y&&setTimeout(()=>{requestAnimationFrame(()=>{m(!1)})},150)},[y]),y)?(0,u.jsx)(o.C,{px:"xxs",children:(0,u.jsx)(nd,{children:Array(10).fill(0).map((e,n)=>(0,u.jsx)(o.q,{height:"48px"},n))})}):(0,u.jsx)(nd,{children:e.chains.map(n=>{let r=i===n.chainId,a=s===n.chainId;return(0,u.jsx)("li",{children:h?(0,u.jsx)(h,{switchChain:()=>{p(n)},chain:n,switching:i===n.chainId,switchFailed:s===n.chainId,close:e.close}):(0,u.jsx)(nl,{chain:n,confirming:r,onClick:()=>p(n),switchingFailed:a})},n.chainId)})})}),nl=(0,l.memo)(function(e){let n=(0,s.u)(),{confirming:r,onClick:i,switchingFailed:a,chain:l}=e,c=n.connectWallet.networkSelector,d=(0,f.xxU)(),p=(0,u.jsxs)("span",{children:[l.name," "]});return(0,u.jsxs)(np,{"data-active":d===l.chainId,onClick:i,children:[(0,u.jsx)(t6,{chain:l,size:o.i.lg,active:d===l.chainId,loading:"lazy"}),r||a?(0,u.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:o.s.xs},children:[p,(0,u.jsxs)(o.C,{animate:"fadein",flex:"row",gap:"xs",children:[r&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(s.T,{size:"xs",color:"accentText",children:n.connectWallet.confirmInWallet}),(0,u.jsx)(s.a,{size:"xs",color:"accentText"})]}),a&&(0,u.jsx)(o.C,{animate:"fadein",children:(0,u.jsx)(s.T,{size:"xs",color:"danger",children:c.failedToSwitch})})]})]}):p]})}),nu=(0,h.Z)(el)(()=>{let e=(0,o.u)();return{all:"unset",fontSize:o.f.sm,fontWeight:500,color:e.colors.secondaryText,cursor:"pointer",padding:`${o.s.sm} ${o.s.sm}`,WebkitTapHighlightColor:"transparent",borderRadius:o.r.lg,transition:"background 0.2s ease, color 0.2s ease","&[data-state='active']":{background:e.colors.secondaryButtonBg,color:e.colors.primaryText}}}),nc=(0,o.j)(()=>{let e=(0,o.u)();return{fontSize:o.f.sm,color:e.colors.secondaryText,margin:0,display:"block",padding:`0 ${o.s.xs}`}}),nd=(0,o.t)({padding:0,margin:0,listStyle:"none",display:"flex",flexDirection:"column",gap:o.s.xs,boxSizing:"border-box"}),np=(0,o.b)(()=>{let e=(0,o.u)();return{all:"unset",display:"flex",width:"100%",boxSizing:"border-box",alignItems:"center",gap:o.s.md,padding:`${o.s.xs} ${o.s.sm}`,borderRadius:o.r.md,cursor:"pointer",transition:"background 0.2s ease",color:e.colors.primaryText,fontWeight:500,fontSize:o.f.md,"&:hover":{background:e.colors.secondaryButtonBg},[o.m.mobile]:{fontSize:o.f.sm}}}),nh=(0,h.Z)(a._Ve)(()=>
169({color:(0,o.u)().colors.secondaryText,position:"absolute",left:o.s.sm}));function ny(e){let n=(0,f.SFn)(),{hasCopied:r,onCopy:i}=t2(n||""),a=(0,s.u)().connectWallet.receiveFundsScreen;return(0,u.jsxs)(o.C,{p:"lg",children:[(0,u.jsx)(o.M,{title:a.title,onBack:e.onBack}),(0,u.jsx)(s.S,{y:"xl"}),(0,u.jsx)(o.C,{flex:"row",center:"x",children:(0,u.jsx)(M.Q,{qrCodeUri:n,size:310,QRIcon:(0,u.jsx)(o.I,{src:e.iconUrl,width:o.i.xxl,height:o.i.xxl})})}),(0,u.jsx)(s.S,{y:"xl"}),(0,u.jsxs)(nm,{onClick:i,children:[(0,u.jsx)(s.T,{color:"primaryText",size:"md",children:(0,f.SyX)(n||"")}),(0,u.jsx)(t4,{text:n||"",tip:"Copy address",hasCopied:r})]}),(0,u.jsx)(s.S,{y:"lg"}),(0,u.jsx)(s.T,{multiline:!0,center:!0,balance:!0,children:a.instruction})]})}let nm=(0,o.b)(()=>{let e=(0,o.u)();return{all:"unset",width:"100%",boxSizing:"border-box",cursor:"pointer",padding:o.s.md,display:"flex",justifyContent:"space-between",border:`1px solid ${e.colors.borderColor}`,borderRadius:o.r.md,transition:"border-color 200ms ease","&:hover":{borderColor:e.colors.accentText}}}),ng={nativeToken:!0};function nb(e){return"nativeToken"in e}function nv(e){return(0,c.a)({queryKey:["chain",e],staleTime:36e5,enabled:!!e,queryFn:async()=>{if(!e)throw Error("chainId is required");let n=await (0,y.spE)(e);if(!n)throw Error(`Chain with chainId "${e}" not found`);return n}})}function nw(e){let n=e.token;return nb(n)?(0,u.jsx)(nx,{chainId:e.chainId,nativeToken:n,size:e.size}):(0,u.jsx)(o.I,{src:n.icon,width:o.i[e.size],height:o.i[e.size],fallbackImage:C.b})}function nx(e){let n=nv(e.chainId);return(0,u.jsx)(o.I,{src:n.data?.icon?.url,width:o.i[e.size],height:o.i[e.size],fallbackImage:C.b})}function nT(e){let n=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return Number(e.displayValue).toFixed(3)+(n?" "+e.symbol:"")}let nC={nativeToken:!0};function nM(e){return"nativeToken"in e}let nA=new Map;function nE(e){let n=(0,f.SFn)();return(0,c.a)({queryKey:["tokenBalance",e.tokenAddress,e.chainId],enabled:!!n,queryFn:async()=>{let r;if(!n)throw Error("No address provided");let i=nA.get(e.chainId);if(i?r=i:(r=new em.T(e.chainId),nA.set(e.chainId,r)),!e.tokenAddress)return r.getBalance(n);let a=await r.getContract(e.tokenAddress);return await a.erc20.balanceOf(n)}})}function nI(e){let[n,r]=(0,l.useState)("base"),[i,f]=(0,l.useState)(""),c=nv(e.chainId),d=nE({tokenAddress:i,chainId:e.chainId}),p=(0,s.u)().connectWallet.sendFundsScreen,h=e.tokenList;d.data&&i&&(h=[{...d.data,icon:"",address:i},...h]);let y=i?h.filter(e=>{let n=i.toLowerCase();return e.name.toLowerCase().includes(n)||e.symbol.toLowerCase().includes(n)||e.address.includes(i)}):h,{chainSelection:m}=e;return"select-chain"===n&&m?(0,u.jsx)(na,{showTabs:!1,onBack:()=>r("base"),open:!0,chains:m.chains,renderChain:e=>(0,u.jsx)(nl,{chain:e.chain,confirming:!1,switchingFailed:!1,onClick:()=>{m.select(e.chain),r("base")}})}):(0,u.jsxs)(o.C,{animate:"fadein",style:{minHeight:"300px"},children:[(0,u.jsx)(o.C,{p:"lg",children:(0,u.jsx)(o.M,{onBack:e.onBack,title:p.selectTokenTitle})}),(0,u.jsx)(o.L,{}),(0,u.jsxs)(o.C,{scrollY:!0,style:{maxHeight:"450px"},children:[(0,u.jsx)(s.S,{y:"md"}),e.chainSelection&&(0,u.jsx)(u.Fragment,{children:(0,u.jsxs)(o.C,{px:"lg",children:[(0,u.jsx)(s.T,{size:"sm",children:"Select Network"}),(0,u.jsx)(s.S,{y:"xxs"}),(0,u.jsxs)(nk,{fullWidth:!0,variant:"secondary",onClick:()=>{r("select-chain")},children:[(0,u.jsx)(t6,{chain:c.data,size:o.i.lg,fallbackImage:t1}),c.data?(0,u.jsxs)(s.T,{color:"primaryText",size:"sm",children:[" ",c.data.name]}):(0,u.jsx)(o.q,{height:o.f.md}),(0,u.jsx)(a.v4q,{width:o.i.sm,height:o.i.sm,style:{marginLeft:"auto"}})]}),(0,u.jsx)(s.S,{y:"xl"}),(0,u.jsx)(s.T,{size:"sm",children:"Select Token"})]})}),(0,u.jsxs)(o.C,{px:"lg",children:[(0,u.jsx)(s.S,{y:"xs"}),(0,u.jsx)(s.h,{placeholder:p.searchToken,variant:"outline",value:i,onChange:e=>{f(e.target.value)}})]}),(0,u.jsx)(s.S,{y:"md"}),(y.length>0||!i)&&(0,u.jsxs)(o.C,{flex:"column",gap:"xs",px:"lg",scrollY:!0,style:{paddingTop:0,paddingBottom:o.s.lg},children:[!i&&(0,u.jsx)(nS,{onClick:()=>{e.onTokenSelect(nC)},chainId:e.chainId,token:nC}),y.map(n=>(0,u.jsx)(nS,{onClick:()=>e.onTokenSelect(n),token:n,chainId:e.chainId},n.address))]}),0===y.length&&d.isLoading&&(0,u.jsx)(o.C,{animate:"fadein",p:"lg",flex:"column",gap:"md",center:"both",style:{minHeight:"200px",paddingTop:0},color:"secondaryText",children:(0,u.jsx)(s.a,{size:"lg",color:"accentText"})}),0===y.length&&!d.isLoading&&i&&(0,u.jsxs)(o.C,{animate:"fadein",p:"lg",flex:"column",gap:"md",center:"both",style:{minHeight:"200px",paddingTop:0},color:"secondaryText",children:[(0,u.jsx)(a.xrR,{width:o.i.lg,height:o.i.lg}),p.noTokensFound]}),(0,u.jsx)(s.S,{y:"md"})]})]})}function nS(e){let n=nE({tokenAddress:nM(e.token)?void 0:e.token.address,chainId:e.chainId}),r=nM(e.token)?n.data?.name:e.token.name;return(0,u.jsxs)(nk,{fullWidth:!0,variant:"secondary",onClick:e.onClick,children:[(0,u.jsx)(nw,{token:e.token,chainId:e.chainId,size:"lg"}),(0,u.jsxs)(o.C,{flex:"column",gap:"xxs",children:[r?(0,u.jsx)(s.T,{size:"sm",color:"primaryText",children:r}):(0,u.jsx)(o.q,{height:o.f.md,width:"150px"}),n.data?(0,u.jsxs)(s.T,{size:"xs",children:[" ",nT(n.data)]}):(0,u.jsx)(o.q,{height:o.f.xs,width:"100px"})]})]})}let nk=(0,h.Z)(o.B)(()=>{let e=(0,o.u)();return{background:e.colors.walletSelectorButtonHoverBg,justifyContent:"flex-start",ga
169p:o.s.sm,padding:o.s.sm,"&:hover":{background:e.colors.secondaryButtonBg,transform:"scale(1.01)"},transition:"background 200ms ease, transform 150ms ease"}});function nN(e){let[n,r]=(0,l.useState)("base"),i=e.chainId,a=ng;if(i&&e.supportedTokens[i]&&e.supportedTokens[i]!==tD[i]){let n=e.supportedTokens[i],r=n&&n[0];r&&(a=r)}let[o,s]=(0,l.useState)(a),[f,c]=(0,l.useState)(""),[d,p]=(0,l.useState)("0"),h=e.supportedTokens[i]||[];return"tokenSelector"===n?(0,u.jsx)(nI,{tokenList:h,onBack:()=>{r("base")},onTokenSelect:e=>{s(e),r("base")},chainId:i}):(0,u.jsx)(nj,{token:o,onTokenSelect:()=>{r("tokenSelector")},receiverAddress:f,setReceiverAddress:c,amount:d,setAmount:p,onBack:e.onBack,chainId:i})}function nj(e){let n=(0,s.u)().connectWallet.sendFundsScreen,r=(0,f.Osb)(),i=e.token&&"address"in e.token?e.token.address:void 0,c=nE({tokenAddress:i,chainId:e.chainId}),{receiverAddress:p,setReceiverAddress:h,amount:y,setAmount:m}=e,g=(0,l.useMemo)(()=>ey.isAddress(p),[p]),b=p&&!g,v=(0,d.D)(async()=>{if(r)return r.transfer(p,y,i)});if(v.isError)return(0,u.jsxs)(o.C,{p:"lg",animate:"fadein",children:[(0,u.jsx)(o.M,{title:n.title,onBack:()=>{v.reset()}}),(0,u.jsx)(s.S,{y:"xl"}),(0,u.jsxs)(o.C,{flex:"column",gap:"lg",animate:"fadein",center:"both",style:{minHeight:"200px"},color:"danger",children:[(0,u.jsx)(a.xrR,{width:o.i.xl,height:o.i.xl}),(0,u.jsx)(s.T,{color:"danger",children:function(e){let r=e?.data?.message||e?.message;return r?r.includes("user rejected")?n.transactionRejected:r.includes("insufficient funds")?n.insufficientFunds:n.transactionFailed:n.transactionFailed}(v.error)})]})]});if(v.isSuccess)return(0,u.jsxs)(o.C,{p:"lg",animate:"fadein",children:[(0,u.jsx)(o.M,{title:n.title,onBack:()=>{v.reset()}}),(0,u.jsxs)(o.C,{flex:"column",gap:"lg",animate:"fadein",center:"both",style:{minHeight:"250px"},color:"success",children:[(0,u.jsx)(a.NhS,{width:o.i.xl,height:o.i.xl}),(0,u.jsxs)(s.T,{color:"success",children:[" ",n.successMessage," "]})]})]});let w=(e.token&&"name"in e.token?e.token.name:void 0)||c?.data?.name,x=(e.token&&"symbol"in e.token?e.token.symbol:void 0)||c?.data?.symbol;return(0,u.jsxs)(o.C,{p:"lg",animate:"fadein",children:[(0,u.jsx)(o.M,{title:n.title,onBack:e.onBack}),(0,u.jsx)(s.S,{y:"xl"}),(0,u.jsxs)("form",{onSubmit:e=>{e.preventDefault()},children:[(0,u.jsx)(s.L,{htmlFor:"token",color:"secondaryText",children:n.token}),(0,u.jsx)(s.S,{y:"sm"}),(0,u.jsxs)(o.B,{id:"token",variant:"outline",fullWidth:!0,style:{justifyContent:"flex-start",gap:o.s.sm,padding:o.s.sm},onClick:e.onTokenSelect,children:[(0,u.jsx)(nw,{token:e.token,chainId:e.chainId,size:"lg"}),(0,u.jsxs)(o.C,{flex:"column",gap:"xs",children:[w?(0,u.jsx)(s.T,{size:"sm",color:"primaryText",children:w}):(0,u.jsx)(o.q,{height:o.f.xs,width:"150px"}),c.data?(0,u.jsx)(s.T,{size:"xs",children:nT(c.data)}):(0,u.jsx)(o.q,{height:o.f.xs,width:"100px"})]})]}),(0,u.jsx)(s.S,{y:"lg"}),(0,u.jsx)(s.L,{htmlFor:"receiver",color:"secondaryText",children:n.sendTo}),(0,u.jsx)(s.S,{y:"sm"}),(0,u.jsx)(s.h,{"data-error":b,required:!0,id:"receiver",placeholder:"0x...",variant:"outline",value:p,onChange:e=>{h(e.target.value)}}),b&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(s.S,{y:"xs"}),(0,u.jsx)(s.T,{color:"danger",size:"sm",children:n.invalidAddress})]}),(0,u.jsx)(s.S,{y:"lg"}),(0,u.jsx)(s.L,{htmlFor:"amount",color:"secondaryText",children:n.amount}),(0,u.jsx)(s.S,{y:"sm"}),(0,u.jsxs)(o.C,{relative:!0,children:[(0,u.jsx)(s.h,{required:!0,type:"number",id:"amount",variant:"outline",value:y,onChange:e=>{m(e.target.value)}}),(0,u.jsx)(nD,{children:(0,u.jsxs)(s.T,{size:"xs",children:[" ",x," "]})})]}),(0,u.jsx)(s.S,{y:"xxl"}),(0,u.jsxs)(o.B,{fullWidth:!0,variant:"accent",type:"submit",onClick:async()=>{p&&y&&await v.mutateAsync()},style:{alignItems:"center",gap:o.s.sm,padding:o.s.md},children:[v.isLoading?n.sending:n.submitButton,v.isLoading&&(0,u.jsx)(s.a,{size:"sm",color:"accentButtonText"})]})]})]})}let nD=(0,o.S)({position:"absolute",top:"50%",transform:"translateY(-50%)",right:o.s.sm}),n_=e=>{let{size:n}=e;return(0,u.jsxs)("svg",{width:n,height:n,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,u.jsx)("path",{d:"M14.001 8.00048C14.001 9.18726 13.649 10.3474 12.9897 11.3342C12.3304 12.3209 11.3932 13.09 10.2968 13.5442C9.20032 13.9984 7.99382 14.1172 6.82984 13.8857C5.66587 13.6541 4.59668 13.0826 3.7575 12.2435C2.91832 11.4043 2.34683 10.3351 2.1153 9.17111C1.88377 8.00713 2.0026 6.80064 2.45676 5.70419C2.91092 4.60775 3.68002 3.6706 4.66679 3.01126C5.65357 2.35192 6.8137 2 8.00048 2",stroke:"currentColor",strokeWidth:"1.2001",strokeLinecap:"round",strokeLinejoin:"round"}),(0,u.jsx)("path",{d:"M14.0005 2L8 8.00048",stroke:"currentColor",strokeWidth:"1.2001",strokeLinecap:"round",strokeLinejoin:"round"}),(0,u.jsx)("path",{d:"M10.3984 2H13.9987V5.60029",stroke:"currentColor",strokeWidth:"1.2001",strokeLinecap:"round",strokeLinejoin:"round"})]})},nO=(0,l.forwardRef)(function(e,n){return(0,u.jsx)(u.Fragment,{children:(0,u.jsxs)(nP,{ref:n,children:[(0,u.jsx)(nt,{children:(0,u.jsx)(o.g,{type:"button","aria-label":"Close",onClick:e.close,children:(0,u.jsx)(a.Pxu,{width:o.i.md,height:o.i.md,style:{color:"inherit"}})})}),e.children]})})}),nP=(0,o.S)(()=>{let e=(0,o.u)();return{zIndex:1e4,padding:o.s.lg,borderTopLeftRadius:o.r.xl,borderTopRightRadius:o.r.xl,background:e.colors.modalBg,position:"fixed",bottom:0,left:0,right:0,animation:`${nL} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1)`,borderTop:`1px solid ${e.colors.borderColor}`}}),nL=(0,p.F4)` 170 from { 171 opacity: 0; 172 transform: translateY(100px); 173 } 174 to { 175 opacity: 1; 176 transform: translateY(0); 177 } 178`,nR=(0,o.S)(()=>
178({backgroundColor:(0,o.u)().colors.modalOverlayBg,zIndex:9999,position:"absolute",inset:0,animation:`${o.c} 400ms cubic-bezier(0.16, 1, 0.3, 1)`})),nz=e=>(0,u.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 18 18",width:e.size,height:e.size,children:(0,u.jsx)("path",{fill:"currentColor",d:"M15.6 4.6H1.85v-.55l12.1-.968v.968h1.65V2.4c0-1.21-.98-2.059-2.177-1.888L2.378 2.089C1.18 2.26.2 3.39.2 4.6v11a2.2 2.2 0 002.2 2.2h13.2a2.2 2.2 0 002.2-2.2V6.8a2.2 2.2 0 00-2.2-2.2zm-1.65 7.707a1.65 1.65 0 01-.63-3.176 1.65 1.65 0 11.63 3.176z"})});function nB(){return(0,u.jsxs)("div",{children:[(0,u.jsx)(s.T,{size:"sm",children:"Pay with "}),(0,u.jsx)(s.S,{y:"xs"}),(0,u.jsxs)(o.C,{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gridGap:o.s.sm},children:[(0,u.jsx)(nU,{isChecked:!0,variant:"outline",children:(0,u.jsx)(o.C,{gap:"xxs",flex:"row",center:"y",children:"Crypto"})}),(0,u.jsxs)("div",{style:{position:"relative"},children:[(0,u.jsx)(nU,{variant:"outline",isChecked:!1,style:{opacity:.5},disabled:!0,children:"Credit Card"}),(0,u.jsx)(nF,{children:" Coming Soon "})]})]})]})}let nU=(0,h.Z)(o.B)(e=>{let n=(0,o.u)();return{fontSize:o.f.sm,borderColor:e.isChecked?n.colors.accentText:n.colors.borderColor,gap:o.s.xs,paddingInline:o.s.xxs,paddingBlock:o.s.sm,width:"100%"}}),nF=(0,o.S)(()=>{let e=(0,o.u)();return{position:"absolute",top:0,right:0,transform:"translate(10%, -60%)",backgroundColor:e.colors.secondaryButtonBg,paddingBlock:"3px",paddingInline:o.s.xs,fontSize:o.f.xs,borderRadius:o.r.sm,color:e.colors.accentText}});function nZ(e){return nb(e.token)?(0,u.jsx)(nW,{chainId:e.chainId,size:e.size,color:e.color}):(0,u.jsx)(s.T,{size:e.size,color:e.color||"primaryText",children:e.token.symbol})}function nW(e){let n=nv(e.chainId).data;return n?(0,u.jsx)(s.T,{size:e.size,color:e.color||"primaryText",children:n.nativeCurrency.symbol}):(0,u.jsx)(o.q,{width:"70px",height:o.f[e.size]})}function nH(e){let n;let r=nv(e.chainId);return(0,u.jsxs)(o.C,{children:[(0,u.jsx)("div",{onClick:e=>{e.currentTarget.querySelector("input")?.focus()},children:(0,u.jsxs)(o.C,{flex:"row",center:"both",gap:"xs",style:{flexWrap:"nowrap"},children:[(0,u.jsx)(s.h,{variant:"outline",pattern:"^[0-9]*[.,]?[0-9]*$",inputMode:"decimal",placeholder:"0",type:"text","data-placeholder":""===e.value,value:e.value||"0",onClick:n=>{""===e.value&&n.currentTarget.setSelectionRange(n.currentTarget.value.length,n.currentTarget.value.length)},onChange:n=>{let r=n.target.value;r.startsWith(".")&&(r="0"+r),isNaN(Number(r))||(r.startsWith("0")&&!r.startsWith("0.")?e.onChange(r.slice(1)):e.onChange(r))},style:{border:"none",fontSize:e.value.length>10?"26px":e.value.length>6?"34px":"50px",boxShadow:"none",padding:"0",paddingBlock:"2px",fontWeight:600,textAlign:"right",width:(n=e.value.replace(".","").length,e.value.includes(".")&&(n+=.3),`calc(${Math.max(1,n)+"ch"} + 6px)`),maxWidth:"calc(100% - 100px)"}}
178),(0,u.jsx)(nZ,{token:e.token,chainId:e.chainId,size:"lg",color:"secondaryText"})]})}),(0,u.jsx)(s.S,{y:"md"}),(0,u.jsx)(o.C,{flex:"row",center:"x",children:(0,u.jsxs)(nG,{variant:"secondary",fullWidth:!0,style:{fontSize:o.f.sm},gap:"xxs",onClick:e.onSelectToken,children:[(0,u.jsxs)(o.C,{flex:"row",center:"y",gap:"sm",children:[(0,u.jsx)(nw,{token:e.token,chainId:e.chainId,size:"md"}),(0,u.jsxs)(o.C,{flex:"column",style:{gap:"4px"},children:[(0,u.jsx)(nZ,{token:e.token,chainId:e.chainId,size:"sm"}),r.data?.name?(0,u.jsx)(s.T,{size:"xs",color:"secondaryText",children:r.data.name}):(0,u.jsx)(o.q,{width:"90px",height:o.f.xs})]})]}),(0,u.jsx)(a.v4q,{width:o.i.sm,height:o.i.sm,style:{marginLeft:"auto"}})]})})]})}let nG=(0,h.Z)(o.B)(()=>{let e=(0,o.u)();return{background:e.colors.walletSelectorButtonHoverBg,border:`1px solid ${e.colors.borderColor}`,justifyContent:"flex-start",transition:"background 0.3s",padding:o.s.sm}});function nq(e){if(e>3600){let n=Math.floor(e/3600),r=Math.floor(e%3600/60);return`${n} Hours ${r} Minutes`}if(e>60){let n=Math.ceil(e/60);return`${n} Minutes`}return`${e}s`}function nY(e,n){return Number(e.toFixed(n))}function nV(e){return(0,u.jsx)(o.C,{flex:"column",gap:"xs",style:{alignItems:"right"===e.align?"flex-end":"flex-start"},children:e.quote.processingFees.map((e,n)=>{let r=nY(Number(e.amount),4);return(0,u.jsxs)(o.C,{flex:"row",gap:"xxs",children:[(0,u.jsxs)(s.T,{color:"primaryText",size:"sm",children:[0===r?"~":"",r," ",e.token.symbol]}),(0,u.jsxs)(s.T,{color:"secondaryText",size:"sm",children:["($",e.amountUSDCents/100,")"]})]},n)})})}let nQ=function(e){let n=new Set,r=e,i=()=>{for(let e of n)e()};return{getValue:()=>r,setValue(e){r=e,i()},subscribe:e=>(n.add(e),()=>{n.delete(e)})}}([]),nK=(e,n)=>{let r=nQ.getValue(),i=r.length;nQ.setValue([...r,n]);let a=0;async function o(){await (0,M.w)(5e3);try{a++;let r=await (0,eg.d)({clientId:e,transactionHash:n.transactionHash});if("COMPLETED"===r.status||"FAILED"===r.status){let e=nQ.getValue(),n=[...e],a=e[i];if(a){let e={...a,status:r.status,subStatus:r.subStatus};n[i]=e,r.destination&&(e.destination={symbol:r.destination.token.symbol||"",value:r.destination.amount,chainId:r.destination.token.chainId}),nQ.setValue(n)}return}}catch{}a<50&&await o()}o()},n$=e=>(0,u.jsxs)("svg",{width:e.size,height:e.size,viewBox:"0 0 109 109",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,u.jsxs)("g",{clipPath:"url(#clip0_4036_4155)",children:[(0,u.jsx)("path",{d:"M54.5 109C84.5995 109 109 84.5995 109 54.5C109 24.4005 84.5995 0 54.5 0C24.4005 0 0 24.4005 0 54.5C0 84.5995 24.4005 109 54.5 109Z",fill:"#4BABFF"}),(0,u.jsx)("path",{d:"M55 96C77.6437 96 96 77.6437 96 55C96 32.3563 77.6437 14 55 14C32.3563 14 14 32.3563 14 55C14 77.6437 32.3563 96 55 96Z",fill:"#1C85FF"}),(0,u.jsx)("path",{d:"M73.2352 69.389C73.7459 69.8997 74.0329 70.5924 74.0329 71.3147C74.0329 72.037 73.7459 72.7298 73.2352 73.2405C72.7244 73.7513 72.0317 74.0382 71.3094 74.0382C70.5871 74.0382 69.8944 73.7513 69.3836 73.2405L54.9992 58.8515L40.6102 73.236C40.0994 73.7467 39.4067 74.0337 38.6844 74.0337C37.9621 74.0337 37.2694 73.7467 36.7586 73.236C36.2479 72.7252 35.9609 72.0325 35.9609 71.3102C35.9609 70.5879 36.2479 69.8952 36.7586 69.3844L51.1476 55L36.7632 40.611C36.2524 40.1002 35.9655 39.4075 35.9655 38.6852C35.9655 37.9629 36.2524 37.2702 36.7632 36.7594C37.2739 36.2487 37.9666 35.9617 38.6889 35.9617C39.4112 35.9617 40.104 36.2487 40.6147 36.7594L54.9992 51.1484L69.3881 36.7572C69.8989 36.2464 70.5916 35.9595 71.3139 35.9595C72.0362 35.9595 72.729 36.2464 73.2397 36.7572C73.7505 37.2679 74.0374 37.9606 74.0374 38.6829C74.0374 39.4052 73.7505 40.098 73.2397 40.6087L58.8507 55L73.2352 69.389Z",fill:"url(#paint0_linear_4036_4155)"})]}),(0,u.jsxs)("defs",{children:[(0,u.jsxs)("linearGradient",{id:"paint0_linear_4036_4155",x1:"54.9992",y1:"35.9595",x2:"54.9992",y2:"74.0382",gradientUnits:"userSpaceOnUse",children:[(0,u.jsx)("stop",{stopColor:"white"}),(0,u.jsx)("stop",{offset:"1",stopColor:"#90CBFF"})]}),(0,u.jsx)("clipPath",{id:"clip0_4036_4155",children:(0,u.jsx)("rect",{width:"109",height:"109",fill:"white"})})]})]});function nJ(e){let n=(0,f.mx9)(),[r,i]=(0,l.useState)(),c=void 0!==e.buyWithCryptoQuote.approval,[d,p]=(0,l.useState)(c?"approval":"swap"),[h,y]=(0,l.useState)("idle"),m=nv(e.fromChainId),g=nv(e.toChainId),b=nM(e.fromToken)?m.data?.nativeCurrency?.symbol
178:e.fromToken?.symbol,v=nM(e.toToken)?g.data?.nativeCurrency?.symbol:e.toToken?.symbol;return r?(0,u.jsx)(n3,{onBack:()=>{e.onBack()},onViewPendingTx:e.onViewPendingTx,destinationChainId:e.toChainId,destinationToken:e.toToken,sourceAmount:nY(Number(e.fromAmount),4)+" "+(b||""),destinationAmount:nY(Number(e.toAmount),4)+" "+(v||""),swapTx:r}):(0,u.jsxs)(o.C,{p:"lg",children:[(0,u.jsx)(o.M,{title:"Confirm Buy",onBack:e.onBack}),(0,u.jsx)(s.S,{y:"lg"}),(0,u.jsx)(n4,{label:"Receive",children:(0,u.jsx)(n2,{chainId:e.toChainId,amount:String(nY(Number(e.toAmount),4)),symbol:v||"",token:e.toToken})}),(0,u.jsx)(n4,{label:"Pay",children:(0,u.jsx)(n2,{chainId:e.fromChainId,amount:String(nY(Number(e.fromAmount),4)),symbol:b||"",token:e.fromToken})}),(0,u.jsx)(n4,{label:"Fees",children:(0,u.jsx)(nV,{quote:e.buyWithCryptoQuote,align:"right"})}),(0,u.jsx)(n4,{label:"Send to",children:(0,u.jsx)(s.T,{color:"primaryText",children:(0,f.SyX)(e.accountAddress,!1)})}),(0,u.jsx)(n4,{label:"Time",children:(0,u.jsxs)(s.T,{color:"primaryText",children:["~",nq(e.buyWithCryptoQuote.swapDetails.estimated.durationSeconds||0)]})}),(0,u.jsx)(s.S,{y:"lg"}),c&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(s.S,{y:"sm"}),(0,u.jsxs)(o.C,{gap:"sm",flex:"row",style:{justifyContent:"space-between"},center:"y",color:"accentText",children:[(0,u.jsx)(n0,{isDone:"swap"===d,isActive:"approval"===d,label:"approval"===d?"Approve":"Approved"}),(0,u.jsx)(nX,{}),(0,u.jsx)(n0,{isDone:!1,label:"Confirm",isActive:"swap"===d})]}),(0,u.jsx)(s.S,{y:"lg"})]}),"error"===h&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(o.C,{flex:"row",gap:"xs",center:"y",color:"danger",children:[(0,u.jsx)(a.xrR,{width:o.i.sm,height:o.i.sm}),(0,u.jsx)(s.T,{color:"danger",size:"sm",children:"approval"===d?"Failed to Approve":"Failed to Confirm"})]}),(0,u.jsx)(s.S,{y:"md"})]}),(0,u.jsxs)(o.B,{variant:"accent",fullWidth:!0,disabled:"pending"===h,onClick:async()=>{if(n){if("approval"===d&&e.buyWithCryptoQuote.approval)try{y("pending");let r=await n.sendTransaction(e.buyWithCryptoQuote.approval);await r.wait(),e.onQuoteFinalized(e.buyWithCryptoQuote),p("swap"),y("idle")}catch(e){console.error(e),y("error")}if("swap"===d){y("pending");try{let r=await n.sendTransaction(e.buyWithCryptoQuote.transactionRequest),a=await r.wait();e.onQuoteFinalized(e.buyWithCryptoQuote),b&&v&&m.data&&nK(e.clientId,{source:{symbol:b,value:e.fromAmount,chainId:e.fromChainId},destination:{symbol:v,value:e.toAmount,chainId:e.toChainId},status:"PENDING",transactionHash:a.transactionHash}),i({transactionHash:a.transactionHash,clientId:e.clientId})}catch(e){console.error(e),y("error")}}}},gap:"xs",children:["approval"===d?"Approve":"Confirm","pending"===h&&(0,u.jsx)(s.a,{size:"sm",color:"accentButtonText"})]})]})}let nX=(0,o.S)(()=>
178({height:"4px",background:(0,o.u)().colors.borderColor,flex:1}));function n0(e){return(0,u.jsxs)(o.C,{flex:"row",center:"y",gap:"xs",style:{fontSize:o.f.sm},color:e.isDone?"success":e.isActive?"accentText":"secondaryText",children:[(0,u.jsx)(n5,{children:e.isDone?(0,u.jsx)(a.nQG,{width:o.i.sm,height:o.i.sm}):(0,u.jsx)(n6,{"data-active":e.isActive})}),e.label]})}let n1=(0,p.F4)` 1790% { 180 opacity: 1; 181 transform: scale(0.5); 182} 183100% { 184 opacity: 0; 185 transform: scale(1.5); 186} 187`,n6=(0,o.S)(()=>({background:"currentColor",width:"9px",height:"9px",borderRadius:"50%",'&[data-active="true"]':{animation:`${n1} 1s infinite`}})),n5=(0,o.S)(()=>({border:"1px solid currentColor",width:"20px",height:"20px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center"}));function n2(e){let n=nv(e.chainId);return(0,u.jsxs)(o.C,{flex:"column",gap:"xxs",style:{alignItems:"flex-end"},children:[(0,u.jsxs)(o.C,{flex:"row",center:"y",gap:"xs",children:[(0,u.jsxs)(s.T,{color:"primaryText",size:"md",children:[e.amount," ",e.symbol]}),(0,u.jsx)(nw,{token:e.token,chainId:e.chainId,size:"sm"})]}),n.data?(0,u.jsx)(s.T,{size:"sm",children:n.data.name}):(0,u.jsx)(o.q,{width:"100px",height:o.f.sm})]})}function n4(e){return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(o.C,{flex:"row",gap:"md",py:"md",style:{justifyContent:"space-between"},children:[(0,u.jsx)(s.T,{size:"md",color:"secondaryText",children:e.label}),e.children]}),(0,u.jsx)(o.L,{})]})}function n3(e){let n=(0,f.gJB)(e.swapTx),r=n.data?.status==="COMPLETED",i=n.data?.status==="FAILED";return(0,u.jsx)(o.C,{animate:"fadein",children:(0,u.jsxs)(o.C,{p:"lg",children:[(0,u.jsx)(o.M,{title:"Buy",onBack:e.onBack}),(0,u.jsx)(s.S,{y:"sm"}),(0,u.jsxs)(o.C,{flex:"column",animate:"fadein",center:"both",color:r?"success":i?"danger":"accentText",children:[(0,u.jsx)(s.S,{y:"xxl"}),r?(0,u.jsx)(a.NhS,{width:o.i["4xl"],height:o.i["4xl"]}):i?(0,u.jsx)(n$,{size:o.i["4xl"]}):(0,u.jsxs)("div",{style:{position:"relative"},children:[(0,u.jsx)(s.a,{size:"4xl",color:"accentText"}),(0,u.jsx)("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},children:(0,u.jsx)(nw,{chainId:e.destinationChainId,token:e.destinationToken,size:"xxl"})})]}),(0,u.jsx)(s.S,{y:"xxl"}),(0,u.jsx)(s.T,{color:"primaryText",size:"lg",children:r?"Buy Success":i?"Transaction Failed":"Buy Pending"}),!i&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(s.S,{y:"lg"}),(0,u.jsxs)("div",{children:[(0,u.jsxs)(s.T,{size:"md",inline:!0,children:[" ",r?"Bought":"Buy"," "]}),(0,u.jsx)(s.T,{size:"md",color:"primaryText",inline:!0,children:e.destinationAmount}),(0,u.jsxs)(s.T,{size:"md",inline:!0,children:[" ","for"," "]}),(0,u.jsx)(s.T,{size:"md",color:"primaryText",inline:!0,children:e.sourceAmount})]})]}),i&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(s.S,{y:"md"}),(0,u.jsxs)(s.T,{size:"sm",children:["Your transaction ","couldn't"," be processed"]})]})]}),(0,u.jsx)(s.S,{y:"xl"}),!i&&(0,u.jsx)(o.B,{variant:"accent",fullWidth:!0,onClick:e.onViewPendingTx,children:"View Transactions"}),i&&(0,u.jsx)(o.B,{variant:"accent",fullWidth:!0,onClick:e.onBack,children:"Try Again"})]})})}function n8(e){let n=nv(e.chainId),r=nE({tokenAddress:nM(e.token)?void 0:e.token.address,chainId:e.chainId});return(0,u.jsx)(o.C,{bg:"walletSelectorButtonHoverBg",borderColor:"borderColor",style:{borderRadius:o.r.md,borderBottomRightRadius:0,borderBottomLeftRadius:0,borderWidth:"1px",borderStyle:"solid",borderBottom:"none"},children:(0,u.jsxs)(o.C,{flex:"row",style:{flexWrap:"nowrap",justifyContent:"space-between"},children:[(0,u.jsxs)(n9,{variant:"secondary",onClick:e.onSelectToken,children:[(0,u.jsx)(nw,{token:e.token,chainId:e.chainId,size:"md"}),(0,u.jsxs)(o.C,{flex:"column",gap:"xxs",children:[(0,u.jsxs)(o.C,{flex:"row",gap:"xs",center:"y",children:[(0,u.jsx)(n
187Z,{token:e.token,chainId:e.chainId,size:"sm"}),(0,u.jsx)(a.v4q,{width:o.i.sm,height:o.i.sm})]}),n.data?.name?(0,u.jsxs)(s.T,{size:"xs",children:[" ",n.data.name]}):(0,u.jsx)(o.q,{width:"90px",height:o.f.xs})]})]}),(0,u.jsxs)("div",{style:{flexGrow:1,flexShrink:1,display:"flex",flexDirection:"column",alignItems:"flex-end",gap:o.s.xxs,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",justifyContent:"center",paddingRight:o.s.sm},children:[e.isLoading?(0,u.jsx)(o.q,{width:"120px",height:o.f.md}):(0,u.jsx)(s.T,{size:"md",color:e.value?"primaryText":"secondaryText",style:{},children:nY(Number(e.value),4)||"--"}),(0,u.jsxs)(o.C,{flex:"row",gap:"xxs",center:"y",color:"secondaryText",children:[(0,u.jsx)(nz,{size:o.f.xs}),r.data?(0,u.jsx)(s.T,{size:"xs",color:"secondaryText",weight:500,children:nT(r.data,!0)}):(0,u.jsx)(o.q,{width:"70px",height:o.f.xs})]})]})]})})}let n9=(0,h.Z)(o.B)(()=>{let e=(0,o.u)();return{background:"transparent",border:"1px solid transparent","&:hover":{background:"transparent",borderColor:e.colors.accentText},justifyContent:"flex-start",transition:"background 0.3s, border-color 0.3s",gap:o.s.sm,paddingInline:o.s.sm,paddingBlock:o.s.sm,color:e.colors.primaryText,borderRadius:o.r.md,minWidth:"50%"}});function n7(e){return(0,u.jsx)(o.C,{style:{minHeight:e.height||"350px"},fullHeight:!0,flex:"row",center:"both",children:(0,u.jsx)(s.a,{size:"lg",color:"secondaryText"})})}function re(e){var n;let r=(0,f.xxU)(),i=(0,f.Osb)(),a=(0,f.w_p)(),{clientId:o}=(0,f.tNP)(),s=(0,f.SFn)(),l=(n=o||"",(0,c.a)({queryKey:["swapSupportedChains"],queryFn:async()=>{let e=new Headers;e.set("x-client-id",n);let r=await fetch("https://pay.thirdweb.com/chains",{headers:e}),i=(await r.json()).result.chainIds;return(await Promise.all(i.map(y.spE))).filter(e=>null!==e)}})).data;return r&&i&&o&&s&&a&&l?(0,u.jsx)(rt,{...e,activeChainId:r,clientId:o,activeWallet:i,activeWalletConfig:a,activeAddress:s,onViewPendingTx:e.onViewPendingTx,supportedChains:l}):(0,u.jsx)(n7,{})}function rt(e){let{activeChainId:n,clientId:r,activeWallet:i,activeAddress:c,supportedChains:d}=e,[p,h]=(0,l.useState)(!1),y=(0,f.o$C)(),m=(0,f.EnH)(),[g,b]=(0,l.useState)("main"),[v,w]=(0,l.useState)(),{drawerRef:x,drawerOverlayRef:T,onClose:C}=function(){let e=(0,l.useRef)(null),n=(0,l.useRef)(null);return{drawerRef:e,drawerOverlayRef:n,onClose:r=>{if(e.current){let i={easing:"cubic-bezier(0.175, 0.885, 0.32, 1.1)",fill:"forwards",duration:300},a=e.current.animate([{transform:"translateY(100%)",opacity:0}],i);n.current?.animate([{opacity:0}],i),a.onfinish=r}else r()}}}(),M=()=>{C(()=>{w(void 0)})},[A,E]=(0,l.useState)(""),[I,S]=(0,l.useState)(!1),k=(0,l.useMemo)(()=>d.find(e=>e.chainId===n),[n,d])?n:1,[N,j]=(0,l.useState)(k),[D,_]=(0,l.useState)(k),[O,P]=(0,l.useState)(c),[L,R]=(0,l.useState)(nC),[z,B]=(0,l.useState)(e.supportedTokens[D]?.[0]||nC),U=function(e,n){let[r,i]=(0,l.useState)(e);return(0,l.useEffect)(()=>{let n=!1,r=setTimeout(()=>{n||i(e)},300);return()=>{n=!0,clearTimeout(r)}},[e,300]),r}(A,0),F=nE({tokenAddress:nb(L)?void 0:L.address,chainId:N}),[Z,W]=(0,l.useState)(),H=!U||Z||N===D&&L===z?void 0:{fromAddress:O,fromChainId:N,fromTokenAddress:nb(L)?eb.aV:L.address,toChainId:D,toTokenAddress:nb(z)?eb.aV:z.address,toAmount:U,clientId:r},G=(0,f.YW1)(H,{staleTime:3e4,refetchInterval:3e4});if(!d)return(0,u.jsx)(o.C,{flex:"row",center:"both",style:{minHeight:"350px"},children:(0,u.jsx)(s.a,{color:"secondaryText",size:"lg"})});if("select-from-token"===g)return(0,u.jsx)(nI,{onBack:()=>b("main"),tokenList:e.supportedTokens[N]||[],onTokenSelect:e=>{R(e),b("main")},chainId:N,chainSelection:{chains:d,select:e=>j(e.chainId)}});if("select-to-token"===g)return(0,u.jsx)(nI,{onBack:()=>b("main"),tokenList:e.supportedTokens[D]||[],onTokenSelect:e=>{B(e),b("main")},chainId:D,chainSelection:{chains:d,select:e=>_(e.chainId)}});let q=G.data,Y=G.isError,V=q?.swapDetails.fromAmount||"",Q=Z||G.data;if("confirmation"===g&&Q)return(0,u.jsx)(nJ,{clientId:r,accountAddress:O,onBack:()=>{W(void 0),b("main")},buyWithCryptoQuote:Q,onQuoteFinalized:e=>{W(e)},fromAmount:Q.swapDetails.fromAmount,toAmount:A,fromChainId:N,toChainId:D,fromToken:L,toToken:z,onViewPendingTx:e.onViewPendingTx});let K=!!V&&!!F.data&&Number(F.data.displayValue)<Number(V),$=!q||K,J=n!==N,X=G.data?.swapDetails.estimated.durationSeconds;return(0,u.jsx)(o.C,{animate:"fadein",children:(0,u.jsxs)("div",{onClick:e=>{v&&x.current&&!x.current.contains(e.target)&&(e.preventDefault(),e.stopPropagation(),M())},children:[v&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(nR,{ref:T}),(0,u.jsx)(nO,{ref:x,close:M,children:(0,u.jsx)(rn,{drawerScreen:v,quote:q,activeWallet:i,activeAddress:c,activeWalletConfig:e.activeWalletConfig,onSelect:e=>{P(e),M()}})})]}),(0,u.jsxs)(o.C,{p:"lg",style:{paddingBottom:0},children:[(0,u.jsx)(o.M,{title:"Buy",onBack:e.onBack}
187),(0,u.jsx)(s.S,{y:"lg"}),!I&&(0,u.jsx)(s.S,{y:"xl"}),(0,u.jsx)(nH,{value:A,onChange:async e=>{S(!0),E(e)},token:z,chainId:D,onSelectToken:()=>b("select-to-token")})]}),(0,u.jsx)(s.S,{y:"md"}),(0,u.jsxs)(o.C,{px:"lg",children:[I&&(0,u.jsxs)("div",{children:[(0,u.jsx)(nB,{}),(0,u.jsx)(s.S,{y:"md"}),(0,u.jsx)(n8,{value:V,onSelectToken:()=>{b("select-from-token")},chainId:N,token:L,isLoading:G.isLoading&&!V}),(0,u.jsxs)(o.C,{bg:"walletSelectorButtonHoverBg",flex:"row",borderColor:"borderColor",style:{borderRadius:o.r.md,borderTopLeftRadius:0,borderTopRightRadius:0,justifyContent:"space-between",alignItems:"center",borderWidth:"1px",borderStyle:"solid"},children:[(0,u.jsxs)(o.C,{flex:"row",center:"y",gap:"xxs",color:"accentText",p:"sm",children:[(0,u.jsx)(a.T39,{width:o.i.sm,height:o.i.sm}),G.isLoading?(0,u.jsx)(o.q,{height:o.f.xs,width:"50px"}):(0,u.jsx)(s.T,{size:"xs",color:"secondaryText",children:X?"~"+nq(X):"--"})]}),(0,u.jsxs)(ro,{variant:"secondary",onClick:()=>{w("fees")},children:[(0,u.jsx)(o.C,{color:"accentText",flex:"row",center:"both",children:(0,u.jsx)(ri,{size:o.i.sm})}),(0,u.jsx)(s.T,{size:"xs",color:"secondaryText",children:"View Fees"})]})]}),(0,u.jsx)(s.S,{y:"md"}),(0,u.jsxs)(o.C,{children:[(0,u.jsx)(s.T,{size:"sm",children:"Send To"}),(0,u.jsx)(s.S,{y:"xxs"}),(0,u.jsx)(ra,{activeAddress:c,activeWalletConfig:e.activeWalletConfig,address:O,activeWallet:i,onClick:()=>{w("address")},chevron:!0})]}),(0,u.jsx)(s.S,{y:"md"}),(0,u.jsx)(o.C,{flex:"column",gap:"md",children:Y&&(0,u.jsxs)("div",{children:[(0,u.jsxs)(o.C,{flex:"row",gap:"xs",center:"y",color:"danger",children:[(0,u.jsx)(a.xrR,{width:o.i.sm,height:o.i.sm}),(0,u.jsx)(s.T,{color:"danger",size:"sm",children:(()=>{let e="Unable to get price quote";try{if(G.error instanceof Error&&G.error.message.includes("Minimum"))return G.error.message.replace("Fetch failed: Error: ","");return e}catch{return e}})()})]}),(0,u.jsx)(s.S,{y:"lg"})]})})]}),J&&(0,u.jsx)(o.B,{fullWidth:!0,variant:"accent",disabled:!I,"data-disabled":!I,gap:"sm",onClick:async()=>{h(!0);try{if(!m.find(e=>e.chainId===N)){let e=d.find(e=>e.chainId===N);e&&i.updateChains([...m,e])}await y(N)}catch{}h(!1)},children:I?(0,u.jsxs)(u.Fragment,{children:[p&&(0,u.jsx)(s.a,{size:"sm",color:"accentButtonText"}),p?"Switching":"Switch Network"]}):"Continue"}),!J&&(0,u.jsx)(o.B,{variant:$?"outline":"accent",fullWidth:!0,"data-disabled":$,disabled:$,onClick:async()=>{$||b("confirmation")},gap:"sm",children:K?"Not Enough Funds":"Continue"})]}),(0,u.jsx)(s.S,{y:"lg"})]})})}function rn(e){let{drawerScreen:n,quote:r}=e,[i,a]=(0,l.useState)(""),f=(0,l.useMemo)(()=>(0,ev.isAddress)(i),[i]),c=!!i&&!f;return(0,u.jsxs)(t7,{children:["fees"===n&&(0,u.jsxs)("div",{children:[(0,u.jsx)(s.T,{size:"lg",color:"primaryText",children:"Fees"}),(0,u.jsx)(s.S,{y:"lg"}),r&&(0,u.jsx)(nV,{quote:r,align:"left"})]}),"address"===n&&(0,u.jsxs)("div",{children:[(0,u.jsx)(s.T,{size:"lg",color:"primaryText",children:"Send to"}),(0,u.jsx)(s.S,{y:"lg"}),(0,u.jsxs)(o.C,{flex:"row",center:"y",style:{flexWrap:"nowrap",height:"50px"},children:[(0,u.jsx)(rr,{"data-is-error":c,value:i,placeholder:"Enter wallet address",variant:"outline",onChange:e=>a(e.target.value)}),(0,u.jsx)(o.B,{variant:"accent",disabled:!f,style:{height:"100%",minWidth:"100px",borderTopLeftRadius:0,borderBottomLeftRadius:0},onClick:()=>{e.onSelect(i)},children:"Confirm"})]}),c&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(s.S,{y:"xxs"}),(0,u.jsx)(s.T,{color:"danger",size:"sm",children:"Invalid address"})]}),(0,u.jsx)(s.S,{y:"xl"}),(0,u.jsx)(s.T,{size:"sm",children:"Connected"}),(0,u.jsx)(s.S,{y:"xs"}),(0,u.jsx)(ra,{address:e.activeAddress,activeAddress:e.activeAddress,activeWalletConfig:e.activeWalletConfig,activeWallet:e.activeWallet,onClick:()=>{e.onSelect(e.activeAddress)}})]})]})}let rr=(0,h.Z)(s.h)(()=>{let e=(0,o.u)();return{border:`1.5px solid ${e.colors.borderColor}`,borderTopRightRadius:0,borderBottomRightRadius:0,height:"100%",boxSizing:"border-box",boxShadow:"none",borderRight:"none","&:focus":{boxShadow:"none",borderColor:e.colors.accentText},"&[data-is-error='true']":{boxShadow:"none",borderColor:e.colors.danger}}}),ri=e=>(0,u.jsxs)("svg",{width:e.size,height:e.size,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,u.jsx)("path",{d:"M9.5 1.5H2.5C1.94772 1.5 1.5 1.94772 1.5 2.5V9.5C1.5 10.0523 1.94772 10.5 2.5 10.5H9.5C10.0523 10.5 10.5 10.0523 10.5 9.5V2.5C10.5 1.94772 10.0523 1.5 9.5 1.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,u.jsx)("path",{d:"M4.5 7.5L7.5 4.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]});function ra(e){return(0,u.jsxs)(rs,{variant:"secondary",fullWidth:!0,onClick:e.onClick,children:[e.activeAddress===e.address?(0,u.jsx)(o.I,{src:e.activeWalletConfig.meta.iconURL,width:o.i.md,height:o.i.md}):(0,u.jsx)(o.C,{color:"secondaryText",flex:"row",center:"both",children:(0,u.jsx)(nz,{size:o.i.md})}),(0,u.jsx)(s.T,{size:"sm",color:"primaryText",children:(0,f.SyX)(e.address,!1)}),e.chevron&&(0,u.jsx)(a.v4q,{width:o.i.sm,height:o.i.sm,style:{marginLeft:"auto"}})]})}let ro=(0,h.Z)(o.B)(()=>{let e=(0,o.u)();return{background:"transparent",border:"1px solid transparent","&:hover":{background:"transparent",borderColor:e.colors.accentText},justifyContent:"flex-start",transition:"background 0.3s, border-color 0.3s",gap:o.s.xs,padding:o.s.sm,color:e.colors.primaryText,borderRadius:o.r.md}}),rs=(0,h.Z)(o.B)(()=>{let e=(0,o.u)();return{background:e.colors.walletSelectorButtonHoverBg,border:`1px solid ${e.colors.borderColor}`,"&:hover":{background:e.colors.walletSelectorButtonHoverBg,borderColor:e.colors.accentText},justifyContent:"flex-start",transition:"background 0.3s, border-color 0.3s",gap:o.s.sm,padding:o.s.sm,borderRadius:o.r.md}}),rf=e=>(0,u.jsxs)("svg",{width:e.size,height:e.size,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,u.jsxs)("g",{clipPath:"url(#clip0_3977_6218)",children:[(0,u.jsx)("path",{d:"M8 1.33337C9.29343 1.33314 10.559 1.70916 11.6425 2.41561C12.7259 3.12206 13.5805 4.12843 14.102 5.31207C14.6235 6.4957 14.7894 7.80548 14.5795 9.08176C14.3697 10.3581 13.7931 11.5457 12.92 12.5",stroke:"#646D7A",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"}),(0,u.jsx)("path",{d:"M8 5.33337V10.6667",stroke:"#646D7A",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"}),(0,u.jsx)("path",{d:"M10.6663 8H5.33301",stroke:"#646D7A",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"}),(0,u.jsx)("path",{d:"M1.66634 5.91663C1.45391 6.5624 1.3415 7.23686 1.33301 7.9
1871663",stroke:"#646D7A",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"}),(0,u.jsx)("path",{d:"M1.88672 10.6666C2.26105 11.5278 2.81311 12.3003 3.50672 12.9333",stroke:"#646D7A",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"}),(0,u.jsx)("path",{d:"M3.09082 3.49003C3.27685 3.28752 3.47523 3.09671 3.68482 2.9187",stroke:"#646D7A",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"}),(0,u.jsx)("path",{d:"M5.7627 14.2801C7.42516 14.8723 9.25463 14.7812 10.85 14.0267",stroke:"#646D7A",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,u.jsx)("defs",{children:(0,u.jsx)("clipPath",{id:"clip0_3977_6218",children:(0,u.jsx)("rect",{width:e.size,height:e.size,fill:"white"})})})]}),rl=e=>(0,u.jsxs)("svg",{width:e.size,height:e.size,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,u.jsx)("path",{d:"M8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16Z",fill:"#627EEA"}),(0,u.jsx)("path",{d:"M8.24902 1.99902V6.43423L11.9975 8.10947L8.24902 1.99902Z",fill:"white",fillOpacity:"0.602"}),(0,u.jsx)("path",{d:"M8.24947 1.99902L4.50098 8.10947L8.24947 6.43423V1.99902Z",fill:"white"}),(0,u.jsx)("path",{d:"M8.24902 10.9829V13.9966L11.9997 8.80688L8.24902 10.9829Z",fill:"white",fillOpacity:"0.602"}),(0,u.jsx)("path",{d:"M8.24947 13.9966V10.9829L4.50098 8.80688L8.24947 13.9966Z",fill:"white"}),(0,u.jsx)("path",{d:"M8.24902 10.2854L11.9975 8.10931L8.24902 6.43408V10.2854Z",fill:"white",fillOpacity:"0.2"}),(0,u.jsx)("path",{d:"M4.50098 8.10931L8.24947 10.2854V6.43408L4.50098 8.10931Z",fill:"white",fillOpacity:"0.602"})]});function ru(e){let[n,r]=(0,l.useState)(0),i=function(e){let{clientId:n}=(0,f.tNP)(),r=(0,f.SFn)();return(0,f.NW_)({walletAddress:r||"",start:10*e,count:10,clientId:n},{refetchInterval:3e4})}(n),c=(0,l.useSyncExternalStore)(nQ.subscribe,nQ.getValue),d=[],p=new Set;i.data?.page.forEach(e=>{"NOT_FOUND"!==e.status&&"NONE"!==e.status&&e.source?.transactionHash&&p.add(e.source?.transactionHash)}),c.forEach(e=>{n>0||p.has(e.transactionHash)||d.push({boughChainId:e.destination.chainId,transactionHash:e.transactionHash,boughtTokenAmount:e.destination.value,boughtTokenSymbol:e.destination.symbol,status:"PENDING"})}),i.data?.page.forEach(e=>{"NOT_FOUND"!==e.status&&"NONE"!==e.status&&e.source?.transactionHash&&d.push({boughChainId:e.destination?.token.chainId||e.quote.toToken.chainId,transactionHash:e.source?.transactionHash,boughtTokenAmount:e.destination?.amount||e.quote.toAmount,boughtTokenSymbol:e.destination?.token.symbol||e.quote.toToken.symbol||"",status:e.status,subStatus:e.subStatus})});let h=nv((0,f.xxU)()),y=(0,f.SFn)(),m=0===d.length,g=!i.data||i.data&&!i.data.hasNextPage&&0===n;return(0,u.jsxs)(o.C,{animate:"fadein",children:[(0,u.jsx)(o.C,{p:"lg",children:(0,u.jsx)(o.M,{title:"Transactions",onBack:e.onBack})}),(0,u.jsxs)(o.C,{scrollY:!0,flex:"column",fullHeight:!0,style:{minHeight:"250px",maxHeight:"370px"},children:[(0,u.jsxs)(o.C,{flex:"column",gap:"sm",px:"lg",expand:!0,children:[m&&!i.isLoading&&(0,u.jsxs)(o.C,{flex:"column",gap:"md",center:"both",color:"secondaryText",style:{minHeight:"250px"},children:[(0,u.jsx)(a.xrR,{width:o.i.xl,height:o.i.xl}),(0,u.jsx)(s.T,{children:" No Transactions "})]}),m&&i.isLoading&&(0,u.jsx)(o.C,{flex:"row",center:"both",style:{minHeight:"250px"},children:(0,u.jsx)(s.a,{size:"xl",color:"accentText"})}),d.map(e=>(0,u.jsx)(rc,{txInfo:e},e.transactionHash)),i.isLoading&&d.length>0&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(o.q,{width:"100%",height:"68px"}),(0,u.jsx)(o.q,{width:"100%",height:"68px"}),(0,u.jsx)(o.q,{width:"100%",height:"68px"})]})]}),(0,u.jsx)(o.C,{p:"lg",children:i.data&&!g&&(0,u.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:o.s.sm},children:[(0,u.jsxs)(o.B,{variant:"outline",gap:"xs",disabled:0===n,"data-disabled":0===n,style:{fontSize:o.f.sm,paddingBlock:o.s.sm},onClick:()=>{r(e=>e-1)},children:[(0,u.jsx)(a.LZ3,{width:o.i.sm,height:o.i.sm,style:{transform:"rotate(180deg)"}}),"Prev"]}),(0,u.jsxs)(o.B,{variant:"outline",gap:"xs",disabled:!i.data.hasNextPage,"data-disabled":!i.data.hasNextPage,style:{fontSize:o.f.sm,paddingBlock:o.s.sm},onClick:()=>{r(e=>e+1)},children:["Next",(0,u.jsx)(a.LZ3,{width:o.i.sm,height:o.i.sm})]})]})})]}),(0,u.jsx)(o.L,{}),(0,u.jsx)(o.C,{p:"lg",children:(0,u.jsx)(rd,{fullWidth:!0,variant:"accent",href:h.data?.explorers?.[0]?.url+"/address/"+y,target:"_blank",style:{textDecoration:"none",color:"inherit"},children:"View on Explorer"})})]})}function rc(e){var n;let{boughChainId:r,transactionHash:i,boughtTokenAmount:a,boughtTokenSymbol:f,status:l}=e.txInfo,c=nv(r),d="WAITING_BRIDGE"===(n=e.txInfo.subStatus)?{status:"Bridging",color:"accentText",loading:!0}:"PARTIAL_SUCCESS"===n?{status:"Incomplete",color:"secondaryText",loading:!1}
187:"PENDING"===l?{status:"Pending",color:"accentText",loading:!0}:"FAILED"===l?{status:"Failed",color:"danger",loading:!1}:"COMPLETED"===l?{status:"Completed",color:"success",loading:!1}:{status:"Unknown",color:"secondaryText"};return(0,u.jsx)(rh,{href:`${c.data?.explorers?.[0]?.url||""}/tx/${i}`,target:"_blank",children:(0,u.jsxs)(o.C,{flex:"row",center:"y",gap:"md",children:[(0,u.jsxs)(rp,{"data-box":!0,children:[(0,u.jsx)(rf,{size:o.i.sm}),(0,u.jsx)("div",{style:{position:"absolute",bottom:0,right:0,transform:"translate(30%, 30%)"},children:(0,u.jsx)(rl,{size:o.i.sm})})]}),(0,u.jsxs)("div",{style:{flex:1},children:[(0,u.jsxs)(o.C,{flex:"row",gap:"xs",center:"y",style:{justifyContent:"space-between"},children:[(0,u.jsx)(s.T,{color:"primaryText",children:" Buy"}),(0,u.jsxs)(s.T,{size:"sm",color:"primaryText",children:["+ ",nY(Number(a),4)," ",f]})," "]}),(0,u.jsx)(s.S,{y:"xs"}),(0,u.jsxs)(o.C,{flex:"row",center:"y",gap:"xxs",style:{justifyContent:"space-between"},children:[(0,u.jsxs)(o.C,{flex:"row",gap:"xxs",center:"y",children:[(0,u.jsx)(s.T,{size:"sm",color:d.color,children:d.status}),d.loading&&(0,u.jsx)(s.a,{size:"xs",color:"accentText"})]}),c.data?.name?(0,u.jsxs)(s.T,{size:"sm",children:[" ",c.data.name]}):(0,u.jsx)(o.q,{width:"120px",height:o.f.sm})]})]})]})})}let rd=o.B.withComponent("a"),rp=(0,o.S)(()=>{let e=(0,o.u)();return{color:e.colors.secondaryText,padding:o.s.sm,border:`2px solid ${e.colors.borderColor}`,borderRadius:o.r.lg,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"}}),rh=(0,o.v)(()=>{let e=(0,o.u)();return{unset:"all",padding:o.s.sm,borderRadius:o.r.lg,cursor:"pointer",animation:`${o.c} 300ms ease`,background:e.colors.walletSelectorButtonHoverBg,"&:hover":{textDecoration:"none",transition:"background 250ms ease",background:e.colors.secondaryButtonBg},height:"68px"}}),ry=e=>(0,u.jsxs)(o.C,{fullHeight:!0,animate:"fadein",children:[(0,u.jsx)(o.C,{p:"lg",children:(0,u.jsx)(o.M,{onBack:e.onBack,title:"Export Private Key"})}),(0,u.jsx)(o.C,{p:"md",children:(0,u.jsx)("iframe",{title:"Export In-App Wallet",style:{width:"100%",height:"250px"},allow:"clipboard-read; clipboard-write",src:`https://embedded-wallet.thirdweb.com//sdk/2022-08-12/embedded-wallet/export-private-key?clientId=${e.walletInstance?.getOptions()?.clientId}&theme=${"string"==typeof e.theme?e.theme:e.theme.type}`})})]}),rm="tw-connected-wallet",rg=e=>{let n=(0,s.u)().connectWallet,r=(0,f.AbE)(),i=(0,f.xxU)(),c=nv(i),d=(0,l.useSyncExternalStore)(nQ.subscribe,nQ.getValue).filter(e=>"PENDING"===e.status),p=(0,f.qL0)(),h=(0,f.EnH)(),m=(0,f.SFn)(),g=i&&e.displayBalanceToken?e.displayBalanceToken[i]:void 0,w=(0,f.KQd)(g),x=(0,f.Osb)(),T=(0,f.w_p)(),A=(0,f.UvD)(),E=(0,f.tNP)(),I=x?E.getWrapperWallet(x):void 0,[S,k]=(0,l.useState)(void 0),[N,j]=(0,l.useState)("main"),[D,_]=(0,l.useState)(!1),O=(0,f.eC)(),P=x?.getPersonalWallet(),L=P&&E.getWalletConfig(P),R=I&&E.getWalletConfig(I),z=!!P,B=x&&x instanceof v.t,U=m?(0,f.SyX)(m,!1):"",F=A.data?.ens||U,Z=A.data?.avatarUrl;(0,l.useEffect)(()=>{x?x.walletId===b.w.embeddedWallet?x.getLastUsedAuthStrategy().then(e=>{"apple"===e?k(C.a):"google"===e?k(C.g):"facebook"===e?k(C.f):k(void 0)}):x.walletId===b.w.smartWallet?k(C.s):k(void 0):k(void 0)},[x]),(0,l.useEffect)(()=>{D||(0,s.o)(()=>{j("main")})},[D]);let W=S||T?.meta.iconURL||"",H=Z||W,G=e.detailsBtn?(0,u.jsx)("div",{children:(0,u.jsx)(e.detailsBtn,{})}):(0,u.jsxs)(rb,{type:"button",className:`${rm} ${e.className||""}`,style:e.style,"data-test":"connected-wallet-details",children:[(0,u.jsx)(o.I,{width:o.i.lg,height:o.i.lg,src:H,className:`${rm}__wallet-icon`,style:{borderRadius:o.r.sm}}),(0,u.jsxs)(o.C,{flex:"column",gap:"xxs",children:[x?.walletId===b.w.localWallet?(0,u.jsx)(s.T,{color:"danger",size:"xs",style:{minWidth:"70px"},children:n.guest}):F?(0,u.jsx)(s.T,{size:"sm",color:"primaryText",weight:500,className:`${rm}__address`,children:F}):(0,u.jsx)(o.q,{height:o.f.sm,width:"88px"}),w.data?(0,u.jsxs)(s.T,{className:`${rm}__balance`,size:"xs",weight:500,children:[Number(w.data.displayValue).toFixed(3)," ",w.data.symbol]}):(0,u.jsx)(o.q,{height:o.f.xs,width:"82px"})]})]}),q=(0,u.jsxs)(rv,{type:"button",disabled:z,onClick:()=>{j("network-switcher")},"data-variant":"primary",children:[(0,u.jsx)("div",{style:{display:"flex",alignItems:"center",position:"relative"},children:(0,u.jsx)(t6,{chain:r||c.data,size:o.i.md,active:!0})}),(0,u.jsx)(s.T,{color:"primaryText",multiline:!0,children:r?.name||c.data?.name||`chain #${i}`}),(0,u.jsx)(rx,{width:o.i.sm,height:o.i.sm,style:{flexShrink:0,marginLeft:"auto"}})]}),Y=void 0!==e.hideTestnetFaucet&&!e.hideTestnetFaucet,V=3;e.hideReceiveButton&&(V-=1),e.hideSendButton&&(V-=1),e.hideBuyButton&&(V-=1);let Q=(0,u.jsxs)("div",{children:[(0,u.jsx)(s.S,{y:"xl"}),(0,u.jsxs)(o.C,{px:"lg",flex:"column",center:"x",children:[(0,u.jsx)(o.I,{width:o.i.xxl,height:o.i.xxl,src:H,alt:"",style:{borderRadius:o.r.sm}}),(0,u.jsx)(s.S,{y:"md"}),(0,u.jsxs)("div",{style:{display:"flex",gap:o.s.xxs,alignItems:"center",transform:"translateX(10px)"},"data-test":"connected-wallet-address","data-address":m,children:[(0,u.jsx)(s.T,{color:"primaryText",weight:500,size:"md",children:F}),(0,u.jsx)(o.g,{style:{padding:"3px"},"data-test":"copy-address",children:(0,u.jsx)(t4,{text:m||"",tip:n.copyAddress,side:"top"})})]}),(0,u.jsx)(s.S,{y:"xxs"}),(0,u.jsxs)(s.T,{weight:500,size:"sm",children:[" ",w.data?Number(w.data.displayValue).toFixed(3):(0,u.jsx)(o.q,{height:"1em",width:"100px"})," ",w.data?.symbol," "]})]}),(0,u.jsx)(s.S,{y:"lg"}),(0,u.jsxs)(o.C,{px:"lg",children:[(0,u.jsx)(rM,{}),(0,u.jsx)(rA,{}),(0,u.jsxs)(o.C,{style:{display:"grid",gridTemplateColumns:`repeat(${V}, 1fr)`,gap:o.s.sm}
187,children:[!0!==e.hideSendButton&&(0,u.jsxs)(o.B,{variant:"outline",style:{fontSize:o.f.sm,display:"flex",gap:o.s.xs,alignItems:"center",padding:o.s.sm},onClick:()=>{j("send")},children:[(0,u.jsx)(a.kcA,{width:o.i.sm,height:o.i.sm,style:{transform:"translateY(-10%) rotate(-45deg) "}}),n.send]}),!0!==e.hideReceiveButton&&(0,u.jsxs)(o.B,{variant:"outline",style:{fontSize:o.f.sm,display:"flex",gap:o.s.xs,alignItems:"center",padding:o.s.sm},onClick:()=>{j("receive")},children:[(0,u.jsx)(a.RgI,{width:o.i.sm,height:o.i.sm})," ",n.receive," "]}),!0!==e.hideBuyButton&&(0,u.jsxs)(o.B,{variant:"outline",style:{fontSize:o.f.sm,display:"flex",gap:o.s.xs,alignItems:"center",padding:o.s.sm},onClick:()=>{j("buy")},children:[(0,u.jsx)(o.C,{color:"secondaryText",flex:"row",center:"both",children:(0,u.jsx)(a.pOD,{width:o.i.sm,height:o.i.sm})}),"Buy"]})]})]}),0===V?null:(0,u.jsx)(s.S,{y:"md"}),(0,u.jsxs)(o.C,{px:"md",children:[(0,u.jsxs)(o.C,{flex:"column",style:{gap:"1px"},children:[q,(0,u.jsxs)(rv,{onClick:()=>{j("pending-tx")},style:{fontSize:o.f.sm},children:[(0,u.jsx)(a.ux3,{width:o.i.md,height:o.i.md}),(0,u.jsxs)(o.C,{flex:"row",gap:"xs",center:"y",children:[(0,u.jsx)(s.T,{color:"primaryText",children:"Transactions"}),d&&d.length>0&&(0,u.jsx)(rE,{children:d.length})]})]}),P&&L&&!e.hideSwitchToPersonalWallet&&(0,u.jsx)(rT,{wallet:P,name:n.personalWallet}),R&&I&&(0,u.jsx)(rT,{name:I.walletId===b.w.smartWallet?n.smartWallet:R.meta.name,wallet:I}),B&&T&&T.isInstalled&&T.isInstalled()&&!(0,M.i)()&&(0,u.jsxs)(rv,{type:"button",onClick:()=>{x.switchAccount(),_(!1)},children:[(0,u.jsx)(a.jH6,{width:o.i.md,height:o.i.md}),(0,u.jsx)(s.T,{color:"primaryText",children:n.switchAccount})]}),Y&&(r?.faucets&&r.faucets.length>0||r?.chainId===y.YY$.chainId)&&(0,u.jsxs)(rw,{href:r?.faucets?r.faucets[0]:"#",target:"_blank",as:"a",onClick:async e=>{r.chainId===y.YY$.chainId&&(e.preventDefault(),_(!1),await O?.wallet.requestFunds(10),await w.refetch())},style:{textDecoration:"none",color:"inherit"},children:[(0,u.jsx)(o.C,{flex:"row",center:"both",color:"secondaryText",children:(0,u.jsx)(n_,{size:o.i.md})}),n.requestTestnetFunds]}),x?.walletId===b.w.localWallet&&(0,u.jsx)("div",{children:(0,u.jsxs)(rv,{onClick:()=>{j("export")},style:{fontSize:o.f.sm},children:[(0,u.jsx)(a.RgI,{width:o.i.md,height:o.i.md}),(0,u.jsx)(s.T,{color:"primaryText",children:n.backupWallet})]})}),x?.walletId===b.w.embeddedWallet&&(0,u.jsx)("div",{children:(0,u.jsxs)(rv,{onClick:()=>{j("private-key")},style:{fontSize:o.f.sm},children:[(0,u.jsx)(a.RgI,{width:o.i.md,height:o.i.md}),(0,u.jsx)(s.T,{color:"primaryText",children:"Export Private Key"})]})}),e.detailsModalFooter&&(0,u.jsx)(e.detailsModalFooter,{close:()=>_(!1)})]}),(0,u.jsx)(s.S,{y:"md"})]}),!0!==e.hideDisconnect&&(0,u.jsxs)(o.C,{children:[(0,u.jsx)(o.L,{}),(0,u.jsx)(s.S,{y:"sm"}),(0,u.jsx)(o.C,{px:"md",children:(0,u.jsxs)(rv,{"data-variant":"danger",type:"button",onClick:()=>{p(),e.onDisconnect()},children:[(0,u.jsx)(a.iz5,{width:o.i.md,height:o.i.md}),(0,u.jsx)(s.T,{color:"primaryText",children:n.disconnectWallet})]})}),(0,u.jsx)(s.S,{y:"sm"})]}),x?.walletId===b.w.localWallet&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(o.L,{}),(0,u.jsx)(o.C,{py:"md",children:(0,u.jsx)(s.T,{size:"xs",center:!0,multiline:!0,color:"danger",balance:!0,children:n.guestWalletWarning})})]})]});return"network-switcher"===N?Q=(0,u.jsx)(na,{open:!0,theme:e.theme,chains:h,...e.networkSelector,onClose:()=>{_(!1)},onBack:()=>{j("main")}}):"export"===N?Q=(0,u.jsx)(tJ,{modalSize:"compact",localWalletConfig:T,onExport:()=>{_(!1)},walletAddress:m,walletInstance:x,onBack:()=>{j("main")}}):"private-key"===N?Q=(0,u.jsx)(ry,{theme:e.theme,walletInstance:x,onBack:()=>{j("main")}}):"send"===N&&i?Q=(0,u.jsx)(nN,{supportedTokens:e.supportedTokens,onBack:()=>{j("main")},chainId:i}):"pending-tx"===N?Q=(0,u.jsx)(ru,{onBack:()=>j("main")}):"buy"===N?Q=(0,u.jsx)(re,{onBack:()=>j("main"),supportedTokens:e.supportedTokens,onViewPendingTx:()=>j("pending-tx")}):"receive"===N&&(Q=(0,u.jsx)(ny,{iconUrl:W,onBack:()=>{j("main")}})),(0,u.jsx)(ne,{size:"compact",trigger:G,open:D,setOpen:_,children:Q})},rb=(0,o.b)(()=>{let e=(0,o.u)();return{all:"unset",background:e.colors.connectedButtonBg,border:`1px solid ${e.colors.borderColor}`,padding:`${o.s.sm} ${o.s.sm}
187`,borderRadius:o.r.lg,cursor:"pointer",display:"inline-flex",alignItems:"center",minWidth:"180px",gap:o.s.sm,boxSizing:"border-box",WebkitTapHighlightColor:"transparent",lineHeight:"normal",animation:`${o.c} 300ms ease`,[o.m.mobile]:{gap:o.s.sm,padding:`${o.s.xs} ${o.s.sm}`,img:{width:`${o.i.md}px`,height:`${o.i.md}px`}},"&:hover":{transition:"background 250ms ease",background:e.colors.connectedButtonBgHover}}}),rv=(0,o.b)(()=>{let e=(0,o.u)();return{all:"unset",padding:`${o.s.sm} ${o.s.sm}`,borderRadius:o.r.md,backgroundColor:"transparent",boxSizing:"border-box",display:"flex",alignItems:"center",width:"100%",cursor:"pointer",fontSize:o.f.md,fontWeight:500,color:e.colors.secondaryText,gap:o.s.sm,WebkitTapHighlightColor:"transparent",lineHeight:1.3,transition:"background-color 200ms ease, transform 200ms ease","&:hover":{backgroundColor:e.colors.walletSelectorButtonHoverBg,transform:"scale(1.01)",svg:{color:e.colors.accentText}},"&[disabled]":{cursor:"not-allowed",svg:{display:"none"}},svg:{color:e.colors.secondaryText,transition:"color 200ms ease"},"&[data-variant='danger']:hover svg":{color:e.colors.danger+"!important"},"&[data-variant='primary']:hover svg":{color:e.colors.primaryText+"!important"}}}),rw=rv.withComponent("a"),rx=(0,h.Z)(a.XCv)(()=>({color:(0,o.u)().colors.secondaryText}));function rT(e){let{wallet:n,name:r}=e,i=(0,f.tNP)(),l=(0,s.u)().connectWallet;return(0,u.jsxs)(rv,{type:"button",onClick:()=>{i.setConnectedWallet(n)},style:{fontSize:o.f.sm},children:[(0,u.jsx)(a.m50,{width:o.i.md,height:o.i.md}),(0,u.jsxs)(s.T,{color:"primaryText",children:[l.switchTo," ",r]})]})}let rC=(0,o.S)(()=>({width:"8px",height:"8px",borderRadius:"50%",backgroundColor:(0,o.u)().colors.success}));function rM(){let e=(0,f.Osb)(),n=(0,f.AbE)(),r=(0,f.SFn)(),i=(0,s.u)().connectWallet,[a,c]=(0,l.useState)(!1);(0,l.useEffect)(()=>{e&&e.walletId===b.w.smartWallet?e.isDeployed().then(e=>{c(e)}):c(!1)},[e]);let d=(0,u.jsxs)(o.C,{flex:"row",gap:"xxs",center:"both",children:[(0,u.jsx)(rC,{}),i.connectedToSmartWallet]});return n&&r&&e?.walletId===b.w.smartWallet?(0,u.jsxs)(u.Fragment,{children:[a?(0,u.jsx)(s.n,{color:"secondaryText",hoverColor:"primaryText",href:`https://thirdweb.com/${n.slug}/${r}/account`,target:"_blank",size:"sm",children:d}):(0,u.jsxs)(s.T,{size:"sm",children:[" ",d]}),(0,u.jsx)(s.S,{y:"md"})]}):null}function rA(){let e=function(){let e=(0,f.Osb)(),n=(0,f.SFn)();return(0,c.a)([e?.walletId,n,"embeddedWallet-email"],()=>e&&e.walletId===b.w.embeddedWallet?e.getEmail()??"":"",{retry:!1,enabled:e?.walletId===b.w.embeddedWallet})}(),n=function(){let e=(0,f.Osb)(),n=(0,f.SFn)();return(0,c.a)([e?.walletId,n,"embeddedWallet-phone-number"],()=>e&&e.walletId===b.w.embeddedWallet?e.getPhoneNumber()??"":"",{retry:!1,enabled:e?.walletId===b.w.embeddedWallet})}();if(e.data||n.data)return(0,u.jsx)(o.C,{flex:"row",center:"x",style:{paddingBottom:o.s.md},children:(0,u.jsx)(s.T,{size:"sm",children:e.data||n.data})})}let rE=(0,o.S)(()=>{let e=(0,o.u)();return{background:e.colors.primaryButtonBg,color:e.colors.primaryButtonText,fontSize:o.f.sm,fontWeight:500,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",minWidth:"22px",minHeight:"22px"}}),rI=e=>(0,u.jsx)("svg",{width:e.size,height:e.size,viewBox:"0 0 16 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,u.jsx)("path",{d:"M2 21C1.45 21 0.979333 20.8043 0.588 20.413C0.196 20.021 0 19.55 0 19V9C0 8.45 0.196 7.979 0.588 7.587C0.979333 7.19567 1.45 7 2 7H3V5C3 3.61667 3.48767 2.43733 4.463 1.462C5.43767 0.487333 6.61667 0 8 0C9.38333 0 10.5627 0.487333 11.538 1.462C12.5127 2.43733 13 3.61667 13 5V7H14C14.55 7 15.021 7.19567 15.413 7.587C15.8043 7.979 16 8.45 16 9V19C16 19.55 15.8043 20.021 15.413 20.413C15.021 20.8043 14.55 21 14 21H2ZM8 16C8.55 16 9.021 15.8043 9.413 15.413C9.80433 15.021 10 14.55 10 14C10 13.45 9.80433 12.979 9.413 12.587C9.021 12.1957 8.55 12 8 12C7.45 12 6.97933 12.1957 6.588 12.587C6.196 12.979 6 13.45 6 14C6 14.55 6.196 15.021 6.588 15.413C6.97933 15.8043 7.45 16 8 16ZM5 7H11V5C11 4.16667 10.7083 3.45833 10.125 2.875C9.54167 2.29167 8.83333 2 8 2C7.16667 2 6.45833 2.29167 5.875 2.875C5.29167 3.45833 5 4.16667 5 5V7Z",fill:"currentColor"})}),rS=e=>{let{onDone:n,modalSize:r,termsOfServiceUrl:i,privacyPolicyUrl:c}=e,d=(0,s.u)().connectWallet.signatureScreen,p=(0,f.w_p)(),h=(0,f.Osb)(),{auth:y}=(0,l.useContext)(s.M),[m,g]=(0,l.useState)("idle"),{login:v}=(0,f.f0v)(),w=(0,f.qL0)(),x=h?.walletId===b.w.safe,T=(0,f.xxU)(),C=(0,f.SFn)(),A=T&&T in M.s?M.s[T]:void 0,E=(0,l.useCallback)(async()=>{try{g("signing"),await (0,M.w)(1e3);let e=await v();y?.onLogin?.(e),n()}catch(e){g("failed"),console.error("failed to log in",e)}},[y,v,n]);return p&&h?p?.isHeadless?(0,u.jsx)(rN,{signIn:E,status:m}):(0,u.jsxs)(o.C,{animate:"fadein",fullHeight:!0,flex:"column",children:[(0,u.jsx)(o.C,{p:"lg",style:{paddingBottom:0},children:(0,u.jsx)(o.M,{title:d.instructionScreen.title})}),(0,u.jsx)(o.C,{style:{paddingTop:0,paddingBottom:o.s.xl},flex:"column",px:"compact"===r?"lg":"xxl",center:"y",expand:!0,children:"idle"===m?(0,u.jsxs)(u.Fragment,{children:[p&&(0,u.jsx)(o.C,{flex:"row",center:"x",animate:"fadein",py:"3xl",children:(0,u.jsx)(rD,{children:(0,u.jsx)(o.I,{src:p.meta.iconURL,width:"80",height:"80"})})}),(0,u.jsx)(s.T,{center:!0,multiline:!0,balance:!0,children:d.instructionScreen.instruction}),(0,u.jsx)(s.S,{y:"lg"}),(0,u.jsx)(o.B,{fullWidth:!0,variant:"accent",onClick:E,style:{alignItems:"center",padding:o.s.md},children:d.instructionScreen.signInButton}),(0,u.jsx)(s.S,{y:"sm"}),(0,u.jsx)(o.B,{fullWidth:!0,variant:"secondary",onClick:()=>{w()},style:{alignItems:"center",padding:o.s.md},children:d.instructionScreen.disconnectWallet})]}):(0,u.jsxs)(u.Fragment,{children:[p&&(0,u.jsx)(o.C,{py:"3xl",children:(0,u.jsx)(M.b,{error:"failed"===m,iconUrl:p.meta.iconURL})}),(0,u.jsxs)(o.C,{flex:"column",gap:"md",animate:"fadein",children:[(0,u.jsx)(s.T,{size:"lg",center:!0,color:"primaryText",children:"failed"===m?d.signingScreen.failedToSignIn:d.signingScreen.inProgress}),"signing"===m&&(0,u.jsx)(s.T,{center:!0,multiline:!0,balance:!0,children:x?(0,u.jsx)(rk,{}):(0,u.jsx)(u.Fragment,{children:d.signingScreen.prompt})}),x&&"signing"===m&&(0,u.jsxs)(o.C,{children:[(0,u.jsx)(s.S,{y:"sm"}),(0,u.jsxs)(o.B,{fullWidth:!0,variant:"accent",onClick:()=>{window.open(`https://app.safe.global/transactions/queue?safe=${A}:${C}`,"_blank")},style:{gap:o.s.xs,alignItems:"center"},children:[" ",d.signingScreen.approveTransactionInSafe,(0,u.jsx)(a.h0n,{width:o.i.sm,height:o.i.sm})]})]}),"failed"===m&&(0,u.jsxs)(o.C,{children:[(0,u.jsx)(s.S,{y:"sm"}),(0,u.jsxs)(o.B,{fullWidth:!0,variant:"accent",onClick:()=>{E()},style:{gap:o.s.xs,alignItems:"center",padding:o.s.md},children:[(0,u.jsx)(a.BGW,{width:o.i.sm,height:o.i.sm}),d.signingScreen.tryAgain]}),(0,u.jsx)(s.S,{y:"sm"}),(0,u.jsx)(o.B,{fullWidth:!0,variant:"secondary",onClick:()=>{w()},style:{alignItems:"center",padding:o.s.md},children:d.instructionScreen.disconnectWallet})]})]},m)]})}
187),(i||c)&&(0,u.jsx)(o.C,{p:"md",animate:"fadein",children:(0,u.jsx)(M.T,{termsOfServiceUrl:i,privacyPolicyUrl:c})})]}):(0,u.jsx)(o.C,{flex:"row",center:"both",style:{minHeight:"300px"},fullHeight:!0,children:(0,u.jsx)(s.a,{size:"xl",color:"accentText"})})};function rk(){let e=(0,s.u)().connectWallet.signatureScreen.signingScreen,{getWalletConfig:n}=(0,f.tNP)(),r=(0,f.Osb)(),i=r?.getPersonalWallet(),a=i&&n(i)?.isHeadless;return(0,u.jsx)(u.Fragment,{children:a?(0,u.jsx)(u.Fragment,{children:e.approveTransactionInSafe}):(0,u.jsx)(u.Fragment,{children:e.promptForSafe})})}function rN(e){let{signIn:n,status:r}=e,i=(0,s.u)().connectWallet.signatureScreen,c=(0,l.useRef)(!1),d=(0,f.qL0)();return(0,l.useEffect)(()=>{c.current||(c.current=!0,n())},[n]),(0,u.jsxs)(o.C,{p:"lg",fullHeight:!0,flex:"column",animate:"fadein",children:[(0,u.jsx)(o.M,{title:i.signingScreen.title}),(0,u.jsxs)(o.C,{expand:!0,flex:"row",center:"both",style:{minHeight:"250px"},children:["signing"===r&&(0,u.jsx)(s.a,{size:"xl",color:"accentText"}),"failed"===r&&(0,u.jsx)(u.Fragment,{children:(0,u.jsxs)(o.C,{children:[(0,u.jsx)(s.S,{y:"lg"}),(0,u.jsx)(s.T,{size:"lg",center:!0,color:"danger",children:i.signingScreen.failedToSignIn}),(0,u.jsx)(s.S,{y:"lg"}),(0,u.jsxs)(o.B,{fullWidth:!0,variant:"accent",onClick:()=>{n()},style:{gap:o.s.xs,alignItems:"center",padding:o.s.md},children:[(0,u.jsx)(a.BGW,{width:o.i.sm,height:o.i.sm}),i.signingScreen.tryAgain]}),(0,u.jsx)(s.S,{y:"sm"}),(0,u.jsx)(o.B,{fullWidth:!0,variant:"secondary",onClick:()=>{d()},style:{alignItems:"center",padding:o.s.md},children:i.instructionScreen.disconnectWallet})]})})]})]})}let rj=(0,p.F4)` 1880% { 189 transform: scale(0.9); 190} 191100% { 192 opacity: 0; 193 transform: scale(1.4); 194} 195`,rD=(0,o.S)(()=>({position:"relative","&::before":{content:'""',display:"block",position:"absolute",left:0,top:0,bottom:0,right:0,background:(0,o.u)().c
195olors.accentText,animation:`${rj} 2s cubic-bezier(0.175, 0.885, 0.32, 1.1) infinite`,zIndex:-1,borderRadius:o.r.xl}})),r_="tw-connect-wallet";function rO(e){let n=(0,f.Osb)(),r=(0,o.u)(),i=e.theme||r||"dark",a=(0,f.pX8)(),c=(0,s.u)(),d=(0,f.rBi)(),p="connecting"===a||"unknown"===a,h=e.btnTitle||c.connectWallet.defaultButtonTitle,y=(0,s.c)(),m=(0,l.useContext)(s.p),g=(0,f.Jgv)(),{logout:b}=(0,f.aU_)(),v=(0,f.DUm)(),{activeChainSetExplicitly:w}=(0,f.tNP)(),[x,T]=(0,l.useState)(!1),C=(0,f.SFn)(),{user:M}=(0,f.aFb)(),A=!!g?.authUrl&&!!C&&(!M?.address||C!==M?.address),E=!e.auth?.loginOptional&&A,I=(0,l.useMemo)(()=>{if(!e.supportedTokens)return tD;let n={...tD};for(let r in e.supportedTokens){let i=Number(r),a=e.supportedTokens[i];a&&(n[i]=a)}return n},[e.supportedTokens]);return(0,l.useEffect)(()=>{n||T(!1)},[n]),(0,u.jsxs)(o.o,{theme:i,children:[(0,u.jsx)(ne,{size:"compact",open:x,setOpen:e=>{e||T(!1)},children:(0,u.jsx)(rS,{modalSize:"compact",termsOfServiceUrl:e.termsOfServiceUrl,privacyPolicyUrl:e.privacyPolicyUrl,onDone:()=>T(!1)})}),n?e.switchToActiveChain&&v&&w?(0,u.jsx)(rP,{style:e.style,className:e.className,switchNetworkBtnTitle:e.switchNetworkBtnTitle}):E?(0,u.jsx)(o.B,{variant:"primary",onClick:()=>{n&&T(!0)},"data-theme":i,className:`${r_}--sign-in ${e.className||""}`,style:{minWidth:"140px",...e.style},"data-test":"sign-in-button",children:(0,u.jsxs)(o.C,{flex:"row",center:"y",gap:"sm",children:[(0,u.jsx)(rI,{size:o.i.sm}),(0,u.jsxs)("span",{children:[" ",c.connectWallet.signIn," "]})]})}):(0,u.jsx)(rg,{theme:i,networkSelector:e.networkSelector,className:e.className,style:e.style,detailsBtn:e.detailsBtn,hideTestnetFaucet:e.hideTestnetFaucet,supportedTokens:I,displayBalanceToken:e.displayBalanceToken,onDisconnect:()=>{g?.authUrl&&(b(),e?.auth?.onLogout?.())},hideSwitchToPersonalWallet:e.hideSwitchToPersonalWallet,hideDisconnect:e.hideDisconnect,detailsModalFooter:e.detailsModalFooter,hideSendButton:e.hideSendButton,hideReceiveButton:e.hideReceiveButton,hideBuyButton:e.hideBuyButton}):(0,u.jsx)(rL,{disabled:p,className:`${e.className||""} ${r_}`,"data-theme":i,"data-is-loading":p,variant:"primary",type:"button",style:{minWidth:"140px",...e.style},"aria-label":"connecting"===a?c.connectWallet.connecting:h,onClick:()=>{let n=e.modalSize||"wide";(0,s.q)()&&1!==d.length||(n="compact"),m({title:e.modalTitle||c.connectWallet.defaultModalTitle,theme:i,data:void 0,modalSize:n,termsOfServiceUrl:e.termsOfServiceUrl,privacyPolicyUrl:e.privacyPolicyUrl,welcomeScreen:e.welcomeScreen,titleIconUrl:e.modalTitleIconUrl,auth:e.auth,onConnect:e.onConnect,showThirdwebBranding:e.showThirdwebBranding}),y(!0)},"data-test":"connect-wallet-button",children:p?(0,u.jsx)(s.a,{size:"sm",color:"primaryButtonText"}):h})]})}function rP(e){let{activeChain:n}=(0,f.tNP)(),r=(0,f.o$C)(),[i,a]=(0,l.useState)(!1),o=(0,s.u)(),c=e.switchNetworkBtnTitle??o.connectWallet.switchNetwork;return(0,u.jsx)(rL,{className:`${r_}--switch-network ${e.className||""}`,variant:"primary",type:"button","data-is-loading":i,"data-test":"switch-network-button",disabled:i,onClick:async()=>{a(!0);try{await r(n.chainId)}catch{}a(!1)},style:{minWidth:"140px",...e.style},"aria-label":i?o.connectWallet.switchingNetwork:void 0,children:i?(0,u.jsx)(s.a,{size:"sm",color:"primaryButtonText"}):c})}let rL=(0,h.Z)(o.B)({animation:`${o.c} 300ms ease`}),rR=e=>(0,u.jsx)("svg",{width:e.size,height:e.size,viewBox:"0 0 129 131",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,u.jsx)("path",{d:
vendor: 45,374 bytes, line 195
195"M59.7178 0C62.7511 0 65.788 0 68.8212 0C71.4429 0.423181 74.1011 0.679982 76.6755 1.29848C103.785 7.78725 120.277 24.7723 126.755 51.5485C127.428 54.3335 127.712 57.2089 128.175 60.0446V69.8103C127.803 72.1722 127.472 74.5449 127.057 76.8995C122.582 102.298 103.177 122.722 77.9136 128.56C74.8003 129.28 71.6104 129.67 68.457 130.213H59.3537C57.3838 129.913 55.4065 129.663 53.4475 129.305C27.0442 124.491 6.91125 104.974 1.44197 78.8526C0.841148 75.9808 0.473373 73.0656 0 70.1684C0 66.9132 0 63.6579 0 60.4027C0.371416 58.0408 0.706418 55.6718 1.11425 53.3135C5.52026 28.0493 24.9905 7.50151 50.0902 1.70719C53.2618 0.97657 56.5062 0.560624 59.7178 0ZM96.8813 10.3119C96.8959 10.2865 96.9104 10.2576 96.9286 10.2323C96.8886 10.2504 96.8522 10.2648 96.8121 10.2829C96.8085 10.2287 96.8048 10.178 96.8012 10.1238C96.8303 10.1853 96.8558 10.2504 96.8849 10.3119H96.8813ZM25.1762 115.709C25.2089 115.716 25.2454 115.72 25.2781 115.727C25.249 115.749 25.2235 115.771 25.1944 115.792C25.2053 115.767 25.2162 115.742 25.2271 115.716C25.1252 115.525 25.0196 115.333 24.9176 115.141C22.7328 113.087 21.127 110.421 18.3305 109.014C18.2977 109.032 18.2613 109.05 18.2285 109.065C18.2758 109.058 18.3232 109.054 18.3705 109.047C18.4397 109.365 18.3997 109.795 18.5926 109.984C20.3587 111.687 22.1502 113.362 23.9745 115.004C24.1675 115.177 24.5972 115.083 24.9176 115.116C25.0014 115.311 25.0851 115.51 25.1725 115.706L25.1762 115.709ZM27.594 12.4567L27.2262 12.9197C27.1898 13.1439 27.1571 13.3682 27.1206 13.5924C26.8038 13.5924 26.4871 13.596 26.1703 13.5996C26.0683 13.813 25.9663 14.0264 25.8607 14.2362L25.7661 14.2652L25.8243 14.1856C25.9336 13.9686 26.0428 13.7479 26.1557 13.5309C26.4688 13.5418 26.7856 13.5526 27.0988 13.5671C27.1243 13.332 27.1498 13.0969 27.1753 12.8618C27.2954 12.7352 27.412 12.6122 27.5321 12.4856C27.543 12.511 27.554 12.5399 27.5649 12.5652C27.5758 12.529 27.5831 12.4893 27.594 12.4531V12.4567ZM106.589 111.926C106.738 111.868 106.891 111.806 107.041 111.749C107.616 111.354 108.286 111.043 108.756 110.548C110.281 108.924 111.771 107.26 113.205 105.553C113.919 104.703 114.483 103.726 115.113 102.808C113.981 103.448 112.849 104.084 111.716 104.725C111.669 104.753 111.632 104.811 111.6 104.862C110.088 107.166 108.577 109.474 107.07 111.778L106.556 111.958L106.625 112.06L106.589 111.926ZM79.6906 2.95141C79.6906 2.92971 79.6906 2.90801 79.6906 2.88631C79.6724 2.89716 79.6505 2.91163 79.6323 2.92248C79.8253 2.9478 80.0146 2.97311 80.2076 2.99843C80.0328 2.98397 79.8617 2.96588 79.6869 2.95141H79.6906ZM95.1662 8.90488C95.1116 8.90488 95.0533 8.89764 94.9987 8.90849C94.9732 8.91211 94.955 8.94828 94.9368 8.96998C95.0242 8.93381 95.1116 8.89764 95.199 8.86147C95.301 9.07125 95.3956 9.28827 95.5194 9.49082C95.5376 9.51975 95.6796 9.47273 95.7634 9.45827C95.5668 9.2738 95.3665 9.08934 95.1699 8.90126L95.1662 8.90488ZM86.7729 124.603C85.8772 124.921 84.9778 125.229 84.0893 125.565C83.94 125.623 83.8417 125.811 83.7215 125.941C83.8562 125.988 84.031 126.111 84.1184 126.068C85.0069 125.605 85.8808 125.117 86.7584 124.636C86.8021 124.621 86.8494 124.592 86.8895 124.596C86.9259 124.6 86.9623 124.643 86.9951 124.665C86.9186 124.643 86.8458 124.621 86.7693 124.603H86.7729ZM82.2431 4.35478L82.2941 4.31138V4.32223C82.5672 4.5935 82.793 5.00583 83.1207 5.11072C85.8189 5.99325 88.5317 6.82153 91.2445 7.6498C91.4193 7.70406 91.6341 7.64257 91.8271 7.63172C91.6596 7.46896 91.514 7.25917 91.3173 7.14705C88.4844 5.599 85.4912 4.56456 82.2395 4.35116L82.2431 4.35478ZM29.9609 10.9991C30.2995 11.0135 30.6928 11.1438 30.9732 11.0208C33.8389 9.75847 36.6937 8.46361 39.5376 7.15428C39.9054 6.98429 40.2331 6.70217 40.5244 6.41643C40.7319 6.21388 40.8412 5.91729 40.9941 5.66049C40.6664 5.68943 40.2913 5.62432 40.0219 5.76177C36.6573 7.49066 33.3109 9.2521 29.9609 11.0027C29.9864 11.0461 30.0119 11.0895 30.041 11.1293C30.0701 11.1655 30.1102 11.1944 30.1466 11.2233L29.9609 10.9991ZM8.93219 95.5918C8.89213 95.628 8.84844 95.6677 8.80838 95.7039C8.85208 95.6641 8.89942 95.6243 8.94311 95.5845C8.99773 96.0801 8.91398 96.6443 9.12882 97.0566C11.7397 102.034 14.7984 106.641 19.9509 109.43C19.9436 109.437 19.9363 109.445 19.9327 109.455C19.7579 108.913 19.6413 108.345 19.401 107.828C18.4943 105.875 17.6204 103.903 16.5899 102.015C16.1347 101.18 15.4283 100.417 14.6746 99.82C12.8102 98.3479 10.8512 96.9915 8.93219 95.5918ZM23.0533 112.295C23.097 112.248 23.1407 112.201 23.1844 112.15C23.1443 112.19 23.1006 112.23 23.0606 112.269C23.279 112.472 23.5449 112.646 23.7087 112.888C27.1206 117.861 32.1275 120.35 37.7861 121.818C38.1648 121.916 38.5763 121.887 38.9732 121.919C38.813 121.608 38.6709 121.283 38.4925 120.983C37.7861 119.789 37.1525 118.541 36.3259 117.434C35.8344 116.776 35.1206 116.125 34.3669 115.843C31.1917 114.657 27.9691 113.597 24.7501 112.53C24.2149 112.353 23.6177 112.367 23.0496 112.291L23.0533 112.295ZM69.8298 86.3252C73.0378 86.3252 75.4666 86.2927 77.8917 86.3397C78.9514 86.3614 79.4029 86.025 79.4284 84.9074C79.5049 81.4134 79.6432 77.9195 79.818 74.4291C79.8763 73.25 79.4757 72.9353 78.2777 72.8919C71.4903 72.6605 64.7065 72.353 57.9227 71.9986C56.8048 71.9407 56.2804 72.1107 56.204 73.3477C55.9855 76.8344 55.7015 80.3211 55.341 83.797C55.2135 85.0267 55.665 85.3595 56.8048 85.4282C61.4074 85.7067 66.0028 86.0539 69.8262 86.3216L69.8298 86.3252ZM69.9245 72.2192C72.2076 72.2192 74.9969 72.1505 77.7789 72.2481C79.2937 72.3024 79.9527 71.9371 79.869 70.2697C79.7015 66.9638 79.6796 63.6507 79.7088 60.3412C79.7197 58.8836 79.2536 58.4315 77.7315 58.3881C71.6177 58.2217 65.5076 57.9251 59.4011 57.5779C58.1994 57.5092 57.828 57.8274 57.7224 58.9776C57.3838 62.6307 56.9832 66.2838 56.528 69.9261C56.3897 71.0401 56.8776 71.2571 57.8171 71.3222C61.6842 71.5862 65.5513 71.8937 69.9281 72.2228L69.9245 72.2192ZM55.3956 74.3749C55.4247 74.0892 55.432 73.5394 55.5412 73.0149C55.7415 72.0564 55.2936 71.7852 54.4088 71.6333C47.8471 70.5048 41.2927 69.3401 34.742 68.1429C33.9481 67.9982 33.4748 68.0019 33.3655 68.9459C32.9249 72.6496 32.4115 76.3461 32.0401 80.0571C32 80.473 32.6118 81.2905 33.0269 81.3664C39.7488 82.6396 46.4852 83.8151 53.2181 85.0267C54.2267 85.2076 54.6091 84.8531 54.671 83.8115C54.853 80.7479 55.1334 77.688 55.3956 74.3749ZM54.143 71.2065C55.4757 71.3511 55.7634 70.7073 55.8726 69.5788C56.2222 65.9294 56.6264 62.2835 57.0888 58.6449C57.2272 57.5489 56.7429 57.3645 55.8253 57.2089C49.8644 56.1926 43.9108 55.1437 37.9718 54.0297C37.0178 53.8488 36.6464 54.0731 36.4461 54.9484C35.6122 58.5798 34.7638 62.2075 33.9008 65.8317C33.6823 66.754 33.8753 67.2966 34.9131 67.4955C41.3255 68.7144 47.7342 69.9659 54.1466 71.2101L54.143 71.2065ZM68.519 99.3606C71.5449 99.3606 73.97 99.3172 76.3915 99.3787C77.564 99.4077 78.1612 99.0894 78.2595 97.8198C78.5035 94.702 78.8203 91.5879 79.1808 88.4809C79.3119 87.3524 78.9514 87.0558 77.8262 87.0161C70.8093 86.7629 63.7925 86.4554 56.7793 86.0901C55.6286 86.0286 55.1334 86.2565 55.0897 87.4646C54.9805 90.5896 54.813 93.7146 54.5981 96.836C54.518 97.9753 54.8676 98.4094 56.0656 98.4781C60.417 98.7277 64.7611 99.0857 68.5153 99.3606H68.519ZM80.5244 79.623H80.4261C80.3278 81.3664 80.2659 83.1134 80.1202 84.8531C80.0365 85.8442 80.3023 86.318 81.3947 86.2095C87.7816 85.5621 94.1721 84.9616 100.555 84.2636C101.007 84.2129 101.728 83.4968 101.739 83.0772C101.826 79.3482 101.779 75.6155 101.772 71.8864C101.772 71.1486 101.488 70.852 100.654 70.9388C94.3287 71.5935 88.0001 72.2083 81.6678 72.8015C80.8339 72.8811 80.4989 73.1849 80.5171 74.0277C80.5572 75.894 80.5281 77.7603 80.5281 79.6267L80.5244 79.623ZM80.3788 65.1156C80.437 65.1156 80.4953 65.1156 80.5536 65.1156C80.5536 66.9819 80.5936 68.8518 80.5353 70.7182C80.5062 71.6911 80.7393 72.2011 81.8389 72.089C88.0474 71.4633 94.2559 70.852 100.468 70.2624C101.418 70.172 101.699 69.7271 101.579 68.8374C101.058 65.0794 100.559 61.3178 100.057 57.5598C99.9473 56.7424 99.5795 56.5217 98.7056 56.6158C93.0433 57.2234 87.3738 57.7768 81.7006 58.2868C80.7138 58.3772 80.3096 58.6557 80.3533 59.6938C80.4297 61.4986 80.3751 63.3071 80.3751 65.1119L80.3788 65.1156ZM54.1393 91.8881C54.1393 91.8881 54.1466 91.8881 54.1503 91.8881C54.2413 90.2677 54.2959 88.6401 54.4416 87.0233C54.518 86.1805 54.2304 85.8767 53.3892 85.7357C46.6527 84.5819 39.9199 83.4027 33.198 82.173C32.1675 81.9849 31.7342 82.173 31.7379 83.2581C31.7451 86.5639 31.6687 89.8734 31.7379 93.1793C31.7488 93.6386 32.3496 94.4054 32.7829 94.485C39.3774 95.7365 45.99 96.8939 52.599 98.0802C53.5385 98.2502 53.9026 97.8777 53.9136 96.93C53.9391 95.2482 54.0592 93.5663 54.1393 91.8844V91.8881ZM70.1758 44.2893C66.5199 44.018 63.8508 43.8878 61.2035 43.5912C60.0929 43.4682 59.7106 43.7395 59.5831 44.8391C59.1717 48.3656 58.7019 51.8884 58.1594 55.3969C57.9773 56.5724 58.4033 56.8653 59.4702 56.9087C65.6423 57.1619 71.8144 57.4404 77.9864 57.7406C79.2063 57.8021 79.5631 57.3211 79.4612 56.1492C79.1516 52.6118 78.8822 49.0709 78.6819 45.5263C78.62 44.4412 78.1102 44.264 77.1817 44.2784C74.5162 44.3182 71.8508 44.2929 70.1758 44.2929V44.2893ZM82.6983 99.3715C87.9782 98.7168 93.2582 98.0513 98.5417 97.4147C99.4084 97.3098 100.006 97.0747 100.14 96.0728C100.585 92.7995 101.091 89.5334 101.579 86.2637C101.728 85.2655 101.458 84.9182 100.319 85.0412C94.0665 85.714 87.8107 86.3397 81.544 86.8678C80.2695 86.9763 79.9163 87.4428 79.8471 88.593C79.7088 90.8717 79.5085 93.1504 79.2427 95.4182C78.7912 99.2919 78.762 99.2883 82.6983 99.3715ZM58.9495 44.0035C58.9714 43.4682 58.9714 43.4755 57.6423 43.2368C52.6427 42.3398 47.6396 41.4681 42.6509 40.5168C41.6823 40.3324 41.2308 40.553 40.9213 41.4789C39.7633 44.9584 38.5617 48.4234 37.3309 51.8776C37.0105 52.7782 37.1999 53.2159 38.1539 53.3822C44.1694 54.4311 50.1776 55.5162 56.204 56.5109C56.5499 56.5688 57.3146 56.019 57.3692 55.6754C57.9372 51.9318 58.4033 48.1739 58.9532 44.0035H58.9495ZM83.798 57.7225C88.5499 57.1619 93.3019 56.6122 98.0538 56.0371C98.8767 55.9358 99.8308 55.9539 99.4484 54.5903C98.4289 50.9372 97.4603 47.2696 96.488 43.6057C96.2732 42.7919 95.8071 42.6472 95.0097 42.734C90.2541 43.2476 85.4948 43.7504 80.7283 44.1518C79.6177 44.2459 79.2572 44.5497 79.3738 45.6637C79.6651 48.4777 79.8981 51.2989 80.0693 54.1237C80.2841 57.6647 80.2477 57.6683 83.798 57.7189V57.7225ZM32.6154 68.0344C32.437 67.9259 31.9673 67.5244 31.4283 67.3255C26.538 65.546 21.6222 63.8279 16.7392 62.0231C15.8835 61.7084 15.421 61.571 15.2535 62.6669C14.711 66.2404 14.092 69.7995 13.5895 73.3766C13.5239 73.8396 13.8443 74.7004 14.1939 74.8306C19.5175 76.8344 24.8667 78.7622 30.2376 80.643C30.467 80.7226 31.188 80.2162 31.2244 79.9233C31.7124 76.1617 32.1202 72.3856 32.6154 68.0308V68.0344ZM32.6919 66.8951C32.8485 66.5189 33.0851 66.1174 33.1907 65.687C34.0574 62.0629 34.8439 58.417 35.7797 54.8073C36.0565 53.7403 35.6705 53.5052 34.7893 53.1978C30.2813 51.6389 25.777 50.0547 21.3164 48.3692C20.3223 47.993 19.9181 48.116 19.594 49.0781C18.4324 52.554 17.249 56.0262 16.0364 59.4876C15.6759 60.5148 16.0328 61.0465 17.005 61.3901C21.9026 63.1226 26.7893 64.8768 31.6832 66.6202C31.909 66.6998 32.1493 66.7468 32.6955 66.8915L32.6919 66.8951ZM67.1207 110.645C69.8116 110.645 72.2404 110.598 74.6619 110.667C75.7324 110.696 76.1767 110.298 76.3405 109.282C76.7738 106.605 77.2363 103.936 77.7679 101.278C77.9828 100.207 77.5203 100.098 76.6282 100.062C69.7242 99.7874 62.8239 99.4836 55.9236 99.1364C54.9259 99.0857 54.5035 99.2774 54.5071 100.359C54.5144 102.949 54.467 105.538 54.3287 108.124C54.2595 109.383 54.7292 109.817 55.9527 109.886C59.7652 110.099 63.574 110.396 67.1207 110.642V110.645ZM53.615 104.106C53.6769 104.106 53.7351 104.106 53.797 104.106C53.797 102.844 53.7351 101.578 53.8153 100.319C53.8772 99.3642 53.6113 98.9483 52.5918 98.7783C46.0264 97.6679 39.472 96.5141 32.9249 95.306C31.8871 95.1143 31.7706 95.4471 31.8835 96.2935C32.2658 99.093 32.6518 101.892 32.9759 104.699C33.0924 105.712 33.6059 106.15 34.5672 106.32C40.4698 107.358 46.3651 108.407 52.2604 109.488C53.3637 109.691 53.655 109.257 53.6223 108.258C53.5786 106.877 53.6113 105.491 53.6113 104.106H53.615ZM30.9586 87.8552C30.9805 87.8552 31.0059 87.8552 31.0278 87.8552C31.0278 86.2927 30.9513 84.7229 31.0533 83.164C31.1225 82.0717 30.7583 81.6304 29.6951 81.2688C24.6627 79.5543 19.6596 77.7495 14.6746 75.9085C13.7351 75.5612 13.3309 75.5793 13.3673 76.6716C13.4766 80.0354 13.5166 83.4027 13.7169 86.7629C13.7497 87.3199 14.3359 88.1337 14.8566 88.329C19.8307 90.2026 24.8448 91.964 29.8444 93.7761C30.7474 94.1052 31.0096 93.8267 30.9768 92.908C30.9186 91.2262 30.9622 89.5407 30.9622 87.8552H30.9586ZM40.6009 40.2564C40.1785 40.0719 39.7524 39.8622 39.3118 39.703C35.554 38.343 31.7706 37.0518 28.0492 35.5978C27.0587 35.2108 26.6436 35.417 26.2103 36.2308C24.477 39.4752 22.7547 42.7268 20.9595 45.935C20.3769 46.9803 20.701 47.4396 21.7023 47.7941C26.152 49.3674 30.6054 50.9372 35.0369 52.5684C36.0783 52.9518 36.3915 52.5467 36.6901 51.6497C37.848 48.1594 39.0715 44.6944 40.2695 41.2185C40.3496 40.9906 40.4261 40.7628 40.6045 40.26L40.6009 40.2564ZM117.997 64.3632C117.018 60.4172 116.082 56.5688 115.062 52.742C115.004 52.5214 114.236 52.2791 113.897 52.3767C109.786 53.5776 105.69 54.8218 101.611 56.1275C101.233 56.2505 100.734 56.9124 100.774 57.2704C101.225 61.1478 101.753 65.0179 102.332 68.8772C102.383 69.2063 103.039 69.7633 103.257 69.6982C107.882 68.331 112.488 66.9023 117.083 65.4302C117.422 65.3217 117.63 64.8045 117.994 64.3632H117.997ZM81.0087 110.443C81.016 110.501 81.0269 110.555 81.0342 110.613C85.666 110.034 90.3014 109.484 94.9222 108.848C95.4903 108.768 96.3205 108.367 96.4807 107.918C97.5513 104.978 98.4762 101.983 99.4339 99.0025C99.6523 98.3262 99.4776 98.0296 98.651 98.1164C92.3187 98.7602 85.9828 99.3425 79.6541 100.015C79.2463 100.059 78.6601 100.641 78.5654 101.061C78.1539 102.88 77.8808 104.732 77.5859 106.576C77.3783 107.86 77.2181 109.155 77.036 110.443H81.0051H81.0087ZM102.518 77.131C102.518 77.131 102.529 77.131 102.533 77.131C102.533 78.9973 102.54 80.86 102.529 82.7264C102.525 83.3485 102.423 84.0827 103.414 83.7789C108.148 82.3249 112.878 80.8528 117.582 79.3156C117.946 79.1962 118.354 78.5126 118.351 78.0967C118.311 74.4291 118.172 70.7652 118.081 67.0976C118.059 66.2259 117.852 66.0053 116.89 66.3164C112.524 67.7306 108.133 69.0797 103.72 70.3456C102.682 70.6422 102.402 71.022 102.485 72.0745C102.616 73.7492 102.522 75.4419 102.522 77.1237L102.518 77.131ZM70.8895 43.5767C73.1871 43.5767 75.1243 43.537 77.0579 43.5912C78.1102 43.6201 78.4634 43.2512 78.3105 42.2168C77.8226 38.9471 77.3565 35.6774 76.9414 32.3968C76.8285 31.4962 76.4607 31.2069 75.554 31.1815C71.4429 31.0658 67.3319 30.9103 63.2245 30.6933C62.2559 30.6426 61.7861 30.8849 61.6368 31.8651C61.1562 35.0119 60.661 38.1586 60.0893 41.2945C59.8671 42.5134 60.3187 42.8968 61.4657 42.9583C64.7283 43.1391 67.9837 43.3814 70.8858 43.5731L70.8895 43.5767ZM58.3596 42.857C58.7056 42.3723 59.2372 41.9491 59.3319 41.4428C59.9181 38.2454 60.3587 35.0191 60.9559 31.8217C61.1489 30.7873 60.9122 30.4871 59.8781 30.3207C56.051 29.7058 52.2349 29.0078 48.4297 28.2771C47.5048 28.0999 46.9659 28.2771 46.5617 29.1524C45.1489 32.216 43.696 35.2614 42.2212 38.2996C41.7879 39.1894 41.7916 39.6958 42.9532 39.9092C47.9563 40.8351 52.9486 41.8153 58.356 42.857H58.3596ZM101.029 55.8743C105.457 54.3841 109.691 52.9808 113.894 51.4906C114.156 51.3965 114.414 50.5466 114.276 50.2102C112.779 46.6041 111.224 43.0197 109.611 39.4643C109.484 39.1858 108.745 38.9362 108.395 39.0375C104.863 40.0647 101.342 41.1462 97.8426 42.2819C97.5295 42.3832 97.118 43.027 97.1872 43.3091C98.1375 47.096 99.1535 50.8649 100.191 54.6301C100.29 54.9918 100.628 55.2884 101.025 55.8671L101.029 55.8743ZM82.5089 43.5731C86.4816 43.0993 90.4507 42.6183 94.4234 42.1625C95.4648 42.0432 95.9746 41.7611 95.4502 40.5783C94.0374 37.3846 92.7484 34.1329 91.2918 30.9573C91.0843 30.5016 90.1922 30.0603 89.6532 30.1001C86.0301 30.3713 82.4179 30.8235 78.7948 31.1056C77.6951 31.1888 77.4985 31.5432 77.666 32.5451C78.0993 35.1602 78.4379 37.7897 78.8094 40.4119C79.1055 42.5098 80.3375 43.5635 82.5053 43.5731H82.5089ZM118.245 81.8981C117.735 81.3881 119.017 79.8762 117.357 80.3283C112.692 81.6015 108.082 83.0772 103.479 84.5529C103.006 84.7048 102.442 85.345 102.361 85.8297C101.812 89.1537 101.397 92.4993 100.89 95.8305C100.745 96.7818 101.04 97.0675 101.946 96.7854C106.276 95.4399 110.624 94.1486 114.91 92.6838C115.583 92.4523 116.268 91.4866 116.446 90.7451C117.153 87.8226 117.662 84.8531 118.245 81.8981ZM32.1857 105.224C31.7925 101.784 31.4866 98.7313 31.0533 95.6967C30.9914 95.2699 30.3906 94.749 29.9281 94.579C24.9868 92.7778 20.0128 91.0706 15.0751 89.2622C14.0519 88.886 13.8844 89.1247 14.1102 90.0507C14.8494 93.0853 15.574 96.1271 16.3569 99.1545C16.4661 99.5704 16.8157 100.106 17.1834 100.243C21.9317 102.034 26.7019 103.77 31.4793 105.48C31.716 105.564 32.0911 105.26 32.1821 105.224H32.1857ZM65.8244 119.662C67.8854 119.662 69.9464 119.626 72.0037 119.681C72.9832 119.706 73.6023 119.449 73.8717 118.433C74.3815 116.516 74.9313 114.606 75.5358 112.714C75.8599 111.691 75.6341 111.376 74.5126 111.34C68.2786 111.134 62.0447 110.902 55.8143 110.551C54.4743 110.475 54.2704 110.924 54.3432 112.038C54.4634 113.839 54.5435 115.644 54.5472 117.449C54.5472 118.512 54.955 118.928 56.0292 118.99C59.2955 119.171 62.5544 119.435 65.8244 119.666V119.662ZM40.7174 39.2871C40.914 39.023 41.2672 38.6794 41.4639 38.2671C42.9495 35.171 44.3769 32.0496 45.8881 28.968C46.3068 28.1144 46.2558 27.778 45.2727 27.4525C42.3451 26.4831 39.4757 25.351 36.5481 24.3817C36.0783 24.2262 35.1971 24.3926 34.9131 24.7362C32.579 27.5755 30.3505 30.5052 28.0601 33.3842C27.361 34.2632 27.5977 34.737 28.5772 35.0842C32.3387 36.4116 36.0965 37.7571 39.858 39.0954C40.0292 39.1569 40.2112 39.1749 40.7137 39.2871H40.7174ZM53.757 114.577C53.6732 113.26 54.0774 111.492 53.3783 110.75C52.6209 109.947 50.833 110.103 49.493 109.839C49.3146 109.803 49.1361 109.781 48.9577 109.745C44.3259 108.877 39.6796 108.067 35.066 107.112C33.5658 106.801 33.391 107.199 33.828 108.468C34.4943 110.399 35.1243 112.342 35.7215 114.291C36.0201 115.271 36.6282 115.738 37.6368 115.923C41.6787 116.657 45.6987 117.532 49.7552 118.194C53.8881 118.867 53.9026 118.784 53.757 114.573V114.577ZM10.4215 40.8894C10.163 41.3017 9.90442 41.6128 9.75513 41.9672C8.40055 45.1863 7.09696 48.4234 5.71325 51.6316C5.2508 52.7023 5.49113 53.5305 6.34684 54.1816C8.84116 56.0732 11.3755 57.9215 13.888 59.7878C14.8603 60.5076 15.1297 60.0446 15.4392 59.0825C16.5644 55.5886 17.7369 52.1018 19.026 48.6658C19.4047 47.6566 19.0587 47.3709 18.3123 46.8537C15.8908 45.1682 13.5494 43.3634 11.1825 41.5983C10.9458 41.4211 10.7492 41.1968 10.4215 40.8894ZM97.2272 41.9564C100.996 40.6977 104.605 39.5041 108.188 38.2454C108.37 38.1803 108.534 37.3882 108.373 37.1458C106.229 33.8725 104.047 30.6245 101.804 27.4199C101.604 27.1306 100.861 26.9859 100.468 27.1016C97.8572 27.8503 95.2755 28.7112 92.6719 29.4816C91.9618 29.6914 91.6487 29.8433 92.0128 30.6824C93.4803 34.0425 94.8603 37.4424 96.3023 40.817C96.4589 41.1823 96.8157 41.4645 97.2272 41.96V41.9564ZM14.5872 61.3503C14.4961 61.2635 14.1102 60.8331 13.655 60.4931C11.0879 58.5942 8.4661 56.7604 5.94265 54.8001C5.22531 54.2394 4.90852 53.9718 4.71917 55.0677C4.11106 58.5653 3.46655 62.0592 2.93491 65.5677C2.85116 66.1247 3.10242 66.9927 3.51753 67.3255C6.24124 69.5065 9.04507 71.5899 11.8416 73.6804C12.4752 74.1543 12.7519 73.883 12.8575 73.1343C13.3855 69.3763 13.9536 65.6255 14.5872 61.3431V61.3503ZM26.1703 34.8817C25.868 34.661 25.584 34.4621 25.3073 34.2523C23.2353 32.7006 21.1197 31.2069 19.1206 29.5684C18.4288 29.0005 18.1411 29.1488 17.7369 29.7348C15.5885 32.8598 13.4511 35.9957 11.2808 39.1026C10.7346 39.8839 10.9641 40.477 11.6013 40.9653C13.8953 42.7195 16.2185 44.434 18.5198 46.1773C19.4447 46.8754 19.878 46.5933 20.3842 45.595C22.0446 42.3217 23.8289 39.1135 25.5694 35.8799C25.7406 35.5616 25.9372 35.2614 26.1666 34.878L26.1703 34.8817ZM77.6332 119.492C79.7488 119.308 81.8644 119.156 83.9764 118.935C91.5431 118.147 91.7106 118.02 95.0643 111.21C95.1189 111.101 95.1844 110.996 95.2208 110.884C95.3483 110.494 95.4648 110.099 95.585 109.709C95.1699 109.705 94.7511 109.662 94.3396 109.705C89.6387 110.182 84.9414 110.732 80.2331 111.137C76.6865 111.445 76.6828 111.362 75.7106 114.859C75.5649 115.38 75.4193 115.904 75.2627 116.422C74.6194 118.541 75.4096 119.565 77.6332 119.492ZM97.7625 108.812C102.398 107.17 106.669 105.665 110.926 104.131C111.17 104.045 111.396 103.733 111.509 103.477C112.834 100.446 114.141 97.4039 115.427 94.3584C115.529 94.1161 115.448 93.8014 115.452 93.5193C115.172 93.5772 114.884 93.6169 114.611 93.6965C110.267 94.995 105.919 96.279 101.59 97.6281C101.102 97.78 100.493 98.2177 100.341 98.6626C99.3246 101.621 98.4143 104.616 97.4967 107.607C97.4275 107.828 97.5986 108.121 97.7625 108.819V108.812ZM70.5399 30.5052C72.3205 30.5052 73.8353 30.4726 75.3501 30.516C76.3587 30.545 76.6173 30.1326 76.4061 29.2067C75.7834 26.447 75.2445 23.6692 74.5454 20.9312C74.4361 20.4971 73.6933 19.9618 73.2053 19.9257C70.5508 19.7195 67.8817 19.6869 65.2235 19.5206C64.3788 19.4663 64.0219 19.7448 63.869 20.5405C63.3592 23.199 62.8348 25.8574 62.2668 28.505C62.0228 29.6335 62.4379 30.0024 63.5485 30.0494C65.9664 30.1543 68.3842 30.3605 70.5363 30.5052H70.5399ZM60.4862 29.9011C60.8103 29.525 61.371 29.1633 61.4766 28.7003C62.1029 25.937 62.5981 23.1483 63.1917 20.3814C63.3665 19.5712 63.0897 19.3252 62.3287 19.2023C59.8162 18.7936 57.3219 18.28 54.8057 17.911C54.3323 17.8423 53.564 18.0846 53.32 18.4463C51.5176 21.0867 49.828 23.7994 48.0729 26.4723C47.534 27.2933 47.9636 27.4923 48.681 27.6297C52.4898 28.3567 56.295 29.0946 60.4862 29.9011ZM80.2841 30.3677C80.2877 30.4075 80.295 30.4473 80.2987 30.4835C83.2955 30.1182 86.2923 29.7348 89.2928 29.3984C90.2286 29.2935 90.4361 28.9607 89.93 28.1469C88.2186 25.3908 86.5727 22.5913 84.7848 19.8859C84.4898 19.4374 83.5904 19.148 82.9932 19.1806C80.7648 19.3035 78.5472 19.6508 76.3187 19.7846C75.2736 19.8461 75.1498 20.215 75.3647 21.112C75.9109 23.3871 76.366 25.6838 76.8831 27.9661C77.5167 30.762 76.7993 30.4509 79.9236 30.3822C80.0438 30.3822 80.1639 30.3713 80.2841 30.3677ZM12.5553 81.0915C12.5954 81.0915 12.6318 81.0915 12.6718 81.0915C12.6718 79.4639 12.6136 77.8363 12.6937 76.2123C12.741 75.2972 12.3805 74.8668 11.6377 74.364C8.98681 72.5809 6.42331 70.6712 3.8234 68.8084C3.53938 68.6059 3.25171 68.4033 2.96404 68.2008C2.86209 68.5914 2.65453 68.9857 2.67638 69.3691C2.85845 72.6749 3.05508 75.9772 3.31361 79.2794C3.35367 79.775 3.6122 80.4007 3.98362 80.7009C6.61266 82.8023 9.29268 84.8495 11.9763 86.8822C12.6172 87.3669 12.9413 87.1571 12.8794 86.3216C12.7447 84.5782 12.6573 82.8349 12.5517 81.0915H12.5553ZM28.7774 19.0395C28.457 19.2529 28.1293 19.4121 27.878 19.6508C25.1216 22.2622 22.3796 24.8953 19.6231 27.5031C18.9859 28.1035 19.0332 28.6642 19.6814 29.1488C21.6987 30.6679 23.716 32.1907 25.8025 33.6157C26.0829 33.8074 26.9604 33.6049 27.208 33.3011C29.5931 30.3496 31.8835 27.3259 34.2504 24.3564C34.7711 23.7053 34.6728 23.4594 34.0064 23C32.4188 21.9113 30.9222 20.6961 29.3892 19.5278C29.2035 19.3867 29.0287 19.2348 28.7811 19.0359L28.7774 19.0395ZM126.128 57.5272C125.076 53.9971 123.962 50.25 122.808 46.5173C122.786 46.4414 122.159 46.4016 121.977 46.5426C120.098 48.0364 118.223 49.5411 116.421 51.1217C116.071 51.4291 115.783 52.1308 115.874 52.5648C116.65 56.2758 117.502 59.9687 118.402 63.6543C118.471 63.9328 119.203 64.3488 119.381 64.2547C121.799 62.9454 123.995 61.354 125.499 58.9921C125.717 58.6485 125.83 58.2362 126.132 57.5309L126.128 57.5272ZM122.083 44.745C122.028 44.5388 122.017 44.4086 121.963 44.3074C120.091 40.8062 118.223 37.305 116.311 33.8255C116.253 33.7206 115.634 33.7604 115.43 33.9232C113.835 35.1963 112.259 36.4912 110.737 37.8475C110.449 38.1043 110.194 38.759 110.321 39.0664C111.825 42.6761 113.391 46.2605 115.001 49.8232C115.139 50.127 115.929 50.4959 116.057 50.3947C117.965 48.8575 119.822 47.2552 121.661 45.6312C121.905 45.4178 121.966 45.0018 122.087 44.745H122.083ZM17.4238 101.245C17.4529 101.668 17.3874 101.994 17.5075 102.225C18.8038 104.735 20.1002 107.246 21.4657 109.72C21.706 110.157 22.1939 110.573 22.6637 110.75C26.4434 112.193 30.2449 113.586 34.0465 114.964C34.3487 115.073 34.731 114.968 35.077 114.964C34.9932 114.624 34.924 114.277 34.8221 113.94C34.203 111.929 33.4966 109.944 32.9795 107.907C32.721 106.895 32.2404 106.475 31.2499 106.146C27.0041 104.743 22.8057 103.213 18.589 101.722C18.305 101.621 18.0282 101.491 17.4238 101.241V101.245ZM45.7096 14.9271C45.6878 14.9379 45.4402 14.9922 45.2763 15.1405C42.4288 17.6542 39.5849 20.1716 36.7593 22.7035C36.0492 23.34 36.6464 23.6294 37.1707 23.8175C40.0692 24.8628 42.9641 25.9081 45.8881 26.8738C46.2522 26.9931 46.9987 26.7653 47.2026 26.4578C49.0051 23.756 50.7383 21.0035 52.4534 18.2402C52.5918 18.0159 52.5153 17.3613 52.3842 17.3142C50.2395 16.504 48.0692 15.7553 45.7133 14.9271H45.7096ZM119.254 73.0873C119.214 73.0873 119.177 73.0909 119.137 73.0945C119.137 74.5376 119.174 75.9844 119.123 77.4276C119.093 78.3354 119.447 78.5995 120.135 78.0352C122.079 76.4402 124.024 74.8306 125.848 73.1017C126.354 72.6243 126.671 71.6984 126.664 70.9822C126.635 67.557 126.467 64.1317 126.329 60.7065C126.318 60.4461 126.132 60.1893 126.03 59.9325C125.808 60.1025 125.579 60.2689 125.36 60.4461C123.481 61.9435 121.653 63.5133 119.698 64.9058C118.951 65.4375 118.653 65.8896 118.747 66.7902C118.973 68.8844 119.09 70.9858 119.254 73.0873ZM91.0807 29.3948C94.5945 28.241 97.2891 27.3765 99.9582 26.4289C100.118 26.371 100.235 25.474 100.049 25.2787C97.4603 22.5949 94.8312 19.9474 92.1548 17.3504C91.8599 17.0647 91.1608 16.9706 90.7311 17.0828C89.158 17.4915 87.6287 18.0666 86.0592 18.5006C85.229 18.7285 85.1489 19.0106 85.5932 19.7231C87.3446 22.5262 89.0561 25.3547 90.742 28.194C90.9823 28.6027 91.0115 29.1344 91.0843 29.3948H91.0807ZM115.401 32.5053C115.139 32.093 114.931 31.6626 114.629 31.3081C112.452 28.7401 110.216 26.2191 108.086 23.6113C107.103 22.4105 106.487 22.4503 105.548 23.6836C104.914 24.5155 103.942 25.1376 103.024 25.6983C102.219 26.1902 102.092 26.5121 102.667 27.3367C104.801 30.3894 106.869 33.4891 108.898 36.6142C109.378 37.3556 109.775 37.7282 110.554 37.0844C111.938 35.9378 113.333 34.8021 114.684 33.6193C114.986 33.3553 115.139 32.9249 115.401 32.5089V32.5053ZM63.7197 125.876C64.5317 125.876 65.5003 125.869 66.4689 125.876C70.8021 125.916 70.762 125.902 72.5317 121.858C73.0633 120.639 72.8558 120.364 71.5267 120.339C67.2845 120.266 63.046 120.093 58.8075 119.905C54.0155 119.691 54.5472 118.44 55.1807 123.967C55.29 124.932 55.7306 125.316 56.6628 125.374C58.9605 125.515 61.2581 125.695 63.716 125.873L63.7197 125.876ZM110.263 105.679C109.87 105.679 109.575 105.614 109.32 105.69C105.438 106.819 101.56 107.944 97.6969 109.134C97.1981 109.289 96.6665 109.723 96.397 110.172C95.1444 112.291 93.9719 114.458 92.7848 116.617C92.6501 116.863 92.5882 117.149 92.4935 117.416C92.7848 117.416 93.0943 117.492 93.3601 117.409C96.6373 116.375 99.9145 115.337 103.174 114.248C103.661 114.085 104.157 113.723 104.477 113.322C106.269 111.061 108.006 108.757 109.761 106.464C109.906 106.276 110.023 106.063 110.267 105.679H110.263ZM37.3018 116.834C37.2909 116.935 37.1307 117.301 37.2508 117.492C38.2085 119.019 39.1807 120.541 40.2331 122.003C40.5207 122.4 41.0742 122.748 41.5622 122.842C45.5385 123.609 49.5258 124.328 53.5203 124.99C53.8007 125.037 54.4671 124.498 54.4561 124.256C54.3979 122.939 54.2486 121.616 53.9755 120.324C53.8954 119.945 53.3528 119.449 52.9559 119.384C47.8908 118.519 42.8111 117.72 37.3018 116.834ZM3.87074 82.8421C4.34411 84.5348 4.95221 86.3108 5.32363 88.1337C6.3869 93.3601 10.0319 96.3622 14.3905 98.7855C14.6746 98.9411 15.0278 98.97 15.3519 99.0568C15.3227 98.7711 15.3191 98.4781 15.2572 98.1996C14.5981 95.2626 13.9536 92.3257 13.2399 89.4032C13.1124 88.8824 12.7847 88.2892 12.3623 87.9818C9.78062 86.0974 7.14794 84.2817 4.52982 82.4515C4.36232 82.3321 4.14384 82.2851 3.9472 82.2055C3.929 82.3755 3.90715 82.5455 3.87074 82.8493V82.8421ZM44.7301 14.5147C44.6209 14.3267 44.5881 14.2001 44.508 14.135C43.361 13.256 42.2285 12.3554 41.0342 11.5416C40.8412 11.4078 40.3278 11.585 40.0474 11.755C36.752 13.7696 33.4748 15.8168 30.1903 17.8495C29.4839 18.2872 29.4729 18.7646 30.1138 19.2384C31.6104 20.3488 33.0888 21.4954 34.6582 22.4973C34.975 22.6998 35.8052 22.5045 36.1475 22.2043C38.8348 19.8714 41.4602 17.4698 44.1038 15.0862C44.3187 14.8945 44.5262 14.6956 44.7228 14.5111L44.7301 14.5147ZM75.1935 125.71C77.6551 125.406 80.2477 125.164 82.8075 124.733C83.7689 124.571 84.7848 124.129 85.5495 123.533C86.8239 122.538 87.9382 121.33 89.0816 120.176C89.3911 119.861 89.5622 119.413 89.7989 119.022C89.3255 119.033 88.8522 119.011 88.3824 119.055C84.4134 119.431 80.448 119.966 76.468 120.147C74.5563 120.234 73.442 120.755 72.9286 122.614C72.6337 123.681 72.0802 124.679 71.6396 125.71H75.1899H75.1935ZM126.474 75.4925C126.314 74.9464 126.223 74.6389 126.132 74.3315C125.903 74.5051 125.677 74.6823 125.448 74.8559C123.678 76.1978 121.897 77.5252 120.149 78.8924C119.712 79.236 119.133 79.6701 119.046 80.1439C118.394 83.6198 117.848 87.1173 117.273 90.6077C117.182 91.1538 117.164 91.6783 117.954 91.1972C120.557 89.6166 123.201 87.9384 124.177 84.9218C125.189 81.7968 125.753 78.5271 126.474 75.4961V75.4925ZM95.4248 13.7552C94.6783 14.4207 94.0338 15.1513 93.2436 15.6577C92.3442 16.2328 92.4716 16.58 93.1598 17.2347C95.3009 19.2746 97.4311 21.329 99.4594 23.4775C101.844 26.0057 102.026 26.06 104.619 23.633C104.881 23.3871 105.111 23.1013 105.369 22.8481C106.09 22.1464 106.036 21.5424 105.216 20.9348C102.212 18.7031 99.2263 16.4498 96.2295 14.2109C95.9928 14.0337 95.7124 13.9179 95.4248 13.7552ZM69.9099 19.1625C70.9696 19.1625 71.9382 19.1299 72.9068 19.1733C73.8426 19.2131 74.0865 18.8514 73.7989 17.9906C73.2126 16.2219 72.6992 14.4279 72.0693 12.6773C71.8653 12.1095 71.4393 11.245 71.0242 11.1872C69.4876 10.981 67.9108 11.0352 66.3487 11.0606C66.2176 11.0606 66.0501 11.5561 65.9773 11.8382C65.4821 13.7588 65.0196 15.6866 64.5135 17.6072C64.2841 18.4789 64.5972 18.8044 65.4712 18.8478C66.9823 18.9201 68.4898 19.0612 69.9099 19.1661V19.1625ZM62.7584 18.6633C63.0497 18.327 63.6032 17.9436 63.7816 17.4336C64.1967 16.2472 64.4261 14.9958 64.7392 13.7733C65.4639 10.9593 65.4712 10.9267 62.5508 10.3625C61.7898 10.2142 60.65 10.0406 60.2349 10.4421C58.3778 12.2397 56.7138 14.2398 54.9878 16.1677C54.467 16.75 54.6309 17.1298 55.3701 17.2708C57.686 17.7157 60.0055 18.1461 62.762 18.6633H62.7584ZM76.4134 19.1444C78.3906 18.9238 80.3678 18.6706 82.3487 18.4934C83.5431 18.3885 83.503 17.9544 82.8403 17.1949C81.6569 15.8349 80.3715 14.54 79.3483 13.0716C77.8444 10.9123 75.9254 10.3914 73.453 10.9267C72.5535 11.1221 72.3678 11.3137 72.681 12.1782C73.351 14.0373 73.9955 15.9145 74.4762 17.8315C74.7638 18.9853 75.3574 19.2891 76.4134 19.1408V19.1444ZM17.1725 23.7741C17.4311 24.8266 17.584 25.5861 17.8061 26.3276C18.1375 27.4308 18.5307 27.6297 19.4629 26.6604C21.5931 24.4432 23.7633 22.2441 26.1084 20.262C27.5467 19.0431 28.7192 18.034 27.4556 16.0772C27.3646 15.9362 27.35 15.7264 27.361 15.5492C27.4338 14.3447 27.0223 14.1567 26.1011 14.9271C23.5521 17.0538 20.9413 19.1082 18.4798 21.329C17.7952 21.9475 17.5476 23.0398 17.1725 23.7741ZM8.80838 35.2072C9.11425 36.2597 9.35458 37.2435 9.69323 38.1948C10.0027 39.0628 10.3414 39.193 10.9386 38.2779C12.6718 35.6087 14.3942 32.9177 16.3387 30.4039C17.4165 29.0114 18.2103 27.8684 17.005 26.1938C16.7174 25.7923 16.7647 25.1557 16.6482 24.6313C16.5863 24.3528 16.5025 24.0779 16.4261 23.7994C16.153 23.9766 15.7997 24.096 15.6177 24.3419C13.6441 26.9895 11.6377 29.619 9.77698 32.3426C9.23078 33.1419 9.12154 34.2306 8.80474 35.2072H8.80838ZM56.2877 8.43468C56.102 8.50701 55.8617 8.56488 55.6578 8.68786C52.8467 10.3553 50.0428 12.0263 47.239 13.7045C46.427 14.1928 46.802 14.5256 47.4284 14.7498C49.1361 15.3683 50.8403 16.0121 52.5772 16.5294C52.985 16.6523 53.7024 16.4751 53.9864 16.1677C55.7597 14.2688 57.4602 12.3048 59.1498 10.3336C59.2991 10.1563 59.3027 9.56316 59.219 9.52699C58.2759 9.12913 57.3 8.79999 56.2841 8.43829L56.2877 8.43468ZM84.8394 18.1714C86.5727 17.6434 88.1312 17.1659 89.6897 16.6885C90.5927 16.4136 90.7784 16.0447 89.8972 15.4479C87.4502 13.7877 84.9814 12.1565 82.5927 10.4168C81.3801 9.53422 80.2841 9.51975 78.9259 10.0623C77.9791 10.4421 77.9391 10.6048 78.5945 11.321C80.3824 13.2777 82.0902 15.3068 83.8453 17.2925C84.1366 17.6217 84.508 17.8857 84.8358 18.1714H84.8394ZM27.838 14.7064C28.1584 15.7662 28.3041 16.4787 28.6063 17.1153C28.701 17.3179 29.3273 17.5132 29.5166 17.3974C32.9723 15.3068 36.4133 13.1909 39.818 11.028C41.016 10.2648 39.5995 9.30997 39.8726 8.44914C39.4356 8.40212 38.9113 8.17787 38.5763 8.34064C35.4702 9.81272 32.3678 11.292 29.3382 12.9088C28.6609 13.2705 28.2713 14.1639 27.8343 14.71L27.838 14.7064ZM3.23714 47.9894C3.53573 48.9913 3.81976 50.0293 4.16568 51.0493C4.24579 51.2844 4.5371 51.4508 4.73009 51.6461C4.88303 51.411 5.07602 51.1904 5.17797 50.9336C6.20483 48.4234 7.09332 45.8518 8.26947 43.4176C9.22714 41.4355 10.3013 39.6054 8.65181 37.5003C8.44789 37.2399 8.47338 36.8095 8.3605 36.4659C8.28039 36.2163 8.1493 35.9848 8.04006 35.7425C7.858 35.9631 7.61038 36.1548 7.50843 36.4044C6.32135 39.3015 5.13064 42.1951 3.99818 45.1139C3.65226 46.0037 3.49932 46.9658 3.2335 47.9894H3.23714ZM122.837 89.1862C122.775 88.9837 122.727 88.8426 122.684 88.6979C122.534 88.7847 122.378 88.8607 122.24 88.9583C120.608 90.0941 118.977 91.2298 117.36 92.3836C117.076 92.5861 116.741 92.8248 116.617 93.125C115.368 96.185 114.159 99.263 112.947 102.337C112.885 102.493 112.892 102.674 112.87 102.844C113.074 102.818 113.307 102.844 113.478 102.753C113.854 102.558 114.192 102.305 114.549 102.081C117.404 100.283 118.82 97.3894 120.291 94.5573C121.205 92.7959 121.992 90.973 122.837 89.1826V89.1862ZM53.5421 6.52494C52.8102 6.72749 52.3915 6.81068 51.9946 6.95535C49.1034 8.01873 46.2012 9.05317 43.3391 10.1853C41.5476 10.8942 41.5585 11.1221 43.077 12.3012C45.3564 14.0698 45.3273 14.0301 47.7197 12.4893C49.7479 11.1835 51.8526 9.99719 53.9136 8.73488C54.3432 8.47084 54.7147 8.11277 55.1152 7.79448C54.5362 7.3279 53.9573 6.8577 53.5385 6.5177L53.5421 6.52494ZM102.107 115.854C101.364 115.951 101.098 115.959 100.85 116.027C98.0538 116.787 95.2536 117.532 92.4753 118.349C91.8781 118.527 91.27 118.888 90.8258 119.326C89.5804 120.549 88.4152 121.847 87.2281 123.127C87.0315 123.341 86.8749 123.59 86.7001 123.826C86.9769 123.811 87.2645 123.833 87.534 123.782C92.8576 122.744 97.3219 120.096 101.265 116.49C101.397 116.367 101.553 116.273 102.11 115.861L102.107 115.854ZM83.0806 7.8415C82.7238 8.14532 82.3305 8.47808 81.9336 8.81445C82.1885 9.09657 82.3997 9.43657 82.7056 9.64635C85.1344 11.3174 87.6141 12.9233 90.0174 14.6305C91.7907 15.8928 92.184 15.8964 93.7716 14.352C94.5108 13.6358 94.6273 13.1186 93.564 12.6303C90.3924 11.1618 87.239 9.66443 84.0747 8.18511C83.8053 8.05851 83.5103 7.98618 83.0806 7.83788V7.8415ZM95.5449 12.0118C95.8144 12.4856 95.971 13.1041 96.3715 13.408C99.4302 15.7481 102.536 18.0304 105.639 20.3163C105.85 20.4718 106.152 20.5007 106.411 20.5912C106.48 20.3091 106.691 19.9618 106.596 19.7557C106.039 18.544 105.704 16.9996 104.75 16.2472C102.351 14.3556 99.6596 12.8256 97.0816 11.1618C96.204 10.594 95.443 10.301 95.5486 12.0154L95.5449 12.0118ZM116.148 30.0639C115.947 29.2899 115.966 28.4363 115.554 27.9263C113.063 24.8411 110.482 21.8318 107.911 18.8116C107.82 18.7068 107.463 18.667 107.368 18.7502C107.103 18.9889 107.452 21.9584 107.732 22.2767C110.125 24.9966 112.51 27.7201 114.906 30.4401C115.135 30.7005 115.416 30.9211 115.674 31.1598C115.834 30.7909 115.995 30.4256 116.151 30.0639H116.148ZM62.4525 126.603C62.4525 126.567 62.4525 126.531 62.4525 126.495C60.7593 126.383 59.0661 126.238 57.3728 126.173C56.8376 126.151 56.2914 126.336 55.7524 126.426C56.0583 127.124 56.3023 127.858 56.7028 128.499C56.8339 128.708 57.3728 128.712 57.7297 128.73C60.3915 128.86 63.0606 129.117 65.7151 129.012C66.793 128.969 67.8562 128.162 68.8831 127.623C69.1161 127.5 69.1708 127.052 69.3055 126.752C69.0215 126.701 68.7374 126.611 68.4498 126.611C66.4507 126.6 64.4516 126.603 62.4525 126.603ZM0.666364 60.938C0.972236 62.1678 1.20892 63.2167 1.51115 64.2439C1.58034 64.4754 1.88257 64.6417 2.07556 64.837C2.14474 64.6092 2.23214 64.3849 2.27583 64.1535C2.77834 61.3756 3.0041 58.5147 3.85253 55.8454C4.51889 53.7584 4.02731 52.138 3.1097 50.4272C3.00774 50.2355 2.82567 50.0872 2.68002 49.9208C2.59627 50.1415 2.47246 50.3549 2.43241 50.5864C1.82795 54.0731 1.23805 57.5634 0.662723 60.938H0.666364ZM40.5826 8.26468C40.7793 9.6572 40.8812 10.4529 42.3159 9.8706C45.5676 8.55404 48.8849 7.40385 52.1584 6.14154C52.5044 6.00772 52.7301 5.57369 53.0105 5.2771C52.6355 5.09263 52.2131 4.68754 51.8963 4.75988C48.4734 5.5339 45.0578 6.34409 41.6678 7.24471C41.1762 7.37492 40.823 8.02596 40.5826 8.26468ZM54.2522 128.354C55.0752 128.484 55.5485 128.408 55.2281 127.352C54.9441 126.415 54.6236 125.858 53.4693 125.703C50.1776 125.261 46.9113 124.618 43.6341 124.071C43.2044 123.999 42.7602 124.032 42.3196 124.014C42.6473 124.346 42.9495 124.715 43.31 125.008C46.4925 127.627 50.5162 127.536 54.2522 128.35V128.354ZM122.928 41.8804C122.666 40.9906 122.516 40.0213 122.108 39.1713C120.885 36.6214 119.589 34.104 118.252 31.6083C117.928 31.0043 117.338 30.5413 116.872 30.0097C116.778 30.9428 116.661 31.8724 116.61 32.8055C116.599 33.0008 116.861 33.2034 116.978 33.4132C118.591 36.3067 120.197 39.2039 121.813 42.0938C122.006 42.4374 122.265 42.7412 122.491 43.0668C122.622 42.7051 122.753 42.347 122.924 41.8768L122.928 41.8804ZM95.0934 11.8961C95.1553 11.6899 95.2172 11.4837 95.2828 11.2776C94.7074 10.6555 94.2486 9.75124 93.5349 9.4655C90.5709 8.28276 87.534 7.27364 84.508 6.24643C84.1803 6.13431 83.7543 6.32239 83.3719 6.36941C83.6086 6.71302 83.7689 7.21215 84.0966 7.3713C87.4102 8.96998 90.742 10.5216 94.092 12.0444C94.3506 12.1601 94.7584 11.9539 95.0934 11.8961ZM71.0096 128.915C75.463 128.549 78.6091 127.808 81.1835 126.401C81.4348 126.263 81.6496 126.064 81.879 125.894C81.5695 125.855 81.2527 125.757 80.9468 125.779C77.8699 126.021 74.7893 126.26 71.716 126.56C71.2281 126.607 70.6892 126.857 70.3214 127.178C69.8444 127.594 69.5167 128.177 69.1234 128.687L71.006 128.915H71.0096ZM69.3565 10.3733C71.1698 10.4059 71.2281 10.3155 70.4452 8.62999C70.2449 8.19596 70.0483 7.75831 69.808 7.3496C69.3637 6.59366 68.8904 5.85581 68.4279 5.11072C68.0456 5.93176 67.5941 6.7311 67.2955 7.5847C66.3342 10.3155 66.356 10.3227 69.3565 10.3733ZM52.6318 2.81759C50.4725 3.17566 48.4188 3.39268 46.4343 3.88458C45.0615 4.22457 43.7761 4.92264 42.4689 5.50496C42.2613 5.599 42.1557 5.92453 42.0064 6.14154C42.2358 6.13431 42.4725 6.15963 42.6946 6.11261C45.9937 5.38199 49.2927 4.6586 52.5845 3.8882C52.9377 3.80501 53.229 3.4614 53.5494 3.24077C53.2254 3.09247 52.9049 2.94418 52.6318 2.81759ZM64.9286 10.1274C65.2782 9.80187 65.8025 9.52699 65.9846 9.10381C66.4361 8.0549 66.7383 6.9445 67.077 5.85219C67.1425 5.64602 67.0952 5.40731 67.0988 5.17944C66.8804 5.23731 66.6255 5.23731 66.4507 5.35667C65.5585 5.97878 64.6555 6.59366 63.8144 7.28088C63.0861 7.87767 62.4306 8.5685 61.7461 9.21593C62.711 9.49082 63.676 9.7657 64.925 10.1202L64.9286 10.1274ZM73.0815 10.5867C73.1799 10.4819 73.2818 10.377 73.3801 10.2721C73.6787 10.2504 73.9882 10.2612 74.2795 10.1997C74.7274 10.1057 75.1644 9.96464 75.605 9.84166C75.3246 9.4872 75.0988 9.06764 74.7529 8.79637C73.4784 7.7981 72.1712 6.83961 70.8567 5.88836C70.5799 5.68943 70.2377 5.5773 69.9281 5.42539C70.0228 5.79794 70.0702 6.18856 70.2231 6.53579C70.6091 7.41109 70.955 8.32255 71.4866 9.10742C71.8835 9.69337 72.5426 10.1021 73.0852 10.5904L73.0815 10.5867ZM126.824 54.6662C125.972 51.4074 125.072 47.9351 124.144 44.4665C124.042 44.0867 123.78 43.7467 123.59 43.3887C123.416 43.8263 123.201 44.2567 123.081 44.7088C123.026 44.915 123.139 45.1718 123.204 45.3961C124.162 48.6079 125.12 51.8197 126.092 55.0279C126.154 55.2305 126.358 55.3933 126.493 55.5705C126.565 55.3679 126.638 55.1654 126.82 54.6662H126.824ZM64.6446 5.11072C62.4889 5.92091 60.2386 6.75642 58.0028 7.6281C57.8972 7.66789 57.8863 8.23574 57.9008 8.23936C58.8621 8.43829 60.0565 9.04594 60.752 8.68786C62.2704 7.91022 63.5412 6.64791 64.9031 5.57007C65.0087 5.48688 65.0342 5.30603 65.0961 5.17221C64.9832 5.15774 64.8703 5.13965 64.6482 5.11072H64.6446ZM1.90442 71.749C1.94447 71.749 1.98088 71.749 2.02094 71.749C2.02094 70.4252 2.08648 69.0978 1.99545 67.7776C1.94811 67.094 1.65316 66.4177 1.42012 65.7558C1.35093 65.5604 1.11789 65.423 0.961312 65.2602C0.881203 65.4555 0.717342 65.6545 0.735549 65.8389C1.0305 69.3148 1.33637 72.7907 1.67137 76.2593C1.69322 76.5016 1.94811 76.7223 2.09012 76.9538C2.12654 76.7223 2.19936 76.4836 2.18844 76.2557C2.10469 74.7547 1.99909 73.25 1.90078 71.749H1.90442ZM77.3674 9.71869C77.7352 9.63911 77.9828 9.61741 78.2049 9.53061C78.6382 9.36061 79.0606 9.15806 79.4866 8.96636C79.1225 8.70233 78.7912 8.36957 78.387 8.18872C76.5736 7.38215 74.7384 6.61536 72.9068 5.84496C72.6992 5.75815 72.4625 5.73645 72.2404 5.68581C72.3424 5.85942 72.4006 6.08729 72.5463 6.20303C73.8644 7.25194 75.1899 8.29 76.5299 9.30636C76.7993 9.5089 77.1453 9.61379 77.3674 9.71869ZM42.6218 125.355C42.163 125.005 41.9372 124.889 41.7843 124.712C39.7379 122.31 36.5116 122.578 33.9663 121.312C33.879 121.268 33.7479 121.323 33.635 121.33C33.7151 121.456 33.7661 121.652 33.8826 121.706C36.4971 122.932 39.1152 124.144 41.737 125.345C41.8826 125.413 42.0902 125.352 42.6218 125.352V125.355ZM62.0046 4.78881C59.9108 5.19391 57.726 5.60624 55.5485 6.05112C55.3082 6.09814 55.1079 6.32962 54.8894 6.4743C55.046 6.6443 55.1662 6.89025 55.3628 6.96982C55.7852 7.14705 56.3132 7.45087 56.6737 7.33151C58.549 6.69855 60.3879 5.94985 62.2304 5.23008C62.3833 5.16859 62.4925 4.99859 62.62 4.88285C62.4489 4.85753 62.2777 4.83222 62.0046 4.79243V4.78881ZM75.3319 5.50135C75.026 5.55198 74.9131 5.57007 74.7966 5.59177C74.8986 5.7039 74.9787 5.86304 75.1061 5.92091C76.8503 6.72749 78.5872 7.55215 80.3606 8.29C80.6701 8.42021 81.1653 8.23936 81.5185 8.0766C81.635 8.02235 81.6314 7.35321 81.5695 7.33513C79.443 6.68047 77.3055 6.0692 75.3319 5.50135ZM54.4743 5.47603C56.5936 5.06732 58.4871 4.70562 60.3842 4.3367C60.4971 4.315 60.5991 4.25351 60.7083 4.2101C60.5881 4.15223 60.4643 4.03649 60.3478 4.04011C58.4179 4.145 56.488 4.23904 54.5654 4.40542C54.3178 4.42712 54.0993 4.81775 53.8699 5.03838C54.1211 5.21923 54.3687 5.40007 54.478 5.47603H54.4743ZM77.0287 4.76711C76.854 4.80328 76.5918 4.85392 76.3333 4.90817C76.5991 5.03838 76.854 5.21561 77.138 5.29518C78.5363 5.69666 79.9345 6.09452 81.3474 6.44175C81.686 6.52494 82.0756 6.40196 82.4434 6.37664C82.1667 6.10176 81.9263 5.65326 81.6023 5.58454C80.1239 5.26263 78.62 5.042 77.0324 4.77073L77.0287 4.76711ZM69.4293 1.27316C68.4789 1.19359 67.8271 1.10316 67.1717 1.09955C66.9459 1.09955 66.7201 1.30933 66.4907 1.42507C67.0697 1.89889 67.6487 2.3727 68.224 2.85014C68.5408 2.43781 68.854 2.02548 69.4256 1.27316H69.4293ZM77.2581 3.55544C77.2545 3.58799 77.2509 3.62055 77.2472 3.6531C76.8867 3.6531 76.5226 3.64225 76.1621 3.65671C75.9254 3.66756 75.6887 3.72182 75.452 3.75437C75.6705 3.82309 75.8817 3.92075 76.1038 3.9533C77.3565 4.13777 78.6091 4.31499 79.8653 4.47052C80.0583 4.49584 80.2659 4.39818 80.4662 4.3584C80.2914 4.21372 80.1312 3.98224 79.9345 3.94607C79.0497 3.78331 78.1539 3.67842 77.2618 3.55182L77.2581 3.55544ZM72.7575 1.71804C72.0073 1.59145 71.4794 1.38167 71.006 1.46124C70.5362 1.54081 70.1066 1.89889 69.6878 2.17739C69.5859 2.24611 69.6041 2.48845 69.564 2.64759C70.0192 2.59695 70.4743 2.57525 70.9222 2.48845C71.3337 2.40887 71.7379 2.27866 72.1384 2.14122C72.2768 2.0942 72.3897 1.97123 72.7575 1.71081V1.71804ZM55.5631 3.55906C57.067 3.45778 58.3269 3.37821 59.5904 3.28055C59.7579 3.26609 59.9181 3.16843 60.082 3.10694C59.9327 3.04907 59.7798 2.94418 59.6305 2.94056C58.3669 2.89716 57.1034 2.84291 55.8398 2.86822C55.5376 2.87546 55.239 3.17205 54.9368 3.33481C55.2172 3.43608 55.4975 3.53736 55.5667 3.56267L55.5631 3.55906ZM63.5267 1.05976C63.29 1.12486 63.0169 1.20082 62.7474 1.27678C62.9841 1.43592 63.2026 1.63485 63.4575 1.74698C63.7889 1.89165 64.1421 2.00739 64.4953 2.06165C64.965 2.13399 65.4457 2.13399 65.919 2.16654C65.4966 1.84825 65.1034 1.46847 64.6373 1.22614C64.3351 1.07061 63.9309 1.1104 63.5267 1.05614V1.05976ZM59.9036 1.57336C59.889 1.61677 59.8781 1.65655 59.8635 1.69996C59.7433 1.69272 59.6195 1.65655 59.5067 1.68187C59.1644 1.75421 58.8294 1.85187 58.4871 1.93867C58.793 2.0291 59.0952 2.13399 59.4047 2.20633C59.5758 2.24611 59.7615 2.23164 59.94 2.2425C60.7629 2.2859 61.5859 2.3293 62.4052 2.3727C61.5713 2.10867 60.7338 1.84102 59.8999 1.57698L59.9036 1.57336ZM54.3214 2.25696C54.7183 2.10867 55.2354 1.91335 55.7561 1.72166C55.5594 1.66017 55.3519 1.51911 55.1698 1.54805C54.4161 1.65655 53.6696 1.8157 52.9195 1.95676C53.3237 2.04356 53.7279 2.13037 54.3214 2.26058V2.25696ZM75.2008 2.97311C75.452 2.92248 75.9946 2.81397 76.5372 2.70546C75.9291 2.60419 75.3246 2.48121 74.7165 2.40887C74.4871 2.37994 74.2395 2.43419 74.0137 2.4993C73.8062 2.55717 73.6168 2.67291 73.4165 2.76333C73.6095 2.83205 73.7989 2.94056 73.9992 2.96588C74.2905 3.00205 74.5927 2.97311 75.2008 2.97311ZM127.064 58.5436C127.017 58.4496 126.966 58.3555 126.919 58.2579C126.875 58.3447 126.78 58.4459 126.795 58.5219C126.82 58.6413 126.919 58.7425 126.984 58.851C127.01 58.7498 127.035 58.6485 127.064 58.5436Z",
195fill:"currentColor"})});function rz(){let{termsOfServiceUrl:e,privacyPolicyUrl:n,welcomeScreen:r,showThirdwebBranding:i}=(0,l.useContext)(s.M),a=(0,s.u)().connectWallet;if(r&&"function"==typeof r)return(0,u.jsx)(r,{});let f=("object"==typeof r?r?.title:void 0)||a.welcomeScreen.defaultTitle,c=("object"==typeof r?r?.subtitle:void 0)||a.welcomeScreen.defaultSubtitle,d="object"==typeof r?r?.img:void 0,p=e||n;return(0,u.jsxs)(o.C,{fullHeight:!0,animate:"fadein",flex:"column",children:[(0,u.jsxs)(o.C,{expand:!0,flex:"column",center:"both",style:{minHeight:"300px"},p:"lg",children:[(0,u.jsx)(o.C,{flex:"row",center:"x",children:d?(0,u.jsx)(o.I,{src:d.src,width:d.width?String(d.width):void 0,height:d.height?String(d.height):void 0}):(0,u.jsx)(rU,{children:(0,u.jsx)(rR,{size:"150"})})}),(0,u.jsx)(s.S,{y:"xxl"}),(0,u.jsx)(s.T,{center:!0,color:"primaryText",weight:600,multiline:!0,children:f}),(0,u.jsx)(s.S,{y:"md"}),(0,u.jsx)(s.T,{color:"secondaryText",multiline:!0,style:{textAlign:"center"},children:c}),(0,u.jsx)(s.S,{y:"lg"}),(0,u.jsx)(s.n,{target:"_blank",center:!0,href:"https://blog.thirdweb.com/web3-wallet/",children:a.newToWallets})]}),(0,u.jsx)(o.C,{py:"lg",flex:"column",gap:"lg",children:(0,u.jsxs)("div",{children:[p&&(0,u.jsx)(M.T,{termsOfServiceUrl:e,privacyPolicyUrl:n}),!1!==i&&(0,u.jsx)(o.C,{style:{paddingTop:o.s.xl},children:(0,u.jsx)(M.P,{})})]})})]})}let rB=(0,p.F4)` 196 from { 197 transform: translateY(4px); 198 } 199 to { 200 transform: translateY(-4px); 201 } 202`,rU=(0,o.S)(()=>{let e=(0,o.u)();return{color:e.colors.accentText,filter:`drop-shadow(0px 6px 10px ${e.colors.accentText})`,animation:`${rB} 2s ease infinite alternate`}}),rF=e=>{let{onHide:n,onShow:r,onClose:i}=e,{screen:a,setScreen:c,initialScreen:d}=e.screenSetup,p=(0,f.rBi)(),h=(0,f.pX8)(),y=(0,f.qL0)(),m=(0,l.useContext)(s.M),g=(0,l.useContext)(s.p),b=m.title,v=m.theme,w=m.modalSize,x=m.onConnect,T="wide"===w,{user:C}=(0,f.aFb)(),A=(0,f.Jgv)(),[E,I]=(0,l.useState)(!1),S=(0,l.useCallback)(e=>{x&&x(e);let n=!m.auth?.loginOptional&&!!A?.authUrl&&!C?.address;(0,s.o)(()=>{r()}),n?c(s.r.signIn):i()},[m.auth?.loginOptional,A?.authUrl,C?.address,c,r,i,x]),k=(0,l.useCallback)(()=>{c(d),"connecting"===h&&y()},[c,d,h,y]),N=(0,f.$4A)(),j=(0,f.SFn)(),{setConnectionStatus:D,setConnectedWallet:_,createWalletInstance:O,activeWallet:P}=(0,f.tNP)();(0,l.useEffect)(()=>{P&&E&&(S(P),I(!1))},[E,P,S]);let L=(0,u.jsx)(M.e,{title:b,walletConfigs:p,onGetStarted:()=>{c(s.r.getStarted)},selectWallet:c,selectUIProps:{connect:N,setConnectionStatus:D,setConnectedWallet:_,createWalletInstance:O,connectionStatus:h}}),R=(0,u.jsx)(rz,{}),z=i=>{let a=i.connectUI||M.H;return(0,u.jsx)(a,{supportedWallets:p,theme:"string"==typeof v?v:v.type,goBack:k,connected:()=>{I(!0)},isOpen:e.isOpen,show:r,hide:n,walletConfig:i,modalSize:m.modalSize,selectionData:m.data,connect:e=>N(i,e),setConnectionStatus:D,setConnectedWallet:_,createWalletInstance:()=>O(i),connectionStatus:h,connectedWallet:P,connectedWalletAddress:j,setSelectionData:e=>{g(n=>({...n,data:e}))}})},B=(0,u.jsx)(rS,{onDone:i,modalSize:w,termsOfServiceUrl:m.termsOfServiceUrl,privacyPolicyUrl:m.privacyPolicyUrl});return(0,u.jsx)(s.t.Provider,{value:e.screenSetup,children:T?(0,u.jsxs)("div",{style:{height:"100%",display:"grid",gridTemplateColumns:"300px 1fr"},children:[(0,u.jsxs)(rW,{children:[" ",L," "]}),(0,u.jsxs)(o.C,{flex:"column",scrollY:!0,relative:!0,children:[a===s.r.signIn&&B,a===s.r.main&&(0,u.jsx)(u.Fragment,{children:R}),a===s.r.getStarted&&R,"string"!=typeof a&&z(a)]})]}):(0,u.jsxs)(o.C,{flex:"column",scrollY:!0,relative:!0,style:{maxHeight:s.l},children:[a===s.r.signIn&&B,a===s.r.main&&L,a===s.r.getStarted&&R,"string"!=typeof a&&z(a)]})})},rZ=()=>{let{theme:e,modalSize:n}=(0,l.useContext)(s.M),r=(0,s.s)(),{screen:i,setScreen:a,initialScreen:c}=r,d=(0,s.b)(),p=(0,s.c)(),[h,y]=(0,l.useState)(!1),m=(0,f.pX8)(),g=(0,l.useCallback)(()=>{p(!1),(0,s.o)(()=>{a(c)})},[c,p,a]),b=(0,f.qL0)();(0,l.useEffect)(()=>{d||(0,s.o)(()=>{y(!1)})},[d,p,i]);let v=(0,l.useCallback)(()=>y(!0),[]),w=(0,l.useCallback)(()=>y(!1),[]);return(0,u.jsx)(o.o,{theme:e,children:(0,u.jsx)(ne,{hide:h,size:n,open:d,setOpen:e=>{!h&&(p(e),e||(0,s.o)(()=>{"connecting"===m&&b(),a(c)}))},children:(0,u.jsx)(rF,{screenSetup:r,onHide:v,onShow:w,isOpen:d,onClose:g})})})},rW=(0,o.S)(()=>{let e=(0,o.u)();return{display:"flex",flexDirection:"column",overflowY:"auto",...o.n,position:"relative",borderRight:`1px solid ${e.colors.separatorLine}`}});(0,p.F4)` 203from { 204 opacity: 0; 205 transform: translateY(2px); 206 } 207 to { 208 opacity: 1; 209 transform: translateY(0); 210 } 211`;let rH=e=>({id:"signerWallet",meta:{name:"Signer",iconURL:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxwYXRoIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMTggNWgyYTIgMiAwIDAgMSAyIDJ2MTJhMiAyIDAgMCAxLTIgMkg0YTIgMiAwIDAgMS0yLTJoLjAyN0EyIDIgMCAwIDEgMiAxOC42NzRWNi43NTRhMiAyIDAgMCAxIDEuNDUtMS45MjNsMTItMy40MjhBMiAyIDAgMCAxIDE4IDMuMzI2VjV6bTAgMnY4LjI0NmEyIDIgMCAwIDEtMS40NSAxLjkyM0wxMC4xNCAxOUgyMFY3aC0yek00IDYuNzU0djExLjkybDEyLTMuNDI4VjMuMzI2TDQgNi43NTR6TTE4IDExVjloMnYyaC0yem0tNS0xYTEgMSAwIDEgMSAwLTIgMSAxIDAgMCAxIDAgMnoiIHN0eWxlPSJmaWxsOiByZ2IoMTY5LCAyMDQsIDIyNyk7Ij48L3BhdGg+PC9zdmc+"},create:n=>new w.I({...n,signer:e})});var rG={name:"@thirdweb-dev/react",version:"4.9.4"};let rq=e=>{let{supportedWallets:n,children:i,signer:a,theme:c,...d}=e;"undefined"==typeof globalThis?(rG.name,rG.version,(0,M.f)()):void 0===globalThis.X_SDK_NAME&&(globalThis.X_SDK_NAME=rG.name,globalThis.X_SDK_PLATFORM="browser",globalThis.X_SDK_VERSION=rG.version,globalThis.X_SDK_OS=(0,M.f)(),globalThis.APP_BUNDLE_ID=void 0);let p=n||M.d,h=c||"dark",y=(0,l.useMemo)(()=>a?rH(a):void 0,[a]),m=(0,l.useRef)(!1);return(0,l.useEffect)(()=>{m.current||(m.current=!0,(async()=>
211{if(p.find(e=>e.id===b.w.embeddedWallet)&&d.clientId){let{EmbeddedWalletSdk:e}=await Promise.resolve().then(r.bind(r,70840));new e({clientId:d.clientId,chain:"Ethereum"})}})())},[d.clientId,p]),(0,u.jsx)(s.x.Provider,{value:d.locale||(0,s.e)(),children:(0,u.jsx)(s.W,{theme:h,children:(0,u.jsx)(o.o,{theme:h,children:(0,u.jsxs)(f.gtM,{...d,theme:"string"==typeof h?h:h.type,supportedWallets:p,signerWallet:y,children:[i,(0,u.jsx)(rZ,{})]})})})})}},31298:function(e,n,r){"use strict";r.d(n,{paperWallet:function(){return w}});var i=r(40531),a=r(67294),o=r(78808),s=r(96714),f=r(27515),l=r(15514),u=r(24902),c=r(60323),d=r(85893),p=r(87626);r(88003),r(20640),r(92592);let h=e=>{let n=(0,s.u)().connectWallet,r=(0,s.u)().wallets.paperWallet,{createWalletInstance:i,setConnectionStatus:a,setConnectedWallet:o}=e,c=(0,f.u)(),p=async()=>{try{let e=i();a("connecting");let n=(0,l.x)("google",c);if(!n)throw Error("Failed to open google login window");await e.connect({googleLogin:{openedWindow:n,closeOpenedWindow:e=>{e.close()}}}),o(e)}catch(e){a("disconnected"),console.error(e)}};return(0,d.jsxs)("div",{children:[e.googleLoginSupported&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(m,{variant:"secondary",fullWidth:!0,onClick:()=>{p(),e.onSelect({google:!0})},children:[(0,d.jsx)(f.I,{src:u.g,width:f.i.md,height:f.i.md}),r.signInWithGoogle]}),(0,d.jsx)(s.f,{text:n.or,py:"lg"})]}),(0,d.jsx)(u.I,{onSelect:n=>e.onSelect({email:n}),placeholder:r.emailPlaceholder,name:"email",type:"email",errorMessage:e=>{let n=e.replace(/\+/g,"").toLowerCase();if(!/^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,})$/g.test(n))return r.invalidEmail},emptyErrorMessage:r.emailRequired,submitButtonText:r.submitEmail})]})},y=e=>{let n="compact"===e.modalSize,r=(0,s.u)().wallets.paperWallet,{initialScreen:i,screen:o}=(0,s.g)(),l=(0,a.useContext)(s.M);return(0,d.jsxs)(f.C,{fullHeight:!0,flex:"column",p:"lg",animate:"fadein",style:{minHeight:"250px"},children:[(0,d.jsx)(f.M,{onBack:o===e.walletConfig&&i===e.walletConfig?void 0:e.onBack,title:r.signIn}),n?(0,d.jsx)(s.S,{y:"xl"}):null,(0,d.jsx)(f.C,{expand:!0,flex:"column",center:"y",p:n?void 0:"lg",children:(0,d.jsx)(h,{walletConfig:e.walletConfig,googleLoginSupported:e.googleLoginSupported,onSelect:e.onSelect,setConnectionStatus:e.setConnectionStatus,setConnectedWallet:e.setConnectedWallet,createWalletInstance:e.createWalletInstance})}),n&&(!1!==l.showThirdwebBranding||l.termsOfServiceUrl||l.privacyPolicyUrl)&&(0,d.jsx)(s.S,{y:"xl"}),(0,d.jsxs)(f.C,{flex:"column",gap:"lg",children:[(0,d.jsx)(c.T,{termsOfServiceUrl:l.termsOfServiceUrl,privacyPolicyUrl:l.privacyPolicyUrl}),!1!==l.showThirdwebBranding&&(0,d.jsx)(c.P,{})]})]})},m=(0,o.Z)(f.B)({display:"flex",justifyContent:"center",gap:f.s.sm}),g=e=>{let n=(0,s.u)().wallets.paperWallet.emailLoginScreen,r=e.selectionData,[i,o]=(0,a.useState)(""),[l,u]=(0,a.useState)(""),{createWalletInstance:c,setConnectedWallet:h,setConnectionStatus:y}=e,[m,g]=(0,a.useState)(null),v="wide"===e.modalSize,[w,x]=(0,a.useState)("idle"),[T,C]=(0,a.useState)("sending"),M=!!("string"!=typeof T&&"AWS_MANAGED"!==T.recoveryShareManagement&&T.isNewDevice&&!T.isNewUser),A=(0,a.useCallback)(async()=>{o(""),x("idle"),C("sending");try{let e=c();g(e);let n=await e.getPaperSDK(),{isNewDevice:i,isNewUser:a,recoveryShareManagement:o}=await n.auth.sendPaperEmailLoginOtp({email:r});C({isNewDevice:i,isNewUser:a,recoveryShareManagement:o})}catch(e){console.error(e),x("idle"),C("error")}},[c,r]),E=e=>{(!M||l)&&"string"!=typeof T&&6===e.length&&I(e)},I=async n=>{if(x("idle"),m)try{x("verifying"),y("connecting"),await m.connect({email:r,otp:n,recoveryCode:M?l:void 0}),h(m),x("valid"),e.connected()}catch(e){x("invalid"),console.error(e)}},S=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{S.current||(S.current=!0,A())},[A]),(0,d.jsxs)(f.C,{fullHeight:!0,flex:"column",animate:"fadein",children:[(0,d.jsx)(f.C,{p:"lg",children:(0,d.jsx)(f.M,{title:n.title,onBack:e.goBack})}),(0,d.jsx)(f.C,{expand:!0,flex:"column",center:"y",children:(0,d.jsxs)("form",{onSubmit:e=>{e.preventDefault()},children:[(0,d.jsxs)(f.C,{flex:"column",center:"x",px:"lg",children:[!v&&(0,d.jsx)(s.S,{y:"lg"}),(0,d.jsx)(s.T,{children:n.enterCodeSendTo}),(0,d.jsx)(s.S,{y:"sm"}),(0,d.jsx)(s.T,{color:"primaryText",children:r}),(0,d.jsx)(s.S,{y:"xl"})]}),(0,d.jsx)(p.u,{isInvalid:"invalid"===w,digits:6,value:i,setValue:e=>{o(e),x("idle"),M||E(e)},onEnter:()=>{E(i)}}),M&&(0,d.jsxs)(f.C,{animate:"fadein",px:"lg",style:{textAlign:"center"},children:[(0,d.jsx)(s.S,{y:"xxl"}),(0,d.jsx)(s.T,{color:"primaryText",children:n.newDeviceDetected}),(0,d.jsx)(s.S,{y:"sm"}),(0,d.jsx)(s.T,{balance:!0,size:"sm",multiline:!0,style:{maxWidth:"350px"},children:n.enterRecoveryCode}),(0,d.jsx)(s.S,{y:"lg"}),(0,d.jsx)(s.h,{sm:!0,autoComplete:"off",required:!0,"data-error":"invalid"===w,id:"recovery-code",variant:"outline",style:{textAlign:"center"}
211,value:l,onChange:e=>u(e.target.value),placeholder:n.enterRecoveryCode})]}),"invalid"===w&&(0,d.jsxs)(f.C,{animate:"fadein",children:[(0,d.jsx)(s.S,{y:"md"}),(0,d.jsx)(s.T,{size:"sm",color:"danger",center:!0,children:M?n.invalidCodeOrRecoveryCode:n.invalidCode})]}),(0,d.jsx)(s.S,{y:"xl"}),(0,d.jsx)(f.C,{px:v?"xxl":"lg",children:"verifying"===w?(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(f.C,{flex:"row",center:"x",animate:"fadein",children:(0,d.jsx)(s.a,{size:"lg",color:"accentText"})})}):(0,d.jsx)(f.C,{animate:"fadein",children:(0,d.jsx)(f.B,{onClick:()=>E(i),variant:"accent",type:"submit",style:{width:"100%"},children:n.verify})},"btn-container")}),(0,d.jsx)(s.S,{y:"xl"}),!v&&(0,d.jsx)(f.L,{}),(0,d.jsxs)(f.C,{p:v?void 0:"lg",animate:"fadein",children:["error"===T&&(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(s.T,{size:"sm",center:!0,color:"danger",children:n.failedToSendCode})}),"sending"===T&&(0,d.jsxs)(f.C,{flex:"row",center:"both",gap:"xs",style:{textAlign:"center"},children:[(0,d.jsx)(s.T,{size:"sm",children:n.sendingCode}),(0,d.jsx)(s.a,{size:"xs",color:"secondaryText"})]}),"string"!=typeof T&&(0,d.jsx)(b,{onClick:A,type:"button",children:n.resendCode})]})]})})]})},b=(0,f.b)(()=>{let e=(0,f.u)();return{all:"unset",color:e.colors.accentText,fontSize:f.f.sm,cursor:"pointer",textAlign:"center",width:"100%","&:hover":{color:e.colors.primaryText}}}),v=e=>{let{goBack:n,modalSize:r,connected:i,createWalletInstance:o,setConnectionStatus:c,setConnectedWallet:p,connectionStatus:h}=e,y=(0,s.u)().wallets.paperWallet.googleLoginScreen,m=(0,f.u)(),g=async()=>{try{let n=o();c("connecting");let r=(0,l.x)("google",m);if(!r)throw Error("Failed to open google login window");await n.connect({googleLogin:{openedWindow:r,closeOpenedWindow:e=>{e.close()}}}),p(n),e.connected()}catch(e){c("disconnected"),console.error(e)}};return(0,a.useEffect)(()=>{"connected"===h&&i()},[h,i]),(0,d.jsx)(f.C,{animate:"fadein",flex:"column",fullHeight:!0,children:(0,d.jsxs)(f.C,{flex:"column",expand:!0,p:"lg",style:{paddingBottom:0},children:[(0,d.jsx)(f.M,{title:(0,d.jsxs)(f.C,{flex:"row",center:"both",gap:"xs",children:[(0,d.jsx)(f.I,{src:u.g,width:f.i.md,height:f.i.md}),(0,d.jsxs)(f.p,{children:[" ",y.title," "]})]}),onBack:n}),"compact"===r?(0,d.jsx)(s.S,{y:"xl"}):null,(0,d.jsxs)(f.C,{flex:"column",center:"both",expand:!0,style:{textAlign:"center",minHeight:"250px"},children:["connecting"===h&&(0,d.jsxs)(f.C,{animate:"fadein",children:[(0,d.jsx)(s.T,{color:"primaryText",multiline:!0,center:!0,style:{maxWidth:"250px"},children:y.instruction}),(0,d.jsx)(s.S,{y:"xl"}),(0,d.jsx)(f.C,{center:"x",flex:"row",children:(0,d.jsx)(s.a,{size:"lg",color:"accentText"})}),(0,d.jsx)(s.S,{y:"xxl"})]}),"disconnected"===h&&(0,d.jsxs)(f.C,{animate:"fadein",children:[(0,d.jsx)(s.T,{color:"danger",children:y.failed}),(0,d.jsx)(s.S,{y:"lg"}),(0,d.jsx)(f.B,{variant:"primary",onClick:g,children:y.retry}),(0,d.jsx)(s.S,{y:"xxl"})]})]})]})})},w=e=>{let n="AWS_MANAGED",r={oauthOptions:{providers:["google"]}},a=e?{...r,...e}:r,{oauthOptions:o}=a;return{category:"socialLogin",isHeadless:!0,id:i.a.id,recommended:a?.recommended,meta:{...i.a.meta,name:"Email",iconURL:u.e},create:e=>new i.a({...e,...a,advancedOptions:{recoveryShareManagement:"AWS_MANAGED",...a?.advancedOptions}}),selectUI:e=>(0,d.jsx)(x,{...e,recoveryShareManagement:a?.advancedOptions?.recoveryShareManagement||n,providers:o?o?.providers:void 0}),connectUI:e=>(0,d.jsx)(T,{...e,recoveryShareManagement:a?.advancedOptions?.recoveryShareManagement||n,providers:o?o?.providers:void 0})}},x=e=>{let{screen:n}=(0,s.g)();return"wide"===e.modalSize||n!==s.r.main&&"compact"===e.modalSize?(0,d.jsx)(c.W,{walletConfig:e.walletConfig,selectWallet:()=>{e.onSelect(void 0)}}):(0,d.jsx)("div",{children:(0,d.jsx)(h,{walletConfig:e.walletConfig,googleLoginSupported:"USER_MANAGED"!==e.recoveryShareManagement&&!!e.providers?.includes("google"),onSelect:e.onSelect,createWalletInstance:e.createWalletInstance,setConnectedWallet:e.setConnectedWallet,setConnectionStatus:e.setConnectionStatus})})},T=e=>{let[n,r]=(0,a.useState)(e.selectionData);if(n){let i=()=>{"wide"===e.modalSize?r(void 0):e.goBack()};return"email"in n?(0,d.jsx)(g,{...e,recoveryShareManagement:e.recoveryShareManagement,selectionData:n.email,goBack:i}):(0,d.jsx)(v,{...e,goBack:i})}return(0,d.jsx)(y,{walletConfig:e.walletConfig,googleLoginSupported:"USER_MANAGED"!==e.recoveryShareManagement&&!!e.providers?.includes("google"),modalSize:e.modalSize,onSelect:e=>{r(e)},onBack:e.goBack,createWalletInstance:e.createWalletInstance,setConnectedWallet:e.setConnectedWallet,setConnectionStatus:e.setConnectionStatus})}},60323:function(e,n,r){"use strict";r.r(n),r.d(n,{B:function(){return V},C:function(){return N},E:function(){return ey},F:function(){return eW},G:function(){return q},H:function(){return ec},P:function(){return eL},Q:function(){return P},R:function(){return ek},S:function(){return Q},T:function(){return eO},W:function(){return eB},a:function(){return ed},b:function(){return A},c:function(){return X},d:function(){return eD},e:function(){return eR},f:function(){return _},g:function(){return ez},h:function(){return eo},i:function(){return O},j:function(){return eH},k:function(){return eq},l:function(){return et},m:function(){return es},n:function(){return ef},o:function(){return Z},p:function(){return ej},q:function(){return ep},r:function(){return eE},s:function(){return eG},t:function(){return eg},u:function(){return ew},w:function(){return $},z:function(){return eT}});var i=r(42357),a=r(24528),o=r(4183),s=r(6156),f=r(36901),l=r(20034),u=r(44758),c=r(51758),d=r
211(81799),p=r(35973),h=r(11123),y=r(85560),m=r(96714),g=r(27515),b=r(67294),v=r(70917),w=r(85893),x=r(62469),T=r(43631),C=r(92592),M=r(88003);function A(e){return(0,w.jsx)(k,{"data-error":e.error,children:(0,w.jsx)("div",{"data-container":!0,style:{position:"relative",display:"flex",justifyContent:"center",alignItems:"center"},children:(0,w.jsxs)("div",{"data-img-container":!0,children:[(0,w.jsx)("svg",{viewBox:"0 0 110 110",style:{display:e.error?"none":"block"},children:(0,w.jsx)("rect",{x:"2",y:"2",width:"106",height:"106",rx:20,strokeDasharray:"132 261",strokeDashoffset:-388,strokeLinecap:"round",fill:"none",strokeWidth:4})}),(0,w.jsx)(g.I,{src:e.iconUrl,width:"80",height:"80"})]})})})}let E=(0,v.F4)` 212from { 213 stroke-dashoffset: 0px; 214} 215`,I=(0,v.F4)` 216 0% { 217 transform: translateX(0); 218 } 219 25% { 220 transform: translateX(-5px); 221 } 222 50% { 223 transform: translateX(5px); 224 } 225 75% { 226 transform: translateX(-5px); 227 } 228 100% { 229 transform: translateX(0); 230 } 231`,S=(0,v.F4)` 2320% { 233 transform: scale(0.95); 234} 235100% { 236 opacity: 0; 237 transform: scale(1.4); 238} 239`,k=(0,g.S)(()=>{let e=(0,g.u)();return{display:"flex",justifyContent:"center",position:"relative",borderRadius:g.r.xl,"[data-img-container]":{display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},"&[data-error='true'] [data-container]":{animation:`${I} 0.25s linear`},"&[data-error='true'] [data-img-container]::before":{content:'""',position:"absolute",inset:0,background:e.colors.danger,animation:`${S} 1.5s ease infinite`,borderRadius:"20px",zIndex:-1},svg:{position:"absolute",left:"-8px",top:"-8px",width:"calc(100% + 16px)",height:"calc(100% + 16px)",animation:`${g.c} 400ms ease`},img:{zIndex:100},rect:{animation:`${E} 1.2s linear infinite`,stroke:e.colors.accentText}}}),N=e=>{let{locale:n}=e,r=(0,b.useContext)(m.M);return(0,w.jsxs)(g.C,{animate:"fadein",fullHeight:!0,flex:"column",children:[(0,w.jsx)(g.C,{p:"lg",style:{paddingBottom:0},children:(0,w.jsx)(g.M,{title:e.walletName,onBack:e.hideBackButton?void 0:e.onBack})}),(0,w.jsxs)(g.C,{flex:"column",center:"y",expand:!0,px:"compact"===r.modalSize?"lg":"xxl",relative:!0,style:{paddingTop:0},children:[(0,w.jsx)(g.C,{py:"3xl",children:(0,w.jsx)(A,{error:e.errorConnecting,iconUrl:e.walletIconURL})}),(0,w.jsxs)(g.C,{animate:"fadein",style:{animationDuration:"200ms"},children:[(0,w.jsx)(m.T,{center:!0,color:"primaryText",size:"lg",weight:600,children:e.errorConnecting?n.failed:n.inProgress}),(0,w.jsx)(m.S,{y:"md"}),e.errorConnecting?(0,w.jsx)(g.C,{flex:"row",center:"x",animate:"fadein",children:(0,w.jsxs)(g.B,{fullWidth:!0,variant:"accent",onClick:e.onRetry,style:{gap:g.s.xs,alignItems:"center"},children:[(0,w.jsx)(x.BGW,{width:g.i.sm,height:g.i.sm})," ",n.tryAgain]})}):(0,w.jsx)(m.T,{balance:!0,center:!0,multiline:!0,children:n.instruction})]})]}),(0,w.jsx)(m.S,{y:"xl"}),(0,w.jsx)(g.L,{}),(0,w.jsx)(g.C,{flex:"row",center:"x",p:"lg",children:(0,w.jsx)(g.B,{variant:"link",onClick:e.onGetStarted,children:n.getStartedLink})})]})};function j(){let e=_();return!!e&&e.toLowerCase().includes("android")}function D(){let e=_();return!!e&&(e.toLowerCase().includes("ios")||e.toLowerCase().includes("mac")&&navigator.maxTouchPoints>1)}function _(){let e=(0,T.qY)(void 0);return e?.os?e.os:void 0}function O(){return!!_()&&(j()||D())}let P=e=>{let n=e.size||310;return(0,w.jsxs)("div",{style:{position:"relative",display:"flex",justifyContent:"center"},children:[e.qrCodeUri?(0,w.jsx)(R,{children:(0,w.jsx)(F,{uri:e.qrCodeUri,size:n+20,ecl:"M",clearSize:e.QRIcon?70:void 0})}):(0,w.jsxs)(U,{style:{width:`${n}px`,height:`${n}px`},children:[(0,w.jsx)("span",{"data-v1":!0}),(0,w.jsx)("span",{"data-v2":!0}),(0,w.jsx)("span",{"data-v3":!0}),(0,w.jsx)("div",{})]}),e.QRIcon&&(0,w.jsx)(L,{children:e.QRIcon})]})},L=(0,g.S)({position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",display:"flex",justifyContent:"center",alignContent:"center",zIndex:1e3}),R=(0,g.S)(()=>{let e=(0,g.u)();return{animation:`${g.c} 600ms ease`,"--ck-qr-dot-color":e.colors.primaryText,"--ck-body-background":e.colors.modalBg,"--ck-qr-background":e.colors.modalBg}}),z=(e,n)=>{let r=Array.prototype.slice.call(C.create(e,{errorCorrectionLevel:n}).modules.data,0),i=Math.sqrt(r.length);return r.reduce((e,n,r)=>(r%i==0?e.push([n]):e[e.length-1].push(n))&&e,[])},B=(0,v.F4)` 240 0%{ background-position: 100% 0; } 241 100%{ background-position: -100% 0; } 242`,U=(0,g.S)(()=>{let e=(0,g.u)();return{"--color":e.colors.skeletonBg,"--bg":e.colors.modalBg,overflow:"hidden",position:"relative",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:g.r.md,"> div":{zIndex:4,position:"relative",width:"28%",height:"28%",borderRadius:"5px",background:"var(--bg)",boxShadow:"0 0 0 7px var(--bg)"},"> span":{zIndex:4,position:"absolute",background:"var(--color)",borderRadius:"12px",width:"13.25%",height:"13.25%",boxShadow:"0 0 0 4px var(--bg)","&:before":{content:'""',position:"absolute",inset:"9px",borderRadius:"3px",boxShadow:"0 0 0 4px var(--bg)"}
242,"&[data-v1]":{top:0,left:0},"&[data-v2]":{top:0,right:0},"&[data-v3]":{bottom:0,left:0}},"&:before":{zIndex:3,content:'""',position:"absolute",inset:0,background:"repeat",backgroundSize:"1.888% 1.888%",backgroundImage:"radial-gradient(var(--color) 41%, transparent 41%)"},"&::after":{zIndex:100,content:'""',position:"absolute",inset:0,transform:"scale(1.5) rotate(45deg)",background:"linear-gradient(90deg, transparent 50%, var(--color), transparent)",backgroundSize:"200% 100%",animation:`${B} 1000ms linear infinite both`}}});function F(e){let{ecl:n="M",size:r=200,uri:i,clearSize:a=0,image:o,imageBackground:s="transparent"}=e,f=r-20,l=(0,b.useMemo)(()=>{let e=[],r=z(i,n),l=f/r.length;if([{x:0,y:0},{x:1,y:0},{x:0,y:1}].forEach(n=>{let{x:i,y:a}=n,o=(r.length-7)*l*i,s=(r.length-7)*l*a;for(let n=0;n<3;n++)e.push((0,w.jsx)("rect",{fill:n%2!=0?"var(--ck-qr-background, var(--ck-body-background))":"var(--ck-qr-dot-color)",rx:-((n-2)*5)+(0===n?2:3),ry:-((n-2)*5)+(0===n?2:3),width:l*(7-2*n),height:l*(7-2*n),x:o+l*n,y:s+l*n},`${n}-${i}-${a}`))}),o){let n=(r.length-7)*l*1,i=(r.length-7)*l*1;e.push((0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("rect",{fill:s,rx:12,ry:12,width:7*l,height:7*l,x:n+0*l,y:i+0*l}),(0,w.jsx)("foreignObject",{width:7*l,height:7*l,x:n+0*l,y:i+0*l,children:(0,w.jsx)("div",{style:{borderRadius:12,overflow:"hidden"},children:o})})]}))}let u=Math.floor((a+25)/l),c=r.length/2-u/2,d=r.length/2+u/2-1;return r.forEach((n,i)=>{n.forEach((n,a)=>{r[i][a]&&!(i<7&&a<7||i>r.length-8&&a<7||i<7&&a>r.length-8)&&(o||!(i>c&&i<d&&a>c&&a<d))&&e.push((0,w.jsx)("circle",{cx:i*l+l/2,cy:a*l+l/2,fill:"var(--ck-qr-dot-color)",r:l/3},`circle-${i}-${a}`))})}),e},[n,o,s,a,f,i]);return(0,w.jsxs)("svg",{height:f,width:f,viewBox:`0 0 ${f} ${f}`,style:{width:f,height:f},children:[(0,w.jsx)("rect",{fill:"transparent",height:f,width:f}),l]})}function Z(e){if(e.startsWith("http")){let n=document.createElement("a");n.href=e,n.target="_blank",n.rel="noreferrer noopener",n.click()}else window.location.href=e}let W=e=>(0,w.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e.size,height:e.size,viewBox:"0 0 23 28",fill:"none",children:(0,w.jsx)("path",{d:"M22.4181 21.6041C22.008 22.5506 21.5224 23.422 20.9599 24.223C20.1931 25.3151 19.5652 26.0711 19.0814 26.4908C18.3313 27.1799 17.5277 27.5327 16.6671 27.5528C16.0493 27.5528 15.3043 27.3772 14.437 27.021C13.5669 26.6664 12.7673 26.4908 12.0362 26.4908C11.2694 26.4908 10.447 26.6664 9.56734 27.021C8.68636 27.3772 7.97665 27.5628 7.43403 27.5812C6.60879 27.6164 5.78624 27.2534 4.96519 26.4908C4.44116 26.0343 3.78569 25.2516 3.00047 24.1428C2.15799 22.9587 1.46536 21.5857 0.92274 20.0203C0.341611 18.3295 0.050293 16.6922 0.050293 15.1071C0.050293 13.2914 0.44307 11.7253 1.2298 10.413C1.84809 9.35886 2.67065 8.52734 3.70014 7.91691C4.72963 7.30648 5.84199 6.99541 7.03991 6.97551C7.69538 6.97551 8.55493 7.17804 9.6231 7.57607C10.6882 7.97544 11.3722 8.17797 11.672 8.17797C11.8962 8.17797 12.656 7.94116 13.944 7.46904C15.162 7.0312 16.19 6.84991 17.0321 6.92133C19.3141 7.10529 21.0285 8.00387 22.1687 9.62276C20.1278 10.858 19.1182 12.5881 19.1383 14.8076C19.1567 16.5363 19.7846 17.9749 21.0185 19.1172C21.5777 19.6473 22.2022 20.0571 22.897 20.3481C22.7463 20.7846 22.5872 21.2027 22.4181 21.6041ZM17.1845 1.03178C17.1845 2.38678 16.6889 3.65194 15.7011 4.82296C14.509 6.21507 13.0672 7.0195 11.5036 6.89256C11.4837 6.73 11.4721 6.55892 11.4721 6.37913C11.4721 5.07833 12.039 3.68622 13.0457 2.54798C13.5484 1.97167 14.1876 1.49247 14.9628 1.11021C15.7363 0.733653 16.4679 0.525407 17.156 0.489746C17.1761 0.670889 17.1845 0.85206 17.1845 1.03178Z",fill:"#959CA0"})}),H=e=>(0,w.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e.size,height:e.size,viewBox:"0 0 190.5 190.5",children:(0,w.jsxs)("g",{transform:"translate(90.669 -507.469)",children:[(0,w.jsx)("path",{d:"M4.583 650.342c26.304 0 47.627-21.324 47.627-47.628s-21.323-47.628-47.627-47.628-47.627 21.324-47.627 47.628 21.323 47.628 47.627 47.628z",fill:"#fff",clipPath:"none",mask:"none"}),(0,w.jsx)("path",{d:"M-36.664 626.539l-41.24-71.43c-8.362 14.479-12.765 30.904-12.765 47.625s4.401 33.146 12.762 47.625 20.387 26.503 34.868 34.86 30.908 12.755 47.628 12.75l41.24-71.43v-.011c-4.177 7.244-10.188 13.26-17.428 17.443a47.62 47.62 0 0 1-47.632.007 47.62 47.62 0 0 1-17.433-17.437z",fill:"#229342",clipPath:"none",mask:"none"}),(0,w.jsx)("path",{d:"M45.826 626.536l-41.239 71.43c16.72.003 33.146-4.398 47.626-12.757s26.504-20.384 34.863-34.865a95.24 95.24 0 0 0 12.755-47.627c-.003-16.72-4.408-33.145-12.772-47.623H4.58l-.01.007a47.62 47.62 0 0 1 23.819 6.372c7.243 4.179 13.257 10.
24219 17.439 17.431a47.62 47.62 0 0 1-.001 47.633z",fill:"#fbc116",clipPath:"none",mask:"none"}),(0,w.jsx)("path",{d:"M4.583 640.43c20.824 0 37.705-16.881 37.705-37.706s-16.881-37.705-37.705-37.705-37.705 16.881-37.705 37.705 16.881 37.706 37.705 37.706z",fill:"#1a73e8",clipPath:"none",mask:"none"}),(0,w.jsx)("path",{d:"M4.583 555.097h82.479c-8.358-14.481-20.381-26.507-34.861-34.868a95.23 95.23 0 0 0-47.625-12.76c-16.72.001-33.145 4.404-47.623 12.767a95.23 95.23 0 0 0-34.856 34.872l41.24 71.43.011.006a47.62 47.62 0 0 1-.015-47.633c4.179-7.242 10.193-13.256 17.434-17.436s15.456-6.381 23.818-6.379z",fill:"#e33b2e",clipPath:"none",mask:"none"})]})}),G=e=>(0,w.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e.size,height:e.size,viewBox:"0 0 23 26",fill:"none",children:[(0,w.jsx)("path",{d:"M10.5832 12.0978L0.0976562 23.2275C0.0980507 23.2298 0.0988382 23.2317 0.0992076 23.2341C0.420793 24.4427 1.52467 25.3326 2.83473 25.3326C3.35844 25.3326 3.85012 25.191 4.27179 24.9424L4.30528 24.9228L16.1087 18.1117L10.5838 12.0977",fill:"#EB3131"}),(0,w.jsx)("path",{d:"M21.1922 10.2046L21.1821 10.1977L16.0862 7.2435L10.345 12.3523L16.1061 18.1127L21.1752 15.1879C22.0639 14.7081 22.6672 13.7712 22.6672 12.6908C22.6672 11.6182 22.072 10.6859 21.1922 10.2046Z",fill:"#F6B60B"}),(0,w.jsx)("path",{d:"M0.0961678 2.10416C0.0331317 2.33661 0 2.58009 0 2.83292V22.5002C0 22.7526 0.0327407 22.9969 0.0965672 23.2285L10.9441 12.3832L0.0965672 2.10444",fill:"#5778C5"}),(0,w.jsx)("path",{d:"M10.6603 12.6667L16.088 7.24061L4.29785 0.404818C3.8693 0.148138 3.36912 0 2.83391 0C1.52384 0 0.418474 0.891502 0.0968301 2.10147C0.0964356 2.10265 0.0964355 2.10347 0.0964355 2.1045L10.6603 12.6669",fill:"#3BAD49"})]}),q=e=>{let{walletName:n,walletIconURL:r,appleStoreLink:i,googlePlayStoreLink:a,chromeExtensionLink:o,header:s,footer:f,onBack:l,locale:u}=e,[c,d]=(0,b.useState)("base"),p=(0,m.u)().connectWallet.download,h=l?()=>{"base"===c?l():d("base")}:void 0;return(0,w.jsx)(g.C,{fullHeight:!0,flex:"column",animate:"fadein",children:(0,w.jsxs)(g.C,{expand:!0,flex:"column",p:"lg",children:["android-scan"===c&&a&&(0,w.jsx)(Y,{platformIcon:(0,w.jsx)(G,{size:g.i.md}),url:a,platform:"Google Play",walletName:n,walletIconURL:r,onBack:h,locale:{scanToDownload:u.scanToDownload}}),"ios-scan"===c&&i&&(0,w.jsx)(Y,{platformIcon:(0,w.jsx)(W,{size:g.i.md}),url:i,platform:"App Store",walletName:n,walletIconURL:r,onBack:h,locale:{scanToDownload:u.scanToDownload}}),"base"===c&&(0,w.jsxs)(g.C,{expand:!0,flex:"column",children:[s||(0,w.jsx)(g.M,{onBack:h,title:n}),(0,w.jsx)(m.S,{y:"xl"}),(0,w.jsx)(g.C,{expand:!0,animate:"fadein",flex:"column",center:"y",style:{minHeight:"250px"},children:(0,w.jsxs)(g.C,{flex:"column",gap:"xs",children:[o&&(0,w.jsxs)(V,{onClick:()=>{Z(o)},children:[(0,w.jsx)(H,{size:g.i.lg}),(0,w.jsx)("span",{children:p.chrome})]}),a&&(0,w.jsxs)(V,{as:"button",onClick:()=>{O()?Z(a):d("android-scan")},children:[(0,w.jsx)(G,{size:g.i.lg}),(0,w.jsx)("span",{children:p.android})]}),i&&(0,w.jsxs)(V,{as:"button",onClick:()=>{O()?Z(i):d("ios-scan")},children:[(0,w.jsx)(W,{size:g.i.lg}),(0,w.jsx)("span",{children:p.iOS})]})]})})]}),!("android-scan"===c||"ios-scan"===c)&&f]})})},Y=e=>(0,w.jsxs)(g.C,{animate:"fadein",expand:!0,children:[(0,w.jsx)(g.M,{title:e.walletName,onBack:e.onBack}),(0,w.jsx)(m.S,{y:"xl"}),(0,w.jsxs)(g.C,{flex:"column",expand:!0,center:"both",style:{textAlign:"center"},children:[(0,w.jsx)(P,{qrCodeUri:e.url,QRIcon:(0,w.jsx)(g.I,{src:e.walletIconURL,width:g.i.xxl,height:g.i.xxl})}),(0,w.jsx)(m.S,{y:"xl"}),(0,w.jsx)(m.T,{multiline:!0,center:!0,balance:!0,children:e.locale.scanToDownload}),(0,w.jsx)(m.S,{y:"xs"})]})]}),V=(0,g.b)(()=>{let e=(0,g.u)();return{all:"unset",textDecoration:"none",padding:`${g.s.sm} ${g.s.md}`,borderRadius:g.r.sm,display:"flex",alignItems:"center",gap:g.s.md,cursor:"pointer",boxSizing:"border-box",width:"100%",fontWeight:500,color:e.colors.secondaryButtonText,background:e.colors.secondaryButtonBg,transition:"100ms ease","&:hover":{background:e.colors.secondaryButtonHoverBg,textDecoration:"none",color:e.colors.primaryText}}}),Q=e=>{let n=(0,b.useContext)(m.M);return(0,w.jsxs)(g.C,{fullHeight:!0,flex:"column",animate:"fadein",children:[(0,w.jsx)(g.C,{p:"lg",children:(0,w.jsx)(g.M,{onBack:e.hideBackButton?void 0:e.onBack,title:e.walletName})}),(0,w.jsx)(m.S,{y:"sm"}),(0,w.jsx)(g.C,{expand:!0,flex:"column",px:"lg",center:"both",children:(0,w.jsxs)("div",{style:{textAlign:"center"},children:[(0,w.jsx)(P,{qrCodeUri:e.qrCodeUri,QRIcon:(0,w.jsx)(g.I,{width:g.i.xxl,height:g.i.xxl,src:e.walletIconURL})}),(0,w.jsx)(m.S,{y:"lg"}),(0,w.jsx)(m.T,{center:!0,multiline:!0,balance:!0,style:{paddingInline:g.s.lg},children:e.qrScanInstruction})]})}),(0,w.jsx)(m.S,{y:"lg"}),(0,w.jsx)(g.h,{style:{border:"compact"===n.modalSize?void 0:"none"},children:(0,w.jsx)(g.B,{variant:"link",onClick:e.onGetStarted,style:{fontSize:g.f.sm,textAlign:"center"},children:e.getStartedLink})})]})},K=e=>{let{walletConfig:n,onConnected:r,onGetStarted:i,onBack:a,hideBackButton:o,setConnectionStatus:s,setConnectedWallet:f}=e,l=(0,m.u)().wallets.coinbaseWallet,u=(0,M.xUo)(),[c,d]=(0,b.useState)(void 0),{chainToConnect:p}=(0,M.tNP)(),h=(0,b.useRef)(!1);return(0,b.useEffect)(()=>{h.current||(h.current=!0,(async()=>{let e=u(n);d(await e.getQrUrl()||void 0),s("connecting");try{await e.connect({chainId:p?.chainId}),f(e),r()}catch{s("disconnected")}})())},[u,r,n,p?.chainId,f,s]),(0,w.jsx)(Q,{qrScanInstruction:l.scanScreen.instruction,onBack:a,onGetStarted:i,qrCodeUri:c,walletName:n.meta.name,walletIconURL:n.meta.iconURL,hideBackButton:o,getStartedLink:l.getStartedLink})},$=e=>new Promise(n=>setTimeout(n,e)),J=e=>{let{walletConfig:n,connected:r,goBack:i,supportedWallets:a,setConnectedWallet:o,setConnectionStatus:s,connect:f}=e,{meta:l}=n,[u,c]=(0,b.useState)("loading"),d=(0,m.u)().wallets.coinbaseWallet,[p,h]=(0,b.useState)(!1),y=1===a.length,g=(0,b.useCallback)(async()=>{try{h(!1),v.current=!0,await $(1e3),c("connecting"),await f(),r()}catch(e){h(!0),console.error(e)}},[r,f]),v=(0,b.useRef)(!1);return((0,b.useEffect)(()=>
242{if("loading"!==u||v.current)return;let e=!!n.isInstalled&&n.isInstalled();(async()=>{e?g():O()?f():c("scanning")})()},[u,n,f,g]),"connecting"===u||"loading"===u)?(0,w.jsx)(N,{locale:{getStartedLink:d.getStartedLink,instruction:d.connectionScreen.instruction,tryAgain:d.connectionScreen.retry,inProgress:d.connectionScreen.inProgress,failed:d.connectionScreen.failed},errorConnecting:p,onGetStarted:()=>c("get-started"),onRetry:g,hideBackButton:y,onBack:i,walletName:l.name,walletIconURL:l.iconURL}):"get-started"===u?(0,w.jsx)(q,{locale:{scanToDownload:d.getStartedScreen.instruction},walletIconURL:l.iconURL,walletName:l.name,chromeExtensionLink:l.urls?.chrome,googlePlayStoreLink:l.urls?.android,appleStoreLink:l.urls?.ios,onBack:()=>{i()}}):"scanning"===u?(0,w.jsx)(K,{onBack:i,onConnected:r,onGetStarted:()=>c("get-started"),walletConfig:n,hideBackButton:y,setConnectedWallet:o,setConnectionStatus:s}):null},X=e=>{let n=e?.qrmodal||"custom";return{id:i.G.id,recommended:e?.recommended,meta:{name:"Coinbase Wallet",iconURL:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjQ4IiBoZWlnaHQ9IjQ4IiByeD0iOCIgZmlsbD0iIzA1NTVGRiIvPgo8ZyBjbGlwLXBhdGg9InVybCgjY2xpcDBfMzMwM184NjM0KSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTIuMzMxMiA0SDM1LjY2NzJDNDAuMjcwNCA0IDQ0IDguMDEyOCA0NCAxMi45NjMyVjM1LjAzNjhDNDQgMzkuOTg3MiA0MC4yNzA0IDQ0IDM1LjY2ODggNDRIMTIuMzMxMkM3LjcyOTYgNDQgNCAzOS45ODcyIDQgMzUuMDM2OFYxMi45NjMyQzQgOC4wMTI4IDcuNzI5NiA0IDEyLjMzMTIgNFoiIGZpbGw9IiMwMDUyRkYiLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0yNC4wMDAzIDkuNzkzNDZDMzEuODQ2NyA5Ljc5MzQ2IDM4LjIwNjcgMTYuMTUzNSAzOC4yMDY3IDIzLjk5OTlDMzguMjA2NyAzMS44NDYzIDMxLjg0NjcgMzguMjA2MyAyNC4wMDAzIDM4LjIwNjNDMTYuMTUzOSAzOC4yMDYzIDkuNzkzOTUgMzEuODQ2MyA5Ljc5Mzk1IDIzLjk5OTlDOS43OTM5NSAxNi4xNTM1IDE2LjE1MzkgOS43OTM0NiAyNC4wMDAzIDkuNzkzNDZaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTIwLjUwMDYgMTkuNDU5SDI3LjQ5NzRDMjguMDczNCAxOS40NTkgMjguNTM5IDE5Ljk2MTQgMjguNTM5IDIwLjU3OVYyNy40MTlDMjguNTM5IDI4LjAzODIgMjguMDcxOCAyOC41MzkgMjcuNDk3NCAyOC41MzlIMjAuNTAwNkMxOS45MjQ2IDI4LjUzOSAxOS40NTkgMjguMDM2NiAxOS40NTkgMjcuNDE5VjIwLjU3OUMxOS40NTkgMTkuOTYxNCAxOS45MjYyIDE5LjQ1OSAyMC41MDA2IDE5LjQ1OVoiIGZpbGw9IiMwMDUyRkYiLz4KPC9nPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF8zMzAzXzg2MzQiPgo8cmVjdCB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIGZpbGw9IndoaXRlIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg0IDQpIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==",urls:{chrome:"https://chrome.google.com/webstore/detail/coinbase-wallet-extension/hnfanknocfeofbddgcijnmhnfnkdnaad",android:"https://play.google.com/store/apps/details?id=org.toshi",ios:"https://apps.apple.com/us/app/coinbase-wallet-nfts-crypto/id1278383455"}},create:e=>new i.G({...e,headlessMode:"custom"===n}),connectUI:"custom"===n?J:ee,isInstalled:()=>!!function(){function e(e){if(e?.isCoinbaseWallet||e&&"overrideIsMetaMask"in e&&"providerMap"in e&&e.providerMap instanceof Map&&e.providerMap.has("CoinbaseWallet"))return e}if((0,a.a)(globalThis.window))return globalThis.window.ethereum?.providers?globalThis.window.ethereum.providers.find(e):e(globalThis.window.ethereum)}()}},ee=e=>{let{connected:n,walletConfig:r,show:i,hide:a,supportedWallets:o,theme:s,goBack:f,setConnectionStatus:l,setConnectedWallet:u}=e,c=(0,M.xUo)(),d=(0,b.useRef)(!1),p=1===o.length;return(0,b.useEffect)(()=>{d.current||(d.current=!0,(async()=>{a();let e=c(r);e.theme=s,l("connecting");try{await e.connect(),u(e),n()}catch(e){l("disconnected"),p||(f(),i()),console.error(e)}})())},[r,p,c,s,l,u,a,n,f,i]),null};var et=Object.freeze({__proto__:null,coinbaseWallet:X,CoinbaseNativeModalConnectUI:ee});let en=e=>{let{onBack:n,onConnected:r,onGetStarted:i,walletConfig:a,hideBackButton:o,setConnectedWallet:s,setConnectionStatus:f,createWalletInstance:l}=e,u=(0,m.u)().wallets.metamaskWallet,[c,d]=(0,b.useState)(),{chainToConnect:p}=(0,M.tNP)(),h=(0,b.useRef)(!1);return(0,b.useEffect)(()=>{if(h.current)return;h.current=!0;let e=l();e.connectWithQrCode({chainId:p?.chainId,onQrCodeUri(e){d(e)},onConnected(){f("connecting"),s(e),r()}})},[s,p,r,a,f,l]),(0,w.jsx)(Q,{qrScanInstruction:u.scanScreen.instruction,onBack:n,onGetStarted:i,qrCodeUri:c,walletName:a.meta.name,walletIconURL:a.meta.iconURL,hideBackButton:o,getStartedLink:u.getStartedLink})},er={ios:"metamask://",android:"https://metamask.app.link/",other:"https://metamask.app.link/"},ei=e=>{let{createWalletInstance:n,setConnectionStatus:r,setConnectedWallet:i,onBack:a,onConnected:o,appUriPrefix:s,onRetry:f,errorConnecting:l,hideBackButton:u,onGetStarted:c,locale:d,meta:p}=e,{chainToConnect:h}=(0,M.tNP)(),y=(0,b.useRef)(!1);return(0,b.useEffect)(()=>
242{if(y.current)return;y.current=!0;let e=n();r("connecting"),e.connectWithQrCode({chainId:h?.chainId,onQrCodeUri(e){j()?Z(`${s.android}wc?uri=${encodeURIComponent(e)}`):D()?Z(`${s.ios}wc?uri=${encodeURIComponent(e)}`):Z(`${s.other}wc?uri=${encodeURIComponent(e)}`)},onConnected(){i(e),o()}})},[i,h,o,r,s,n]),(0,w.jsx)(N,{locale:d,hideBackButton:u,onBack:a,walletName:p.name,walletIconURL:p.iconURL,errorConnecting:l,onRetry:f,onGetStarted:c})},ea=e=>{let[n,r]=(0,b.useState)("connecting"),i=(0,m.u)().wallets.metamaskWallet,{walletConfig:a,connected:o,connect:s}=e,[f,l]=(0,b.useState)(!1),u={getStartedLink:i.getStartedLink,instruction:i.connectionScreen.instruction,tryAgain:i.connectionScreen.retry,inProgress:i.connectionScreen.inProgress,failed:i.connectionScreen.failed},c=1===e.supportedWallets.length,d=(0,b.useCallback)(async()=>{try{p.current=!0,l(!1),r("connecting"),await $(1e3),await s(),o()}catch(e){l(!0),console.error(e)}},[o,s]),p=(0,b.useRef)(!1);return((0,b.useEffect)(()=>{if(p.current)return;let n=!!a.isInstalled&&a.isInstalled();(async()=>{n?d():O()?"walletConnect"===e.connectionMethod?r("open-wc-uri"):window.open(`https://metamask.app.link/dapp/${window.location.toString()}`):r("scanning")})()},[d,e.connectionMethod,a]),"connecting"===n)?(0,w.jsx)(N,{locale:u,errorConnecting:f,onGetStarted:()=>{r("get-started")},onRetry:d,hideBackButton:c,onBack:e.goBack,walletName:a.meta.name,walletIconURL:a.meta.iconURL}):"get-started"===n?(0,w.jsx)(q,{locale:{scanToDownload:i.getStartedScreen.instruction},walletIconURL:a.meta.iconURL,walletName:a.meta.name,chromeExtensionLink:a.meta.urls?.chrome,googlePlayStoreLink:a.meta.urls?.android,appleStoreLink:a.meta.urls?.ios,onBack:e.goBack}):"open-wc-uri"===n?(0,w.jsx)(ei,{locale:u,onRetry:()=>{},errorConnecting:f,onGetStarted:()=>{r("get-started")},hideBackButton:c,onBack:e.goBack,onConnected:o,appUriPrefix:er,createWalletInstance:e.createWalletInstance,setConnectedWallet:n=>{e.setConnectedWallet(n)},setConnectionStatus:e.setConnectionStatus,meta:a.meta}):"scanning"===n?(0,w.jsx)(en,{onBack:e.goBack,onConnected:e.connected,onGetStarted:()=>{r("get-started")},hideBackButton:c,walletConfig:a,setConnectedWallet:n=>e.setConnectedWallet(n),setConnectionStatus:e.setConnectionStatus,createWalletInstance:e.createWalletInstance}):null};function eo(e,n){O()&&e.on("wc_session_request_sent",()=>{j()?Z(n.android):D()?Z(n.ios):Z(n.other)})}let es=e=>{let n=e?.connectionMethod||"walletConnect";return{id:o.t.id,recommended:e?.recommended,meta:{...o.t.meta,iconURL:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODAiIGhlaWdodD0iODAiIHZpZXdCb3g9IjAgMCA4MCA4MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjgwIiBoZWlnaHQ9IjgwIiByeD0iMTIiIGZpbGw9IiNGRkU2Q0UiLz4KPHBhdGggZD0iTTY0Ljk3MTIgMTQuMTc5TDQzLjI5MDMgMzAuMjgxN0w0Ny4yOTk2IDIwLjc4MTRMNjQuOTcxMiAxNC4xNzlaIiBmaWxsPSIjRTI3NjFCIiBzdHJva2U9IiNFMjc2MUIiIHN0cm9rZS13aWR0aD0iMC4xMjQ1MTQiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8cGF0aCBkPSJNMTQuOTE5OCAxNC4xNzlMMzYuNDI2NCAzMC40MzQzTDMyLjYxMzIgMjAuNzgxNEwxNC45MTk4IDE0LjE3OVpNNTcuMTcwNCA1MS41MDUxTDUxLjM5NjEgNjAuMzUxOEw2My43NTEgNjMuNzUxTDY3LjMwMjcgNTEuNzAxMkw1Ny4xNzA0IDUxLjUwNTFaTTEyLjYzMTkgNTEuNzAxMkwxNi4xNjE5IDYzLjc1MUwyOC41MTY3IDYwLjM1MThMMjIuNzQyNCA1MS41MDUxTDEyLjYzMTkgNTEuNzAxMloiIGZpbGw9IiNFNDc2MUIiIHN0cm9rZT0iI0U0NzYxQiIgc3Ryb2tlLXdpZHRoPSIwLjEyNDUxNCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0yNy44MTk0IDM2LjU1NzJMMjQuMzc2NiA0MS43NjVMMzYuNjQ0NCA0Mi4zMDk3TDM2LjIwODYgMjkuMTI2OEwyNy44MTk0IDM2LjU1NzJaTTUyLjA3MTYgMzYuNTU3Mkw0My41NzM1IDI4Ljk3NDNMNDMuMjkwMyA0Mi4zMDk3TDU1LjUzNjIgNDEuNzY1TDUyLjA3MTYgMzYuNTU3MlpNMjguNTE2NyA2MC4zNTE3TDM1Ljg4MTcgNTYuNzU2NEwyOS41MTkxIDUxLjc4ODNMMjguNTE2NyA2MC4zNTE3Wk00NC4wMDkzIDU2Ljc1NjRMNTEuMzk2MSA2MC4zNTE3TDUwLjM3MiA1MS43ODgzTDQ0LjAwOTMgNTYuNzU2NFoiIGZpbGw9IiNFNDc2MUIiIHN0cm9rZT0iI0U0NzYxQiIgc3Ryb2tlLXdpZHRoPSIwLjEyNDUxNCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik01MS4zOTYxIDYwLjM1MTdMNDQuMDA5MyA1Ni43NTY0TDQ0LjU5NzcgNjEuNTcyTDQ0LjUzMjMgNjMuNTk4NEw1MS4zOTYxIDYwLjM1MTdaTTI4LjUxNjcgNjAuMzUxN0wzNS4zODA1IDYzLjU5ODRMMzUuMzM3IDYxLjU3MkwzNS44ODE3IDU2Ljc1NjRMMjguNTE2NyA2MC4zNTE3WiIgZmlsbD0iI0Q3QzFCMyIgc3Ryb2tlPSIjRDdDMUIzIiBzdHJva2Utd2lkdGg9IjAuMTI0NTE0IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPHBhdGggZD0iTTM1LjQ4OTUgNDguNjA3TDI5LjM0NDcgNDYuNzk4NEwzMy42ODA5IDQ0LjgxNTZMMzUuNDg5NSA0OC42MDdaTTQ0LjQwMTUgNDguNjA3TDQ2LjIxMDEgNDQuODE1Nkw1MC41NjgxIDQ2Ljc5ODRMNDQu
242NDAxNSA0OC42MDdaIiBmaWxsPSIjMjMzNDQ3IiBzdHJva2U9IiMyMzM0NDciIHN0cm9rZS13aWR0aD0iMC4xMjQ1MTQiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8cGF0aCBkPSJNMjguNTE2NyA2MC4zNTE3TDI5LjU2MjYgNTEuNTA1TDIyLjc0MjQgNTEuNzAxMUwyOC41MTY3IDYwLjM1MTdaTTUwLjM1MDIgNTEuNTA1TDUxLjM5NjEgNjAuMzUxN0w1Ny4xNzA0IDUxLjcwMTFMNTAuMzUwMiA1MS41MDVaTTU1LjUzNjIgNDEuNzY1TDQzLjI5MDMgNDIuMzA5N0w0NC40MjMzIDQ4LjYwN0w0Ni4yMzE5IDQ0LjgxNTVMNTAuNTg5OSA0Ni43OTg0TDU1LjUzNjIgNDEuNzY1Wk0yOS4zNDQ3IDQ2Ljc5ODRMMzMuNzAyNyA0NC44MTU1TDM1LjQ4OTUgNDguNjA3TDM2LjY0NDMgNDIuMzA5N0wyNC4zNzY2IDQxLjc2NUwyOS4zNDQ3IDQ2Ljc5ODRaIiBmaWxsPSIjQ0Q2MTE2IiBzdHJva2U9IiNDRDYxMTYiIHN0cm9rZS13aWR0aD0iMC4xMjQ1MTQiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8cGF0aCBkPSJNMjQuMzc2NiA0MS43NjVMMjkuNTE5MSA1MS43ODgzTDI5LjM0NDcgNDYuNzk4NEwyNC4zNzY2IDQxLjc2NVpNNTAuNTg5OSA0Ni43OTg0TDUwLjM3MiA1MS43ODgzTDU1LjUzNjIgNDEuNzY1TDUwLjU4OTkgNDYuNzk4NFpNMzYuNjQ0NCA0Mi4zMDk3TDM1LjQ4OTUgNDguNjA3TDM2LjkyNzYgNTYuMDM3M0wzNy4yNTQ1IDQ2LjI1MzdMMzYuNjQ0NCA0Mi4zMDk3Wk00My4yOTAzIDQyLjMwOTdMNDIuNzAxOSA0Ni4yMzE5TDQyLjk2MzQgNTYuMDM3M0w0NC40MjMzIDQ4LjYwN0w0My4yOTAzIDQyLjMwOTdaIiBmaWxsPSIjRTQ3NTFGIiBzdHJva2U9IiNFNDc1MUYiIHN0cm9rZS13aWR0aD0iMC4xMjQ1MTQiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8cGF0aCBkPSJNNDQuNDIzMyA0OC42MDdMNDIuOTYzNCA1Ni4wMzc0TDQ0LjAwOTMgNTYuNzU2NEw1MC4zNzIgNTEuNzg4M0w1MC41ODk5IDQ2Ljc5ODVMNDQuNDIzMyA0OC42MDdaTTI5LjM0NDcgNDYuNzk4NUwyOS41MTkgNTEuNzg4M0wzNS44ODE3IDU2Ljc1NjRMMzYuOTI3NiA1Ni4wMzc0TDM1LjQ4OTUgNDguNjA3TDI5LjM0NDcgNDYuNzk4NVoiIGZpbGw9IiNGNjg1MUIiIHN0cm9rZT0iI0Y2ODUxQiIgc3Ryb2tlLXdpZHRoPSIwLjEyNDUxNCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik00NC41MzIzIDYzLjU5ODRMNDQuNTk3NyA2MS41NzJMNDQuMDUyOSA2MS4wOTI2SDM1LjgzODFMMzUuMzM3IDYxLjU3MkwzNS4zODA1IDYzLjU5ODRMMjguNTE2NyA2MC4zNTE3TDMwLjkxMzYgNjIuMzEyOEwzNS43NzI4IDY1LjY5MDNINDQuMTE4M0w0OC45OTkyIDYyLjMxMjhMNTEuMzk2MSA2MC4zNTE3TDQ0LjUzMjMgNjMuNTk4NFoiIGZpbGw9IiNDMEFEOUUiIHN0cm9rZT0iI0MwQUQ5RSIgc3Ryb2tlLXdpZHRoPSIwLjEyNDUxNCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik00NC4wMDkzIDU2Ljc1NjRMNDIuOTYzNCA1Ni4wMzc0SDM2LjkyNzZMMzUuODgxNyA1Ni43NTY0TDM1LjMzNyA2MS41NzJMMzUuODM4MSA2MS4wOTI2SDQ0LjA1MjlMNDQuNTk3NyA2MS41NzJMNDQuMDA5MyA1Ni43NTY0WiIgZmlsbD0iIzE2MTYxNiIgc3Ryb2tlPSIjMTYxNjE2IiBzdHJva2Utd2lkdGg9IjAuMTI0NTE0IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPHBhdGggZD0iTTY1Ljg4NjQgMzEuMzI3N0w2Ny43Mzg1IDIyLjQzNzRMNjQuOTcxMiAxNC4xNzlMNDQuMDA5MyAyOS43MzdMNTIuMDcxNiAzNi41NTcyTDYzLjQ2NzcgMzkuODkxMUw2NS45OTUzIDM2Ljk0OTRMNjQuOTA1OCAzNi4xNjVMNjYuNjQ5IDM0LjU3NDNMNjUuMjk4MSAzMy41Mjg0TDY3LjA0MTIgMzIuMTk5Mkw2NS44ODY0IDMxLjMyNzdaTTEyLjE3NDMgMjIuNDM3NEwxNC4wMjY1IDMxLjMyNzdMMTIuODQ5OCAzMi4xOTkyTDE0LjU5MyAzMy41Mjg0TDEzLjI2MzggMzQuNTc0M0wxNS4wMDcgMzYuMTY1TDEzLjkxNzUgMzYuOTQ5NEwxNi40MjMzIDM5Ljg5MTFMMjcuODE5NSAzNi41NTcyTDM1Ljg4MTcgMjkuNzM3TDE0LjkxOTggMTQuMTc5TDEyLjE3NDMgMjIuNDM3NFoiIGZpbGw9IiM3NjNEMTYiIHN0cm9rZT0iIzc2M0QxNiIg
242c3Ryb2tlLXdpZHRoPSIwLjEyNDUxNCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik02My40Njc3IDM5Ljg5MUw1Mi4wNzE2IDM2LjU1NzJMNTUuNTM2MiA0MS43NjVMNTAuMzcyIDUxLjc4ODNMNTcuMTcwNCA1MS43MDEySDY3LjMwMjdMNjMuNDY3NyAzOS44OTFaTTI3LjgxOTQgMzYuNTU3MkwxNi40MjMzIDM5Ljg5MUwxMi42MzE5IDUxLjcwMTJIMjIuNzQyNEwyOS41MTkxIDUxLjc4ODNMMjQuMzc2NiA0MS43NjVMMjcuODE5NCAzNi41NTcyWk00My4yOTAzIDQyLjMwOTdMNDQuMDA5MyAyOS43MzdMNDcuMzIxNCAyMC43ODEzSDMyLjYxMzJMMzUuODgxNyAyOS43MzdMMzYuNjQ0MyA0Mi4zMDk3TDM2LjkwNTggNDYuMjc1NUwzNi45Mjc2IDU2LjAzNzNINDIuOTYzNEw0My4wMDcgNDYuMjc1NUw0My4yOTAzIDQyLjMwOTdaIiBmaWxsPSIjRjY4NTFCIiBzdHJva2U9IiNGNjg1MUIiIHN0cm9rZS13aWR0aD0iMC4xMjQ1MTQiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8L3N2Zz4K"},create:r=>{let i=new o.t({...r,projectId:e?.projectId,qrcode:!!e?.wcModal,qrModalOptions:"object"==typeof e?.wcModal?e?.wcModal?.qrModalOptions:void 0});return"walletConnect"===n&&eo(i,er),i},connectUI:e=>(0,w.jsx)(ea,{...e,connectionMethod:n}),isInstalled:()=>!!(0,s.g)()}};var ef=Object.freeze({__proto__:null,metamaskWallet:es});let el=e=>{let{onBack:n,onConnected:r,walletConfig:i,hide:a,show:o,setConnectedWallet:s,setConnectionStatus:f,createWalletInstance:l}=e,u=(0,m.u)().wallets.walletConnect,[c,d]=(0,b.useState)(),{chainToConnect:p}=(0,M.tNP)(),[h,y]=(0,b.useState)(!1),v=async()=>{let e=l();f("connecting");try{d(void 0),y(!0),$(1e3).then(()=>{a()}),await e.connectWithModal({chainId:p?.chainId}),s(e),r(),o()}catch{o(),y(!1)}};return(0,w.jsxs)(g.C,{fullHeight:!0,animate:"fadein",flex:"column",children:[(0,w.jsx)(g.C,{p:"lg",children:(0,w.jsx)(g.M,{onBack:e.hideBackButton?void 0:n,title:i.meta.name})}),(0,w.jsx)(m.S,{y:"sm"}),(0,w.jsx)(g.C,{flex:"column",center:"both",px:"lg",expand:!0,children:h?(0,w.jsx)(g.C,{style:{minHeight:"300px"},flex:"column",center:"both",children:(0,w.jsx)(m.a,{size:"xl",color:"accentText"})}):(0,w.jsx)(eu,{createInstance:l,onConnected:r,qrCodeUri:c,setConnectedWallet:s,setConnectionStatus:f,setQrCodeUri:d,walletConfig:i,chainIdToConnect:p?.chainId})}),(0,w.jsx)(g.C,{p:"lg",children:(0,w.jsx)(m.T,{multiline:!0,center:!0,balance:!0,children:u.scanInstruction})}),(0,w.jsx)(g.L,{}),(0,w.jsx)(g.C,{py:"lg",flex:"row",center:"x",children:(0,w.jsx)(g.B,{variant:"link",onClick:v,children:"Open Official WalletConnect Modal"})})]})};function eu(e){let{qrCodeUri:n,walletConfig:r,onConnected:i,setConnectedWallet:a,createInstance:o,setQrCodeUri:s,chainIdToConnect:f,setConnectionStatus:l}=e,u=(0,b.useRef)(!1);return(0,b.useEffect)(()=>{if(u.current)return;u.current=!0;let e=o(r);l("connecting"),e.connectWithQrCode({chainId:f,onQrCodeUri(e){s(e)},onConnected(){a(e),i()}})},[o,a,f,i,r,l,s]),(0,w.jsx)(P,{qrCodeUri:n,QRIcon:(0,w.jsx)(g.I,{width:g.i.xxl,height:g.i.xxl,src:r.meta.iconURL})})}let ec=e=>{let{connected:n,hide:r,show:i,connect:a,setConnectionStatus:o,supportedWallets:s}=e,f=(0,b.useRef)(!1),[l,u]=(0,b.useState)(!1),c=s.length>1,d=(0,b.useCallback)(async()=>{u(!1);try{o("connecting"),await $(1e3),r(),await a(),n(),i()}catch(e){o("disconnected"),u(!0),i(),console.error(e)}},[a,n,r,i,o]);(0,b.useEffect)(()=>{f.current||(f.current=!0,d())},[d]);let p=null;return p=l?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(m.T,{color:"danger",children:"Failed to connect"}),(0,w.jsx)(m.S,{y:"lg"}),(0,w.jsx)(g.B,{variant:"primary",onClick:d,children:"Try again"})]}):(0,w.jsx)(m.a,{size:"xl",color:"accentText"}),(0,w.jsxs)(g.C,{p:"lg",children:[(0,w.jsx)(g.M,{onBack:c?e.goBack:void 0,title:e.walletConfig.meta.name,imgSrc:e.walletConfig.meta.iconURL}),(0,w.jsx)(g.C,{flex:"column",center:"both",style:{minHeight:"250px"},children:p})]})},ed=e=>{let n=e?.projectId||"145769e410f16970a79ff77b2d89a1e0",r=!!O()||e?.qrModal==="walletConnect";return{recommended:e?.recommended,id:f.b.id,meta:{...f.b.meta,iconURL:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODAiIGhlaWdodD0iODAiIHZpZXdCb3g9IjAgMCA4MCA4MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjgwIiBoZWlnaHQ9IjgwIiByeD0iMTIiIGZpbGw9IiMxQzdERkMiLz4KPHJlY3Qgd2lkdGg9IjgwIiBoZWlnaHQ9IjgwIiByeD0iMTIiIGZpbGw9InVybCgjcGFpbnQwX3JhZGlhbF8xXzQ2KSIvPgo8cGF0aCBkPSJNMjYuNDIyNyAzMS40NzMxQzMzLjkxNzEgMjQuMTc1NiA0Ni4wODI5IDI0LjE3NTYgNTMuNTc3MyAzMS40NzMxTDU0LjQ3OTYgMzIuMzU4QzU0Ljg1O
242CAzMi43MjA3IDU0Ljg1OCAzMy4zMTU1IDU0LjQ3OTYgMzMuNjc4Mkw1MS4zOTQ1IDM2LjY4MTNDNTEuMjA1MyAzNi44Njk5IDUwLjg5OTcgMzYuODY5OSA1MC43MTA1IDM2LjY4MTNMNDkuNDczNiAzNS40NzcyQzQ0LjIzNDcgMzAuMzg1IDM1Ljc2NTMgMzAuMzg1IDMwLjUyNjQgMzUuNDc3MkwyOS4yMDIxIDM2Ljc2ODRDMjkuMDEzIDM2Ljk1NyAyOC43MDc0IDM2Ljk1NyAyOC41MTgyIDM2Ljc2ODRMMjUuNDMzMSAzMy43NjUzQzI1LjA1NDcgMzMuNDAyNiAyNS4wNTQ3IDMyLjgwNzggMjUuNDMzMSAzMi40NDUxTDI2LjQyMjcgMzEuNDczMVpNNTkuOTY1OCAzNy42ODI0TDYyLjcxNjIgNDAuMzUxOEM2My4wOTQ2IDQwLjcxNDUgNjMuMDk0NiA0MS4zMDkzIDYyLjcxNjIgNDEuNjcyTDUwLjMzMjIgNTMuNzI4QzQ5Ljk1MzggNTQuMDkwNyA0OS4zNDI2IDU0LjA5MDcgNDguOTc4OCA1My43MjhMNDAuMTg5MiA0NS4xNjg0QzQwLjEwMTkgNDUuMDgxMyAzOS45NDE4IDQ1LjA4MTMgMzkuODU0NSA0NS4xNjg0TDMxLjA2NDkgNTMuNzI4QzMwLjY4NjUgNTQuMDkwNyAzMC4wNzUzIDU0LjA5MDcgMjkuNzExNSA1My43MjhMMTcuMjgzOCA0MS42NzJDMTYuOTA1NCA0MS4zMDkzIDE2LjkwNTQgNDAuNzE0NSAxNy4yODM4IDQwLjM1MThMMjAuMDM0MiAzNy42ODI0QzIwLjQxMjUgMzcuMzE5NyAyMS4wMjM3IDM3LjMxOTcgMjEuMzg3NSAzNy42ODI0TDMwLjE3NzIgNDYuMjQyQzMwLjI2NDUgNDYuMzI5IDMwLjQyNDUgNDYuMzI5IDMwLjUxMTkgNDYuMjQyTDM5LjMwMTUgMzcuNjgyNEMzOS42Nzk5IDM3LjMxOTcgNDAuMjkxIDM3LjMxOTcgNDAuNjU0OSAzNy42ODI0TDQ5LjQ0NDUgNDYuMjQyQzQ5LjUzMTggNDYuMzI5IDQ5LjY5MTkgNDYuMzI5IDQ5Ljc3OTIgNDYuMjQyTDU4LjU2ODggMzcuNjgyNEM1OC45NzYzIDM3LjMxOTcgNTkuNTg3NSAzNy4zMTk3IDU5Ljk2NTggMzcuNjgyNFoiIGZpbGw9IndoaXRlIi8+CjxkZWZzPgo8cmFkaWFsR3JhZGllbnQgaWQ9InBhaW50MF9yYWRpYWxfMV80NiIgY3g9IjAiIGN5PSIwIiByPSIxIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgZ3JhZGllbnRUcmFuc2Zvcm09InRyYW5zbGF0ZSgwLjAwMDI0Nzk1NSA0MC4wMDEyKSBzY2FsZSg4MCkiPgo8c3RvcCBzdG9wLWNvbG9yPSIjNUQ5REY2Ii8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzAwNkZGRiIvPgo8L3JhZGlhbEdyYWRpZW50Pgo8L2RlZnM+Cjwvc3ZnPgo="},create:i=>new f.b({...i,qrcode:r,projectId:n,qrModalOptions:e?.qrModalOptions}),connectUI:e=>r?(0,w.jsx)(ec,{...e}):(0,w.jsx)(el,{onBack:e.goBack,onConnected:e.connected,walletConfig:e.walletConfig,hideBackButton:1===e.supportedWallets.length,modalSize:e.modalSize,createWalletInstance:e.createWalletInstance,setConnectedWallet:e.setConnectedWallet,setConnectionStatus:e.setConnectionStatus,hide:e.hide,show:e.show})}};var ep=Object.freeze({__proto__:null,walletConnect:ed});let eh=e=>{let{onBack:n,onConnected:r,onGetStarted:i,hideBackButton:a,setConnectionStatus:o,setConnectedWallet:s,createWalletInstance:f}=e,l=e.walletLocale,[u,c]=(0,b.useState)(),{chainToConnect:d}=(0,M.tNP)(),p=(0,b.useRef)(!1);return(0,b.useEffect)(()=>{if(p.current)return;p.current=!0;let e=f();e.connectWithQrCode({chainId:d?.chainId,onQrCodeUri(e){c(e)},onConnected(){o("connecting"),s(e),r()}})},[f,s,d,r,o]),(0,w.jsx)(Q,{qrScanInstruction:l.scanScreen.instruction,onBack:n,onGetStarted:i,qrCodeUri:u,walletName:e.meta.name,walletIconURL:e.meta.iconURL,hideBackButton:a,getStartedLink:l.getStartedLink})},ey=e=>{let[n,r]=(0,b.useState)("connecting"),{connected:i,connect:a,supportedWallets:o,isInstalled:s,meta:f,createWalletInstance:l,setConnectedWallet:u,setConnectionStatus:c,goBack:d,walletConnectUris:p,walletLocale:h}=e,y={getStartedLink:h.getStartedLink,instruction:h.connectionScreen.instruction,tryAgain:h.connectionScreen.retry,inProgress:h.connectionScreen.inProgress,failed:h.connectionScreen.failed},[m,g]=(0,b.useState)(!1),v=1===o.length,x=(0,b.useCallback)(async()=>{try{T.current=!0,g(!1),r("connecting"),await $(1e3),await a(),i()}catch(e){g(!0),console.error(e)}},[i,a]),T=(0,b.useRef)(!1);return((0,b.useEffect)(()=>{if(T.current)return;let e=!!s&&s();(async()=>{e?x():O()?r("open-wc-uri"):r("scanning")})()},[x,s]),"connecting"===n)?(0,w.jsx)(N,{locale:y,errorConnecting:m,onGetStarted:()=>{r("get-started")},onRetry:x,hideBackButton:v,onBack:d,walletName:f.name,walletIconURL:f.iconURL}):"open-wc-uri"===n?(0,w.jsx)(ei,{locale:y,onRetry:()=>{},errorConnecting:m,onGetStarted:()=>{r("get-started")},hideBackButton:v,onBack:d,onConnected:i,appUriPrefix:p,createWalletInstance:l,meta:f,setConnectedWallet:e=>{u(e)},setConnectionStatus:c}):"get-started"===n?(0,w.jsx)(q,{locale:{scanToDownload:h.getStartedScreen.instruction},walletIconURL:f.iconURL,walletName:f.name,chromeExtensionLink:f.urls?.chrome,googlePlayStoreLink:f.urls?.android,appleStoreLink:f.urls?.ios,onBack:d}):"scanning"===n?(0,w.jsx)(eh,{onBack:d,onConnected:i,onGetStarted:()=>{r("get-started")},hideBackButton:v,createWalletInstance:l,meta:f,setConnectedWallet:e=>{u(e)},setConnectionStatus:c,walletLocale:h}):null},em={ios:"trust://",android:"https://link.trustwallet.com/",other:"https://link.trustwallet.com/"},eg=e=>({id:l.d.id,recommended:e?.recommended,meta:{...l.d.meta,iconURL:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODAiIGhlaWdodD0iODAiIHZpZXdCb3g9IjAgMCA4MCA4MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjgwIiBoZWlnaHQ9IjgwIiByeD0iMTIiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik00MC4
2421MzAzIDE3LjE0MjVDNDguMjQ3NyAyMy42ODU3IDU3LjE1NiAyMy4zNTE4IDU5LjcwMDMgMjMuMzcwN0M1OC44Njk4IDYwLjI1MTMgNTQuNjgzNSA1Mi45MDU4IDQwLjE4ODcgNjMuMTQxMkMyNS44NDc0IDUyLjY5MTYgMjEuNTc5IDU5Ljk3NDQgMjEuMjk2NCAyMy4wODU1QzIzLjgxNDIgMjMuMTA0MiAzMi43MTY1IDIzLjU3MDQgNDAuNTMwMyAxNy4xNDI1WiIgc3Ryb2tlPSIjMzM3NUJCIiBzdHJva2Utd2lkdGg9IjciIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPgo="},create:n=>{let r=new l.d({...n,projectId:e?.projectId,qrcode:!!e?.wcModal,qrModalOptions:"object"==typeof e?.wcModal?e?.wcModal?.qrModalOptions:void 0});return eo(r,em),r},connectUI:ev,isInstalled:eb});function eb(){return!!(0,a.a)(globalThis.window)&&!!globalThis.window.ethereum.isTrust}function ev(e){let n=(0,m.u)();return(0,w.jsx)(ey,{connect:e.connect,connected:e.connected,createWalletInstance:e.createWalletInstance,goBack:e.goBack,meta:e.walletConfig.meta,setConnectedWallet:n=>e.setConnectedWallet(n),setConnectionStatus:e.setConnectionStatus,supportedWallets:e.supportedWallets,walletConnectUris:em,walletLocale:n.wallets.trustWallet,isInstalled:eb})}var ew=Object.freeze({__proto__:null,trustWallet:eg});let ex={ios:"zerion://",android:"https://link.zerion.io/pt3gdRP0njb/",other:"https://link.zerion.io/pt3gdRP0njb/"},eT=e=>({id:u.g.id,recommended:e?.recommended,meta:{...u.g.meta,iconURL:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODAiIGhlaWdodD0iODAiIHZpZXdCb3g9IjAgMCA4MCA4MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjgwIiBoZWlnaHQ9IjgwIiByeD0iMTIiIGZpbGw9IiMyMzYxRUMiLz4KPHBhdGggZD0iTTE3LjM3OSAyMEMxNi4wMDggMjAgMTUuNDc5OCAyMS42OTUyIDE2LjYzMDEgMjIuNDAzNEw0NS40MDk0IDM5Ljc1NjJDNDYuMTI2OCA0MC4xOTc4IDQ3LjA4MzUgNDAuMDIzNCA0Ny41Nzc0IDM5LjM2MDhMNjAuMjMwOSAyMi43NDlDNjEuMDkxMiAyMS41OTUgNjAuMjIyIDIwIDU4LjczMjkgMjBIMTcuMzc5WiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTYyLjYxMTcgNjAuMDAwMUM2My45ODI3IDYwLjAwMDEgNjQuNTI0NSA1OC4yOTU1IDYzLjM3NDMgNTcuNTg3NUwzNC41ODY4IDQwLjIzNjlDMzMuODY5NCAzOS43OTUzIDMyLjkzNTkgMzkuOTkxOSAzMi40NDIxIDQwLjY1NDNMMTkuNzY0IDU3LjI2MjlDMTguOTAzOSA1OC40MTY3IDE5LjgwMDMgNjAuMDAwMSAyMS4yODkyIDYwLjAwMDFINjIuNjExN1oiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo="},create:n=>{let r=new u.g({...n,projectId:e?.projectId,qrcode:!!e?.wcModal,qrModalOptions:"object"==typeof e?.wcModal?e?.wcModal?.qrModalOptions:void 0});return eo(r,ex),r},connectUI:eM,isInstalled:eC});function eC(){return!!(0,a.a)(globalThis.window)&&!!globalThis.window.ethereum.isZerion}function eM(e){let n=(0,m.u)();return(0,w.jsx)(ey,{connect:e.connect,connected:e.connected,createWalletInstance:e.createWalletInstance,goBack:e.goBack,meta:e.walletConfig.meta,setConnectedWallet:n=>e.setConnectedWallet(n),setConnectionStatus:e.setConnectionStatus,supportedWallets:e.supportedWallets,walletConnectUris:ex,walletLocale:n.wallets.zerionWallet,isInstalled:eC})}let eA={ios:"rainbow://",android:"https://rnbwapp.com/",other:"https://rnbwapp.com/"},eE=e=>({id:c.h.id,recommended:e?.recommended,meta:{...c.h.meta,name:"Rainbow",iconURL:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODAiIGhlaWdodD0iODAiIHZpZXdCb3g9IjAgMCA4MCA4MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzVfMTQ5KSI+CjxwYXRoIGQ9Ik04MCAwSDBWODBIODBWMFoiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl81XzE0OSkiLz4KPHBhdGggZD0iTTEzLjMzMzMgMjUuMzMzNEgxNy4zMzMzQzM3Ljk1MTkgMjUuMzMzNCA1NC42NjY2IDQyLjA0ODEgNTQuNjY2NiA2Mi42NjY3VjY2LjY2NjdINjIuNjY2NkM2NC44NzU4IDY2LjY2NjcgNjYuNjY2NiA2NC44NzU4IDY2LjY2NjYgNjIuNjY2N0M2Ni42NjY2IDM1LjQyMDYgNDQuNTc5NCAxMy4zMzM0IDE3LjMzMzMgMTMuMzMzNEMxNS4xMjQyIDEzLjMzMzQgMTMuMzMzMyAxNS4xMjQyIDEzLjMzMzMgMTcuMzMzNFYyNS4zMzM0WiIgZmlsbD0idXJsKCNwYWludDFfcmFkaWFsXzVfMTQ5KSIvPgo8cGF0aCBkPSJNNTYgNjIuNjY2Nkg2Ni42NjY3QzY2LjY2NjcgNjQuODc1OCA2NC44NzU4IDY2LjY2NjYgNjIuNjY2NyA2Ni42NjY2SDU2VjYyLjY2NjZaIiBmaWxsPSJ1cmwoI3BhaW50Ml9saW5lYXJfNV8xNDkpIi8+CjxwYXRoIGQ9Ik0xNy4zMzMzIDEzLjMzMzRWMjRIMTMuMzMzM1YxNy4zMzM0QzEzLjMzMzMgMTUuMTI0MiAxNS4xMjQyIDEzLjMzMzQgMTcuMzMzMyAxMy4zMzM0WiIgZmlsbD0idXJsKCNwYWludDNfbGluZWFyXzVfMTQ5KSIvPgo8cGF0aCBkPSJNMTMuMzMzMyAyNEgxNy4zMzMzQzM4LjY4ODMgMjQgNTYgNDEuMzExNyA1NiA2Mi42NjY3VjY2LjY2NjdINDRWNjIuNjY2N0M0NCA0Ny45MzkxIDMyLjA2MDkgMzYgMTcuMzMzMyAzNkgxMy4zMzMzVjI0WiIgZmlsbD0idXJsKCNwYWludDRfcmFkaWFsXzVfMTQ5KSIvPgo8cGF0aCBkPSJNNDUuMzMzMyA2Mi42NjY2SDU2VjY2LjY2NjZINDUuMzMzM1Y2Mi42NjY2WiIgZmlsbD0idXJsKCNwYWludDVfbGluZWFyXzVfMTQ5KSIvPgo8cGF0aCBkPSJNMTMuMzMzMyAzNC42NjY3VjI0SDE3LjMzMzNWMzQuNjY2N0gxMy4zMzMzWiIgZmlsbD0idXJsKCNwYWludDZfbGluZWFyXzVfMTQ5KSIvPgo8cGF0aCBkPSJNMTMuMzMzMyA0MS4zMzMzQzEzLjMzMzMgNDMuNTQyNCAxNS4xMjQyIDQ1LjMzMzMgMTcuMzMzMyA0NS4zMzMzQzI2LjkwNjIgNDUuMzMzMyAzNC42NjY2IDUzLjA5MzcgMzQuNjY2NiA2Mi42NjY2QzM0LjY2NjYgNjQuODc1OCAzNi40NTc1IDY2LjY2NjYgMzguNjY2NiA2Ni42NjY2SDQ1LjMzMzNWNjIuNjY2NkM0NS4zMzMzIDQ3LjIwMjYgMzIuNzk3MyAzNC42NjY2IDE3LjMzMzMgMzQuNjY2NkgxMy4zMzMzVjQxLjMzMzNaIiBmaWxsPSJ1cmwoI3BhaW50N19yYWRpYWxfNV8xNDkpIi8+CjxwYXRoIGQ9Ik0zNC42NjY3IDYyLjY2NjZINDUuMzMzNFY2Ni42NjY2SDM4LjY2NjdDMzYuNDU3NiA2Ni42NjY2IDM0LjY2NjcgNjQuODc1OCAzNC42NjY3IDYyLjY2NjZ
242aIiBmaWxsPSJ1cmwoI3BhaW50OF9yYWRpYWxfNV8xNDkpIi8+CjxwYXRoIGQ9Ik0xNy4zMzMzIDQ1LjMzMzNDMTUuMTI0MiA0NS4zMzMzIDEzLjMzMzMgNDMuNTQyNCAxMy4zMzMzIDQxLjMzMzNWMzQuNjY2NkgxNy4zMzMzVjQ1LjMzMzNaIiBmaWxsPSJ1cmwoI3BhaW50OV9yYWRpYWxfNV8xNDkpIi8+CjwvZz4KPGRlZnM+CjxsaW5lYXJHcmFkaWVudCBpZD0icGFpbnQwX2xpbmVhcl81XzE0OSIgeDE9IjQwIiB5MT0iMCIgeDI9IjQwIiB5Mj0iODAiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iIzE3NDI5OSIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMwMDFFNTkiLz4KPC9saW5lYXJHcmFkaWVudD4KPHJhZGlhbEdyYWRpZW50IGlkPSJwYWludDFfcmFkaWFsXzVfMTQ5IiBjeD0iMCIgY3k9IjAiIHI9IjEiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIiBncmFkaWVudFRyYW5zZm9ybT0idHJhbnNsYXRlKDE3LjMzMzMgNjIuNjY2Nykgcm90YXRlKC05MCkgc2NhbGUoNDkuMzMzMykiPgo8c3RvcCBvZmZzZXQ9IjAuNzcwMjc3IiBzdG9wLWNvbG9yPSIjRkY0MDAwIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzg3NTRDOSIvPgo8L3JhZGlhbEdyYWRpZW50Pgo8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50Ml9saW5lYXJfNV8xNDkiIHgxPSI1NS4zMzMzIiB5MT0iNjQuNjY2NiIgeDI9IjY2LjY2NjciIHkyPSI2NC42NjY2IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CjxzdG9wIHN0b3AtY29sb3I9IiNGRjQwMDAiLz4KPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjODc1NEM5Ii8+CjwvbGluZWFyR3JhZGllbnQ+CjxsaW5lYXJHcmFkaWVudCBpZD0icGFpbnQzX2xpbmVhcl81XzE0OSIgeDE9IjE1LjMzMzMiIHkxPSIxMy4zMzM0IiB4Mj0iMTUuMzMzMyIgeTI9IjI0LjY2NjciIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iIzg3NTRDOSIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNGRjQwMDAiLz4KPC9saW5lYXJHcmFkaWVudD4KPHJhZGlhbEdyYWRpZW50IGlkPSJwYWludDRfcmFkaWFsXzVfMTQ5IiBjeD0iMCIgY3k9IjAiIHI9IjEiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIiBncmFkaWVudFRyYW5zZm9ybT0idHJhbnNsYXRlKDE3LjMzMzMgNjIuNjY2Nykgcm90YXRlKC05MCkgc2NhbGUoMzguNjY2NykiPgo8c3RvcCBvZmZzZXQ9IjAuNzIzOTI5IiBzdG9wLWNvbG9yPSIjRkZGNzAwIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0ZGOTkwMSIvPgo8L3JhZGlhbEdyYWRpZW50Pgo8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50NV9saW5lYXJfNV8xNDkiIHgxPSI0NS4zMzMzIiB5MT0iNjQuNjY2NiIgeDI9IjU2IiB5Mj0iNjQuNjY2NiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjRkZGNzAwIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0ZGOTkwMSIvPgo8L2xpbmVhckdyYWRpZW50Pgo8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50Nl9saW5lYXJfNV8xNDkiIHgxPSIxNS4zMzMzIiB5MT0iMzQuNjY2NyIgeDI9IjE1LjMzMzMiIHkyPSIyNCIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjRkZGNzAwIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0ZGOTkwMSIvPgo8L2xpbmVhckdyYWRpZW50Pgo8cmFkaWFsR3JhZGllbnQgaWQ9InBhaW50N19yYWRpYWxfNV8xNDkiIGN4PSIwIiBjeT0iMCIgcj0iMSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIGdyYWRpZW50VHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTcuMzMzMyA2Mi42NjY2KSByb3RhdGUoLTkwKSBzY2FsZSgyOCkiPgo8c3RvcCBvZmZzZXQ9IjAuNTk1MTMiIHN0b3AtY29sb3I9IiMwMEFBRkYiLz4KPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjMDFEQTQwIi8+CjwvcmFkaWFsR3JhZGllbnQ+CjxyYWRpYWxHcmFkaWVudCBpZD0icGFpbnQ4X3JhZGlhbF81XzE0OSIgY3g9IjAiIGN5PSIwIiByPSIxIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgZ3JhZGllbnRUcmFuc2Zvcm09InRyYW5zbGF0ZSgzNCA2NC42NjY2KSBzY2FsZSgxMS4zMzMzIDMwLjIyMjIpIj4KPHN0b3Agc3RvcC1jb2xvcj0iIzAwQUFGRiIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMwMURBNDAiLz4KPC9yYWRpYWxHcmFkaWVudD4KPHJhZGlhbEdyYWRpZW50IGlkPSJwYWludDlfcmFkaWFsXzVfMTQ5IiBjeD0iMCIgY3k9IjAiIHI9IjEiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIiBncmFkaWVudFRyYW5zZm9ybT0idHJhbnNsYXRlKDE1LjMzMzMgNDYpIHJvdGF0ZSgtOTApIHNjYWxlKDExLjMzMzMgMjE0LjkxMykiPgo8c3RvcCBzdG9wLWNvbG9yPSIjMDBBQUZGIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzAxREE0MCIvPgo8L3JhZGlhbEdyYWRpZW50Pgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzVfMTQ5Ij4KPHJlY3Qgd2lkdGg9IjgwIiBoZWlnaHQ9IjgwIiByeD0iMTIiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg=="},create:n=>{let r=new c.h({...n,projectId:e?.projectId,qrcode:!1});return eo(r,eA),r},connectUI:eS,isInstalled:eI});function eI(){return!!(0,d.g)()}function eS(e){let n=(0,m.u)();return(0,w.jsx)(ey,{connect:e.connect,connected:e.connected,createWalletInstance:e.createWalletInstance,goBack:e.goBack,meta:e.walletConfig.meta,setConnectedWallet:n=>e.setConnectedWallet(n),setConnectionStatus:e.setConnectionStatus,supportedWallets:e.supportedWallets,walletConnectUris:eA,walletLocale:n.wallets.rainbowWallet,isInstalled:eI})}var ek=Object.freeze({__proto__:null,rainbowWallet:eE});let eN=e=>{let[n,r]=(0,b.useState)("connecting"),i=(0,m.u)().wallets.phantomWallet,{walletConfig:a,connected:o}
242=e,[s,f]=(0,b.useState)(!1),{connect:l}=e,u=1===e.supportedWallets.length,{goBack:c}=e,d=(0,b.useCallback)(async()=>{try{p.current=!0,r("connecting"),f(!1),await $(1e3),await l(),o()}catch(e){f(!0),console.error(e)}},[o,l]),p=(0,b.useRef)(!1);return((0,b.useEffect)(()=>{if(p.current)return;let e=!!a.isInstalled&&a.isInstalled();(async()=>{e?d():r("get-started")})()},[a,o,l,c,d]),"connecting"===n)?(0,w.jsx)(N,{locale:{getStartedLink:i.getStartedLink,instruction:i.connectionScreen.instruction,tryAgain:i.connectionScreen.retry,inProgress:i.connectionScreen.inProgress,failed:i.connectionScreen.failed},hideBackButton:u,onBack:e.goBack,walletName:a.meta.name,walletIconURL:a.meta.iconURL,onGetStarted:()=>{r("get-started")},onRetry:()=>{d()},errorConnecting:s}):"get-started"===n?(0,w.jsx)(q,{locale:{scanToDownload:i.getStartedScreen.instruction},walletIconURL:a.meta.iconURL,walletName:a.meta.name,chromeExtensionLink:a.meta.urls?.chrome,googlePlayStoreLink:a.meta.urls?.android,appleStoreLink:a.meta.urls?.ios,onBack:()=>{e.goBack()}}):null},ej=e=>({recommended:e?.recommended,id:p.j.id,meta:{...p.j.meta,iconURL:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDgiIGhlaWdodD0iMTA4IiB2aWV3Qm94PSIwIDAgMTA4IDEwOCIgZmlsbD0ibm9uZSI+CjxyZWN0IHdpZHRoPSIxMDgiIGhlaWdodD0iMTA4IiByeD0iMjYiIGZpbGw9IiNBQjlGRjIiLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00Ni41MjY3IDY5LjkyMjlDNDIuMDA1NCA3Ni44NTA5IDM0LjQyOTIgODUuNjE4MiAyNC4zNDggODUuNjE4MkMxOS41ODI0IDg1LjYxODIgMTUgODMuNjU2MyAxNSA3NS4xMzQyQzE1IDUzLjQzMDUgNDQuNjMyNiAxOS44MzI3IDcyLjEyNjggMTkuODMyN0M4Ny43NjggMTkuODMyNyA5NCAzMC42ODQ2IDk0IDQzLjAwNzlDOTQgNTguODI1OCA4My43MzU1IDc2LjkxMjIgNzMuNTMyMSA3Ni45MTIyQzcwLjI5MzkgNzYuOTEyMiA2OC43MDUzIDc1LjEzNDIgNjguNzA1MyA3Mi4zMTRDNjguNzA1MyA3MS41NzgzIDY4LjgyNzUgNzAuNzgxMiA2OS4wNzE5IDY5LjkyMjlDNjUuNTg5MyA3NS44Njk5IDU4Ljg2ODUgODEuMzg3OCA1Mi41NzU0IDgxLjM4NzhDNDcuOTkzIDgxLjM4NzggNDUuNjcxMyA3OC41MDYzIDQ1LjY3MTMgNzQuNDU5OEM0NS42NzEzIDcyLjk4ODQgNDUuOTc2OCA3MS40NTU2IDQ2LjUyNjcgNjkuOTIyOVpNODMuNjc2MSA0Mi41Nzk0QzgzLjY3NjEgNDYuMTcwNCA4MS41NTc1IDQ3Ljk2NTggNzkuMTg3NSA0Ny45NjU4Qzc2Ljc4MTYgNDcuOTY1OCA3NC42OTg5IDQ2LjE3MDQgNzQuNjk4OSA0Mi41Nzk0Qzc0LjY5ODkgMzguOTg4NSA3Ni43ODE2IDM3LjE5MzEgNzkuMTg3NSAzNy4xOTMxQzgxLjU1NzUgMzcuMTkzMSA4My42NzYxIDM4Ljk4ODUgODMuNjc2MSA0Mi41Nzk0Wk03MC4yMTAzIDQyLjU3OTVDNzAuMjEwMyA0Ni4xNzA0IDY4LjA5MTYgNDcuOTY1OCA2NS43MjE2IDQ3Ljk2NThDNjMuMzE1NyA0Ny45NjU4IDYxLjIzMyA0Ni4xNzA0IDYxLjIzMyA0Mi41Nzk1QzYxLjIzMyAzOC45ODg1IDYzLjMxNTcgMzcuMTkzMSA2NS43MjE2IDM3LjE5MzFDNjguMDkxNiAzNy4xOTMxIDcwLjIxMDMgMzguOTg4NSA3MC4yMTAzIDQyLjU3OTVaIiBmaWxsPSIjRkZGREY4Ii8+Cjwvc3ZnPgo="},create:e=>new p.j(e),connectUI:eN,isInstalled:()=>!!(0,h.g)()}),eD=[es(),X(),ed(),eg(),eE(),eT(),ej()],e_=e=>(0,w.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e.size,height:e.size,viewBox:"0 0 27 16",fill:"none",children:[(0,w.jsx)("path",{d:"M13.6891 0C13.8482 0.0317795 13.9983 0.0957213 14.1292 0.1875C14.2768 0.297724 14.39 0.444328 14.4563 0.611413C14.8718 1.60272 15.2885 2.59348 15.7064 3.5837L17.0986 6.89022C17.3418 7.46902 17.5832 8.0462 17.8298 8.62337C17.8823 8.74121 17.9094 8.86791 17.9094 8.99592C17.9094 9.12393 17.8823 9.25064 17.8298 9.36848C17.1243 11.0446 16.4182 12.7217 15.7115 14.4C15.654 14.5572 15.5516 14.696 15.4157 14.8009C15.2799 14.9057 15.1161 14.9724 14.9426 14.9935C14.7283 15.0315 14.5068 14.9982 14.3153 14.899C14.1238 14.7998 13.9741 14.6409 13.8912 14.4489C13.4939 13.5196 13.1052 12.587 12.713 11.6543C12.0463 10.075 11.3813 8.49456 10.718 6.91304C10.1255 5.50543 9.5336 4.09891 8.94223 2.69348C8.7453 2.22717 8.55522 1.75761 8.34973 1.29293C8.29321 1.16705 8.26644 1.03087 8.27132 0.894047C8.27619 0.757221 8.31259 0.623087 8.37794 0.501137C8.44329 0.379187 8.53599 0.272402 8.64948 0.188339C8.76297 0.104275 8.89448 0.0449885 9.03471 0.0146733C9.05183 0.0146733 9.06724 0.0048913 9.08437 0H13.6891Z",fill:"currentColor"}),(0,w.jsx)("path",{d:"M5.42129 0C5.47438 0.0146739 5.52575 0.0260873 5.57712 0.0423917C5.71022 0.0819151 5.83236 0.14928 5.93458 0.239555C6.0368 0.329829 6.11653 0.440727 6.16791 0.56413C6.62457 1.63913 7.07779 2.71413 7.52759 3.78913C7.97739 4.8
2426413 8.43404 5.95109 8.89755 7.05L9.57053 8.64456C9.62093 8.75806 9.6469 8.88004 9.6469 9.00326C9.6469 9.12648 9.62093 9.24846 9.57053 9.36196C9.32052 9.9587 9.06936 10.5565 8.81706 11.1554L7.43512 14.431C7.36255 14.6012 7.23853 14.7471 7.07879 14.8501C6.91904 14.9532 6.73075 15.0087 6.5378 15.0098C6.33426 15.0125 6.13478 14.9554 5.96654 14.8463C5.7983 14.7372 5.6695 14.5814 5.59767 14.4C5.16956 13.3712 4.74145 12.344 4.30307 11.3168L2.54781 7.14946L0.763448 2.91033C0.539118 2.37554 0.314789 1.83913 0.0784718 1.30435C-0.0212674 1.08161 -0.026107 0.830668 0.0649731 0.604591C0.156053 0.378515 0.335913 0.195028 0.566519 0.0929347C0.650596 0.0604572 0.73701 0.0337587 0.825096 0.0130438L5.42129 0Z",fill:"currentColor"}),(0,w.jsx)("path",{d:"M26.0098 9.14348C25.8865 9.54782 25.7067 9.92935 25.5355 10.3239C25.0708 11.4315 24.6033 12.5397 24.133 13.6484C24.0251 13.9109 23.9155 14.1554 23.811 14.4114C23.7364 14.591 23.605 14.744 23.4351 14.8495C23.2651 14.9549 23.065 15.0075 22.8623 15C22.6689 14.995 22.4813 14.9353 22.3237 14.8284C22.166 14.7216 22.0453 14.5724 21.977 14.4C21.2989 12.7848 20.6196 11.1696 19.9392 9.55435C19.3524 8.16522 18.7633 6.77283 18.172 5.37717C17.6011 4.01087 17.0303 2.64456 16.4595 1.27826C16.4042 1.15338 16.3784 1.01844 16.3839 0.882999C16.3895 0.747561 16.4262 0.614939 16.4916 0.494528C16.5569 0.374117 16.6493 0.268861 16.7621 0.186219C16.875 0.103577 17.0055 0.0455688 17.1445 0.0163041L17.201 0H21.8023L21.8451 0.0130438C22.0073 0.0455066 22.158 0.116718 22.2833 0.219974C22.4085 0.32323 22.504 0.455132 22.5609 0.60326C22.8281 1.23913 23.0964 1.87554 23.3658 2.5125C24.0679 4.18206 24.77 5.85163 25.4721 7.52119C25.657 7.96141 25.8625 8.39348 26.0132 8.84511L26.0098 9.14348Z",fill:"currentColor"})]});function eO(e){let{termsOfServiceUrl:n,privacyPolicyUrl:r}=e,i=(0,m.u)().connectWallet.agreement;if(!n&&!r)return null;let a=n&&r;return(0,w.jsx)(g.C,{flex:"row",center:"x",children:(0,w.jsxs)(m.T,{size:"xs",multiline:!0,balance:!0,inline:!0,center:!0,style:{maxWidth:"250px"},children:[i.prefix," ",n&&(0,w.jsxs)(m.n,{inline:!0,size:"xs",href:n,target:"_blank",style:{whiteSpace:"nowrap"},children:[" ",i.termsOfService," "]}),a&&i.and+" ",r&&(0,w.jsx)(m.n,{inline:!0,size:"xs",href:r,target:"_blank",children:i.privacyPolicy})]})})}let eP=e=>(0,w.jsxs)("svg",{width:74*e.height/11,height:e.height,viewBox:"0 0 74 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,w.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M34.1489 0.373291C33.5297 0.373291 33.022 0.874761 33.022 1.51414C33.022 2.14097 33.5297 2.64244 34.1489 2.64244C34.7681 2.64244 35.2758 2.14097 35.2758 1.51414C35.2758 0.874761 34.7681 0.373291 34.1489 0.373291ZM35.1396 3.21913H33.1706V9.97644H35.1396V3.21913ZM21.6787 0.624035H23.5982V3.21914H25.0718V5.02444H23.5982V7.40642C23.5982 7.75745 23.8706 8.03326 24.205 8.03326H25.0594V9.95138H24.205C22.818 9.95138 21.6787 8.81054 21.6787 7.39389V5.0119H20.7871V3.20661H21.6787V0.624035ZM29.7652 3.0687C28.8736 3.0687 28.1677 3.44481 27.8953 4.03403V0.624035H25.9263V9.96392H27.8953V6.17782C27.8953 5.388 28.403 4.83639 29.1213 4.83639C29.8519 4.83639 30.2605 5.31278 30.2605 6.11514V9.97646H32.2295V5.8644C32.2295 4.10925 31.3379 3.0687 29.7652 3.0687ZM37.9507 3.2066V4.13432C38.2479 3.45734 38.9661 3.0687 39.8701 3.05616C40.0063 3.05616 40.1797 3.0687 40.3902 3.09377V4.97429C40.1921 4.93668 39.9692 4.9116 39.7339 4.9116C38.607 4.9116 37.9507 5.55098 37.9507 6.66675V9.96392H35.9817V3.2066H37.9507ZM45.9257 4.09672C45.7275 3.50749 44.9474 3.09378 43.9443 3.09378C43.0032 3.09378 42.2106 3.43227 41.5791 4.10926C40.9599 4.7737 40.6379 5.61367 40.6379 6.59154C40.6379 7.5694 40.9599 8.39683 41.5791 9.08635C42.2106 9.7508 43.0032 10.0893 43.9443 10.0893C44.9474 10.0893 45.7275 9.67558 45.9257 9.08635V9.97646H47.8946V0.624035H45.9257V4.09672ZM45.5294 7.79506C45.195 8.12102 44.7864 8.27146 44.3034 8.27146C43.8329 8.27146 43.4242 8.10848 43.1022 7.79506C42.7679 7.45657 42.6069 7.0554 42.6069 6.59154C42.6069 6.12767 42.7679 5.7265 43.1022 5.40054C43.4366 5.06205 43.8329 4.89907 44.3034 4.89907C44.7988 4.89907 45.2074 5.06205 45.5294 5.40054C45.8761 5.7265 46.0495 6.12767 46.0495 6.59154C46.0495 7.0554 45.8761 7.45657 45.5294 7.79506ZM53.5787 3.2442L55.3619 6.45361L56.5631 3.21913H58.4949L55.7458 10.3651L53.5787 6.47868L51.4115 10.3651L48.6748 3.21913H50.6066L51.7954 6.45361L53.5787 3.2442ZM61.7394 3.05616C60.7239 3.05616 59.8694 3.38212 59.2007 4.03403C58.5444 4.6734 58.2101 5.5259 58.2101 6.57899V6.64167C58.2101 7.69476 58.5444 8.54726 59.2007 9.18664C59.8818 9.81347 60.7487 10.1394 61.8384 10.1394C62.8539 10.1394 63.6836 9.93884 64.3151 9.52513V7.78252C63.6959 8.22131 62.9034 8.43443 61.9499 8.43443C60.9097 8.43443 60.2286 7.92042 60.1914 7.11807H65.0829C65.1077 6.91748 65.12 6.69182 65.12 6.46616C65.12 5.50083 64.7981 4.69848 64.1789 4.04657C63.5597 3.38212 62.73 3.05616 61.7394 3.05616ZM60.1914 5.82679C60.2038 5.51337 60.3648 5.25009 60.662 5.03697C60.9716 4.82385 61.3183 4.71101 61.7394 4.71101C62.5195 4.71101 63.1263 5.22502 63.1263 5.82679H60.1914ZM69.8135 3.09378C70.7546 3.09378 71.5472 3.43227 72.1663 4.10925C72.7979 4.78624 73.1199 5.60113 73.1199 6.579C73.1199 7.55686 72.7979 8.38429 72.1663 9.07381C71.5472 9.73826 70.7546 10.0768 69.8135 10.0768C68.8104 10.0768 68.0302 9.66304 67.8321 9.07381V9.96392H65.8631V0.
242624035H67.8321V4.09672C68.0302 3.50749 68.8104 3.09378 69.8135 3.09378ZM69.4543 8.27146C69.9249 8.27146 70.3212 8.12102 70.6555 7.79506C70.9899 7.45657 71.1509 7.05539 71.1509 6.59153C71.1509 6.12767 70.9899 5.7265 70.6555 5.40054C70.3336 5.06205 69.9249 4.89907 69.4543 4.89907C68.9714 4.89907 68.5627 5.06205 68.216 5.40054C67.8816 5.7265 67.7083 6.12767 67.7083 6.59153C67.7083 7.05539 67.8816 7.45657 68.216 7.79506C68.5503 8.10848 68.959 8.27146 69.4543 8.27146Z",fill:"currentColor"}),(0,w.jsx)("g",{clipPath:"url(#clip0_5017_2727)",children:(0,w.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.045011 0.900694C-0.126602 0.467742 0.193222 0 0.661257 0H3.56697C3.83999 0 4.08181 0.162357 4.18322 0.413623L6.49609 6.18115C6.55849 6.33578 6.55849 6.50973 6.49609 6.66822L5.04128 10.2903C4.81896 10.8431 4.03111 10.8431 3.80879 10.2903L0.045011 0.900694ZM5.65759 0.881366C5.50158 0.45228 5.8214 0 6.28164 0H8.81292C9.09374 0 9.34336 0.173954 9.43697 0.432951L11.5392 6.20048C11.5899 6.34351 11.5899 6.502 11.5392 6.6489L10.2755 10.1164C10.0649 10.6962 9.23805 10.6962 9.02744 10.1164L5.65759 0.881366ZM11.3404 0C10.8724 0 10.5525 0.467742 10.7241 0.900694L14.4879 10.2903C14.7102 10.8431 15.4981 10.8431 15.7204 10.2903L17.1752 6.66822C17.2376 6.50973 17.2376 6.33578 17.1752 6.18115L14.8623 0.413623C14.7609 0.162357 14.5191 0 14.2461 0H11.3404Z",fill:"currentColor"})}),(0,w.jsx)("defs",{children:(0,w.jsx)("clipPath",{id:"clip0_5017_2727",children:(0,w.jsx)("rect",{width:"17.219",height:"10.7049",fill:"white"})})})]});function eL(){return(0,w.jsx)(m.n,{color:"secondaryText",hoverColor:"primaryText",target:"_blank",href:"https://thirdweb.com/connect?utm_source=cw_text",children:(0,w.jsxs)(g.C,{flex:"row",center:"both",style:{color:"currentColor",gap:4},children:[(0,w.jsx)(m.T,{size:"sm",weight:600,style:{color:"currentColor"},children:"Powered by"}),(0,w.jsx)(eP,{height:13})]})})}let eR=e=>{let n,r;let i=(0,b.useContext)(m.M),a="compact"===i.modalSize,{termsOfServiceUrl:o,privacyPolicyUrl:s}=i,[f,l]=(0,b.useState)(!1),u=(0,M.qL0)(),c=(0,M.pX8)(),d=(0,m.u)().connectWallet,p=e.walletConfigs.find(e=>e.id===y.w.localWallet),h=e.walletConfigs.filter(e=>e.id!==y.w.localWallet),v=h.filter(e=>"socialLogin"===e.category),T=eZ(h.filter(e=>"socialLogin"!==e.category)),C=p&&(0,w.jsx)(g.B,{fullWidth:!0,variant:a?"outline":"link",style:a?void 0:{textAlign:"left",justifyContent:"flex-start"},onClick:()=>{e.selectWallet(p)},"data-test":"continue-as-guest-button",children:d.continueAsGuest}),A=(0,b.useRef)(!1);(0,b.useEffect)(()=>{setTimeout(()=>{A.current=!0},1e3)},[]);let E=(0,w.jsxs)(g.C,{gap:"xxs",center:"y",flex:"row",children:[void 0===i.titleIconUrl?(0,w.jsx)(m.n,{color:"primaryText",hoverColor:"accentText",target:"_blank",href:"https://thirdweb.com/connect?utm_source=cw",style:{display:"flex",alignItems:"center"},onClick:e=>{A.current||e.preventDefault()},children:(0,w.jsx)(e_,{size:g.i.md})}):""===i.titleIconUrl?null:(0,w.jsx)(g.I,{src:i.titleIconUrl,width:g.i.md,height:g.i.md}),(0,w.jsxs)(g.p,{children:[" ",e.title," "]})]}),I=async n=>{"disconnected"!==c&&await u(),e.selectWallet(n)},S=(0,w.jsxs)(g.B,{fullWidth:!0,variant:"outline",style:{display:"flex",justifyContent:"center",gap:g.s.sm,padding:g.s.md},onClick:()=>{l(!0)},children:[(0,w.jsx)(g.C,{flex:"row",gap:"xxs",children:T.slice(0,2).map(e=>(0,w.jsx)(g.I,{width:g.i.sm,height:g.i.sm,src:e.meta.iconURL},e.id))}),d.connectAWallet]}),k=(0,w.jsxs)(g.C,{flex:"row",style:{justifyContent:"space-between"},children:[(0,w.jsx)(m.T,{color:"secondaryText",size:"sm",weight:500,children:d.newToWallets}),(0,w.jsx)(m.n,{weight:500,size:"sm",target:"_blank",href:"https://blog.thirdweb.com/web3-wallet/",children:d.getStarted})]}),N=o||s?(0,w.jsx)(eO,{termsOfServiceUrl:o,privacyPolicyUrl:s}):void 0;return a?0===v.length?(n=(0,w.jsx)(ez,{walletConfigs:h,selectWallet:I,selectUIProps:e.selectUIProps}),r=(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(g.L,{}),(0,w.jsxs)(g.C,{flex:"column",p:"lg",gap:"lg",children:[k,C]}),!C&&(0,w.jsx)(g.L,{}),N&&(0,w.jsx)(g.C,{px:"md",style:{paddingBottom:g.s.md,paddingTop:C?0:g.s.md},children:N})]})):f?(n=(0,w.jsx)(ez,{walletConfigs:T,selectWallet:I,selectUIProps:e.selectUIProps}),r=(0,w.jsx)(g.h,{children:k})):(n=(0,w.jsxs)(g.C,{px:"xs",children:[(0,w.jsx)(ez,{walletConfigs:v,selectWallet:I,selectUIProps:e.selectUIProps}),T.length>0&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(m.f,{text:d.or}),(0,w.jsx)(m.S,{y:"lg"})]})]}),r=0===T.length?N||C?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(m.S,{y:"md"}),(0,w.jsx)(g.L,{}),C&&(0,w.jsxs)(g.C,{p:"lg",children:[" ",C]}),N&&(0,w.jsxs)(g.C,{p:"md",children:[" ",N," "]})]}):(0,w.jsx)(m.S,{y:"sm"}):T.length>1?(0,w.jsxs)(g.C,{flex:"column",gap:"sm",children:[(0,w.jsxs)(g.C,{px:"lg",flex:"column",gap:"md",children:[S,C]}),N?(0,w.jsxs)(g.C,{p:"md",children:[" ",N," "]}):(0,w.jsx)(m.S,{y:"md"})]}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(g.C,{px:"lg",children:(0,w.jsx)(ez,{walletConfigs:T,selectWallet:I,selectUIProps:e.selectUIProps})}
242),C&&(0,w.jsx)(g.C,{flex:"column",px:"lg",gap:"lg",children:C}),N?(0,w.jsxs)(w.Fragment,{children:[C?(0,w.jsx)(m.S,{y:"md"}):(0,w.jsx)(g.L,{}),(0,w.jsxs)(g.C,{p:"md",children:[" ",N," "]})]}):(0,w.jsx)(w.Fragment,{children:C&&(0,w.jsx)(m.S,{y:"xl"})})]})):(n=(0,w.jsx)(ez,{walletConfigs:h,selectWallet:I,selectUIProps:e.selectUIProps}),C&&(r=(0,w.jsx)(g.h,{children:C}))),(0,w.jsxs)(g.C,{scrollY:!0,flex:"column",animate:"fadein",fullHeight:!0,children:[!i.isEmbed&&(0,w.jsx)(g.C,{p:"lg",style:{paddingBottom:g.s.md},children:f?(0,w.jsx)(g.M,{title:E,onBack:()=>{l(!1)}}):E}),(0,w.jsxs)(g.C,{expand:!0,scrollY:!0,px:"md",style:i.isEmbed?{paddingTop:g.s.lg}:{paddingTop:"2px"},children:[i.isEmbed&&f&&(0,w.jsx)(g.C,{flex:"row",center:"y",style:{padding:g.s.sm,paddingTop:0},children:(0,w.jsxs)(g.g,{onClick:()=>{l(!1)},style:{gap:g.s.xxs,transform:`translateX(-${g.s.xs})`,paddingBlock:g.s.xxs,paddingRight:g.s.xs},children:[(0,w.jsx)(x.wyc,{width:g.i.sm,height:g.i.sm}),d.goBackButton]})}),n]}),(0,w.jsxs)("div",{children:[r,a&&!1!==i.showThirdwebBranding&&(0,w.jsx)(g.C,{py:"md",children:(0,w.jsx)(eL,{})})]})]})},ez=e=>{let n=(0,b.useContext)(m.M),r=(0,b.useContext)(m.p),i=eZ(e.walletConfigs);return(0,w.jsx)(eU,{children:i.map(i=>(0,w.jsx)("li",{"data-full-width":!!i.selectUI,children:i.selectUI?(0,w.jsx)(i.selectUI,{modalSize:n.modalSize,theme:"string"==typeof n.theme?n.theme:n.theme.type,supportedWallets:e.walletConfigs,onSelect:n=>{e.selectWallet(i),r(e=>({...e,data:n}))},walletConfig:i,connect:n=>e.selectUIProps.connect(i,n),connectionStatus:e.selectUIProps.connectionStatus,createWalletInstance:()=>e.selectUIProps.createWalletInstance(i),setConnectedWallet:e.selectUIProps.setConnectedWallet,setConnectionStatus:e.selectUIProps.setConnectionStatus,connectedWallet:e.selectUIProps.connectedWallet,connectedWalletAddress:e.selectUIProps.connectedWalletAddress}):(0,w.jsx)(eB,{walletConfig:i,selectWallet:()=>{e.selectWallet(i)}})},i.id))})};function eB(e){let{walletConfig:n,selectWallet:r}=e,i=n.recommended,a=(0,m.u)().connectWallet,{screen:o}=(0,m.g)();return(0,w.jsxs)(eF,{type:"button",onClick:()=>{r()},"data-active":o===e.walletConfig,children:[(0,w.jsx)(g.I,{src:n.meta.iconURL,width:g.i.xl,height:g.i.xl,loading:"eager"}),(0,w.jsxs)(g.C,{flex:"column",gap:"xxs",expand:!0,children:[(0,w.jsx)(m.T,{color:"primaryText",weight:600,children:n.meta.name}),i&&(0,w.jsx)(m.T,{size:"sm",children:a.recommended}),!i&&n.isInstalled&&n.isInstalled()&&(0,w.jsx)(m.T,{size:"sm",children:a.installed})]})]})}let eU=(0,g.t)({all:"unset",listStyleType:"none",display:"flex",flexDirection:"column",gap:"2px",boxSizing:"border-box",overflowY:"auto",flex:1,...g.n,padding:"2px",margin:"-2px",marginBottom:0,paddingBottom:g.s.lg}),eF=(0,g.b)(()=>{let e=(0,g.u)();return{all:"unset",display:"flex",alignItems:"center",gap:g.s.sm,cursor:"pointer",boxSizing:"border-box",width:"100%",color:e.colors.secondaryText,position:"relative",borderRadius:g.r.md,padding:`${g.s.xs} ${g.s.xs}`,"&:hover":{backgroundColor:e.colors.walletSelectorButtonHoverBg,transform:"scale(1.01)"},'&[data-active="true"]':{backgroundColor:e.colors.walletSelectorButtonHoverBg},transition:"background-color 200ms ease, transform 200ms ease"}});function eZ(e){return e.sort((e,n)=>{let r=!!e.isInstalled&&e.isInstalled(),i=!!n.isInstalled&&n.isInstalled();return r&&!i?-1:!r&&i?1:0}).sort((e,n)=>e.recommended&&!n.recommended?-1:!e.recommended&&n.recommended?1:0).sort((e,n)=>e.selectUI&&!n.selectUI?-1:!e.selectUI&&n.selectUI?1:0)}let eW=e=>{let n=(0,w.jsxs)("div",{style:{opacity:e.error?1:0,transition:"opacity 0.2s ease"},children:[(0,w.jsx)(m.S,{y:"sm"}),(0,w.jsxs)(m.T,{color:"danger",size:"sm",children:[e.error," \xa0"]})]});return(0,w.jsxs)("div",{children:[(0,w.jsx)(m.L,{htmlFor:e.id,children:e.label}),(0,w.jsx)(m.S,{y:"sm"}),(0,w.jsxs)(m.I,{"data-error":!!e.error,children:[(0,w.jsx)(m.h,{variant:"transparent",required:e.required,name:e.name,autoComplete:e.autocomplete,id:e.id,onChange:n=>e.onChange(n.target.value),value:e.value,type:e.noSave?"text":e.type,style:"password"===e.type&&e.noSave?{WebkitTextSecurity:"disc"}:void 0,"data-test":e.dataTest,placeholder:e.placeholder}),(0,w.jsx)(g.e,{type:"button",onClick:e.right.onClick,children:e.right.icon})]}),e.error&&!e.noErrorShift&&n,e.noErrorShift&&n]})},eH=e=>(0,w.jsxs)("div",{children:[(0,w.jsx)(m.L,{htmlFor:e.id,children:e.label}),(0,w.jsx)(m.S,{y:"sm"}),(0,w.jsx)(m.h,{variant:"outline",required:e.required,name:e.name,autoComplete:e.autocomplete,id:e.id,onChange:n=>e.onChange(n.target.value),value:e.value,type:e.type,"data-error":!!e.errorMessage,placeholder:e.placeholder,disabled:e.disabled}),e.errorMessage&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(m.S,{y:"xs"}),(0,w.jsx)(m.T,{color:"danger",size:"sm",children:e.errorMessage})]})]}),eG={1:"eth",137:"matic",43114:"avax",56:"bnb",10:"oeth",8453:"base",11155111:"sep",100:"gno",1313161554:"aurora",42161:"arb1",42220:"celo",1101:"zkevm",324:"zksync"},eq=(()=>{let e={};for(let[n,r]of Object.entries(eG))e[r]=Number(n);return e})()},22437:function(e,n,r){"use strict";r.d(n,{safeWallet:function(){return v}});var i=r(85560),a=r(36398),o=r(88003),s=r(60323),f=r(67294),l=r(96714),u=r(27515),c=r(85893),d=r(78808),p=r(62469),h=r(19485);r(92592);let y=e=>{let n=(0,l.u)(),r=n.wallets.safeWallet,a=e.personalWallets.find(e=>e.id===i.w.localWallet),d=e.personalWallets.filter(e=>e.id!==i.w.localWallet),{personalWalletConnection:p}=(0,o.tNP)(),{selectWallet:h}=e,y=(0,f.useRef)(!1);return((0,f.useEffect)(()=>{!y.current&&a&&0===d.length&&(y.current=!0,h(a))},[a,d.length,h]),a&&0===d.length)?(0,c.jsx)("div",{style:{height:"250px"}}):(0,c.jsxs)(u.C,{flex:"column",scrollY:!0,animate:"fadein",children:[(0,c.jsx)(u.C,{p:"lg",children:(0,c.jsx)(u.M,{title:e.s
242afeWallet.meta.name,onBack:e.renderBackButton?e.onBack:void 0,imgSrc:e.safeWallet.meta.iconURL})}),(0,c.jsx)(u.L,{}),(0,c.jsx)(l.S,{y:"sm"}),(0,c.jsxs)(u.C,{px:"lg",children:[(0,c.jsx)(l.S,{y:"md"}),(0,c.jsx)(l.T,{size:"lg",color:"primaryText",weight:500,children:r.connectWalletScreen.title}),(0,c.jsx)(l.S,{y:"sm"}),(0,c.jsxs)(l.T,{multiline:!0,children:[r.connectWalletScreen.subtitle," ",(0,c.jsx)(l.n,{inline:!0,target:"_blank",href:"https://docs.safe.global/getting-started/readme",style:{whiteSpace:"nowrap"},children:r.connectWalletScreen.learnMoreLink})," "]})]}),(0,c.jsx)(l.S,{y:"lg"}),(0,c.jsx)(u.C,{expand:!0,px:"md",scrollY:!0,children:(0,c.jsx)(s.g,{maxHeight:"300px",walletConfigs:d,selectWallet:e.selectWallet,selectUIProps:{connect:p.connectWallet,connectionStatus:p.connectionStatus,createWalletInstance:p.createWalletInstance,setConnectedWallet:p.setConnectedWallet,setConnectionStatus:p.setConnectionStatus,connectedWallet:p.activeWallet,connectedWalletAddress:p.address}})}),a&&(0,c.jsx)(u.h,{children:(0,c.jsx)(u.B,{variant:"link",fullWidth:!0,onClick:()=>{e.selectWallet(a)},"data-test":"continue-as-guest-button",children:n.connectWallet.continueAsGuest})})]})},m=e=>{let n=(0,l.u)().wallets.safeWallet.accountDetailsScreen,{personalWalletConnection:r}=(0,o.tNP)(),{activeWallet:i,chainId:a,switchChain:d}=r,{connect:y,connectionStatus:m}=e,[v,w]=(0,f.useState)(""),[x,T]=(0,f.useState)(-1),[C,M]=(0,f.useState)(!1),[A,E]=(0,f.useState)(!1),[I,S]=(0,f.useState)(!1),k=(0,o.EnH)().filter(e=>e.chainId in s.s),N=k.find(e=>e.chainId===x),j=k.filter(e=>e.testnet),D=k.filter(e=>!e.testnet),_=D.length>0&&j.length>0,O=async()=>{if(N&&i){M(!1);try{await y({chain:N,personalWallet:i,safeAddress:v}),e.onConnect()}catch(e){console.error(e),M(!0)}}},P=-1!==x&&a!==x,L=h.isAddress(v),R=1===k.length,z=(0,f.useContext)(l.M);return(0,c.jsx)(u.C,{fullHeight:!0,flex:"column",scrollY:!0,children:(0,c.jsxs)("form",{style:{height:"100%",display:"flex",flexDirection:"column"},onSubmit:e=>{e.preventDefault(),O()},children:[(0,c.jsx)(u.C,{p:"lg",children:(0,c.jsx)(u.M,{title:e.meta.name,onBack:e.renderBackButton?e.onBack:void 0,imgSrc:e.meta.iconURL})}),(0,c.jsx)(u.L,{}),(0,c.jsxs)(u.C,{expand:!0,flex:"column",p:"lg",scrollY:!0,style:{paddingTop:0},children:[(0,c.jsx)(l.S,{y:"xl"}),(0,c.jsx)(l.T,{color:"primaryText",size:"lg",weight:500,children:n.title}),(0,c.jsx)(l.S,{y:"sm"}),(0,c.jsxs)(u.a,{children:[n.findSafeAddressIn," ",(0,c.jsx)(l.n,{inline:!0,target:"_blank",href:"https://app.safe.global/home",style:{display:"inline",whiteSpace:"nowrap"},children:n.dashboardLink})]}),(0,c.jsx)(l.S,{y:"xl"}),(0,c.jsx)(s.j,{name:"safeAddress",id:"safeAddress",errorMessage:v&&!L?"Invalid Safe Address":void 0,autocomplete:"on",onChange:e=>{if(M(!1),e.length>4){let n=e.split(":")[0],r=n&&n in s.k?s.k[n]:void 0;r&&n?(T(r),w(e.slice(n.length+1))):w(e)}else w(e)},label:n.safeAddress,type:"text",value:v,required:!0,placeholder:"0x123..."}),(0,c.jsx)(l.S,{y:"lg"}),(0,c.jsx)(l.L,{htmlFor:"safeNetwork",children:n.network}),(0,c.jsx)(l.S,{y:"sm"}),(0,c.jsxs)("div",{style:{position:"relative"},children:[(0,c.jsxs)(g,{"data-error":0===k.length||C,required:!0,name:"safeNetwork",
242id:"safeNetwork",value:x,disabled:R,placeholder:n.selectNetworkPlaceholder,onChange:e=>{M(!1),E(!1),T(Number(e.target.value))},children:[!R&&(0,c.jsx)("option",{value:"",hidden:!0,children:n.selectNetworkPlaceholder}),_?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("optgroup",{label:n.mainnets,children:D.map(e=>(0,c.jsx)("option",{value:e.chainId,children:e.name},e.chainId))}),(0,c.jsx)("optgroup",{label:n.testnets,children:j.map(e=>(0,c.jsx)("option",{value:e.chainId,children:e.name},e.chainId))})]}):k.map(e=>(0,c.jsx)("option",{value:e.chainId,children:e.name},e.chainId))]}),!R&&(0,c.jsx)(b,{width:u.i.sm,height:u.i.sm,style:{position:"absolute",top:"50%",right:u.s.sm,transform:"translateY(-50%)",pointerEvents:"none"}})]}),(0,c.jsx)(l.S,{y:"sm"}),0===k.length&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(l.T,{color:"danger",multiline:!0,size:"xs",children:[" ",n.invalidChainConfig]}),(0,c.jsx)(l.S,{y:"sm"})]}),C&&(0,c.jsxs)(l.T,{size:"xs",multiline:!0,color:"danger",style:{display:"flex",gap:u.s.sm,alignItems:"center"},children:[(0,c.jsx)(p.LPM,{width:u.i.sm,height:u.i.sm}),(0,c.jsx)("span",{children:n.failedToConnect})]}),A&&(0,c.jsx)(l.T,{color:"danger",size:"sm",children:(0,c.jsxs)(u.C,{flex:"row",gap:"sm",center:"y",children:[(0,c.jsx)(p.LPM,{width:u.i.sm,height:u.i.sm}),n.failedToSwitch]})})]}),(0,c.jsx)(u.C,{p:"lg",flex:"row",style:{paddingTop:0,justifyContent:"flex-end"},children:P?(0,c.jsxs)(u.B,{type:"button",variant:"primary",style:{display:"flex",alignItems:"center",gap:u.s.sm,width:"compact"===z.modalSize?"100%":void 0},onClick:async()=>{if(!i)throw Error("No active wallet");M(!1),E(!1),S(!0);try{await d(x)}catch(e){E(!0)}finally{S(!1)}},children:[" ",I?n.switchingNetwork:n.switchNetwork,I&&(0,c.jsx)(l.a,{size:"sm",color:"primaryButtonText"})]}):(0,c.jsxs)(u.B,{variant:"accent",type:"submit",disabled:"connecting"===m,style:{display:"flex",alignItems:"center",gap:u.s.sm,width:"compact"===z.modalSize?"100%":void 0},children:["connecting"===m?n.connecting:n.connectToSafe,"connecting"===m&&(0,c.jsx)(l.a,{size:"sm",color:"accentButtonText"})]})})]})})},g=(0,u.w)(()=>{let e=(0,u.u)();return{width:"100%",padding:u.s.sm,boxSizing:"border-box",outline:"none",border:"none",borderRadius:"6px",color:e.colors.primaryText,background:"none",fontSize:u.f.md,boxShadow:`0 0 0 1.5px ${e.colors.secondaryButtonBg}`,appearance:"none","&:focus":{boxShadow:`0 0 0 2px ${e.colors.accentText}`},"&:invalid":{color:e.colors.secondaryText},"&[data-error='true']":{boxShadow:`0 0 0 1.5px ${e.colors.danger}`},"&[disabled]":{opacity:1,cursor:"not-allowed"}}}),b=(0,d.Z)(p.v4q)(()=>({color:(0,u.u)().colors.secondaryText})),v=e=>{let n=e?.personalWallets||s.d;return{id:a.v.id,recommended:e?.recommended,meta:{...a.v.meta,iconURL:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODAiIGhlaWdodD0iODAiIHZpZXdCb3g9IjAgMCA4MCA4MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjgwIiBoZWlnaHQ9IjgwIiByeD0iMTIiIGZpbGw9IiMxMkZGODAiLz4KPG1hc2sgaWQ9Im1hc2swXzFfNDgiIHN0eWxlPSJtYXNrLXR5cGU6bHVtaW5hbmNlIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4PSIxMiIgeT0iMTIiIHdpZHRoPSI1NiIgaGVpZ2h0PSI1NiI+CjxwYXRoIGQ9Ik00MCA2OEM1NS40NjQgNjggNjggNTUuNDY0IDY4IDQwQzY4IDI0LjUzNiA1NS40NjQgMTIgNDAgMTJDMjQuNTM2IDEyIDEyIDI0LjUzNiAxMiA0MEMxMiA1NS40NjQgMjQuNTM2IDY4IDQwIDY4WiIgZmlsbD0id2hpdGUiLz4KPC9tYXNrPgo8ZyBtYXNrPSJ1cmwoI21hc2swXzFfNDgpIj4KPHBhdGggZD0iTTY4LjEzNzUgNy40MjY3Nkg5LjMzNzUyVjcxLjk5NDhINjguMTM3NVY3LjQyNjc2WiIgZmlsbD0iIzEyRkY4MCIvPgo8L2c+CjxwYXRoIGQ9Ik01NS42NjgzIDQwLjAwNDZINTEuODQyOUM1MC43MDA1IDQwLjAwNDYgNDkuNzc0OCA0MC45MzA5IDQ5Ljc3NDggNDIuMDcyN1Y0Ny42MjQ2QzQ5Ljc3NDggNDguNzY3IDQ4Ljg0ODYgNDkuNjkyNyA0Ny43MDY4IDQ5LjY5MjdIMzIuNDg3NkMzMS4zNDUyIDQ5LjY5MjcgMzAuNDE5NiA1MC42MTg5IDMwLjQxOTYgNTEuNzYwN1Y1NS41ODYxQzMwLjQxOTYgNTYuNzI4NSAzMS4zNDU4IDU3LjY1NDIgMzIuNDg3NiA1Ny42NTQySDQ4LjU4NzZDNDkuNzMgNTcuNjU0MiA1MC42NDM0IDU2LjcyNzkgNTAuNjQzNCA1NS41ODYxVjUyLjUxNzNDNTAuNjQzNCA1MS4zNzQ5IDUxLjU2OTYgNTAuNTY0IDUyLjcxMTUgNTAuNTY0SDU1LjY2ODNDNTYuODEwNyA1MC41NjQgNTcuNzM2NCA0OS42Mzc4IDU3LjczNjQgNDguNDk1OVY0Mi4wNDgxQzU3LjczNjQgNDAuOTA1NyA1Ni44MTAxIDQwLjAwNDEgNTUuNjY4MyA0MC4wMDQxVjQwLjAwNDZaIiBmaWxsPSIjMTIxMzEyIi8+CjxwYXRoIGQ9Ik0zMC40Mj
242QgMzIuMzk5N0MzMC40MjQgMzEuMjU3MyAzMS4zNTAzIDMwLjMzMTYgMzIuNDkyMSAzMC4zMzE2SDQ3LjcwMTdDNDguODQ0MSAzMC4zMzE2IDQ5Ljc2OTggMjkuNDA1NCA0OS43Njk4IDI4LjI2MzZWMjQuNDM4MkM0OS43Njk4IDIzLjI5NTggNDguODQzNiAyMi4zNzAxIDQ3LjcwMTcgMjIuMzcwMUgzMS42MTA3QzMwLjQ2ODMgMjIuMzcwMSAyOS41NDI2IDIzLjI5NjQgMjkuNTQyNiAyNC40MzgyVjI3LjM4NTVDMjkuNTQyNiAyOC41Mjc5IDI4LjYxNjQgMjkuNDUzNiAyNy40NzQ1IDI5LjQ1MzZIMjQuNTMwNkMyMy4zODgyIDI5LjQ1MzYgMjIuNDYyNSAzMC4zNzk4IDIyLjQ2MjUgMzEuNTIxNlYzNy45NzYyQzIyLjQ2MjUgMzkuMTE4NiAyMy4zOTIxIDM5Ljk5NzggMjQuNTM0NSAzOS45OTc4SDI4LjM1OTlDMjkuNTAyMyAzOS45OTc4IDMwLjQyOCAzOS4wNzE2IDMwLjQyOCAzNy45Mjk3TDMwLjQyNDYgMzIuNDAwM0wzMC40MjQgMzIuMzk5N1oiIGZpbGw9IiMxMjEzMTIiLz4KPHBhdGggZD0iTTM4LjI5MjkgMzUuOTc1SDQxLjk2NzZDNDMuMTY0OSAzNS45NzUgNDQuMTM3MSAzNi45NDcxIDQ0LjEzNzEgMzguMTQ0NFY0MS44MTkxQzQ0LjEzNzEgNDMuMDE2NCA0My4xNjQ5IDQzLjk4ODYgNDEuOTY3NiA0My45ODg2SDM4LjI5MjlDMzcuMDk1NiA0My45ODg2IDM2LjEyMzUgNDMuMDE2NCAzNi4xMjM1IDQxLjgxOTFWMzguMTQ0NEMzNi4xMjM1IDM2Ljk0NzEgMzcuMDk1NiAzNS45NzUgMzguMjkyOSAzNS45NzVaIiBmaWxsPSIjMTIxMzEyIi8+Cjwvc3ZnPgo="},create:e=>new a.v({...e}),connectUI:e=>(0,c.jsx)(w,{...e,personalWallets:n}),isInstalled:()=>!1,personalWallets:n}},w=e=>{let{personalWalletConnection:n}=(0,o.tNP)(),[r,i]=(0,f.useState)(),a=(0,o.qL0)();if(r){let o={goBack:()=>{n.disconnectWallet(),a(),i(void 0)},connected(){i(void 0)},isOpen:e.isOpen,hide:e.hide,show:e.show,theme:e.theme,walletConfig:r,supportedWallets:e.personalWallets,selectionData:e.selectionData,setSelectionData:e.setSelectionData,modalSize:e.modalSize,connect:e=>n.connectWallet(r,e),setConnectedWallet(e){n.setConnectedWallet(e)},setConnectionStatus(e){n.setConnectionStatus(e)},connectionStatus:n.connectionStatus,createWalletInstance:()=>n.createWalletInstance(r),connectedWallet:n.activeWallet,connectedWalletAddress:n.address};return r.connectUI?(0,c.jsx)(r.connectUI,{...o}):(0,c.jsx)(s.H,{...o})}return n.activeWallet?(0,c.jsx)(m,{renderBackButton:e.supportedWallets.length>1,onBack:()=>{n.disconnectWallet(),a(),e.goBack()},onConnect:e.connected,connect:e.connect,connectionStatus:e.connectionStatus,meta:e.walletConfig.meta}):(0,c.jsx)(y,{personalWallets:e.personalWallets,onBack:e.goBack,safeWallet:e.walletConfig,selectWallet:i,renderBackButton:e.supportedWallets.length>1})}},7213:function(e,n,r){"use strict";r.d(n,{RZ8:function(){return s.C},wyl:function(){return s.T},Dq5:function(){return f.c},J_R:function(){return s.e},k9e:function(){return f.m},SFn:function(){return l.SFn},aCi:function(){return l.aCi},AbE:function(){return l.AbE},pX8:function(){return l.pX8},qL0:function(){return l.qL0},eC:function(){return l.eC},o$C:function(){return l.o$C}});var i,a,o,s=r(15514),f=r(60323),l=r(88003),u=(r(59577),r(67294));r(10498);var c=r(96714),d=r(27515),p=r(62469);r(78808);var h=r(85893);r(3601),r(31298),r(22437),r(81225);var y=r(48711),m=r(85662),g=r(70444);function b(e,n){if(void 0===e.inserted[n.name])return e.insert("",n,e.sheet,!0)}function v(e,n,r){var i=[],a=(0,g.fp)(e,i,r);return i.length<2?r:a+n(i)}var w=function e(n){for(var r="",i=0;i<n.length;i++){var a=n[i];if(null!=a){var o=void 0;switch(typeof a){case"boolean":break;case"object":if(Array.isArray(a))o=e(a);else for(var s in o="",a)a[s]&&s&&(o&&(o+=" "),o+=s);break;default:o=a}o&&(r&&(r+=" "),r+=o)}}return r},x=(i={key:"css"},(a=(0,y.Z)(i)).sheet.speedy=function(e){this.isSpeedy=e},a.compat=!0,{css:o=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=(0,m.O)(n,a.registered,void 0);return(0,g.My)(a,i,!1),a.key+"-"+i.name},cx:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return v(a.registered,o,w(n))},injectGlobal:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=(0,m.O)(n,a.registered);b(a,i)},keyframes:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=(0,m.O)(n,a.registered),o="animation-"+i.name;return b(a,{name:i.name,styles:"@keyframes "+o+"{"+i.styles+"}"}),o},hydrate:function(e){e.forEach(function(e){a.inserted[e]=!0})},flush:function(){a.registered={},a.inserted={},a.sheet.flush()},sheet:a.sheet,cache:a,getRegisteredStyles:g.fp.bind(null,a.registered),merge:v.bind(null,a.registered,o)}),T=(x.flush,x.hydrate,x.cx,x.merge,x.getRegisteredStyles,x.injectGlobal,x.keyframes),C=x.css;x.sheet,x.cache,r(20640),r(24902),r(87626),r(92592),r(48764).Buffer;C` 243 opacity: 0; 244`,C` 245 opacity: 1; 246`,C` 247 position: relative; 248 width: 100%; 249 height: 100%; 250`,C` 251 display: grid; 252 position: relative; 253 width: 100%; 254`,C` 255 transition-delay: 150ms; 256 transition-property: opacity; 257 transition-duration: 75ms; 258`,C` 259 transition-property: opacity; 260 transition-duration: 150ms; 261`,C` 262 background-color: transparent; 263 grid-column-start: 1; 264 grid-row-start: 1; 265`;let M=T` 266 from { 267 transform: rotate(0deg); 268 } 269 to { 270 transform: rotate(360deg); 271 } 272`;C` 273 border: 0.15rem solid #f3f3f300; 274 border-top: 0.15rem solid #000000; 275 border-left: 0.15rem solid #000000; 276 border-radius: 50%; 277 width: 4rem; 278 height: 4rem; 279 animation: ${M} 1s linear infinite; 280`,C` 281 position: absolute; 282 top: 50%; 283 left: 50%; 284 transform: translate3d(-50%, -50%, 0); 285`,C` 286 color: #000000; 287 width: 2rem; 288 height: 2rem; 289`,C` 290 padding-top: 0.625rem; 291 padding-bottom: 0.625rem; 292 padding-left: 1.25rem; 293 padding-right: 1.25rem; 294 background-color: #1f2937; 295 color: #ffffff; 296 font-size: 0.875rem; 297 line-height: 1.25rem; 298 font-weight: 600; 299 justify-content: flex-start; 300 align-items: center; 301 border-radius: 0.5rem; 302 border: none; 303 cursor: pointer; 304`},81225:function(e,n,r){"use strict";
304r.d(n,{walletConnectV1:function(){return a}});var i=r(60323);r(96714),r(27515),r(67294),r(85893),r(78808),r(88003),r(92592);let a=i.a},78808:function(e,n,r){"use strict";r.d(n,{Z:function(){return m}});var i=r(87462),a=r(67294),o=r(71068),s=r(38741),f=r(70444),l=r(85662),u=r(27278),c=o.Z,d=function(e){return"theme"!==e},p=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?c:d},h=function(e,n,r){var i;if(n){var a=n.shouldForwardProp;i=e.__emotion_forwardProp&&a?function(n){return e.__emotion_forwardProp(n)&&a(n)}:a}return"function"!=typeof i&&r&&(i=e.__emotion_forwardProp),i},y=function(e){var n=e.cache,r=e.serialized,i=e.isStringTag;return(0,f.hC)(n,r,i),(0,u.L)(function(){return(0,f.My)(n,r,i)}),null},m=(function e(n,r){var o,u,c=n.__emotion_real===n,d=c&&n.__emotion_base||n;void 0!==r&&(o=r.label,u=r.target);var m=h(n,r,c),g=m||p(d),b=!g("as");return function(){var v=arguments,w=c&&void 0!==n.__emotion_styles?n.__emotion_styles.slice(0):[];if(void 0!==o&&w.push("label:"+o+";"),null==v[0]||void 0===v[0].raw)w.push.apply(w,v);else{w.push(v[0][0]);for(var x=v.length,T=1;T<x;T++)w.push(v[T],v[0][T])}var C=(0,s.w)(function(e,n,r){var i=b&&e.as||d,o="",c=[],h=e;if(null==e.theme){for(var v in h={},e)h[v]=e[v];h.theme=a.useContext(s.T)}"string"==typeof e.className?o=(0,f.fp)(n.registered,c,e.className):null!=e.className&&(o=e.className+" ");var x=(0,l.O)(w.concat(c),n.registered,h);o+=n.key+"-"+x.name,void 0!==u&&(o+=" "+u);var T=b&&void 0===m?p(i):g,C={};for(var M in e)(!b||"as"!==M)&&T(M)&&(C[M]=e[M]);return C.className=o,C.ref=r,a.createElement(a.Fragment,null,a.createElement(y,{cache:n,serialized:x,isStringTag:"string"==typeof i}),a.createElement(i,C))});return C.displayName=void 0!==o?o:"Styled("+("string"==typeof d?d:d.displayName||d.name||"Component")+")",C.defaultProps=n.defaultProps,C.__emotion_real=C,C.__emotion_base=d,C.__emotion_styles=w,C.__emotion_forwardProp=m,Object.defineProperty(C,"toString",{value:function(){return"."+u}}),C.withComponent=function(n,a){return e(n,(0,i.Z)({},r,a,{shouldForwardProp:h(C,a,!0)})).apply(void 0,w)},C}}).bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){m[e]=m(e)})},88046:function(e,n,r){"use strict";r.d(n,{a:function(){return h},b:function(){return c},c:function(){return p},d:function(){return y},g:function(){return d}});var i=r(2515),a=r(8198),o=r(16441),s=r(64146),f=r(2593),l=r(38776);function u(e){return"("+e.map(e=>"tuple"===e.type?u(e.components):"tuple[]"===e.type?u(e.components)+"[]":e.type).join(",")+")"}function c(e){let n=new a.vU(e),r=[];for(let e of Object.values(n.functions)){let i=n.getFunction(n.getSighash(e));i.name.startsWith("_")||r.push({functionSelector:n.getSighash(i),functionSignature:i.name+u(i.inputs)})}return r}async function d(e,n,r,o,s,f){i.dD.deploymentPresets={};let[d,{compilerMetadata:p,extendedMetadata:h}]=await Promise.all([o||(0,i.aw)(r),(0,i.aJ)(e,n)]),y={},m=[],g=h?.defaultExtensions;if(h?.routerType==="plugin"&&g){(0,l.Z)(s||f,"Require Client Id / Secret Key");let e=await Promise.all(g.map(e=>(0,i.aI)(e.publisherAddress,e.extensionName,e.extensionVersion,n,s,f))),o=(await Promise.all(e.map(e=>(0,i.aJ)(e.metadataUri,n)))).map(e=>e.compilerMetadata),c=await Promise.all(o.map(e=>(0,i.aE)("plugin",r,n,d,{metadata:e},s,f))),p=[];o.forEach((e,n)=>{let r=function(e,n){let r=new a.vU(n),i=[];for(let n of Object.values(r.functions)){let a=r.getFunction(r.getSighash(n));a.name.includes("_")||i.push({functionSelector:r.getSighash(a),functionSignature:a.name+u(a.inputs),pluginAddress:e})}return i}(c[n].transaction.predictedAddress,e.abi);p.push(...r)});let h=await (0,i.aE)("plugin",r,n,d,{contractName:"PluginMap",constructorParams:{_pluginsToAdd:{value:p}}},s,f);y._pluginMap={value:h.transaction.predictedAddress},m.push(...c,h)}else if(h?.routerType==="dynamic"&&g){(0,l.Z)(s||f,"Require Client Id / Secret Key");let e=await Promise.all(g.map(e=>(0,i.aI)(e.publisherAddress,e.extensionName,e.extensionVersion,n,s,f))),a=(await Promise.all(e.map(async e=>(0,i.aJ)(e.metadataUri,n)))).map(e=>e.compilerMetadata),o=await Promise.all(a.map(e=>(0,i.aE)("extension",r,n,d,{metadata:e},s,f))),u=[];a.forEach((e,n)=>{let r=c(e.abi);u.push({metadata:{name:e.name,metadataURI:"",implementation:o[n].transaction.predictedAddress},functions:r})}),y._extensions={value:u},m.push(...o)}let[b,v]=await Promise.all([(0,i.aE)("implementation",r,n,d,{metadata:p,constructorParams:y},s,f),(0,i.aE)("infra",r,n,d,{contractName:"TWCloneFactory"},s,f)]);return m.push(v),m.push(...Object.values(i.dD.deploymentPresets)),m.push(b),m}function p(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.ar;if(0===(e=e.filter(e=>e.data.length>0)).length)return[];let r=[],a=0,s=[];
304return e.forEach(e=>{var i;let f;let l=(i=e.data,f=Math.floor(64*(f=o.arrayify(i).map(e=>0===e?4:16).reduce((e,n)=>e+n)+200*i.length/2+6*Math.ceil(i.length/64)+32e3+21e3)/63));a+l>n?0===s.length?r.push([e]):(r.push(s),a=l,s=[e]):(a+=l,s.push(e))}),s.length>0&&r.push(s),r}async function h(e,n,r){let a=p(n);if(0===a.length)return;r?.notifier?.("deploying","infra");let o=await Promise.all(a.map(n=>new s.lV(i.at,i.as).connect(e).deploy(n)));await Promise.all(o.map(e=>e.deployed())),r?.notifier?.("deployed","infra")}async function y(e,n,r){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:7e6;if((0,l.Z)(e.provider,"Provider required"),!await (0,i.au)(n.predictedAddress,e.provider)){console.debug(`deploying contract via create2 factory at: ${n.predictedAddress}`);let i={to:n.to,data:n.data};try{await e.estimateGas(i)}catch(e){console.debug("error estimating gas while deploying prebuilt: ",e),i.gasLimit=f.O$.from(a)}r?.notifier?.("deploying","preset"),await (await e.sendTransaction(i)).wait(),r?.notifier?.("deployed","preset")}}},43277:function(e,n,r){"use strict";r.d(n,{C:function(){return l},a:function(){return d},f:function(){return c},i:function(){return u}});var i=r(9279),a=r(64146),o=r(2593),s=r(61744),f=r(2515);class l{constructor(e){this.contractWrapper=e}encode(e,n){return this.contractWrapper.readContract.interface.encodeFunctionData(e,n)}decode(e,n){return this.contractWrapper.readContract.interface.decodeFunctionData(e,n)}decodeResult(e,n){return this.contractWrapper.readContract.interface.decodeFunctionResult(e,n)}}function u(e){return e.toLowerCase()===f.aV||e.toLowerCase()===i.d}async function c(e,n){if(u(n)){let n=await e.getNetwork(),r=(0,f.aX)(n.chainId);return{name:r.name,symbol:r.symbol,decimals:r.decimals}}{let i=(await Promise.resolve().then(r.t.bind(r,82037,19))).default,o=new a.CH(n,i,e),[s,f,l]=await Promise.all([o.name(),o.symbol(),o.decimals()]);return{name:s,symbol:f,decimals:l}}}async function d(e,n,r){let i=await c(e,n);return{...i,value:o.O$.from(r),displayValue:s.formatUnits(r,i.decimals)}}},81763:function(e,n,r){"use strict";async function i(e,n){return await Promise.all(Object.entries(e.metadata.sources).map(async e=>{let[r,i]=e,a=i.urls,o=a?a.find(e=>e.includes("ipfs")):void 0;if(!o)return{filename:r,source:i.content||"Could not find source for this contract"};{let e=o.split("ipfs/")[1],i=new Promise((e,n)=>setTimeout(()=>n("timeout"),3e3));return{filename:r,source:await Promise.race([(await n.download(`ipfs://${e}`)).text(),i])}}}))}r.d(n,{f:function(){return i}})},66869:function(e,n,r){"use strict";r.d(n,{b:function(){return d},c:function(){return p},d:function(){return h}});var i=r(9195),a=r(84802),o=r(71316),s=r(99910),f=r(22278);async function l(e){try{let n=new URLSearchParams;n.append("walletAddress",e.walletAddress),n.append("start",e.start.toString()),n.append("count",e.count.toString());let r=n.toString(),i=`${(0,f._v)()}?${r}`,a=await (0,s.NX)(e.client)(i);if(!a.ok)throw a.body?.cancel(),Error(`HTTP error! status: ${a.status}`);return(await a.json()).result}catch(e){throw Error(`Fetch failed: ${e}`)}}var u=r(7101),c=r(83159);async function d(e){let n;if(e.secretKey&&(n=(0,i.P)({secretKey:e.secretKey})),e.clientId&&(n=(0,i.P)({clientId:e.clientId})),!n)throw Error("You must provide either a `clientId` or a `secretKey` to get a quote");return l({...e,client:n})}async function p(e){let n;if(e.secretKey&&(n=(0,i.P)({secretKey:e.secretKey})),e.clientId&&(n=(0,i.P)({clientId:e.clientId})),!n)throw Error("You must provide either a `clientId` or a `secretKey` to get a quote");let r=await (0,a.D)({...e,client:n}),s=(0,o.prepareTransaction)(r.transactionRequest),f=r.approval?(0,o.prepareTransaction)(r.approval):void 0,[l,u,d,p,h,y,m,g,b,v,w,x]=await Promise.all([(0,c.q)(s.to),(0,c.q)(s.data),(0,c.q)(s.gasPrice),(0,c.q)(s.gas),(0,c.q)(s.nonce),(0,c.q)(s.value),(0,c.q)(f?.to),(0,c.q)(f?.data),(0,c.q)(f?.gas),(0,c.q)(f?.gasPrice),(0,c.q)(f?.nonce),(0,c.q)(f?.value)]);return{transactionRequest:{to:l,data:u,gasPrice:d,gasLimit:p,nonce:h,value:y,chainId:s.chain.id},approval:f?{to:m,data:g,gasLimit:b,gasPrice:v,nonce:w,value:x,chainId:f.chain.id}:void 0,swapDetails:r.swapDetails,paymentTokens:r.paymentTokens,processingFees:r.processingFees,client:n}}async function h(e){return(0,u.w)({...e,client:(0,i.P)({clientId:e.clientId})})}},2515:function(e,n,r){"use strict";let i,a,o,s,f,l,u,c,d,p,h,y;r.d(n,{B:function(){return ad},E:function(){return oP},G:function(){return aW},H:function(){return aH},J:function(){return iE},K:function(){return iI},L:function(){return ai},M:function(){return oR},N:function(){return oU},P:function(){return oZ},T:function(){return oG},V:function(){return oY},W:function(){return aa},Y:function(){return nl},a:function(){return oL},a0:function(){return iw},a1:function(){return i1},a2:function(){return ix},a4:function(){return n4},a6:function(){return n8},a8:function(){return nc},a9:function(){return nd},aA:function(){return iQ},aB:function(){return i9},aC:function(){return i7},aE:function(){return i4},aF:function(){return i3},aH:function(){return nw},aI:function(){return nx},aJ:function(){return ng},aL:function(){return tm},aM:function(){return av},aO:function(){return aj},aP:function(){return aD},aQ:function(){return e2},aR:function(){return rr},aS:function(){return iK},aT:function(){return nv},aV:function(){return i$},aW:function(){return iJ},aX:function(){return iX},aY:function(){return i0},aZ:function(){return a_},a_:function(){return to},aa:function(){return nf},ab:function(){return iC},ah:function(){return aR},ai:function(){return az},aj:function(){return ri},ak:function(){return aF},am:function(){return tj},ar:function(){return iz},as:function(){return iB},at:function(){return iU},au:function(){return iF},aw:function(){return iH},ax:function(){return iG},az:function(){return iV},b:function(){return oz},b$:function(){return a0},b1:function(){return ts},b3:function(){return tu},b5:function(){return tD},b6:function(){return t_},b8:function(){return th},b9:function(){return ty},bD:function(){return tP},bF:function(){return tR},bG:function(){return tz},bH:function(){return tB},bI:function(){return tU},bJ:function(){return tF},bM:function(){return tH},bN:function(){return tG},bO:function(){return tq},bT:function(){return aX},bX:function(){return aY},bg:function(){return tQ},bj:function(){return tX},bv:function(){return nt},by:function(){return nr},bz:function(){return ni},c:function(){return oB},c$:function(){return rP},c3:function(){return a3}
304,c7:function(){return ot},cA:function(){return tI},cB:function(){return tx},cC:function(){return tC},cD:function(){return rl},cE:function(){return ro},cF:function(){return rc},cG:function(){return rd},cH:function(){return ru},cI:function(){return rh},cJ:function(){return r3},cK:function(){return r8},cL:function(){return ry},cM:function(){return rv},cN:function(){return rC},cO:function(){return rT},cP:function(){return rM},cQ:function(){return rm},cR:function(){return r_},cS:function(){return rO},cT:function(){return rA},cU:function(){return rE},cV:function(){return rD},cW:function(){return rk},cX:function(){return rN},cY:function(){return rj},cZ:function(){return rg},c_:function(){return rI},cb:function(){return os},cf:function(){return ou},cj:function(){return oi},cp:function(){return oy},cr:function(){return aP},cs:function(){return aL},ct:function(){return iM},cu:function(){return i2},cv:function(){return e5},cw:function(){return tE},cx:function(){return tT},cy:function(){return tv},cz:function(){return tA},d:function(){return oF},d4:function(){return r4},d5:function(){return r1},d6:function(){return r9},d7:function(){return r6},d8:function(){return nh},d9:function(){return rF},dA:function(){return io},dB:function(){return is},dC:function(){return il},dD:function(){return i6},dE:function(){return tw},dG:function(){return og},dH:function(){return ob},dI:function(){return ox},dJ:function(){return a5},dK:function(){return ie},dL:function(){return ov},dM:function(){return om},dN:function(){return ow},dO:function(){return aK},da:function(){return rz},db:function(){return rG},dc:function(){return nT},dd:function(){return rL},de:function(){return rV},df:function(){return rW},dg:function(){return rZ},dh:function(){return rq},di:function(){return rY},dj:function(){return r$},dk:function(){return rK},dl:function(){return rQ},dm:function(){return id},dn:function(){return ip},dp:function(){return iu},dq:function(){return ir},dr:function(){return ih},ds:function(){return iy},dt:function(){return im},du:function(){return r5},dv:function(){return aI},dw:function(){return ab},dx:function(){return ah},dy:function(){return ap},dz:function(){return ay},e:function(){return oW},f:function(){return oH},g:function(){return oq},h:function(){return oQ},i:function(){return oK},j:function(){return oX},k:function(){return o0},n:function(){return ae},o:function(){return at},s:function(){return an},t:function(){return ar},w:function(){return ao},x:function(){return as},y:function(){return af},z:function(){return al}});var m,g,b=r(93901),v=r(6881),w=r(37707),x=r(42947),T=r(88089),C=r(27349),M=r(19485),A=r(2593),E=r(9279),I=r(64146),S=r(29251),k=r(16441),N=r(38197),j=r(83875),D=r(32046),_=r(31886),O=r(11388),P=r(84243),L=r(61744),R=r(67827),z=r(21046),B=r(1604),U=r(22555);r(98286);var F=r(38776),Z=r(13550),W=r.n(Z),H=r(77191),G=r.n(H),q=JSON.parse('[{"type":"function","name":"burn","inputs":[{"name":"amount","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"burnFrom","inputs":[{"name":"account","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"}]'),Y=JSON.parse('[{"type":"function","name":"claim","inputs":[{"name":"receiver","type":"address","internalType":"address"},{"name":"quantity","type":"uint256","internalType":"uint256"},{"name":"currency","type":"address","internalType":"address"},{"name":"pricePerToken","type":"uint256","internalType":"uint256"},{"name":"allowlistProof","type":"tuple","internalType":"struct IDrop.AllowlistProof","components":[{"name":"proof","type":"bytes32[]","internalType":"bytes32[]"},{"name":"quantityLimitPerWallet","type":"uint256","internalType":"uint256"},{"name":"pricePerToken","type":"uint256","internalType":"uint256"},{"name":"currency","type":"address","internalType":"address"}]},{"name":"data","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"setClaimConditions","inputs":[{"name":"phases","type":"tuple[]","internalType":"struct IClaimCondition.ClaimCondition[]","components":[{"name":"startTimestamp","type":"uint256","internalType":"uint256"},{"name":"maxClaimableSupply","type":"uint256","internalType":"uint256"},{"name":"supplyClaimed","type":"uint256","internalType":"uint256"},{"name":"quantityLimitPerWallet","type":"uint256","internalType":"uint256"},{"name":"merkleRoot","type":"bytes32","internalType":"bytes32"},{"name":"pricePerToken","type":"uint256","internalType":"uint256"},{"name":"currency","type":"address","internalType":"address"},{"name":"metadata","type":"string","internalType":"string"}]}
304,{"name":"resetClaimEligibility","type":"bool","internalType":"bool"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"event","name":"ClaimConditionsUpdated","inputs":[{"name":"claimConditions","type":"tuple[]","indexed":false,"internalType":"struct IClaimCondition.ClaimCondition[]","components":[{"name":"startTimestamp","type":"uint256","internalType":"uint256"},{"name":"maxClaimableSupply","type":"uint256","internalType":"uint256"},{"name":"supplyClaimed","type":"uint256","internalType":"uint256"},{"name":"quantityLimitPerWallet","type":"uint256","internalType":"uint256"},{"name":"merkleRoot","type":"bytes32","internalType":"bytes32"},{"name":"pricePerToken","type":"uint256","internalType":"uint256"},{"name":"currency","type":"address","internalType":"address"},{"name":"metadata","type":"string","internalType":"string"}]},{"name":"resetEligibility","type":"bool","indexed":false,"internalType":"bool"}],"anonymous":false},{"type":"event","name":"TokensClaimed","inputs":[{"name":"claimConditionIndex","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"claimer","type":"address","indexed":true,"internalType":"address"},{"name":"receiver","type":"address","indexed":true,"internalType":"address"},{"name":"startTokenId","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"quantityClaimed","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false}]'),V=JSON.parse('[{"type":"function","name":"allowance","inputs":[{"name":"owner","type":"address","internalType":"address"},{"name":"spender","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"approve","inputs":[{"name":"spender","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"nonpayable"},{"type":"function","name":"balanceOf","inputs":[{"name":"account","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"claim","inputs":[{"name":"receiver","type":"address","internalType":"address"},{"name":"quantity","type":"uint256","internalType":"uint256"},{"name":"currency","type":"address","internalType":"address"},{"name":"pricePerToken","type":"uint256","internalType":"uint256"},{"name":"proofs","type":"bytes32[]","internalType":"bytes32[]"},{"name":"proofMaxQuantityPerTransaction","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"setClaimConditions","inputs":[{"name":"phases","type":"tuple[]","internalType":"struct IDropClaimCondition_V2.ClaimCondition[]","components":[{"name":"startTimestamp","type":"uint256","internalType":"uint256"},{"name":"maxClaimableSupply","type":"uint256","internalType":"uint256"},{"name":"supplyClaimed","type":"uint256","internalType":"uint256"},{"name":"quantityLimitPerTransaction","type":"uint256","internalType":"uint256"},{"name":"waitTimeInSecondsBetweenClaims","type":"uint256","internalType":"uint256"},{"name":"merkleRoot","type":"bytes32","internalType":"bytes32"},{"name":"pricePerToken","type":"uint256","internalType":"uint256"},{"name":"currency","type":"address","internalType":"address"}]},{"name":"resetClaimEligibility","type":"bool","internalType":"bool"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"totalSupply","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"transfer","inputs":[{"name":"to","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"nonpayable"},{"type":"function","name":"transferFrom","inputs":[{"name":"from","type":"address","internalType":"address"},{"name":"to","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"nonpayable"},{"type":"event","name":"Approval","inputs":[{"name":"owner","type":"address","indexed":true,"internalType":"address"},{"name":"spender","type":"address","indexed":true,"internalType":"address"},{"name":"value","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"ClaimConditionsUpdated","inputs":[{"name":"claimConditions","type":"tuple[]","indexed":false,"internalType":"struct IDropClaimCondition_V2.ClaimCondition[]","components":[{"name":"startTimestamp","type":"uint256","internalType":"uint256"},{"name":"maxClaimableSupply","type":"uint256","internalType":"uint256"},{"name":"supplyClaimed","type":"uint256","internalType":"uint256"},{"name":"quantityLimitPerTransaction","type":"uint256","internalType":"uint256"},{"name":"waitTimeInSecondsBetweenClaims","type":"uint256","internalType":"uint256"},{"name":"merkleRoot","type":"bytes32","internalType":"bytes32"},{"name":"pricePerToken","type":"uint256","internalType":"uint256"},{"name":"currency","type":"address","internalType":"address"}]}],"anonymous":false},{"type":"event","name":"ContractURIUpdated","inputs":[{"name":"prevURI","type":"string","indexed":false,"internalType":"string"},{"name":"newURI","type":"string","indexed":false,"internalType":"string"}],"anonymous":false},{"type":"event","name":"MaxTotalSupplyUpdated","inputs":[{"name":"maxTotalSupply","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"MaxWalletClaimCountUpdated","inputs":[{"name":"count","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"TokensClaimed","inputs":[{"name":"claimConditionIndex","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"claimer","type":"address","indexed":true,"internalType":"address"},{"name":"receiver","type":"address","indexed":true,"internalType":"address"},{"name":"quantityClaimed","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"name":"from","type":"address","indexed":true,"internalType":"address"},{"name":"to","type":"address","indexed":true,"internalType":"address"},{"name":"value","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"WalletClaimCountUpdated","inputs":[{"name":"wallet","type":"address","indexed":true,"internalType":"address"},{"name":"count","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false}]'),Q=JSON.parse('[{"type":"function","name":"claim","inputs":[{"name":"receiver","type":"address","internalType":"address"},{"name":"quantity","type":"uint256","internalType":"uint256"},{"name":"currency","type":"address","internalType":"address"},{"name":"pricePerToken","type":"uint256","internalType":"uint256"},{"name":"allowlistProof","type":"tuple","internalType":"struct IDropSinglePhase.AllowlistProof","components":[{"name":"proof","type":"bytes32[]","internalType":"bytes32[]"},{"name":"quantityLimitPerWallet","type":"uint256","internalType":"uint256"},{"name":"pricePerToken","type":"uint256","internalType":"uint256"},{"name":"currency","type":"address","internalType":"address"}]},{"name":"data","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"setClaimConditions","inputs":[{"name":"phase","type":"tuple","internalType":"struct IClaimCondition.ClaimCondition","components":[{"name":"startTimestamp","type":"uint256","internalType":"uint256"},{"name":"maxClaimableSupply","type":"uint256","internalType":"uint256"},{"name":"supplyClaimed","type":"uint256","internalType":"uint256"},{"name":"quantityLimitPerWallet","type":"uint256","internalType":"uint256"},{"name":"merkleRoot","type":"bytes32","internalType":"bytes32"},{"name":"pricePerToken","type":"uint256","internalType":"uint256"},{"name":"currency","type":"address","internalType":"address"},{"name":"metadata","type":"string","internalType":"string"}]}
304,{"name":"resetClaimEligibility","type":"bool","internalType":"bool"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"event","name":"ClaimConditionUpdated","inputs":[{"name":"condition","type":"tuple","indexed":false,"internalType":"struct IClaimCondition.ClaimCondition","components":[{"name":"startTimestamp","type":"uint256","internalType":"uint256"},{"name":"maxClaimableSupply","type":"uint256","internalType":"uint256"},{"name":"supplyClaimed","type":"uint256","internalType":"uint256"},{"name":"quantityLimitPerWallet","type":"uint256","internalType":"uint256"},{"name":"merkleRoot","type":"bytes32","internalType":"bytes32"},{"name":"pricePerToken","type":"uint256","internalType":"uint256"},{"name":"currency","type":"address","internalType":"address"},{"name":"metadata","type":"string","internalType":"string"}]},{"name":"resetEligibility","type":"bool","indexed":false,"internalType":"bool"}],"anonymous":false},{"type":"event","name":"TokensClaimed","inputs":[{"name":"claimer","type":"address","indexed":true,"internalType":"address"},{"name":"receiver","type":"address","indexed":true,"internalType":"address"},{"name":"startTokenId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"quantityClaimed","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false}]'),K=JSON.parse('[{"type":"function","name":"claim","inputs":[{"name":"receiver","type":"address","internalType":"address"},{"name":"quantity","type":"uint256","internalType":"uint256"},{"name":"currency","type":"address","internalType":"address"},{"name":"pricePerToken","type":"uint256","internalType":"uint256"},{"name":"allowlistProof","type":"tuple","internalType":"struct IDropSinglePhase_V1.AllowlistProof","components":[{"name":"proof","type":"bytes32[]","internalType":"bytes32[]"},{"name":"maxQuantityInAllowlist","type":"uint256","internalType":"uint256"}]},{"name":"data","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"setClaimConditions","inputs":[{"name":"phase","type":"tuple","internalType":"struct IClaimCondition_V1.ClaimCondition","components":[{"name":"startTimestamp","type":"uint256","internalType":"uint256"},{"name":"maxClaimableSupply","type":"uint256","internalType":"uint256"},{"name":"supplyClaimed","type":"uint256","internalType":"uint256"},{"name":"quantityLimitPerTransaction","type":"uint256","internalType":"uint256"},{"name":"waitTimeInSecondsBetweenClaims","type":"uint256","internalType":"uint256"},{"name":"merkleRoot","type":"bytes32","internalType":"bytes32"},{"name":"pricePerToken","type":"uint256","internalType":"uint256"},{"name":"currency","type":"address","internalType":"address"}]},{"name":"resetClaimEligibility","type":"bool","internalType":"bool"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"event","name":"ClaimConditionUpdated","inputs":[{"name":"condition","type":"tuple","indexed":false,"internalType":"struct IClaimCondition_V1.ClaimCondition","components":[{"name":"startTimestamp","type":"uint256","internalType":"uint256"},{"name":"maxClaimableSupply","type":"uint256","internalType":"uint256"},{"name":"supplyClaimed","type":"uint256","internalType":"uint256"},{"name":"quantityLimitPerTransaction","type":"uint256","internalType":"uint256"},{"name":"waitTimeInSecondsBetweenClaims","type":"uint256","internalType":"uint256"},{"name":"merkleRoot","type":"bytes32","internalType":"bytes32"},{"name":"pricePerToken","type":"uint256","internalType":"uint256"},{"name":"currency","type":"address","internalType":"address"}]},{"name":"resetEligibility","type":"bool","indexed":false,"internalType":"bool"}],"anonymous":false},{"type":"event","name":"TokensClaimed","inputs":[{"name":"claimer","type":"address","indexed":true,"internalType":"address"},{"name":"receiver","type":"address","indexed":true,"internalType":"address"},{"name":"startTokenId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"quantityClaimed","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false}]'),$=r(49242),J=JSON.parse('[{"type":"function","name":"DOMAIN_SEPARATOR","inputs":[],"outputs":[{"name":"","type":"bytes32","internalType":"bytes32"}],"stateMutability":"view"},{"type":"function","name":"nonces","inputs":[{"name":"owner","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"permit","inputs":[{"name":"owner","type":"address","internalType":"address"},{"name":"spender","type":"address","internalType":"address"},{"name":"value","type":"uint256","internalType":"uint256"},{"name":"deadline","type":"uint256","internalType":"uint256"},{"name":"v","type":"uint8","internalType":"uint8"},{"name":"r","type":"bytes32","internalType":"bytes32"},{"name":"s","type":"bytes32","internalType":"bytes32"}],"outputs":[],"stateMutability":"nonpayable"}]'),X=JSON.parse('[{"type":"function","name":"mintTo","inputs":[{"name":"to","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"event","name":"TokensMinted","inputs":[{"name":"mintedTo","type":"address","indexed":true,"internalType":"address"},{"name":"quantityMinted","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false}
304]'),ee=JSON.parse('[{"type":"function","name":"multicall","inputs":[{"name":"data","type":"bytes[]","internalType":"bytes[]"}],"outputs":[{"name":"results","type":"bytes[]","internalType":"bytes[]"}],"stateMutability":"nonpayable"}]'),et=JSON.parse('[{"type":"function","name":"mintWithSignature","inputs":[{"name":"req","type":"tuple","internalType":"struct ISignatureMintERC20.MintRequest","components":[{"name":"to","type":"address","internalType":"address"},{"name":"primarySaleRecipient","type":"address","internalType":"address"},{"name":"quantity","type":"uint256","internalType":"uint256"},{"name":"price","type":"uint256","internalType":"uint256"},{"name":"currency","type":"address","internalType":"address"},{"name":"validityStartTimestamp","type":"uint128","internalType":"uint128"},{"name":"validityEndTimestamp","type":"uint128","internalType":"uint128"},{"name":"uid","type":"bytes32","internalType":"bytes32"}]},{"name":"signature","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"signer","type":"address","internalType":"address"}],"stateMutability":"payable"},{"type":"function","name":"verify","inputs":[{"name":"req","type":"tuple","internalType":"struct ISignatureMintERC20.MintRequest","components":[{"name":"to","type":"address","internalType":"address"},{"name":"primarySaleRecipient","type":"address","internalType":"address"},{"name":"quantity","type":"uint256","internalType":"uint256"},{"name":"price","type":"uint256","internalType":"uint256"},{"name":"currency","type":"address","internalType":"address"},{"name":"validityStartTimestamp","type":"uint128","internalType":"uint128"},{"name":"validityEndTimestamp","type":"uint128","internalType":"uint128"},{"name":"uid","type":"bytes32","internalType":"bytes32"}]},{"name":"signature","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"success","type":"bool","internalType":"bool"},{"name":"signer","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"event","name":"TokensMintedWithSignature","inputs":[{"name":"signer","type":"address","indexed":true,"internalType":"address"},{"name":"mintedTo","type":"address","indexed":true,"internalType":"address"},{"name":"mintRequest","type":"tuple","indexed":false,"internalType":"struct ISignatureMintERC20.MintRequest","components":[{"name":"to","type":"address","internalType":"address"},{"name":"primarySaleRecipient","type":"address","internalType":"address"},{"name":"quantity","type":"uint256","internalType":"uint256"},{"name":"price","type":"uint256","internalType":"uint256"},{"name":"currency","type":"address","internalType":"address"},{"name":"validityStartTimestamp","type":"uint128","internalType":"uint128"},{"name":"validityEndTimestamp","type":"uint128","internalType":"uint128"},{"name":"uid","type":"bytes32","internalType":"bytes32"}]}],"anonymous":false}]'),en=r(82037),er=JSON.parse('[{"type":"function","name":"burn","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"}]'),ei=JSON.parse('[{"type":"function","name":"claim","inputs":[{"name":"_receiver","type":"address","internalType":"address"},{"name":"_quantity","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"verifyClaim","inputs":[{"name":"_claimer","type":"address","internalType":"address"},{"name":"_quantity","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"view"},{"type":"event","name":"TokensClaimed","inputs":[{"name":"claimer","type":"address","indexed":true,"internalType":"address"},{"name":"receiver","type":"address","indexed":true,"internalType":"address"},{"name":"startTokenId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"quantityClaimed","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false}]'),ea=JSON.parse('[{"type":"function","name":"encryptDecrypt","inputs":[{"name":"data","type":"bytes","internalType":"bytes"},{"name":"key","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"result","type":"bytes","internalType":"bytes"}],"stateMutability":"pure"},{"type":"function","name":"reveal","inputs":[{"name":"identifier","type":"uint256","internalType":"uint256"},{"name":"key","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"revealedURI","type":"string","internalType":"string"}],"stateMutability":"nonpayable"},{"type":"event","name":"TokenURIRevealed","inputs":[{"name":"index","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"revealedURI","type":"string","indexed":false,"internalType":"string"}],"anonymous":false}]'),eo=JSON.parse('[{"type":"function","name":"approve","inputs":[{"name":"to","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"balanceOf","inputs":[{"name":"owner","type":"address","internalType":"address"}],"outputs":[{"name":"balance","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"claim","inputs":[{"name":"receiver","type":"address","internalType":"address"},{"name":"quantity","type":"uint256","internalType":"uint256"},{"name":"currency","type":"address","internalType":"address"},{"name":"pricePerToken","type":"uint256","internalType":"uint256"},{"name":"proofs","type":"bytes32[]","internalType":"bytes32[]"},{"name":"proofMaxQuantityPerTransaction","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"getApproved","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"operator","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"isApprovedForAll","inputs":[{"name":"owner","type":"address","internalType":"address"},{"name":"operator","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"lazyMint","inputs":[{"name":"amount","type":"uint256","internalType":"uint256"},{"name":"baseURIForTokens","type":"string","internalType":"string"},{"name":"encryptedBaseURI","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"ownerOf","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"owner","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"safeTransferFrom","inputs":[{"name":"from","type":"address","internalType":"address"},{"name":"to","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"safeTransferFrom","inputs":[{"name":"from","type":"address","internalType":"address"},{"name":"to","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"data","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"setApprovalForAll","inputs":[{"name":"operator","type":"address","internalType":"address"},{"name":"approved","type":"bool","internalType":"bool"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"setClaimConditions","inputs":[{"name":"phases","type":"tuple[]","internalType":"struct IDropClaimCondition_V2.ClaimCondition[]","components":[{"name":"startTimestamp","type":"uint256","internalType":"uint256"},{"name":"maxClaimableSupply","type":"uint256","internalType":"uint256"},{"name":"supplyClaimed","type":"uint256","internalType":"uint256"},{"name":"quantityLimitPerTransaction","type":"uint256","internalType":"uint256"},{"name":"waitTimeInSecondsBetweenClaims","type":"uint256","internalType":"uint256"},{"name":"merkleRoot","type":"bytes32","internalType":"bytes32"},{"name":"pricePerToken","type":"uint256","internalType":"uint256"},{"name":"currency","type":"address","internalType":"address"}]},{"name":"resetClaimEligibility","type":"bool","internalType":"bool"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"supportsInterface","inputs":[{"name":"interfaceId","type":"bytes4","internalType":"bytes4"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"transferFrom","inputs":[{"name":"from","type":"address","internalType":"address"},{"name":"to","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"event","name":"Approval","inputs":[{"name":"owner","type":"address","indexed":true,"internalType":"address"},{"name":"approved","type":"address","indexed":true,"internalType":"address"},{"name":"tokenId","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"ApprovalForAll","inputs":[{"name":"owner","type":"address","indexed":true,"internalType":"address"},{"name":"operator","type":"address","indexed":true,"internalType":"address"},{"name":"approved","type":"bool","indexed":false,"internalType":"bool"}],"anonymous":false},{"type":"event","name":"ClaimConditionsUpdated","inputs":[{"name":"claimConditions","type":"tuple[]","indexed":false,"internalType":"struct IDropClaimCondition_V2.ClaimCondition[]","components":[{"name":"startTimestamp","type":"uint256","internalType":"uint256"},{"name":"maxClaimableSupply","type":"uint256","internalType":"uint256"},{"name":"supplyClaimed","type":"uint256","internalType":"uint256"},{"name":"quantityLimitPerTransaction","type":"uint256","internalType":"uint256"},{"name":"waitTimeInSecondsBetweenClaims","type":"uint256","internalType":"uint256"},{"name":"merkleRoot","type":"bytes32","internalType":"bytes32"},{"name":"pricePerToken","type":"uint256","internalType":"uint256"},{"name":"currency","type":"address","internalType":"address"}]}],"anonymous":false},{"type":"event","name":"MaxTotalSupplyUpdated","inputs":[{"name":"maxTotalSupply","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"MaxWalletClaimCountUpdated","inputs":[{"name":"count","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"NFTRevealed","inputs":[{"name":"endTokenId","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"revealedURI","type":"string","indexed":false,"internalType":"string"}],"anonymous":false},{"type":"event","name":"TokensClaimed","inputs":[{"name":"claimConditionIndex","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"claimer","type":"address","indexed":true,"internalType":"address"},{"name":"receiver","type":"address","indexed":true,"internalType":"address"},{"name":"startTokenId","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"quantityClaimed","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"TokensLazyMinted","inputs":[{"name":"startTokenId","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"endTokenId","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"baseURI","type":"string","indexed":false,"internalType":"string"},{"name":"encryptedBaseURI","type":"bytes","indexed":false,"internalType":"bytes"}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"name":"from","type":"address","indexed":true,"internalType":"address"},{"name":"to","type":"address","indexed":true,"internalType":"address"},{"name":"tokenId","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"WalletClaimCountUpdated","inputs":[{"name":"wallet","type":"address","indexed":true,"internalType":"address"},{"name":"count","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false}]'),es=r(70332),ef=JSON.parse('[{"type":"function","name":"tokenByIndex","inputs":[{"name":"_index","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"tokenOfOwnerByIndex","inputs":[{"name":"_owner","type":"address","internalType":"address"},{"name":"_index","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"}]'),el=JSON.parse('[{"type":"function","name":"approve","inputs":[{"name":"to","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"balanceOf","inputs":[{"name":"owner","type":"address","internalType":"address"}],"outputs":[{"name":"balance","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"explicitOwnershipOf","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"tuple","internalType":"struct IERC721AUpgradeable.TokenOwnership","components":[{"name":"addr","type":"address","internalType":"address"},{"name":"startTimestamp","type":"uint64","internalType":"uint64"},{"name":"burned","type":"bool","internalType":"bool"},{"name":"extraData","type":"uint24","internalType":"uint24"}]}],"stateMutability":"view"},{"type":"function","name":"getApproved","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"operator","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"isApprovedForAll","inputs":[{"name":"owner","type":"address","internalType":"address"},{"name":"operator","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"}
304,{"type":"function","name":"name","inputs":[],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"view"},{"type":"function","name":"ownerOf","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"owner","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"safeTransferFrom","inputs":[{"name":"from","type":"address","internalType":"address"},{"name":"to","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"safeTransferFrom","inputs":[{"name":"from","type":"address","internalType":"address"},{"name":"to","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"data","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"setApprovalForAll","inputs":[{"name":"operator","type":"address","internalType":"address"},{"name":"_approved","type":"bool","internalType":"bool"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"supportsInterface","inputs":[{"name":"interfaceId","type":"bytes4","internalType":"bytes4"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"symbol","inputs":[],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"view"},{"type":"function","name":"tokenURI","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"view"},{"type":"function","name":"tokensOfOwner","inputs":[{"name":"owner","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256[]","internalType":"uint256[]"}],"stateMutability":"view"},{"type":"function","name":"tokensOfOwnerIn","inputs":[{"name":"owner","type":"address","internalType":"address"},{"name":"start","type":"uint256","internalType":"uint256"},{"name":"stop","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256[]","internalType":"uint256[]"}],"stateMutability":"view"},{"type":"function","name":"totalSupply","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"transferFrom","inputs":[{"name":"from","type":"address","internalType":"address"},{"name":"to","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"payable"},{"type":"event","name":"Approval","inputs":[{"name":"owner","type":"address","indexed":true,"internalType":"address"},{"name":"approved","type":"address","indexed":true,"internalType":"address"},{"name":"tokenId","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"ApprovalForAll","inputs":[{"name":"owner","type":"address","indexed":true,"internalType":"address"},{"name":"operator","type":"address","indexed":true,"internalType":"address"},{"name":"approved","type":"bool","indexed":false,"internalType":"bool"}],"anonymous":false},{"type":"event","name":"ConsecutiveTransfer","inputs":[{"name":"fromTokenId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"toTokenId","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"from","type":"address","indexed":true,"internalType":"address"},{"name":"to","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"name":"from","type":"address","indexed":true,"internalType":"address"},{"name":"to","type":"address","indexed":true,"internalType":"address"},{"name":"tokenId","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"type":"error","name":"ApprovalCallerNotOwnerNorApproved","inputs":[]},{"type":"error","name":"ApprovalQueryForNonexistentToken","inputs":[]},{"type":"error","name":"BalanceQueryForZeroAddress","inputs":[]},{"type":"error","name":"InvalidQueryRange","inputs":[]},{"type":"error","name":"MintERC2309QuantityExceedsLimit","inputs":[]},{"type":"error","name":"MintToZeroAddress","inputs":[]},{"type":"error","name":"MintZeroQuantity","inputs":[]},{"type":"error","name":"OwnerQueryForNonexistentToken","inputs":[]},{"type":"error","name":"OwnershipNotInitializedForExtraData","inputs":[]},{"type":"error","name":"TransferCallerNotOwnerNorApproved","inputs":[]},{"type":"error","name":"TransferFromIncorrectOwner","inputs":[]},{"type":"error","name":"TransferToNonERC721ReceiverImplementer","inputs":[]},{"type":"error","name":"TransferToZeroAddress","inputs":[]},{"type":"error","name":"URIQueryForNonexistentToken","inputs":[]}]'),eu=JSON.parse('[{"type":"function","name":"totalSupply","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"}]'),ec=JSON.parse('[{"type":"function","name":"lazyMint","inputs":[{"name":"amount","type":"uint256","internalType":"uint256"},{"name":"baseURIForTokens","type":"string","internalType":"string"},{"name":"extraData","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"batchId","type":"uint256","internalType":"uint256"}],"stateMutability":"nonpayable"},{"type":"event","name":"TokensLazyMinted","inputs":[{"name":"startTokenId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"endTokenId","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"baseURI","type":"string","indexed":false,"internalType":"string"},{"name":"encryptedBaseURI","type":"bytes","indexed":false,"internalType":"bytes"}],"anonymous":false}]'),ed=JSON.parse('[{"type":"function","name":"mintTo","inputs":[{"name":"to","type":"address","internalType":"address"},{"name":"uri","type":"string","internalType":"string"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"nonpayable"},{"type":"event","name":"TokensMinted","inputs":[{"name":"mintedTo","type":"address","indexed":true,"internalType":"address"},{"name":"tokenIdMinted","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"uri","type":"string","indexed":false,"internalType":"string"}],"anonymous":false}]'),ep=JSON.parse('[{"type":"function","name":"mintWithSignature","inputs":[{"name":"req","type":"tuple","internalType":"struct ISignatureMintERC721.MintRequest","components":[{"name":"to","type":"address","internalType":"address"},{"name":"royaltyRecipient","type":"address","internalType":"address"},{"name":"royaltyBps","type":"uint256","internalType":"uint256"},{"name":"primarySaleRecipient","type":"address","internalType":"address"},{"name":"uri","type":"string","internalType":"string"},{"name":"quantity","type":"uint256","internalType":"uint256"},{"name":"pricePerToken","type":"uint256","internalType":"uint256"},{"name":"currency","type":"address","internalType":"address"},{"name":"validityStartTimestamp","type":"uint128","internalType":"uint128"},{"name":"validityEndTimestamp","type":"uint128","internalType":"uint128"},{"name":"uid","type":"bytes32","internalType":"bytes32"}]}
304,{"name":"signature","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"signer","type":"address","internalType":"address"}],"stateMutability":"payable"},{"type":"function","name":"verify","inputs":[{"name":"req","type":"tuple","internalType":"struct ISignatureMintERC721.MintRequest","components":[{"name":"to","type":"address","internalType":"address"},{"name":"royaltyRecipient","type":"address","internalType":"address"},{"name":"royaltyBps","type":"uint256","internalType":"uint256"},{"name":"primarySaleRecipient","type":"address","internalType":"address"},{"name":"uri","type":"string","internalType":"string"},{"name":"quantity","type":"uint256","internalType":"uint256"},{"name":"pricePerToken","type":"uint256","internalType":"uint256"},{"name":"currency","type":"address","internalType":"address"},{"name":"validityStartTimestamp","type":"uint128","internalType":"uint128"},{"name":"validityEndTimestamp","type":"uint128","internalType":"uint128"},{"name":"uid","type":"bytes32","internalType":"bytes32"}]},{"name":"signature","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"success","type":"bool","internalType":"bool"},{"name":"signer","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"event","name":"TokensMintedWithSignature","inputs":[{"name":"signer","type":"address","indexed":true,"internalType":"address"},{"name":"mintedTo","type":"address","indexed":true,"internalType":"address"},{"name":"tokenIdMinted","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"mintRequest","type":"tuple","indexed":false,"internalType":"struct ISignatureMintERC721.MintRequest","components":[{"name":"to","type":"address","internalType":"address"},{"name":"royaltyRecipient","type":"address","internalType":"address"},{"name":"royaltyBps","type":"uint256","internalType":"uint256"},{"name":"primarySaleRecipient","type":"address","internalType":"address"},{"name":"uri","type":"string","internalType":"string"},{"name":"quantity","type":"uint256","internalType":"uint256"},{"name":"pricePerToken","type":"uint256","internalType":"uint256"},{"name":"currency","type":"address","internalType":"address"},{"name":"validityStartTimestamp","type":"uint128","internalType":"uint128"},{"name":"validityEndTimestamp","type":"uint128","internalType":"uint128"},{"name":"uid","type":"bytes32","internalType":"bytes32"}]}],"anonymous":false}]'),eh=JSON.parse('[{"type":"function","name":"mintWithSignature","inputs":[{"name":"_req","type":"tuple","internalType":"struct ITokenERC721.MintRequest","components":[{"name":"to","type":"address","internalType":"address"},{"name":"royaltyRecipient","type":"address","internalType":"address"},{"name":"royaltyBps","type":"uint256","internalType":"uint256"},{"name":"primarySaleRecipient","type":"address","internalType":"address"},{"name":"uri","type":"string","internalType":"string"},{"name":"price","type":"uint256","internalType":"uint256"},{"name":"currency","type":"address","internalType":"address"},{"name":"validityStartTimestamp","type":"uint128","internalType":"uint128"},{"name":"validityEndTimestamp","type":"uint128","internalType":"uint128"},{"name":"uid","type":"bytes32","internalType":"bytes32"}]},{"name":"_signature","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"tokenIdMinted","type":"uint256","internalType":"uint256"}],"stateMutability":"payable"},{"type":"function","name":"verify","inputs":[{"name":"_req","type":"tuple","internalType":"struct ITokenERC721.MintRequest","components":[{"name":"to","type":"address","internalType":"address"},{"name":"royaltyRecipient","type":"address","internalType":"address"},{"name":"royaltyBps","type":"uint256","internalType":"uint256"},{"name":"primarySaleRecipient","type":"address","internalType":"address"},{"name":"uri","type":"string","internalType":"string"},{"name":"price","type":"uint256","internalType":"uint256"},{"name":"currency","type":"address","internalType":"address"},{"name":"validityStartTimestamp","type":"uint128","internalType":"uint128"},{"name":"validityEndTimestamp","type":"uint128","internalType":"uint128"},{"name":"uid","type":"bytes32","internalType":"bytes32"}]}
304,{"name":"_signature","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"","type":"bool","internalType":"bool"},{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"}]'),ey=JSON.parse('[{"type":"function","name":"getBaseURICount","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"getBatchIdAtIndex","inputs":[{"name":"_index","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"getMetadataForAllTiers","inputs":[],"outputs":[{"name":"metadataForAllTiers","type":"tuple[]","internalType":"struct LazyMintWithTier_V1.TierMetadata[]","components":[{"name":"tier","type":"string","internalType":"string"},{"name":"ranges","type":"tuple[]","internalType":"struct LazyMintWithTier_V1.TokenRange[]","components":[{"name":"startIdInclusive","type":"uint256","internalType":"uint256"},{"name":"endIdNonInclusive","type":"uint256","internalType":"uint256"}]},{"name":"baseURIs","type":"string[]","internalType":"string[]"}]}],"stateMutability":"view"},{"type":"function","name":"lazyMint","inputs":[{"name":"_amount","type":"uint256","internalType":"uint256"},{"name":"_baseURIForTokens","type":"string","internalType":"string"},{"name":"_tier","type":"string","internalType":"string"},{"name":"_data","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"batchId","type":"uint256","internalType":"uint256"}],"stateMutability":"nonpayable"},{"type":"event","name":"TokensLazyMinted","inputs":[{"name":"tier","type":"string","indexed":true,"internalType":"string"},{"name":"startTokenId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"endTokenId","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"baseURI","type":"string","indexed":false,"internalType":"string"},{"name":"encryptedBaseURI","type":"bytes","indexed":false,"internalType":"bytes"}],"anonymous":false}]'),em=JSON.parse('[{"type":"function","name":"setSharedMetadata","inputs":[{"name":"_metadata","type":"tuple","internalType":"struct ISharedMetadata.SharedMetadataInfo","components":[{"name":"name","type":"string","internalType":"string"},{"name":"description","type":"string","internalType":"string"},{"name":"imageURI","type":"string","internalType":"string"},{"name":"animationURI","type":"string","internalType":"string"}]}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"sharedMetadata","inputs":[],"outputs":[{"name":"name","type":"string","internalType":"string"},{"name":"description","type":"string","internalType":"string"},{"name":"imageURI","type":"string","internalType":"string"},{"name":"animationURI","type":"string","internalType":"string"}],"stateMutability":"view"},{"type":"function","name":"supportsInterface","inputs":[{"name":"interfaceId","type":"bytes4","internalType":"bytes4"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"event","name":"BatchMetadataUpdate","inputs":[{"name":"_fromTokenId","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"_toTokenId","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"MetadataUpdate","inputs":[{"name":"_tokenId","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"SharedMetadataUpdated","inputs":[{"name":"name","type":"string","indexed":false,"internalType":"string"},{"name":"description","type":"string","indexed":false,"internalType":"string"},{"name":"imageURI","type":"string","indexed":false,"internalType":"string"},{"name":"animationURI","type":"string","indexed":false,"internalType":"string"}],"anonymous":false}]'),eg=JSON.parse('[{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"Access_MissingRoleOrAdmin","type":"error"},{"inputs":[],"name":"Access_OnlyAdmin","type":"error"},{"inputs":[],"name":"Access_WithdrawNotAllowed","type":"error"},{"inputs":[{"internalType":"address","name":"proposedAddress","type":"address"}],"name":"Admin_InvalidUpgradeAddress","type":"error"}
304,{"inputs":[],"name":"Admin_UnableToFinalizeNotOpenEdition","type":"error"},{"inputs":[],"name":"ExternalMetadataRenderer_CallFailed","type":"error"},{"inputs":[],"name":"InvalidMintSchedule","type":"error"},{"inputs":[],"name":"MarketFilterDAOAddressNotSupportedForChain","type":"error"},{"inputs":[],"name":"MintFee_FundsSendFailure","type":"error"},{"inputs":[],"name":"Mint_SoldOut","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"Presale_Inactive","type":"error"},{"inputs":[],"name":"Presale_MerkleNotApproved","type":"error"},{"inputs":[],"name":"Presale_TooManyForAddress","type":"error"},{"inputs":[],"name":"Purchase_TooManyForAddress","type":"error"},{"inputs":[{"internalType":"uint256","name":"correctPrice","type":"uint256"}],"name":"Purchase_WrongPrice","type":"error"},{"inputs":[],"name":"RemoteOperatorFilterRegistryCallFailed","type":"error"},{"inputs":[],"name":"Sale_Inactive","type":"error"},{"inputs":[{"internalType":"uint16","name":"maxRoyaltyBPS","type":"uint16"}],"name":"Setup_RoyaltyPercentageTooHigh","type":"error"},{"inputs":[],"name":"Withdraw_FundsSendFailure","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newAddress","type":"address"},{"indexed":true,"internalType":"address","name":"changedBy","type":"address"}],"name":"FundsRecipientChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"withdrawnBy","type":"address"},{"indexed":true,"internalType":"address","name":"withdrawnTo","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"address","name":"feeRecipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"feeAmount","type":"uint256"}],"name":"FundsWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"tokenContract","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"},{"indexed":false,"internalType":"string","name":"comment","type":"string"}],"name":"MintComment","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"mintFeeAmount","type":"uint256"},{"indexed":false,"internalType":"address","name":"mintFeeRecipient","type":"address"},{"indexed":false,"internalType":"bool","name":"success","type":"bool"}],"name":"MintFeePayout","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"numberOfMints","type":"uint256"}],"name":"OpenMintFinalized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"quantity","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"pricePerToken","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"firstPurchasedTokenId","type":"uint256"}],"name":"Sale","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"changedBy","type":"address"}],"name":"SalesConfigChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"contract IMetadataRenderer","name":"renderer","type":"address"}],"name":"UpdatedMetadataRenderer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"adminMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"to","type":"address[]"}],"name":"adminMintAirdrop","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"}
304,{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"isAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"mintedPerAddress","outputs":[{"components":[{"internalType":"uint256","name":"totalMints","type":"uint256"},{"internalType":"uint256","name":"presaleMints","type":"uint256"},{"internalType":"uint256","name":"publicMints","type":"uint256"}],"internalType":"struct IERC721Drop.AddressMintDetails","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"purchase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"maxQuantity","type":"uint256"},{"internalType":"uint256","name":"pricePerToken","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"purchasePresale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"saleDetails","outputs":[{"components":[{"internalType":"bool","name":"publicSaleActive","type":"bool"},{"internalType":"bool","name":"presaleActive","type":"bool"},{"internalType":"uint256","name":"publicSalePrice","type":"uint256"},{"internalType":"uint64","name":"publicSaleStart","type":"uint64"},{"internalType":"uint64","name":"publicSaleEnd","type":"uint64"},{"internalType":"uint64","name":"presaleStart","type":"uint64"},{"internalType":"uint64","name":"presaleEnd","type":"uint64"},{"internalType":"bytes32","name":"presaleMerkleRoot","type":"bytes32"},{"internalType":"uint256","name":"maxSalePurchasePerAddress","type":"uint256"},{"internalType":"uint256","name":"totalMinted","type":"uint256"},{"internalType":"uint256","name":"maxSupply","type":"uint256"}],"internalType":"struct IERC721Drop.SaleDetails","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IMetadataRenderer","name":"newRenderer","type":"address"},{"internalType":"bytes","name":"setupRenderer","type":"bytes"}],"name":"setMetadataRenderer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint104","name":"publicSalePrice","type":"uint104"},{"internalType":"uint32","name":"maxSalePurchasePerAddress","type":"uint32"},{"internalType":"uint64","name":"publicSaleStart","type":"uint64"},{"internalType":"uint64","name":"publicSaleEnd","type":"uint64"},{"internalType":"uint64","name":"presaleStart","type":"uint64"},{"internalType":"uint64","name":"presaleEnd","type":"uint64"},{"internalType":"bytes32","name":"presaleMerkleRoot","type":"bytes32"}],"name":"setSaleConfiguration","outputs":[],"stateMutability":"nonpayable","type":"function"}]'),eb=JSON.parse('[{"type":"function","name":"cancel","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"mintTo","inputs":[{"name":"to","type":"address","internalType":"address"},{"name":"uri","type":"string","internalType":"string"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"nonpayable"},{"type":"function","name":"revoke","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"event","name":"TokensMinted","inputs":[{"name":"mintedTo","type":"address","indexed":true,"internalType":"address"},{"name":"tokenIdMinted","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"uri","type":"string","indexed":false,"internalType":"string"}],"anonymous":false}]'),ev=JSON.parse('[{"type":"function","name":"freezeMetadata","inputs":[],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"setTokenURI","inputs":[{"name":"_tokenId","type":"uint256","internalType":"uint256"},{"name":"_uri","type":"string","internalType":"string"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"supportsInterface","inputs":[{"name":"interfaceId","type":"bytes4","internalType":"bytes4"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"event","name":"BatchMetadataUpdate","inputs":[{"name":"_fromTokenId","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"_toTokenId","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"MetadataFrozen","inputs":[],"anonymous":false},{"type":"event","name":"MetadataUpdate","inputs":[{"name":"_tokenId","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false}]'),ew=r(34161),ex=JSON.parse('[{"type":"function","name":"burn","inputs":[{"name":"account","type":"address","internalType":"address"},{"name":"id","type":"uint256","internalType":"uint256"},{"name":"value","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"burnBatch","inputs":[{"name":"account","type":"address","internalType":"address"},{"name":"ids","type":"uint256[]","internalType":"uint256[]"},{"name":"values","type":"uint256[]","internalType":"uint256[]"}],"outputs":[],"stateMutability":"nonpayable"}]'),eT=JSON.parse('[{"type":"function","name":"claim","inputs":[{"name":"_receiver","type":"address","internalType":"address"},{"name":"_tokenId","type":"uint256","internalType":"uint256"},{"name":"_quantity","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"verifyClaim","inputs":[{"name":"_claimer","type":"address","internalType":"address"},{"name":"_tokenId","type":"uint256","internalType":"uint256"},{"name":"_quantity","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"view"},{"type":"event","name":"TokensClaimed","inputs":[{"name":"claimer","type":"address","indexed":true,"internalType":"address"},{"name":"receiver","type":"address","indexed":true,"internalType":"address"},{"name":"tokenId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"quantityClaimed","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false}]'),eC=JSON.parse('[{"type":"function","name":"claim","inputs":[{"name":"receiver","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"quantity","type":"uint256","internalType":"uint256"},{"name":"currency","type":"address","internalType":"address"},{"name":"pricePerToken","type":"uint256","internalType":"uint256"},{"name":"allowlistProof","type":"tuple","internalType":"struct IDrop1155.AllowlistProof","components":[{"name":"proof","type":"bytes32[]","internalType":"bytes32[]"},{"name":"quantityLimitPerWallet","type":"uint256","internalType":"uint256"},{"name":"pricePerToken","type":"uint256","internalType":"uint256"},{"name":"currency","type":"address","internalType":"address"}]},{"name":"data","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"setClaimConditions","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"phases","type":"tuple[]","internalType":"struct IClaimCondition.ClaimCondition[]","components":[{"name":"startTimestamp","type":"uint256","internalType":"uint256"},{"name":"maxClaimableSupply","type":"uint256","internalType":"uint256"},{"name":"supplyClaimed","type":"uint256","internalType":"uint256"},{"name":"quantityLimitPerWallet","type":"uint256","internalType":"uint256"},{"name":"merkleRoot","type":"bytes32","internalType":"bytes32"},{"name":"pricePerToken","type":"uint256","internalType":"uint256"},{"name":"currency","type":"address","internalType":"address"},{"name":"metadata","type":"string","internalType":"string"}]}
304,{"name":"resetClaimEligibility","type":"bool","internalType":"bool"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"event","name":"ClaimConditionsUpdated","inputs":[{"name":"tokenId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"claimConditions","type":"tuple[]","indexed":false,"internalType":"struct IClaimCondition.ClaimCondition[]","components":[{"name":"startTimestamp","type":"uint256","internalType":"uint256"},{"name":"maxClaimableSupply","type":"uint256","internalType":"uint256"},{"name":"supplyClaimed","type":"uint256","internalType":"uint256"},{"name":"quantityLimitPerWallet","type":"uint256","internalType":"uint256"},{"name":"merkleRoot","type":"bytes32","internalType":"bytes32"},{"name":"pricePerToken","type":"uint256","internalType":"uint256"},{"name":"currency","type":"address","internalType":"address"},{"name":"metadata","type":"string","internalType":"string"}]},{"name":"resetEligibility","type":"bool","indexed":false,"internalType":"bool"}],"anonymous":false},{"type":"event","name":"TokensClaimed","inputs":[{"name":"claimConditionIndex","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"claimer","type":"address","indexed":true,"internalType":"address"},{"name":"receiver","type":"address","indexed":true,"internalType":"address"},{"name":"tokenId","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"quantityClaimed","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false}]'),eM=JSON.parse('[{"type":"function","name":"balanceOf","inputs":[{"name":"account","type":"address","internalType":"address"},{"name":"id","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"balanceOfBatch","inputs":[{"name":"accounts","type":"address[]","internalType":"address[]"},{"name":"ids","type":"uint256[]","internalType":"uint256[]"}],"outputs":[{"name":"","type":"uint256[]","internalType":"uint256[]"}],"stateMutability":"view"},{"type":"function","name":"claim","inputs":[{"name":"receiver","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"quantity","type":"uint256","internalType":"uint256"},{"name":"currency","type":"address","internalType":"address"},{"name":"pricePerToken","type":"uint256","internalType":"uint256"},{"name":"proofs","type":"bytes32[]","internalType":"bytes32[]"},{"name":"proofMaxQuantityPerTransaction","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"isApprovedForAll","inputs":[{"name":"account","type":"address","internalType":"address"},{"name":"operator","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"lazyMint","inputs":[{"name":"amount","type":"uint256","internalType":"uint256"},{"name":"baseURIForTokens","type":"string","internalType":"string"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"safeBatchTransferFrom","inputs":[{"name":"from","type":"address","internalType":"address"},{"name":"to","type":"address","internalType":"address"},{"name":"ids","type":"uint256[]","internalType":"uint256[]"},{"name":"amounts","type":"uint256[]","internalType":"uint256[]"},{"name":"data","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"safeTransferFrom","inputs":[{"name":"from","type":"address","internalType":"address"},{"name":"to","type":"address","internalType":"address"},{"name":"id","type":"uint256","internalType":"uint256"},{"name":"amount","type":"uint256","internalType":"uint256"},{"name":"data","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"setApprovalForAll","inputs":[{"name":"operator","type":"address","internalType":"address"},{"name":"approved","type":"bool","internalType":"bool"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"setClaimConditions","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"phases","type":"tuple[]","internalType":"struct IDropClaimCondition_V2.ClaimCondition[]","components":[{"name":"startTimestamp","type":"uint256","internalType":"uint256"},{"name":"maxClaimableSupply","type":"uint256","internalType":"uint256"},{"name":"supplyClaimed","type":"uint256","internalType":"uint256"},{"name":"quantityLimitPerTransaction","type":"uint256","internalType":"uint256"},{"name":"waitTimeInSecondsBetweenClaims","type":"uint256","internalType":"uint256"},{"name":"merkleRoot","type":"bytes32","internalType":"bytes32"},{"name":"pricePerToken","type":"uint256","internalType":"uint256"},{"name":"currency","type":"address","internalType":"address"}]},{"name":"resetClaimEligibility","type":"bool","internalType":"bool"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"supportsInterface","inputs":[{"name":"interfaceId","type":"bytes4","internalType":"bytes4"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"event","name":"ApprovalForAll","inputs":[{"name":"account","type":"address","indexed":true,"internalType":"address"},{"name":"operator","type":"address","indexed":true,"internalType":"address"},{"name":"approved","type":"bool","indexed":false,"internalType":"bool"}],"anonymous":false},{"type":"event","name":"ClaimConditionsUpdated","inputs":[{"name":"tokenId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"claimConditions","type":"tuple[]","indexed":false,"internalType":"struct IDropClaimCondition_V2.ClaimCondition[]","components":[{"name":"startTimestamp","type":"uint256","internalType":"uint256"},{"name":"maxClaimableSupply","type":"uint256","internalType":"uint256"},{"name":"supplyClaimed","type":"uint256","internalType":"uint256"},{"name":"quantityLimitPerTransaction","type":"uint256","internalType":"uint256"},{"name":"waitTimeInSecondsBetweenClaims","type":"uint256","internalType":"uint256"},{"name":"merkleRoot","type":"bytes32","internalType":"bytes32"},{"name":"pricePerToken","type":"uint256","internalType":"uint256"},{"name":"currency","type":"address","internalType":"address"}]}],"anonymous":false},{"type":"event","name":"MaxTotalSupplyUpdated","inputs":[{"name":"tokenId","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"maxTotalSupply","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"MaxWalletClaimCountUpdated","inputs":[{"name":"tokenId","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"count","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"SaleRecipientForTokenUpdated","inputs":[{"name":"tokenId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"saleRecipient","type":"address","indexed":false,"internalType":"address"}],"anonymous":false},{"type":"event","name":"TokensClaimed","inputs":[{"name":"claimConditionIndex","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"tokenId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"claimer","type":"address","indexed":true,"internalType":"address"},{"name":"receiver","type":"address","indexed":false,"internalType":"address"},{"name":"quantityClaimed","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"TokensLazyMinted","inputs":[{"name":"startTokenId","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"endTokenId","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"baseURI","type":"string","indexed":false,"internalType":"string"}],"anonymous":false},{"type":"event","name":"TransferBatch","inputs":[{"name":"operator","type":"address","indexed":true,"internalType":"address"},{"name":"from","type":"address","indexed":true,"internalType":"address"},{"name":"to","type":"address","indexed":true,"internalType":"address"},{"name":"ids","type":"uint256[]","indexed":false,"internalType":"uint256[]"},{"name":"values","type":"uint256[]","indexed":false,"internalType":"uint256[]"}],"anonymous":false},{"type":"event","name":"TransferSingle","inputs":[{"name":"operator","type":"address","indexed":true,"internalType":"address"},{"name":"from","type":"address","indexed":true,"internalType":"address"},{"name":"to","type":"address","indexed":true,"internalType":"address"},{"name":"id","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"value","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"URI","inputs":[{"name":"value","type":"string","indexed":false,"internalType":"string"},{"name":"id","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"WalletClaimCountUpdated","inputs":[{"name":"tokenId","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"wallet","type":"address","indexed":true,"internalType":"address"},{"name":"count","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false}]'),eA=JSON.parse('[{"type":"function","name":"claim","inputs":[{"name":"receiver","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"quantity","type":"uint256","internalType":"uint256"},{"name":"currency","type":"address","internalType":"address"},{"name":"pricePerToken","type":"uint256","internalType":"uint256"},{"name":"allowlistProof","type":"tuple","internalType":"struct IDropSinglePhase1155.AllowlistProof","components":[{"name":"proof","type":"bytes32[]","internalType":"bytes32[]"},{"name":"quantityLimitPerWallet","type":"uint256","internalType":"uint256"},{"name":"pricePerToken","type":"uint256","internalType":"uint256"},{"name":"currency","type":"address","internalType":"address"}]},{"name":"data","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"setClaimConditions","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"phase","type":"tuple","internalType":"struct IClaimCondition.ClaimCondition","components":[{"name":"startTimestamp","type":"uint256","internalType":"uint256"},{"name":"maxClaimableSupply","type":"uint256","internalType":"uint256"},{"name":"supplyClaimed","type":"uint256","internalType":"uint256"},{"name":"quantityLimitPerWallet","type":"uint256","internalType":"uint256"},{"name":"merkleRoot","type":"bytes32","internalType":"bytes32"},{"name":"pricePerToken","type":"uint256","internalType":"uint256"},{"name":"currency","type":"address","internalType":"address"},{"name":"metadata","type":"string","internalType":"string"}]}
304,{"name":"resetClaimEligibility","type":"bool","internalType":"bool"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"event","name":"ClaimConditionUpdated","inputs":[{"name":"tokenId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"condition","type":"tuple","indexed":false,"internalType":"struct IClaimCondition.ClaimCondition","components":[{"name":"startTimestamp","type":"uint256","internalType":"uint256"},{"name":"maxClaimableSupply","type":"uint256","internalType":"uint256"},{"name":"supplyClaimed","type":"uint256","internalType":"uint256"},{"name":"quantityLimitPerWallet","type":"uint256","internalType":"uint256"},{"name":"merkleRoot","type":"bytes32","internalType":"bytes32"},{"name":"pricePerToken","type":"uint256","internalType":"uint256"},{"name":"currency","type":"address","internalType":"address"},{"name":"metadata","type":"string","internalType":"string"}]},{"name":"resetEligibility","type":"bool","indexed":false,"internalType":"bool"}],"anonymous":false},{"type":"event","name":"TokensClaimed","inputs":[{"name":"claimer","type":"address","indexed":true,"internalType":"address"},{"name":"receiver","type":"address","indexed":true,"internalType":"address"},{"name":"tokenId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"quantityClaimed","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false}]'),eE=JSON.parse('[{"type":"function","name":"claim","inputs":[{"name":"receiver","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"quantity","type":"uint256","internalType":"uint256"},{"name":"currency","type":"address","internalType":"address"},{"name":"pricePerToken","type":"uint256","internalType":"uint256"},{"name":"allowlistProof","type":"tuple","internalType":"struct IDropSinglePhase1155_V1.AllowlistProof","components":[{"name":"proof","type":"bytes32[]","internalType":"bytes32[]"},{"name":"maxQuantityInAllowlist","type":"uint256","internalType":"uint256"}]},{"name":"data","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"setClaimConditions","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"phase","type":"tuple","internalType":"struct IClaimCondition_V1.ClaimCondition","components":[{"name":"startTimestamp","type":"uint256","internalType":"uint256"},{"name":"maxClaimableSupply","type":"uint256","internalType":"uint256"},{"name":"supplyClaimed","type":"uint256","internalType":"uint256"},{"name":"quantityLimitPerTransaction","type":"uint256","internalType":"uint256"},{"name":"waitTimeInSecondsBetweenClaims","type":"uint256","internalType":"uint256"},{"name":"merkleRoot","type":"bytes32","internalType":"bytes32"},{"name":"pricePerToken","type":"uint256","internalType":"uint256"},{"name":"currency","type":"address","internalType":"address"}]},{"name":"resetClaimEligibility","type":"bool","internalType":"bool"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"event","name":"ClaimConditionUpdated","inputs":[{"name":"tokenId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"condition","type":"tuple","indexed":false,"internalType":"struct IClaimCondition_V1.ClaimCondition","components":[{"name":"startTimestamp","type":"uint256","internalType":"uint256"},{"name":"maxClaimableSupply","type":"uint256","internalType":"uint256"},{"name":"supplyClaimed","type":"uint256","internalType":"uint256"},{"name":"quantityLimitPerTransaction","type":"uint256","internalType":"uint256"},{"name":"waitTimeInSecondsBetweenClaims","type":"uint256","internalType":"uint256"},{"name":"merkleRoot","type":"bytes32","internalType":"bytes32"},{"name":"pricePerToken","type":"uint256","internalType":"uint256"},{"name":"currency","type":"address","internalType":"address"}]},{"name":"resetEligibility","type":"bool","indexed":false,"internalType":"bool"}],"anonymous":false},{"type":"event","name":"TokensClaimed","inputs":[{"name":"claimer","type":"address","indexed":true,"internalType":"address"},{"name":"receiver","type":"address","indexed":true,"internalType":"address"},{"name":"tokenId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"quantityClaimed","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false}]'),eI=r(8455),eS=r(50266),ek=JSON.parse('[{"type":"function","name":"totalSupply","inputs":[{"name":"id","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"}]'),eN=JSON.parse('[{"type":"function","name":"nextTokenIdToMint","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"}]'),ej=JSON.parse('[{"type":"function","name":"mintTo","inputs":[{"name":"to","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"uri","type":"string","internalType":"string"},{"name":"amount","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"event","name":"TokensMinted","inputs":[{"name":"mintedTo","type":"address","indexed":true,"internalType":"address"},{"name":"tokenIdMinted","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"uri","type":"string","indexed":false,"internalType":"string"},{"name":"quantityMinted","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false}]'),eD=JSON.parse('[{"type":"function","name":"mintWithSignature","inputs":[{"name":"req","type":"tuple","internalType":"struct ISignatureMintERC1155.MintRequest","components":[{"name":"to","type":"address","internalType":"address"},{"name":"royaltyRecipient","type":"address","internalType":"address"},{"name":"royaltyBps","type":"uint256","internalType":"uint256"},{"name":"primarySaleRecipient","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"uri","type":"string","internalType":"string"},{"name":"quantity","type":"uint256","internalType":"uint256"},{"name":"pricePerToken","type":"uint256","internalType":"uint256"},{"name":"currency","type":"address","internalType":"address"},{"name":"validityStartTimestamp","type":"uint128","internalType":"uint128"},{"name":"validityEndTimestamp","type":"uint128","internalType":"uint128"},{"name":"uid","type":"bytes32","internalType":"bytes32"}]}
304,{"name":"signature","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"signer","type":"address","internalType":"address"}],"stateMutability":"payable"},{"type":"function","name":"verify","inputs":[{"name":"req","type":"tuple","internalType":"struct ISignatureMintERC1155.MintRequest","components":[{"name":"to","type":"address","internalType":"address"},{"name":"royaltyRecipient","type":"address","internalType":"address"},{"name":"royaltyBps","type":"uint256","internalType":"uint256"},{"name":"primarySaleRecipient","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"uri","type":"string","internalType":"string"},{"name":"quantity","type":"uint256","internalType":"uint256"},{"name":"pricePerToken","type":"uint256","internalType":"uint256"},{"name":"currency","type":"address","internalType":"address"},{"name":"validityStartTimestamp","type":"uint128","internalType":"uint128"},{"name":"validityEndTimestamp","type":"uint128","internalType":"uint128"},{"name":"uid","type":"bytes32","internalType":"bytes32"}]},{"name":"signature","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"success","type":"bool","internalType":"bool"},{"name":"signer","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"event","name":"TokensMintedWithSignature","inputs":[{"name":"signer","type":"address","indexed":true,"internalType":"address"},{"name":"mintedTo","type":"address","indexed":true,"internalType":"address"},{"name":"tokenIdMinted","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"mintRequest","type":"tuple","indexed":false,"internalType":"struct ISignatureMintERC1155.MintRequest","components":[{"name":"to","type":"address","internalType":"address"},{"name":"royaltyRecipient","type":"address","internalType":"address"},{"name":"royaltyBps","type":"uint256","internalType":"uint256"},{"name":"primarySaleRecipient","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"uri","type":"string","internalType":"string"},{"name":"quantity","type":"uint256","internalType":"uint256"},{"name":"pricePerToken","type":"uint256","internalType":"uint256"},{"name":"currency","type":"address","internalType":"address"},{"name":"validityStartTimestamp","type":"uint128","internalType":"uint128"},{"name":"validityEndTimestamp","type":"uint128","internalType":"uint128"},{"name":"uid","type":"bytes32","internalType":"bytes32"}]}],"anonymous":false}]'),e_=JSON.parse('[{"type":"function","name":"isTrustedForwarder","inputs":[{"name":"forwarder","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"}]'),eO=JSON.parse('[{"type":"function","name":"appURI","inputs":[],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"view"},{"type":"function","name":"setAppURI","inputs":[{"name":"_uri","type":"string","internalType":"string"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"event","name":"AppURIUpdated","inputs":[{"name":"prevURI","type":"string","indexed":false,"internalType":"string"},{"name":"newURI","type":"string","indexed":false,"internalType":"string"}],"anonymous":false}]'),eP=JSON.parse('[{"type":"function","name":"contractURI","inputs":[],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"view"},{"type":"function","name":"setContractURI","inputs":[{"name":"_uri","type":"string","internalType":"string"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"event","name":"ContractURIUpdated","inputs":[{"name":"prevURI","type":"string","indexed":false,"internalType":"string"},{"name":"newURI","type":"string","indexed":false,"internalType":"string"}],"anonymous":false}]'),eL=JSON.parse('[{"type":"function","name":"approveBuyerForListing","inputs":[{"name":"_listingId","type":"uint256","internalType":"uint256"},{"name":"_buyer","type":"address","internalType":"address"},{"name":"_toApprove","type":"bool","internalType":"bool"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"approveCurrencyForListing","inputs":[{"name":"_listingId","type":"uint256","internalType":"uint256"},{"name":"_currency","type":"address","internalType":"address"},{"name":"_pricePerTokenInCurrency","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"buyFromListing","inputs":[{"name":"_listingId","type":"uint256","internalType":"uint256"},{"name":"_buyFor","type":"address","internalType":"address"},{"name":"_quantity","type":"uint256","internalType":"uint256"},{"name":"_currency","type":"address","internalType":"address"},{"name":"_expectedTotalPrice","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"cancelListing","inputs":[{"name":"_listingId","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"createListing","inputs":[{"name":"_params","type":"tuple","internalType":"struct IDirectListings.ListingParameters","components":[{"name":"assetContract","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"quantity","type":"uint256","internalType":"uint256"},{"name":"currency","type":"address","internalType":"address"},{"name":"pricePerToken","type":"uint256","internalType":"uint256"},{"name":"startTimestamp","type":"uint128","internalType":"uint128"},{"name":"endTimestamp","type":"uint128","internalType":"uint128"},{"name":"reserved","type":"bool","internalType":"bool"}]}],"outputs":[{"name":"listingId","type":"uint256","internalType":"uint256"}],"stateMutability":"nonpayable"},{"type":"function","name":"getAllListings","inputs":[{"name":"_startId","type":"uint256","internalType":"uint256"},{"name":"_endId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"listings","type":"tuple[]","internalType":"struct IDirectListings.Listing[]","components":[{"name":"listingId","type":"uint256","internalType":"uint256"},{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"quantity","type":"uint256","internalType":"uint256"},{"name":"pricePerToken","type":"uint256","internalType":"uint256"},{"name":"startTimestamp","type":"uint128","internalType":"uint128"},{"name":"endTimestamp","type":"uint128","internalType":"uint128"},{"name":"listingCreator","type":"address","internalType":"address"},{"name":"assetContract","type":"address","internalType":"address"},{"name":"currency","type":"address","internalType":"address"},{"name":"tokenType","type":"uint8","internalType":"enum IDirectListings.TokenType"},{"name":"status","type":"uint8","internalType":"enum IDirectListings.Status"},{"name":"reserved","type":"bool","internalType":"bool"}]}],"stateMutability":"view"},{"type":"function","name":"getAllValidListings","inputs":[{"name":"_startId","type":"uint256","internalType":"uint256"},{"name":"_endId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"listings","type":"tuple[]","internalType":"struct IDirectListings.Listing[]","components":[{"name":"listingId","type":"uint256","internalType":"uint256"},{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"quantity","type":"uint256","internalType":"uint256"},{"name":"pricePerToken","type":"uint256","internalType":"uint256"},{"name":"startTimestamp","type":"uint128","internalType":"uint128"},{"name":"endTimestamp","type":"uint128","internalType":"uint128"},{"name":"listingCreator","type":"address","internalType":"address"},{"name":"assetContract","type":"address","internalType":"address"},{"name":"currency","type":"address","internalType":"address"},{"name":"tokenType","type":"uint8","internalType":"enum IDirectListings.TokenType"},{"name":"status","type":"uint8","internalType":"enum IDirectListings.Status"},{"name":"reserved","type":"bool","internalType":"bool"}]}],"stateMutability":"view"},{"type":"function","name":"getListing","inputs":[{"name":"_listingId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"listing","type":"tuple","internalType":"struct IDirectListings.Listing","components":[{"name":"listingId","type":"uint256","internalType":"uint256"},{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"quantity","type":"uint256","internalType":"uint256"},{"name":"pricePerToken","type":"uint256","internalType":"uint256"},{"name":"startTimestamp","type":"uint128","internalType":"uint128"},{"name":"endTimestamp","type":"uint128","internalType":"uint128"},{"name":"listingCreator","type":"address","internalType":"address"},{"name":"assetContract","type":"address","internalType":"address"},{"name":"currency","type":"address","internalType":"address"},{"name":"tokenType","type":"uint8","internalType":"enum IDirectListings.TokenType"},{"name":"status","type":"uint8","internalType":"enum IDirectListings.Status"},{"name":"reserved","type":"bool","internalType":"bool"}]}],"stateMutability":"view"},{"type":"function","name":"totalListings","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"updateListing","inputs":[{"name":"_listingId","type":"uint256","internalType":"uint256"},{"name":"_params","type":"tuple","internalType":"struct IDirectListings.ListingParameters","components":[{"name":"assetContract","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"quantity","type":"uint256","internalType":"uint256"},{"name":"currency","type":"address","internalType":"address"},{"name":"pricePerToken","type":"uint256","internalType":"uint256"},{"name":"startTimestamp","type":"uint128","internalType":"uint128"},{"name":"endTimestamp","type":"uint128","internalType":"uint128"},{"name":"reserved","type":"bool","internalType":"bool"}]}],"outputs":[],"stateMutability":"nonpayable"},{"type":"event","name":"BuyerApprovedForListing","inputs":[{"name":"listingId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"buyer","type":"address","indexed":true,"internalType":"address"},{"name":"approved","type":"bool","indexed":false,"internalType":"bool"}],"anonymous":false},{"type":"event","name":"CancelledListing","inputs":[{"name":"listingCreator","type":"address","indexed":true,"internalType":"address"},{"name":"listingId","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"CurrencyApprovedForListing","inputs":[{"name":"listingId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"currency","type":"address","indexed":true,"internalType":"address"},{"name":"pricePerToken","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"NewListing","inputs":[{"name":"listingCreator","type":"address","indexed":true,"internalType":"address"},{"name":"listingId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"assetContract","type":"address","indexed":true,"internalType":"address"},{"name":"listing","type":"tuple","indexed":false,"internalType":"struct IDirectListings.Listing","components":[{"name":"listingId","type":"uint256","internalType":"uint256"},{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"quantity","type":"uint256","internalType":"uint256"},{"name":"pricePerToken","type":"uint256","internalType":"uint256"},{"name":"startTimestamp","type":"uint128","internalType":"uint128"},{"name":"endTimestamp","type":"uint128","internalType":"uint128"},{"name":"listingCreator","type":"address","internalType":"address"},{"name":"assetContract","type":"address","internalType":"address"},{"name":"currency","type":"address","internalType":"address"},{"name":"tokenType","type":"uint8","internalType":"enum IDirectListings.TokenType"},{"name":"status","type":"uint8","internalType":"enum IDirectListings.Status"},{"name":"reserved","type":"bool","internalType":"bool"}]}],"anonymous":false}
304,{"type":"event","name":"NewSale","inputs":[{"name":"listingCreator","type":"address","indexed":true,"internalType":"address"},{"name":"listingId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"assetContract","type":"address","indexed":true,"internalType":"address"},{"name":"tokenId","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"buyer","type":"address","indexed":false,"internalType":"address"},{"name":"quantityBought","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"totalPricePaid","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"UpdatedListing","inputs":[{"name":"listingCreator","type":"address","indexed":true,"internalType":"address"},{"name":"listingId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"assetContract","type":"address","indexed":true,"internalType":"address"},{"name":"listing","type":"tuple","indexed":false,"internalType":"struct IDirectListings.Listing","components":[{"name":"listingId","type":"uint256","internalType":"uint256"},{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"quantity","type":"uint256","internalType":"uint256"},{"name":"pricePerToken","type":"uint256","internalType":"uint256"},{"name":"startTimestamp","type":"uint128","internalType":"uint128"},{"name":"endTimestamp","type":"uint128","internalType":"uint128"},{"name":"listingCreator","type":"address","internalType":"address"},{"name":"assetContract","type":"address","internalType":"address"},{"name":"currency","type":"address","internalType":"address"},{"name":"tokenType","type":"uint8","internalType":"enum IDirectListings.TokenType"},{"name":"status","type":"uint8","internalType":"enum IDirectListings.Status"},{"name":"reserved","type":"bool","internalType":"bool"}]}],"anonymous":false}]'),eR=JSON.parse('[{"type":"function","name":"bidInAuction","inputs":[{"name":"_auctionId","type":"uint256","internalType":"uint256"},{"name":"_bidAmount","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"payable"},{"type":"function","name":"cancelAuction","inputs":[{"name":"_auctionId","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"collectAuctionPayout","inputs":[{"name":"_auctionId","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"collectAuctionTokens","inputs":[{"name":"_auctionId","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"createAuction","inputs":[{"name":"_params","type":"tuple","internalType":"struct IEnglishAuctions.AuctionParameters","components":[{"name":"assetContract","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"quantity","type":"uint256","internalType":"uint256"},{"name":"currency","type":"address","internalType":"address"},{"name":"minimumBidAmount","type":"uint256","internalType":"uint256"},{"name":"buyoutBidAmount","type":"uint256","internalType":"uint256"},{"name":"timeBufferInSeconds","type":"uint64","internalType":"uint64"},{"name":"bidBufferBps","type":"uint64","internalType":"uint64"},{"name":"startTimestamp","type":"uint64","internalType":"uint64"},{"name":"endTimestamp","type":"uint64","internalType":"uint64"}]}],"outputs":[{"name":"auctionId","type":"uint256","internalType":"uint256"}],"stateMutability":"nonpayable"},{"type":"function","name":"getAllAuctions","inputs":[{"name":"_startId","type":"uint256","internalType":"uint256"},{"name":"_endId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"auctions","type":"tuple[]","internalType":"struct IEnglishAuctions.Auction[]","components":[{"name":"auctionId","type":"uint256","internalType":"uint256"},{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"quantity","type":"uint256","internalType":"uint256"},{"name":"minimumBidAmount","type":"uint256","internalType":"uint256"},{"name":"buyoutBidAmount","type":"uint256","internalType":"uint256"},{"name":"timeBufferInSeconds","type":"uint64","internalType":"uint64"},{"name":"bidBufferBps","type":"uint64","internalType":"uint64"},{"name":"startTimestamp","type":"uint64","internalType":"uint64"},{"name":"endTimestamp","type":"uint64","internalType":"uint64"},{"name":"auctionCreator","type":"address","internalType":"address"},{"name":"assetContract","type":"address","internalType":"address"},{"name":"currency","type":"address","internalType":"address"},{"name":"tokenType","type":"uint8","internalType":"enum IEnglishAuctions.TokenType"},{"name":"status","type":"uint8","internalType":"enum IEnglishAuctions.Status"}]}],"stateMutability":"view"},{"type":"function","name":"getAllValidAuctions","inputs":[{"name":"_startId","type":"uint256","internalType":"uint256"},{"name":"_endId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"auctions","type":"tuple[]","internalType":"struct IEnglishAuctions.Auction[]","components":[{"name":"auctionId","type":"uint256","internalType":"uint256"},{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"quantity","type":"uint256","internalType":"uint256"},{"name":"minimumBidAmount","type":"uint256","internalType":"uint256"},{"name":"buyoutBidAmount","type":"uint256","internalType":"uint256"},{"name":"timeBufferInSeconds","type":"uint64","internalType":"uint64"},{"name":"bidBufferBps","type":"uint64","internalType":"uint64"},{"name":"startTimestamp","type":"uint64","internalType":"uint64"},{"name":"endTimestamp","type":"uint64","internalType":"uint64"},{"name":"auctionCreator","type":"address","internalType":"address"},{"name":"assetContract","type":"address","internalType":"address"},{"name":"currency","type":"address","internalType":"address"},{"name":"tokenType","type":"uint8","internalType":"enum IEnglishAuctions.TokenType"},{"name":"status","type":"uint8","internalType":"enum IEnglishAuctions.Status"}]}],"stateMutability":"view"},{"type":"function","name":"getAuction","inputs":[{"name":"_auctionId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"auction","type":"tuple","internalType":"struct IEnglishAuctions.Auction","components":[{"name":"auctionId","type":"uint256","internalType":"uint256"},{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"quantity","type":"uint256","internalType":"uint256"},{"name":"minimumBidAmount","type":"uint256","internalType":"uint256"},{"name":"buyoutBidAmount","type":"uint256","internalType":"uint256"},{"name":"timeBufferInSeconds","type":"uint64","internalType":"uint64"},{"name":"bidBufferBps","type":"uint64","internalType":"uint64"},{"name":"startTimestamp","type":"uint64","internalType":"uint64"},{"name":"endTimestamp","type":"uint64","internalType":"uint64"},{"name":"auctionCreator","type":"address","internalType":"address"},{"name":"assetContract","type":"address","internalType":"address"},{"name":"currency","type":"address","internalType":"address"},{"name":"tokenType","type":"uint8","internalType":"enum IEnglishAuctions.TokenType"},{"name":"status","type":"uint8","internalType":"enum IEnglishAuctions.Status"}]}],"stateMutability":"view"},{"type":"function","name":"getWinningBid","inputs":[{"name":"_auctionId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"bidder","type":"address","internalType":"address"},{"name":"currency","type":"address","internalType":"address"},{"name":"bidAmount","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"isAuctionExpired","inputs":[{"name":"_auctionId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"isNewWinningBid","inputs":[{"name":"_auctionId","type":"uint256","internalType":"uint256"},{"name":"_bidAmount","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"event","name":"AuctionClosed","inputs":[{"name":"auctionId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"assetContract","type":"address","indexed":true,"internalType":"address"},{"name":"closer","type":"address","indexed":true,"internalType":"address"},{"name":"tokenId","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"auctionCreator","type":"address","indexed":false,"internalType":"address"},{"name":"winningBidder","type":"address","indexed":false,"internalType":"address"}],"anonymous":false},{"type":"event","name":"CancelledAuction","inputs":[{"name":"auctionCreator","type":"address","indexed":true,"internalType":"address"},{"name":"auctionId","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"NewAuction","inputs":[{"name":"auctionCreator","type":"address","indexed":true,"internalType":"address"},{"name":"auctionId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"assetContract","type":"address","indexed":true,"internalType":"address"},{"name":"auction","type":"tuple","indexed":false,"internalType":"struct IEnglishAuctions.Auction","components":[{"name":"auctionId","type":"uint256","internalType":"uint256"},{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"quantity","type":"uint256","internalType":"uint256"},{"name":"minimumBidAmount","type":"uint256","internalType":"uint256"},{"name":"buyoutBidAmount","type":"uint256","internalType":"uint256"},{"name":"timeBufferInSeconds","type":"uint64","internalType":"uint64"},{"name":"bidBufferBps","type":"uint64","internalType":"uint64"},{"name":"startTimestamp","type":"uint64","internalType":"uint64"},{"name":"endTimestamp","type":"uint64","internalType":"uint64"},{"name":"auctionCreator","type":"address","internalType":"address"},{"name":"assetContract","type":"address","internalType":"address"},{"name":"currency","type":"address","internalType":"address"},{"name":"tokenType","type":"uint8","internalType":"enum IEnglishAuctions.TokenType"},{"name":"status","type":"uint8","internalType":"enum IEnglishAuctions.Status"}]}],"anonymous":false},{"type":"event","name":"NewBid","inputs":[{"name":"auctionId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"bidder","type":"address","indexed":true,"internalType":"address"},{"name":"assetContract","type":"address","indexed":true,"internalType":"address"},{"name":"bidAmount","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"auction","type":"tuple","indexed":false,"internalType":"struct IEnglishAuctions.Auction","components":[{"name":"auctionId","type":"uint256","internalType":"uint256"},{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"quantity","type":"uint256","internalType":"uint256"},{"name":"minimumBidAmount","type":"uint256","internalType":"uint256"},{"name":"buyoutBidAmount","type":"uint256","internalType":"uint256"},{"name":"timeBufferInSeconds","type":"uint64","internalType":"uint64"},{"name":"bidBufferBps","type":"uint64","internalType":"uint64"},{"name":"startTimestamp","type":"uint64","internalType":"uint64"},{"name":"endTimestamp","type":"uint64","internalType":"uint64"},{"name":"auctionCreator","type":"address","internalType":"address"},{"name":"assetContract","type":"address","internalType":"address"},{"name":"currency","type":"address","internalType":"address"},{"name":"tokenType","type":"uint8","internalType":"enum IEnglishAuctions.TokenType"},{"name":"status","type":"uint8","internalType":"enum IEnglishAuctions.Status"}]}],"anonymous":false}]'),ez=JSON.parse('[{"type":"function","name":"acceptOffer","inputs":[{"name":"_offerId","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"cancelOffer","inputs":[{"name":"_offerId","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"getAllOffers","inputs":[{"name":"_startId","type":"uint256","internalType":"uint256"},{"name":"_endId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"offers","type":"tuple[]","internalType":"struct IOffers.Offer[]","components":[{"name":"offerId","type":"uint256","internalType":"uint256"},{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"quantity","type":"uint256","internalType":"uint256"},{"name":"totalPrice","type":"uint256","internalType":"uint256"},{"name":"expirationTimestamp","type":"uint256","internalType":"uint256"},{"name":"offeror","type":"address","internalType":"address"},{"name":"assetContract","type":"address","internalType":"address"},{"name":"currency","type":"address","internalType":"address"},{"name":"tokenType","type":"uint8","internalType":"enum IOffers.TokenType"},{"name":"status","type":"uint8","internalType":"enum IOffers.Status"}]}],"stateMutability":"view"},{"type":"function","name":"getAllValidOffers","inputs":[{"name":"_startId","type":"uint256","internalType":"uint256"},{"name":"_endId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"offers","type":"tuple[]","internalType":"struct IOffers.Offer[]","components":[{"name":"offerId","type":"uint256","internalType":"uint256"},{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"quantity","type":"uint256","internalType":"uint256"},{"name":"totalPrice","type":"uint256","internalType":"uint256"},{"name":"expirationTimestamp","type":"uint256","internalType":"uint256"},{"name":"offeror","type":"address","internalType":"address"},{"name":"assetContract","type":"address","internalType":"address"},{"name":"currency","type":"address","internalType":"address"},{"name":"tokenType","type":"uint8","internalType":"enum IOffers.TokenType"},{"name":"status","type":"uint8","internalType":"enum IOffers.Status"}]}],"stateMutability":"view"},{"type":"function","name":"getOffer","inputs":[{"name":"_offerId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"offer","type":"tuple","internalType":"struct IOffers.Offer","components":[{"name":"offerId","type":"uint256","internalType":"uint256"},{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"quantity","type":"uint256","internalType":"uint256"},{"name":"totalPrice","type":"uint256","internalType":"uint256"},{"name":"expirationTimestamp","type":"uint256","internalType":"uint256"},{"name":"offeror","type":"address","internalType":"address"},{"name":"assetContract","type":"address","internalType":"address"},{"name":"currency","type":"address","internalType":"address"},{"name":"tokenType","type":"uint8","internalType":"enum IOffers.TokenType"},{"name":"status","type":"uint8","internalType":"enum IOffers.Status"}]}],"stateMutability":"view"},{"type":"function","name":"makeOffer","inputs":[{"name":"_params","type":"tuple","internalType":"struct IOffers.OfferParams","components":[{"name":"assetContract","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"quantity","type":"uint256","internalType":"uint256"},{"name":"currency","type":"address","internalType":"address"},{"name":"totalPrice","type":"uint256","internalType":"uint256"},{"name":"expirationTimestamp","type":"uint256","internalType":"uint256"}]}],"outputs":[{"name":"offerId","type":"uint256","internalType":"uint256"}],"stateMutability":"nonpayable"},{"type":"event","name":"AcceptedOffer","inputs":[{"name":"offeror","type":"address","indexed":true,"internalType":"address"},{"name":"offerId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"assetContract","type":"address","indexed":true,"internalType":"address"},{"name":"tokenId","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"seller","type":"address","indexed":false,"internalType":"address"},{"name":"quantityBought","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"totalPricePaid","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"CancelledOffer","inputs":[{"name":"offeror","type":"address","indexed":true,"internalType":"address"},{"name":"offerId","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"NewOffer","inputs":[{"name":"offeror","type":"address","i
304ndexed":true,"internalType":"address"},{"name":"offerId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"assetContract","type":"address","indexed":true,"internalType":"address"},{"name":"offer","type":"tuple","indexed":false,"internalType":"struct IOffers.Offer","components":[{"name":"offerId","type":"uint256","internalType":"uint256"},{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"quantity","type":"uint256","internalType":"uint256"},{"name":"totalPrice","type":"uint256","internalType":"uint256"},{"name":"expirationTimestamp","type":"uint256","internalType":"uint256"},{"name":"offeror","type":"address","internalType":"address"},{"name":"assetContract","type":"address","internalType":"address"},{"name":"currency","type":"address","internalType":"address"},{"name":"tokenType","type":"uint8","internalType":"enum IOffers.TokenType"},{"name":"status","type":"uint8","internalType":"enum IOffers.Status"}]}],"anonymous":false}]'),eB=r(27761),eU=JSON.parse('[{"type":"function","name":"getRoleAdmin","inputs":[{"name":"role","type":"bytes32","internalType":"bytes32"}],"outputs":[{"name":"","type":"bytes32","internalType":"bytes32"}],"stateMutability":"view"},{"type":"function","name":"grantRole","inputs":[{"name":"role","type":"bytes32","internalType":"bytes32"},{"name":"account","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"hasRole","inputs":[{"name":"role","type":"bytes32","internalType":"bytes32"},{"name":"account","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"renounceRole","inputs":[{"name":"role","type":"bytes32","internalType":"bytes32"},{"name":"account","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"revokeRole","inputs":[{"name":"role","type":"bytes32","internalType":"bytes32"},{"name":"account","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"event","name":"RoleAdminChanged","inputs":[{"name":"role","type":"bytes32","indexed":true,"internalType":"bytes32"},{"name":"previousAdminRole","type":"bytes32","indexed":true,"internalType":"bytes32"},{"name":"newAdminRole","type":"bytes32","indexed":true,"internalType":"bytes32"}],"anonymous":false},{"type":"event","name":"RoleGranted","inputs":[{"name":"role","type":"bytes32","indexed":true,"internalType":"bytes32"},{"name":"account","type":"address","indexed":true,"internalType":"address"},{"name":"sender","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"RoleRevoked","inputs":[{"name":"role","type":"bytes32","indexed":true,"internalType":"bytes32"},{"name":"account","type":"address","indexed":true,"internalType":"address"},{"name":"sender","type":"address","indexed":true,"internalType":"address"}],"anonymous":false}]'),eF=JSON.parse('[{"type":"function","name":"getRoleAdmin","inputs":[{"name":"role","type":"bytes32","internalType":"bytes32"}],"outputs":[{"name":"","type":"bytes32","internalType":"bytes32"}],"stateMutability":"view"},{"type":"function","name":"getRoleMember","inputs":[{"name":"role","type":"bytes32","internalType":"bytes32"},{"name":"index","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"getRoleMemberCount","inputs":[{"name":"role","type":"bytes32","internalType":"bytes32"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"grantRole","inputs":[{"name":"role","type":"bytes32","internalType":"bytes32"},{"name":"account","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"hasRole","inputs":[{"name":"role","type":"bytes32","internalType":"bytes32"},{"name":"account","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"renounceRole","inputs":[{"name":"role","type":"bytes32","internalType":"bytes32"},{"name":"account","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"revokeRole","inputs":[{"name":"role","type":"bytes32","internalType":"bytes32"},{"name":"account","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"event","name":"RoleAdminChanged","inputs":[{"name":"role","type":"bytes32","indexed":true,"internalType":"bytes32"},{"name":"previousAdminRole","type":"bytes32","indexed":true,"internalType":"bytes32"},{"name":"newAdminRole","type":"bytes32","indexed":true,"internalType":"bytes32"}],"anonymous":false},{"type":"event","name":"RoleGranted","inputs":[{"name":"role","type":"bytes32","indexed":true,"internalType":"bytes32"},{"name":"account","type":"address","indexed":true,"internalType":"address"},{"name":"sender","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"RoleRevoked","inputs":[{"name":"role","type":"bytes32","indexed":true,"internalType":"bytes32"},{"name":"account","type":"address","indexed":true,"internalType":"address"},{"name":"sender","type":"address","indexed":true,"internalType":"address"}],"anonymous":false}]'),eZ=JSON.parse('[{"type":"function","name":"getPlatformFeeInfo","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"},{"name":"","type":"uint16","internalType":"uint16"}],"stateMutability":"view"},{"type":"function","name":"setPlatformFeeInfo","inputs":[{"name":"_platformFeeRecipient","type":"address","internalType":"address"},{"name":"_platformFeeBps","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"event","name":"PlatformFeeInfoUpdated","inputs":[{"name":"platformFeeRecipient","type":"address","indexed":true,"internalType":"address"},{"name":"platformFeeBps","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false}]'),eW=JSON.parse('[{"type":"function","name":"primarySaleRecipient","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"setPrimarySaleRecipient","inputs":[{"name":"_saleRecipient","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"event","name":"PrimarySaleRecipientUpdated","inputs":[{"name":"recipient","type":"address","indexed":true,"internalType":"address"}],"anonymous":false}]'),eH=JSON.parse('[{"type":"function","name":"getDefaultRoyaltyInfo","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"},{"name":"","type":"uint16","internalType":"uint16"}],"stateMutability":"view"},{"type":"function","name":"getRoyaltyInfoForToken","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"address","internalType":"address"},{"name":"","type":"uint16","internalType":"uint16"}],"stateMutability":"view"},{"type":"function","name":"royaltyInfo","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"salePrice","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"receiver","type":"address","internalType":"address"},{"name":"royaltyAmount","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"setDefaultRoyaltyInfo","inputs":[{"name":"_royaltyRecipient","type":"address","internalType":"address"},{"name":"_royaltyBps","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"setRoyaltyInfoForToken","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"recipient","type":"address","internalType":"address"},{"name":"bps","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"supportsInterface","inputs":[{"name":"interfaceId","type":"bytes4","internalType":"bytes4"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"event","name":"DefaultRoyalty","inputs":[{"name":"newRoyaltyRecipient","type":"address","indexed":true,"internalType":"address"},{"name":"newRoyaltyBps","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"RoyaltyForToken","inputs":[{"name":"tokenId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"royaltyRecipient","type":"address","indexed":true,"internalType":"address"},{"name":"royaltyBps","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false}]'),eG=JSON.parse('[{"type":"function","name":"owner","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"setOwner","inputs":[{"name":"_newOwner","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"event","name":"OwnerUpdated","inputs":[{"name":"prevOwner","type":"address","indexed":true,"internalType":"address"},{"name":"newOwner","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"error","name":"OwnableUnauthorized","inputs":[]}]'),eq=JSON.parse('[{"type":"function","name":"airdropERC20","inputs":[{"name":"tokenAddress","type":"address","internalType":"address"},{"name":"tokenOwner","type":"address","internalType":"address"},{"name":"contents","type":"tuple[]","internalType":"struct IAirdropERC20.AirdropContent[]","components":[{"name":"recipient","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"}]}],"outputs":[],"stateMutability":"payable"},{"type":"event","name":"AirdropFailed","inputs":[{"name":"tokenAddress","type":"address","indexed":true,"internalType":"address"},{"name":"tokenOwner","type":"address","indexed":true,"internalType":"address"},{"name":"recipient","type":"address","indexed":true,"internalType":"address"},{"name":"amount","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false}]'),eY=JSON.parse('[{"type":"function","name":"airdropERC721","inputs":[{"name":"tokenAddress","type":"address","internalType":"address"},{"name":"tokenOwner","type":"address","internalType":"address"},{"name":"contents","type":"tuple[]","internalType":"struct IAirdropERC721.AirdropContent[]","components":[{"name":"recipient","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"}]}],"outputs":[],"stateMutability":"nonpayable"},{"type":"event","name":"AirdropFailed","inputs":[{"name":"tokenAddress","type":"address","indexed":true,"internalType":"address"},{"name":"tokenOwner","type":"address","indexed":true,"internalType":"address"},{"name":"recipient","type":"address","indexed":true,"internalType":"address"},{"name":"tokenId","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false}]'),eV=JSON.parse('[{"type":"function","name":"airdropERC1155","inputs":[{"name":"tokenAddress","type":"address","internalType":"address"},{"name":"tokenOwner","type":"address","internalType":"address"},{"name":"contents","type":"tuple[]","internalType":"struct IAirdropERC1155.AirdropContent[]","components":[{"name":"recipient","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"amount","type":"uint256","internalType":"uint256"}]}],"outputs":[],"stateMutability":"nonpayable"},{"type":"event","name":"AirdropFailed","inputs":[{"name":"tokenAddress","type":"address","indexed":true,"internalType":"address"},{"name":"tokenOwner","type":"address","indexed":true,"internalType":"address"},{"name":"recipient","type":"address","indexed":true,"internalType":"address"},{"name":"tokenId","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"amount","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false}]'),eQ=JSON.parse('[{"type":"function","name":"accountImplementation","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"}
304,{"type":"function","name":"createAccount","inputs":[{"name":"admin","type":"address","internalType":"address"},{"name":"_data","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"account","type":"address","internalType":"address"}],"stateMutability":"nonpayable"},{"type":"function","name":"getAccountsOfSigner","inputs":[{"name":"signer","type":"address","internalType":"address"}],"outputs":[{"name":"accounts","type":"address[]","internalType":"address[]"}],"stateMutability":"view"},{"type":"function","name":"getAddress","inputs":[{"name":"adminSigner","type":"address","internalType":"address"},{"name":"data","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"getAllAccounts","inputs":[],"outputs":[{"name":"","type":"address[]","internalType":"address[]"}],"stateMutability":"view"},{"type":"event","name":"AccountCreated","inputs":[{"name":"account","type":"address","indexed":true,"internalType":"address"},{"name":"accountAdmin","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"SignerAdded","inputs":[{"name":"account","type":"address","indexed":true,"internalType":"address"},{"name":"signer","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"SignerRemoved","inputs":[{"name":"account","type":"address","indexed":true,"internalType":"address"},{"name":"signer","type":"address","indexed":true,"internalType":"address"}],"anonymous":false}]'),eK=JSON.parse('[{"type":"function","name":"getAllActiveSigners","inputs":[],"outputs":[{"name":"signers","type":"tuple[]","internalType":"struct IAccountPermissions.SignerPermissions[]","components":[{"name":"signer","type":"address","internalType":"address"},{"name":"approvedTargets","type":"address[]","internalType":"address[]"},{"name":"nativeTokenLimitPerTransaction","type":"uint256","internalType":"uint256"},{"name":"startTimestamp","type":"uint128","internalType":"uint128"},{"name":"endTimestamp","type":"uint128","internalType":"uint128"}]}],"stateMutability":"view"},{"type":"function","name":"getAllAdmins","inputs":[],"outputs":[{"name":"admins","type":"address[]","internalType":"address[]"}],"stateMutability":"view"},{"type":"function","name":"getAllSigners","inputs":[],"outputs":[{"name":"signers","type":"tuple[]","internalType":"struct IAccountPermissions.SignerPermissions[]","components":[{"name":"signer","type":"address","internalType":"address"},{"name":"approvedTargets","type":"address[]","internalType":"address[]"},{"name":"nativeTokenLimitPerTransaction","type":"uint256","internalType":"uint256"},{"name":"startTimestamp","type":"uint128","internalType":"uint128"},{"name":"endTimestamp","type":"uint128","internalType":"uint128"}]}],"stateMutability":"view"},{"type":"function","name":"getPermissionsForSigner","inputs":[{"name":"signer","type":"address","internalType":"address"}],"outputs":[{"name":"permissions","type":"tuple","internalType":"struct IAccountPermissions.SignerPermissions","components":[{"name":"signer","type":"address","internalType":"address"},{"name":"approvedTargets","type":"address[]","internalType":"address[]"},{"name":"nativeTokenLimitPerTransaction","type":"uint256","internalType":"uint256"},{"name":"startTimestamp","type":"uint128","internalType":"uint128"},{"name":"endTimestamp","type":"uint128","internalType":"uint128"}]}],"stateMutability":"view"},{"type":"function","name":"isActiveSigner","inputs":[{"name":"signer","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"isAdmin","inputs":[{"name":"signer","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"setPermissionsForSigner","inputs":[{"name":"req","type":"tuple","internalType":"struct IAccountPermissions.SignerPermissionRequest","components":[{"name":"signer","type":"address","internalType":"address"},{"name":"isAdmin","type":"uint8","internalType":"uint8"},{"name":"approvedTargets","type":"address[]","internalType":"address[]"},{"name":"nativeTokenLimitPerTransaction","type":"uint256","internalType":"uint256"},{"name":"permissionStartTimestamp","type":"uint128","internalType":"uint128"},{"name":"permissionEndTimestamp","type":"uint128","internalType":"uint128"},{"name":"reqValidityStartTimestamp","type":"uint128","internalType":"uint128"},{"name":"reqValidityEndTimestamp","type":"uint128","internalType":"uint128"},{"name":"uid","type":"bytes32","internalType":"bytes32"}]}
304,{"name":"signature","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"verifySignerPermissionRequest","inputs":[{"name":"req","type":"tuple","internalType":"struct IAccountPermissions.SignerPermissionRequest","components":[{"name":"signer","type":"address","internalType":"address"},{"name":"isAdmin","type":"uint8","internalType":"uint8"},{"name":"approvedTargets","type":"address[]","internalType":"address[]"},{"name":"nativeTokenLimitPerTransaction","type":"uint256","internalType":"uint256"},{"name":"permissionStartTimestamp","type":"uint128","internalType":"uint128"},{"name":"permissionEndTimestamp","type":"uint128","internalType":"uint128"},{"name":"reqValidityStartTimestamp","type":"uint128","internalType":"uint128"},{"name":"reqValidityEndTimestamp","type":"uint128","internalType":"uint128"},{"name":"uid","type":"bytes32","internalType":"bytes32"}]},{"name":"signature","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"success","type":"bool","internalType":"bool"},{"name":"signer","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"event","name":"AdminUpdated","inputs":[{"name":"signer","type":"address","indexed":true,"internalType":"address"},{"name":"isAdmin","type":"bool","indexed":false,"internalType":"bool"}],"anonymous":false},{"type":"event","name":"SignerPermissionsUpdated","inputs":[{"name":"authorizingSigner","type":"address","indexed":true,"internalType":"address"},{"name":"targetSigner","type":"address","indexed":true,"internalType":"address"},{"name":"permissions","type":"tuple","indexed":false,"internalType":"struct IAccountPermissions.SignerPermissionRequest","components":[{"name":"signer","type":"address","internalType":"address"},{"name":"isAdmin","type":"uint8","internalType":"uint8"},{"name":"approvedTargets","type":"address[]","internalType":"address[]"},{"name":"nativeTokenLimitPerTransaction","type":"uint256","internalType":"uint256"},{"name":"permissionStartTimestamp","type":"uint128","internalType":"uint128"},{"name":"permissionEndTimestamp","type":"uint128","internalType":"uint128"},{"name":"reqValidityStartTimestamp","type":"uint128","internalType":"uint128"},{"name":"reqValidityEndTimestamp","type":"uint128","internalType":"uint128"},{"name":"uid","type":"bytes32","internalType":"bytes32"}]}],"anonymous":false}]'),e$=JSON.parse('[{"type":"function","name":"getAllActiveSigners","inputs":[],"outputs":[{"name":"signers","type":"tuple[]","internalType":"struct IAccountPermissions_V1.SignerPermissions[]","components":[{"name":"signer","type":"address","internalType":"address"},{"name":"approvedTargets","type":"address[]","internalType":"address[]"},{"name":"nativeTokenLimitPerTransaction","type":"uint256","internalType":"uint256"},{"name":"startTimestamp","type":"uint128","internalType":"uint128"},{"name":"endTimestamp","type":"uint128","internalType":"uint128"}]}],"stateMutability":"view"},{"type":"function","name":"getAllAdmins","inputs":[],"outputs":[{"name":"admins","type":"address[]","internalType":"address[]"}],"stateMutability":"view"},{"type":"function","name":"getAllSigners","inputs":[],"outputs":[{"name":"signers","type":"tuple[]","internalType":"struct IAccountPermissions_V1.SignerPermissions[]","components":[{"name":"signer","type":"address","internalType":"address"},{"name":"approvedTargets","type":"address[]","internalType":"address[]"},{"name":"nativeTokenLimitPerTransaction","type":"uint256","internalType":"uint256"},{"name":"startTimestamp","type":"uint128","internalType":"uint128"},{"name":"endTimestamp","type":"uint128","internalType":"uint128"}]}],"stateMutability":"view"},{"type":"function","name":"getPermissionsForSigner","inputs":[{"name":"signer","type":"address","internalType":"address"}],"outputs":[{"name":"permissions","type":"tuple","internalType":"struct IAccountPermissions_V1.SignerPermissions","components":[{"name":"signer","type":"address","internalType":"address"},{"name":"approvedTargets","type":"address[]","internalType":"address[]"},{"name":"nativeTokenLimitPerTransaction","type":"uint256","internalType":"uint256"},{"name":"startTimestamp","type":"uint128","internalType":"uint128"},{"name":"endTimestamp","type":"uint128","internalType":"uint128"}]}],"stateMutability":"view"},{"type":"function","name":"isActiveSigner","inputs":[{"name":"signer","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"isAdmin","inputs":[{"name":"signer","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"setAdmin","inputs":[{"name":"account","type":"address","internalType":"address"},{"name":"isAdmin","type":"bool","internalType":"bool"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"setPermissionsForSigner","inputs":[{"name":"req","type":"tuple","internalType":"struct IAccountPermissions_V1.SignerPermissionRequest","components":[{"name":"signer","type":"address","internalType":"address"},{"name":"approvedTargets","type":"address[]","internalType":"address[]"},{"name":"nativeTokenLimitPerTransaction","type":"uint256","internalType":"uint256"},{"name":"permissionStartTimestamp","type":"uint128","internalType":"uint128"},{"name":"permissionEndTimestamp","type":"uint128","internalType":"uint128"},{"name":"reqValidityStartTimestamp","type":"uint128","internalType":"uint128"},{"name":"reqValidityEndTimestamp","type":"uint128","internalType":"uint128"},{"name":"uid","type":"bytes32","internalType":"bytes32"}]}
304,{"name":"signature","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"verifySignerPermissionRequest","inputs":[{"name":"req","type":"tuple","internalType":"struct IAccountPermissions_V1.SignerPermissionRequest","components":[{"name":"signer","type":"address","internalType":"address"},{"name":"approvedTargets","type":"address[]","internalType":"address[]"},{"name":"nativeTokenLimitPerTransaction","type":"uint256","internalType":"uint256"},{"name":"permissionStartTimestamp","type":"uint128","internalType":"uint128"},{"name":"permissionEndTimestamp","type":"uint128","internalType":"uint128"},{"name":"reqValidityStartTimestamp","type":"uint128","internalType":"uint128"},{"name":"reqValidityEndTimestamp","type":"uint128","internalType":"uint128"},{"name":"uid","type":"bytes32","internalType":"bytes32"}]},{"name":"signature","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"success","type":"bool","internalType":"bool"},{"name":"signer","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"event","name":"AdminUpdated","inputs":[{"name":"signer","type":"address","indexed":true,"internalType":"address"},{"name":"isAdmin","type":"bool","indexed":false,"internalType":"bool"}],"anonymous":false},{"type":"event","name":"SignerPermissionsUpdated","inputs":[{"name":"authorizingSigner","type":"address","indexed":true,"internalType":"address"},{"name":"targetSigner","type":"address","indexed":true,"internalType":"address"},{"name":"permissions","type":"tuple","indexed":false,"internalType":"struct IAccountPermissions_V1.SignerPermissionRequest","components":[{"name":"signer","type":"address","internalType":"address"},{"name":"approvedTargets","type":"address[]","internalType":"address[]"},{"name":"nativeTokenLimitPerTransaction","type":"uint256","internalType":"uint256"},{"name":"permissionStartTimestamp","type":"uint128","internalType":"uint128"},{"name":"permissionEndTimestamp","type":"uint128","internalType":"uint128"},{"name":"reqValidityStartTimestamp","type":"uint128","internalType":"uint128"},{"name":"reqValidityEndTimestamp","type":"uint128","internalType":"uint128"},{"name":"uid","type":"bytes32","internalType":"bytes32"}]}],"anonymous":false}]'),eJ=JSON.parse('[{"type":"function","name":"validateUserOp","inputs":[{"name":"userOp","type":"tuple","internalType":"struct UserOperation","components":[{"name":"sender","type":"address","internalType":"address"},{"name":"nonce","type":"uint256","internalType":"uint256"},{"name":"initCode","type":"bytes","internalType":"bytes"},{"name":"callData","type":"bytes","internalType":"bytes"},{"name":"callGasLimit","type":"uint256","internalType":"uint256"},{"name":"verificationGasLimit","type":"uint256","internalType":"uint256"},{"name":"preVerificationGas","type":"uint256","internalType":"uint256"},{"name":"maxFeePerGas","type":"uint256","internalType":"uint256"},{"name":"maxPriorityFeePerGas","type":"uint256","internalType":"uint256"},{"name":"paymasterAndData","type":"bytes","internalType":"bytes"},{"name":"signature","type":"bytes","internalType":"bytes"}]},{"name":"userOpHash","type":"bytes32","internalType":"bytes32"},{"name":"missingAccountFunds","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"validationData","type":"uint256","internalType":"uint256"}],"stateMutability":"nonpayable"}]'),eX=r(56371),e0=r(71770),e1=r(34155),e6=r(48764).Buffer;function e5(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return void 0!==e1&&e1.env[e]?e1.env[e]:n}function e2(){return e5("contractPublisherAddress","0xf5b896Ddb5146D5dA77efF4efBb3Eae36E300808")}function e4(e){return!!(e&&e._isSigner)}function e3(e){return!!(e&&e._isProvider)}let e8={timeLimitMs:10,sizeLimit:200};class e9 extends b.c{constructor(e,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e8;super(e,n),this._timeLimitMs=r.timeLimitMs||10,this._sizeLimit=r.sizeLimit||200,this._pendingBatchAggregator=null,this._pendingBatch=null}sendCurrentBatch(e){this._pendingBatchAggregator&&clearTimeout(this._pe
304ndingBatchAggregator);let n=this._pendingBatch||[];this._pendingBatch=null,this._pendingBatchAggregator=null;let r=n.map(e=>e.request);return this.emit("debug",{action:"requestBatch",request:v.deepCopy(e),provider:this}),w.fetchJson(this.connection,JSON.stringify(r)).then(e=>{this.emit("debug",{action:"response",request:r,response:e,provider:this}),n.forEach((n,r)=>{let i=e[r];if(i){if(i.error){let e=Error(i.error.message);e.code=i.error.code,e.data=i.error.data,n.reject(e)}else n.resolve(i.result)}else n.reject(Error("No response for request"))})},e=>{this.emit("debug",{action:"response",error:e,request:r,provider:this}),n.forEach(n=>{n.reject(e)})})}send(e,n){let r={method:e,params:n,id:this._nextId++,jsonrpc:"2.0"};null===this._pendingBatch&&(this._pendingBatch=[]);let i={request:r,resolve:null,reject:null},a=new Promise((e,n)=>{i.resolve=e,i.reject=n});return this._pendingBatch.push(i),this._pendingBatch.length===this._sizeLimit&&this.sendCurrentBatch(r),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout(()=>{this.sendCurrentBatch(r)},this._timeLimitMs)),a}}let e7=B.z.object({rpc:B.z.array(B.z.string().url()),chainId:B.z.number(),nativeCurrency:B.z.object({name:B.z.string(),symbol:B.z.string(),decimals:B.z.number()}),slug:B.z.string()}),te=B.z.object({supportedChains:B.z.array(e7).default(U.gL9),clientId:B.z.string().optional(),secretKey:B.z.string().optional(),readonlySettings:B.z.object({rpcUrl:B.z.string().url(),chainId:B.z.number().optional()}).optional(),gasSettings:B.z.object({maxPriceInGwei:B.z.number().min(1,"gas price cannot be less than 1").default(300),speed:B.z.enum(["standard","fast","fastest"]).default("fastest")}).default({maxPriceInGwei:300,speed:"fastest"}),gasless:B.z.union([B.z.object({openzeppelin:B.z.object({relayerUrl:B.z.string().url(),relayerForwarderAddress:B.z.string().optional(),useEOAForwarder:B.z.boolean().default(!1),domainName:B.z.string().default("GSNv2 Forwarder"),domainVersion:B.z.string().default("0.0.1"),domainSeparatorVersion:B.z.string().default("1")}),experimentalChainlessSupport:B.z.boolean().default(!1)}),B.z.object({biconomy:B.z.object({apiId:B.z.string(),apiKey:B.z.string(),deadlineSeconds:B.z.number().min(1,"deadlineSeconds cannot be les than 1").default(3600)})}),B.z.object({engine:B.z.object({relayerUrl:B.z.string().url().transform(e=>e.replace(/\/$/,"")),relayerForwarderAddress:B.z.string().optional(),domainName:B.z.string().default("GSNv2 Forwarder"),domainVersion:B.z.string().default("0.0.1"),domainSeparatorVersion:B.z.string().default("1")}),experimentalChainlessSupport:B.z.boolean().default(!1)})]).optional(),gatewayUrls:B.z.array(B.z.string()).optional(),rpcBatchSettings:B.z.object({sizeLimit:B.z.number().default(200),timeLimit:B.z.number().default(10)}).optional()}).default({gasSettings:{maxPriceInGwei:300,speed:"fastest"}});var tt={name:"@thirdweb-dev/sdk",version:"4.0.99"};let tn=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function tr(){return"undefined"!=typeof navigator&&"ReactNative"===navigator.product?"":function(e){for(let n=0,r=tn.length;n<r;n++){let r=tn[n];if(!r)continue;let[i,a]=r;if(a.exec(e))return i}return null}(navigator.userAgent)||""}function ti(){return"undefined"==typeof globalThis?{x_sdk_name:tt.name,x_sdk_platform:ta(),x_sdk_version:tt.version,x_sdk_os:tr(),app_bundle_id:void 0}:(void 0===globalThis.X_SDK_NAME&&(globalThis.X_SDK_NAME=tt.name,globalThis.X_SDK_PLATFORM=ta(),globalThis.X_SDK_VERSION=tt.version,globalThis.X_SDK_OS=tr(),globalThis.APP_BUNDLE_ID=void 0),{x_sdk_name:globalThis.X_SDK_NAME,x_sdk_platform:globalThis.X_SDK_PLATFORM,x_sdk_version:globalThis.X_SDK_VERSION,x_sdk_os:globalThis.X_SDK_OS,app_bundle_id:globalThis.APP_BUNDLE_ID||""})}function ta(){return"undefined"!=typeof navigator&&"ReactNative"===navigator.product?"mobile":"browser"}function to(e,n){let r;if("string"==typeof e&&function(e){let n=e.match(/^(ws|http)s?:/i);if(n)switch(n[1].toLowerCase()){case"http":case"https":case"ws":case"wss":return!0}return!1}(e))return tl(e,n);let i=te.parse(n);ts(e)&&(i.supportedChains=[e,...i.supportedChains.filter(n=>n.chainId===e.chainId)]);let a=i.supportedChains.reduce((e,n)=>(e[n.chainId]||(e[n.chainId]=n),e),{}),o="";try{r=function(e,n){if(ts(e))return e.chainId;if("number"==typeof e)return e;{let r=n.supportedChains.reduce((e,n)=>(e[n.slug]=n.chainId,e),{});if(e in r)return r[e]}throw Error(`Cannot resolve chainId from: ${e} - please pass the chainId instead and specify it in the 'supportedChains' property of the SDK o
304ptions.`)}(e,i),o=(0,U.OZ$)(a[r],i.clientId)[0]}catch(e){}if(o||(o=`https://${r||e}.rpc.thirdweb.com/${i.clientId||""}`),!o)throw Error(`No rpc url found for chain ${e}. Please provide a valid rpc url via the 'supportedChains' property of the sdk options.`);return tl(o,n,r)}function ts(e){return"string"!=typeof e&&"number"!=typeof e&&!e4(e)&&!e3(e)}let tf=new Map;function tl(e,n,r){try{var i;let a={},o="none";if(i=e,new URL(i).hostname.endsWith(".thirdweb.com")){if(n?.secretKey)throw Error("Cannot use secretKey in browser context");if(n?.clientId){let r=new URL(e);r.pathname=n.clientId,a["x-client-id"]=n.clientId,e=r.toString(),o="clientId"}"undefined"!=typeof globalThis&&"TW_AUTH_TOKEN"in globalThis&&"string"==typeof globalThis.TW_AUTH_TOKEN&&(a.authorization=`Bearer ${globalThis.TW_AUTH_TOKEN}`,o="twAuthToken"),"undefined"!=typeof globalThis&&"TW_CLI_AUTH_TOKEN"in globalThis&&"string"==typeof globalThis.TW_CLI_AUTH_TOKEN&&(a["x-authorize-wallet"]="true"),function(e){let n=ti();e["x-sdk-version"]=n.x_sdk_version,e["x-sdk-name"]=n.x_sdk_name,e["x-sdk-platform"]=n.x_sdk_platform,e["x-sdk-os"]=n.x_sdk_os}(a);let r="undefined"!=typeof globalThis&&"APP_BUNDLE_ID"in globalThis?globalThis.APP_BUNDLE_ID:void 0;!e.includes("bundleId")&&r&&(e+=r?`?bundleId=${r}`:"")}let s=e.match(/^(ws|http)s?:/i);if(s)switch(s[1].toLowerCase()){case"http":case"https":let f=`${e}-${r||-1}-${o}`,l=tf.get(f);if(l)return l;let u=!1;"undefined"!=typeof globalThis&&"TW_SKIP_FETCH_SETUP"in globalThis&&"boolean"==typeof globalThis.TW_SKIP_FETCH_SETUP&&(u=globalThis.TW_SKIP_FETCH_SETUP);let c=r?new e9({url:e,headers:a,skipFetchSetup:u},r,n?.rpcBatchSettings):new x.I({url:e,headers:a,skipFetchSetup:u});return tf.set(f,c),c;case"ws":case"wss":return new T.q(e,r)}}catch(e){}return C.getDefaultProvider(e)}function tu(e,n){let r,i;if(e4(e)?(r=e,e.provider&&(i=e.provider)):i=e3(e)?e:to(e,n),n?.readonlySettings&&(i=tl(n.readonlySettings.rpcUrl,n,n.readonlySettings.chainId)),!i){if(r)throw Error("No provider passed to the SDK! Please make sure that your signer is connected to a provider!");throw Error("No provider found! Make sure to specify which network to connect to, or pass a signer or provider to the SDK!")}return[r,i]}let tc=new Map;async function td(e){let n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;i||(i=tu("ethereum")[1]),n=tc.has(e)?tc.get(e):i.resolveName(e).then(e=>e?{address:e,expirationTime:new Date(Date.now()+3e5)}:{address:null,expirationTime:new Date(Date.now()+3e4)});let a=await n;return a.expirationTime<new Date&&(tc.delete(e),0===r&&td(e,r+1)),a.address}let tp=B.z.custom(e=>"string"==typeof e&&(e.endsWith(".eth")||e.endsWith(".cb.id"))).transform(async e=>td(e)).refine(e=>!!e&&M.isAddress(e),{message:"Provided value was not a valid ENS name"}),th=B.z.custom(e=>"string"==typeof e&&M.isAddress(e),e=>({message:`${e} is not a valid address`})),ty=B.z.union([th,tp],{invalid_type_error:"Provided value was not a valid address or ENS name"});async function tm(e){return ty.parseAsync(e)}let tg=B.z.instanceof(File),tb=B.z.union([tg,B.z.object({data:B.z.union([tg,B.z.string()]),name:B.z.string()})]),tv=B.z.union([tb,B.z.string()]),tw=1e4,tx=B.z.union([B.z.array(B.z.number()),B.z.string()]),tT=B.z.union([B.z.bigint(),B.z.custom(e=>A.O$.isBigNumber(e)),B.z.custom(e=>W().isBN(e))]).transform(e=>W().isBN(e)?new(W())(e).toString():A.O$.from(e).toString()),tC=B.z.number().max(tw,"Cannot exceed 100%").min(0,"Cannot be below 0%"),tM=B.z.number().max(100,"Cannot exceed 100%").min(0,"Cannot be below 0%"),tA=B.z.union([B.z.string().regex(/^([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,"Invalid hex color"),B.z.string().regex(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,"Invalid hex color").transform(e=>e.replace("#","")),B.z.string().length(0)]),tE=B.z.union([B.z.string().regex(/^([0-9]+\.?[0-9]*|\.[0-9]+)$/,"Invalid amount"),B.z.number().min(0,"Amount cannot be negative")]).transform(e=>"number"==typeof e?e.toString():e),tI=B.z.union([tE,B.z.literal("unlimited")]).default("unlimited"),tS="0|[1-9]\\d*",tk=RegExp(`(${tS})\\.(${tS})\\.(${tS})`);function tN(e){if(e.length>256)throw Error("version is longer than 256 characters");let n=e.trim().match(tk);if(!n||n?.length!==4)throw Error(`${e} is not a valid semantic version. Should be in the format of major.minor.patch. Ex: 0.4.1`);let r=Number(n[1]),i=Number(n[2]),a=Number(n[3]),o=[r,i,a].join(".");return{major:r,minor:i,patch:a,versionString:o}}function tj(e,n){let r=tN(e),i=tN(n);if(i.major>r.major)return!0;let a=i.major===r.major;if(a&&i.minor>r.minor)return!0;let o=i.minor===r.minor;return a&&o&&i.patch>r.patch}let tD=B.z.union([B.z.string(),B.z.number(),B.z.bigint(),B.z.custom(e=>A.O$.isBigNumber(e))]).transform(e=>A.O$.from(e)),t_=tD.transform(e=>e.toString()),tO=B.z.union([B.z.bigint(),B.z.custom(e=>A.O$.isBigNumber(e))]).transform(e=>A.O$.from(e).toString()),tP=B.z.object({name:B.z.string(),description:B.z.string().optional(),image:tv.optional(),external_link:B.z.string().optional(),app_ur
304i:B.z.string().optional(),social_urls:B.z.record(B.z.string()).optional(),defaultAdmin:ty.optional()}).catchall(B.z.unknown()),tL=tP.extend({image:B.z.string().optional()}).catchall(B.z.unknown()),tR=B.z.object({seller_fee_basis_points:tC.default(0),fee_recipient:ty.default(E.d)}),tz=B.z.object({primary_sale_recipient:ty.default(E.d)}),tB=B.z.object({platform_fee_basis_points:tC.default(0),platform_fee_recipient:ty.default(E.d)}),tU=B.z.object({trusted_forwarders:B.z.array(ty).default([])}),tF=B.z.object({symbol:B.z.string().default("")}),tZ=B.z.object({merkle:B.z.record(B.z.string()).default({})}),tW=B.z.object({address:ty,maxClaimable:tI.default(0),price:tI.optional(),currencyAddress:ty.default(E.d).optional()}),tH=B.z.union([B.z.array(B.z.string()).transform(async e=>await Promise.all(e.map(e=>tW.parseAsync({address:e})))),B.z.array(tW)]),tG=tW.extend({proof:B.z.array(B.z.string())}),tq=B.z.object({merkleRoot:B.z.string(),claims:B.z.array(tG)}),tY=tP.catchall(B.z.union([tO,B.z.unknown()])).merge(tR.merge(tZ).merge(tF).partial()).catchall(B.z.any()),tV=tL.merge(tR.merge(tZ).merge(tF).partial()).catchall(B.z.any()),tQ={deploy:tY.merge(tB.merge(tz).merge(tU).partial()),output:tV,input:tY},tK=B.z.object({type:B.z.string(),name:B.z.string().default("")}).catchall(B.z.any()),t$=tK.extend({stateMutability:B.z.string().optional(),components:B.z.array(tK).optional()}).catchall(B.z.any()),tJ=B.z.object({type:B.z.string(),name:B.z.string().default(""),inputs:B.z.array(t$).default([]),outputs:B.z.array(t$).default([])}).catchall(B.z.any()),tX=B.z.array(tJ),t0=B.z.union([B.z.literal("solc"),B.z.literal("zksolc")]),t1=B.z.object({name:B.z.string(),metadataUri:B.z.string(),bytecodeUri:B.z.string(),analytics:B.z.any().optional(),compilers:B.z.record(t0,B.z.array(B.z.object({compilerVersion:B.z.string().optional(),evmVersion:B.z.string().optional(),metadataUri:B.z.string(),bytecodeUri:B.z.string()}))).optional()}).catchall(B.z.any()),t6=B.z.record(B.z.string(),B.z.string()),t5=B.z.object({factoryFunction:B.z.string(),params:B.z.array(B.z.object({name:B.z.string(),type:B.z.string()})).default([]),customFactoryAddresses:t6}),t2=B.z.object({hooksParamName:B.z.string()}),t4=B.z.object({implementationAddresses:t6,implementationInitializerFunction:B.z.string().default("initialize"),customFactoryInput:t5.optional(),modularFactoryInput:t2.optional(),factoryAddresses:t6.optional()}),t3=B.z.union([B.z.literal("standard"),B.z.literal("autoFactory"),B.z.literal("customFactory")]),t8=B.z.union([B.z.literal("none"),B.z.literal("plugin"),B.z.literal("dynamic"),B.z.literal("modular")]),t9=B.z.object({allNetworks:B.z.boolean().optional(),networksEnabled:B.z.array(B.z.number()).default([])}),t7=B.z.object({version:B.z.string().refine(e=>{try{return tN(e),!0}catch(e){return!1}},e=>({message:`'${e}' is not a valid semantic version. Should be in the format of major.minor.patch. Ex: 0.4.1`})),displayName:B.z.string().optional(),description:B.z.string().optional(),externalLinks:B.z.array(B.z.object({name:B.z.string(),url:B.z.string()})).optional(),readme:B.z.string().optional(),license:B.z.string().optional(),changelog:B.z.string().optional(),tags:B.z.array(B.z.string()).optional(),audit:tv.nullable().optional(),logo:tv.nullable().optional(),isDeployableViaFactory:B.z.boolean().optional(),isDeployableViaProxy:B.z.boolean().optional(),factoryDeploymentData:t4.optional(),deployType:t3.optional(),routerType:t8.optional(),defaultExtensions:B.z.array(B.z.object({extensionName:B.z.string(),extensionVersion:B.z.string().default("latest"),publisherAddress:ty})).optional(),networksForDeployment:t9.optional(),constructorParams:B.z.record(B.z.string(),B.z.object({displayName:B.z.string().optional(),description:B.z.string().optional(),defaultValue:B.z.string().optional(),hidden:B.z.boolean().optional()}).catchall(B.z.any())).optional(),compositeAbi:tX.optional()}).catchall(B.z.any()),ne=t7.extend({audit:B.z.string().nullable().optional(),logo:B.z.string().nullable().optional()}),nt=t1.merge(t7).extend({publisher:ty.optional()}),nn=t1.merge(ne).extend({publisher:ty.optional()}),nr=B.z.object({name:B.z.string().optional(),bio:B.z.string().optional(),avatar:tv.nullable().optional(),website:B.z.string().optional(),twitter:B.z.string().optional(),telegram:B.z.string().optional(),facebook:B.z.string().optional(),github:B.z.string().optional(),medium:B.z.string().optional(),linkedin:B.z.string().optional(),reddit:B.z.string().optional(),discord:B.z.string().optional()}).extend({avatar:B.z.string().nullable().optional()}),ni=B.z.object({id:B.z.string(),timestamp:t_,metadataUri:B.z.string()}),na=B.z.object({title:B.z.string().optional(),author:B.z.string().optional(),details:B.z.string().optional(),notice:B.z.string().optional()}),no=B.z.object({name:B.z.string(),abi:tX,metadata:B.z.record(B.z.string(),B.z.any()),info:na,licenses:B.z.array(B.z.string().optional()).default([]).transform(e=>e.filter(e=>void 0!==e)),isPartialAbi:B.z.boolean().optional()}),ns=t1.merge(no).extend({bytecode:B.z.string(),fetchedMetadataUri:B.z.string(),fetchedBytecodeUri:B.z.string()});async function nf(e,n){let r=await (await n.download(e)).text();return nn.parse(JSON.parse(r))}async function nl(e,n){let r=await n.downloadJSON(e,{timeoutInSeconds:2});if(!r||!r.output)throw Error(`Could not resolve metadata for contract at ${e}`);return nu(r)}function nu(e){let n=tX.parse(e.output.abi),r=e.settings.compilationTarget,i=Object.keys(r),a=r[i[0]],o=na.parse({title:e.output.devdoc.title,author:e.output.devdoc.author,details:e.output.devdoc.detail,notice:e.output.userdoc.notice}),s=[...new Set(Object.entries(e.sources).map(e=>{let[,n]=e;return n.license}))];return{name:a,abi:n,metadata:e,info:o,licenses:s,isPartialAbi:e.isPartialAbi}}async function nc(e,n){return t1.parse(JSON.parse(await (await n.download(e)).text()))}
304async function nd(e,n,r){let i,a;let o=await nc(e,n);if(r&&o.compilers){let e;switch(r.compilerType){case"solc":if(r.compilerVersion)e=o.compilers.solc?.find(e=>e.compilerVersion===r.compilerVersion&&e.evmVersion===r.evmVersion);else if(o.compilers.solc){let n=o.compilers.solc.length;e=o.compilers.solc[n-1]}break;case"zksolc":if(r.compilerVersion)e=o.compilers.zksolc?.find(e=>e.compilerVersion===r.compilerVersion&&e.evmVersion===r.evmVersion);else if(o.compilers.zksolc){let n=o.compilers.zksolc.length;e=o.compilers.zksolc[n-1]}}(0,F.Z)(e,"Compiler or EVM version not found"),i=e.bytecodeUri,a=e.metadataUri}else i=o.bytecodeUri,a=o.metadataUri;let[s,f]=await Promise.all([n.download(i),nl(a,n)]);return ns.parse({...o,...f,bytecode:await s.text(),fetchedMetadataUri:a,fetchedBytecodeUri:i})}let np=()=>!0,nh=()=>!np();function ny(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map;return{put:function(r,i){if(n.size>=e){let e=n.keys().next().value;n.delete(e)}n.set(r,i)},get:function(e){if(!n.has(e))return;let r=n.get(e);return n.delete(e),n.set(e,r),r},has:function(e){return n.has(e)},maxEntries:e,store:n}}let nm=ny(20);async function ng(e,n,r){let i;let a=r?`${r.compilerType}_${r.compilerVersion||""}_${r.evmVersion||""} 305 `:"default",o=`${a}_${e}`,s=nm.get(o);if(s)return s;let f=await nd(e,n,r);try{i=await nf(e,n)}catch(e){}let l={compilerMetadata:f,extendedMetadata:i};return nm.put(o,l),l}let nb=U.gL9;function nv(e){nb=e&&e.length>0?e:U.gL9}let nw="0xdd99b75f095d0c4d5112aCe938e4e6ed962fb024";async function nx(e,n){let i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"latest",o=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0,f=arguments.length>5?arguments[5]:void 0,l=nb.find(e=>137===e.chainId)||U.mgq,u=await tm(e),c=(await Promise.resolve().then(r.t.bind(r,65815,19))).default,d=new I.CH(e2(),c,to(l,{clientId:s,secretKey:f}));if(a&&"latest"!==a){let e=(await d.getPublishedContractVersions(u,n)).map(e=>ni.parse({id:e.contractId,timestamp:e.publishTimestamp,metadataUri:e.publishMetadataUri})),r=(await Promise.all(e.map(e=>ng(e.metadataUri,o)))).map((n,r)=>({name:e[r].id,publishedTimestamp:e[r].timestamp,publishedMetadata:n})).find(e=>e.publishedMetadata.extendedMetadata?.version===a);(0,F.Z)(r,"Contract version not found"),i=e.find(e=>e.timestamp===r.publishedTimestamp)}else{let e=await d.getPublishedContract(u,n);i=ni.parse({id:e.contractId,timestamp:e.publishTimestamp,metadataUri:e.publishMetadataUri})}if(!i)throw Error(`No published contract found for ${n} at version by '${nw}'`);return i}async function nT(e,n){try{let i=(await r.e(59189).then(r.t.bind(r,59189,19))).default,a=new I.CH(e,i,n),[o,s]=await Promise.all([a.contractType(),a.contractVersion()]);return{type:S.ZN(o).replace(/\x00/g,""),version:s}}catch(e){return}}try{a=new TextDecoder}catch(e){}let nC=0,nM={},nA={},nE=0,nI=0,nS=[],nk=[],nN={useRecords:!1,mapsAsObjects:!0},nj=!1;class nD{constructor(e){if(e&&((e.keyMap||e._keyMap)&&!e.useRecords&&(e.useRecords=!1,e.mapsAsObjects=!0),!1===e.useRecords&&void 0===e.mapsAsObjects&&(e.mapsAsObjects=!0),e.getStructures&&(e.getShared=e.getStructures),e.getShared&&!e.structures&&((e.structures=[]).uninitialized=!0),e.keyMap))for(let[n,r]of(this.mapKey=new Map,Object.entries(e.keyMap)))this.mapKey.set(r,n);Object.assign(this,e)}decodeKey(e){return this.keyMap&&this.mapKey.get(e)||e}decode(e,n){if(o)return n0(()=>(n1(),this?this.decode(e,n):nD.prototype.decode.call(nN,e,n)));s=n>-1?n:e.length,nC=0,nI=0,l=null,u=null,o=e;try{p=e.dataView||(e.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength))}catch(n){if(o=null,e instanceof Uint8Array)throw n;throw Error("Source must be a Uint8Array or Buffer but was a "+(e&&"object"==typeof e?e.constructor.name:typeof e))}return this instanceof nD?(nA=this,d=this.sharedValues&&(this.pack?Array(this.maxPrivatePackedValues||16).concat(this.sharedValues):this.sharedValues),this.structures?f=this.structures:(!f||f.length>0)&&(f=[])):(nA=nN,(!f||f.length>0)&&(f=[]),d=null),function(){try{let e=n_();if(u){if(nC>=u.postBundlePosition){let e=Error("Unexpected bundle position");throw e.incomplete=!0,e}nC=u.postBundlePosition,u=null}if(nC==s)f=null,o=null,c&&(c=null);else if(nC>s){let e=Error("Unexpected end of CBOR data");throw e.incomplete=!0,e}else if(!nj)throw Error("Data read, but end of buffer not reached");return e}catch(e){throw n1(),(e instanceof RangeError||e.message.startsWith("Unexpected end of buffer"))&&(e.incomplete=!0),e}}()}}function n_(){let e=o[nC++],n=e>>5;if((e&=31)>23)switch(e){case 24:e=o[nC++];break;case 25:if(7==n)return function(){let e=o[nC++],n=o[nC++],r=(127&e)>>2;if(31===r)return n||3&e?NaN:128&e?-1/0:1/0;
305if(0===r){let r=((3&e)<<8|n)/16777216;return 128&e?-r:r}return nZ[3]=128&e|(r>>1)+56,nZ[2]=(7&e)<<5|n>>3,nZ[1]=n<<5,nZ[0]=0,nF[0]}();e=p.getUint16(nC),nC+=2;break;case 26:if(7==n){let e=p.getFloat32(nC);if(nA.useFloat32>2){let n=n6[(127&o[nC])<<1|o[nC+1]>>7];return nC+=4,(n*e+(e>0?.5:-.5)>>0)/n}return nC+=4,e}e=p.getUint32(nC),nC+=4;break;case 27:if(7==n){let e=p.getFloat64(nC);return nC+=8,e}if(n>1){if(p.getUint32(nC)>0)throw Error("JavaScript does not support arrays, maps, or strings with length over 4294967295");e=p.getUint32(nC+4)}else e=nA.int64AsNumber?4294967296*p.getUint32(nC)+p.getUint32(nC+4):p.getBigUint64(nC);nC+=8;break;case 31:switch(n){case 2:case 3:throw Error("Indefinite length not supported for byte or text strings");case 4:let r=[],i,a=0;for(;(i=n_())!=nM;)r[a++]=i;return 4==n?r:3==n?r.join(""):e6.concat(r);case 5:let c;if(nA.mapsAsObjects){let e={};if(nA.keyMap)for(;(c=n_())!=nM;)e[nL(nA.decodeKey(c))]=n_();else for(;(c=n_())!=nM;)e[nL(c)]=n_();return e}{h&&(nA.mapsAsObjects=!0,h=!1);let e=new Map;if(nA.keyMap)for(;(c=n_())!=nM;)e.set(nA.decodeKey(c),n_());else for(;(c=n_())!=nM;)e.set(c,n_());return e}case 7:return nM;default:throw Error("Invalid major type for indefinite length "+n)}default:throw Error("Unknown token "+e)}switch(n){case 0:return e;case 1:return~e;case 2:var y;return y=e,nA.copyBuffers?Uint8Array.prototype.slice.call(o,nC,nC+=y):o.subarray(nC,nC+=y);case 3:if(nI>=nC)return l.slice(nC-nE,(nC+=e)-nE);if(0==nI&&s<140&&e<32){let n=e<16?nU(e):function(e){let n=nC,r=Array(e);for(let i=0;i<e;i++){let e=o[nC++];if((128&e)>0){nC=n;return}r[i]=e}return nB.apply(String,r)}(e);if(null!=n)return n}return nR(e);case 4:let m=Array(e);for(let n=0;n<e;n++)m[n]=n_();return m;case 5:if(nA.mapsAsObjects){let n={};if(nA.keyMap)for(let r=0;r<e;r++)n[nL(nA.decodeKey(n_()))]=n_();else for(let r=0;r<e;r++)n[nL(n_())]=n_();return n}{h&&(nA.mapsAsObjects=!0,h=!1);let n=new Map;if(nA.keyMap)for(let r=0;r<e;r++)n.set(nA.decodeKey(n_()),n_());else for(let r=0;r<e;r++)n.set(n_(),n_());return n}case 6:if(e>=57337){let n=f[8191&e];if(n)return n.read||(n.read=nP(n)),n.read();if(e<65536){if(57343==e)return nH(n_());if(57342==e){let e=nJ(),n=n_();for(let r=2;r<e;r++)nH([n++,n_()]);return n_()}if(57337==e)return function(){let e=nJ(),n=nC+n_();for(let n=2;n<e;n++){let e=nJ();nC+=e}let r=nC;return nC=n,(u=[nz(nJ()),nz(nJ())]).position0=0,u.position1=0,u.postBundlePosition=nC,nC=r,n_()}();if(nA.getShared&&(nX(),n=f[8191&e]))return n.read||(n.read=nP(n)),n.read()}}let g=nS[e];if(g){if(g.handlesRead)return g(n_);return g(n_())}{let n=n_();for(let r=0;r<nk.length;r++){let i=nk[r](e,n);if(void 0!==i)return i}return new nW(n,e)}case 7:switch(e){case 20:return!1;case 21:return!0;case 22:return null;case 23:return;default:let b=(d||nV())[e];if(void 0!==b)return b;throw Error("Unknown token "+e)}default:if(isNaN(e)){let e=Error("Unexpected end of CBOR data");throw e.incomplete=!0,e}throw Error("Unknown CBOR token "+e)}}let nO=/^[a-zA-Z_$][a-zA-Z\d_$]*$/;function nP(e){return e.slowReads=0,function(){let e=o[nC++];if((e&=31)>23)switch(e){case 24:e=o[nC++];break;case 25:e=p.getUint16(nC),nC+=2;break;case 26:e=p.getUint32(nC),nC+=4;break;default:throw Error("Expected array header, but got "+o[nC-1])}let n=this.compiledReader;for(;n;){if(n.propertyCount===e)return n(n_);n=n.next}if(this.slowReads++>=3){let r=this.length==e?this:this.slice(0,e);return n=nA.keyMap?Function("r","return {"+r.map(e=>nA.decodeKey(e)).map(e=>nO.test(e)?nL(e)+":r()":"["+JSON.stringify(e)+"]:r()").join(",")+"}"):Function("r","return {"+r.map(e=>nO.test(e)?nL(e)+":r()":"["+JSON.stringify(e)+"]:r()").join(",")+"}"),this.compiledReader&&(n.next=this.compiledReader),n.propertyCount=e,this.compiledReader=n,n(n_)}let r={};if(nA.keyMap)for(let n=0;n<e;n++)r[nL(nA.decodeKey(this[n]))]=n_();else for(let n=0;n<e;n++)r[nL(this[n])]=n_();return r}}function nL(e){return"__proto__"===e?"__proto_":e}let nR=nz;function nz(e){let n;if(e<16&&(n=nU(e)))return n;if(e>64&&a)return a.decode(o.subarray(nC,nC+=e));let r=nC+e,i=[];for(n="";nC<r;){let e=o[nC++];if((128&e)==0)i.push(e);else if((224&e)==192){let n=63&o[nC++];i.push((31&e)<<6|n)}else if((240&e)==224){let n=63&o[nC++],r=63&o[nC++];i.push((31&e)<<12|n<<6|r)}else if((248&e)==240){let n=(7&e)<<18|(63&o[nC++])<<12|(63&o[nC++])<<6|63&o[nC++];n>65535&&(n-=65536,i.push(n>>>10&1023|55296),n=56320|1023&n),i.push(n)}else i.push(e);i.length>=4096&&(n+=nB.apply(String,i),i.length=0)}return i.length>0&&(n+=nB.apply(String,i)),n}let nB=String.fromCharCode;function nU(e){if(e<4){if(e<2){if(0===e)return"";{let e=o[nC++];if((128&e)>1){nC-=1;return}return nB(e)}}{let n=o[nC++],r=o[nC++];if((128&n)>0||(128&r)>0){nC-=2;return}if(e<3)return nB(n,r);let i=o[nC++];if((128&i)>0){nC-=3;return}return nB(n,r,i)}}{let n=o[nC++],r=o[nC++],i=o[nC++],a=o[nC++];if((128&n)>0||(128&r)>0||(128&i)>0||(128&a)>0){nC-=4;return}if(e<6){if(4===e)return nB(n,r,i,a);{let e=o[nC++];if((128&e)>0){nC-=5;return}return nB(n,r,i,a,e)}}if(e<8){let s=o[nC++],f=o[nC++];if((128&s)>0||(128&f)>0){nC-=6;return}if(e<7)return nB(n,r,i,a,s,f);let l=o[nC++];if((128&l)>0){nC-=7;return}return nB(n,r,i,a,s,f,l)}{let s=o[nC++],f=o[nC++],l=o[nC++],u=o[nC++];if((128&s)>0||(128&f)>0||(128&l)>0||(128&u)>0){nC-=8;return}if(e<10){if(8===e)return nB(n,r,i,a,s,f,l,u);{let e=o[nC++];if((128&e)>0){nC-=9;return}return nB(n,r,i,a,s,f,l,u,e)}}if(e<12){let c=o[nC++],d=o[nC++];if((128&c)>0||(128&d)>0){nC-=10;return}if(e<11)return nB(n,r,i,a,s,f,l,u,c,d);let p=o[nC++];if((128&p)>0){nC-=11;return}return nB(n,r,i,a,s,f,l,u,c,d,p)}{let c=o[nC++],d=o[nC++],p=o[nC++],h=o[nC++];if((128&c)>0||(128&d)>0||(128&p)>0||(128&h)>0){nC-=12;return}if(e<14){if(12===e)return nB(n,r,i,a,s,f,l,u,c,d,p,h);{let e=o[nC++];if((128&e)>0){nC-=13;return}return nB(n,r,i,a,s,f,l,u,c,d,p,h,e)}}{let y=o[nC++],m=o[nC++];if((128&y)>0||(128&m)>0){nC-=14;return}if(e<15)return nB(n,r,i,a,s,f,l,u,c,d,p,h,y,m);let g=o[nC++];if((128&g)>0){nC-=15;return}return nB(n,r,i,a,s,f,l,u,c,d,p,h,y,m,g)}}}}}let nF=new Float32Array(1),nZ=new Uint8Array(nF.buffer,0,4);class nW{constructor(e,n){this.value=e,this.tag=n}}nS[0]=e=>new Date(e),nS[1]=e=>new Date(Math.round(1e3*e)),nS[2]=e=>{let n=BigInt(0);for(let r=0,i=e.byteLength;r<i;r++)n=BigInt(e[r])+n<<BigInt(8);return n},nS[3]=e=>BigInt(-1)-nS[2](e),nS[4]=e=>Number(e[1]+"e"+e[0]),nS[5]=e=>e[1]*Math.exp(e[0]*Math.log(2));let nH=e=>{let n=e[0]-57344,r=e[1],i=f[n];i&&i.isShared&&((f.restoreStructures||(f.restoreStructures=[]))[n]=i),f[n]=r,r.read=nP(r);let a={};if(nA.keyMap)for(let n=2,i=e.length;n<i;n++)a[nL(nA.decodeKey(r[n-2]))]=e[n];else for(let n=2,i=e.length;n<i;n++)a[nL(r[n-2])]=e[n];return a};nS[105]=nH,nS[14]=e=>u?u[0].slice(u.position0,u.position0+=e):new nW(e,14),nS[15]=e=>u?u[1].slice(u.position1,u.position1+=e):new nW(e,15);let nG={Error,RegExp};nS[27]=e=>(nG[e[0]]||Error)(e[1],e[2]);let nq=e=>{if(132!=o[nC++])throw Error("Packed values structure must be followed by a 4 element array");let n=e();return(d=d?n.concat(d.slice(n.length)):n).prefixes=e(),d.suffixes=e(),e()};function nY(e,n){return"string"==typeof e?e+n:e instanceof Array?e.concat(n):Object.assign({},e,n)}function nV(){if(!d){if(nA.getShared)nX();else throw Error("No packed values available")}return d}nq.handlesRead=!0,nS[51]=nq,nS[6]=e=>{if(!d){if(!nA.getShared)return new nW(e,6);nX()}if("number"==typeof e)return d[16+(e>=0?2*e:-2*e-1)];throw Error("No support for non-integer packed references yet")},nS[25]=e=>stringRefs[e],nS[256]=e=>{stringRefs=[];try{return e()}finally{stringRefs=null}},nS[256].handlesRead=!0,nS[28]=e=>{let n;c||((c=new Map).id=0);let r=c.id++,i={target:n=o[nC]>>5==4?[]:{}};c.set(r,i);let a=e();return i.used?Object.assign(n,a):(i.target=a,a)},nS[28].handlesRead=!0,nS[29]=e=>{let n=c.get(e);return n.used=!0,n.target},nS[258]=e=>new Set(e),(nS[259]=e=>(nA.mapsAsObjects&&(nA.mapsAsObjects=!1,h=!0),e())).handlesRead=!0,nk.push((e,n)=>e>=225&&e<=255?nY(nV().prefixes[e-224],n):e>=28704&&e<=32767?nY(nV().prefixes[e-28672],n):e>=1879052288&&e<=2147483647?nY(nV().prefixes[e-1879048192],n):e>=216&&e<=223?nY(n,nV().suffixes[e-216]):e>=27647&&e<=28671?nY(n,nV().suffixes[e-27639]):e>=1811940352&&e<=1879048191?nY(n,nV().suffixes[e-1811939328]):1399353956==e?{packedValues:d,structures:f.slice(0),version:n}:55799==e?n:void 0);let nQ=1==new Uint8Array(new Uint16Array([1]).buffer)[0],nK=[Uint8Array],n$=[64];for(let e=0;e<nK.length;e++)!function(e,n){let r="get"+e.name.slice(0,-5);"function"!=typeof e&&(e=null);let i=e.BYTES_PER_ELEMENT;for(let a=0;a<2;a++){if(!a&&1==i)continue;let o=2==i?1:4==i?2:3;nS[a?n:n-4]=1==i||a==nQ?r=>
305{if(!e)throw Error("Could not find typed array for code "+n);return new e(Uint8Array.prototype.slice.call(r,0).buffer)}:i=>{if(!e)throw Error("Could not find typed array for code "+n);let s=new DataView(i.buffer,i.byteOffset,i.byteLength),f=i.length>>o,l=new e(f),u=s[r];for(let e=0;e<f;e++)l[e]=u.call(s,e<<o,a);return l}}}(nK[e],n$[e]);function nJ(){let e=31&o[nC++];if(e>23)switch(e){case 24:e=o[nC++];break;case 25:e=p.getUint16(nC),nC+=2;break;case 26:e=p.getUint32(nC),nC+=4}return e}function nX(){if(nA.getShared){let e=n0(()=>(o=null,nA.getShared()))||{},n=e.structures||[];nA.sharedVersion=e.version,d=nA.sharedValues=e.packedValues,!0===f?nA.structures=f=n:f.splice.apply(f,[0,n.length].concat(n))}}function n0(e){let n=s,r=nC,i=nE,a=nI,d=l,h=c,y=u,m=new Uint8Array(o.slice(0,s)),g=f,b=nA,v=nj,w=e();return s=n,nC=r,nE=i,nI=a,l=d,c=h,u=y,o=m,nj=v,f=g,nA=b,p=new DataView(o.buffer,o.byteOffset,o.byteLength),w}function n1(){o=null,c=null,f=null}let n6=Array(147);for(let e=0;e<256;e++)n6[e]=Number("1e"+Math.floor(45.15-.30103*e));let n5=new nD({useRecords:!1}).decode;function n2(e){let n=function(e){var n;if((e=e.toString(16)).startsWith("0x")||(e=`0x${e}`),!(("string"==typeof(n=e)||"number"==typeof n)&&/^(-)?0x[0-9a-f]*$/i.test(n.toString())))throw Error(`Given value "${e}" is not a valid hex string.`);e=e.replace(/^0x/i,"");let r=[];for(let n=0;n<e.length;n+=2)r.push(parseInt(e.slice(n,n+2),16));return r}(e),r=256*n[n.length-2]+n[n.length-1],i=n5(Uint8Array.from(n.slice(n.length-2-r,-2)));if("ipfs"in i&&i.ipfs)try{return`ipfs://${G().encode(i.ipfs)}`}catch(e){console.warn("feature-detection ipfs cbor failed",e)}}async function n4(e,n){let{bytecode:r}=await n8(e,n);return n2(r)}async function n3(e,n){let{bytecode:r}=await n8(e,n);return{uri:n2(r),bytecode:r}}async function n8(e,n){let[r,i]=await Promise.all([n9(e,n),re(e,n)]),a=function(e){if(e.startsWith("0x363d3d373d3d3d363d73")){let n=e.slice(22,62);return`0x${n}`}if(e.startsWith("0x36603057343d5230")){let n=e.slice(122,162);return`0x${n}`}if(e.startsWith("0x3d3d3d3d363d3d37363d73")){let n=e.slice(24,64);return`0x${n}`}if(e.startsWith("0x366000600037611000600036600073")){let n=e.slice(32,72);return`0x${n}`}if(e.startsWith("0x36600080376020600036600073")){let n=e.slice(28,68);return`0x${n}`}if(e.startsWith("0x365f5f375f5f365f73")){let n=e.slice(20,60);return`0x${n}`}}(r);if(a)return{address:a,bytecode:await n9(a,n)};for(let r of(i&&i!==E.d&&(e=i),await Promise.all([n7(e,n),rt(e,n)])))if(r&&M.isAddress(r)&&r!==E.d)try{let e=await n9(r,n);return{address:r,bytecode:e}}catch(e){if(e instanceof Error&&!e.message.includes(`Contract at ${r} does not exist on chain`))throw e}return{address:e,bytecode:r}}async function n9(e,n){try{let r=await n.getCode(e);if("0x"===r){let r=await n.getNetwork();throw Error(`Contract at ${e} does not exist on chain '${r.name}' (chainId: ${r.chainId})`)}return r}catch(n){throw Error(`Failed to get bytecode for address ${e}: ${n}`)}}async function n7(e,n){try{let r=await n.getStorageAt(e,A.O$.from("0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc"));return`0x${r.slice(-40)}`}catch(e){return}}async function re(e,n){try{let r=await n.getStorageAt(e,A.O$.from("0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50"));return`0x${r.slice(-40)}`}catch(e){return}}async function rt(e,n){try{let r=new I.CH(e,rn,n);return await r.implementation()}catch(e){return}}let rn=[{type:"function",name:"implementation",inputs:[],outputs:[{type:"address",name:"",internalType:"address"}],stateMutability:"view"}];function rr(){return e5("multiChainRegistryAddress","0xcdAD8FA86e18538aC207872E8ff3536501431B73")}function ri(e,n){let r=e.map(e=>tX.parse(e)).flat().filter(e=>"constructor"!==e.type);n&&r.push(...tX.parse(n));let i=function(e,n){if(0===e.length||1===e.length||!n)return e;for(let r=0;r<e.length;r++)for(let i=r+1;i<e.length;i++)n(e[r],e[i])&&(e.splice(i,1),i--);return e}(r,(e,n)=>e.name===n.name&&e.type===n.type&&e.inputs.length===n.inputs.length);return tX.parse(i)}let ra={name:"ERC20ClaimConditionsV1",namespace:"token.drop.claim",docLinks:{sdk:"sdk.erc20dclaimable",contracts:"erc20claimconditions"},abis:[$,K],features:{}},ro={name:"ERC20ClaimConditionsV2",namespace:"token.drop.claim",docLinks:{sdk:"sdk.erc20dclaimable",contracts:"erc20claimconditions"},abis:[$,Q],features:{}},rs={name:"ERC20ClaimPhasesV2",namespace:"token.drop.claim",docLinks:{sdk:"sdk.erc20dclaimable",contracts:"erc20claimphases"},abis:[$,Y],features:{}},rf={name:"ERC20ClaimPhasesV1",namespace:"token.drop.claim",docLinks:{sdk:"sdk.erc20dclaimable",contracts:"erc20claimphases"},abis:[V],features:{}},rl={name:"ERC20Burnable",namespace:"token.burn",docLinks:{sdk:"sdk.erc20burnable",contracts:"erc20burnable"},abis:[$,q],features:{}},ru={name:"ERC20SignatureMintable",namespace:"token.signature",docLinks:{sdk:"sdk.erc20signaturemintable",contracts:"erc20signaturemint"},abis:[$,et],features:{}},rc={name:"ERC20BatchMintable",namespace:"token.mint.batch",docLinks:{sdk:"sdk.erc20batchmintable",contracts:"erc20batchmintable"},abis:[$,X,ee],features:{}},rd={name:"ERC20Mintable",namespace:"token.mint",docLinks:{sdk:"sdk.erc20mintable",contracts:"erc20mintable"},abis:[$,X],features:{[rc.name]:rc}},rp={name:"ERC20Permit",namespace:"token.permit",docLinks:{sdk:"sdk.erc20permit",contracts:"erc20permit"},abis:[$,J],features:{}},rh={name:"ERC20",namespace:"token",docLinks:{sdk:"sdk.erc20",contracts:"erc20"},abis:[$,en],features:{[rl.name]:rl,[rd.name]:rd,[ra.name]:ra,[ro.name]:ro,[rf.name]:rf,[rs.name]:rs,[ru.name]:ru,[rp.name]:rp}},ry={name:"ERC721Burnable",namespace:"nft.burn",docLinks:{sdk:"sdk.erc721burnable",contracts:"erc721burnable"},abis:[es,er],features:{}},rm={name:"ERC721Revealable",namespace:"nft.drop.revealer",docLinks:{sdk:"sdk.delayedreveal",contracts:"erc721revealable"},abis:[es,ec,ea],features:{}},rg={name:"ERC721TieredDrop",namespace:"nft.tieredDrop",docLinks:{sdk:"sdk.erc721tiereddrop",contracts:""},abis:[es,ey],features:{}}
305,rb={name:"ERC721ClaimConditionsV1",namespace:"nft.drop.claim",docLinks:{sdk:"sdk.erc721claimable",contracts:"erc721claimconditions"},abis:[es,K],features:{}},rv={name:"ERC721ClaimConditionsV2",namespace:"nft.drop.claim",docLinks:{sdk:"sdk.erc721claimable",contracts:"erc721claimconditions"},abis:[es,Q],features:{}},rw={name:"ERC721ClaimPhasesV1",namespace:"nft.drop.claim",docLinks:{sdk:"sdk.erc721claimable",contracts:"erc721claimphases"},abis:[eo],features:{}},rx={name:"ERC721ClaimPhasesV2",namespace:"nft.drop.claim",docLinks:{sdk:"sdk.erc721claimable",contracts:"erc721claimphases"},abis:[es,Y],features:{}},rT={name:"ERC721ClaimCustom",namespace:"nft.drop.claim",docLinks:{sdk:"sdk.erc721claimable",contracts:"erc721claimcustom"},abis:[es,ei],features:{}},rC={name:"ERC721ClaimZora",namespace:"nft.drop.claim",docLinks:{sdk:"sdk.erc721claimable",contracts:"erc721claimzora"},abis:[es,eg],features:{}},rM={name:"ERC721LazyMintable",namespace:"nft.drop",docLinks:{sdk:"sdk.erc721lazymintable",contracts:"lazymint"},abis:[es,ec],features:{[rm.name]:rm}},rA={name:"ERC721BatchMintable",namespace:"nft.mint.batch",docLinks:{sdk:"sdk.erc721batchmintable",contracts:"erc721batchmintable"},abis:[es,ed,ee],features:{}},rE={name:"ERC721Mintable",namespace:"nft.mint",docLinks:{sdk:"sdk.erc721mintable",contracts:"erc721mintable"},abis:[es,ed],features:{[rA.name]:rA}},rI={name:"ERC721SignatureMintV2",namespace:"nft.signature",docLinks:{sdk:"sdk.erc721signaturemint",contracts:"erc721signaturemint"},abis:[es,ep],features:{}},rS={name:"ERC721SignatureMintV1",namespace:"nft.signature",docLinks:{sdk:"sdk.erc721signaturemint",contracts:"erc721signaturemint"},abis:[eh],features:{}},rk={name:"ERC721Enumerable",namespace:"nft.query.owned",docLinks:{sdk:"sdk.erc721enumerable",contracts:"erc721enumerable"},abis:[es,ef],features:{}},rN={name:"ERC721AQueryable",namespace:"nft.query.owned",docLinks:{sdk:"",contracts:""},abis:[el],features:{}},rj={name:"ERC721Supply",namespace:"nft.query",docLinks:{sdk:"sdk.erc721supply",contracts:"erc721supply"},abis:[es,eu],features:{[rk.name]:rk,[rN.name]:rN}},rD={name:"ERC721SharedMetadata",namespace:"nft.sharedmetadata",docLinks:{sdk:"sdk.sharedmetadata",contracts:"SharedMetadata"},abis:[es,em],features:{}},r_={name:"ERC721LoyaltyCard",namespace:"nft.loyaltyCard",docLinks:{sdk:"",contracts:""},abis:[eb],features:{}},rO={name:"ERC721UpdatableMetadata",namespace:"nft.metadata",docLinks:{sdk:"",contracts:""},abis:[es,ev],features:{}},rP={name:"ERC721",namespace:"nft",docLinks:{sdk:"sdk.erc721",contracts:"erc721"},abis:[es,ew],features:{[ry.name]:ry,[rj.name]:rj,[rE.name]:rE,[rM.name]:rM,[rS.name]:rS,[rI.name]:rI,[rg.name]:rg,[rT.name]:rT,[rC.name]:rC,[rb.name]:rb,[rv.name]:rv,[rw.name]:rw,[rx.name]:rx,[rD.name]:rD,[r_.name]:r_,[rO.name]:rO}},rL={name:"ERC1155Burnable",namespace:"edition.burn",docLinks:{sdk:"sdk.erc1155burnable",contracts:"erc1155burnable"},abis:[eI,ex],features:{}},rR={name:"ERC1155ClaimConditionsV1",namespace:"edition.drop.claim",docLinks:{sdk:"sdk.erc1155claimable",contracts:"erc1155dropsinglephase"},abis:[eI,eE],features:{}},rz={name:"ERC1155ClaimConditionsV2",namespace:"edition.drop.claim",docLinks:{sdk:"sdk.erc1155claimable",contracts:"erc1155claimconditions"},abis:[eI,eA],features:{}},rB={name:"ERC1155ClaimPhasesV2",namespace:"edition.drop.claim",docLinks:{sdk:"sdk.erc1155claimable",contracts:"erc1155claimphases"},abis:[eI,eC],features:{}},rU={name:"ERC1155ClaimPhasesV1",namespace:"edition.drop.claim",docLinks:{sdk:"sdk.erc1155claimable",contracts:"erc1155claimphases"},abis:[eM],features:{}},rF={name:"ERC1155ClaimCustom",namespace:"edition.drop.claim",docLinks:{sdk:"sdk.erc1155claimable",contracts:"erc1155claimcustom"},abis:[eI,eT],features:{}},rZ={name:"ERC1155Revealable",namespace:"edition.drop.revealer",docLinks:{sdk:"sdk.drop.delayedreveal",contracts:"erc1155revealable"},abis:[eI,ec,ea],features:{}},rW={name:"ERC1155LazyMintableV2",namespace:"edition.drop",docLinks:{sdk:"sdk.erc1155droppable",contracts:"lazymint"},abis:[eI,ec],features:{[rZ.name]:rZ}},rH={name:"ERC1155LazyMintableV1",namespace:"edition.drop",docLinks:{sdk:"sdk.erc1155droppable",contracts:"lazymint"},abis:[eM],features:{[rU.name]:rU}},rG={name:"ERC1155SignatureMintable",namespace:"edition.signature",docLinks:{sdk:"sdk.erc1155signaturemintable",contracts:"erc11
30555signaturemint"},abis:[eI,eD],features:{}},rq={name:"ERC1155BatchMintable",namespace:"edition.mint.batch",docLinks:{sdk:"sdk.erc1155batchmintable",contracts:"erc1155batchmintable"},abis:[eI,ej,ee],features:{}},rY={name:"ERC1155Mintable",namespace:"edition.mint",docLinks:{sdk:"sdk.erc1155mintable",contracts:"erc1155mintable"},abis:[eI,ej],features:{[rq.name]:rq}},rV={name:"ERC1155Enumerable",namespace:"edition.query",docLinks:{sdk:"sdk.erc1155",contracts:"erc1155enumerable"},abis:[eI,eN],features:{}},rQ={name:"ERC1155UpdatableMetadata",namespace:"edition.metadata",docLinks:{sdk:"",contracts:""},abis:[eI,ev],features:{}},rK={name:"ERC1155Supply",namespace:"edition.supply",docLinks:{sdk:"",contracts:""},abis:[eI,ek],features:{}},r$={name:"ERC1155",namespace:"edition",docLinks:{sdk:"sdk.erc1155enumerable",contracts:"erc1155"},abis:[eI,eS,[{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}]],features:{[rK.name]:rK,[rL.name]:rL,[rV.name]:rV,[rY.name]:rY,[rH.name]:rH,[rW.name]:rW,[rZ.name]:rZ,[rG.name]:rG,[rF.name]:rF,[rR.name]:rR,[rz.name]:rz,[rB.name]:rB,[rQ.name]:rQ}},rJ=[{inputs:[],name:"getAllPlugins",outputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin[]",name:"registered",type:"tuple[]"}],stateMutability:"view",type:"function"}],rX=[{inputs:[],name:"getAllExtensions",outputs:[{components:[{components:[{internalType:"string",name:"name",type:"string"},{internalType:"string",name:"metadataURI",type:"string"},{internalType:"address",name:"implementation",type:"address"}],internalType:"struct IExtension.ExtensionMetadata",name:"metadata",type:"tuple"},{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"}],internalType:"struct IExtension.ExtensionFunction[]",name:"functions",type:"tuple[]"}],internalType:"struct IExtension.Extension[]",name:"allExtensions",type:"tuple[]"}],stateMutability:"view",type:"function"}],r0=[{type:"fallback",stateMutability:"payable"},{type:"function",name:"cancelOwnershipHandover",inputs:[],outputs:[],stateMutability:"payable"},{type:"function",name:"completeOwnershipHandover",inputs:[{name:"pendingOwner",type:"address",internalType:"address"}],outputs:[],stateMutability:"payable"},{type:"function",name:"getInstalledExtensions",inputs:[],outputs:[{name:"_installedExtensions",type:"tuple[]",internalType:"struct IModularCore.InstalledExtension[]",components:[{name:"implementation",type:"address",internalType:"address"},{name:"config",type:"tuple",internalType:"struct IExtensionConfig.ExtensionConfig",components:[{name:"registerInstallationCallback",type:"bool",internalType:"bool"},{name:"requiredInterfaces",type:"bytes4[]",internalType:"bytes4[]"},{name:"supportedInterfaces",type:"bytes4[]",internalType:"bytes4[]"},{name:"callbackFunctions",type:"tuple[]",internalType:"struct IExtensionConfig.CallbackFunction[]",components:[{name:"selector",type:"bytes4",internalType:"bytes4"}]},{name:"fallbackFunctions",type:"tuple[]",internalType:"struct IExtensionConfig.FallbackFunction[]",components:[{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"permissionBits",type:"uint256",internalType:"uint256"}]}]}]}],stateMutability:"view"},{type:"function",name:"getSupportedCallbackFunctions",inputs:[],outputs:[{name:"",type:"tuple[]",internalType:"struct IModularCore.SupportedCallbackFunction[]",components:[{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"mode",type:"uint8",internalType:"enum IModularCore.CallbackMode"}]}],stateMutability:"pure"},{type:"function",name:"grantRoles",inputs:[{name:"user",type:"address",internalType:"address"},{name:"roles",type:"uint256",internalType:"uint256"}],outputs:[],stateMutability:"payable"},{type:"function",name:"hasAllRoles",inputs:[{name:"user",type:"address",internalType:"address"},{name:"roles",type:"uint256",internalType:"uint256"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"hasAnyRole",inputs:[{name:"user",type:"address",internalType:"address"},{name:"roles",type:"uint256",internalType:"uint256"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"installExtension",inputs:[{name:"_extension",type:"address",internalType:"address"},{name:"_data",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"payable"}
305,{type:"function",name:"owner",inputs:[],outputs:[{name:"result",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"ownershipHandoverExpiresAt",inputs:[{name:"pendingOwner",type:"address",internalType:"address"}],outputs:[{name:"result",type:"uint256",internalType:"uint256"}],stateMutability:"view"},{type:"function",name:"renounceOwnership",inputs:[],outputs:[],stateMutability:"payable"},{type:"function",name:"renounceRoles",inputs:[{name:"roles",type:"uint256",internalType:"uint256"}],outputs:[],stateMutability:"payable"},{type:"function",name:"requestOwnershipHandover",inputs:[],outputs:[],stateMutability:"payable"},{type:"function",name:"revokeRoles",inputs:[{name:"user",type:"address",internalType:"address"},{name:"roles",type:"uint256",internalType:"uint256"}],outputs:[],stateMutability:"payable"},{type:"function",name:"rolesOf",inputs:[{name:"user",type:"address",internalType:"address"}],outputs:[{name:"roles",type:"uint256",internalType:"uint256"}],stateMutability:"view"},{type:"function",name:"supportsInterface",inputs:[{name:"interfaceId",type:"bytes4",internalType:"bytes4"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"transferOwnership",inputs:[{name:"newOwner",type:"address",internalType:"address"}],outputs:[],stateMutability:"payable"},{type:"function",name:"uninstallExtension",inputs:[{name:"_extension",type:"address",internalType:"address"},{name:"_data",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"payable"},{type:"event",name:"ExtensionInstalled",inputs:[{name:"caller",type:"address",indexed:!1,internalType:"address"},{name:"implementation",type:"address",indexed:!1,internalType:"address"},{name:"installedExtension",type:"address",indexed:!1,internalType:"address"}],anonymous:!1},{type:"event",name:"ExtensionUninstalled",inputs:[{name:"caller",type:"address",indexed:!1,internalType:"address"},{name:"implementation",type:"address",indexed:!1,internalType:"address"},{name:"installedExtension",type:"address",indexed:!1,internalType:"address"}],anonymous:!1},{type:"event",name:"OwnershipHandoverCanceled",inputs:[{name:"pendingOwner",type:"address",indexed:!0,internalType:"address"}],anonymous:!1},{type:"event",name:"OwnershipHandoverRequested",inputs:[{name:"pendingOwner",type:"address",indexed:!0,internalType:"address"}],anonymous:!1},{type:"event",name:"OwnershipTransferred",inputs:[{name:"oldOwner",type:"address",indexed:!0,internalType:"address"},{name:"newOwner",type:"address",indexed:!0,internalType:"address"}],anonymous:!1},{type:"event",name:"RolesUpdated",inputs:[{name:"user",type:"address",indexed:!0,internalType:"address"},{name:"roles",type:"uint256",indexed:!0,internalType:"uint256"}],anonymous:!1},{type:"error",name:"AlreadyInitialized",inputs:[]},{type:"error",name:"CallbackExecutionReverted",inputs:[]},{type:"error",name:"CallbackFunctionAlreadyInstalled",inputs:[]},{type:"error",name:"CallbackFunctionNotSupported",inputs:[]},{type:"error",name:"CallbackFunctionRequired",inputs:[]},{type:"error",name:"CallbackFunctionUnauthorizedCall",inputs:[]},{type:"error",name:"ExtensionAlreadyInstalled",inputs:[]},{type:"error",name:"ExtensionInterfaceNotCompatible",inputs:[{name:"requiredInterfaceId",type:"bytes4",internalType:"bytes4"}]},{type:"error",name:"ExtensionNotInstalled",inputs:[]},{type:"error",name:"ExtensionOutOfSync",inputs:[]},{type:"error",name:"FallbackFunctionAlreadyInstalled",inputs:[]},{type:"error",name:"FallbackFunctionNotInstalled",inputs:[]},{type:"error",name:"IndexOutOfBounds",inputs:[]},{type:"error",name:"NewOwnerIsZeroAddress",inputs:[]},{type:"error",name:"NoHandoverRequest",inputs:[]},{type:"error",name:"Unauthorized",inputs:[]}],r1={name:"Royalty",namespace:"royalty",docLinks:{sdk:"sdk.contractroyalty",contracts:"royalty"},abis:[eH],features:{}},r6={name:"PrimarySale",namespace:"sales",docLinks:{sdk:"sdk.contractprimarysale",contracts:"primarysale"},abis:[eW],features:{}},r5={name:"PlatformFee",namespace:"platformFees",docLinks:{sdk:"sdk.platformfee",contracts:"platformfee"},abis:[eZ],features:{}},r2={name:"PermissionsEnumerable",namespace:"roles",docLinks:{sdk:"sdk.contractroles",contracts:"permissionsenumerable"},abis:[eF],features:{}},r4={name:"Permissions",namespace:"roles",docLinks:{sdk:"sdk.contractroles",contracts:"permissions"},abis:[eU],features:{[r2.name]:r2}},r3={name:"ContractMetadata",namespace:"metadata",docLinks:{sdk:"sdk.contractmetadata",contracts:"contractmetadata"},abis:[eP],features:{}},r8={name:"AppURI",namespace:"appURI",docLinks:{sdk:"sdk.appURI",contracts:""},abis:[eO],features:{}},r9={name:"Ownable",namespace:"owner",docLinks:{sdk:"sdk.owner",contracts:"ownable"},abis:[eG],features:{}},r7={name:"Gasless",namespace:"gasless",docLinks:{sdk:"sdk.gaslesstransaction",contracts:"IERC2771Context"},abis:[e_],features:{}},ie={name:"PackVRF",namespace:"pack.vrf",docLinks:{sdk:"sdk.packvrf",contracts:"IPackVRF"},abis:[eB],features:{}},it={name:"PluginRouter",namespace:"plugin.router",docLinks:{sdk:"sdk.pluginrouter",contracts:"PluginRouter"},abis:[rJ],features:{}},ir={name:"DynamicContract",namespace:"dynamic.contract",docLinks:{sdk:"",contracts:"IExtensionsManager"},abis:[rX],features:{}},ii={name:"ModularCore",namespace:"modular.core",docLinks:{sdk:"",contracts:""},abis:[r0],features:{}},ia={name:"ModularExtension",namespace:"modular.extension",docLinks:{sdk:"",contracts:""},abis:[[{type:"function",name:"getExtensionConfig",inputs:[],outputs:[{name:"",type:"tuple",internalType:"struct IExtensionConfig.ExtensionConfig",components:[{name:"registerInstallationCallback",type:"bool",internalType:"bool"},{name:"requiredInterfaces",type:"bytes4[]",internalType:"bytes4[]"},{name:"supportedInterfaces",type:"bytes4[]",internalType:"bytes4[]"},{name:"callbackFunctions",type:"tuple[]",internalType:"struct IExtensionConfig.CallbackFunction[]",components:[{name:"selector",type:"bytes4",internalType:"bytes4"}]},{name:"fallbackFunctions",type:"tuple[]",internalType:"struct IExtensionConfig.FallbackFunction[]",components:[{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"permissionBits",type:"uint256",internalType:"uint256"}]}]}],stateMutability:"pure"}]],features:{}},io={name:"DirectListings",namespace:"direct.listings",docLinks:{sdk:"",contracts:"IDirectListings"},abis:[eL],features:{}},is={name:"EnglishAuctions",namespace:"english.auctions",docLinks:{sdk:"",contracts:"IEnglishAuctions"},abis:[eR],features:{}},il={name:"Offers",namespace:"offers",docLinks:{sdk:"",contracts:"IOffers"},abis:[ez],features:{}},iu={name:"AccountFactory",namespace:"accountFactory",docLinks:{sdk:"sdk.accountFactory",contracts:"IAccountFactory"},abis:[eQ],features:{}},ic={name:"AccountPermissionsV1",namespace:"accountPermissions",docLinks:{sdk:"sdk.account",contracts:"IAccountPermissions"},abis:[e$],features:{}},id={name:"AccountPermissions",namespace:"accountPermissions",docLinks:{sdk:"sdk.account",contracts:"IAccountPermissions"},abis:[eK],features:{}},ip={name:"Account",namespace:"account",docLinks:{sdk:"sdk.account",contracts:"IAccount"},abis:[eJ],features:{[id.name]:id,[ic.name]:ic}},ih={name:"AirdropERC20",namespace:"airdrop20",docLinks:{sdk:"",contracts:"IAirdropERC20"},abis:[eq],features:{}},iy={name:"AirdropERC721",namespace:"airdrop721",docLinks:{sdk:"",contracts:"IAirdropERC721"},abis:[eY],features:{}},im={name:"AirdropERC1155",namespace:"airdrop1155",docLinks:{sdk:"",contracts:"IAirdropERC1155"},abis:[eV],features:{}},ig={name:"Fallback",namespace:"fallback",docLinks:{sdk:"",contracts:""},abis:[[{stateMutability:"payable",type:"fallback"}]],features:{}},ib={[rh.name]:rh,[rP.name]:rP,[r$.name]:r$,[r1.name]:r1,[r5.name]:r5,[r6.name]:r
3056,[r4.name]:r4,[r3.name]:r3,[r8.name]:r8,[r9.name]:r9,[r7.name]:r7,[ie.name]:ie,[it.name]:it,[ir.name]:ir,[ii.name]:ii,[ia.name]:ia,[io.name]:io,[is.name]:is,[il.name]:il,[ih.name]:ih,[iy.name]:iy,[im.name]:im,[iu.name]:iu,[ip.name]:ip,[r_.name]:r_,[rO.name]:rO,[ig.name]:ig};function iv(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e.type,a=!1;return i.endsWith("[]")&&(a=!0,i=i.slice(0,-2)),i.startsWith("bytes")&&(i="BytesLike"),(i.startsWith("uint")||i.startsWith("int"))&&(i=n?"BigNumber":"BigNumberish"),i.startsWith("bool")&&(i="boolean"),"address"===i&&(i="string"),"tuple"===i&&e.components&&(i=`{ ${e.components.map(e=>iv(e,!1,!0)).join(", ")} }`),a&&(i+="[]"),r&&(i=`${e.name}: ${i}`),i}function iw(e,n,r){return n?.output?.userdoc?.[r]?.[Object.keys(n?.output?.userdoc[r]||{}).find(n=>n.includes(e||"unknown"))||""]?.notice||n?.output?.devdoc?.[r]?.[Object.keys(n?.output?.devdoc[r]||{}).find(n=>n.includes(e||"unknown"))||""]?.details}function ix(e,n){let r=(e||[]).filter(e=>"function"===e.type),i=[];for(let e of r){let r=iw(e.name,n,"methods"),a=e.inputs?.map(e=>`${e.name||"key"}: ${iv(e)}`)?.join(", ")||"",o=a?`, [${a}]`:"",s=e.outputs?.map(e=>iv(e,!0))?.join(", "),f=s?`: Promise<${s}>`:": Promise<TransactionResult>",l=`contract.call("${e.name}"${o})${f}`;i.push({inputs:e.inputs||[],outputs:e.outputs||[],name:e.name||"unknown",signature:l,stateMutability:e.stateMutability||"",comment:r})}return i}let iT=ny(10);function iC(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ib,r=JSON.stringify(e);if(iT.has(r))return iT.get(r);let i=function e(n,r){let i={};for(let a in r){let o=r[a],s=function(e,n){let r=ix(e),i=n.flatMap(e=>ix(e));return r.filter(e=>void 0!==i.find(n=>n.name===e.name&&n.inputs.length===e.inputs.length&&n.inputs.every((n,r)=>"tuple"===n.type||"tuple[]"===n.type?n.type===e.inputs[r].type&&n.components?.every((n,i)=>n.type===e.inputs[r].components?.[i]?.type):n.type===e.inputs[r].type))).length===i.length}(n,o.abis),f=e(n,o.features);i[a]={...o,features:f,enabled:s}}return i}(e,n);return iT.put(r,i),i}function iM(e,n){if(e)for(let r in e){let i=e[r];i.enabled&&n.push(i),iM(i.features,n)}}let iA=ny(20);function iE(e,n){return iA.get(`${e}-${n}`)}async function iI(e,n,r){let i,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=(await n.getNetwork()).chainId,s=iE(e,o);if(s)return s;if(!(31337===o||1337===o))try{let n=await fetch(`https://contract.thirdweb.com/metadata/${o}/${e}`,{headers:{...function(){let e=ti();return{"x-sdk-version":e.x_sdk_version,"x-sdk-os":e.x_sdk_os,"x-sdk-name":e.x_sdk_name,"x-sdk-platform":e.x_sdk_platform,...e.app_bundle_id?{"x-bundle-id":e.app_bundle_id}:{}}}()}});if(n.ok){let e=await n.json();i=nu(e)}}catch(e){}if(i||(i=await iS(e,o,n,r,a)),!i)throw Error(`Could not resolve contract. Try importing it by visiting: https://thirdweb.com/${o}/${e}`);if(i.isPartialAbi)console.warn(`Contract metadata could only be partially resolved, some contract functions might be unavailable. Try importing the contract by visiting: https://thirdweb.com/${o}/${e}`);else{var f;f=i,iA.put(`${e}-${o}`,f)}return i}async function iS(e,n,r,i){let a,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},[s,f]=await Promise.all([n3(e,r).catch(()=>void 0),ik(e,n,o).then(e=>{if(e)return{uri:e,bytecode:""}}).catch(()=>void 0)]),l=s?.bytecode,u=f?.uri||s?.uri;if(!u&&!l)throw Error(`Could not fetch bytecode for contract at ${e} on chain ${n}, double check that the address and chainId are correct.`);try{a=await nl(u,i)}catch(e){}if(!a&&l){let e;let n=((e=function(e){let n=[];return iM(function e(n){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ib,i={};for(let a in r){let o=r[a],s=function(e,n){return[...new Set(n.map(e=>new eX.Interface(e)).flatMap(e=>Object.values(e.functions).map(n=>Number(e.getSighash(n)).toString(16))))].every(n=>e.includes(n))}(n,o.abis),f=e(n,o.features);i[a]={...o,features:f,enabled:s}}return i}(e),n),n}(l)).find(e=>"ERC721"===e.name)&&(e=e.filter(e=>"ERC20"!==e.name)),ri(e.map(e=>ri(e.abis))));n&&n.length>0&&(a={name:"Unimported Contract",abi:n,metadata:{},info:{},licenses:[],isPartialAbi:!0})}return a}
305async function ik(e,n,i){let a=(await Promise.resolve().then(r.t.bind(r,52378,19))).default;if(!y){let e=i?.supportedChains?.find(e=>137===e.chainId)||U.mgq;y=new I.CH(rr(),a,to(e,i))}return await y.getMetadataUri(n,e)}async function iN(e,n,r){try{let i=await iI(e,n,r);if(i&&i.abi)return i.abi}catch(e){}}async function ij(e,n){let{extendedMetadata:r}=await ng(e,n);return r?.compositeAbi||[]}let iD=["eip-155","eip155","protected","invalid chain id for signer","chain id none","chain_id mismatch","recovered sender mismatch","transaction hash mismatch","chainid no support","chainid (0)","chainid(0)"],i_=[["account","not found"],["wrong","chainid"]],iO=[1,1*1e9,100*1e9,500*1e9,1e3*1e9,2500*1e9,5e3*1e9,7500*1e9,1e13,25e12,5e13,75e12,1e14,25e13,5e14,75e13,1e15],iP={5001:{name:"Mantle Testnet",gasPrice:1},71402:{name:"Godwoken Mainnet",gasPrice:4e4*1e9},1351057110:{name:"Chaos (SKALE Testnet)",gasPrice:1e5},361:{name:"Theta Mainnet",gasPrice:4e3*1e9},365:{name:"Theta Testnet",gasPrice:4e3*1e9},7700:{name:"Canto",gasPrice:1e3*1e9},7701:{name:"Canto Testnet",gasPrice:1e3*1e9},338:{name:"Cronos Testnet",gasPrice:2e3*1e9},47:{name:"Xpla Testnet",gasPrice:850*1e9},37:{name:"Xpla Mainnet",gasPrice:5100*1e9},199:{name:"BitTorrent Chain",gasPrice:3e5*1e9},88882:{name:"Spicy Chain",gasPrice:2500*1e9,gasLimit:2e5},88888:{name:"Chiliz Chain",gasPrice:2500*1e9,gasLimit:2e5}};function iL(e){return!!iD.some(n=>e.includes(n))||i_.some(n=>n.some(n=>e.includes(n)))}let iR={v:27,r:"0x2222222222222222222222222222222222222222222222222222222222222222",s:"0x2222222222222222222222222222222222222222222222222222222222222222"},iz=5e6,iB="0x60806040526040516107f33803806107f383398101604081905261002291610359565b805160005b818110156100c157828181518110610041576100416104c9565b6020026020010151600001516001600160a01b03163b600014156100af576100ad838281518110610074576100746104c9565b602002602001015160200151848381518110610092576100926104c9565b6020026020010151604001516100c960201b6100091760201c565b505b806100b9816104df565b915050610027565b505050610557565b606061011183836040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c6564000081525061011860201b60201c565b9392505050565b6060610127848460008561012f565b949350505050565b6060824710156101955760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084015b60405180910390fd5b6001600160a01b0385163b6101ec5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161018c565b600080866001600160a01b031685876040516102089190610508565b60006040518083038185875af1925050503d8060008114610245576040519150601f19603f3d011682016040523d82523d6000602084013e61024a565b606091505b50909250905061025b828286610266565b979650505050505050565b60608315610275575081610111565b8251156102855782518084602001fd5b8160405162461bcd60e51b815260040161018c9190610524565b634e487b7160e01b600052604160045260246000fd5b604051606081016001600160401b03811182821017156102d7576102d761029f565b60405290565b604051601f8201601f191681016001600160401b03811182821017156103055761030561029f565b604052919050565b80516001600160a01b038116811461032457600080fd5b919050565b60005b8381101561034457818101518382015260200161032c565b83811115610353576000848401525b50505050565b6000602080838503121561036c57600080fd5b82516001600160401b038082111561038357600080fd5b818501915085601f83011261039757600080fd5b8151818111156103a9576103a961029f565b8060051b6103b88582016102dd565b91825283810185019185810190898411156103d257600080fd5b86860192505b838310156104bc578251858111156103f05760008081fd5b86016060601f19828d0381018213156104095760008081fd5b6104116102b5565b61041c8b850161030d565b8152604061042b81860161030d565b828d01529284015192898411156104425760008081fd5b83850194508e603f86011261045957600093508384fd5b8b85015193508984111561046f5761046f61029f565b61047f8c84601f870116016102dd565b92508383528e818587010111156104965760008081fd5b6104a5848d8501838801610329565b8101919091528452505091860191908601906103d8565b9998505050505050505050565b634e487b7160e01b600052603260045260246000fd5b600060001982141561050157634e487b7160e01b600052601160045260246000fd5b5060010190565b6000825161051a818460208701610329565b9190910192915050565b6020815260008251806020840152610543816040850160208701610329565b601f01601f19169190910160400192915050565b61028d806105666000396000f3fe6080604052600080fd5b606061004b83836040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c65640000815250610052565b9392505050565b60606100618484600085610069565b949350505050565b6060824710156100cf5760405162461bcd60e51b8152
30560206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084015b60405180910390fd5b6001600160a01b0385163b6101265760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016100c6565b600080866001600160a01b031685876040516101429190610208565b60006040518083038185875af1925050503d806000811461017f576040519150601f19603f3d011682016040523d82523d6000602084013e610184565b606091505b509150915061019482828661019f565b979650505050505050565b606083156101ae57508161004b565b8251156101be5782518084602001fd5b8160405162461bcd60e51b81526004016100c69190610224565b60005b838110156101f35781810151838201526020016101db565b83811115610202576000848401525b50505050565b6000825161021a8184602087016101d8565b9190910192915050565b60208152600082518060208401526102438160408501602087016101d8565b601f01601f1916919091016040019291505056fea26469706673582212200b524eb8ceaafe6c603273ee859fddbc2d6f1b7860c3d853dcf6f129f9d9371364736f6c634300080c0033",iU=[{inputs:[{components:[{internalType:"address",name:"predictedAddress",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct IDeployer.Transaction[]",name:"transactions",type:"tuple[]"}],stateMutability:"payable",type:"constructor"}];async function iF(e,n){let r=await n.getCode(e);return"0x"!==r&&"0x0"!==r}async function iZ(e){try{await e.sendTransaction("0xf8a58085174876e800830186a08080b853604580600e600039806000f350fe7fffffffffffffffafffffffffffffffffffffffffffffffffffffffffffffffe03601600081602082378035828234f58015156039578182fd5b8082525050506014600cf31ba02222222222222222222222222222222222222222222222222222222222222222a02222222222222222222222222222222222222222222222222222222222222222")}catch(r){let e=r.toString().toLowerCase(),n=JSON.stringify(r).toLowerCase();if(iL(e)||iL(n))return!0}return!1}function iW(e,n){let r=k.joinSignature(iR),i=n.gasPrice?n.gasPrice:100*1e9,a=n.gasLimit?n.gasLimit:1e5,o=function(e,n){let r=k.arrayify(N.keccak256(j.serialize(e)));return{signer:j.recoverAddress(r,n),transaction:j.serialize(e,n)}}({gasPrice:i,gasLimit:a,nonce:0,data:"0x604580600e600039806000f350fe7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe03601600081602082378035828234f58015156039578182fd5b8082525050506014600cf3",chainId:e},r),s=M.getContractAddress({from:o.signer,nonce:0});return{...o,deployment:s,valueToSend:A.O$.from(i).mul(a)}}async function iH(e){return(await iG(e)).deployment}async function iG(e){let n=(await e.getNetwork()).chainId;if(iP[n]){let r=await iZ(e)?n:0,i=iP[n]?.gasPrice,a=iP[n]?.gasLimit,o=iW(r,{gasPrice:i?A.O$.from(i):void 0,gasLimit:a?A.O$.from(a):void 0});return await iF(o.deployment,e)&&(o.transaction=""),o}let r=[...iO.map(e=>iW(n,{gasPrice:A.O$.from(e)})),...iO.map(e=>iW(0,{gasPrice:A.O$.from(e)}))],i=await Promise.all(r.map(n=>iF(n.deployment,e))),a=r.findIndex(e=>"0x4e59b44847b379578588920cA78FbF26c0B4956C"===e.deployment);if(a&&i[a])return{...r[a],transaction:""};let o=i.findIndex(e=>e);if(o&&r[o])return{...r[o],transaction:""};let[s,f]=await Promise.all([iZ(e),e.getGasPrice()]);return iW(s?n:0,{gasPrice:function(e){let n=iO.find(n=>A.O$.from(n).gte(e));return n?A.O$.from(n):e}(f)})}let iq="0x60606040526040805190810160405280600d81526020017f57726170706564204574686572000000000000000000000000000000000000008152506000908051906020019061004f9291906100c8565b506040805190810160405280600481526020017f57455448000000000000000000000000000000000000000000000000000000008152506001908051906020019061009b9291906100c8565b506012600260006101000a81548160ff021916908360ff16021790555034156100c357600080fd5b61016d565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061010957805160ff1916838001178555610137565b82800160010185558215610137579182015b8281111561013657825182559160200191906001019061011b565b5b5090506101449190610148565b5090565b61016a91905b8082111561016657600081600090555060010161014e565b5090565b90565b610c348061017c6000396000f3006060604052600436106100af576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306fdde03146100b9578063095ea7b31461014757806318160ddd146101a157806323b872dd146101ca5780632e1a7d4d14610243578063313ce5671461026657806370a082311461029557806395d89b41146102e2578063a9059cbb14610370578063d0e30db0146103ca578063dd62ed3e146103d4575b6100b7610440565b005b34156100c457600080fd5b6100cc6104dd565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561010c5780820151818401526020810190506100f1565b50505050905090810190601f1680156101395780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561015257600080fd5b610187600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803590602001909190505061057b565b604051808215151515815260200191505060405180910390f35b34156101ac57600080fd5b6101b461066d565b6040518082815260200191505060405180910390f35b34156101d557600080fd5b610229600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803590602001909190505061068c565b
305604051808215151515815260200191505060405180910390f35b341561024e57600080fd5b61026460048080359060200190919050506109d9565b005b341561027157600080fd5b610279610b05565b604051808260ff1660ff16815260200191505060405180910390f35b34156102a057600080fd5b6102cc600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610b18565b6040518082815260200191505060405180910390f35b34156102ed57600080fd5b6102f5610b30565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561033557808201518184015260208101905061031a565b50505050905090810190601f1680156103625780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561037b57600080fd5b6103b0600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050610bce565b604051808215151515815260200191505060405180910390f35b6103d2610440565b005b34156103df57600080fd5b61042a600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610be3565b6040518082815260200191505060405180910390f35b34600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055503373ffffffffffffffffffffffffffffffffffffffff167fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c346040518082815260200191505060405180910390a2565b60008054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156105735780601f1061054857610100808354040283529160200191610573565b820191906000526020600020905b81548152906001019060200180831161055657829003601f168201915b505050505081565b600081600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040518082815260200191505060405180910390a36001905092915050565b60003073ffffffffffffffffffffffffffffffffffffffff1631905090565b600081600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054101515156106dc57600080fd5b3373ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141580156107b457507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414155b156108cf5781600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015151561084457600080fd5b81600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055505b81600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254039250508190555081600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a3600190509392505050565b80600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410151515610a2757600080fd5b80600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501515610ab457600080fd5b3373ffffffffffffffffffffffffffffffffffffffff167f7fcf532c15f0a6db
3050bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65826040518082815260200191505060405180910390a250565b600260009054906101000a900460ff1681565b60036020528060005260406000206000915090505481565b60018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610bc65780601f10610b9b57610100808354040283529160200191610bc6565b820191906000526020600020905b815481529060010190602001808311610ba957829003601f168201915b505050505081565b6000610bdb33848461068c565b905092915050565b60046020528160005260406000206020528060005260406000206000915091505054815600a165627a7a72305820deb4c2ccab3c2fdca32ab3f46728389c2fe2c165d5fafa07661e4e004f6c344a0029";function iY(e){let n=e.startsWith("0x")?e:`0x${e}`,r=D.id(n),i=`tw.${r}`;return D.id(i)}function iV(e,n,r){let i=e.startsWith("0x")?e:`0x${e}`,a=r?D.id(r):iY(i);return _.pack(["bytes32","bytes","bytes"],[a,i,n])}function iQ(e,n,r,i){let a=e.startsWith("0x")?e:`0x${e}`,o=i?D.id(i):iY(a),s=_.pack(["bytes","bytes"],[a,n]),f=_.pack(["bytes1","address","bytes32","bytes32"],["0xff",r,o,_.keccak256(["bytes"],[s])]),l=_.keccak256(["bytes"],[f]);return`0x${l.slice(26)}`}let iK=((m={})[m.Mainnet=1]="Mainnet",m[m.Goerli=5]="Goerli",m[m.Polygon=137]="Polygon",m[m.Mumbai=80001]="Mumbai",m[m.Localhost=1337]="Localhost",m[m.Hardhat=31337]="Hardhat",m[m.Fantom=250]="Fantom",m[m.FantomTestnet=4002]="FantomTestnet",m[m.Avalanche=43114]="Avalanche",m[m.AvalancheFujiTestnet=43113]="AvalancheFujiTestnet",m[m.Optimism=10]="Optimism",m[m.OptimismGoerli=420]="OptimismGoerli",m[m.Arbitrum=42161]="Arbitrum",m[m.ArbitrumGoerli=421613]="ArbitrumGoerli",m[m.BinanceSmartChainMainnet=56]="BinanceSmartChainMainnet",m[m.BinanceSmartChainTestnet=97]="BinanceSmartChainTestnet",m),i$="0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",iJ={[iK.Mainnet]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",name:"Wrapped Ether",symbol:"WETH"}},[iK.Goerli]:{name:"G\xf6rli Ether",symbol:"GOR",decimals:18,wrapped:{address:"0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6",name:"Wrapped Ether",symbol:"WETH"}},11155111:{name:"Sepolia Ether",symbol:"SEP",decimals:18,wrapped:{address:"0x7b79995e5f793A07Bc00c21412e50Ecae098E7f9",name:"Wrapped Ether",symbol:"WETH"}},[iK.Polygon]:{name:"Matic",symbol:"MATIC",decimals:18,wrapped:{address:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",name:"Wrapped Matic",symbol:"WMATIC"}},[iK.Mumbai]:{name:"Matic",symbol:"MATIC",decimals:18,wrapped:{address:"0x9c3C9283D3e44854697Cd22D3Faa240Cfb032889",name:"Wrapped Matic",symbol:"WMATIC"}},[iK.Avalanche]:{name:"Avalanche",symbol:"AVAX",decimals:18,wrapped:{address:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",name:"Wrapped AVAX",symbol:"WAVAX"}},[iK.AvalancheFujiTestnet]:{name:"Avalanche",symbol:"AVAX",decimals:18,wrapped:{address:"0xd00ae08403B9bbb9124bB305C09058E32C39A48c",name:"Wrapped AVAX",symbol:"WAVAX"}},[iK.Fantom]:{name:"Fantom",symbol:"FTM",decimals:18,wrapped:{address:"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83",name:"Wrapped Fantom",symbol:"WFTM"}},[iK.FantomTestnet]:{name:"Fantom",symbol:"FTM",decimals:18,wrapped:{address:"0xf1277d1Ed8AD466beddF92ef448A132661956621",name:"Wrapped Fantom",symbol:"WFTM"}},[iK.Arbitrum]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x82af49447d8a07e3bd95bd0d56f35241523fbab1",name:"Wrapped Ether",symbol:"WETH"}},[iK.ArbitrumGoerli]:{name:"Arbitrum Goerli Ether",symbol:"AGOR",decimals:18,wrapped:{address:"0xe39Ab88f8A4777030A534146A9Ca3B52bd5D43A3",name:"Wrapped Ether",symbol:"WETH"}},[iK.Optimism]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x4200000000000000000000000000000000000006",name:"Wrapped Ether",symbol:"WETH"}},[iK.OptimismGoerli]:{name:"Goerli Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x4200000000000000000000000000000000000006",name:"Wrapped Ether",symbol:"WETH"}},[iK.BinanceSmartChainMainnet]:{name:"Binance Chain Native Token",symbol:"BNB",decimals:18,wrapped:{address:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",name:"Wrapped Binance Chain Token",symbol:"WBNB"}},[iK.BinanceSmartChainTestnet]:{name:"Binance Chain Native Token",symbol:"TBNB",decimals:18,wrapped:{address:"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd",name:"Wrapped Binance Chain Testnet Token",symbol:"WBNB"}}
305,[iK.Hardhat]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x5FbDB2315678afecb367f032d93F642f64180aa3",name:"Wrapped Ether",symbol:"WETH"}},[iK.Localhost]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x5FbDB2315678afecb367f032d93F642f64180aa3",name:"Wrapped Ether",symbol:"WETH"}},84531:{name:"Base Goerli Testnet",symbol:"ETH",decimals:18,wrapped:{address:"0x4200000000000000000000000000000000000006",name:"Wrapped Ether",symbol:"WETH"}},280:{name:"zkSync Era Testnet",symbol:"ETH",decimals:18,wrapped:{address:"0x5AEa5775959fBC2557Cc8789bC1bf90A239D9a91",name:"Wrapped Ether",symbol:"WETH"}}};function iX(e){let n=nb.find(n=>n.chainId===e);return n&&n.nativeCurrency?{name:n.nativeCurrency.name,symbol:n.nativeCurrency.symbol,decimals:18,wrapped:{address:E.d,name:`Wrapped ${n.nativeCurrency.name}`,symbol:`W${n.nativeCurrency.symbol}`}}:iJ[e]||{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:E.d,name:"Wrapped Ether",symbol:"WETH"}}}let i0={[iK.Mainnet]:"0x514910771AF9Ca656af840dff83E8264EcF986CA",[iK.Goerli]:"0x326C977E6efc84E512bB9C30f76E30c160eD06FB",[iK.BinanceSmartChainMainnet]:"0x404460C6A5EdE2D891e8297795264fDe62ADBB75",[iK.Polygon]:"0xb0897686c545045aFc77CF20eC7A532E3120E0F1",[iK.Mumbai]:"0x326C977E6efc84E512bB9C30f76E30c160eD06FB",[iK.Avalanche]:"0x5947BB275c521040051D82396192181b413227A3",[iK.AvalancheFujiTestnet]:"0x0b9d5D9136855f6FEc3c0993feE6E9CE8a297846",[iK.Fantom]:"0x6F43FF82CCA38001B6699a8AC47A2d0E66939407",[iK.FantomTestnet]:"0xfaFedb041c0DD4fA2Dc0d87a6B0979Ee6FA7af5F"};function i1(e){for(let n of tX.parse(e||[]))if("constructor"===n.type)return n.inputs||[];return[]}let i6={deploymentPresets:{}},i5={[iK.Mainnet]:"0x0385603ab55642cb4dd5de3ae9e306809991804f",[iK.Goerli]:"0xEF770dFb6D5620977213f55f99bfd781D04BBE15",[iK.BinanceSmartChainMainnet]:"0xEF770dFb6D5620977213f55f99bfd781D04BBE15",[iK.Polygon]:"0x28EdFcF0Be7E86b07493466e7631a213bDe8eEF2",[iK.Mumbai]:"0x0a01E11887f727D1b1Cd81251eeEE9BEE4262D07",[iK.Avalanche]:"0xEF770dFb6D5620977213f55f99bfd781D04BBE15",[iK.Optimism]:"0xEF770dFb6D5620977213f55f99bfd781D04BBE15",[iK.Arbitrum]:"0xEF770dFb6D5620977213f55f99bfd781D04BBE15"},i2="0x0000000000000000000000000000000000000000";async function i4(e,n,r,i,a,o,s){let f=a&&a.contractName,l=a&&a.version,u=a&&a.publisherAddress,c=a&&a.metadata;if((0,F.Z)(f||c,"Require contract name or metadata"),f&&i6.deploymentPresets[f])return i6.deploymentPresets[f];if("WETH9"===f){let r=iQ(iq,[],i),a=await iF(r,n),o="";return a||(o=iV(iq,[])),{name:f,type:e,transaction:{predictedAddress:r,to:i,data:o}}}if(!c){(0,F.Z)(f,"Require contract name"),u||(u=nw);let e=await nx(u,f,l,r,o,s);c=(await ng(e.metadataUri,r)).compilerMetadata}let d=await i3(c,n,r,i,a?.constructorParams,o,s),p=iQ(c.bytecode,d,i),h=await iF(p,n),y="";return h||(y=iV(c.bytecode,d)),{name:f,type:e,transaction:{predictedAddress:p,to:i,data:y},encodedArgs:d}}async function i3(e,n,r,i,a,o,s){let f=i1(e.abi),l=f.map(e=>"tuple[]"===e.type||"tuple"===e.type?O._R.from(e):e.type),u=await Promise.all(f.map(async f=>{if(a&&a[f.name])return a[f.name].type&&(0,F.Z)(a[f.name].type===f.type,`Provided type ${a[f.name].type} doesn't match the actual type ${f.type} from Abi`),a[f.name].value;if(f.name&&f.name.includes("nativeTokenWrapper"))return await i8(n,r,i,o,s);if(f.name&&f.name.includes("trustedForwarder")){if("Pack"===e.name)return i2;let a=await i4("infra",n,r,i,{contractName:"Forwarder"},o,s);return i6.deploymentPresets.Forwarder||(i6.deploymentPresets.Forwarder=a),a.transaction.predictedAddress}if(f.name&&f.name.includes("royaltyEngineAddress"))return i5[(await n.getNetwork()).chainId]||E.d;if(f.name&&f.name.includes("marketplaceV3Params")){let e=i5[(await n.getNetwork()).chainId]||E.d,f=await i8(n,r,i,o,s);return{extensions:a?a._extensions.value:[],royaltyEngineAddress:e,nativeTokenWrapper:f}}throw Error("Can't resolve constructor arguments")}));return P.$.encode(l,u)}async function i8(e,n,r,i,a){let o=iX((await e.getNetwork()).chainId).wrapped.address;if(o===E.d){let s=await i4("infra",e,n,r,{contractName:"WETH9"},i,a);i6.deploymentPresets.WETH9||(i6.deploymentPresets.WETH9=s),o=s.transaction.predictedAddress}return o}async function i9(e,n,r,i,a){return r&&""!==r||(r=await iH(e)),(await i4("infra",e,n,r,{contractName:"ForwarderEOAOnly"},i,a)).transaction.predictedAddress}async function i7(e,n,r,i,a){return r&&""!==r||(r=await iH(e)),(await i4("infra",e,n,r,{contractName:"Forwarder"},i,a)).transaction.predictedAddress}
305class ae extends Error{constructor(e){super(e?`Object with id ${e} NOT FOUND`:"NOT_FOUND")}}class at extends Error{constructor(e,n){super(`MISSING ROLE: ${e} does not have the '${n}' role`)}}class an extends Error{constructor(e){super(`DUPLICATE_LEAFS${e?` : ${e}`:""}`)}}class ar extends Error{constructor(e){super(`Auction already started with existing bid${e?`, id: ${e}`:""}`)}}class ai extends Error{constructor(e,n){super(`Could not find listing.${e?` marketplace address: ${e}`:""}${n?` listing id: ${n}`:""}`)}}class aa extends Error{constructor(e,n,r,i){super(`Incorrect listing type. Are you sure you're using the right method?.${e?` marketplace address: ${e}`:""}${n?` listing id: ${n}`:""}${i?` expected type: ${i}`:""}${r?` actual type: ${r}`:""}`)}}class ao extends Error{constructor(e,n){super(`Auction has not ended yet${e?`, id: ${e}`:""}${n?`, end time: ${n.toString()}`:""}`)}}class as extends Error{constructor(e){super(`This functionality is not available because the contract does not implement the '${e.name}' Extension. Learn how to unlock this functionality at https://portal.thirdweb.com/contracts/build/extensions `)}}class af extends Error{constructor(e,n){let r=` 306 307 308âââââââââââââââââââââ 309â TRANSACTION ERROR â 310âââââââââââââââââââââ 311 312`;if(r+=`Reason: ${e.reason} 313 314 315âââââââââââââââââââââââââââ 316â TRANSACTION INFORMATION â 317âââââââââââââââââââââââââââ 318`+au("from",e.from),e.to&&(r+=au("to",e.contractName?`${e.to} (${e.contractName})`:e.to)),r+=au("chain",`${e.network.name} (${e.network.chainId})`),e.rpcUrl)try{let n=new URL(e.rpcUrl);r+=au("rpc",n.hostname)}catch(e){}if(e.hash&&(r+=au("tx hash",e.hash)),e.value&&e.value.gt(0)&&(r+=au("value",`${L.formatEther(e.value)} ${iJ[e.network.chainId]?.symbol||""}`)),r+=au("data",`${e.data}`),e.method&&(r+=au("method",e.method)),e.sources){let n=e.sources.find(n=>n.source.includes(e.reason));if(n){let i=n.source.split("\n").map((e,n)=>`${n+1} ${e}`),a=i.findIndex(n=>n.includes(e.reason));i[a]+=" <-- REVERT";let o=i.slice(a-8,a+4);r+=` 319 320 321ââââââââââââââââââââââââ 322â SOLIDITY STACK TRACE â 323ââââââââââââââââââââââââ 324 325File: ${n.filename.replace("node_modules/","")} 326 327`+o.join("\n")}}super(r+=` 328 329 330âââââââââââââââââââââââ 331â DEBUGGING RESOURCES â 332âââââââââââââââââââââââ 333 334Need helping debugging? Visit our support site: https://thirdweb.com/support 335 336`),this._reason=e.reason,this._info=e,this._raw=n}get reason(){return this._reason}get raw(){return this._raw}get info(){return this._info}}function al(e){if(e.reason&&!e.reason.includes("cannot estimate gas"))return e.reason;if(e.error)return e.error;let n=e;return("object"==typeof e?n=JSON.stringify(e):"string"!=typeof e&&(n=e.toString()),n.length>5e3)?e.message||"":ac(/.*?"message":"([^"\\]*).*?/,n)||ac(/.*?"reason":"([^"\\]*).*?/,n)||e.message||""}function au(e,n){if(""===n)return n;let r=Array(10-e.length).fill(" ").join("");return n=n.includes("\n")?"\n\n "+n.split("\n").join(` 337 `):`${r}${n}`,` 338${e}:${n}`}function ac(e,n){let r=n.match(e)||[],i="";return r?.length>0&&(i+=r[1]),i}function ad(e,n){return!!e&&(e&&e.toString().includes(n)||e&&e.message&&e.message.toString().includes(n)||e&&e.error&&e.error.toString().includes(n))}let ap=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"}],ah=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"},{name:"chainid",type:"uint256"}],ay=[{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"uint256",name:"batchId",type:"uint256"}],name:"getNonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}],am={},ag={};async function ab(e,n,r){let i=r.join("|"),a=ag[i],o=Date.now()-a>=2e3;if(!(i in am)||o){let a=await e.functions[n](...r);Array.isArray(a)&&a.length>0?am[i]=A.O$.from(a[0]):am[i]=A.O$.from(a),ag[i]=Date.now()}let s=am[i];return am[i]=A.O$.from(am[i]).add(1),s}async function av(e,n,r,i){let a=e;e.originalSigner&&(a=e.originalSigner);let o=a?.provider;if(!o)throw Error("missing provider");let s=R.E.getPayload(n,r,i),f="",l=(await a.getAddress()).toLowerCase();if(o?.provider?.isWalletConnect)try{f=await o.send("eth_signTypedData_v4",[l,JSON.stringify(s)])}catch(e){if(e?.message?.includes("eth_signTypedData_v4"))f=await o.send("eth_signTypedData",[l,JSON.stringify(s)]);else throw e}else try{f=await a._signTypedData(n,r,i)}catch(e){if(e?.message?.includes("eth_signTypedData_v4"))f=await o.send("eth_signTypedData",[l,JSON.stringify(s)]);else try{await o.send("eth_signTypedData_v4",[l,JSON.stringify(s)])}catch(e){throw e}}return{payload:s,signature:k.joinSignature(k.splitSignature(f))}}let aw=[{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}],ax=[{constant:!0,inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{inputs:[],name:"getDomainSeperator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"}],aT=[{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"}],name:"getNonce",outputs:[{internalType:"uint256",name:"nonce",type:"uint256"}],stateMutability:"view",type:"function"}];async function aC(e,n){let r=new I.CH(n,aT,e);
338try{return await r.nonces(await e.getAddress())}catch(n){return await r.getNonce(await e.getAddress())}}async function aM(e,n){let r=new I.CH(n,ax,e);try{return await r.DOMAIN_SEPARATOR()}catch(e){try{return await r.getDomainSeperator()}catch(e){console.error("Error getting domain separator",e)}}}async function aA(e,n){return new I.CH(n,aw,e).name()}async function aE(e,n){let r=await aM(e,n.verifyingContract),i={name:n.name,version:n.version,verifyingContract:n.verifyingContract,salt:k.hexZeroPad(A.O$.from(n.chainId).toHexString(),32)};return R.E.hashDomain(i)===r?i:n}async function aI(e,n,r,i,a,o,s,f){let[l,u,c]=await Promise.all([aA(e,n),e.getChainId(),aC(e,n)]),d=await aE(e,{name:l,version:f||"1",chainId:u,verifyingContract:n}),p={owner:r,spender:i,value:a,nonce:s=s||c.toString(),deadline:o=o||z.Bz},{signature:h}=await av(e,d,{Permit:[{name:"owner",type:"address"},{name:"spender",type:"address"},{name:"value",type:"uint256"},{name:"nonce",type:"uint256"},{name:"deadline",type:"uint256"}]},p);return{message:p,signature:h}}let aS="0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",ak="0x5DBC7B840baa9daBcBe9D2492E45D7244B54A2A0",aN="0xc82BbE41f2cF04e3a8efA18F7032BDD7f6d98a81",aj={[iK.Mainnet]:{openzeppelinForwarder:aN,openzeppelinForwarderEOA:"0x76ce2CB1Ae48Fa067f4fb8c5f803111AE0B24BEA",biconomyForwarder:"0x84a0856b038eaAd1cC7E297cF34A7e72685A8693",twFactory:ak,twRegistry:aS,twBYOCRegistry:i2},[iK.Goerli]:{openzeppelinForwarder:"0x5001A14CA6163143316a7C614e30e6041033Ac20",openzeppelinForwarderEOA:"0xe73c50cB9c5B378627ff625BB6e6725A4A5D65d2",biconomyForwarder:"0xE041608922d06a4F26C0d4c27d8bCD01daf1f792",twFactory:ak,twRegistry:aS,twBYOCRegistry:"0xB1Bd9d7942A250BA2Dce27DD601F2ED4211A60C4"},[iK.Polygon]:{openzeppelinForwarder:aN,openzeppelinForwarderEOA:"0x4f247c69184ad61036EC2Bb3213b69F10FbEDe1F",biconomyForwarder:"0x86C80a8aa58e0A4fa09A69624c31Ab2a6CAD56b8",twFactory:ak,twRegistry:aS,twBYOCRegistry:"0x308473Be900F4185A56587dE54bDFF5E8f7a6AE7"},[iK.Mumbai]:{openzeppelinForwarder:aN,openzeppelinForwarderEOA:"0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250",biconomyForwarder:"0x9399BB24DBB5C4b782C70c2969F58716Ebbd6a3b",twFactory:ak,twRegistry:aS,twBYOCRegistry:"0x3F17972CB27506eb4a6a3D59659e0B57a43fd16C"},[iK.Avalanche]:{openzeppelinForwarder:aN,openzeppelinForwarderEOA:"0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250",biconomyForwarder:"0x64CD353384109423a966dCd3Aa30D884C9b2E057",twFactory:ak,twRegistry:aS,twBYOCRegistry:i2},[iK.AvalancheFujiTestnet]:{openzeppelinForwarder:aN,openzeppelinForwarderEOA:"0xe73c50cB9c5B378627ff625BB6e6725A4A5D65d2",biconomyForwarder:"0x6271Ca63D30507f2Dcbf99B52787032506D75BBF",twFactory:ak,twRegistry:aS,twBYOCRegistry:"0x3E6eE864f850F5e5A98bc950B68E181Cf4010F23"},[iK.Fantom]:{openzeppelinForwarder:aN,openzeppelinForwarderEOA:"0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250",biconomyForwarder:"0x64CD353384109423a966dCd3Aa30D884C9b2E057",twFactory:"0x97EA0Fcc552D5A8Fb5e9101316AAd0D62Ea0876B",twRegistry:aS,twBYOCRegistry:i2},[iK.FantomTestnet]:{openzeppelinForwarder:aN,openzeppelinForwarderEOA:"0x42D3048b595B6e1c28a588d70366CcC2AA4dB47b",biconomyForwarder:"0x69FB8Dca8067A5D38703b9e8b39cf2D51473E4b4",twFactory:ak,twRegistry:aS,twBYOCRegistry:"0x3E6eE864f850F5e5A98bc950B68E181Cf4010F23"},[iK.Arbitrum]:{openzeppelinForwarder:"0x4a8AC7f22DeD2CF923A51e4A1c67490bd8868add",openzeppelinForwarderEOA:"0x4f247c69184ad61036EC2Bb3213b69F10FbEDe1F",biconomyForwarder:"0xfe0fa3C06d03bDC7fb49c892BbB39113B534fB57",twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:aS,twBYOCRegistry:i2},[iK.ArbitrumGoerli]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x119704314Ef304EaAAE4b3c7C9ABd59272A28310",biconomyForwarder:i2,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:aS,twBYOCRegistry:i2},[iK.Optimism]:{openzeppelinForwarder:"0xd85da690EF288A6976DE0E85Fb2Aad512eBAfbf7",openzeppelinForwarderEOA:"0x7e80648EB2071E26937F9D42A513ccf4815fc702",biconomyForwarder:"0xefba8a2a82ec1fb1273806174f5e28fbb917cf95",twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:aS,twBYOCRegistry:i2}
338,[iK.OptimismGoerli]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x119704314Ef304EaAAE4b3c7C9ABd59272A28310",biconomyForwarder:i2,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:aS,twBYOCRegistry:i2},[iK.BinanceSmartChainMainnet]:{openzeppelinForwarder:"0x7C4717039B89d5859c4Fbb85EDB19A6E2ce61171",openzeppelinForwarderEOA:"0xE8dd2Ff0212F86d3197b4AfDC6dAC6ac47eb10aC",biconomyForwarder:"0x86C80a8aa58e0A4fa09A69624c31Ab2a6CAD56b8",twBYOCRegistry:i2,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:aS},[iK.BinanceSmartChainTestnet]:{openzeppelinForwarder:"0x44bE9D54B9C8b5e57a3325E8Ec9154640e7c6955",openzeppelinForwarderEOA:"0x7e80648EB2071E26937F9D42A513ccf4815fc702",biconomyForwarder:"0x61456BF1715C1415730076BB79ae118E806E74d2",twBYOCRegistry:i2,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:aS},[iK.Hardhat]:{openzeppelinForwarder:i2,openzeppelinForwarderEOA:i2,biconomyForwarder:i2,twFactory:i2,twRegistry:i2,twBYOCRegistry:i2},[iK.Localhost]:{openzeppelinForwarder:i2,openzeppelinForwarderEOA:i2,biconomyForwarder:i2,twFactory:i2,twRegistry:i2,twBYOCRegistry:i2}};function aD(e,n){return e===iK.Hardhat||e===iK.Localhost?"twFactory"===n?e5("factoryAddress"):"twRegistry"===n?e5("registryAddress"):i2:aj[e]?.[n]}let a_=((g={}).Transaction="transaction",g.Signature="signature",g),aO=B.z.object({gasLimit:t_.optional(),gasPrice:t_.optional(),maxFeePerGas:t_.optional(),maxPriorityFeePerGas:t_.optional(),nonce:t_.optional(),value:t_.optional(),blockTag:B.z.union([B.z.string(),B.z.number()]).optional(),from:ty.optional(),type:B.z.number().optional()}).strict();class aP extends e0.Z{constructor(e,n){super();try{this.options=te.parse(n)}catch(e){console.error("invalid sdk options object passed, falling back to default options",e),this.options=te.parse({})}let[r,i]=tu(e,this.options);this.network=e,this.signer=r,this.provider=i}updateSignerOrProvider(e){let[n,r]=tu(e,this.options);this.network=e,this.signer=n,this.provider=r}isReadOnly(){return!e4(this.signer)}getSigner(){return this.signer}getProvider(){return this.provider}getSignerOrProvider(){return this.getSigner()||this.getProvider()}}class aL extends aP{isValidContract=!1;customOverrides=()=>({});constructor(e,n,r,i,a){super(e,i),this.abi=tX.parse(r),this.address=n,this.writeContract=new I.CH(n,r,this.getSignerOrProvider()),this.readContract=this.writeContract.connect(this.getProvider()),this.storage=a,this.functions=ix(this.abi),this.extensions=iC(this.abi)}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.writeContract=this.writeContract.connect(this.getSignerOrProvider()),this.readContract=this.writeContract.connect(this.getProvider())}updateAbi(e){this.writeContract=new I.CH(this.address,e,this.getSignerOrProvider()),this.readContract=this.writeContract.connect(this.getProvider()),this.abi=tX.parse(e),this.functions=ix(this.abi),this.extensions=iC(this.abi)}async getChainID(){let e=this.getProvider(),{chainId:n}=await e.getNetwork();return n}async getSignerAddress(){let e=this.getSigner();if(!e)throw Error("This action requires a connected wallet to sign the transaction. Please pass a valid signer to the SDK.");return await e.getAddress()}callStatic(){return this.writeContract.callStatic}async getCallOverrides(){return{}}emitTransactionEvent(e,n){this.emit(a_.Transaction,{status:e,transactionHash:n})}async multiCall(e){return this.sendTransaction("multicall",[e])}async estimateGas(e,n){return this.writeContract.estimateGas[e](...n)}async populateTransaction(e,n){return this.writeContract.populateTransaction[e](...n)}withTransactionOverride(e){this.customOverrides=e}async read(e,n){let r=this.functions.filter(n=>n.name===e);if(!r.length)throw Error(`Function "${e.toString()}" not found in contract. Check your dashboard for the list of functions available`);let i=r.find(r=>r.name===e&&r.inputs.length===n.length);if(!i)throw Error(`Function "${e.toString()}" requires ${r[0].inputs.length} arguments, but ${n.length} were provided. 339Expected function signature: ${r[0].signature}`);let a=`${e.toString()}(${i.inputs.map(e=>e.type).join()})`,o=a in this.readContract.functions?a:e;if("view"===i.stateMutability||"pure"===i.stateMutability)return await this.readContract[o.toString()](...n);throw Error("Cannot call a write function with read()")}async call(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,i=r?await aO.parseAsync(r):void 0,a=ix(tX.parse(this.abi)).filter(n=>n.name===e);if(!a.length)throw Error(`Function "${e}" not found in contract. Check your dashboard for the list of functions available`);let o=a.find(r=>r.name===e&&r.inputs.length===n.length);if(!o)throw Error(`Function "${e}" requires ${a[0].inputs.length} arguments, but ${n.length} were provided. 340Expected function signature: ${a[0].signature}`);let s=`${e}(${o.inputs.map(e=>e.type).join()})`,f=s in this.readContract.functions?s:e;return"view"===o.stateMutability||"pure"===o.stateMutability?i?this.readContract[f](...n,i):this.readContract[f](...n):{receipt:await this.sendTransaction(f,n,i)}}async sendTransaction(e,n,r){if(r||(r=await this.getCallOverrides()),r={...r,...this.customOverrides()},this.customOverrides=()=>({}),this.options?.gasless&&("openzeppelin"in this.options.gasless||"biconomy"in this.options.gasless||"engine"in this.options.gasless)){if("multicall"===e&&Array.isArray(n[0])&&n[0].length>
3400){let e=await this.getSignerAddress();n[0]=n[0].map(n=>_.pack(["bytes","address"],[n,e]))}let i=this.getProvider(),a=await this.sendGaslessTransaction(e,n,r);this.emitTransactionEvent("submitted",a);let o=await i.waitForTransaction(a);return this.emitTransactionEvent("completed",a),o}{let i;if(!this.isValidContract){let e=await this.getProvider().getCode(this.address);if(this.isValidContract="0x"!==e,!this.isValidContract)throw Error("The address you're trying to send a transaction to is not a smart contract. Make sure you are on the correct network and the contract address is correct")}let a=await this.sendTransactionByFunction(e,n,r);this.emitTransactionEvent("submitted",a.hash);try{i=await a.wait()}catch(i){try{await this.writeContract.callStatic[e](...n,...r.value?[{value:r.value}]:[])}catch(i){throw await this.formatError(i,e,n,r)}throw await this.formatError(i,e,n,r)}return this.emitTransactionEvent("completed",a.hash),i}}async sendTransactionByFunction(e,n,r){let i=this.writeContract.functions[e];if(!i)throw Error(`invalid function: "${e.toString()}"`);if(!r.gasLimit)try{r.gasLimit=await this.writeContract.estimateGas[e](...n,r)}catch(i){try{await this.writeContract.callStatic[e](...n,...r.value?[{value:r.value}]:[])}catch(i){throw await this.formatError(i,e,n,r)}}try{return await i(...n,r)}catch(i){throw await this.formatError(i,e,n,r)}}async formatError(e,n,r,i){let a;let o=this.getProvider(),s=await o.getNetwork(),f=await (i.from||this.get
340SignerAddress()),l=this.address,u=this.readContract.interface.encodeFunctionData(n,r),c=A.O$.from(i.value||0),d=o.connection?.url,p=this.readContract.interface.getFunction(n),h=r.map(e=>JSON.stringify(e).length<=80?JSON.stringify(e):JSON.stringify(e,void 0,2)),y=h.join(", ").length<=80?h.join(", "):"\n"+h.map(e=>" "+e.split("\n").join("\n ")).join(",\n")+"\n",m=`${p.name}(${y})`,g=e.transactionHash||e.transaction?.hash||e.receipt?.transactionHash,b=al(e);try{let e=(await o.getNetwork()).chainId,n=iE(this.address,e);n?.name&&(a=n.name)}catch(e){}return new af({reason:b,from:f,to:l,method:m,data:u,network:s,rpcUrl:d,value:c,hash:g,contractName:a},e)}async sendGaslessTransaction(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,i=this.getSigner();(0,F.Z)(i,"Cannot execute gasless transaction without valid signer");let a=await this.getChainID(),o=await this.getSignerAddress(),s=this.writeContract.address,f=r?.value||0;if(A.O$.from(f).gt(0))throw Error("Cannot send native token value with gasless transaction");let l=this.writeContract.interface.encodeFunctionData(e,n),u=A.O$.from(0);try{u=(await this.readContract.estimateGas[e](...n)).mul(2)}catch(e){}u.lt(1e5)&&(u=A.O$.from(5e5)),r.gasLimit&&A.O$.from(r.gasLimit).gt(u)&&(u=A.O$.from(r.gasLimit));let c={from:o,to:s,data:l,chainId:a,gasLimit:u,functionName:e.toString(),functionArgs:n,callOverrides:r};return await this.defaultGaslessSendFunction(c)}async signTypedData(e,n,r,i){this.emit(a_.Signature,{status:"submitted",message:i,signature:""});let{signature:a}=await av(e,n,r,i);return this.emit(a_.Signature,{status:"completed",message:i,signature:a}),a}parseLogs(e,n){if(!n||0===n.length)return[];let r=this.writeContract.interface.getEventTopic(e);return n.filter(e=>e.topics.indexOf(r)>=0).map(e=>this.writeContract.interface.parseLog(e))}async defaultGaslessSendFunction(e){return this.options.gasless&&"biconomy"in this.options.gasless?this.biconomySendFunction(e):this.options.gasless&&"openzeppelin"in this.options.gasless?this.defenderSendFunction(e):this.engineSendFunction(e)}async engineSendFunction(e){(0,F.Z)(this.options.gasless&&"engine"in this.options.gasless,"calling engine gasless transaction without engine config in the SDK options");let n=await this.enginePrepareRequest(e),r=await fetch(this.options.gasless.engine.relayerUrl,{...n,headers:{"Content-Type":"application/json"}}),i=await r.json();if(i.error)throw Error(i.error?.message||JSON.stringify(i.error));let a=i.result.queueId,o=this.options.gasless.engine.relayerUrl.split("/relayer/")[0],s=Date.now();for(;;){let e=await fetch(`${o}/transaction/status/${a}`),n=await e.json();if(n.result.transactionHash)return n.result.transactionHash;if(Date.now()-s>3e4)throw Error("timeout");await new Promise(e=>setTimeout(e,2e3))}}async enginePrepareRequest(e){(0,F.Z)(this.options.gasless&&"engine"in this.options.gasless,"calling engine gasless transaction without openzeppelin config in the SDK options");let n=this.getSigner(),i=this.getProvider(),a=this.storage;(0,F.Z)(n,"signer is not set");try{let{abi:r}=await iI(e.to,i,a),o=(await i.getNetwork()).chainId,s=new aL(n,e.to,r,{},a);if(r.find(e=>"executeMetaTransaction"===e.name)){let r={name:await s.call("name",[]),version:"1",salt:"0x"+o.toString(16).padStart(64,"0"),verifyingContract:e.to},i={nonce:await s.call("getNonce",[e.from]),from:e.from,functionSignature:e.data},{signature:a}=await av(n,r,{MetaTransaction:[{name:"nonce",type:"uint256"},{name:"from",type:"address"},{name:"functionSignature",type:"bytes"}]},i);return{method:"POST",body:JSON.stringify({type:"execute-meta-transaction",request:{from:e.from,to:e.to,data:e.data},signature:a})}}}catch{}if("approve"===e.functionName&&2===e.functionArgs.length){let r=e.functionArgs[0],i=e.functionArgs[1],{message:a,signature:o}=await aI(n,e.to,e.from,r,i,this.options.gasless.engine.domainSeparatorVersion);return{method:"POST",body:JSON.stringify({type:"permit",request:{to:e.to,owner:a.owner,spender:a.spender,value:A.O$.from(a.value).toString(),nonce:A.O$.from(a.nonce).toString(),deadline:A.O$.from(a.deadline).toString()},signature:o})}}{let o,s,f;let l=this.options.gasless.engine.relayerForwarderAddress||aj[e.chainId]?.openzeppelinForwarder||await i7(i,a),u=(await r.e(62555).then(r.t.bind(r,62555,19))).default,c=new I.CH(l,u,i),d=await ab(c,"getNonce",[e.from]);this.options.gasless.experimentalChainlessSupport?(o={name:"GSNv2 Forwarder",version:"0.0.1",verifyingContract:l},s={ForwardRequest:ah},f={from:e.from,to:e.to,value:A.O$.from(0).toString(),gas:A.O$.from(e.gasLim
340it).toString(),nonce:A.O$.from(d).toString(),data:e.data,chainid:A.O$.from(e.chainId).toString()}):(o={name:this.options.gasless.engine.domainName,version:this.options.gasless.engine.domainVersion,chainId:e.chainId,verifyingContract:l},s={ForwardRequest:ap},f={from:e.from,to:e.to,value:A.O$.from(0).toString(),gas:A.O$.from(e.gasLimit).toString(),nonce:A.O$.from(d).toString(),data:e.data});let{signature:p}=await av(n,o,s,f);return{method:"POST",body:JSON.stringify({type:"forward",request:f,signature:p,forwarderAddress:l})}}}async biconomySendFunction(e){(0,F.Z)(this.options.gasless&&"biconomy"in this.options.gasless,"calling biconomySendFunction without biconomy");let n=this.getSigner(),r=this.getProvider();(0,F.Z)(n&&r,"signer and provider must be set");let i=new I.CH(aD(e.chainId,"biconomyForwarder"),ay,r),a=await ab(i,"getNonce",[e.from,0]),o={from:e.from,to:e.to,token:E.d,txGas:e.gasLimit.toNumber(),tokenGasPrice:"0",batchId:0,batchNonce:a.toNumber(),deadline:Math.floor(Date.now()/1e3+(this.options?.gasless&&"biconomy"in this.options.gasless&&this.options.gasless.biconomy?.deadlineSeconds||3600)),data:e.data},s=k.arrayify(_.keccak256(["address","address","address","uint256","uint256","uint256","uint256","uint256","bytes32"],[o.from,o.to,o.token,o.txGas,o.tokenGasPrice,o.batchId,o.batchNonce,o.deadline,N.keccak256(o.data)]));this.emit(a_.Signature,{status:"submitted",message:s,signature:""});let f=await n.signMessage(s);this.emit(a_.Signature,{status:"completed",message:s,signature:f});let l=await fetch("https://api.biconomy.io/api/v2/meta-tx/native",{method:"POST",body:JSON.stringify({from:e.from,apiId:this.options.gasless.biconomy.apiId,params:[o,f],to:e.to,gasLimit:e.gasLimit.toHexString()}),headers:{"x-api-key":this.options.gasless.biconomy.apiKey,"Content-Type":"application/json;charset=utf-8"}});if(l.ok){let e=await l.json();if(!e.txHash)throw Error(`relay transaction failed: ${e.log}`);return e.txHash}throw Error(`relay transaction failed with status: ${l.status} (${l.statusText})`)}async defenderSendFunction(e){let n,i,a,o;(0,F.Z)(this.options.gasless&&"openzeppelin"in this.options.gasless,"calling openzeppelin gasless transaction without openzeppelin config in the SDK options");let s=this.getSigner(),f=this.getProvider();(0,F.Z)(s,"provider is not set"),(0,F.Z)(f,"provider is not set");let l=(await r.e(62555).then(r.t.bind(r,62555,19))).default,u=this.options.gasless.openzeppelin.relayerForwarderAddress||(this.options.gasless.openzeppelin.useEOAForwarder?aj[e.chainId]?.openzeppelinForwarderEOA||await i9(this.getProvider(),this.storage,"",this.options.clientId,this.options.secretKey):aj[e.chainId]?.openzeppelinForwarder||await i7(this.getProvider(),this.storage,"",this.options.clientId,this.options.secretKey)),c=new I.CH(u,l,f),d=await ab(c,"getNonce",[e.from]);if(this.options.gasless.experimentalChainlessSupport?(n={name:"GSNv2 Forwarder",version:"0.0.1",verifyingContract:u},i={ForwardRequest:ah},a={from:e.from,to:e.to,value:A.O$.from(0).toString(),gas:A.O$.from(e.gasLimit).toString(),nonce:A.O$.from(d).toString(),data:e.data,chainid:A.O$.from(e.chainId).toString()}):(n={name:this.options.gasless.openzeppelin.domainName,version:this.options.gasless.openzeppelin.domainVersion,chainId:e.chainId,verifyingContract:u},i={ForwardRequest:ap},a={from:e.from,to:e.to,value:A.O$.from(0).toString(),gas:A.O$.from(e.gasLimit).toString(),nonce:A.O$.from(d).toString(),data:e.data}),this.emit(a_.Signature,{status:"submitted",message:a,signature:""}),"approve"===e.functionName&&2===e.functionArgs.length){let n=e.functionArgs[0],r=e.functionArgs[1],{message:i,signature:f}=await aI(s,this.writeContract.address,e.from,n,r,this.options.gasless.openzeppelin.domainSeparatorVersion),{r:l,s:u,v:c}=k.splitSignature(f);a={to:this.address,owner:i.owner,spender:i.spender,value:A.O$.from(i.value).toString(),nonce:A.O$.from(i.nonce).toString(),deadline:A.O$.from(i.deadline).toString(),r:l,s:u,v:c},o=f}else{let{signature:e}=await av(s,n,i,a);o=e}let p="forward";a?.owner&&(p="permit");let h=JSON.stringify({request:a,signature:o,forwarderAddress:u,type:p});
340this.emit(a_.Signature,{status:"completed",message:a,signature:o});let y=await fetch(this.options.gasless.openzeppelin.relayerUrl,{method:"POST",body:h});if(y.ok){let e=await y.json();if(!e.result)throw Error(`Relay transaction failed: ${e.message}`);return JSON.parse(e.result).txHash}throw Error(`relay transaction failed with status: ${y.status} (${y.statusText})`)}}function aR(e,n,r){return aB(r,n)}function az(e,n,r){return aB(r,n)}function aB(e,n){let r=Object.keys(e);if(!r.includes(n)){let i=!1;for(let a of r)if(i=aB(e[a].features,n))break;return i}return e[n].enabled}async function aU(e,n,r){return(await Promise.all(e.map(e=>iI(e,n,r).catch(n=>(console.error(`Failed to fetch plug-in for ${e}`,n),{abi:[]}))))).map(e=>e.abi)}async function aF(e,n,r,i,a){let o=[];try{var s,f,l,u,c,d,p,h,y,m,g,b;let v=iC(n),w=(s=0,f="PluginRouter",l=v,aB(l,f)),x=(u=0,c="DynamicContract",d=v,aB(d,c)),T=(p=0,h="ModularCore",y=v,aB(y,h)),C=(m=0,g="Fallback",b=v,aB(b,g));if(x){let n=new aL(r,e,rX,i,a),s=(await n.call("getAllExtensions")).map(e=>e.metadata.implementation);o=await aU(s,r,a)}else if(T){let n=new aL(r,e,r0,i,a),s=(await n.call("getInstalledExtensions")).map(e=>e.implementation);o=await aU(s,r,a)}else if(w){let n=new aL(r,e,rJ,i,a),s=(await n.call("getAllPlugins")).map(e=>e.pluginAddress),f=Array.from(new Set(s));o=await aU(f,r,a)}else if(C){let n=new I.CH(e,["function facets() external view returns (tuple(address,bytes4[])[])"],r),i=(await n.facets()).map(e=>e[0]);o=await aU(i,r,a)}}catch(e){}return o.length>0?ri([...o],n):n}let aZ={admin:"",transfer:"TRANSFER_ROLE",minter:"MINTER_ROLE",pauser:"PAUSER_ROLE",lister:"LISTER_ROLE",asset:"ASSET_ROLE",unwrap:"UNWRAP_ROLE",factory:"FACTORY_ROLE",signer:"SIGNER_ROLE",metadata:"METADATA_ROLE",revoke:"REVOKE_ROLE",migration:"MIGRATION_ROLE"},aW=Object.keys(aZ);function aH(e){return"admin"===e?k.hexZeroPad([0],32):D.id(aZ[e])}let aG=tP.merge(tR).merge(tZ).merge(tF),aq=tL.merge(tR).merge(tZ).merge(tF),aY={deploy:aG.merge(tB).merge(tz).merge(tU),output:aq,input:aG},aV=tP.merge(tZ).merge(tF),aQ=tL.merge(tZ).merge(tF),aK={deploy:aV.merge(tB).merge(tz).merge(tU),output:aQ,input:aV},a$=tP.merge(tR).merge(tZ).merge(tF),aJ=tL.merge(tR).merge(tZ).merge(tF),aX={deploy:a$.merge(tB).merge(tz).merge(tU),output:aJ,input:a$},a0={deploy:tP.merge(tB).merge(tU),output:tL,input:tP},a1=tP.merge(tR).merge(tF),a6=tL.merge(tR).merge(tF),a5={deploy:a1.merge(tU),output:a6,input:a1},a2=tP.merge(tR).merge(tF),a4=tL.merge(tR).merge(tF),a3={deploy:a2.merge(tB).merge(tU),output:a4,input:a2},a8=B.z.object({address:ty,sharesBps:tC.gt(0,"Shares must be greater than 0")}),a9=a8.extend({address:ty,sharesBps:tC}),a7=tP.extend({recipients:B.z.array(a8).default([]).superRefine((e,n)=>{let r={},i=0;for(let a=0;a<e.length;a++){let o=e[a];r[o.address]&&n.addIssue({code:B.z.ZodIssueCode.custom,message:"Duplicate address.",path:[a,"address"]}),r[o.address]=!0,(i+=o.sharesBps)>1e4&&n.addIssue({code:B.z.ZodIssueCode.custom,message:"Total shares cannot go over 100%.",path:[a,"sharesBps"]})}1e4!==i&&n.addIssue({code:B.z.ZodIssueCode.custom,message:`Total shares need to add up to 100%. Total shares are currently ${i/100}%`,path:[]})})}),oe=tL.extend({recipients:B.z.array(a9)}),ot={deploy:a7.merge(a7).merge(tU),output:oe,input:a7},on=tP.merge(tR).merge(tF),or=tL.merge(tR).merge(tF),oi={deploy:on.merge(tB).merge(tz).merge(tU),output:or,input:on},oa=tP.merge(tF),oo=tL.merge(tF),os={deploy:oa.merge(tB).merge(tz).merge(tU),output:oo,input:oa},of=tP.merge(tR).merge(tF),ol=tL.merge(tR).merge(tF),ou={deploy:of.merge(tB).merge(tz).merge(tU),output:ol,input:of},oc=B.z.object({voting_delay_in_blocks:B.z.number().min(0).default(0),voting_period_in_blocks:B.z.number().min(1).default(1),voting_token_address:ty,voting_quorum_fraction:tM.default(0),proposal_token_threshold:t_.default(1)}),od=oc.extend({proposal_token_threshold:tD}),op=tP.merge(oc),oh=tL.merge(od),oy={deploy:op.merge(tU),output:oh,input:op},om=["admin"],og=["admin","minter","transfer","metadata"],ob=["admin","lister","asset"],ov=["admin","minter","asset","transfer"],ow=["admin","transfer"],ox=["admin","transfer","minter","unwrap","asset"],oT="vote",oC="token",oM="edition-drop",oA="edition",oE="marketplace",oI="marketplace-v3",oS="multiwrap",ok="nft-collection",oN="nft-drop",oj="pack",oD="signature-drop",o_="split",oO="token-drop",oP={name:"DropERC1155",contractType:oM,schema:aY,roles:og,initialize:async function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];let[a,o,s,f]=n,[,l]=tu(a,f),[u,c,d]=await Promise.all([oP.getAbi(o,l,s),Promise.all([r.e(82123),r.e(14611),r.e(88309),r.e(91202),r.e(18946)]).then(r.bind(r,18946)),l.getNetwork()]);return new c.EditionDrop(a,o,s,f,u,d.chainId)},getAbi:async(e,n,i)=>{let a=await iN(e,n,i);if(a)return a;let o=await oV(e,n);return!o||o.version>
3402?(await r.e(50044).then(r.t.bind(r,50044,19))).default:(await r.e(52876).then(r.t.bind(r,52876,19))).default}},oL={name:"TokenERC1155",contractType:oA,schema:oi,roles:og,initialize:async function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];let[a,o,s,f]=n,[,l]=tu(a,f),[u,c,d]=await Promise.all([oL.getAbi(o,l,s),Promise.all([r.e(82123),r.e(14611),r.e(88309),r.e(91202),r.e(59133)]).then(r.bind(r,59133)),l.getNetwork()]);return new c.Edition(a,o,s,f,u,d.chainId)},getAbi:async(e,n,i)=>await iN(e,n,i)||(await r.e(22610).then(r.t.bind(r,22610,19))).default},oR={name:"Marketplace",contractType:oE,schema:a0,roles:ob,initialize:async function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];let[a,o,s,f]=n,[,l]=tu(a,f),[u,c,d]=await Promise.all([oR.getAbi(o,l,s),Promise.all([r.e(82123),r.e(97466)]).then(r.bind(r,97466)),l.getNetwork()]);return new c.Marketplace(a,o,s,f,u,d.chainId)},getAbi:async(e,n,i)=>await iN(e,n,i)||(await r.e(94247).then(r.t.bind(r,94247,19))).default},oz={name:"MarketplaceV3",contractType:oI,schema:a0,roles:ob,initialize:async function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];let[a,o,s,f]=n,[,l]=tu(a,f),[u,c,d]=await Promise.all([oz.getAbi(o,l,s,f),Promise.all([r.e(82123),r.e(1343),r.e(29253)]).then(r.bind(r,59750)),l.getNetwork()]);return new c.MarketplaceV3(a,o,s,f,u,d.chainId)},getAbi:async(e,n,i,a)=>{let o=(await n.getNetwork()).chainId;if(280===o||300===o||324===o||302===o){let e=(await nx(nw,"MarketplaceV3","latest",i,a?.clientId,a?.secretKey)).metadataUri;return await ij(e,i)}let s=await iN(e,n,i);if(s)return await aF(e,s,n,{},i);let f=(await r.e(63792).then(r.t.bind(r,63792,19))).default;return await aF(e,tX.parse(f||[]),n,{},i)}},oB={name:"Multiwrap",contractType:oS,schema:a5,roles:ox,initialize:async function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];let[a,o,s,f]=n,[,l]=tu(a,f),[u,c,d]=await Promise.all([oB.getAbi(o,l,s),Promise.all([r.e(82123),r.e(14611),r.e(7681),r.e(88309),r.e(94913),r.e(15406)]).then(r.bind(r,15406)),l.getNetwork()]);return new c.Multiwrap(a,o,s,f,u,d.chainId)},getAbi:async(e,n,i)=>await iN(e,n,i)||(await r.e(86164).then(r.t.bind(r,86164,19))).default},oU={name:"TokenERC721",contractType:ok,schema:ou,roles:og,initialize:async function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];let[a,o,s,f]=n,[,l]=tu(a,f),[u,c,d]=await Promise.all([oU.getAbi(o,l,s),Promise.all([r.e(82123),r.e(14611),r.e(7681),r.e(88309),r.e(94913),r.e(88578)]).then(r.bind(r,88578)),l.getNetwork()]);return new c.NFTCollection(a,o,s,f,u,d.chainId)},getAbi:async(e,n,i)=>await iN(e,n,i)||(await r.e(88777).then(r.t.bind(r,88777,19))).default},oF={name:"DropERC721",contractType:oN,schema:aX,roles:og,initialize:async function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];let[a,o,s,f]=n,[,l]=tu(a,f),[u,c,d]=await Promise.all([oF.getAbi(o,l,s),Promise.all([r.e(82123),r.e(14611),r.e(7681),r.e(88309),r.e(94913),r.e(51574)]).then(r.bind(r,51574)),l.getNetwork()]);return new c.NFTDrop(a,o,s,f,u,d.chainId)},getAbi:async(e,n,i)=>{let a=await iN(e,n,i);if(a)return a;let o=await oV(e,n);return!o||o.version>3?(await r.e(88110).then(r.t.bind(r,88110,19))).default:(await r.e(42328).then(r.t.bind(r,42328,19))).default}},oZ={name:"Pack",contractType:oj,schema:a3,roles:ov,initialize:async function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];let[a,o,s,f]=n,[,l]=tu(a,f),[u,c,d]=await Promise.all([oZ.getAbi(o,l,s),Promise.all([r.e(82123),r.e(14611),r.e(7681),r.e(88309),r.e(91202),r.e(27715),r.e(37738)]).then(r.bind(r,37738)),l.getNetwork()]);return new c.Pack(a,o,s,f,u,d.chainId)},getAbi:async(e,n,i)=>await iN(e,n,i)||tX.parse((await r.e(65236).then(r.t.bind(r,65236,19))).default||[])},oW={name:"SignatureDrop",contractType:oD,schema:aX,roles:og,initialize:async function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];let[a,o,s,f]=n,[,l]=tu(a,f),[u,c,d]=await Promise.all([oW.getAbi(o,l,s),Promise.all([r.e(82123),r.e(14611),r.e(7681),r.e(88309),r.e(94913),r.e(97292)]).then(r.bind(r,97292)),l.getNetwork()]);return new c.SignatureDrop(a,o,s,f,u,d.chainId)},getAbi:async(e,n,i)=>{let a=await iN(e,n,i);if(a)return a;let o=await oV(e,n);return!o||o.version>4?(await r.e(33199).then(r.t.bind(r,33199,19))).default:(await r.e(51119).then(r.t.bind(r,51119,19))).default}},oH={name:"Split",contractType:o_,schema:ot,roles:om,initialize:async function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];let[a,o,s,f]=n,[,l]=tu(a,f),[u,c,d]=await Promise.all([oH.getAbi(o,l,s),Promise.all([r.e(82123),r.e(56497)]).then(r.bind(r,56497)),l.getNetwork()]);return new c.Split(a,o,s,f,u,d.chainId)},getAbi:async(e,n,i)=>await iN(e,n,i)||(await r.e(64506).then(r.t.bind(r,64506,19))).default},oG={name:"DropERC20",contractType:oO,schema:aK,roles:ow,initialize:async function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];let[a,o,s,f]=n,[,l]=tu(a,f),[u,c,d]=await Promise.all([oG.getAbi(o,l,s),Promise.all([r.e(82123),r.e(14611),r.e(7681),r.e(27715),r.e(65300)]).then(r.bind(r,65300)),l.getNetwork()]);return new c.TokenDrop(a,o,s,f,u,d.chainId)},getAbi:async(e,n,i)=>{let a=await iN(e,n,i);if(a)return a;let o=await oV(e,n);return!o||o.version>
3402?(await r.e(37891).then(r.t.bind(r,37891,19))).default:(await r.e(23565).then(r.t.bind(r,23565,19))).default}},oq={name:"TokenERC20",contractType:oC,schema:os,roles:og,initialize:async function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];let[a,o,s,f]=n,[,l]=tu(a,f),[u,c,d]=await Promise.all([oq.getAbi(o,l,s),Promise.all([r.e(82123),r.e(14611),r.e(7681),r.e(27715),r.e(25143)]).then(r.bind(r,25143)),l.getNetwork()]);return new c.Token(a,o,s,f,u,d.chainId)},getAbi:async(e,n,i)=>await iN(e,n,i)||(await r.e(83028).then(r.t.bind(r,83028,19))).default},oY={name:"VoteERC20",contractType:oT,schema:oy,roles:[],initialize:async function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];let[a,o,s,f]=n,[,l]=tu(a,f),[u,c,d]=await Promise.all([oY.getAbi(o,l,s),r.e(1838).then(r.bind(r,1838)),l.getNetwork()]);return new c.Vote(a,o,s,f,u,d.chainId)},getAbi:async(e,n,i)=>await iN(e,n,i)||(await r.e(59695).then(r.t.bind(r,59695,19))).default};async function oV(e,n){try{return await nT(e,n)}catch(e){return}}let oQ={[oM]:oP,[oA]:oL,[oE]:oR,[oI]:oz,[oS]:oB,[ok]:oU,[oN]:oF,[oj]:oZ,[oD]:oW,[o_]:oH,[oO]:oG,[oC]:oq,[oT]:oY},oK={[oM]:"ipfs://QmNm3wRzpKYWo1SRtJfgfxtvudp5p2nXD6EttcsQJHwTmk",[oA]:"",[oE]:"ipfs://QmbAgC8YwY36n8H2kuvSWsRisxDZ15QZw3xGZyk9aDvcv7/marketplace.html",[oI]:"ipfs://QmbAgC8YwY36n8H2kuvSWsRisxDZ15QZw3xGZyk9aDvcv7/marketplace-v3.html",[oS]:"",[ok]:"",[oN]:"ipfs://QmZptmVipc6SGFbKAyXcxGgohzTwYRXZ9LauRX5ite1xDK",[oj]:"",[oD]:"ipfs://QmZptmVipc6SGFbKAyXcxGgohzTwYRXZ9LauRX5ite1xDK",[o_]:"",[oO]:"ipfs://QmbAgC8YwY36n8H2kuvSWsRisxDZ15QZw3xGZyk9aDvcv7/erc20.html",[oC]:"",[oT]:""},o$={name:"SmartContract",contractType:"custom",schema:{},roles:aW},oJ={...oQ,[o$.contractType]:o$};function oX(e){return Object.values(oJ).find(n=>n.name===e)?.contractType||"custom"}function o0(e){return Object.values(oJ).find(n=>n.contractType===e)?.name}},99979:function(e,n,r){"use strict";r.d(n,{n:function(){return s}});var i=r(2515),a=r(61744),o=r(43277);async function s(e,n,r){let s=await (0,o.f)(e,r);return a.parseUnits(i.cw.parse(n),s.decimals)}},9086:function(e,n,r){"use strict";r.d(n,{L:function(){return K},T:function(){return ey},U:function(){return $},c:function(){return z}});var i=r(2515),a=r(40721),o=r(65815),s=r(31886),f=r(9279),l=r(38776),u=r(81763),c=r(23437);async function d(e,n){let r=await (0,i.a9)(e,n);return(0,i.a1)(r.abi)}async function p(e,n){let r=await (0,i.a9)(e,n);return(0,i.a2)(r.abi,r.metadata)}class h extends i.cr{constructor(e,n,r){super(e,n),this.storage=r,this.publisher=new i.cs(e,(0,i.aQ)(),o,n,r)}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.publisher.updateSignerOrProvider(e)}async extractConstructorParams(e){return d(e,this.storage)}async extractFunctions(e){return p(e,this.storage)}async fetchCompilerMetadataFromPredeployURI(e){return(0,i.a9)(e,this.storage)}async fetchPrePublishMetadata(e,n){let r=await (0,i.a9)(e,this.storage),a=n?await this.getLatest(n,r.name):void 0;return{preDeployMetadata:r,latestPublishedContractMetadata:a?await this.fetchPublishedContractInfo(a):void 0}}async fetchCompilerMetadataFromAddress(e){let n=await (0,i.aL)(e);return(0,i.K)(n,this.getProvider(),this.storage,this.options)}async fetchPublishedContractInfo(e){return{name:e.id,publishedTimestamp:e.timestamp,publishedMetadata:await this.fetchFullPublishMetadata(e.metadataUri)}}async fetchFullPublishMetadata(e){return(0,i.aa)(e,this.storage)}async resolvePublishMetadataFromCompilerMetadata(e){let n=await this.publisher.read("getPublishedUriFromCompilerUri",[e]);if(0===n.length)throw Error(`Could not resolve published metadata URI from ${e}`);return await Promise.all(n.filter(e=>e.length>0).map(e=>this.fetchFullPublishMetadata(e)))}async resolveContractUriFromAddress(e){let n=await (0,i.aL)(e),r=await (0,i.a4)(n,this.getProvider());return(0,l.Z)(r,"Could not resolve contract URI from address"),r}async fetchContractSourcesFromAddress(e){let n=await (0,i.aL)(e),r=await this.fetchCompilerMetadataFromAddress(n);return await (0,u.f)(r,this.storage)}async fetchContractAbiFromAddress(e){let n=await (0,i.aL)(e);return(await (0,i.K)(n,this.getProvider(),this.storage)).abi}updatePublisherProfile=(0,c.f)(async e=>{let n=this.getSigner();(0,l.Z)(n,"A signer is required");let r=await n.getAddress(),i=await this.storage.upload(e);return c.T.fromContractWrapper({contractWrapper:this.publisher,method:"setPublisherProfileUri",args:[r,i]})});async getPublisherProfile(e){let n=await (0,i.aL)(e),r=await this.publisher.read("getPublisherProfileUri",[n]);
340return r&&0!==r.length?i.by.parse(await this.storage.downloadJSON(r)):{}}async getAll(e){let n=await (0,i.aL)(e);return Object.entries((await this.publisher.read("getAllPublishedContracts",[n])).reduce((e,n)=>(e[n.contractId]=n,e),{})).map(e=>{let[,n]=e;return this.toPublishedContract(n)})}async getAllVersions(e,n){let r=await (0,i.aL)(e),a=await this.publisher.read("getPublishedContractVersions",[r,n]);if(0===a.length)throw Error("Not found");return a.map(e=>this.toPublishedContract(e))}async getVersion(e,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"latest",a=await (0,i.aL)(e);if("latest"===r)return this.getLatest(a,n);let o=await this.getAllVersions(a,n),s=(await Promise.all(o.map(e=>this.fetchPublishedContractInfo(e)))).find(e=>e.publishedMetadata.version===r);return(0,l.Z)(s,"Contract version not found"),o.find(e=>e.timestamp===s.publishedTimestamp)}async getLatest(e,n){let r=await (0,i.aL)(e),a=await this.publisher.read("getPublishedContract",[r,n]);if(a&&a.publishMetadataUri)return this.toPublishedContract(a)}publish=(0,c.f)(async(e,n)=>{let r=this.cleanupOldPublishFlowData(n),a=this.getSigner();(0,l.Z)(a,"A signer is required");let o=await a.getAddress(),u=await (0,i.a8)(e,this.storage),d=await (0,i.Y)(u.metadataUri,this.storage),p=(0,i.ab)(d.abi),h=(0,i.ah)(d.abi,"PluginRouter",p),y=(0,i.ah)(d.abi,"DynamicContract",p),m=(0,i.ah)(d.abi,"ModularCore",p);if(r.routerType=h?"plugin":y?"dynamic":m?"modular":"none",y||h){let e=r.defaultExtensions;if(e&&e.length>0)try{let n=(await Promise.all(e.map(e=>(0,i.aI)(e.publisherAddress,e.extensionName,e.extensionVersion,this.storage,this.options.clientId,this.options.secretKey)))).map(e=>e.metadataUri),a=(await Promise.all(n.map(async e=>(0,i.aJ)(e,this.storage)))).map(e=>e.compilerMetadata.abi),o=(0,i.aj)([d.abi,...a]);r.compositeAbi=i.bj.parse(o)}catch{}}let g=await this.getLatest(o,u.name);if(g&&g.metadataUri){let e=(await this.fetchPublishedContractInfo(g)).publishedMetadata.version;if(!(0,i.am)(e,r.version))throw Error(`Version ${r.version} is not greater than ${e}`)}let b=await (await this.storage.download(u.bytecodeUri)).text(),v=b.startsWith("0x")?b:`0x${b}`,w=s.keccak256(["bytes"],[v]),x=u.name,T=await i.bv.parseAsync({...r,metadataUri:u.metadataUri,bytecodeUri:u.bytecodeUri,name:u.name,analytics:u.analytics,compilers:u.compilers,publisher:o}),C=await this.storage.upload(T);return c.T.fromContractWrapper({contractWrapper:this.publisher,method:"publishContract",args:[o,x,C,u.metadataUri,w,f.d],parse:e=>{let n=this.publisher.parseLogs("ContractPublished",e.logs);if(n.length<1)throw Error("No ContractPublished event found");let r=n[0].args.publishedContract;return{receipt:e,data:async()=>this.toPublishedContract(r)}}})});unpublish=(0,c.f)(async(e,n)=>{let r=await (0,i.aL)(e);return c.T.fromContractWrapper({contractWrapper:this.publisher,method:"unpublishContract",args:[r,n]})});toPublishedContract(e){return i.bz.parse({id:e.contractId,timestamp:e.publishTimestamp,metadataUri:e.publishMetadataUri})}cleanupOldPublishFlowData(e){return e.compositeAbi&&delete e.compositeAbi,{...e,isDeployableViaFactory:!1,isDeployableViaProxy:!1,factoryDeploymentData:{...e.factoryDeploymentData,implementationAddresses:{},factoryAddresses:{}}}}}var y=r(52378),m=JSON.parse('[{"type":"constructor","inputs":[{"name":"_pluginMap","type":"address","internalType":"address"},{"name":"_trustedForwarders","type":"address[]","internalType":"address[]"}],"stateMutability":"nonpayable"},{"type":"fallback","stateMutability":"payable"},{"type":"receive","stateMutability":"payable"},{"type":"function","name":"DEFAULT_ADMIN_ROLE","inputs":[],"outputs":[{"name":"","type":"bytes32","internalType":"bytes32"}],"stateMutability":"view"},{"type":"function","name":"_getPluginForFunction","inputs":[{"name":"_selector","type":"bytes4","internalType":"bytes4"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"addPlugin","inputs":[{"name":"_plugin","type":"tuple","internalType":"struct IPluginMap.Plugin","components":[{"name":"functionSelector","type":"bytes4","internalType":"bytes4"},{"name":"functionSignature","type":"string","internalType":"string"},{"name":"pluginAddress","type":"address","internalType":"address"}]}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"getAllFunctionsOfPlugin","inputs":[{"name":"_pluginAddress","type":"address","internalType":"address"}],"outputs":[{"name":"registered","type":"bytes4[]","internalType":"bytes4[]"}],"stateMutability":"view"},{"type":"function","name":"getAllPlugins","inputs":[],"outputs":[{"name":"registered","type":"tuple[]","internalType":"struct IPluginMap.Plugin[]","components":[{"name":"functionSelector","type":"bytes4","internalType":"bytes4"},{"name":"functionSignature","type":"string","internalType":"string"},{"name":"pluginAddress","type":"address","internalType":"address"}]}],"stateMutability":"view"},{"type":"function","name":"getPluginForFunction","inputs":[{"name":"_selector","type":"bytes4","internalType":"bytes4"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"getRoleAdmin","inputs":[{"name":"role","type":"bytes32","internalType":"bytes32"}],"outputs":[{"name":"","type":"bytes32","internalType":"bytes32"}],"stateMutability":"view"},{"type":"function","name":"getRoleMember","inputs":[{"name":"role","type":"bytes32","internalType":"bytes32"},{"name":"index","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"member","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"getRoleMemberCount","inputs":[{"name":"role","type":"bytes32","internalType":"bytes32"}],"outputs":[{"name":"count","type":"uint256","internalType":"uint256"}],"stateMutability":"view"}
340,{"type":"function","name":"grantRole","inputs":[{"name":"role","type":"bytes32","internalType":"bytes32"},{"name":"account","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"hasRole","inputs":[{"name":"role","type":"bytes32","internalType":"bytes32"},{"name":"account","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"hasRoleWithSwitch","inputs":[{"name":"role","type":"bytes32","internalType":"bytes32"},{"name":"account","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"isTrustedForwarder","inputs":[{"name":"forwarder","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"multicall","inputs":[{"name":"data","type":"bytes[]","internalType":"bytes[]"}],"outputs":[{"name":"results","type":"bytes[]","internalType":"bytes[]"}],"stateMutability":"nonpayable"},{"type":"function","name":"pluginMap","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"removePlugin","inputs":[{"name":"_selector","type":"bytes4","internalType":"bytes4"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"renounceRole","inputs":[{"name":"role","type":"bytes32","internalType":"bytes32"},{"name":"account","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"revokeRole","inputs":[{"name":"role","type":"bytes32","internalType":"bytes32"},{"name":"account","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"supportsInterface","inputs":[{"name":"interfaceId","type":"bytes4","internalType":"bytes4"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"updatePlugin","inputs":[{"name":"_plugin","type":"tuple","internalType":"struct IPluginMap.Plugin","components":[{"name":"functionSelector","type":"bytes4","internalType":"bytes4"},{"name":"functionSignature","type":"string","internalType":"string"},{"name":"pluginAddress","type":"address","internalType":"address"}]}],"outputs":[],"stateMutability":"nonpayable"},{"type":"event","name":"PluginAdded","inputs":[{"name":"functionSelector","type":"bytes4","indexed":true,"internalType":"bytes4"},{"name":"pluginAddress","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"PluginRemoved","inputs":[{"name":"functionSelector","type":"bytes4","indexed":true,"internalType":"bytes4"},{"name":"pluginAddress","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"PluginSet","inputs":[{"name":"functionSelector","type":"bytes4","indexed":true,"internalType":"bytes4"},{"name":"functionSignature","type":"string","indexed":true,"internalType":"string"},{"name":"pluginAddress","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"PluginUpdated","inputs":[{"name":"functionSelector","type":"bytes4","indexed":true,"internalType":"bytes4"},{"name":"oldPluginAddress","type":"address","indexed":true,"internalType":"address"},{"name":"newPluginAddress","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"RoleAdminChanged","inputs":[{"name":"role","type":"bytes32","indexed":true,"internalType":"bytes32"},{"name":"previousAdminRole","type":"bytes32","indexed":true,"internalType":"bytes32"},{"name":"newAdminRole","type":"bytes32","indexed":true,"internalType":"bytes32"}],"anonymous":false},{"type":"event","name":"RoleGranted","inputs":[{"name":"role","type":"bytes32","indexed":true,"internalType":"bytes32"},{"name":"account","type":"address","indexed":true,"internalType":"address"},{"name":"sender","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"RoleRevoked","inputs":[{"name":"role","type":"bytes32","indexed":true,"internalType":"bytes32"},{"name":"account","type":"address","indexed":true,"internalType":"address"},{"name":"sender","type":"address","indexed":true,"internalType":"address"}],"anonymous":false}]'),g=r(8198),b=r(84243),v=r(64146),w=r(93684),x=r(16441),T=r(83875),C=r(79911),M=r(19485),A=r(2593),E=r(32046
340),I=r(86237),S=r(11388),k=r(29251),N=r(43277),j=r(71770),D=r(99979),_=r(22555);let O={};var P=r(88046),L=JSON.parse('[{"type":"constructor","inputs":[{"name":"_trustedForwarder","type":"address","internalType":"address"},{"name":"_registry","type":"address","internalType":"address"}],"stateMutability":"nonpayable"},{"type":"function","name":"DEFAULT_ADMIN_ROLE","inputs":[],"outputs":[{"name":"","type":"bytes32","internalType":"bytes32"}],"stateMutability":"view"},{"type":"function","name":"FACTORY_ROLE","inputs":[],"outputs":[{"name":"","type":"bytes32","internalType":"bytes32"}],"stateMutability":"view"},{"type":"function","name":"addImplementation","inputs":[{"name":"_implementation","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"approval","inputs":[{"name":"","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"approveImplementation","inputs":[{"name":"_implementation","type":"address","internalType":"address"},{"name":"_toApprove","type":"bool","internalType":"bool"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"currentVersion","inputs":[{"name":"","type":"bytes32","internalType":"bytes32"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"deployProxy","inputs":[{"name":"_type","type":"bytes32","internalType":"bytes32"},{"name":"_data","type":"bytes","internalType":"bytes"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"nonpayable"},{"type":"function","name":"deployProxyByImplementation","inputs":[{"name":"_implementation","type":"address","internalType":"address"},{"name":"_data","type":"bytes","internalType":"bytes"},{"name":"_salt","type":"bytes32","internalType":"bytes32"}],"outputs":[{"name":"deployedProxy","type":"address","internalType":"address"}],"stateMutability":"nonpayable"},{"type":"function","name":"deployProxyDeterministic","inputs":[{"name":"_type","type":"bytes32","internalType":"bytes32"},{"name":"_data","type":"bytes","internalType":"bytes"},{"name":"_salt","type":"bytes32","internalType":"bytes32"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"nonpayable"},{"type":"function","name":"deployer","inputs":[{"name":"","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"getImplementation","inputs":[{"name":"_type","type":"bytes32","internalType":"bytes32"},{"name":"_version","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"getLatestImplementation","inputs":[{"name":"_type","type":"bytes32","internalType":"bytes32"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"getRoleAdmin","inputs":[{"name":"role","type":"bytes32","internalType":"bytes32"}],"outputs":[{"name":"","type":"bytes32","internalType":"bytes32"}],"stateMutability":"view"},{"type":"function","name":"getRoleMember","inputs":[{"name":"role","type":"bytes32","internalType":"bytes32"},{"name":"index","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"getRoleMemberCount","inputs":[{"name":"role","type":"bytes32","internalType":"bytes32"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"grantRole","inputs":[{"name":"role","type":"bytes32","internalType":"bytes32"},{"name":"account","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"hasRole","inputs":[{"name":"role","type":"bytes32","internalType":"bytes32"},{"name":"account","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"implementation","inputs":[{"name":"","type":"bytes32","internalType":"bytes32"},{"name":"","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"isTrustedForwarder","inputs":[{"name":"forwarder","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"}
340,{"type":"function","name":"multicall","inputs":[{"name":"data","type":"bytes[]","internalType":"bytes[]"}],"outputs":[{"name":"results","type":"bytes[]","internalType":"bytes[]"}],"stateMutability":"nonpayable"},{"type":"function","name":"registry","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract TWRegistry"}],"stateMutability":"view"},{"type":"function","name":"renounceRole","inputs":[{"name":"role","type":"bytes32","internalType":"bytes32"},{"name":"account","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"revokeRole","inputs":[{"name":"role","type":"bytes32","internalType":"bytes32"},{"name":"account","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"supportsInterface","inputs":[{"name":"interfaceId","type":"bytes4","internalType":"bytes4"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"event","name":"ImplementationAdded","inputs":[{"name":"implementation","type":"address","indexed":false,"internalType":"address"},{"name":"contractType","type":"bytes32","indexed":true,"internalType":"bytes32"},{"name":"version","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"ImplementationApproved","inputs":[{"name":"implementation","type":"address","indexed":false,"internalType":"address"},{"name":"isApproved","type":"bool","indexed":false,"internalType":"bool"}],"anonymous":false},{"type":"event","name":"ProxyDeployed","inputs":[{"name":"implementation","type":"address","indexed":true,"internalType":"address"},{"name":"proxy","type":"address","indexed":false,"internalType":"address"},{"name":"deployer","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"RoleAdminChanged","inputs":[{"name":"role","type":"bytes32","indexed":true,"internalType":"bytes32"},{"name":"previousAdminRole","type":"bytes32","indexed":true,"internalType":"bytes32"},{"name":"newAdminRole","type":"bytes32","indexed":true,"internalType":"bytes32"}],"anonymous":false},{"type":"event","name":"RoleGranted","inputs":[{"name":"role","type":"bytes32","indexed":true,"internalType":"bytes32"},{"name":"account","type":"address","indexed":true,"internalType":"address"},{"name":"sender","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"RoleRevoked","inputs":[{"name":"role","type":"bytes32","indexed":true,"internalType":"bytes32"},{"name":"account","type":"address","indexed":true,"internalType":"address"},{"name":"sender","type":"address","indexed":true,"internalType":"address"}],"anonymous":false}]');let R=!1;function z(e,n,r){!R&&(R=!0,n||r||console.warn(e))}async function B(e,n,r){let a,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"latest",s=arguments.length>4?arguments[4]:void 0,f=arguments.length>5?arguments[5]:void 0,u=arguments.length>6?arguments[6]:void 0,c=(0,i.a_)(n,{clientId:s,secretKey:f}),d=(await (0,i.aI)(i.aH,e,o,r,s,f)).metadataUri,p=await (0,i.aJ)(d,r),h=await (0,i.aw)(c);(0,l.Z)(h,"Thirdweb stack not found");let{extendedMetadata:y}=await (0,i.aJ)(d,r);if(y?.routerType==="plugin"||y?.routerType==="dynamic"){let e=await (0,P.g)(d,r,c,h,s,f);a=e.find(e=>"implementation"===e.type)?.encodedArgs}else a=await (0,i.aF)(p.compilerMetadata,c,r,h,u,s,f);return a}async function U(e,n,r){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"latest",o=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,f=(0,i.a_)(n,{clientId:o,secretKey:s}),u=(await (0,i.aI)(i.aH,e,a,r,o,s)).metadataUri,c=await (0,i.aw)(f);(0,l.Z)(c,"Thirdweb stack not found");let{extendedMetadata:d}=await (0,i.aJ)(u,r);if(d?.routerType==="plugin"||d?.routerType==="dynamic"){let e=await (0,P.g)(u,r,f,c,o,s),n=e.find(e=>"implementation"===e.type)?.transaction.predictedAddress;return(0,l.Z)(n,"Error computing address for plugin router"),n}return(await (0,i.aE)("implementation",f,r,c,{contractName:e},o,s)).transaction.predictedAddress}async function F(e,n,r){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"latest",o=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,f=(0,i.a_)(n,{clientId:o,secretKey:s}),u=await U(e,n,r,a,o,s),c=await (0,i.au)(u,f);return(0,l.Z)(c,"Contract not deployed yet"),u}let Z={PENDING:"Pending in queue",IN_PROGRESS:"In progress"},W={OK:"1"};async function H(e,n,r,i,a){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"latest",s=arguments.length>6?arguments[6]:void 0,f=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0,u=await F(e,n,a,o,s,f),c=await B(e,n,a,o,s,f,l);return console.info(`Verifying ${e} at address ${u}`),await G(u,n,r,i,a,c?.toString().replace("0x",""))}async function G(e,n,r,a,o,s){try{let f=(0,i.a_)(n,{});e=(await (0,i.a6)(e,f)).address;let l=await (0,i.K)(e,f,o),c=l.metadata.compiler.version,d=await (0,u.f)(l,o),p=l.metadata.sources,h={};for(let e of Object.keys(p)){let n=d.find(n=>e===n.filename);if(!n)throw Error(`Could not find source file for ${e}`);h[e]={content:n.source}}let y={language:"Solidity",sources:h,settings:{optimizer:l.metadata.settings.optimizer,evmVersion:l.metadata.settings.evmVersion,remappings:l.metadata.settings.remappings,outputSelection:{"*":{"*":["abi","evm.bytecode","evm.deployedBytecode","evm.methodIdentifiers","metadata"],"":["ast"]}}}},m=l.metadata.settings.compilationTarget,g=Object.keys(m)[0],b=s||await Y(r,a,e,l.abi,f,o),v={apikey:a,module:"contract",action:"verifysourcecode",contractaddress:e,sourceCode:JSON.stringify(y),codeformat:"solidity-standard-json-input",contractname:`${g}:${l.name}`,compilerversion:`v${c}`,constructorArguements:b},w=new URLSearchParams({...v}),x=await fetch(r,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:w.toString()}),T=await x.json();if(T.status===W.OK)return T.result;throw Error(`${T.result}`)}catch(e){throw Error(e.toString())}}async function q(e,n,r){let i=`${e}
340?module=contract&action=checkverifystatus&guid=${r}&apikey=${n}"`;return new Promise((e,n)=>{let r=setInterval(async()=>{try{let n=await fetch(i,{method:"GET"}),a=await n.json();a?.result!==Z.PENDING&&a?.result!==Z.IN_PROGRESS&&(clearInterval(r),e(a))}catch(e){clearInterval(r),n(e)}},3e3)})}async function Y(e,n,r,a,o,s){let f=(0,i.a1)(a);if(0===f.length)return"";let l=await fetch(`${e}?module=contract&action=getcontractcreation&contractaddresses=${r}&apikey=${n}`),u=await l.json();if(!u||u.status!==W.OK||void 0===u.result[0])return"";{let e=new g.vU(a),n=u.result[0].txHash,l="";if(0===e.deploy.inputs.length)return"";let c=await o.getTransaction(n),d=c.data;try{let e=await V(r,o,s);if(e){let n;let r=e.startsWith("0x")?e:`0x${e}`;try{n=await (0,i.aw)(o)}catch(e){}let a=c.to===n?64:0;l=d.substring(r.length+a)}}catch(e){}if(!l){let e=[...d.matchAll(/(64736f6c6343[\w]{6}[\w]{4})(?!.*\1)(.*)$/g)];e.length>0&&(l=e[0][2])}if(!l){let e=64*f.length;l=d.substring(d.length-e)}try{b.$.decode(e.deploy.inputs,`0x${l}`)}catch(e){throw Error("Verifying this contract requires it to be published. Run `npx thirdweb publish` to publish this contract, then try again.")}return l}}async function V(e,n,a){let o=await (0,i.a4)(e,n);if(o){let e=(await Promise.resolve().then(r.t.bind(r,65815,19))).default,n=new v.CH((0,i.aQ)(),e,(0,i.a_)("polygon",{})),s=await n.getPublishedUriFromCompilerUri(o);if(0===s.length)throw Error(`Could not resolve published metadata URI from ${o}`);let f=await Promise.all(s.filter(e=>e.length>0).map(e=>(0,i.aa)(e,a)));return f.length>0?await (await a.download(f[0].bytecodeUri)).text():void 0}}class Q extends i.cr{constructor(e,n,r){super(e,n),this.storage=r}updateSignerOrProvider(e){super.updateSignerOrProvider(e)}async verifyThirdwebContract(e,n,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"latest",a=arguments.length>4?arguments[4]:void 0,o=(await this.getProvider().getNetwork()).chainId,s=await H(e,o,n,r,this.storage,i,this.options.clientId,this.options.secretKey,a);console.info("Checking verification status..."),console.info(await q(n,r,s))}async verifyContract(e,n,r,i){let a;let o=(await this.getProvider().getNetwork()).chainId;if(i){let e=Object.values(i).map(e=>((0,l.Z)(e.type,"Param type is required"),e.type)),n=Object.values(i).map(e=>e.value);a=b.$.encode(e,n)}let s=await G(e,o,n,r,this.storage,a);console.info("Checking verification status..."),console.info(await q(n,r,s))}}let K="0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80";class ${events=new j.Z;constructor(e,n,r){this.connection=new i.cr(e,n),this.options=n,this.events=new j.Z,this.storage=r}connect(e){this.connection.updateSignerOrProvider(e),this.events.emit("signerChanged",this.connection.getSigner())}async transfer(e,n){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.aV,[s,f,l]=await Promise.all([(0,i.aL)(e),(0,i.aL)(o),(0,D.n)(this.connection.getProvider(),n,o)]),u=this.requireWallet();if((0,N.i)(f)){let e=await u.getAddress(),n=(0,a.jU)()?{}:await (0,c.g)(this.connection.getProvider()),r=await u.sendTransaction({from:e,to:s,value:l,...n});return{receipt:await r.wait()}}{let e=(await Promise.resolve().then(r.t.bind(r,49242,19))).default;return{receipt:await this.createErc20(f,e).sendTransaction("transfer",[s,l])}}}async balance(){let e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.aV;this.requireWallet();let a=await (0,i.aL)(n),o=this.connection.getProvider();if((0,N.i)(a))e=await o.getBalance(await this.getAddress());else{let n=(await Promise.resolve().then(r.t.bind(r,49242,19))).default;e=await this.createErc20(a,n).read("balanceOf",[await this.getAddress()])}return await (0,N.a)(o,a,e)}async getAddress(){return await this.requireWallet().getAddress()}async getChainId(){return await this.requireWallet().getChainId()}async getNonce(e){return await this.connection.getProvider().getTransactionCount(await this.getAddress(),e)}isConnected(){try{return this.requireWallet(),!0}catch(e){return!1}}async sign(e){let n=this.requireWallet();return await n.signMessage(e)}async signTypedData(e,n,r){return await (0,i.aM)(this.requireWallet(),e,n,r)}recoverAddress(e,n){let r=w.r(e),i=x.arrayify(r);return T.recoverAddress(i,n)}async sendRawTransaction(e){let n=this.requireWallet();return e={...(0,a.jU)()?{}:await (0,c.g)(this.connection.getProvider()),...e},n.sendTransaction(e)}async executeRawTransaction(e){let n=await this.sendRawTransaction(e);return{receipt:await n.wait()}}async requestFunds(e){let n=await this.getChainId();if(n===i.aS.Localhost||n===i.aS.Hardhat)return new $(new C.Wallet(K,(0,i.a_)(n,this.options)),this.options,this.storage).transfer(await this.getAddress(),e);throw Error(`Requesting funds is not supported on chain: '${n}'.`)}requireWallet(){let e=this.connection.getSigner();return(0,l.Z)(e,"This action requires a connected wallet. Please pass a valid signer to the SDK."),e}createErc20(e,n){return new i.cs(this.connection.getSignerOrProvider(),e,n,this.options,this.storage)}}function J(e){return function(e){let n=[];return(0,i.ct)((0,i.ab)(e),n),n.map(e=>e.name)}
340(e)}class X{constructor(e,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.storage=n,this.registryLogic=new i.cs(e,(0,i.aR)(),y,r,n),this.registryRouter=new i.cs(e,(0,i.aR)(),m,r,n)}async updateSigner(e){this.registryLogic.updateSignerOrProvider(e),this.registryRouter.updateSignerOrProvider(e)}async getContractMetadataURI(e,n){return await this.registryLogic.read("getMetadataUri",[e,await (0,i.aL)(n)])}async getContractMetadata(e,n){let r=await this.getContractMetadataURI(e,n);if(!r)throw Error(`No metadata URI found for contract ${n} on chain ${e}`);return await this.storage.downloadJSON(r)}async getContractAddresses(e){return(await this.registryLogic.read("getAll",[await (0,i.aL)(e)])).filter(e=>M.isAddress(e.deploymentAddress)&&e.deploymentAddress.toLowerCase()!==f.d).map(e=>({address:e.deploymentAddress,chainId:e.chainId.toNumber()}))}addContract=(0,c.f)(async e=>{let n=await this.registryRouter.getSignerAddress();return c.T.fromContractWrapper({contractWrapper:this.registryLogic,method:"add",args:[n,e.address,e.chainId,e.metadataURI||""]})});addContracts=(0,c.f)(async e=>{let n=await this.registryRouter.getSignerAddress(),r=[],i=new N.C(this.registryLogic);return e.forEach(e=>{r.push(i.encode("add",[n,e.address,e.chainId,e.metadataURI||""]))}),c.T.fromContractWrapper({contractWrapper:this.registryRouter,method:"multicall",args:[r]})});removeContract=(0,c.f)(async e=>{let n=await this.registryRouter.getSignerAddress();return c.T.fromContractWrapper({contractWrapper:this.registryLogic,method:"remove",args:[n,await (0,i.aL)(e.address),e.chainId]})});removeContracts=(0,c.f)(async e=>{let n=await this.registryRouter.getSignerAddress(),r=new N.C(this.registryLogic),a=await Promise.all(e.map(async e=>r.encode("remove",[n,await (0,i.aL)(e.address),e.chainId])));return c.T.fromContractWrapper({contractWrapper:this.registryRouter,method:"multicall",args:[a]})})}function ee(e,n){for(let r of i.bj.parse(e||[]))if("function"===r.type&&r.name===n)return r.inputs||[];return[]}async function et(e,n,r,a,o){return r||(r=await (0,i.aw)(e)),(await (0,i.aE)("infra",e,n,r,{contractName:"TWCloneFactory"},a,o)).transaction.predictedAddress}function en(e,n){if(e.length!==n.length)throw Error(`Passed the wrong number of constructor arguments: ${n.length}, expected ${e.length}`);return e.map((e,r)=>"tuple"===e||e.endsWith("[]")?"string"==typeof n[r]?JSON.parse(n[r]):n[r]:"bytes32"===e?((0,l.Z)(x.isHexString(n[r]),`Could not parse bytes32 value. Expected valid hex string but got "${n[r]}".`),x.hexZeroPad(n[r],32)):e.startsWith("bytes")?((0,l.Z)(x.isHexString(n[r]),`Could not parse bytes value. Expected valid hex string but got "${n[r]}".`),n[r]):e.startsWith("uint")||e.startsWith("int")?A.O$.from(n[r].toString()):n[r])}async function er(e,n){(0,l.Z)(e.provider,"No provider");let r=await (0,i.ax)(e.provider);if(r.transaction.length>0){(await e.provider.getBalance(r.signer)).lt(r.valueToSend)&&await (await e.sendTransaction({to:r.signer,value:r.valueToSend})).wait();try{console.debug(`deploying CREATE2 factory at: ${r.deployment}`),n?.notifier?.("deploying","create2Factory"),await (await e.provider.sendTransaction(r.transaction)).wait(),n?.notifier?.("deployed","create2Factory")}catch(e){throw Error(`Couldn't deploy CREATE2 factory: ${JSON.stringify(e)}`)}}return r.deployment}function ei(e,n){return n===f.d?e:n}async function ea(e,n,r,a){let o=n.defaultAdmin||await a.getAddress(),s=[];switch(n.trusted_forwarders&&n.trusted_forwarders.length>0&&s.push(...n.trusted_forwarders),e){case i.d.contractType:case i.N.contractType:let f=await i.d.schema.deploy.parseAsync(n);return[o,f.name,f.symbol,r,s,ei(o,f.primary_sale_recipient),f.fee_recipient,f.seller_fee_basis_points,f.platform_fee_basis_points,ei(o,f.platform_fee_recipient)];case i.e.contractType:let l=await i.e.schema.deploy.parseAsync(n);return[o,l.name,l.symbol,r,s,ei(o,l.primary_sale_recipient),l.fee_recipient,l.seller_fee_basis_points,l.platform_fee_basis_points,ei(o,l.platform_fee_recipient)];case i.c.contractType:let u=await i.c.schema.deploy.parseAsync(n);return[o,u.name,u.symbol,r,s,u.fee_recipient,u.seller_fee_basis_points];case i.E.contractType:case i.a.contractType:let c=await i.E.schema.deploy.parseAsync(n);return[o,c.name,c.symbol,r,s,ei(o,c.primary_sale_recipient),c.fee_recipient,c.seller_fee_basis_points,c.platform_fee_basis_points,ei(o,c.platform_fee_recipient)];case i.T.contractType:case i.g.contractType:let d=await i.g.schema.deploy.parseAsync(n);return[o,d.name,d.symbol,r,s,ei(o,d.primary_sale_recipient),ei(o,d.platform_fee_recipient),d.platform_fee_basis_points];case i.V.contractType:let p=await i.V.schema.deploy.parseAsync(n);return[p.name,r,s,p.voting_token_address,p.voting_delay_in_blocks,p.voting_period_in_blocks,A.O$.from(p.proposal_token_threshold),p.voting_quorum_fraction];case i.f.contractType:let h=await i.f.schema.deploy.parseAsync(n);return[o,r,s,h.recipients.map(e=>e.address),h.recipients.map(e=>A.O$.from(e.sharesBps))];case i.M.contractType:case i.b.contractType:let y=await i.M.schema.deploy.parseAsync(n);return[o,r,s,ei(o,y.platform_fee_recipient),y.platform_fee_basis_points];case i.P.contractType:let m=await i.P.schema.deploy.parseAsync(n);return[o,m.name,m.symbol,r,s,m.fee_recipient,m.seller_fee_basis_points];default:return[]}}i.aS.Mainnet,i.aS.Goerli,i.aS.Polygon,i.aS.Mumbai,i.aS.Fantom,i.aS.FantomTestnet,i.aS.Avalanche,i.aS.AvalancheFujiTestnet,i.aS.Optimism,i.aS.OptimismGoerli,i.aS.Arbitrum,i.aS.ArbitrumGoerli,i.aS.BinanceSmartChainMainnet,i.aS.BinanceSmartChainTestnet,i.aS.Hardhat,i.aS.Localhost;let eo={[i.aS.Mainnet]:{"nft-drop":"0x60fF9952e0084A6DEac44203838cDC91ABeC8736","edition-drop":"0x74af262d0671F378F97a1EDC3d0970Dbe8A1C550","token-drop":"0xE1eE43D23f247b6A9aF81fcE2766E76
340709482728","signature-drop":"0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A"},[i.aS.Polygon]:{"nft-drop":"0xB96508050Ba0925256184103560EBADA912Fcc69","edition-drop":"0x74af262d0671F378F97a1EDC3d0970Dbe8A1C550","token-drop":"0x5A8eA4Adad8289746D073947BA06D69A62499aaf","signature-drop":"0xBE2fDc35410E268e41Bec62DBb01AEb43245c7d5"},[i.aS.Fantom]:{"nft-drop":"0x2A396b2D90BAcEF19cDa973586B2633d22710fC2","edition-drop":"0x06395FCF9AC6ED827f9dD6e776809cEF1Be0d21B","token-drop":"0x0148b28a38efaaC31b6aa0a6D9FEb70FE7C91FFa","signature-drop":"0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10"},[i.aS.Avalanche]:{"nft-drop":"0x9cF91118C8ee2913F0588e0F10e36B3d63F68bF6","edition-drop":"0x135fC9D26E5eC51260ece1DF4ED424E2f55c7766","token-drop":"0xca0B071899E575BA86495D46c5066971b6f3A901","signature-drop":"0x1d47526C3292B0130ef0afD5F02c1DA052A017B3"},[i.aS.Optimism]:{"nft-drop":"0xFBd7D24d80ee005671E731a7287DEB6073264dD1","edition-drop":"0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10","token-drop":"0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE","signature-drop":"0x8a4cd3549e548bbEEb38C16E041FFf040a5acabD"},[i.aS.Arbitrum]:{"nft-drop":"0xC4903c1Ff5367b9ac2c349B63DC2409421AaEE2a","edition-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F","token-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9","signature-drop":"0x2dF9851af45dd41C8584ac55D983C604da985Bc7"},[i.aS.BinanceSmartChainMainnet]:{"nft-drop":"0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE","edition-drop":"0x2A396b2D90BAcEF19cDa973586B2633d22710fC2","token-drop":"0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10","signature-drop":"0xFBd7D24d80ee005671E731a7287DEB6073264dD1"},[i.aS.Goerli]:{"nft-drop":"0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C","edition-drop":"0x5A8eA4Adad8289746D073947BA06D69A62499aaf","token-drop":"0x5680933221B752EB443654a014f88B101F868d50","signature-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9"},[i.aS.Mumbai]:{"nft-drop":"0xC4903c1Ff5367b9ac2c349B63DC2409421AaEE2a","edition-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F","token-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9","signature-drop":"0x2dF9851af45dd41C8584ac55D983C604da985Bc7"},[i.aS.FantomTestnet]:{"nft-drop":"0x8a4cd3549e548bbEEb38C16E041FFf040a5acabD","edition-drop":"0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE","token-drop":"0xFBd7D24d80ee005671E731a7287DEB6073264dD1","signature-drop":"0x5A8eA4Adad8289746D073947BA06D69A62499aaf"},[i.aS.AvalancheFujiTestnet]:{"nft-drop":"0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C","edition-drop":"0xE1eE43D23f247b6A9aF81fcE2766E76709482728","token-drop":"0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A","signature-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F"},[i.aS.OptimismGoerli]:{"nft-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F","edition-drop":"0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A","token-drop":"0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C","signature-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9"},[i.aS.ArbitrumGoerli]:{"nft-drop":"0x9CfE807a5b124b962064Fa8F7FD823Cc701255b6","edition-drop":"0x9cF91118C8ee2913F0588e0F10e36B3d63F68bF6","token-drop":"0x1d47526C3292B0130ef0afD5F02c1DA052A017B3","signature-drop":"0xE1eE43D23f247b6A9aF81fcE2766E76709482728"},[i.aS.BinanceSmartChainTestnet]:{"nft-drop":"","edition-drop":"","token-drop":"","signature-drop":""},[i.aS.Hardhat]:{"nft-drop":"","edition-drop":"","token-drop":"","signature-drop":""},[i.aS.Localhost]:{"nft-drop":"","edition-drop":"","token-drop":"","signature-drop":""}};class es extends i.cs{DEFAULT_VERSION_MAP={[i.d.contractType]:3,[i.N.contractType]:1,[i.e.contractType]:4,[i.c.contractType]:1,[i.E.contractType]:2,[i.a.contractType]:1,[i.T.contractType]:2,[i.g.contractType]:1,[i.V.contractType]:1,[i.f.contractType]:1,[i.M.contractType]:2,[i.b.contractType]:3,[i.P.contractType]:2};constructor(e,n,r,i){super(n,e,L,i,r),this.storage=r}deploy=(0,c.f)(async(e,n,r,a,o,s)=>{let u=i.h[e],d=await u.schema.deploy.parseAsync(n),p=await this.storage.upload(d),h=await this.getImplementation(u,a)||void 0;if(!h||h===f.d)throw Error(`No implementation found for ${e}`);let y=await u.getAbi(h,this.getProvider(),this.storage),m=this.getSigner();(0,l.Z)(m,"A signer is required to deploy contracts");let g=await ea(e,d,p,m),b=v.CH.getInterface(y).encodeFunctionData("initialize",g),w=await this.getProvider().getBlockNumber(),x=o?.saltForProxyDeploy?E.id(o.saltForProxyDeploy):I.s(w.toString());return c.T.fromContractWrapper({contractWrapper:this,method:"deployProxyByImplementation",args:[h,b,x],parse:e=>{s&&s();let n=this.parseLogs("ProxyDeployed",e.logs);if(n.length<1)throw Error("No ProxyDeployed event found");let i=n[0].args.proxy;return r.emit("contractDeployed",{status:"completed",contractAddress:i,transactionHash:e.transactionHash}),i}})});deployProxyByImplementation=(0,c.f)(async(e,n,r,i,a,o,s)=>{let f=v.CH.getInterface(n).encodeFunctionData(r,i),l=await this.getProvider().getBlockNumber(),u=o?E.id(o):I.s(l.toString());return c.T.fromContractWrapper({contractWrapper:this,method:"deployProxyByImplementation",args:[e,f,u],parse:e=>{s&&s();let n=this.parseLogs("ProxyDeployed",e.logs);if(n.length<1)throw Error("No ProxyDeployed event found");let r=n[0].args.proxy;return a.emit("contractDeployed",{status:"completed",contractAddress:r,transactionHash:e.transactionHash}),r}})});async getDeployArguments(e,n,r){let a=[];n.trusted_forwarders&&n.trusted_forwarders.length>0&&(a=n.trusted_forwarders);
340let o=await this.getSignerAddress();switch(e){case i.d.contractType:case i.N.contractType:let s=await i.d.schema.deploy.parseAsync(n);return[o,s.name,s.symbol,r,a,ei(o,s.primary_sale_recipient),s.fee_recipient,s.seller_fee_basis_points,s.platform_fee_basis_points,ei(o,s.platform_fee_recipient)];case i.e.contractType:let f=await i.e.schema.deploy.parseAsync(n);return[o,f.name,f.symbol,r,a,ei(o,f.primary_sale_recipient),f.fee_recipient,f.seller_fee_basis_points,f.platform_fee_basis_points,ei(o,f.platform_fee_recipient)];case i.c.contractType:let l=await i.c.schema.deploy.parseAsync(n);return[o,l.name,l.symbol,r,a,l.fee_recipient,l.seller_fee_basis_points];case i.E.contractType:case i.a.contractType:let u=await i.E.schema.deploy.parseAsync(n);return[o,u.name,u.symbol,r,a,ei(o,u.primary_sale_recipient),u.fee_recipient,u.seller_fee_basis_points,u.platform_fee_basis_points,ei(o,u.platform_fee_recipient)];case i.T.contractType:case i.g.contractType:let c=await i.g.schema.deploy.parseAsync(n);return[o,c.name,c.symbol,r,a,ei(o,c.primary_sale_recipient),ei(o,c.platform_fee_recipient),c.platform_fee_basis_points];case i.V.contractType:let d=await i.V.schema.deploy.parseAsync(n);return[d.name,r,a,d.voting_token_address,d.voting_delay_in_blocks,d.voting_period_in_blocks,A.O$.from(d.proposal_token_threshold),d.voting_quorum_fraction];case i.f.contractType:let p=await i.f.schema.deploy.parseAsync(n);return[o,r,a,p.recipients.map(e=>e.address),p.recipients.map(e=>A.O$.from(e.sharesBps))];case i.M.contractType:let h=await i.M.schema.deploy.parseAsync(n);return[o,r,a,ei(o,h.platform_fee_recipient),h.platform_fee_basis_points];case i.b.contractType:let y=await i.b.schema.deploy.parseAsync(n);return[o,r,a,ei(o,y.platform_fee_recipient),y.platform_fee_basis_points];case i.P.contractType:let m=await i.P.schema.deploy.parseAsync(n);return[o,m.name,m.symbol,r,a,m.fee_recipient,m.seller_fee_basis_points];default:return[]}}async getImplementation(e,n){let r=I.s(e.name),i=function(e,n){if(e in eo){let r=eo[e];if(n in r)return r[n]}return null}(await this.getChainID(),e.contractType);return i&&i.length>0&&void 0===n?i:this.read("getImplementation",[r,void 0!==n?n:this.DEFAULT_VERSION_MAP[e.contractType]])}async getLatestVersion(e){let n=(0,i.k)(e);if(!n)throw Error(`Invalid contract type ${e}`);let r=I.s(n);return this.read("currentVersion",[r])}}class ef extends i.cs{constructor(e,n,r,i,a){super(n,e,i,a,r)}async getContractAddresses(e){return(await this.read("getAll",[await (0,i.aL)(e)])).filter(e=>M.isAddress(e)&&e.toLowerCase()!==f.d)}addContract=(0,c.f)(async e=>await this.addContracts.prepare([e]));addContracts=(0,c.f)(async e=>
340{let n=await this.getSignerAddress(),r=new N.C(this),a=(await Promise.all(e.map(e=>(0,i.aL)(e)))).map(e=>r.encode("add",[n,e]));return c.T.fromContractWrapper({contractWrapper:this,method:"multicall",args:[a]})});removeContract=(0,c.f)(async e=>await this.removeContracts.prepare([e]));removeContracts=(0,c.f)(async e=>{let n=await this.getSignerAddress(),r=new N.C(this),a=(await Promise.all(e.map(e=>(0,i.aL)(e)))).map(e=>r.encode("remove",[n,e]));return c.T.fromContractWrapper({contractWrapper:this,method:"multicall",args:[a]})})}let el=i.bD.merge(i.bF).merge(i.bJ).merge(i.bH).merge(i.bG).merge(i.bI),eu=i.bD.merge(i.bJ).merge(i.bI);async function ec(e,n,r,a,o){let s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:7e6;(0,l.Z)(r.provider,"Provider is required");let f=e.startsWith("0x")?e:`0x${e}`,u=await er(r),c=(0,i.a1)(n),d=en(c.map(e=>e.type),a),p=c.map(e=>"tuple[]"===e.type?S._R.from(e):e.type),h=b.$.encode(p,d),y=(0,i.aA)(f,h,u,o),m=await (0,i.au)(y,r.provider);if(m)throw Error(`Contract already deployed at ${y}`);{console.debug(`deploying contract via create2 factory at: ${y}`);let e={to:u,data:(0,i.az)(f,h,o)};try{await r.estimateGas(e)}catch(n){console.debug("error estimating gas while deploying prebuilt: ",n),e.gasLimit=A.O$.from(s)}await (await r.sendTransaction(e)).wait()}return y}async function ed(e,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"latest",a=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,f=arguments.length>6?arguments[6]:void 0,u=arguments.length>7?arguments[7]:void 0,c=arguments.length>8?arguments[8]:void 0,d=arguments.length>9&&void 0!==arguments[9]?arguments[9]:7e6,p=(await (0,i.aI)(n,e,r,s,f,u)).metadataUri,{compilerMetadata:h,extendedMetadata:y}=await (0,i.aJ)(p,s);return(0,l.Z)(y?.deployType==="standard","Must be direct deploy"),await ec(h.bytecode,h.abi,o,a,c,d)}async function ep(e,n,r,a,o){let s=e.startsWith("0x")?e:`0x${e}`,f=await (0,i.aw)(r),l=(0,i.a1)(n),u=en(l.map(e=>e.type),a),c=l.map(e=>"tuple[]"===e.type?S._R.from(e):e.type),d=b.$.encode(c,u);return(0,i.aA)(s,d,f,o)}async function eh(e,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"latest",a=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,f=arguments.length>6?arguments[6]:void 0,u=arguments.length>7?arguments[7]:void 0,c=arguments.length>8?arguments[8]:void 0,d=(await (0,i.aI)(n,e,r,s,f,u)).metadataUri,{compilerMetadata:p,extendedMetadata:h}=await (0,i.aJ)(d,s);return(0,l.Z)(h?.deployType==="standard","Must be direct deploy"),await ep(p.bytecode,p.abi,o,a,c)}class ey extends i.cr{static async fromWallet(e,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0,a=await e.getSigner();return ey.fromSigner(a,n,r,i)}static fromSigner(e,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,o=e;if(n)try{let a=(0,i.a_)(n,r);o=e.connect(a)}catch{}let s=new ey(n||o,n?em(n,r):r,a);return s.updateSignerOrProvider(o),s}static fromPrivateKey(e,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,o=(0,i.a_)(n,r);return new ey(new C.Wallet(e,o),em(n,r),a)}contractCache=new Map;constructor(e){var n;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;z("No API key. Please provide a clientId. It is required to access thirdweb's services. You can create a key at https://thirdweb.com/create-api-key",r.clientId,r.secretKey),super(e,r=em(e,r)),(0,i.aT)(r?.supportedChains);let s=(n=r,o||new a.EA(n?.gatewayUrls?{gatewayUrls:n.gatewayUrls,clientId:n.clientId,secretKey:n.secretKey}:{clientId:n?.clientId,secretKey:n?.secretKey}));this.storage=s,this.storageHandler=s,this.wallet=new $(e,r,s),this.deployer=new eb(e,r,s),this.verifier=new Q(e,r,s),this.multiChainRegistry=new X(e,this.storageHandler,this.options),this._publisher=new h(e,this.options,this.storageHandler)}get auth(){throw Error(`The sdk.auth namespace has been moved to the @thirdweb-dev/auth package and is no longer available after @thirdweb-dev/sdk >= 3.7.0. 341 Please visit https://portal.thirdweb.com/wallets/auth for instructions on how to switch to using the new auth package (@thirdweb-dev/[email protected]). 342 343 If you still want to use the old @thirdweb-dev/[email protected] package, you can downgrade the SDK to version 3.6.0.`)}async getNFTDrop(e){return await this.getContract(e,"nft-drop")}async getSignatureDrop(e){return await this.getContract(e,"signature-drop")}async getNFTCollection(e){return await this.getContract(e,"nft-collection")}async getEditionDrop(e){return await this.getContract(e,"edition-drop")}async getEdition(e){return await this.getContract(e,"edition")}async getTokenDrop(e){return await this.getContract(e,"token-drop")}async getToken(e){return await this.getContract(e,"token")}async getVote(e){return await this.getContract(e,"vote")}async getSplit(e){return await this.getContract(e,"split")}async getMarketplace(e){return await this.getContract(e,"marketplace")}async getMarketplaceV3(e){return await this.getContract(e,"marketplace-v3")}async getPack(e){return await this.getContract(e,"pack")}async getMultiwrap(e){return await this.getContract(e,"multiwrap")}async getContract(e,n){let r;let a=await (0,i.aL)(e);if(this.contractCache.has(a))return this.contractCache.get(a);if(a in O)return await this.getContractFromAbi(a,O[a]);if(n&&"custom"!==n)r="string"==typeof n&&n in i.h?await i.h[n].initialize(this.getSignerOrProvider(),a,this.storage,this.options):await this.getContractFromAbi(a,n);else try{let e=await this.getPublisher().fetchCompilerMetadataFromAddress(a);r=await this.getContractFromAbi(a,await (0,i.ak)(a,i.bj.parse(e.abi),this.getProvider(),this.options,this.storage))}catch(n){let e=await this.resolveContractType(a);if(e&&"custom"!==e){let n=await i.h[e].getAbi(a,this.getProvider(),this.storage);r=await this.getContractFromAbi(a,await (0,i.ak)(a,i.bj.parse(n),this.getProvider(),this.options,this.storage))}else throw n}return this.contractCache.set(a,r),r}async getBuiltInContract(e,n){return await this.getContract(e,n)}
343async resolveContractType(e){try{let n=(await r.e(59189).then(r.t.bind(r,59189,19))).default,a=new v.CH(await (0,i.aL)(e),n,this.getProvider()),o=k.ZN(await a.contractType()).replace(/\x00/g,"");return(0,i.j)(o)}catch(e){return"custom"}}async getContractList(e){let n=await (await this.deployer.getRegistry())?.getContractAddresses(await i.aL(e))||[],r=(await this.getProvider().getNetwork()).chainId;return await Promise.all(n.map(async e=>({address:e,chainId:r,contractType:()=>this.resolveContractType(e),metadata:async()=>(await this.getContract(e)).metadata.get(),extensions:async()=>J((await this.getContract(e)).abi)})))}async getMultichainContractList(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_.gL9,r=await this.multiChainRegistry.getContractAddresses(e),i=n.reduce((e,n)=>(e[n.chainId]=n,e),{}),a={};return r.map(e=>{let{address:r,chainId:o}=e;if(!i[o])return{address:r,chainId:o,contractType:async()=>"custom",metadata:async()=>({name:""}),extensions:async()=>[]};try{let e=a[o];return e||(e=new ey(o,{...this.options,readonlySettings:void 0,supportedChains:n},this.storage),a[o]=e),{address:r,chainId:o,contractType:()=>e.resolveContractType(r),metadata:async()=>(await e.getContract(r)).metadata.get(),extensions:async()=>J((await e.getContract(r)).abi)}}catch(e){return{address:r,chainId:o,contractType:async()=>"custom",metadata:async()=>({name:""}),extensions:async()=>[]}}})}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.updateContractSignerOrProvider()}updateContractSignerOrProvider(){for(let[,e]of(this.wallet.connect(this.getSignerOrProvider()),this.deployer.updateSignerOrProvider(this.getSignerOrProvider()),this._publisher.updateSignerOrProvider(this.getSignerOrProvider()),this.multiChainRegistry.updateSigner(this.getSignerOrProvider()),this.verifier.updateSignerOrProvider(this.getSignerOrProvider()),this.contractCache))e.onNetworkUpdated(this.getSignerOrProvider())}async getContractFromAbi(e,n){let[a,{SmartContract:o}]=await Promise.all([(0,i.aL)(e),Promise.all([r.e(82123),r.e(14611),r.e(7681),r.e(88309),r.e(94913),r.e(91202),r.e(27715),r.e(1343),r.e(89353)]).then(r.bind(r,89353))]);if(this.contractCache.has(a))return this.contractCache.get(a);let[,s]=(0,i.b3)(this.getSignerOrProvider(),this.options),f="string"==typeof n?JSON.parse(n):n,l=new o(this.getSignerOrProvider(),a,f,this.storageHandler,this.options,(await s.getNetwork()).chainId);return this.contractCache.set(a,l),l}async getBalance(e){return(0,N.a)(this.getProvider(),i.aV,await this.getProvider().getBalance(await (0,i.aL)(e)))}getPublisher(){return this._publisher}}function em(e,n){return(0,i.b1)(e)&&(n={...n,supportedChains:[e,...n?.supportedChains||[]]}),n}let eg="0xdd99b75f095d0c4d5112aCe938e4e6ed962fb024";class eb extends i.cr{transactionListener=e=>{"submitted"===e.status&&this.events.emit("contractDeployed",{status:"submitted",transactionHash:e.transactionHash})};constructor(e,n,r){super(e,n),this.storage=r,this.events=new j.Z,this.getFactory(),this.getRegistry()}deployNFTCollection=(0,c.h)(async(e,n)=>await this.deployBuiltInContract.prepare(i.N.contractType,e,"latest",n));deployNFTDrop=(0,c.h)(async(e,n)=>await this.deployBuiltInContract.prepare(i.d.contractType,e,"latest",n));deployLoyaltyCard=(0,c.h)(async(e,n)=>{let r=await el.parseAsync(e),i=await this.storage.upload(r),a=[];e.trusted_forwarders&&e.trusted_forwarders.length>0&&a.push(...e.trusted_forwarders);
343let o=[await this.getSigner()?.getAddress(),r.name,r.symbol,i,a,r.primary_sale_recipient,r.fee_recipient,r.seller_fee_basis_points,r.platform_fee_basis_points,r.platform_fee_recipient];return await this.deployReleasedContract.prepare(eg,"LoyaltyCard",o,"latest",n)});deployOpenEdition=(0,c.h)(async(e,n)=>{let r=await i.bT.deploy.parseAsync(e),a=await this.storage.upload(r),o=[];e.trusted_forwarders&&e.trusted_forwarders.length>0&&o.push(...e.trusted_forwarders);let s=[await this.getSigner()?.getAddress(),r.name,r.symbol,a,o,r.primary_sale_recipient,r.fee_recipient,r.seller_fee_basis_points];return await this.deployPublishedContract.prepare(eg,"OpenEditionERC721",s,"latest",n)});deploySignatureDrop=(0,c.h)(async(e,n)=>await this.deployBuiltInContract.prepare(i.e.contractType,e,"latest",n));deployMultiwrap=(0,c.h)(async(e,n)=>await this.deployBuiltInContract.prepare(i.c.contractType,e,"latest",n));deployEdition=(0,c.h)(async(e,n)=>await this.deployBuiltInContract.prepare(i.a.contractType,e,"latest",n));deployEditionDrop=(0,c.h)(async(e,n)=>await this.deployBuiltInContract.prepare(i.E.contractType,e,"latest",n));deployToken=(0,c.h)(async(e,n)=>await this.deployBuiltInContract.prepare(i.g.contractType,e,"latest",n));deployTokenDrop=(0,c.h)(async(e,n)=>await this.deployBuiltInContract.prepare(i.T.contractType,e,"latest",n));deployMarketplace=(0,c.h)(async(e,n)=>await this.deployBuiltInContract.prepare(i.M.contractType,e,"latest",n));deployMarketplaceV3=(0,c.h)(async(e,n)=>await this.deployBuiltInContract.prepare(i.b.contractType,e,"latest",n));deployPack=(0,c.h)(async(e,n)=>await this.deployBuiltInContract.prepare(i.P.contractType,e,"latest",n));deploySplit=(0,c.h)(async(e,n)=>await this.deployBuiltInContract.prepare(i.f.contractType,e,"latest",n));deployVote=(0,c.h)(async(e,n)=>await this.deployBuiltInContract.prepare(i.V.contractType,e,"latest",n));deployAirdropERC20=(0,c.h)(async(e,n)=>{let r=await eu.parseAsync(e),i=await this.storage.upload(r),a=[];e.trusted_forwarders&&e.trusted_forwarders.length>0&&a.push(...e.trusted_forwarders);
343let o=await this.getSigner()?.getAddress();return await this.deployReleasedContract.prepare(eg,"AirdropERC20",[o,i,a],"latest",n)});deployAirdropERC721=(0,c.h)(async(e,n)=>{let r=await eu.parseAsync(e),i=await this.storage.upload(r),a=[];e.trusted_forwarders&&e.trusted_forwarders.length>0&&a.push(...e.trusted_forwarders);let o=await this.getSigner()?.getAddress();return await this.deployReleasedContract.prepare(eg,"AirdropERC721",[o,i,a],"latest",n)});deployAirdropERC1155=(0,c.h)(async(e,n)=>{let r=await eu.parseAsync(e),i=await this.storage.upload(r),a=[];e.trusted_forwarders&&e.trusted_forwarders.length>0&&a.push(...e.trusted_forwarders);let o=await this.getSigner()?.getAddress();return await this.deployReleasedContract.prepare(eg,"AirdropERC1155",[o,i,a],"latest",n)});deployBuiltInContract=(0,c.h)((()=>{var e=this;return async function(n,r){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"latest",o=arguments.length>3?arguments[3]:void 0,s=e.getSigner();(0,l.Z)(s,"A signer is required to deploy contracts");let f={app_uri:i.i[n],...await i.h[n].schema.deploy.parseAsync(r)};if(e.hasLocalFactory()){let r;try{r=parseInt(a),isNaN(r)&&(r=void 0)}catch(e){r=void 0}let s=await e.getFactory();if(!s)throw Error("Factory not found");return s.on(i.aZ.Transaction,e.transactionListener),s.deploy.prepare(n,f,e.events,r,o,()=>{s.off(i.aZ.Transaction,e.transactionListener)})}let u=(0,i.k)(n);(0,l.Z)(u,"Contract name not found");let c=await e.storage.upload(f),d=await ea(n,f,c,s),p=await e.fetchPublishedContractFromPolygon(eg,u,a);return e.deployContractFromUri.prepare(p.metadataUri,d,o)}})());async getLatestBuiltInContractVersion(e){let n=await this.getFactory();if(!n)throw Error("Factory not found");return await n.getLatestVersion(e)}deployReleasedContract=(0,c.h)((()=>{var e=this;return async function(n,r,i){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"latest",o=arguments.length>4?arguments[4]:void 0,s=await e.fetchPublishedContractFromPolygon(n,r,a);return await e.deployContractFromUri.prepare(s.metadataUri,i,o)}})());deployPublishedContract=this.deployReleasedContract;async deployPublishedContractDeterministic(e,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:eg,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"latest",a=arguments.length>4?arguments[4]:void 0,o=this.getSigner();return(0,l.Z)(o,"Signer is required"),ed(e,r,i,n,o,this.storage,this.options.clientId,this.options.secretKey,a)}async predictAddressDeterministic(e,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:eg,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"latest",a=arguments.length>4?arguments[4]:void 0,o=this.getProvider();return(0,l.Z)(o,"Provider is required"),eh(e,r,i,n,o,this.storage,this.options.clientId,this.options.secretKey,a)}deployViaFactory=(0,c.f)(async(e,n,r,a,o,s)=>{let f=await (0,i.aL)(e),u=await (0,i.aL)(n),c=this.getSigner();(0,l.Z)(c,"signer is required");let d=new es(f,this.getSignerOrProvider(),this.storage,this.options);return d.on(i.aZ.Transaction,this.transactionListener),await d.deployProxyByImplementation.prepare(u,r,a,o,this.events,s,()=>{d.off(i.aZ.Transaction,this.transactionListener)})});deployProxy=(0,c.h)(async(e,n,a,o)=>{let s=await (0,i.aL)(e),f=v.CH.getInterface(n).encodeFunctionData(a,o),{TWProxy__factory:l}=await r.e(55986).then(r.bind(r,55986));return this.deployContractWithAbi.prepare(l.abi,l.bytecode,[s,f])});deployViaAutoFactory=(0,c.h)(async(e,n,r,a,o,s)=>{let f=await er(r,s),l=await (0,P.g)(e,this.storage,this.getProvider(),f,this.options.clientId,this.options.secretKey),u=l.find(e=>"implementation"===e.type)?.transaction.predictedAddress,c=l.filter(e=>e.transaction.data&&e.transaction.data.length>0),d=c.filter(e=>"infra"!==e.type).map(e=>e.transaction),p=c.filter(e=>"infra"===e.type).map(e=>e.transaction);for(let e of(await (0,P.a)(r,p,s),d))try{await (0,P.d)(r,e,s)}catch(n){throw console.debug(`Error deploying contract at ${e.predictedAddress}`,n?.message),n}let h=await (0,i.aL)(u),y=await et(this.getProvider(),this.storage,f,this.options.clientId,this.options.secretKey);s?.notifier?.("deploying","proxy");let m=await this.deployViaFactory.prepare(y,h,n.compilerMetadata.abi,a,o,s?.saltForProxyDeploy);return s?.notifier?.("deployed","proxy"),m});deployViaCustomFactory=(0,c.h)(async(e,n,r,a)=>{let o;let s=n.extendedMetadata?.factoryDeploymentData?.customFactoryInput?.customFactoryAddresses[a],f=await (0,i.aL)(s);(0,l.Z)(f,`customFactoryAddress not found for chainId '${a}'`),(0,l.Z)(n.extendedMetadata?.factoryDeploymentData?.customFactoryInput?.factoryFunction,"customFactoryFunction not set'");let u=await (0,i.K)(f,this.getProvider(),this.storage,this.options),d=en(ee(u.abi,n.extendedMetadata.factoryDeploymentData.customFactoryInput.factoryFunction).map(e=>e.type),e),p=await c.T.fromContractInfo({contractAddress:f,contractAbi:u.abi,provider:this.getProvider(),signer:r,method:n.extendedMetadata.factoryDeploymentData.customFactoryInput.factoryFunction,args:d,parse:()=>o,storage:this.storage});return o=await p.simulate(),p});async getRegistry(){return this._registry?this._registry:this._registry=this.getProvider().getNetwork().then(async e=>{let{chainId:n}=e,a=(0,i.aP)(n,"twRegistry");if(!a)return;let o=(await r.e(43320).then(r.t.bind(r,43320,19))).default;
343return new ef(a,this.getSignerOrProvider(),this.storage,o,this.options)})}async getFactory(){return this._factory?this._factory:this._factory=this.getProvider().getNetwork().then(async e=>{let{chainId:n}=e,r=(0,i.aP)(n,"twFactory");if(r)return new es(r,this.getSignerOrProvider(),this.storage,this.options)})}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.updateContractSignerOrProvider()}updateContractSignerOrProvider(){this._factory?.then(e=>{e?.updateSignerOrProvider(this.getSignerOrProvider())}).catch(()=>{}),this._registry?.then(e=>{e?.updateSignerOrProvider(this.getSignerOrProvider())}).catch(()=>{})}deployContractFromUri=(0,c.h)(async(e,n,r)=>{let a=this.getSigner();(0,l.Z)(a,"A signer is required");let{compilerMetadata:o,extendedMetadata:s}=await (0,i.aJ)(e,this.storage),f=r?.forceDirectDeploy||!1,u=(await this.getProvider().getNetwork()).chainId,c=s?.networksForDeployment?.networksEnabled.includes(u)||s?.networksForDeployment?.allNetworks;if(s?.networksForDeployment&&!c&&"AccountFactory"!==o.name)throw Error(`Deployments disabled on this network, with chainId: ${u}`);if(s&&s.factoryDeploymentData&&(s.isDeployableViaProxy||s.isDeployableViaFactory||s.deployType&&"standard"!==s.deployType)&&!f){if("customFactory"===s.deployType)return await this.deployViaCustomFactory.prepare(n,{compilerMetadata:o,extendedMetadata:s},a,u);{(0,l.Z)(s.factoryDeploymentData.implementationInitializerFunction,"implementationInitializerFunction not set'");let f=en(ee(o.abi,s.factoryDeploymentData.implementationInitializerFunction).map(e=>e.type),n),c=s.factoryDeploymentData.implementationAddresses[u];if(!c||"autoFactory"===s.deployType)return await this.deployViaAutoFactory.prepare(e,{compilerMetadata:o,extendedMetadata:s},a,s.factoryDeploymentData.implementationInitializerFunction,f,r);let d=await (0,i.aL)(c);if((0,l.Z)(d,`implementationAddress not found for chainId '${u}'`),s.isDeployableViaFactory){(0,l.Z)(s.factoryDeploymentData.factoryAddresses,"isDeployableViaFactory is true so factoryAddresses is required");let e=s.factoryDeploymentData.factoryAddresses[u];(0,l.Z)(e,`isDeployableViaFactory is true and factoryAddress not found for chainId '${u}'`);let n=await (0,i.aL)(e);return await this.deployViaFactory.prepare(n,d,o.abi,s.factoryDeploymentData.implementationInitializerFunction,f,r?.saltForProxyDeploy)}if(s.isDeployableViaProxy)return await this.deployProxy.prepare(d,o.abi,s.factoryDeploymentData.implementationInitializerFunction,f)}}let d=o.bytecode.startsWith("0x")?o.bytecode:`0x${o.bytecode}`;if(!x.isHexString(d))throw Error(`Contract bytecode is invalid. 344 345${d}`);let p=en((0,i.a1)(o.abi).map(e=>e.type),n);return this.deployContractWithAbi.prepare(o.abi,d,p)});deployContractWithAbi=(0,c.h)(async(e,n,r)=>{let i=this.getSigner(),a=this.getProvider();(0,l.Z)(i,"Signer is required to deploy contracts");let o=new v.lV(e,n).connect(i);return new c.D({args:r,provider:a,signer:i,factory:o,storage:this.storage,events:this.events})});async getTransactionsForDeploy(e,n){let r=[],a=this.getProvider();(0,l.Z)(a,"A provider is required");let{extendedMetadata:o}=await (0,i.aJ)(e,this.storage),s=n?.forceDirectDeploy||!1;if(o&&o.factoryDeploymentData&&(o.isDeployableViaProxy||o.isDeployableViaFactory||"autoFactory"===o.deployType)&&!s){let n=(await this.getProvider().getNetwork()).chainId;if(!o.factoryDeploymentData.implementationAddresses[n]||"autoFactory"===o.deployType){let n=await (0,i.aw)(this.getProvider());r.push({contractType:"create2Factory",addresses:[n]});let a=(await (0,P.g)(e,this.storage,this.getProvider(),n,this.options.clientId,this.options.secretKey)).filter(e=>e.transaction.data&&e.transaction.data.length>0);a.filter(e=>"infra"!==e.type).map(e=>e.transaction).forEach(e=>{r.push({contractType:"preset",addresses:[e.predictedAddress]})});let o=a.filter(e=>"infra"===e.type).map(e=>e.transaction);(0,P.c)(o).forEach(e=>{let n=e.map(e=>e.predictedAddress);r.push({contractType:"infra",addresses:n})})}(r=(await Promise.all(r.map(async e=>(await Promise.all(e.addresses.map(async e=>await (0,i.au)(e,a)?null:e))).filter(Boolean).length>
3450?e:null))).filter(Boolean)).push({contractType:"proxy",addresses:[]})}else r.push({contractType:"custom",addresses:[]});return r}addDeployListener(e){this.events.on("contractDeployed",e)}removeDeployListener(e){this.events.off("contractDeployed",e)}removeAllDeployListeners(){this.events.removeAllListeners("contractDeployed")}async fetchPublishedContractFromPolygon(e,n,r){let a=await (0,i.aL)(e),o=await new ey("polygon",{clientId:this.options.clientId,secretKey:this.options.secretKey},this.storage).getPublisher().getVersion(a,n,r);if(!o)throw Error(`No published contract found for '${n}' at version '${r}' by '${a}'`);return o}hasLocalFactory(){return!!(0,i.cv)("factoryAddress")}}},23437:function(e,n,r){"use strict";r.d(n,{D:function(){return I},T:function(){return E},a:function(){return g},b:function(){return b},c:function(){return v},f:function(){return M},g:function(){return m},h:function(){return C}});var i=r(2515),a=r(61744),o=r(2593),s=r(64146),f=r(31886),l=r(16441),u=r(9279),c=r(19485),d=r(38197),p=r(22555),h=r(40721),y=r(38776);async function m(e){e.originalProvider&&(e=e.originalProvider);let n=await g(e);return n.maxFeePerGas&&n.maxPriorityFeePerGas?{maxFeePerGas:n.maxFeePerGas,maxPriorityFeePerGas:n.maxPriorityFeePerGas}:{gasPrice:await b(e)}}async function g(e){let n=null,[{chainId:r},i,s]=await Promise.all([e.getNetwork(),e.getBlock("latest"),e.send("eth_maxPriorityFeePerGas",[]).catch(()=>null)]),f=i&&i.baseFeePerGas?i.baseFeePerGas:a.parseUnits("100","wei");if(r===p.WNf.chainId||r===p.IsU.chainId)return{maxFeePerGas:null,maxPriorityFeePerGas:null,baseFee:null};if(r===p.Nj4.chainId||r===p.mgq.chainId)n=await T(r);else if(s)n=o.O$.from(s);else if(!(n=(await e.getFeeData()).maxPriorityFeePerGas))return{maxFeePerGas:null,maxPriorityFeePerGas:null,baseFee:null};return n=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,r=e.div(100).mul(n);return e.add(r)}(n),{maxFeePerGas:f.mul(2).add(n),maxPriorityFeePerGas:n,baseFee:f}}async function b(e){let n=await e.getGasPrice(),r=a.parseUnits("300","gwei"),i=n.div(100).mul(10),o=n.add(i);return o.gt(r)?r:o}async function v(e,n){let i=(await e.getNetwork()).chainId,a=o.O$.from(0);if(i===p.qry.chainId||i===p.ZfX.chainId||i===p.XYF.chainId||i===p._dw.chainId||i===p.eEd.chainId||i===p.rBG.chainId||i===p.Lll.chainId||i===p.M8s.chainId||204===i||5611===i){let{asL2Provider:i}=await Promise.all([r.e(41588),r.e(69957),r.e(24296),r.e(247),r.e(4783),r.e(16280),r.e(84067),r.e(97612),r.e(57115),r.e(89539),r.e(40513),r.e(39220),r.e(28304)]).then(r.t.bind(r,39220,23)),o=i(e);a=await o.estimateL1GasCost(n)}let s=n.gasLimit||await e.estimateGas(n),f=await b(e);return o.O$.from(s).mul(f).add(a)}let w=a.parseUnits("31","gwei"),x=a.parseUnits("1","gwei");async function T(e){let n=function(e){switch(e){case i.aS.Polygon:return"https://gasstation.polygon.technology/v2";case i.aS.Mumbai:return"https://gasstation-testnet.polygon.technology/v2"}}(e);try{let e=(await (await fetch(n)).json()).fast.maxPriorityFee;if(e>0){let n=parseFloat(e).toFixed(9);return a.parseUnits(n,"gwei")}}catch{}return function(e){switch(e){case i.aS.Polygon:return w;case i.aS.Mumbai:return x}}(e)}function C(e){async function n(){let n=await e(...arguments);return n.execute()}return n.prepare=e,n}function M(e){async function n(){let n=await e(...arguments);return n.execute()}return n.prepare=e,n}class A{constructor(e){this.args=e.args,this.overrides=e.overrides||{},this.provider=e.provider,this.signer=e.signer,this.storage=e.storage,this.signer.provider||(this.signer=this.signer.connect(this.provider))}get getSigner(){return this.signer}get getProvider(){return this.provider}get getStorage(){return this.storage}getArgs(){return this.args}getOverrides(){return this.overrides}getValue(){return this.overrides.value||0}setArgs(e){return this.args=e,this}setOverrides(e){return this.overrides=e,this}updateOverrides(e){return this.overrides={...this.overrides,...e},this}setValue(e){return this.updateOverrides({value:e}),this}
345setGasLimit(e){return this.updateOverrides({gasLimit:e}),this}setGasPrice(e){return this.updateOverrides({gasPrice:e}),this}setNonce(e){return this.updateOverrides({nonce:e}),this}setMaxFeePerGas(e){return this.updateOverrides({maxFeePerGas:e}),this}setMaxPriorityFeePerGas(e){return this.updateOverrides({maxPriorityFeePerGas:e}),this}setType(e){return this.updateOverrides({type:e}),this}setAccessList(e){return this.updateOverrides({accessList:e}),this}setCustomData(e){return this.updateOverrides({customData:e}),this}setCcipReadEnabled(e){return this.updateOverrides({ccipReadEnabled:e}),this}setGasLimitMultiple(e){o.O$.isBigNumber(this.overrides.gasLimit)?this.overrides.gasLimit=o.O$.from(Math.floor(o.O$.from(this.overrides.gasLimit).toNumber()*e)):this.gasMultiple=e}async getGasPrice(){return b(this.provider)}async getSignerAddress(){return this.signer.getAddress()}async getGasOverrides(){return(0,h.jU)()?{}:m(this.provider)}}class E extends A{static fromContractWrapper(e){let n=e.contractWrapper.getSigner();if(!n)throw Error("Cannot create a transaction without a signer. Please ensure that you have a connected signer.");return new E({...e,contract:e.contractWrapper.writeContract,provider:e.contractWrapper.getProvider(),signer:n,gasless:e.contractWrapper.options.gasless,storage:e.contractWrapper.storage})}static async fromContractInfo(e){let n=e.storage,r=e.contractAbi;if(!r)try{r=(await (0,i.K)(e.contractAddress,e.provider,n)).abi}catch{throw Error(`Could resolve contract metadata for address ${e.contractAddress}. Please pass the contract ABI manually with the 'contractAbi' option.`)}let a=new s.CH(e.contractAddress,r,e.provider);return new E({...e,storage:n,contract:a})}constructor(e){super({args:e.args,overrides:e.overrides,provider:e.provider,signer:e.signer,storage:e.storage}),this.method=e.method,this.gaslessOptions=e.gasless,this.parse=e.parse,this.contract=e.contract.connect(this.signer),this.storage=e.storage}getTarget(){return this.contract.address}getMethod(){return this.method}getGaslessOptions(){return this.gaslessOptions}setGaslessOptions(e){return this.gaslessOptions=e,this}setParse(e){return this.parse=e,this}encode(){return this.contract.interface.encodeFunctionData(this.method,this.args)}async sign(){let e=await this.populateTransaction();return await this.contract.signer.signTransaction(e)}async populateTransaction(){let e={...await this.getGasOverrides(),...this.overrides};e.gasLimit||(e.gasLimit=await this.estimateGasLimit());let n=await this.contract.populateTransaction[this.method](...this.args,e);return await this.contract.signer.populateTransaction(n)}async simulate(){if(!this.contract.callStatic[this.method])throw this.functionError();try{return await this.contract.callStatic[this.method](...this.args,...this.overrides.value?[{value:this.overrides.value}]:[])}catch(e){throw await this.transactionError(e)}}async estimateGasLimit(){if(!this.contract.estimateGas[this.method])throw this.functionError();try{let e=await this.contract.estimateGas[this.method](...this.args,this.overrides);if(this.gasMultiple)return o.O$.from(Math.floor(o.O$.from(e).toNumber()*this.gasMultiple));return e}catch(e){throw await this.simulate(),await this.transactionError(e)}}async estimateGasCost(){let e=await v(this.provider,await this.populateTransaction());return{ether:a.formatEther(e),wei:e}}async send(){if(!this.contract.functions[this.method])throw this.functionError();if(this.gaslessOptions&&("openzeppelin"in this.gaslessOptions||"biconomy"in this.gaslessOptions||"engine"in this.gaslessOptions))return this.sendGasless();let e={...await this.getGasOverrides(),...this.overrides};e.gasLimit||(e.gasLimit=await this.estimateGasLimit());try{return await this.contract.functions[this.method](...this.args,e)}catch(e){throw await this.transactionError(e)}}async execute(){let e;let n=await this.send();try{e=await n.wait()}catch(e){throw await this.simulate(),await this.transactionError(e)}return this.parse?this.parse(e):{receipt:e}}async sendGasless(){let e;let n=await this.prepareGasless(),r=await S(n,this.signer,this.provider,this.storage,this.gaslessOptions),i=1;for(;!e;){try{e=await this.provider.getTransaction(r)}catch(e){}if(!e&&(await new Promise(e=>setTimeout(e,Math.min(1e3*i,1e4))),i++),i>20)throw Error(`Unable to retrieve transaction with hash ${r}`)}return e}async prepareGasless(){(0,y.Z)(this.gaslessOptions&&("openzeppelin"in this.gaslessOptions||"biconomy"in this.gaslessOptions||"engine"in this.gaslessOptions),"No gasless options set on this transaction!");
345let e=await this.getSignerAddress(),n=[...this.args];"multicall"===this.method&&Array.isArray(this.args[0])&&n[0].length>0&&(n[0]=n[0].map(n=>f.pack(["bytes","address"],[n,e]))),(0,y.Z)(this.signer,"Cannot execute gasless transaction without valid signer");let[{chainId:r},i]=await Promise.all([this.provider.getNetwork(),this.overrides.from||e]),a=this.contract.address,s=this.overrides?.value||0;if(o.O$.from(s).gt(0))throw Error("Cannot send native token value with gasless transaction");let l=this.contract.interface.encodeFunctionData(this.method,n),u=o.O$.from(0);try{u=(await this.contract.estimateGas[this.method](...n)).mul(2)}catch(e){}return u.lt(1e5)&&(u=o.O$.from(5e5)),this.overrides.gasLimit&&o.O$.from(this.overrides.gasLimit).gt(u)&&(u=o.O$.from(this.overrides.gasLimit)),{from:i,to:a,data:l,chainId:r,gasLimit:u,functionName:this.method,functionArgs:n,callOverrides:this.overrides}}functionError(){return Error(`Contract "${this.contract.address}" does not have function "${this.method}"`)}async transactionError(e){let n;let r=this.provider,[a,s]=await Promise.all([r.getNetwork(),this.overrides.from||this.get
345SignerAddress()]),f=this.contract.address,l=this.encode(),u=o.O$.from(this.overrides.value||0),c=r.connection?.url,d=this.contract.interface.getFunction(this.method),p=this.args.map(e=>JSON.stringify(e).length<=80?JSON.stringify(e):JSON.stringify(e,void 0,2)),h=p.join(", ").length<=80?p.join(", "):"\n"+p.map(e=>" "+e.split("\n").join("\n ")).join(",\n")+"\n",y=`${d.name}(${h})`,m=e.transactionHash||e.transaction?.hash||e.receipt?.transactionHash,g=(0,i.z)(e);try{let e=(await r.getNetwork()).chainId,a=(0,i.J)(this.contract.address,e);a?.name&&(n=a.name)}catch(e){}return new i.y({reason:g,from:s,to:f,method:y,data:l,network:a,rpcUrl:c,value:u,hash:m,contractName:n},e)}}class I extends A{constructor(e){super(e),this.factory=e.factory,this.events=e.events}encode(){return l.hexlify(l.concat([this.factory.bytecode,this.factory.interface.encodeDeploy(this.args)]))}getTarget(){return u.d}getMethod(){return"deploy"}async sign(){let e=await this.populateTransaction();return this.signer.signTransaction(e)}async simulate(){let e=await this.populateTransaction();return this.signer.call(e)}async estimateGasLimit(){try{let e={...await this.getGasOverrides(),...this.overrides},n=this.factory.getDeployTransaction(...this.args,e);return this.signer.estimateGas(n)}catch(e){throw await this.deployError(e)}}async estimateGasCost(){let e={...await this.getGasOverrides(),...this.overrides},n=this.factory.getDeployTransaction(...this.args,e),r=await v(this.provider,n);return{ether:a.formatEther(r),wei:r}}async send(){try{let e=await this.populateTransaction();return await this.signer.sendTransaction(e)}catch(e){throw await this.deployError(e)}}async execute(){let e=await this.send();try{await e.wait()}catch(e){throw await this.simulate(),await this.deployError(e)}let n=c.getContractAddress({from:e.from,nonce:e.nonce});return this.events&&this.events.emit("contractDeployed",{status:"completed",contractAddress:n,transactionHash:e.hash}),n}async populateTransaction(){let e={...await this.getGasOverrides(),...this.overrides};return e.gasLimit||(e.gasLimit=await this.estimateGasLimit()),this.factory.getDeployTransaction(...this.args,e)}async deployError(e){let n=this.provider,[r,a]=await Promise.all([n.getNetwork(),this.overrides.from||this.get
345SignerAddress()]),s=this.encode(),f=o.O$.from(this.overrides.value||0),l=n.connection?.url,u=this.args.map(e=>JSON.stringify(e).length<=80?JSON.stringify(e):JSON.stringify(e,void 0,2)),c=u.join(", ").length<=80?u.join(", "):"\n"+u.map(e=>" "+e.split("\n").join("\n ")).join(",\n")+"\n",d=`deployContract(${c})`,p=e.transactionHash||e.transaction?.hash||e.receipt?.transactionHash,h=(0,i.z)(e);return new i.y({reason:h,from:a,method:d,data:s,network:r,rpcUrl:l,value:f,hash:p},e)}}async function S(e,n,r,i,a){return a&&"biconomy"in a?N(e,n,r,a):a&&"openzeppelin"in a?j(e,n,r,i,a):k(e,n,r,i,a)}async function k(e,n,r,i,a){(0,y.Z)(a&&"engine"in a,"calling engine gasless transaction without engine config in the SDK options");let o=await D(e,n,r,i,a),s=await fetch(a.engine.relayerUrl,{...o,headers:{"Content-Type":"application/json"}}),f=await s.json();if(f.error)throw Error(f.error?.message||JSON.stringify(f.error));let l=f.result.queueId,u=a.engine.relayerUrl.split("/relayer/")[0],c=Date.now();for(;;){let e=await fetch(`${u}/transaction/status/${l}`),n=await e.json();if(n.result.transactionHash)return n.result.transactionHash;if(Date.now()-c>3e4)throw Error("timeout");await new Promise(e=>setTimeout(e,2e3))}}async function N(e,n,r,i){let a=await O(e,n,r,i),o=await fetch("https://api.biconomy.io/api/v2/meta-tx/native",a);if(o.ok){let e=await o.json();if(!e.txHash)throw Error(`relay transaction failed: ${e.log}`);return e.txHash}throw Error(`relay transaction failed with status: ${o.status} (${o.statusText})`)}async function j(e,n,r,i,a){(0,y.Z)(a&&"openzeppelin"in a,"calling openzeppelin gasless transaction without openzeppelin config in the SDK options");let o=await _(e,n,r,i,a),s=await fetch(a.openzeppelin.relayerUrl,o);if(s.ok){let e=await s.json();if(!e.result)throw Error(`Relay transaction failed: ${e.message}`);return JSON.parse(e.result).txHash}throw Error(`relay transaction failed with status: ${s.status} (${s.statusText})`)}async function D(e,n,a,f,l){(0,y.Z)(l&&"engine"in l,"calling engine gasless transaction without openzeppelin config in the SDK options");try{let r=await (0,i.K)(e.to,a,f),o=(await a.getNetwork()).chainId,s=await (0,i.ak)(e.to,r.abi,a,{},f),l=new i.cs(n,e.to,s,{},f);if(s.find(e=>"executeMetaTransaction"===e.name)){let r={name:await l.call("name",[]),version:"1",salt:"0x"+o.toString(16).padStart(64,"0"),verifyingContract:e.to},a={nonce:await l.call("getNonce",[e.from]),from:e.from,functionSignature:e.data},{signature:s}=await (0,i.aM)(n,r,{MetaTransaction:[{name:"nonce",type:"uint256"},{name:"from",type:"address"},{name:"functionSignature",type:"bytes"}]},a);return{method:"POST",body:JSON.stringify({type:"execute-meta-transaction",request:{from:e.from,to:e.to,data:e.data},signature:s})}}}catch{}if("approve"===e.functionName&&2===e.functionArgs.length){let r=e.functionArgs[0],a=e.functionArgs[1],{message:s,signature:f}=await (0,i.dv)(n,e.to,e.from,r,a,l.engine.domainSeparatorVersion);return{method:"POST",body:JSON.stringify({type:"permit",request:{to:e.to,owner:s.owner,spender:s.spender,value:o.O$.from(s.value).toString(),nonce:o.O$.from(s.nonce).toString(),deadline:o.O$.from(s.deadline).toString()},signature:f})}}{let u,c,d;let p=l.engine.relayerForwarderAddress||i.aO[e.chainId]?.openzeppelinForwarder||await (0,i.aC)(a,f),h=(await r.e(62555).then(r.t.bind(r,62555,19))).default,y=new s.CH(p,h,a),m=await (0,i.dw)(y,"getNonce",[e.from]);l.experimentalChainlessSupport?(u={name:"GSNv2 Forwarder",version:"0.0.1",verifyingContract:p},c={ForwardRequest:i.dx},d={from:e.from,to:e.to,value:o.O$.from(0).toString(),gas:o.O$.from(e.gasLimit).toString(),nonce:o.O$.from(m).toString(),data:e.data,chainid:o.O$.from(e.chainId).toString()}):(u={name:l.engine.domainName,version:l.engine.domainVersion,chainId:e.chainId,verifyingContract:p},c={ForwardRequest:i.dy},d={from:e.from,to:e.to,value:o.O$.from(0).toString(),gas:o.O$.from(e.gasLimit).toString(),nonce:o.O$.from(m).toString(),data:e.data});let{signature:g}=await (0,i.aM)(n,u,c,d);return{method:"POST",body:JSON.stringify({type:"forward",request:d,signature:g,forwarderAddress:p})}}}async function _(e,n,a,f,u){let c,d,p,h;(0,y.Z)(u&&"openzeppelin"in u,"calling openzeppelin gasless transaction without openzeppelin config in the SDK o
345ptions"),(0,y.Z)(n,"provider is not set"),(0,y.Z)(a,"provider is not set");let m=u.openzeppelin.relayerForwarderAddress||(u.openzeppelin.useEOAForwarder?i.aO[e.chainId]?.openzeppelinForwarderEOA||await (0,i.aB)(a,f):i.aO[e.chainId]?.openzeppelinForwarder||await (0,i.aC)(a,f)),g=(await r.e(62555).then(r.t.bind(r,62555,19))).default,b=new s.CH(m,g,a),v=await (0,i.dw)(b,"getNonce",[e.from]);if(u.experimentalChainlessSupport?(c={name:"GSNv2 Forwarder",version:"0.0.1",verifyingContract:m},d={ForwardRequest:i.dx},p={from:e.from,to:e.to,value:o.O$.from(0).toString(),gas:o.O$.from(e.gasLimit).toString(),nonce:o.O$.from(v).toString(),data:e.data,chainid:o.O$.from(e.chainId).toString()}):(c={name:u.openzeppelin.domainName,version:u.openzeppelin.domainVersion,chainId:e.chainId,verifyingContract:m},d={ForwardRequest:i.dy},p={from:e.from,to:e.to,value:o.O$.from(0).toString(),gas:o.O$.from(e.gasLimit).toString(),nonce:o.O$.from(v).toString(),data:e.data}),"approve"===e.functionName&&2===e.functionArgs.length){let r=e.functionArgs[0],a=e.functionArgs[1],{message:s,signature:f}=await (0,i.dv)(n,e.to,e.from,r,a,u.openzeppelin.domainSeparatorVersion),{r:c,s:d,v:y}=l.splitSignature(f);p={to:e.to,owner:s.owner,spender:s.spender,value:o.O$.from(s.value).toString(),nonce:o.O$.from(s.nonce).toString(),deadline:o.O$.from(s.deadline).toString(),r:c,s:d,v:y},h=f}else{let{signature:e}=await (0,i.aM)(n,c,d,p);h=e}let w="forward";return p?.owner&&(w="permit"),{method:"POST",body:JSON.stringify({request:p,signature:h,forwarderAddress:m,type:w})}}async function O(e,n,r,a){(0,y.Z)(a&&"biconomy"in a,"calling biconomySendFunction without biconomy"),(0,y.Z)(n&&r,"signer and provider must be set");let o=new s.CH((0,i.aP)(e.chainId,"biconomyForwarder"),i.dz,r),c=await (0,i.dw)(o,"getNonce",[e.from,0]),p={from:e.from,to:e.to,token:u.d,txGas:e.gasLimit.toNumber(),tokenGasPrice:"0",batchId:0,batchNonce:c.toNumber(),deadline:Math.floor(Date.now()/1e3+(a&&"biconomy"in a&&a.biconomy?.deadlineSeconds||3600)),data:e.data},h=l.arrayify(f.keccak256(["address","address","address","uint256","uint256","uint256","uint256","uint256","bytes32"],[p.from,p.to,p.token,p.txGas,p.tokenGasPrice,p.batchId,p.batchNonce,p.deadline,d.keccak256(p.data)])),m=await n.signMessage(h);return{method:"POST",body:JSON.stringify({from:e.from,apiId:a.biconomy.apiId,params:[p,m],to:e.to,gasLimit:e.gasLimit.toHexString()}),headers:{"x-api-key":a.biconomy.apiKey,"Content-Type":"application/json;charset=utf-8"}}}},18991:function(e){"use strict";var n=Object.prototype.hasOwnProperty,r="~";function i(){}function a(e,n,r){this.fn=e,this.context=n,this.once=r||!1}function o(e,n,i,o,s){if("function"!=typeof i)throw TypeError("The listener must be a function");var f=new a(i,o||e,s),l=r?r+n:n;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],f]:e._events[l].push(f):(e._events[l]=f,e._eventsCount++),e}function s(e,n){0==--e._eventsCount?e._events=new i:delete e._events[n]}function f(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(r=!1)),f.prototype.eventNames=function(){var e,i,a=[];if(0===this._eventsCount)return a;for(i in e=this._events)n.call(e,i)&&a.push(r?i.slice(1):i);return Object.getOwnPropertySymbols?a.concat(Object.getOwnPropertySymbols(e)):a},f.prototype.listeners=function(e){var n=r?r+e:e,i=this._events[n];if(!i)return[];if(i.fn)return[i.fn];for(var a=0,o=i.length,s=Array(o);a<o;a++)s[a]=i[a].fn;return s},f.prototype.listenerCount=function(e){var n=r?r+e:e,i=this._events[n];return i?i.fn?1:i.length:0},f.prototype.emit=function(e,n,i,a,o,s){var f=r?r+e:e;if(!this._events[f])return!1;var l,u,c=this._events[f],d=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,n),!0;case 3:return c.fn.call(c.context,n,i),!0;case 4:return c.fn.call(c.context,n,i,a),!0;case 5:return c.fn.call(c.context,n,i,a,o),!0;case 6:return c.fn.call(c.context,n,i,a,o,s),!0}for(u=1,l=Array(d-1);u<d;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var p,h=c.length;for(u=0;
345u<h;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),d){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,n);break;case 3:c[u].fn.call(c[u].context,n,i);break;case 4:c[u].fn.call(c[u].context,n,i,a);break;default:if(!l)for(p=1,l=Array(d-1);p<d;p++)l[p-1]=arguments[p];c[u].fn.apply(c[u].context,l)}}return!0},f.prototype.on=function(e,n,r){return o(this,e,n,r,!1)},f.prototype.once=function(e,n,r){return o(this,e,n,r,!0)},f.prototype.removeListener=function(e,n,i,a){var o=r?r+e:e;if(!this._events[o])return this;if(!n)return s(this,o),this;var f=this._events[o];if(f.fn)f.fn!==n||a&&!f.once||i&&f.context!==i||s(this,o);else{for(var l=0,u=[],c=f.length;l<c;l++)(f[l].fn!==n||a&&!f[l].once||i&&f[l].context!==i)&&u.push(f[l]);u.length?this._events[o]=1===u.length?u[0]:u:s(this,o)}return this},f.prototype.removeAllListeners=function(e){var n;return e?(n=r?r+e:e,this._events[n]&&s(this,n)):(this._events=new i,this._eventsCount=0),this},f.prototype.off=f.prototype.removeListener,f.prototype.addListener=f.prototype.on,f.prefixed=r,f.EventEmitter=f,e.exports=f},40721:function(e,n,r){"use strict";r.d(n,{EA:function(){return D},XT:function(){return b},jU:function(){return h},ov:function(){return v}});var i=r(64691),a=r(98286),o=r(6230),s=r.n(o),f=r(34155),l=r(48764).Buffer;let u=".ipfscdn.io";function c(e){let n=new URL(e).hostname;return!!n.endsWith(u)||n.endsWith(".thirdwebstorage-staging.com")}let d={"ipfs://":[`https://{clientId}${u}/ipfs/{cid}/{path}`,"https://{cid}.ipfs.cf-ipfs.com/{path}","https://{cid}.ipfs.dweb.link/{path}","https://ipfs.io/ipfs/{cid}/{path}","https://cloudflare-ipfs.com/ipfs/{cid}/{path}","https://{cid}.ipfs.w3s.link/{path}","https://w3s.link/ipfs/{cid}/{path}","https://nftstorage.link/ipfs/{cid}/{path}","https://gateway.pinata.cloud/ipfs/{cid}/{path}"]},p=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return void 0!==f&&f.env[e]?f.env[e]:n}("CUSTOM_UPLOAD_SERVER_URL","https://storage.thirdweb.com");function h(){return"undefined"!=typeof window}function y(e){return r.g.File&&e instanceof File}function m(e){return r.g.Buffer&&e instanceof l}function g(e){return!!(e&&e.name&&e.data&&"string"==typeof e.name&&("string"==typeof e.data||m(e.data)))}function b(e){return y(e)||m(e)||g(e)}function v(e,n){for(let r of Object.keys(n))for(let i of n[r]){if(i.includes("{cid}")){let n=function(e,n){let r=new RegExp(e.replace("{cid}","(?<hash>[^/]+)").replace("{path}","(?<path>[^?#]+)")),i=n.match(r);if(i)return{hash:i.groups?.hash,path:i.groups?.path,query:n.includes("?")?n.substring(n.indexOf("?")+1):""}}(i,e);if(!(n?.hash&&n?.path))return e;{let e=n?.query?`?${n?.query}`:"";return`${r}${n?.hash}/${n?.path}${e}`}}if(e.startsWith(i))return e.replace(i,r)}return e}function w(e,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3?arguments[3]:void 0,o=Object.keys(n).find(n=>e.startsWith(n)),s=o?n[o]:[];if(!o&&r>0||o&&r>=s.length)return;if(!o)return e;let f=e.replace(o,"");try{return function(e,n,r){let a=n.split("/"),o=function(e){let n="";try{let r=e.split("/")[0];n=i.base32(r)}catch(n){throw Error(`The CID ${e} is not valid.`)}return n}(a[0]),s=a.slice(1).join("/"),f=e;if(e.includes("{cid}")&&e.includes("{path}")?f=f.replace("{cid}",o).replace("{path}",s):e.includes("{cid}")?f=f.replace("{cid}",o):f+=`${o}/${s}`,e.includes("{clientId}")){if(!r)throw Error("Cannot use {clientId} in gateway URL without providing a client ID");f=f.replace("{clientId}",r)}return f}(s[r],f,a)}catch(e){console.warn(`The IPFS uri: ${f} is not valid.`);return}}function x(e,n,r){return"string"==typeof e?w(e,n,0,r):"object"==typeof e?!e||b(e)?e:Array.isArray(e)?e.map(e=>x(e,n,r)):Object.fromEntries(Object.entries(e).map(e=>{let[i,a]=e;return[i,x(a,n,r)]})):e}var T={name:"@thirdweb-dev/storage",version:"2.0.15"};let C=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function M(){return"undefined"!=typeof navigator&&"ReactNative"===navigator.product?"":"undefined"!=typeof window?function(e){for(let n=0,r=C.length;n<r;n++){let r=C[n];if(!r)continue;let[i,a]=r;if(a.exec(e))return i}return null}(navigator.userAgent)||"":f.platform}function A(e){let n=E();e["x-sdk-version"]=n.x_sdk_version,e["x-sdk-name"]=n.x_sdk_name,e["x-sdk-platform"]=n.x_sdk_platform,e["x-sdk-os"]=n.x_sdk_os,n.app_bundle_id&&(e["x-bundle-id"]=n.app_bundle_id)}function E(){return"undefined"==typeof globalThis?{x_sdk_name:T.name,x_sdk_platform:I(),x_sdk_version:T.version,x_sdk_os:M(),app_bundle_id:void 0}:(void 0===globalThis.X_SDK_NAME&&(globalThis.X_SDK_NAME=T.name,globalThis.X_SDK_PLATFORM=I(),globalThis.X_SDK_VERSION=T.version,globalThis.X_SDK_OS=M(),globalThis.APP_BUNDLE_ID=void 0),{x_sdk_name:globalThis.X_SDK_NAME,x_sdk_platform:globalThis.X_SDK_PLATFORM,x_sdk_version:globalThis.X_SDK_VERSION,x_sdk_os:globalThis.X_SDK_OS,app_bundle_id:globalThis.APP_BUNDLE_ID||""})}function I(){return"undefined"!=typeof navigator&&"ReactNative"===navigator.product?"mobile":"undefined"!=typeof window?"browser":"node"}class S{DEFAULT_TIMEOUT_IN_SECONDS=60;DEFAULT_MAX_RETRIES=3;constructor(e){this.secretKey=e.secretKey,this.clientId=e.clientId,this.defaultTimeout=e.timeoutInSeconds||this.DEFAULT_TIMEOUT_IN_SECONDS}async download(e,n,r){var i;let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;
345if(a>(r?.maxRetries||this.DEFAULT_MAX_RETRIES))return console.error("[FAILED_TO_DOWNLOAD_ERROR] Failed to download from URI - too many attempts failed."),new Response(JSON.stringify({error:"Not Found"}),{status:404,headers:{"Content-Type":"application/json"}});let o=w(e,n,a,this.clientId);if(!o)return console.error("[FAILED_TO_DOWNLOAD_ERROR] Unable to download from URI - all gateway URLs failed to respond."),new Response(JSON.stringify({error:"Not Found"}),{status:404,headers:{"Content-Type":"application/json"}});a>0&&console.warn(`Retrying download with backup gateway URL: ${o}`);let s={};if(c(o)){let e=E().app_bundle_id;this.secretKey?s={"x-secret-key":this.secretKey}:this.clientId&&(!o.includes("bundleId")&&e&&(o+=e?`?bundleId=${e}`:""),s["x-client-Id"]=this.clientId),"undefined"!=typeof globalThis&&"TW_AUTH_TOKEN"in globalThis&&"string"==typeof globalThis.TW_AUTH_TOKEN&&(s={...s,authorization:`Bearer ${globalThis.TW_AUTH_TOKEN}`}),"undefined"!=typeof globalThis&&"TW_CLI_AUTH_TOKEN"in globalThis&&"string"==typeof globalThis.TW_CLI_AUTH_TOKEN&&((s={...s,authorization:`Bearer ${globalThis.TW_CLI_AUTH_TOKEN}`})["x-authorize-wallet"]="true"),A(s)}if(i=o,k.has(i))return this.download(e,n,r,a+1);let f=new AbortController,l=r?.timeoutInSeconds||this.defaultTimeout,u=setTimeout(()=>f.abort(),1e3*l),d=await fetch(o,{headers:s,signal:f.signal}).catch(e=>e);if(u&&clearTimeout(u),!("status"in d))throw Error(`Request timed out after ${l} seconds. ${c(o)?"You can update the timeoutInSeconds option to increase the timeout.":"You're using a public IPFS gateway, pass in a clientId or secretKey for a reliable IPFS gateway."}`);return d.ok?d:429===d.status?(function(e,n){N.has(e)&&clearTimeout(N.get(e));let r=n.headers.get("Retry-After"),i=5e3;if(r){let e=parseInt(r);isNaN(e)||(i=1e3*e)}k.set(e,!0),N.set(e,setTimeout(()=>k.delete(e),i))}(o,d),this.download(e,n,r,a+1)):410===d.status?(console.error(`Request to ${o} failed because this content seems to be blocklisted. Search VirusTotal for this URL to confirm: ${o} `),d):(console.warn(`Request to ${o} failed with status ${d.status} - ${d.statusText}`),404===d.status&&c(o)||408!==d.status&&429!==d.status&&d.status<500)?d:this.download(e,n,r,a+1)}}let k=new Map,N=new Map;class j{constructor(e){this.uploadWithGatewayUrl=e?.uploadWithGatewayUrl||!1,this.uploadServerUrl=e?.uploadServerUrl||p,this.clientId=e?.clientId,this.secretKey=e?.secretKey}async uploadBatch(e,n){if(n?.uploadWithoutDirectory&&e.length>1)throw Error("[UPLOAD_WITHOUT_DIRECTORY_ERROR] Cannot upload more than one file or object without directory!");let r=new(s()),{form:i,fileNames:a}=this.buildFormData(r,e,n);return h()?this.uploadBatchBrowser(i,a,n):this.uploadBatchNode(i,a,n)}buildFormData(e,n,r){let i=new Map,a=[];for(let o=0;o<n.length;o++){let s=n[o],f="",l=s;if(y(s)){if(r?.rewriteFileNames){let e="";if(s.name){let n=s.name.lastIndexOf(".");n>-1&&(e=s.name.substring(n))}f=`${o+r.rewriteFileNames.fileStartNumber}${e}`}else f=`${s.name}`}else g(s)?(l=s.data,f=r?.rewriteFileNames?`${o+r.rewriteFileNames.fileStartNumber}`:`${s.name}`):f=r?.rewriteFileNames?`${o+r.rewriteFileNames.fileStartNumber}`:`${o}`;let u=r?.uploadWithoutDirectory?"files":`files/${f}`;if(i.has(f)){if(function(e,n){if(y(e)&&y(n)){if(e.name===n.name&&e.lastModified===n.lastModified&&e.size===n.size)return!0}else if(m(e)&&m(n))return e.equals(n);else if(g(e)&&g(n)&&e.name===n.name){if("string"==typeof e.data&&"string"==typeof n.data)return e.data===n.data;if(m(e.data)&&m(n.data))return e.data.equals(n.data)}return!1}(i.get(f),s)){a.push(f);continue}throw Error(`[DUPLICATE_FILE_NAME_ERROR] File name ${f} was passed for more than one different file.`)}i.set(f,s),a.push(f),h()?e.append("file",new Blob([l]),u):e.append("file",l,{filepath:u})}let o={name:"Storage SDK",keyvalues:{...r?.metadata}};return e.append("pinataMetadata",JSON.stringify(o)),r?.uploadWithoutDirectory&&e.append("pinataOptions",JSON.stringify({wrapWithDirectory:!1})),{form:e,fileNames:a.map(e=>encodeURIComponent(e))}}async uploadBatchBrowser(e,n,r){return new Promise((i,a)=>{let o=new XMLHttpRequest,s=setTimeout(()=>{o.abort(),a(Error("Request to upload timed out! No upload progress received in 30s"))},3e4);o.upload.addEventListener("loadstart",()=>{console.log(`[${Date.now()}] [IPFS] Started`)}),o.upload.addEventListener("progress",e=>{console.log(`[IPFS] Progress Event ${e.loaded}/${e.total}`),clearTimeout(s),e.loaded<e.total?s=setTimeout(()=>{o.abort(),a(Error("Request to upload timed out! No upload progress received in 30s"))},3e4):console.log(`[${Date.now()}] [IPFS] Uploaded files. Waiting for response.`),e.lengthComputable&&r?.onProgress&&r?.onProgress({progress:e.loaded,total:e.total})}),o.addEventListener("load",()=>{if(console.log(`[${Date.now()}] [IPFS] Load`),clearTimeout(s),o.status>=200&&o.status<300){let e;try{e=JSON.parse(o.responseText)}catch(e){return a(Error("Failed to parse JSON from upload response"))}
345let s=e.IpfsHash;if(!s)throw Error("Failed to get IPFS hash from upload response");return r?.uploadWithoutDirectory?i([`ipfs://${s}`]):i(n.map(e=>`ipfs://${s}/${e}`))}return a(Error(`Upload failed with status ${o.status} - ${o.responseText}`))}),o.addEventListener("error",()=>(console.log("[IPFS] Load"),clearTimeout(s),0!==o.readyState&&4!==o.readyState||0===o.status)?a(Error("Upload failed due to a network error.")):a(Error("Unknown upload error occured"))),o.open("POST",`${this.uploadServerUrl}/ipfs/upload`),this.secretKey?o.setRequestHeader("x-secret-key",this.secretKey):this.clientId&&o.setRequestHeader("x-client-id",this.clientId),function(e){let n=E();e.setRequestHeader("x-sdk-version",n.x_sdk_version),e.setRequestHeader("x-sdk-os",n.x_sdk_os),e.setRequestHeader("x-sdk-name",n.x_sdk_name),e.setRequestHeader("x-sdk-platform",n.x_sdk_platform),n.app_bundle_id&&e.setRequestHeader("x-bundle-id",n.app_bundle_id)}(o),"undefined"!=typeof globalThis&&"TW_AUTH_TOKEN"in globalThis&&"string"==typeof globalThis.TW_AUTH_TOKEN&&o.setRequestHeader("authorization",`Bearer ${globalThis.TW_AUTH_TOKEN}`),"undefined"!=typeof globalThis&&"TW_CLI_AUTH_TOKEN"in globalThis&&"string"==typeof globalThis.TW_CLI_AUTH_TOKEN&&(o.setRequestHeader("authorization",`Bearer ${globalThis.TW_CLI_AUTH_TOKEN}`),o.setRequestHeader("x-authorize-wallet","true")),o.send(e)})}async uploadBatchNode(e,n,r){r?.onProgress&&console.warn("The onProgress option is only supported in the browser");let i={};this.secretKey?i["x-secret-key"]=this.secretKey:this.clientId&&(i["x-client-id"]=this.clientId),"undefined"!=typeof globalThis&&"TW_AUTH_TOKEN"in globalThis&&"string"==typeof globalThis.TW_AUTH_TOKEN&&(i.authorization=`Bearer ${globalThis.TW_AUTH_TOKEN}`),"undefined"!=typeof globalThis&&"TW_CLI_AUTH_TOKEN"in globalThis&&"string"==typeof globalThis.TW_CLI_AUTH_TOKEN&&(i.authorization=`Bearer ${globalThis.TW_CLI_AUTH_TOKEN}`,i["x-authorize-wallet"]="true"),A(i);let a=await fetch(`${this.uploadServerUrl}/ipfs/upload`,{method:"POST",headers:{...i,...e.getHeaders()},body:e.getBuffer()});if(!a.ok){if(401===a.status)throw Error("Unauthorized - You don't have permission to use this service.");throw Error(`Failed to upload files to IPFS - ${a.status} - ${a.statusText} - ${await a.text()}`)}let o=(await a.json()).IpfsHash;if(!o)throw Error("Failed to upload files to IPFS - Bad CID");return r?.uploadWithoutDirectory?[`ipfs://${o}`]:n.map(e=>`ipfs://${o}/${e}`)}}class D{constructor(e){var n;this.uploader=e?.uploader||new j({clientId:e?.clientId,secretKey:e?.secretKey,uploadServerUrl:e?.uploadServerUrl}),this.downloader=e?.downloader||new S({secretKey:e?.secretKey,clientId:e?.clientId}),this.gatewayUrls=function(e,n,r){let i={...d,...e};for(let e of Object.keys(i)){let o=i[e].map(e=>{if(n&&e.includes("{clientId}"))return e.replace("{clientId}",n);if(r&&e.includes("{clientId}")){if("undefined"!=typeof window)throw Error("Cannot use secretKey in browser context");let n=(0,a.SA)(r).slice(0,32);return e.replace("{clientId}",n)}if(!e.includes("{clientId}"))return e}).filter(e=>void 0!==e);i[e]=o}return i}(Array.isArray(n=e?.gatewayUrls)?{"ipfs://":n}:n||{},e?.clientId,e?.secretKey),this.clientId=e?.clientId}resolveScheme(e){return w(e,this.gatewayUrls,0,this.clientId)}async download(e,n){return this.downloader.download(e,this.gatewayUrls,n)}async downloadJSON(e,n){let r=await this.download(e,n);return x(await r.json(),this.gatewayUrls,this.clientId)}async upload(e,n){let[r]=await this.uploadBatch([e],n);return r}async uploadBatch(e,n){if(!(e=e.filter(e=>void 0!==e)).length)return[];let r=e.map(e=>b(e)||"string"==typeof e).every(e=>!!e),i=[];if(r)i=await this.uploader.uploadBatch(e,n);else{let r=(await this.uploadAndReplaceFilesWithHashes(e,n)).map(e=>"string"==typeof e?e:JSON.stringify(e));i=await this.uploader.uploadBatch(r,n)}return n?.uploadWithGatewayUrl||this.uploader.uploadWithGatewayUrl?i.map(e=>this.resolveScheme(e)):i}getGatewayUrls(){return this.gatewayUrls}async uploadAndReplaceFilesWithHashes(e,n){let r=e,i=function e(n){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(b(n))return r.push(n),r;if("object"==typeof n){if(!n)return r;
345Array.isArray(n)?n.forEach(n=>e(n,r)):Object.keys(n).map(i=>e(n[i],r))}return r}(r=function e(n,r){return"string"==typeof n?v(n,r):"object"==typeof n?!n||b(n)?n:Array.isArray(n)?n.map(n=>e(n,r)):Object.fromEntries(Object.entries(n).map(n=>{let[i,a]=n;return[i,e(a,r)]})):n}(r,this.gatewayUrls));return i.length&&(r=function e(n,r){if(b(n)){if(r.length)return n=r.shift();console.warn("Not enough URIs to replace all files in object.")}return"object"==typeof n&&n?Array.isArray(n)?n.map(n=>e(n,r)):Object.fromEntries(Object.entries(n).map(n=>{let[i,a]=n;return[i,e(a,r)]})):n}(r,await this.uploader.uploadBatch(i,n))),(n?.uploadWithGatewayUrl||this.uploader.uploadWithGatewayUrl)&&(r=x(r,this.gatewayUrls,this.clientId)),r}}},24528:function(e,n,r){"use strict";function i(e){return void 0!==e&&!!e&&"ethereum"in e&&!!e.ethereum}r.d(n,{a:function(){return i}})},57334:function(e,n,r){"use strict";r.d(n,{a:function(){return c},c:function(){return l}});var i=r(22555),a=r(35124),o=r(91651);let s="__TW__";class f{constructor(e){this.name=e}getItem(e){return new Promise(n=>{n(localStorage.getItem(`${s}/${this.name}/${e}`))})}setItem(e,n){return new Promise((r,i)=>{try{localStorage.setItem(`${s}/${this.name}/${e}`,n),r()}catch(e){i(e)}})}removeItem(e){return new Promise(n=>{localStorage.removeItem(`${s}/${this.name}/${e}`),n()})}}function l(e){return new f(e)}let u={name:"thirdweb powered dApp",url:"https://thirdweb.com",description:"thirdweb powered dApp",logoUrl:"https://thirdweb.com/favicon.ico",isDarkMode:!0};class c extends a.q{getMeta(){return this.constructor.meta}constructor(e,n){super(),this.walletId=e,this.options=n,this.chains=(n?.chains||i.gL9).map(e=>(0,i.nRj)(e,n?.clientId)),this.dappMetadata=n?.dappMetadata||u,this.walletStorage=n?.walletStorage||l(this.walletId)}async autoConnect(e){let n=e?{...e,chainId:void 0}:void 0;return this._connect(!0,n)}async connect(e){this._connectParams=e;let n=await this._connect(!1,e);if(!n)throw Error("Failed to connect to the wallet.");return n}getConnectParams(){return this._connectParams}getOptions(){return this.options}async _connect(e,n){let r=await this.getConnector();if(this._subscribeToEvents(r),await r.isConnected()){let e=await r.getAddress();return r.setupListeners(),n?.chainId&&await r.switchChain(n?.chainId),this.emit("connect",{address:e,chainId:await this.getChainId()}),this._trackConnection(e),e}if(e)throw Error("Failed to auto connect to the wallet.");try{let e=await r.connect(n);return this._trackConnection(e),e}catch(e){throw Error(e.message)}}_trackConnection(e){!function(e){let{clientId:n,walletType:r,walletAddress:i,source:a,action:s}=e;fetch("https://c.thirdweb.com/event",{method:"POST",headers:{"Content-Type":"application/json","x-client-id":n,...(0,o.g)()},body:JSON.stringify({source:a,action:s,walletAddress:i,walletType:r})})}({clientId:this.options?.clientId||"",source:"connectWallet",action:"connect",walletType:this.walletId,walletAddress:e})}async _subscribeToEvents(e){e.on("connect",e=>{this.emit("connect",{address:e.account,chainId:e.chain?.id})}),e.on("change",e=>{this.emit("change",{address:e.account,chainId:e.chain?.id})}),e.on("message",e=>{this.emit("message",e)}),e.on("disconnect",async()=>{this.emit("disconnect")}),e.on("error",e=>this.emit("error",e))}async getSigner(){let e=await this.getConnector();if(!e)throw Error("Wallet not connected");return await e.getSigner()}async disconnect(){let e=await this.getConnector();e&&(await e.disconnect(),this.emit("disconnect"),e.removeAllListeners())}async switchChain(e){let n=await this.getConnector();if(!n)throw Error("Wallet not connected");if(!n.switchChain)throw Error("Wallet does not support switching chains");return await n.switchChain(e)}async updateChains(e){this.chains=e.map(e=>(0,i.nRj)(e,this.options?.clientId)),(await this.getConnector()).updateChains(this.chains)}getPersonalWallet(){}}},27021:function(e,n,r){"use strict";r.d(n,{C:function(){return a},W:function(){return o}});var i=r(65007);class a extends i.Z{}class o extends a{constructor(e){super(),this.wagmiConnector=e}async connect(e){return this.setupConnectorListeners(),(await this.wagmiConnector.connect(e)).account}disconnect(){return this.wagmiConnector.removeAllListeners("connect"),this.wagmiConnector.removeAllListeners("change"),this.wagmiConnector.disconnect()}isConnected(){return this.wagmiConnector.isAuthorized()}getAddress(){return this.wagmiConnector.getAccount()}getSigner(){return this.wagmiConnector.getSigner()}getProvider(){return this.wagmiConnector.getProvider()}async switchChain(e){if(!this.wagmiConnector.switchChain)throw Error("Switch chain not supported");await this.wagmiConnector.switchChain(e)}setupConnectorListeners(){this.wagmiConnector.addListener("connect",e=>
345{this.emit("connect",e)}),this.wagmiConnector.addListener("change",e=>{this.emit("change",e)}),this.wagmiConnector.addListener("disconnect",()=>{this.emit("disconnect")})}async setupListeners(){this.setupConnectorListeners(),await this.wagmiConnector.setupListeners()}updateChains(e){this.wagmiConnector.updateChains(e)}}},46795:function(e,n,r){"use strict";function i(e,n,r){var i;return(n="symbol"==typeof(i=function(e,n){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(n,"string"))?i:i+"")in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}r.d(n,{_:function(){return i}})},96214:function(e,n,r){"use strict";r.d(n,{E:function(){return j},U:function(){return g},c:function(){return m}});var i,a,o=r(46795),s=r(73934),f=r(48088),l=r(27349),u=r(56371),c=r(23437);let d=()=>"true"!==localStorage.getItem("IS_THIRDWEB_DEV")?"https://embedded-wallet.thirdweb.com":window.localStorage.getItem("THIRDWEB_DEV_URL")??"http://localhost:3000",p=e=>`thirdwebEwsWalletUserId-${e}`,h=e=>`walletToken-${e}`,y=(e,n)=>`a-${e}-${n}`,m=((i={}).COGNITO="Cognito",i.GOOGLE="Google",i.EMAIL_OTP="EmailOtp",i.CUSTOM_JWT="CustomJWT",i.CUSTOM_AUTH_ENDPOINT="CustomAuthEndpoint",i.FACEBOOK="Facebook",i.APPLE="Apple",i.PASSKEY="Passkey",i.EXTERNAL_WALLET="ExternalWallet",i.DISCORD="Discord",i),g=((a={}).LOGGED_OUT="Logged Out",a.LOGGED_IN_WALLET_UNINITIALIZED="Logged In, Wallet Uninitialized",a.LOGGED_IN_NEW_DEVICE="Logged In, New Device",a.LOGGED_IN_WALLET_INITIALIZED="Logged In, Wallet Initialized",a),b=new Map;class v{constructor(e){let{clientId:n}=e;this.isSupported=!!window.localStorage,this.clientId=n}async getItem(e){return this.isSupported?window.localStorage.getItem(e):b.get(e)??null}async setItem(e,n){if(this.isSupported)return window.localStorage.setItem(e,n);b.set(e,n)}async removeItem(e){let n=await this.getItem(e);return!!this.isSupported&&!!n&&(window.localStorage.removeItem(e),!0)}async saveAuthCookie(e){await this.setItem(h(this.clientId),e)}async getAuthCookie(){return this.getItem(h(this.clientId))}async removeAuthCookie(){return this.removeItem(h(this.clientId))}async saveDeviceShare(e,n){await this.saveWalletUserId(n),await this.setItem(y(this.clientId,n),e)}async getDeviceShare(){let e=await this.getWalletUserId();return e?this.getItem(y(this.clientId,e)):null}async removeDeviceShare(){let e=await this.getWalletUserId();return!!e&&this.removeItem(y(this.clientId,e))}async getWalletUserId(){return this.getItem(p(this.clientId))}async saveWalletUserId(e){await this.setItem(p(this.clientId),e)}async removeWalletUserId(){return this.removeItem(p(this.clientId))}}function w(e){return new Promise(n=>{setTimeout(n,1e3*e)})}let x={height:"100%",width:"100%",border:"none",backgroundColor:"transparent",colorScheme:"light",position:"fixed",top:"0px",right:"0px",zIndex:"2147483646",display:"none"},T=new Map;class C{constructor(e){let{link:n,iframeId:r,container:i=document.body,iframeStyles:a,onIframeInitialize:s}=e;(0,o._)(this,"POLLING_INTERVAL_SECONDS",1.4),this.iframeBaseUrl=d();let f=document.getElementById(r),l=new URL(n),u="2.5.39";if(l.searchParams.set("sdkVersion",u),!f||f.src!==l.href){if(!f){f=document.createElement("iframe");let e={...x,...a};Object.assign(f.style,e),f.setAttribute("id",r),f.setAttribute("fetchpriority","high"),i.appendChild(f)}f.src=l.href,f.setAttribute("data-version",u);let e=n=>{if("ewsIframeLoaded"===n.data.eventType){if(window.removeEventListener("message",e),!f){console.warn("thirdweb Iframe not found");return}this.onIframeLoadHandler(f,s)()}};window.addEventListener("message",e)}this.iframe=f}async onIframeLoadedInitVariables(){return{}}onIframeLoadHandler(e,n){return async()=>{let r=new Promise(async(r,i)=>{let a=new MessageChannel;a.port1.onmessage=o=>{let{data:s}=o;return(a.port1.close(),s.success)?(T.set(e.src,!0),n&&n(),r(!0)):i(Error(s.error))},e?.contentWindow?.postMessage({eventType:"initIframe",data:await this.onIframeLoadedInitVariables()},this.iframeBaseUrl,[a.port2])});await r}}async call(e){let{procedureName:n,params:r,showIframe:i=!1}=e;for(;!T.get(this.iframe.src);)await w(this.POLLING_INTERVAL_SECONDS);return i&&(this.iframe.style.display="block",await w(.005)),new Promise((e,a)=>{let o=new MessageChannel;o.port1.onmessage=async n=>{let{data:r}=n;o.port1.close(),i&&(await w(.1),this.iframe.style.display="none"),r.success?e(r.data):a(Error(r.error))},this.iframe.contentWindow?.postMessage({eventType:n,data:r},this.iframeBaseUrl,[o.port2])})}destroy(){T.delete(this.iframe.src)}}class M extends C{constructor(e){let{clientId:n,customizationOptions:r}=e;super({iframeId:A,link:function(e){let{clientId:n,path:r,queryParams:i}=e,a=new URL(`${r}`,d());if(i)for(let e of Object.keys(i))a.searchParams.set(e,i[e]?.toString()||"");return a.searchParams.set("clientId",n),a}({clientId:n,path:"/sdk/2022-08-12/embedded-wallet",queryParams:r}).href,container:document.body}),this.clientId=n}async onIframeLoadedInitVariables(){let e=new v({clientId:this.clientId});return{authCookie:await e.getAuthCookie(),deviceShareStored:await e.getDeviceShare(),walletUserId:await e.getWalletUserId(),clientId:this.clientId}}}let A="thirdweb-embedded-wallet-iframe";class E{constructor(e){let{querier:n,preLogin:r,postLogin:i,clientId:a}=e;this.LoginQuerier=n,this.preLogin=r,this.postLogin=i,this.clientId=a}async sendEmailLoginOtp(e){let{email:n}=e;return await this.preLogin(),await this.LoginQuerier.call({procedureName:"sendThirdwebEmailLoginOtp",params:{email:n}})}async sendSmsLoginOtp(e){let{phoneNumber:n}=e;return await this.preLogin(),await this.LoginQuerier.call({procedureName:"sendThirdwebSmsLoginOtp",params:{phoneNumber:n}})}}
345class I extends E{constructor(){super(...arguments),(0,o._)(this,"closeWindow",e=>{let{isWindowOpenedByFn:n,win:r,closeOpenedWindow:i}=e;n?r?.close():r&&i?i(r):r&&r.close()})}async getOauthLoginUrl(e){return await this.LoginQuerier.call({procedureName:"getHeadlessOauthLoginLink",params:{authProvider:e}})}async loginWithModal(){await this.preLogin();let e=await this.LoginQuerier.call({procedureName:"loginWithThirdwebModal",params:void 0,showIframe:!0});return this.postLogin(e)}async loginWithEmailOtp(e){let{email:n}=e;await this.preLogin();let r=await this.LoginQuerier.call({procedureName:"loginWithThirdwebModal",params:{email:n},showIframe:!0});return this.postLogin(r)}getOauthPopUpSizing(e){return e===m.FACEBOOK?"width=715, height=555":"width=350, height=500"}async loginWithOauth(e){let n=e?.openedWindow,r=!1;if(n||(n=window.open("","Login",this.getOauthPopUpSizing(e.oauthProvider)),r=!0),!n)throw Error("Something went wrong opening pop-up");let[{loginLink:i}]=await Promise.all([this.getOauthLoginUrl(e.oauthProvider),this.preLogin()]);n.location.href=i;let a=await new Promise((i,a)=>{let o=window.setInterval(async()=>{n&&n.closed&&(clearInterval(o),window.removeEventListener("message",s),a(Error("User closed login window")))},1e3),s=async f=>{if(f.origin===d()){if("object"!=typeof f.data){a(Error("Invalid event data"));return}switch(f.data.eventType){case"userLoginSuccess":window.removeEventListener("message",s),clearInterval(o),this.closeWindow({isWindowOpenedByFn:r,win:n,closeOpenedWindow:e?.closeOpenedWindow}),f.data.authResult&&i(f.data.authResult);break;case"userLoginFailed":window.removeEventListener("message",s),clearInterval(o),this.closeWindow({isWindowOpenedByFn:r,win:n,closeOpenedWindow:e?.closeOpenedWindow}),a(Error(f.data.error));break;case"injectDeveloperClientId":n?.postMessage({eventType:"injectDeveloperClientIdResult",developerClientId:this.clientId,authOption:e.oauthProvider},d())}}};window.addEventListener("message",s)});return this.postLogin({storedToken:{...a.storedToken,shouldStoreCookieString:!0},walletDetails:{...a.walletDetails,isIframeStorageEnabled:!1}})}async loginWithCustomJwt(e){let{encryptionKey:n,jwt:r}=e;await this.preLogin();let i=await this.LoginQuerier.call({procedureName:"loginWithCustomJwt",params:{encryptionKey:n,jwt:r}});return this.postLogin(i)}async loginWithCustomAuthEndpoint(e){let{encryptionKey:n,payload:r}=e;await this.preLogin();let i=await this.LoginQuerier.call({procedureName:"loginWithCustomAuthEndpoint",params:{encryptionKey:n,payload:r}});return this.postLogin(i)}async verifyEmailLoginOtp(e){let{email:n,otp:r,recoveryCode:i}=e,a=await this.LoginQuerier.call({procedureName:"verifyThirdwebEmailLoginOtp",params:{email:n,otp:r,recoveryCode:i}});return this.postLogin(a)}async verifySmsLoginOtp(e){let{phoneNumber:n,otp:r,recoveryCode:i}=e,a=await this.LoginQuerier.call({procedureName:"verifyThirdwebSmsLoginOtp",params:{phoneNumber:n,otp:r,recoveryCode:i}});return this.postLogin(a)}}class S{constructor(e){let{clientId:n,querier:r,onAuthSuccess:i}=e;this.clientId=n,this.AuthQuerier=r,this.localStorage=new v({clientId:n}),this.onAuthSuccess=i,this.BaseLogin=new I({postLogin:async e=>this.postLogin(e),preLogin:async()=>{await this.preLogin()},querier:r,clientId:n})}async preLogin(){await this.logout()}async postLogin(e){let{storedToken:n,walletDetails:r}=e;return n.shouldStoreCookieString&&await this.localStorage.saveAuthCookie(n.cookieString),await this.onAuthSuccess({storedToken:n,walletDetails:r})}async loginWithModal(){return this.BaseLogin.loginWithModal()}async loginWithEmailOtp(e){return this.BaseLogin.loginWithEmailOtp(e)}async loginWithCustomJwt(e){return this.BaseLogin.loginWithCustomJwt(e)}
345async loginWithCustomAuthEndpoint(e){return this.BaseLogin.loginWithCustomAuthEndpoint(e)}async loginWithOauth(e){return this.BaseLogin.loginWithOauth(e)}async sendEmailLoginOtp(e){let{email:n}=e;return this.BaseLogin.sendEmailLoginOtp({email:n})}async sendSmsLoginOtp(e){let{phoneNumber:n}=e;return this.BaseLogin.sendSmsLoginOtp({phoneNumber:n})}async verifyEmailLoginOtp(e){return this.BaseLogin.verifyEmailLoginOtp(e)}async verifySmsLoginOtp(e){return this.BaseLogin.verifySmsLoginOtp(e)}async logout(){let{success:e}=await this.AuthQuerier.call({procedureName:"logout",params:void 0}),n=await this.localStorage.removeAuthCookie(),r=await this.localStorage.removeWalletUserId();return{success:e||n||r}}}class k extends f.Signer{constructor(e){let{provider:n,clientId:r,querier:i}=e;super(),(0,o._)(this,"DEFAULT_ETHEREUM_CHAIN_ID",5),this.clientId=r,this.querier=i,this.endpoint=n.connection?.url,(0,u.defineReadOnly)(this,"provider",n)}async getAddress(){let{address:e}=await this.querier.call({procedureName:"getAddress",params:void 0});return e}async signMessage(e){let{signedMessage:n}=await this.querier.call({procedureName:"signMessage",params:{message:e,chainId:(await this.provider?.getNetwork())?.chainId??this.DEFAULT_ETHEREUM_CHAIN_ID,rpcEndpoint:this.endpoint}});return n}async signTransaction(e){let{signedTransaction:n}=await this.querier.call({procedureName:"signTransaction",params:{transaction:e,chainId:(await this.provider?.getNetwork())?.chainId??this.DEFAULT_ETHEREUM_CHAIN_ID,rpcEndpoint:this.endpoint}});return n}async sendTransaction(e){if(!this.provider)throw Error("Provider not found");let n={...await (0,c.g)(this.provider),...e};return super.sendTransaction(n)}async _signTypedData(e,n,r){let{signedTypedData:i}=await this.querier.call({procedureName:"signTypedDataV4",params:{domain:e,types:n,message:r,chainId:(await this.provider?.getNetwork())?.chainId??this.DEFAULT_ETHEREUM_CHAIN_ID,rpcEndpoint:this.endpoint}});return i}connect(e){return new k({clientId:this.clientId,provider:e,querier:this.querier})}}class N{constructor(e){let{clientId:n,chain:r,querier:i}=e;this.clientId=n,this.chain=r,this.walletManagerQuerier=i,this.localStorage=new v({clientId:n})}async postWalletSetUp(e){let{deviceShareStored:n,walletAddress:r,isIframeStorageEnabled:i,walletUserId:a}=e;return i||await this.localStorage.saveDeviceShare(n,a),{walletAddress:r}}async getUserWalletStatus(){let e=await this.walletManagerQuerier.call({procedureName:"getUserStatus",params:void 0});return e.status===g.LOGGED_IN_WALLET_INITIALIZED?{status:g.LOGGED_IN_WALLET_INITIALIZED,...e.user,wallet:this}:e.status===g.LOGGED_IN_NEW_DEVICE?{status:g.LOGGED_IN_WALLET_UNINITIALIZED,...e.user}:e.status===g.LOGGED_IN_WALLET_UNINITIALIZED?{status:g.LOGGED_IN_WALLET_UNINITIALIZED,...e.user}:{status:e.status}}async setChain(e){let{chain:n}=e;this.chain=n}async getEthersJsSigner(e){return new k({clientId:this.clientId,provider:(0,l.getDefaultProvider)(e?.rpcEndpoint??s.g1[this.chain]),querier:this.walletManagerQuerier})}}class j{isClientIdLegacyPaper(e){return e.indexOf("-")>0&&36===e.length}constructor(e){let{clientId:n,chain:r,styles:i,onAuthSuccess:a}=e;if(this.isClientIdLegacyPaper(n))throw Error("You are using a legacy clientId. Please use the clientId found on the thirdweb dashboard settings page");this.clientId=n,this.querier=new M({clientId:n,customizationOptions:i}),this.wallet=new N({clientId:n,chain:r,querier:this.querier}),this.auth=new S({clientId:n,querier:this.querier,onAuthSuccess:async e=>(a?.(e),await this.wallet.postWalletSetUp({...e.walletDetails,walletUserId:e.storedToken.authDetails.userWalletId}),await this.querier.call({procedureName:"initIframe",params:{deviceShareStored:e.walletDetails.deviceShareStored,clientId:this.clientId,walletUserId:e.storedToken.authDetails.userWalletId,authCookie:e.storedToken.cookieString}}),{user:{status:g.LOGGED_IN_WALLET_INITIALIZED,authDetails:e.storedToken.authDetails,wallet:this.wallet,walletAddress:e.walletDetails.walletAddress}})})}async getUser(){return this.wallet.getUserWalletStatus()}}},51367:function(e,n,r){"use strict";r.d(n,{g:function(){return a}});var i=r(24528);function a(){if((0,i.a)(globalThis.window)&&window.coin98)return window.ethereum}},21064:function(e,n,r){"use strict";r.d(n,{g:function(){return a}});var i=r(24528);function a(){if((0,i.a)(globalThis.window)&&globalThis.window.ethereum&&window.avalanche)return window.avalanche}},10286:function(e,n,r){"use strict";r.d(n,{g:function(){return a}});var i=r(24528);function a(){if((0,i.a)(globalThis.window)&&globalThis.window.ethereum&&window.deficonnectProvider)return window.deficonnectProvider}},58750:function(e,n,r){"use strict";function i(){if(globalThis.window&&globalThis.window.magicEden&&globalThis.window.magicEden.ethereum)return globalThis.window.magicEden.ethereum}r.d(n,{g:function(){return i}})},6156:function(e,n,r){"use strict";r.d(n,{g:function(){return a}});var i=r(24528);function a(){function e(e){if(e?.isMetaMask&&(!e.isBraveWallet||e._events||e._state)&&!e.isRainbow&&!e.isPhantom&&!e.isAvalanche&&!e.isBitKeep&&!e.isMathWallet&&!e.isZerion&&!e.isKuCoinWallet&&!e.isPortal&&!e.isTokenPocket&&!e.isTokenary&&!e.isRabbyWallet&&!e.isImToken)return e}if((0,i.a)(globalThis.window))return globalThis.window.ethereum?.providers?globalThis.window.ethereum.providers.find(e):e(globalThis.window.ethereum)}},98294:function(e,n,r){"use strict";r.d(n,{g:function(){return a}});var i=r(24528);function a(){if((0,i.a)(globalThis.window)&&globalThis.window.ethereum&&window.okxwallet)return window.okxwallet}}
345,61762:function(e,n,r){"use strict";r.d(n,{g:function(){return a}});var i=r(24528);function a(){if((0,i.a)(globalThis.window)&&globalThis.window.$onekey&&globalThis.window.$onekey.ethereum)return globalThis.window.$onekey.ethereum}},11123:function(e,n,r){"use strict";function i(){let e=window.phantom?.ethereum;if(e?.isPhantom)return e}r.d(n,{g:function(){return i}})},85262:function(e,n,r){"use strict";r.d(n,{g:function(){return a}});var i=r(24528);function a(){if((0,i.a)(globalThis.window)&&globalThis.window.ethereum&&window.rabby)return window.rabby}},81799:function(e,n,r){"use strict";r.d(n,{g:function(){return a}});var i=r(24528);function a(){function e(e){if(e?.isRainbow&&(!e.isBraveWallet||e._events||e._state)&&!e.isPhantom&&!e.isAvalanche&&!e.isBitKeep&&!e.isMathWallet&&!e.isZerion&&!e.isKuCoinWallet&&!e.isPortal&&!e.isTokenPocket&&!e.isTokenary)return e}if((0,i.a)(globalThis.window))return globalThis.window.ethereum?.providers?globalThis.window.ethereum.providers.find(e):e(globalThis.window.ethereum)}},18949:function(e,n,r){"use strict";function i(){if(globalThis.window&&globalThis.window.xfi&&globalThis.window.xfi.ethereum)return globalThis.window.xfi.ethereum}r.d(n,{g:function(){return i}})},91651:function(e,n,r){"use strict";r.d(n,{g:function(){return f},s:function(){return s}});var i={name:"@thirdweb-dev/wallets",version:"2.5.39"};let a=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function o(){return"undefined"!=typeof navigator&&"ReactNative"===navigator.product?"":function(e){for(let n=0,r=a.length;n<r;n++){let r=a[n];if(!r)continue;let[i,o]=r;if(o.exec(e))return i}return null}(navigator.userAgent)||""}function s(e){let n=l();e["x-sdk-version"]=n.x_sdk_version,e["x-sdk-name"]=n.x_sdk_name,e["x-sdk-platform"]=n.x_sdk_platform,e["x-sdk-os"]=n.x_sdk_os,n.app_bundle_id&&(e["x-bundle-id"]=n.app_bundle_id)}function f(){let e=l();return{"x-sdk-version":e.x_sdk_version,"x-sdk-os":e.x_sdk_os,"x-sdk-name":e.x_sdk_name,"x-sdk-platform":e.x_sdk_platform,...e.app_bundle_id?{"x-bundle-id":e.app_bundle_id}:{}}}function l(){return"undefined"==typeof globalThis?{x_sdk_name:i.name,x_sdk_platform:u(),x_sdk_version:i.version,x_sdk_os:o(),app_bundle_id:void 0}:(void 0===globalThis.X_SDK_NAME&&(globalThis.X_SDK_NAME=i.name,globalThis.X_SDK_PLATFORM=u(),globalThis.X_SDK_VERSION=i.version,globalThis.X_SDK_OS=o(),globalThis.APP_BUNDLE_ID=void 0),{x_sdk_name:globalThis.X_SDK_NAME,x_sdk_platform:globalThis.X_SDK_PLATFORM,x_sdk_version:globalThis.X_SDK_VERSION,x_sdk_os:globalThis.X_SDK_OS,app_bundle_id:globalThis.APP_BUNDLE_ID||""})}function u(){return"undefined"!=typeof navigator&&"ReactNative"===navigator.product?"mobile":"browser"}},70840:function(e,n,r){"use strict";let i,a;r.d(n,{EmbeddedWalletSdk:function(){return fV.E},Wj:function(){return fK}});var o=r(17187),s=r.n(o),f=r(57394),l=r(24678),u=r(85094),c=(e={})=>{let n;let r=e.base&&e.base.length>0?`${e.base}:`:"",i=e=>r+e;return e.dbName&&e.storeName&&(n=(0,l.MT)(e.dbName,e.storeName)),{name:"idb-keyval",options:e,hasItem:async e=>!(typeof await (0,l.U2)(i(e),n)>"u"),getItem:async e=>await (0,l.U2)(i(e),n)??null,setItem:(e,r)=>(0,l.t8)(i(e),r,n),removeItem:e=>(0,l.IV)(i(e),n),getKeys:()=>(0,l.XP)(n),clear:()=>(0,l.ZH)(n)}};class d{constructor(){this.indexedDb=(0,f.o6)({driver:c({dbName:"WALLET_CONNECT_V2_INDEXED_DB",storeName:"keyvaluestorage"})})}async getKeys(){return this.indexedDb.getKeys()}async getEntries(){return(await this.indexedDb.getItems(await this.indexedDb.getKeys())).map(e=>[e.key,e.value])}async getItem(e){let n=await this.indexedDb.getItem(e);if(null!==n)return n}async setItem(e,n){await this.indexedDb.setItem(e,(0,u.u)(n))}async removeItem(e){await this.indexedDb.removeItem(e)}}var p="u">typeof globalThis?globalThis:"u">typeof window?window:"u">typeof r.g?r.g:"u">typeof self?self:{},h={exports:{}};function y(e){var n;return[e[0],(0,u.D)(null!=(n=e[1])?n:"")]}!function(){function e(){}e.prototype.getItem=function(e){return this.hasOwnProperty(e)?String(this[e]):null},e.prototype.setItem=function(e,n){this[e]=String(n)},e.prototype.removeItem=function(e){delete this[e]},e.prototype.clear=function(){let e=this;Object.keys(e).forEach(function(n){e[n]=void 0,delete e[n]})},e.prototype.key=function(e){return e=e||0,Object.keys(this)[e]},e.prototype.__defineGetter__("length",function(){return Object.keys(this).length}),"u">typeof p&&p.localStorage?h.exports=p.localStorage:"u">typeof window&&window.localStorage?h.exports=window.localStorage:h.exports=new e}();class m{constructor(){this.localStorage=h.exports}async getKeys(){return Object.keys(this.localStorage)}async getEntries(){return Object.entries(this.localStorage).map(y)}async getItem(e){let n=this.localStorage.getItem(e);if(null!==n)return(0,u.D)(n)}async setItem(e,n){this.localStorage.setItem(e,(0,u.u)(n))}async removeItem(e){this.localStorage.removeItem(e)}}let g=async(e,n,r)=>{let i="wc_storage_version",a=await n.getItem(i);if(a&&a>=1){r(n);return}let o=await e.getKeys();if(!o.length){r(n);return}let s=[];for(;o.length;){let r=o.shift();if(!r)continue;let i=r.toLowerCase();if(i.includes("wc@")||i.includes("walletconnect")||i.includes("wc_")||i.includes("wallet_connect")){let i=await e.getItem(r);await n.setItem(r,i),s.push(r)}}await n.setItem(i,1),r(n),b(e,s)},b=async(e,n)=>
345{n.length&&n.forEach(async n=>{await e.removeItem(n)})};class v{constructor(){this.initialized=!1,this.setInitialized=e=>{this.storage=e,this.initialized=!0};let e=new m;this.storage=e;try{let n=new d;g(e,n,this.setInitialized)}catch{this.initialized=!0}}async getKeys(){return await this.initialize(),this.storage.getKeys()}async getEntries(){return await this.initialize(),this.storage.getEntries()}async getItem(e){return await this.initialize(),this.storage.getItem(e)}async setItem(e,n){return await this.initialize(),this.storage.setItem(e,n)}async removeItem(e){return await this.initialize(),this.storage.removeItem(e)}async initialize(){this.initialized||await new Promise(e=>{let n=setInterval(()=>{this.initialized&&(clearInterval(n),e())},20)})}}var w=r(66736),x=r(38200);class T extends x.q{constructor(e){super()}}let C=w.FIVE_SECONDS,M="heartbeat_pulse";class A extends T{constructor(e){super(e),this.events=new o.EventEmitter,this.interval=C,this.interval=e?.interval||C}static async init(e){let n=new A(e);return await n.init(),n}
345async init(){await this.initialize()}stop(){clearInterval(this.intervalRef)}on(e,n){this.events.on(e,n)}once(e,n){this.events.once(e,n)}off(e,n){this.events.off(e,n)}removeListener(e,n){this.events.removeListener(e,n)}async initialize(){this.intervalRef=setInterval(()=>this.pulse(),(0,w.toMiliseconds)(this.interval))}pulse(){this.events.emit(M)}}var E=r(12044);class I extends x.q{constructor(e){super(),this.opts=e,this.protocol="wc",this.version=2}}class S extends x.q{constructor(e,n){super(),this.core=e,this.logger=n,this.records=new Map}}class k{constructor(e,n){this.logger=e,this.core=n}}class N extends x.q{constructor(e,n){super(),this.relayer=e,this.logger=n}}class j extends x.q{constructor(e){super()}}class D{constructor(e,n,r,i){this.core=e,this.logger=n,this.name=r}}class _ extends x.q{constructor(e,n){super(),this.relayer=e,this.logger=n}}class O extends x.q{constructor(e,n){super(),this.core=e,this.logger=n}}class P{constructor(e,n){this.projectId=e,this.logger=n}}class L{constructor(e,n){this.projectId=e,this.logger=n}}class R{constructor(e){this.opts=e,this.protocol="wc",this.version=2}}class z{constructor(e){this.client=e}}var B=r(21878),U=r(43631),F=r(66667),Z=r(58790),W=r(17563),H=r(15501),G=r(512),q=r(31416),Y=r(73294),V=r(57664),Q=r(37466),K=r(37968),$=r(34155),J=r(48764).Buffer;function X(e){let[n,r]=e.split(":");return{namespace:n,reference:r}}function ee(e,n){return e.includes(":")?[e]:n.chains||[]}var et=Object.defineProperty,en=Object.getOwnPropertySymbols,er=Object.prototype.hasOwnProperty,ei=Object.prototype.propertyIsEnumerable,ea=(e,n,r)=>n in e?et(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,eo=(e,n)=>{for(var r in n||(n={}))er.call(n,r)&&ea(e,r,n[r]);if(en)for(var r of en(n))ei.call(n,r)&&ea(e,r,n[r]);return e};let es={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"};function ef(){return"u">typeof $&&"u">typeof $.versions&&"u">typeof $.versions.node}function el(){return!(0,F.getDocument)()&&!!(0,F.getNavigator)()&&"ReactNative"===navigator.product}function eu(){return!ef()&&!!(0,F.getNavigator)()&&!!(0,F.getDocument)()}function ec(){return el()?es.reactNative:ef()?es.node:eu()?es.browser:es.unknown}function ed(e,n){return e.filter(e=>n.includes(e)).length===e.length}function ep(e){return Object.fromEntries(e.entries())}function eh(e){return new Map(Object.entries(e))}function ey(e=w.FIVE_MINUTES,n){let r,i,a;let o=(0,w.toMiliseconds)(e||w.FIVE_MINUTES);return{resolve:e=>{a&&r&&(clearTimeout(a),r(e))},reject:e=>{a&&i&&(clearTimeout(a),i(e))},done:()=>new Promise((e,s)=>{a=setTimeout(()=>{s(Error(n))},o),r=e,i=s})}}function em(e,n,r){return new Promise(async(i,a)=>{let o=setTimeout(()=>a(Error(r)),n);try{let n=await e;i(n)}catch(e){a(e)}clearTimeout(o)})}function eg(e,n){if("string"==typeof n&&n.startsWith(`${e}:`))return n;if("topic"===e.toLowerCase()){if("string"!=typeof n)throw Error('Value must be "string" for expirer target type: topic');return`topic:${n}`}if("id"===e.toLowerCase()){if("number"!=typeof n)throw Error('Value must be "number" for expirer target type: id');return`id:${n}`}throw Error(`Unknown expirer target type: ${e}`)}function eb(e){let[n,r]=e.split(":"),i={id:void 0,topic:void 0};if("topic"===n&&"string"==typeof r)i.topic=r;else if("id"===n&&Number.isInteger(Number(r)))i.id=Number(r);else throw Error(`Invalid target, expected id:number or topic:string, got ${n}:${r}`);return i}function ev(e,n){return(0,w.fromMiliseconds)((n||Date.now())+(0,w.toMiliseconds)(e))}function ew(e){return Date.now()>=(0,w.toMiliseconds)(e)}function ex(e,n){return`${e}${n?`:${n}`:""}`}async function eT({id:e,topic:n,wcDeepLink:i}){try{if(!i)return;let a="string"==typeof i?JSON.parse(i):i,o=a?.href;if("string"!=typeof o)return;o.endsWith("/")&&(o=o.slice(0,-1));let s=`${o}/wc?requestId=${e}&sessionTopic=${n}`,f=ec();f===es.browser?s.startsWith("https://")||s.startsWith("http://")?window.open(s,"_blank","noreferrer noopener"):window.open(s,"_self","noreferrer noopener"):f===es.reactNative&&"u">typeof(null==r.g?void 0:r.g.Linking)&&await r.g.Linking.openURL(s)}catch(e){console.error(e)}}async function eC(e,n){try{return await e.getItem(n)||(eu()?localStorage.getItem(n):void 0)}catch(e){console.error(e)}}var eM="u">typeof globalThis?globalThis:"u">typeof window?window:"u">typeof r.g?r.g:"u">typeof self?self:{},eA={exports:{}};
345!function(){var e="input is invalid type",n="object"==typeof window,r=n?window:{};r.JS_SHA3_NO_WINDOW&&(n=!1);var i=!n&&"object"==typeof self;!r.JS_SHA3_NO_NODE_JS&&"object"==typeof $&&$.versions&&$.versions.node?r=eM:i&&(r=self);var a=!r.JS_SHA3_NO_COMMON_JS&&eA.exports,o=!r.JS_SHA3_NO_ARRAY_BUFFER&&"u">typeof ArrayBuffer,s="0123456789abcdef".split(""),f=[4,1024,262144,67108864],l=[0,8,16,24],u=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],c=[224,256,384,512],d=[128,256],p=["hex","buffer","arrayBuffer","array","digest"],h={128:168,256:136};(r.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),o&&(r.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var y=function(e,n,r){return function(i){return new N(e,n,e).update(i)[r]()}},m=function(e,n,r){return function(i,a){return new N(e,n,a).update(i)[r]()}},g=function(e,n,r){return function(n,i,a,o){return T["cshake"+e].update(n,i,a,o)[r]()}},b=function(e,n,r){return function(n,i,a,o){return T["kmac"+e].update(n,i,a,o)[r]()}},v=function(e,n,r,i){for(var a=0;a<p.length;++a){var o=p[a];e[o]=n(r,i,o)}return e},w=function(e,n){var r=y(e,n,"hex");return r.create=function(){return new N(e,n,e)},r.update=function(e){return r.create().update(e)},v(r,y,e,n)},x=[{name:"keccak",padding:[1,256,65536,16777216],bits:c,createMethod:w},{name:"sha3",padding:[6,1536,393216,100663296],bits:c,createMethod:w},{name:"shake",padding:[31,7936,2031616,520093696],bits:d,createMethod:function(e,n){var r=m(e,n,"hex");return r.create=function(r){return new N(e,n,r)},r.update=function(e,n){return r.create(n).update(e)},v(r,m,e,n)}},{name:"cshake",padding:f,bits:d,createMethod:function(e,n){var r=h[e],i=g(e,n,"hex");return i.create=function(i,a,o){return a||o?new N(e,n,i).bytepad([a,o],r):T["shake"+e].create(i)},i.update=function(e,n,r,a){return i.create(n,r,a).update(e)},v(i,g,e,n)}},{name:"kmac",padding:f,bits:d,createMethod:function(e,n){var r=h[e],i=b(e,n,"hex");return i.create=function(i,a,o){return new j(e,n,a).bytepad(["KMAC",o],r).bytepad([i],r)},i.update=function(e,n,r,a){return i.create(e,r,a).update(n)},v(i,b,e,n)}}],T={},C=[],M=0;M<x.length;++M)for(var A=x[M],E=A.bits,I=0;I<E.length;++I){var S=A.name+"_"+E[I];if(C.push(S),T[S]=A.createMethod(E[I],A.padding),"sha3"!==A.name){var k=A.name+E[I];C.push(k),T[k]=T[S]}}function N(e,n,r){this.blocks=[],this.s=[],this.padding=n,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var i=0;i<50;++i)this.s[i]=0}function j(e,n,r){N.call(this,e,n,r)}N.prototype.update=function(n){if(this.finalized)throw Error("finalize already called");var r,i=typeof n;if("string"!==i){if("object"===i){if(null===n)throw Error(e);
345if(o&&n.constructor===ArrayBuffer)n=new Uint8Array(n);else if(!Array.isArray(n)&&(!o||!ArrayBuffer.isView(n)))throw Error(e)}else throw Error(e);r=!0}for(var a,s,f=this.blocks,u=this.byteCount,c=n.length,d=this.blockCount,p=0,h=this.s;p<c;){if(this.reset)for(this.reset=!1,f[0]=this.block,a=1;a<d+1;++a)f[a]=0;if(r)for(a=this.start;p<c&&a<u;++p)f[a>>2]|=n[p]<<l[3&a++];else for(a=this.start;p<c&&a<u;++p)(s=n.charCodeAt(p))<128?f[a>>2]|=s<<l[3&a++]:(s<2048?f[a>>2]|=(192|s>>6)<<l[3&a++]:(s<55296||s>=57344?f[a>>2]|=(224|s>>12)<<l[3&a++]:(s=65536+((1023&s)<<10|1023&n.charCodeAt(++p)),f[a>>2]|=(240|s>>18)<<l[3&a++],f[a>>2]|=(128|s>>12&63)<<l[3&a++]),f[a>>2]|=(128|s>>6&63)<<l[3&a++]),f[a>>2]|=(128|63&s)<<l[3&a++]);if(this.lastByteIndex=a,a>=u){for(this.start=a-u,this.block=f[d],a=0;a<d;++a)h[a]^=f[a];D(h),this.reset=!0}else this.start=a}return this},N.prototype.encode=function(e,n){var r=255&e,i=1,a=[r];for(e>>=8,r=255&e;r>0;)a.unshift(r),e>>=8,r=255&e,++i;return n?a.push(i):a.unshift(i),this.update(a),a.length},N.prototype.encodeString=function(n){var r,i=typeof n;if("string"!==i){if("object"===i){if(null===n)throw Error(e);
345if(o&&n.constructor===ArrayBuffer)n=new Uint8Array(n);else if(!Array.isArray(n)&&(!o||!ArrayBuffer.isView(n)))throw Error(e)}else throw Error(e);r=!0}var a=0,s=n.length;if(r)a=s;else for(var f=0;f<n.length;++f){var l=n.charCodeAt(f);l<128?a+=1:l<2048?a+=2:l<55296||l>=57344?a+=3:(l=65536+((1023&l)<<10|1023&n.charCodeAt(++f)),a+=4)}return a+=this.encode(8*a),this.update(n),a},N.prototype.bytepad=function(e,n){for(var r=this.encode(n),i=0;i<e.length;++i)r+=this.encodeString(e[i]);var a=n-r%n,o=[];return o.length=a,this.update(o),this},N.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,n=this.lastByteIndex,r=this.blockCount,i=this.s;if(e[n>>2]|=this.padding[3&n],this.lastByteIndex===this.byteCount)for(e[0]=e[r],n=1;n<r+1;++n)e[n]=0;for(e[r-1]|=2147483648,n=0;n<r;++n)i[n]^=e[n];D(i)}},N.prototype.toString=N.prototype.hex=function(){this.finalize();for(var e,n=this.blockCount,r=this.s,i=this.outputBlocks,a=this.extraBytes,o=0,f=0,l="";f<i;){for(o=0;o<n&&f<i;++o,++f)l+=s[(e=r[o])>>4&15]+s[15&e]+s[e>>12&15]+s[e>>8&15]+s[e>>20&15]+s[e>>16&15]+s[e>>28&15]+s[e>>24&15];f%n==0&&(D(r),o=0)}return a&&(l+=s[(e=r[o])>>4&15]+s[15&e],a>1&&(l+=s[e>>12&15]+s[e>>8&15]),a>2&&(l+=s[e>>20&15]+s[e>>16&15])),l},N.prototype.arrayBuffer=function(){this.finalize();var e,n=this.blockCount,r=this.s,i=this.outputBlocks,a=this.extraBytes,o=0,s=0,f=this.outputBits>>3;e=new ArrayBuffer(a?i+1<<2:f);for(var l=new Uint32Array(e);s<i;){for(o=0;o<n&&s<i;++o,++s)l[s]=r[o];s%n==0&&D(r)}return a&&(l[o]=r[o],e=e.slice(0,f)),e},N.prototype.buffer=N.prototype.arrayBuffer,N.prototype.digest=N.prototype.array=function(){this.finalize();for(var e,n,r=this.blockCount,i=this.s,a=this.outputBlocks,o=this.extraBytes,s=0,f=0,l=[];f<a;){for(s=0;s<r&&f<a;++s,++f)e=f<<2,n=i[s],l[e]=255&n,l[e+1]=n>>8&255,l[e+2]=n>>16&255,l[e+3]=n>>24&255;f%r==0&&D(i)}return o&&(e=f<<2,n=i[s],l[e]=255&n,o>1&&(l[e+1]=n>>8&255),o>2&&(l[e+2]=n>>16&255)),l},j.prototype=new N,j.prototype.finalize=function(){return this.encode(this.outputBits,!0),N.prototype.finalize.call(this)};var D=function(e){var n,r,i,a,o,s,f,l,c,d,p,h,y,m,g,b,v,w,x,T,C,M,A,E,I,S,k,N,j,D,_,O,P,L,R,z,B,U,F,Z,W,H,G,q,Y,V,Q,K,$,J,X,ee,et,en,er,ei,ea,eo,es,ef,el,eu,ec;for(i=0;i<48;i+=2)a=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],s=e[2]^e[12]^e[22]^e[32]^e[42],f=e[3]^e[13]^e[23]^e[33]^e[43],l=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],d=e[6]^e[16]^e[26]^e[36]^e[46],p=e[7]^e[17]^e[27]^e[37]^e[47],h=e[8]^e[18]^e[28]^e[38]^e[48],y=e[9]^e[19]^e[29]^e[39]^e[49],n=h^(s<<1|f>>>31),r=y^(f<<1|s>>>31),e[0]^=n,e[1]^=r,e[10]^=n,e[11]^=r,e[20]^=n,e[21]^=r,e[30]^=n,e[31]^=r,e[40]^=n,e[41]^=r,n=a^(l<<1|c>>>31),r=o^(c<<1|l>>>31),e[2]^=n,e[3]^=r,e[12]^=n,e[13]^=r,e[22]^=n,e[23]^=r,e[32]^=n,e[33]^=r,e[42]^=n,e[43]^=r,n=s^(d<<1|p>>>31),r=f^(p<<1|d>>>31),e[4]^=n,e[5]^=r,e[14]^=n,e[15]^=r,e[24]^=n,e[25]^=r,e[34]^=n,e[35]^=r,e[44]^=n,e[45]^=r,n=l^(h<<1|y>>>31),r=c^(y<<1|h>>>31),e[6]^=n,e[7]^=r,e[16]^=n,e[17]^=r,e[26]^=n,e[27]^=r,e[36]^=n,e[37]^=r,e[46]^=n,e[47]^=r,n=d^(a<<1|o>>>31),r=p^(o<<1|a>>>31),e[8]^=n,e[9]^=r,e[18]^=n,e[19]^=r,e[28]^=n,e[29]^=r,e[38]^=n,e[39]^=r,e[48]^=n,e[49]^=r,m=e[0],g=e[1],V=e[11]<<4|e[10]>>>28,Q=e[10]<<4|e[11]>>>28,N=e[20]<<3|e[21]>>>29,j=e[21]<<3|e[20]>>>29,ef=e[31]<<9|e[30]>>>23,el=e[30]<<9|e[31]>>>23,H=e[40]<<18|e[41]>>>14,G=e[41]<<18|e[40]>>>14,L=e[2]<<1|e[3]>>>31,R=e[3]<<1|e[2]>>>31,b=e[13]<<12|e[12]>>>20,v=e[12]<<12|e[13]>>>20,K=e[22]<<10|e[23]>>>22,$=e[23]<<10|e[22]>>>22,D=e[33]<<13|e[32]>>>19,_=e[32]<<13|e[33]>>>19,eu=e[42]<<2|e[43]>>>30,ec=e[43]<<2|e[42]>>>30,en=e[5]<<30|e[4]>>>2,er=e[4]<<30|e[5]>>>2,z=e[14]<<6|e[15]>>>26,B=e[15]<<6|e[14]>>>26,w=e[25]<<11|e[24]>>>21,x=e[24]<<11|e[25]>>>21,J=e[34]<<15|e[35]>>>17,X=e[35]<<15|e[34]>>>17,O=e[45]<<29|e[44]>>>3,P=e[44]<<29|e[45]>>>3,E=e[6]<<28|e[7]>>>4,I=e[7]<<28|e[6]>>>4,ei=e[17]<<23|e[16]>>>9,ea=e[16]<<23|e[17]>>>9,U=e[26]<<25|e[27]>>>7,F=e[27]<<25|e[26]>>>7,T=e[36]<<21|e[37]>>>11,C=e[37]<<21|e[36]>>>11,ee=e[47]<<24|e[46]>>>8,et=e[46]<<24|e[47]>>>8,q=e[8]<<27|e[9]>>>5,Y=e[9]<<27|e[8]>>>5,S=e[18]<<20|e[19]>>>12,k=e[19]<<20|e[18]>>>12,eo=e[29]<<7|e[28]>>>25,es=e[28]<<7|e[29]>>>25,Z=e[38]<<8|e[39]>>>24,W=e[39]<<8|e[38]>>>24,M=e[48]<<14|e[49]>>>18,A=e[49]<<14|e[48]>>>18,e[0]=m^~b&w,e[1]=g^~v&x,e[10]=E^~S&N,e[11]=I^~k&j,e[20]=L^~z&U,e[21]=R^~B&F,e[30]=q^~V&K,e[31]=Y^~Q&$,e[40]=en^~ei&eo,e[41]=er^~ea&es,e[2]=b^~w&T,e[3]=v^~x&C,e[12]=S^~N&D,e[13]=k^~j&_,e[22]=z^~U&Z,e[23]=B^~F&W,e[32]=V^~K&J,e[33]=Q^~$&X,e[42]=ei^~eo&ef,e[43]=ea^~es&el,e[4]=w^~T&M,e[5]=x^~C&A,e[14]=N^~D&O,e[15]=j^~_&P,e[24]=U^~Z&H,e[25]=F^~W&G,e[34]=K^~J&ee,e[35]=$^~X&et,e[44]=eo^~ef&eu,e[45]=es^~el&ec,e[6]=T^~M&m,e[7]=C^~A&g,e[16]=D^~O&E,e[17]=_^~P&I,e[26]=Z^~H&L,e[27]=W^~G&R,e[36]=J^~ee&q,e[37]=X^~et&Y,e[46]=ef^~eu&en,e[47]=el^~ec&er,e[8]=M^~m&b,e[9]=A^~g&v,e[18]=O^~E&S,e[19]=P^~I&k,e[28]=H^~L&z,e[29]=G^~R&B,e[38]=ee^~q&V,e[39]=et^~Y&Q,e[48]=eu^~en&ei,e[49]=ec^~er&ea,e[0]^=u[i],e[1]^=u[i+1]};if(a)eA.exports=T;else for(M=0;M<C.length;++M)r[C[M]]=T[C[M]]}();var eE=eA.exports;let eI=!1,eS=!1,ek={debug:1,default:2,info:2,warning:3,error:4,off:5},eN=ek.default,ej=null,eD=function(){try{let e=[];
345if(["NFD","NFC","NFKD","NFKC"].forEach(n=>{try{if("test"!=="test".normalize(n))throw Error("bad normalize")}catch{e.push(n)}}),e.length)throw Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw Error("broken implementation")}catch(e){return e.message}return null}();(sZ=sY||(sY={})).DEBUG="DEBUG",sZ.INFO="INFO",sZ.WARNING="WARNING",sZ.ERROR="ERROR",sZ.OFF="OFF",(sW=sV||(sV={})).UNKNOWN_ERROR="UNKNOWN_ERROR",sW.NOT_IMPLEMENTED="NOT_IMPLEMENTED",sW.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",sW.NETWORK_ERROR="NETWORK_ERROR",sW.SERVER_ERROR="SERVER_ERROR",sW.TIMEOUT="TIMEOUT",sW.BUFFER_OVERRUN="BUFFER_OVERRUN",sW.NUMERIC_FAULT="NUMERIC_FAULT",sW.MISSING_NEW="MISSING_NEW",sW.INVALID_ARGUMENT="INVALID_ARGUMENT",sW.MISSING_ARGUMENT="MISSING_ARGUMENT",sW.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",sW.CALL_EXCEPTION="CALL_EXCEPTION",sW.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",sW.NONCE_EXPIRED="NONCE_EXPIRED",sW.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",sW.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",sW.TRANSACTION_REPLACED="TRANSACTION_REPLACED",sW.ACTION_REJECTED="ACTION_REJECTED";let e_="0123456789abcdef";class eO{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,n){let r=e.toLowerCase();null==ek[r]&&this.throwArgumentError("invalid log level name","logLevel",e),eN>ek[r]||console.log.apply(console,n)}debug(...e){this._log(eO.levels.DEBUG,e)}info(...e){this._log(eO.levels.INFO,e)}warn(...e){this._log(eO.levels.WARNING,e)}makeError(e,n,r){if(eS)return this.makeError("censored error",n,{});n||(n=eO.errors.UNKNOWN_ERROR),r||(r={});let i=[];Object.keys(r).forEach(e=>{let n=r[e];try{if(n instanceof Uint8Array){let r="";for(let e=0;e<n.length;e++)r+=e_[n[e]>>4]+e_[15&n[e]];i.push(e+"=Uint8Array(0x"+r+")")}else i.push(e+"="+JSON.stringify(n))}catch{i.push(e+"="+JSON.stringify(r[e].toString()))}}),i.push(`code=${n}`),i.push(`version=${this.version}`);let a=e,o="";switch(n){case sV.NUMERIC_FAULT:{o="NUMERIC_FAULT";let n=e;switch(n){case"overflow":case"underflow":case"division-by-zero":o+="-"+n;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result"}break}case sV.CALL_EXCEPTION:case sV.INSUFFICIENT_FUNDS:case sV.MISSING_NEW:case sV.NONCE_EXPIRED:case sV.REPLACEMENT_UNDERPRICED:case sV.TRANSACTION_REPLACED:case sV.UNPREDICTABLE_GAS_LIMIT:o=n}o&&(e+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),i.length&&(e+=" ("+i.join(", ")+")");let s=Error(e);return s.reason=a,s.code=n,Object.keys(r).forEach(function(e){s[e]=r[e]}),s}throwError(e,n,r){throw this.makeError(e,n,r)}throwArgumentError(e,n,r){return this.throwError(e,eO.errors.INVALID_ARGUMENT,{argument:n,value:r})}assert(e,n,r,i){e||this.throwError(n,r,i)}assertArgument(e,n,r,i){e||this.throwArgumentError(n,r,i)}checkNormalize(e){eD&&this.throwError("platform missing String.prototype.normalize",eO.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:eD})}checkSafeUint53(e,n){"number"==typeof e&&(null==n&&(n="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(n,eO.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(n,eO.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,n,r){r=r?": "+r:"",e<n&&this.throwError("missing argument"+r,eO.errors.MISSING_ARGUMENT,{count:e,expectedCount:n}),e>n&&this.throwError("too many arguments"+r,eO.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:n})}checkNew(e,n){(e===Object||null==e)&&this.throwError("missing new",eO.errors.MISSING_NEW,{name:n.name})}checkAbstract(e,n){e===n?this.throwError("cannot instantiate abstract class "+JSON.stringify(n.name)+" directly; use a sub-class",eO.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||null==e)&&this.throwError("missing new",eO.errors.MISSING_NEW,{name:n.name})}static globalLogger(){return ej||(ej=new eO("logger/5.7.0")),ej}static setCensorship(e,n){if(!e&&n&&this.globalLogger().throwError("cannot permanently disable censorship",eO.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),eI){if(!e)return;this.globalLogger().throwError("error censorship permanent",eO.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}eS=!!e,eI=!!n}static setLogLevel(e){let n=ek[e.toLowerCase()];if(null==n){eO.globalLogger().warn("invalid log level - "+e);return}eN=n}static from(e){return new eO(e)}}eO.errors=sV,eO.levels=sY;let eP=new eO("bytes/5.7.0");function eL(e){return!!e.toHexString}function eR(e){return e.slice||(e.slice=function(){let n=Array.prototype.slice.call(arguments);return eR(new Uint8Array(Array.prototype.slice.apply(e,n)))}),e}function ez(e){return"number"==typeof e&&e==e&&e%1==0}function eB(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;
345if("string"==typeof e||!ez(e.length)||e.length<0)return!1;for(let n=0;n<e.length;n++){let r=e[n];if(!ez(r)||r<0||r>=256)return!1}return!0}function eU(e,n){if(n||(n={}),"number"==typeof e){eP.checkSafeUint53(e,"invalid arrayify value");let n=[];for(;e;)n.unshift(255&e),e=parseInt(String(e/256));return 0===n.length&&n.push(0),eR(new Uint8Array(n))}if(n.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),eL(e)&&(e=e.toHexString()),eF(e)){let r=e.substring(2);r.length%2&&("left"===n.hexPad?r="0"+r:"right"===n.hexPad?r+="0":eP.throwArgumentError("hex data is odd-length","value",e));let i=[];for(let e=0;e<r.length;e+=2)i.push(parseInt(r.substring(e,e+2),16));return eR(new Uint8Array(i))}return eB(e)?eR(new Uint8Array(e)):eP.throwArgumentError("invalid arrayify value","value",e)}function eF(e,n){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/)||n&&e.length!==2+2*n)}let eZ="0123456789abcdef";function eW(e,n){if(n||(n={}),"number"==typeof e){eP.checkSafeUint53(e,"invalid hexlify value");let n="";for(;e;)n=eZ[15&e]+n,e=Math.floor(e/16);return n.length?(n.length%2&&(n="0"+n),"0x"+n):"0x00"}if("bigint"==typeof e)return(e=e.toString(16)).length%2?"0x0"+e:"0x"+e;if(n.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),eL(e))return e.toHexString();if(eF(e))return e.length%2&&("left"===n.hexPad?e="0x0"+e.substring(2):"right"===n.hexPad?e+="0":eP.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(eB(e)){let n="0x";for(let r=0;r<e.length;r++){let i=e[r];n+=eZ[(240&i)>>4]+eZ[15&i]}return n}return eP.throwArgumentError("invalid hexlify value","value",e)}function eH(e,n,r){return"string"!=typeof e?e=eW(e):(!eF(e)||e.length%2)&&eP.throwArgumentError("invalid hexData","value",e),n=2+2*n,null!=r?"0x"+e.substring(n,2+2*r):"0x"+e.substring(n)}function eG(e,n){for("string"!=typeof e?e=eW(e):eF(e)||eP.throwArgumentError("invalid hex string","value",e),e.length>2*n+2&&eP.throwArgumentError("value out of range","value",arguments[1]);e.length<2*n+2;)e="0x0"+e.substring(2);return e}function eq(e){let n={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(eF(e)&&!(e.length%2)||eB(e)){let r=eU(e);64===r.length?(n.v=27+(r[32]>>7),r[32]&=127,n.r=eW(r.slice(0,32)),n.s=eW(r.slice(32,64))):65===r.length?(n.r=eW(r.slice(0,32)),n.s=eW(r.slice(32,64)),n.v=r[64]):eP.throwArgumentError("invalid signature string","signature",e),n.v<27&&(0===n.v||1===n.v?n.v+=27:eP.throwArgumentError("signature invalid v byte","signature",e)),n.recoveryParam=1-n.v%2,n.recoveryParam&&(r[32]|=128),n._vs=eW(r.slice(32,64))}else{if(n.r=e.r,n.s=e.s,n.v=e.v,n.recoveryParam=e.recoveryParam,n._vs=e._vs,null!=n._vs){let r=function(e,n){(e=eU(e)).length>n&&eP.throwArgumentError("value out of range","value",arguments[0]);let r=new Uint8Array(n);return r.set(e,n-e.length),eR(r)}(eU(n._vs),32);n._vs=eW(r);let i=r[0]>=128?1:0;null==n.recoveryParam?n.recoveryParam=i:n.recoveryParam!==i&&eP.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),r[0]&=127;let a=eW(r);null==n.s?n.s=a:n.s!==a&&eP.throwArgumentError("signature v mismatch _vs","signature",e)}if(null==n.recoveryParam)null==n.v?eP.throwArgumentError("signature missing v and recoveryParam","signature",e):0===n.v||1===n.v?n.recoveryParam=n.v:n.recoveryParam=1-n.v%2;else if(null==n.v)n.v=27+n.recoveryParam;else{let r=0===n.v||1===n.v?n.v:1-n.v%2;n.recoveryParam!==r&&eP.throwArgumentError("signature recoveryParam mismatch v","signature",e)}null!=n.r&&eF(n.r)?n.r=eG(n.r,32):eP.throwArgumentError("signature missing or invalid r","signature",e),null!=n.s&&eF(n.s)?n.s=eG(n.s,32):eP.throwArgumentError("signature missing or invalid s","signature",e);let r=eU(n.s);r[0]>=128&&eP.throwArgumentError("signature s out of range","signature",e),n.recoveryParam&&(r[0]|=128);let i=eW(r);n._vs&&(eF(n._vs)||eP.throwArgumentError("signature invalid _vs","signature",e),n._vs=eG(n._vs,32)),null==n._vs?n._vs=i:n._vs!==i&&eP.throwArgumentError("signature _vs mismatch v and s","signature",e)}return n.yParityAndS=n._vs,n.compact=n.r+n.yParityAndS.substring(2),n}function eY(e){return"0x"+eE.keccak_256(eU(e))}var eV={exports:{}},eQ=function(e){var n=e.default;if("function"==typeof n){var r=function(){return n.apply(this,arguments)};r.prototype=n.prototype}else r={};
vendor: 38,414 bytes, line 345
345return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}(Object.freeze({__proto__:null,default:{}}));!function(e,n){function r(e,n){if(!e)throw Error(n||"Assertion failed")}function i(e,n){e.super_=n;var r=function(){};r.prototype=n.prototype,e.prototype=new r,e.prototype.constructor=e}function a(e,n,r){if(a.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&(("le"===n||"be"===n)&&(r=n,n=10),this._init(e||0,n||10,r||"be"))}"object"==typeof e?e.exports=a:n.BN=a,a.BN=a,a.wordSize=26;try{c="u">typeof window&&"u">typeof window.Buffer?window.Buffer:eQ.Buffer}catch{}function o(e,n){var i=e.charCodeAt(n);return i>=48&&i<=57?i-48:i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:void r(!1,"Invalid character in "+e)}function s(e,n,r){var i=o(e,r);return r-1>=n&&(i|=o(e,r-1)<<4),i}function f(e,n,i,a){for(var o=0,s=0,f=Math.min(e.length,i),l=n;l<f;l++){var u=e.charCodeAt(l)-48;o*=a,s=u>=49?u-49+10:u>=17?u-17+10:u,r(u>=0&&s<a,"Invalid character"),o+=s}return o}function l(e,n){e.words=n.words,e.length=n.length,e.negative=n.negative,e.red=n.red}if(a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,n){return e.cmp(n)>0?e:n},a.min=function(e,n){return 0>e.cmp(n)?e:n},a.prototype._init=function(e,n,i){if("number"==typeof e)return this._initNumber(e,n,i);if("object"==typeof e)return this._initArray(e,n,i);"hex"===n&&(n=16),r(n===(0|n)&&n>=2&&n<=36);var a=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(a++,this.negative=1),a<e.length&&(16===n?this._parseHex(e,a,i):(this._parseBase(e,n,a),"le"===i&&this._initArray(this.toArray(),n,i)))},a.prototype._initNumber=function(e,n,i){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),n,i)},a.prototype._initArray=function(e,n,i){if(r("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var a=0;a<this.length;a++)this.words[a]=0;var o,s,f=0;if("be"===i)for(a=e.length-1,o=0;a>=0;a-=3)s=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[o]|=s<<f&67108863,this.words[o+1]=s>>>26-f&67108863,(f+=24)>=26&&(f-=26,o++);else if("le"===i)for(a=0,o=0;a<e.length;a+=3)s=e[a]|e[a+1]<<8|e[a+2]<<16,this.words[o]|=s<<f&67108863,this.words[o+1]=s>>>26-f&67108863,(f+=24)>=26&&(f-=26,o++);return this._strip()},a.prototype._parseHex=function(e,n,r){this.length=Math.ceil((e.length-n)/6),this.words=Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var a,o=0,f=0;if("be"===r)for(i=e.length-1;i>=n;i-=2)a=s(e,n,i)<<o,this.words[f]|=67108863&a,o>=18?(o-=18,f+=1,this.words[f]|=a>>>26):o+=8;else for(i=(e.length-n)%2==0?n+1:n;i<e.length;i+=2)a=s(e,n,i)<<o,this.words[f]|=67108863&a,o>=18?(o-=18,f+=1,this.words[f]|=a>>>26):o+=8;this._strip()},a.prototype._parseBase=function(e,n,r){this.words=[0],this.length=1;for(var i=0,a=1;a<=67108863;a*=n)i++;i--,a=a/n|0;for(var o=e.length-r,s=o%i,l=Math.min(o,o-s)+r,u=0,c=r;c<l;c+=i)u=f(e,c,c+i,n),this.imuln(a),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==s){var d=1;for(u=f(e,c,e.length,n),c=0;c<s;c++)d*=n;this.imuln(d),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},a.prototype.copy=function(e){e.words=Array(this.length);for(var n=0;n<this.length;n++)e.words[n]=this.words[n];e.length=this.length,e.negative=this.negative,e.red=this.red},a.prototype._move=function(e){l(e,this)},a.prototype.clone=function(){var e=new a(null);return this.copy(e),e},a.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},a.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"u">typeof Symbol&&"function"==typeof Symbol.for)try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=u}catch{a.prototype.inspect=u}else a.prototype.inspect=u;function u(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var c,d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function y(e,n,r){r.negative=n.negative^e.negative;var i=e.length+n.length|0;r.length=i,i=i-1|0;var a=0|e.words[0],o=0|n.words[0],s=a*o,f=67108863&s,l=s/67108864|0;r.words[0]=f;for(var u=1;u<i;u++){for(var c=l>>>26,d=67108863&l,p=Math.min(u,n.length-1),h=Math.max(0,u-e.length+1);h<=p;h++){var y=u-h|0;c+=(s=(a=0|e.words[y])*(o=0|n.words[h])+d)/67108864|0,d=67108863&s}r.words[u]=0|d,l=0|c}return 0!==l?r.words[u]=0|l:r.length--,r._strip()}a.prototype.toString=function(e,n){if(n=0|n||1,16===(e=e||10)||"hex"===e){i="";for(var i,a=0,o=0,s=0;s<this.length;s++){var f=this.words[s],l=((f<<a|o)&16777215).toString(16);o=f>>>24-a&16777215,(a+=2)>=26&&(a-=26,s--),i=0!==o||s!==this.length-1?d[6-l.length]+l+i:l+i}for(0!==o&&(i=o.toString(16)+i);i.length%n!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(e===(0|e)&&e>=2&&e<=36){var u=p[e],c=h[e];i="";var y=this.clone();for(y.negative=0;!y.isZero();){var m=y.modrn(c).toString(e);i=(y=y.idivn(c)).isZero()?m+i:d[u-m.length]+m+i}for(this.isZero()&&(i="0"+i);i.length%n!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}r(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16,2)},c&&(a.prototype.toBuffer=function(e,n){return this.toArrayLike(c,e,n)}),a.prototype.toArray=function(e,n){return this.toArrayLike(Array,e,n)},a.prototype.toArrayLike=function(e,n,i){this._strip();var a=this.byteLength(),o=i||Math.max(1,a);r(a<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0");var s=e.allocUnsafe?e.allocUnsafe(o):new e(o);return this["_toArrayLike"+("le"===n?"LE":"BE")](s,a),s},a.prototype._toArrayLikeLE=function(e,n){for(var r=0,i=0,a=0,o=0;a<this.length;a++){var s=this.words[a]<<o|i;e[r++]=255&s,r<e.length&&(e[r++]=s>>8&255),r<e.length&&(e[r++]=s>>16&255),6===o?(r<e.length&&(e[r++]=s>>24&255),i=0,o=0):(i=s>>>24,o+=2)}if(r<e.length)for(e[r++]=i;r<e.length;)e[r++]=0},a.prototype._toArrayLikeBE=function(e,n){for(var r=e.length-1,i=0,a=0,o=0;a<this.length;a++){var s=this.words[a]<<o|i;e[r--]=255&s,r>=0&&(e[r--]=s>>8&255),r>=0&&(e[r--]=s>>16&255),6===o?(r>=0&&(e[r--]=s>>24&255),i=0,o=0):(i=s>>>24,o+=2)}if(r>=0)for(e[r--]=i;r>=0;)e[r--]=0},Math.clz32?a.prototype._countBits=function(e){return 32-Math.clz32(e)}:a.prototype._countBits=function(e){var n=e,r=0;return n>=4096&&(r+=13,n>>>=13),n>=64&&(r+=7,n>>>=7),n>=8&&(r+=4,n>>>=4),n>=2&&(r+=2,n>>>=2),r+n},a.prototype._zeroBits=function(e){if(0===e)return 26;var n=e,r=0;return 8191&n||(r+=13,n>>>=13),127&n||(r+=7,n>>>=7),15&n||(r+=4,n>>>=4),3&n||(r+=2,n>>>=2),1&n||r++,r},a.prototype.bitLength=function(){var e=this.words[this.length-1],n=this._countBits(e);return(this.length-1)*26+n},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,n=0;n<this.length;n++){var r=this._zeroBits(this.words[n]);if(e+=r,26!==r)break}return e},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},a.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var n=0;n<e.length;n++)this.words[n]=this.words[n]|e.words[n];return this._strip()},a.prototype.ior=function(e){return r((this.negative|e.negative)==0),this.iuor(e)},a.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var n;n=this.length>e.length?e:this;for(var r=0;r<n.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=n.length,this._strip()},a.prototype.iand=function(e){return r((this.negative|e.negative)==0),this.iuand(e)},a.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var n,r;this.length>e.length?(n=this,r=e):(n=e,r=this);for(var i=0;i<r.length;i++)this.words[i]=n.words[i]^r.words[i];if(this!==n)for(;i<n.length;i++)this.words[i]=n.words[i];return this.length=n.length,this._strip()},a.prototype.ixor=function(e){return r((this.negative|e.negative)==0),this.iuxor(e)},a.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var n=0|Math.ceil(e/26),i=e%26;this._expand(n),i>0&&n--;for(var a=0;a<n;a++)this.words[a]=67108863&~this.words[a];return i>0&&(this.words[a]=~this.words[a]&67108863>>26-i),this._strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,n){r("number"==typeof e&&e>=0);var i=e/26|0,a=e%26;return this._expand(i+1),n?this.words[i]=this.words[i]|1<<a:this.words[i]=this.words[i]&~(1<<a),this._strip()},a.prototype.iadd=function(e){if(0!==this.negative&&0===e.negative)return this.negative=0,n=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,n=this.isub(e),e.negative=1,n._normSign();this.length>e.length?(r=this,i=e):(r=e,i=this);for(var n,r,i,a=0,o=0;o<i.length;o++)n=(0|r.words[o])+(0|i.words[o])+a,this.words[o]=67108863&n,a=n>>>26;for(;0!==a&&o<r.length;o++)n=(0|r.words[o])+a,this.words[o]=67108863&n,a=n>>>26;if(this.length=r.length,0!==a)this.words[this.length]=a,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},a.prototype.add=function(e){var n;return 0!==e.negative&&0===this.negative?(e.negative=0,n=this.sub(e),e.negative^=1,n):0===e.negative&&0!==this.negative?(this.negative=0,n=e.sub(this),this.negative=1,n):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var n,r,i=this.iadd(e);return e.negative=1,i._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(n=this,r=e):(n=e,r=this);for(var o=0,s=0;s<r.length;s++)o=(i=(0|n.words[s])-(0|r.words[s])+o)>>26,this.words[s]=67108863&i;for(;0!==o&&s<n.length;s++)o=(i=(0|n.words[s])+o)>>26,this.words[s]=67108863&i;if(0===o&&s<n.length&&n!==this)for(;s<n.length;s++)this.words[s]=n.words[s];return this.length=Math.max(this.length,s),n!==this&&(this.negative=1),this._strip()},a.prototype.sub=function(e){return this.clone().isub(e)};var m=function(e,n,r){var i,a,o,s=e.words,f=n.words,l=r.words,u=0,c=0|s[0],d=8191&c,p=c>>>13,h=0|s[1],y=8191&h,m=h>>>13,g=0|s[2],b=8191&g,v=g>>>13,w=0|s[3],x=8191&w,T=w>>>13,C=0|s[4],M=8191&C,A=C>>>13,E=0|s[5],I=8191&E,S=E>>>13,k=0|s[6],N=8191&k,j=k>>>13,D=0|s[7],_=8191&D,O=D>>>13,P=0|s[8],L=8191&P,R=P>>>13,z=0|s[9],B=8191&z,U=z>>>13,F=0|f[0],Z=8191&F,W=F>>>13,H=0|f[1],G=8191&H,q=H>>>13,Y=0|f[2],V=8191&Y,Q=Y>>>13,K=0|f[3],$=8191&K,J=K>>>13,X=0|f[4],ee=8191&X,et=X>>>13,en=0|f[5],er=8191&en,ei=en>>>13,ea=0|f[6],eo=8191&ea,es=ea>>>13,ef=0|f[7],el=8191&ef,eu=ef>>>13,ec=0|f[8],ed=8191&ec,ep=ec>>>13,eh=0|f[9],ey=8191&eh,em=eh>>>13;r.negative=e.negative^n.negative,r.length=19,i=Math.imul(d,Z),a=(a=Math.imul(d,W))+Math.imul(p,Z)|0,o=Math.imul(p,W);var eg=(u+i|0)+((8191&a)<<13)|0;u=(o+(a>>>13)|0)+(eg>>>26)|0,eg&=67108863,i=Math.imul(y,Z),a=(a=Math.imul(y,W))+Math.imul(m,Z)|0,o=Math.imul(m,W),i=i+Math.imul(d,G)|0,a=(a=a+Math.imul(d,q)|0)+Math.imul(p,G)|0,o=o+Math.imul(p,q)|0;var eb=(u+i|0)+((8191&a)<<13)|0;u=(o+(a>>>13)|0)+(eb>>>26)|0,eb&=67108863,i=Math.imul(b,Z),a=(a=Math.imul(b,W))+Math.imul(v,Z)|0,o=Math.imul(v,W),i=i+Math.imul(y,G)|0,a=(a=a+Math.imul(y,q)|0)+Math.imul(m,G)|0,o=o+Math.imul(m,q)|0,i=i+Math.imul(d,V)|0,a=(a=a+Math.imul(d,Q)|0)+Math.imul(p,V)|0,o=o+Math.imul(p,Q)|0;var ev=(u+i|0)+((8191&a)<<13)|0;u=(o+(a>>>13)|0)+(ev>>>26)|0,ev&=67108863,i=Math.imul(x,Z),a=(a=Math.imul(x,W))+Math.imul(T,Z)|0,o=Math.imul(T,W),i=i+Math.imul(b,G)|0,a=(a=a+Math.imul(b,q)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,q)|0,i=i+Math.imul(y,V)|0,a=(a=a+Math.imul(y,Q)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,Q)|0,i=i+Math.imul(d,$)|0,a=(a=a+Math.imul(d,J)|0)+Math.imul(p,$)|0,o=o+Math.imul(p,J)|0;var ew=(u+i|0)+((8191&a)<<13)|0;u=(o+(a>>>13)|0)+(ew>>>26)|0,ew&=67108863,i=Math.imul(M,Z),a=(a=Math.imul(M,W))+Math.imul(A,Z)|0,o=Math.imul(A,W),i=i+Math.imul(x,G)|0,a=(a=a+Math.imul(x,q)|0)+Math.imul(T,G)|0,o=o+Math.imul(T,q)|0,i=i+Math.imul(b,V)|0,a=(a=a+Math.imul(b,Q)|0)+Math.imul(v,V)|0,o=o+Math.imul(v,Q)|0,i=i+Math.imul(y,$)|0,a=(a=a+Math.imul(y,J)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,J)|0,i=i+Math.imul(d,ee)|0,a=(a=a+Math.imul(d,et)|0)+Math.imul(p,ee)|0,o=o+Math.imul(p,et)|0;var ex=(u+i|0)+((8191&a)<<13)|0;u=(o+(a>>>13)|0)+(ex>>>26)|0,ex&=67108863,i=Math.imul(I,Z),a=(a=Math.imul(I,W))+Math.imul(S,Z)|0,o=Math.imul(S,W),i=i+Math.imul(M,G)|0,a=(a=a+Math.imul(M,q)|0)+Math.imul(A,G)|0,o=o+Math.imul(A,q)|0,i=i+Math.imul(x,V)|0,a=(a=a+Math.imul(x,Q)|0)+Math.imul(T,V)|0,o=o+Math.imul(T,Q)|0,i=i+Math.imul(b,$)|0,a=(a=a+Math.imul(b,J)|0)+Math.imul(v,$)|0,o=o+Math.imul(v,J)|0,i=i+Math.imul(y,ee)|0,a=(a=a+Math.imul(y,et)|0)+Math.imul(m,ee)|0,o=o+Math.imul(m,et)|0,i=i+Math.imul(d,er)|0,a=(a=a+Math.imul(d,ei)|0)+Math.imul(p,er)|0,o=o+Math.imul(p,ei)|0;var eT=(u+i|0)+((8191&a)<<13)|0;u=(o+(a>>>13)|0)+(eT>>>26)|0,eT&=67108863,i=Math.imul(N,Z),a=(a=Math.imul(N,W))+Math.imul(j,Z)|0,o=Math.imul(j,W),i=i+Math.imul(I,G)|0,a=(a=a+Math.imul(I,q)|0)+Math.imul(S,G)|0,o=o+Math.imul(S,q)|0,i=i+Math.imul(M,V)|0,a=(a=a+Math.imul(M,Q)|0)+Math.imul(A,V)|0,o=o+Math.imul(A,Q)|0,i=i+Math.imul(x,$)|0,a=(a=a+Math.imul(x,J)|0)+Math.imul(T,$)|0,o=o+Math.imul(T,J)|0,i=i+Math.imul(b,ee)|0,a=(a=a+Math.imul(b,et)|0)+Math.imul(v,ee)|0,o=o+Math.imul(v,et)|0,i=i+Math.imul(y,er)|0,a=(a=a+Math.imul(y,ei)|0)+Math.imul(m,er)|0,o=o+Math.imul(m,ei)|0,i=i+Math.imul(d,eo)|0,a=(a=a+Math.imul(d,es)|0)+Math.imul(p,eo)|0,o=o+Math.imul(p,es)|0;var eC=(u+i|0)+((8191&a)<<13)|0;u=(o+(a>>>13)|0)+(eC>>>26)|0,eC&=67108863,i=Math.imul(_,Z),a=(a=Math.imul(_,W))+Math.imul(O,Z)|0,o=Math.imul(O,W),i=i+Math.imul(N,G)|0,a=(a=a+Math.imul(N,q)|0)+Math.imul(j,G)|0,o=o+Math.imul(j,q)|0,i=i+Math.imul(I,V)|0,a=(a=a+Math.imul(I,Q)|0)+Math.imul(S,V)|0,o=o+Math.imul(S,Q)|0,i=i+Math.imul(M,$)|0,a=(a=a+Math.imul(M,J)|0)+Math.imul(A,$)|0,o=o+Math.imul(A,J)|0,i=i+Math.imul(x,ee)|0,a=(a=a+Math.imul(x,et)|0)+Math.imul(T,ee)|0,o=o+Math.imul(T,et)|0,i=i+Math.imul(b,er)|0,a=(a=a+Math.imul(b,ei)|0)+Math.imul(v,er)|0,o=o+Math.imul(v,ei)|0,i=i+Math.imul(y,eo)|0,a=(a=a+Math.imul(y,es)|0)+Math.imul(m,eo)|0,o=o+Math.imul(m,es)|0,i=i+Math.imul(d,el)|0,a=(a=a+Math.imul(d,eu)|0)+Math.imul(p,el)|0,o=o+Math.imul(p,eu)|0;var eM=(u+i|0)+((8191&a)<<13)|0;u=(o+(a>>>13)|0)+(eM>>>26)|0,eM&=67108863,i=Math.imul(L,Z),a=(a=Math.imul(L,W))+Math.imul(R,Z)|0,o=Math.imul(R,W),i=i+Math.imul(_,G)|0,a=(a=a+Math.imul(_,q)|0)+Math.imul(O,G)|0,o=o+Math.imul(O,q)|0,i=i+Math.imul(N,V)|0,a=(a=a+Math.imul(N,Q)|0)+Math.imul(j,V)|0,o=o+Math.imul(j,Q)|0,i=i+Math.imul(I,$)|0,a=(a=a+Math.imul(I,J)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,J)|0,i=i+Math.imul(M,ee)|0,a=(a=a+Math.imul(M,et)|0)+Math.imul(A,ee)|0,o=o+Math.imul(A,et)|0,i=i+Math.imul(x,er)|0,a=(a=a+Math.imul(x,ei)|0)+Math.imul(T,er)|0,o=o+Math.imul(T,ei)|0,i=i+Math.imul(b,eo)|0,a=(a=a+Math.imul(b,es)|0)+Math.imul(v,eo)|0,o=o+Math.imul(v,es)|0,i=i+Math.imul(y,el)|0,a=(a=a+Math.imul(y,eu)|0)+Math.imul(m,el)|0,o=o+Math.imul(m,eu)|0,i=i+Math.imul(d,ed)|0,a=(a=a+Math.imul(d,ep)|0)+Math.imul(p,ed)|0,o=o+Math.imul(p,ep)|0;var eA=(u+i|0)+((8191&a)<<13)|0;u=(o+(a>>>13)|0)+(eA>>>26)|0,eA&=67108863,i=Math.imul(B,Z),a=(a=Math.imul(B,W))+Math.imul(U,Z)|0,o=Math.imul(U,W),i=i+Math.imul(L,G)|0,a=(a=a+Math.imul(L,q)|0)+Math.imul(R,G)|0,o=o+Math.imul(R,q)|0,i=i+Math.imul(_,V)|0,a=(a=a+Math.imul(_,Q)|0)+Math.imul(O,V)|0,o=o+Math.imul(O,Q)|0,i=i+Math.imul(N,$)|0,a=(a=a+Math.imul(N,J)|0)+Math.imul(j,$)|0,o=o+Math.imul(j,J)|0,i=i+Math.imul(I,ee)|0,a=(a=a+Math.imul(I,et)|0)+Math.imul(S,ee)|0,o=o+Math.imul(S,et)|0,i=i+Math.imul(M,er)|0,a=(a=a+Math.imul(M,ei)|0)+Math.imul(A,er)|0,o=o+Math.imul(A,ei)|0,i=i+Math.imul(x,eo)|0,a=(a=a+Math.imul(x,es)|0)+Math.imul(T,eo)|0,o=o+Math.imul(T,es)|0,i=i+Math.imul(b,el)|0,a=(a=a+Math.imul(b,eu)|0)+Math.imul(v,el)|0,o=o+Math.imul(v,eu)|0,i=i+Math.imul(y,ed)|0,a=(a=a+Math.imul(y,ep)|0)+Math.imul(m,ed)|0,o=o+Math.imul(m,ep)|0,i=i+Math.imul(d,ey)|0,a=(a=a+Math.imul(d,em)|0)+Math.imul(p,ey)|0,o=o+Math.imul(p,em)|0;var eE=(u+i|0)+((8191&a)<<13)|0;u=(o+(a>>>13)|0)+(eE>>>26)|0,eE&=67108863,i=Math.imul(B,G),a=(a=Math.imul(B,q))+Math.imul(U,G)|0,o=Math.imul(U,q),i=i+Math.imul(L,V)|0,a=(a=a+Math.imul(L,Q)|0)+Math.imul(R,V)|0,o=o+Math.imul(R,Q)|0,i=i+Math.imul(_,$)|0,a=(a=a+Math.imul(_,J)|0)+Math.imul(O,$)|0,o=o+Math.imul(O,J)|0,i=i+Math.imul(N,ee)|0,a=(a=a+Math.imul(N,et)|0)+Math.imul(j,ee)|0,o=o+Math.imul(j,et)|0,i=i+Math.imul(I,er)|0,a=(a=a+Math.imul(I,ei)|0)+Math.imul(S,er)|0,o=o+Math.imul(S,ei)|0,i=i+Math.imul(M,eo)|0,a=(a=a+Math.imul(M,es)|0)+Math.imul(A,eo)|0,o=o+Math.imul(A,es)|0,i=i+Math.imul(x,el)|0,a=(a=a+Math.imul(x,eu)|0)+Math.imul(T,el)|0,o=o+Math.imul(T,eu)|0,i=i+Math.imul(b,ed)|0,a=(a=a+Math.imul(b,ep)|0)+Math.imul(v,ed)|0,o=o+Math.imul(v,ep)|0,i=i+Math.imul(y,ey)|0,a=(a=a+Math.imul(y,em)|0)+Math.imul(m,ey)|0,o=o+Math.imul(m,em)|0;var eI=(u+i|0)+((8191&a)<<13)|0;u=(o+(a>>>13)|0)+(eI>>>26)|0,eI&=67108863,i=Math.imul(B,V),a=(a=Math.imul(B,Q))+Math.imul(U,V)|0,o=Math.imul(U,Q),i=i+Math.imul(L,$)|0,a=(a=a+Math.imul(L,J)|0)+Math.imul(R,$)|0,o=o+Math.imul(R,J)|0,i=i+Math.imul(_,ee)|0,a=(a=a+Math.imul(_,et)|0)+Math.imul(O,ee)|0,o=o+Math.imul(O,et)|0,i=i+Math.imul(N,er)|0,a=(a=a+Math.imul(N,ei)|0)+Math.imul(j,er)|0,o=o+Math.imul(j,ei)|0,i=i+Math.imul(I,eo)|0,a=(a=a+Math.imul(I,es)|0)+Math.imul(S,eo)|0,o=o+Math.imul(S,es)|0,i=i+Math.imul(M,el)|0,a=(a=a+Math.imul(M,eu)|0)+Math.imul(A,el)|0,o=o+Math.imul(A,eu)|0,i=i+Math.imul(x,ed)|0,a=(a=a+Math.imul(x,ep)|0)+Math.imul(T,ed)|0,o=o+Math.imul(T,ep)|0,i=i+Math.imul(b,ey)|0,a=(a=a+Math.imul(b,em)|0)+Math.imul(v,ey)|0,o=o+Math.imul(v,em)|0;var eS=(u+i|0)+((8191&a)<<13)|0;u=(o+(a>>>13)|0)+(eS>>>26)|0,eS&=67108863,i=Math.imul(B,$),a=(a=Math.imul(B,J))+Math.imul(U,$)|0,o=Math.imul(U,J),i=i+Math.imul(L,ee)|0,a=(a=a+Math.imul(L,et)|0)+Math.imul(R,ee)|0,o=o+Math.imul(R,et)|0,i=i+Math.imul(_,er)|0,a=(a=a+Math.imul(_,ei)|0)+Math.imul(O,er)|0,o=o+Math.imul(O,ei)|0,i=i+Math.imul(N,eo)|0,a=(a=a+Math.imul(N,es)|0)+Math.imul(j,eo)|0,o=o+Math.imul(j,es)|0,i=i+Math.imul(I,el)|0,a=(a=a+Math.imul(I,eu)|0)+Math.imul(S,el)|0,o=o+Math.imul(S,eu)|0,i=i+Math.imul(M,ed)|0,a=(a=a+Math.imul(M,ep)|0)+Math.imul(A,ed)|0,o=o+Math.imul(A,ep)|0,i=i+Math.imul(x,ey)|0,a=(a=a+Math.imul(x,em)|0)+Math.imul(T,ey)|0,o=o+Math.imul(T,em)|0;var ek=(u+i|0)+((8191&a)<<13)|0;u=(o+(a>>>13)|0)+(ek>>>26)|0,ek&=67108863,i=Math.imul(B,ee),a=(a=Math.imul(B,et))+Math.imul(U,ee)|0,o=Math.imul(U,et),i=i+Math.imul(L,er)|0,a=(a=a+Math.imul(L,ei)|0)+Math.imul(R,er)|0,o=o+Math.imul(R,ei)|0,i=i+Math.imul(_,eo)|0,a=(a=a+Math.imul(_,es)|0)+Math.imul(O,eo)|0,o=o+Math.imul(O,es)|0,i=i+Math.imul(N,el)|0,a=(a=a+Math.imul(N,eu)|0)+Math.imul(j,el)|0,o=o+Math.imul(j,eu)|0,i=i+Math.imul(I,ed)|0,a=(a=a+Math.imul(I,ep)|0)+Math.imul(S,ed)|0,o=o+Math.imul(S,ep)|0,i=i+Math.imul(M,ey)|0,a=(a=a+Math.imul(M,em)|0)+Math.imul(A,ey)|0,o=o+Math.imul(A,em)|0;var eN=(u+i|0)+((8191&a)<<13)|0;u=(o+(a>>>13)|0)+(eN>>>26)|0,eN&=67108863,i=Math.imul(B,er),a=(a=Math.imul(B,ei))+Math.imul(U,er)|0,o=Math.imul(U,ei),i=i+Math.imul(L,eo)|0,a=(a=a+Math.imul(L,es)|0)+Math.imul(R,eo)|0,o=o+Math.imul(R,es)|0,i=i+Math.imul(_,el)|0,a=(a=a+Math.imul(_,eu)|0)+Math.imul(O,el)|0,o=o+Math.imul(O,eu)|0,i=i+Math.imul(N,ed)|0,a=(a=a+Math.imul(N,ep)|0)+Math.imul(j,ed)|0,o=o+Math.imul(j,ep)|0,i=i+Math.imul(I,ey)|0,a=(a=a+Math.imul(I,em)|0)+Math.imul(S,ey)|0,o=o+Math.imul(S,em)|0;var ej=(u+i|0)+((8191&a)<<13)|0;u=(o+(a>>>13)|0)+(ej>>>26)|0,ej&=67108863,i=Math.imul(B,eo),a=(a=Math.imul(B,es))+Math.imul(U,eo)|0,o=Math.imul(U,es),i=i+Math.imul(L,el)|0,a=(a=a+Math.imul(L,eu)|0)+Math.imul(R,el)|0,o=o+Math.imul(R,eu)|0,i=i+Math.imul(_,ed)|0,a=(a=a+Math.imul(_,ep)|0)+Math.imul(O,ed)|0,o=o+Math.imul(O,ep)|0,i=i+Math.imul(N,ey)|0,a=(a=a+Math.imul(N,em)|0)+Math.imul(j,ey)|0,o=o+Math.imul(j,em)|0;var eD=(u+i|0)+((8191&a)<<13)|0;u=(o+(a>>>13)|0)+(eD>>>26)|0,eD&=67108863,i=Math.imul(B,el),a=(a=Math.imul(B,eu))+Math.imul(U,el)|0,o=Math.imul(U,eu),i=i+Math.imul(L,ed)|0,a=(a=a+Math.imul(L,ep)|0)+Math.imul(R,ed)|0,o=o+Math.imul(R,ep)|0,i=i+Math.imul(_,ey)|0,a=(a=a+Math.imul(_,em)|0)+Math.imul(O,ey)|0,o=o+Math.imul(O,em)|0;var e_=(u+i|0)+((8191&a)<<13)|0;u=(o+(a>>>13)|0)+(e_>>>26)|0,e_&=67108863,i=Math.imul(B,ed),a=(a=Math.imul(B,ep))+Math.imul(U,ed)|0,o=Math.imul(U,ep),i=i+Math.imul(L,ey)|0,a=(a=a+Math.imul(L,em)|0)+Math.imul(R,ey)|0,o=o+Math.imul(R,em)|0;var eO=(u+i|0)+((8191&a)<<13)|0;u=(o+(a>>>13)|0)+(eO>>>26)|0,eO&=67108863,i=Math.imul(B,ey),a=(a=Math.imul(B,em))+Math.imul(U,ey)|0,o=Math.imul(U,em);var eP=(u+i|0)+((8191&a)<<13)|0;return u=(o+(a>>>13)|0)+(eP>>>26)|0,eP&=67108863,l[0]=eg,l[1]=eb,l[2]=ev,l[3]=ew,l[4]=ex,l[5]=eT,l[6]=eC,l[7]=eM,l[8]=eA,l[9]=eE,l[10]=eI,l[11]=eS,l[12]=ek,l[13]=eN,l[14]=ej,l[15]=eD,l[16]=e_,l[17]=eO,l[18]=eP,0!==u&&(l[19]=u,r.length++),r};function g(e,n,r){r.negative=n.negative^e.negative,r.length=e.length+n.length;for(var i=0,a=0,o=0;o<r.length-1;o++){var s=a;a=0;for(var f=67108863&i,l=Math.min(o,n.length-1),u=Math.max(0,o-e.length+1);u<=l;u++){var c=o-u,d=(0|e.words[c])*(0|n.words[u]),p=67108863&d;s=s+(d/67108864|0)|0,f=67108863&(p=p+f|0),a+=(s=s+(p>>>26)|0)>>>26,s&=67108863}r.words[o]=f,i=s,s=a}return 0!==i?r.words[o]=i:r.length--,r._strip()}Math.imul||(m=y),a.prototype.mulTo=function(e,n){var r,i=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,n):i<63?y(this,e,n):g(this,e,n)},a.prototype.mul=function(e){var n=new a(null);return n.words=Array(this.length+e.length),this.mulTo(e,n)},a.prototype.mulf=function(e){var n=new a(null);return n.words=Array(this.length+e.length),g(this,e,n)},a.prototype.imul=function(e){return this.clone().mulTo(e,this)},a.prototype.imuln=function(e){var n=e<0;n&&(e=-e),r("number"==typeof e),r(e<67108864);for(var i=0,a=0;a<this.length;a++){var o=(0|this.words[a])*e,s=(67108863&o)+(67108863&i);i>>=26,i+=(o/67108864|0)+(s>>>26),this.words[a]=67108863&s}return 0!==i&&(this.words[a]=i,this.length++),n?this.ineg():this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var n=function(e){for(var n=Array(e.bitLength()),r=0;r<n.length;r++){var i=r/26|0,a=r%26;n[r]=e.words[i]>>>a&1}return n}(e);if(0===n.length)return new a(1);for(var r=this,i=0;i<n.length&&0===n[i];i++,r=r.sqr());if(++i<n.length)for(var o=r.sqr();i<n.length;i++,o=o.sqr())0!==n[i]&&(r=r.mul(o));return r},a.prototype.iushln=function(e){r("number"==typeof e&&e>=0);var n,i=e%26,a=(e-i)/26,o=67108863>>>26-i<<26-i;if(0!==i){var s=0;for(n=0;n<this.length;n++){var f=this.words[n]&o,l=(0|this.words[n])-f<<i;this.words[n]=l|s,s=f>>>26-i}s&&(this.words[n]=s,this.length++)}if(0!==a){for(n=this.length-1;n>=0;n--)this.words[n+a]=this.words[n];for(n=0;n<a;n++)this.words[n]=0;this.length+=a}return this._strip()},a.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},a.prototype.iushrn=function(e,n,i){r("number"==typeof e&&e>=0),a=n?(n-n%26)/26:0;var a,o=e%26,s=Math.min((e-o)/26,this.length),f=67108863^67108863>>>o<<o;if(a-=s,a=Math.max(0,a),i){for(var l=0;l<s;l++)i.words[l]=this.words[l];i.length=s}if(0!==s){if(this.length>s)for(this.length-=s,l=0;l<this.length;l++)this.words[l]=this.words[l+s];else this.words[0]=0,this.length=1}var u=0;for(l=this.length-1;l>=0&&(0!==u||l>=a);l--){var c=0|this.words[l];this.words[l]=u<<26-o|c>>>o,u=c&f}return i&&0!==u&&(i.words[i.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(e,n,i){return r(0===this.negative),this.iushrn(e,n,i)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){r("number"==typeof e&&e>=0);var n=e%26,i=(e-n)/26;return!(this.length<=i)&&!!(this.words[i]&1<<n)},a.prototype.imaskn=function(e){r("number"==typeof e&&e>=0);var n=e%26,i=(e-n)/26;return(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)?this:(0!==n&&i++,this.length=Math.min(i,this.length),0!==n&&(this.words[this.length-1]&=67108863^67108863>>>n<<n),this._strip())},a.prototype.maskn=function(e){return this.clone().imaskn(e)},a.prototype.iaddn=function(e){return r("number"==typeof e),r(e<67108864),e<0?this.isubn(-e):0!==this.negative?(1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(e),this.negative=1),this):this._iaddn(e)},a.prototype._iaddn=function(e){this.words[0]+=e;for(var n=0;n<this.length&&this.words[n]>=67108864;n++)this.words[n]-=67108864,n===this.length-1?this.words[n+1]=1:this.words[n+1]++;return this.length=Math.max(this.length,n+1),this},a.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var n=0;n<this.length&&this.words[n]<0;n++)this.words[n]+=67108864,this.words[n+1]-=1;return this._strip()},a.prototype.addn=function(e){return this.clone().iaddn(e)},a.prototype.subn=function(e){return this.clone().isubn(e)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(e,n,i){var a,o=e.length+i;this._expand(o);var s,f=0;for(a=0;a<e.length;a++){s=(0|this.words[a+i])+f;var l=(0|e.words[a])*n;s-=67108863&l,f=(s>>26)-(l/67108864|0),this.words[a+i]=67108863&s}for(;a<this.length-i;a++)f=(s=(0|this.words[a+i])+f)>>26,this.words[a+i]=67108863&s;if(0===f)return this._strip();for(r(-1===f),f=0,a=0;a<this.length;a++)f=(s=-(0|this.words[a])+f)>>26,this.words[a]=67108863&s;return this.negative=1,this._strip()},a.prototype._wordDiv=function(e,n){var r=this.length-e.length,i=this.clone(),o=e,s=0|o.words[o.length-1];0!=(r=26-this._countBits(s))&&(o=o.ushln(r),i.iushln(r),s=0|o.words[o.length-1]);var f,l=i.length-o.length;if("mod"!==n){(f=new a(null)).length=l+1,f.words=Array(f.length);for(var u=0;u<f.length;u++)f.words[u]=0}var c=i.clone()._ishlnsubmul(o,1,l);0===c.negative&&(i=c,f&&(f.words[l]=1));for(var d=l-1;d>=0;d--){var p=(0|i.words[o.length+d])*67108864+(0|i.words[o.length+d-1]);for(p=Math.min(p/s|0,67108863),i._ishlnsubmul(o,p,d);0!==i.negative;)p--,i.negative=0,i._ishlnsubmul(o,1,d),i.isZero()||(i.negative^=1);f&&(f.words[d]=p)}return f&&f._strip(),i._strip(),"div"!==n&&0!==r&&i.iushrn(r),{div:f||null,mod:i}},a.prototype.divmod=function(e,n,i){var o,s,f;return(r(!e.isZero()),this.isZero())?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(f=this.neg().divmod(e,n),"mod"!==n&&(o=f.div.neg()),"div"!==n&&(s=f.mod.neg(),i&&0!==s.negative&&s.iadd(e)),{div:o,mod:s}):0===this.negative&&0!==e.negative?(f=this.divmod(e.neg(),n),"mod"!==n&&(o=f.div.neg()),{div:o,mod:f.mod}):this.negative&e.negative?(f=this.neg().divmod(e.neg(),n),"div"!==n&&(s=f.mod.neg(),i&&0!==s.negative&&s.isub(e)),{div:f.div,mod:s}):e.length>this.length||0>this.cmp(e)?{div:new a(0),mod:this}:1===e.length?"div"===n?{div:this.divn(e.words[0]),mod:null}:"mod"===n?{div:null,mod:new a(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modrn(e.words[0]))}:this._wordDiv(e,n)},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var n=this.divmod(e);if(n.mod.isZero())return n.div;var r=0!==n.div.negative?n.mod.isub(e):n.mod,i=e.ushrn(1),a=e.andln(1),o=r.cmp(i);return o<0||1===a&&0===o?n.div:0!==n.div.negative?n.div.isubn(1):n.div.iaddn(1)},a.prototype.modrn=function(e){var n=e<0;n&&(e=-e),r(e<=67108863);for(var i=67108864%e,a=0,o=this.length-1;o>=0;o--)a=(i*a+(0|this.words[o]))%e;return n?-a:a},a.prototype.modn=function(e){return this.modrn(e)},a.prototype.idivn=function(e){var n=e<0;n&&(e=-e),r(e<=67108863);for(var i=0,a=this.length-1;a>=0;a--){var o=(0|this.words[a])+67108864*i;this.words[a]=o/e|0,i=o%e}return this._strip(),n?this.ineg():this},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var n=this,i=e.clone();n=0!==n.negative?n.umod(e):n.clone();for(var o=new a(1),s=new a(0),f=new a(0),l=new a(1),u=0;n.isEven()&&i.isEven();)n.iushrn(1),i.iushrn(1),++u;for(var c=i.clone(),d=n.clone();!n.isZero();){for(var p=0,h=1;!(n.words[0]&h)&&p<26;++p,h<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(c),s.isub(d)),o.iushrn(1),s.iushrn(1);for(var y=0,m=1;!(i.words[0]&m)&&y<26;++y,m<<=1);if(y>0)for(i.iushrn(y);y-- >0;)(f.isOdd()||l.isOdd())&&(f.iadd(c),l.isub(d)),f.iushrn(1),l.iushrn(1);n.cmp(i)>=0?(n.isub(i),o.isub(f),s.isub(l)):(i.isub(n),f.isub(o),l.isub(s))}return{a:f,b:l,gcd:i.iushln(u)}},a.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var n,i=this,o=e.clone();i=0!==i.negative?i.umod(e):i.clone();for(var s=new a(1),f=new a(0),l=o.clone();i.cmpn(1)>0&&o.cmpn(1)>0;){for(var u=0,c=1;!(i.words[0]&c)&&u<26;++u,c<<=1);if(u>0)for(i.iushrn(u);u-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);for(var d=0,p=1;!(o.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(o.iushrn(d);d-- >0;)f.isOdd()&&f.iadd(l),f.iushrn(1);i.cmp(o)>=0?(i.isub(o),s.isub(f)):(o.isub(i),f.isub(s))}return 0>(n=0===i.cmpn(1)?s:f).cmpn(0)&&n.iadd(e),n},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var n=this.clone(),r=e.clone();n.negative=0,r.negative=0;for(var i=0;n.isEven()&&r.isEven();i++)n.iushrn(1),r.iushrn(1);for(;;){for(;n.isEven();)n.iushrn(1);for(;r.isEven();)r.iushrn(1);var a=n.cmp(r);if(a<0){var o=n;n=r,r=o}else if(0===a||0===r.cmpn(1))break;n.isub(r)}return r.iushln(i)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){r("number"==typeof e);var n=e%26,i=(e-n)/26,a=1<<n;if(this.length<=i)return this._expand(i+1),this.words[i]|=a,this;for(var o=a,s=i;0!==o&&s<this.length;s++){var f=0|this.words[s];f+=o,o=f>>>26,f&=67108863,this.words[s]=f}return 0!==o&&(this.words[s]=o,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var n,i=e<0;if(0!==this.negative&&!i)return -1;if(0===this.negative&&i)return 1;if(this._strip(),this.length>1)n=1;else{i&&(e=-e),r(e<=67108863,"Number is too big");var a=0|this.words[0];n=a===e?0:a<e?-1:1}return 0!==this.negative?0|-n:n},a.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return -1;if(0===this.negative&&0!==e.negative)return 1;var n=this.ucmp(e);return 0!==this.negative?0|-n:n},a.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return -1;for(var n=0,r=this.length-1;r>=0;r--){var i=0|this.words[r],a=0|e.words[r];if(i!==a){i<a?n=-1:i>a&&(n=1);break}}return n},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return -1===this.cmpn(e)},a.prototype.lt=function(e){return -1===this.cmp(e)},a.prototype.lten=function(e){return 0>=this.cmpn(e)},a.prototype.lte=function(e){return 0>=this.cmp(e)},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new M(e)},a.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var b={k256:null,p224:null,p192:null,p25519:null};function v(e,n){this.name=e,this.p=new a(n,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function x(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function T(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function C(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function M(e){if("string"==typeof e){var n=a._prime(e);this.m=n.p,this.prime=n}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function A(e){M.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var e=new a(null);return e.words=Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var n,r=e;do this.split(r,this.tmp),n=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(n>this.n);var i=n<this.n?-1:r.ucmp(this.p);return 0===i?(r.words[0]=0,r.length=1):i>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},v.prototype.split=function(e,n){e.iushrn(this.n,0,n)},v.prototype.imulK=function(e){return e.imul(this.k)},i(w,v),w.prototype.split=function(e,n){for(var r=Math.min(e.length,9),i=0;i<r;i++)n.words[i]=e.words[i];if(n.length=r,e.length<=9){e.words[0]=0,e.length=1;return}var a=e.words[9];for(n.words[n.length++]=4194303&a,i=10;i<e.length;i++){var o=0|e.words[i];e.words[i-10]=(4194303&o)<<4|a>>>22,a=o}a>>>=22,e.words[i-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},w.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var n=0,r=0;r<e.length;r++){var i=0|e.words[r];n+=977*i,e.words[r]=67108863&n,n=64*i+(n/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(x,v),i(T,v),i(C,v),C.prototype.imulK=function(e){for(var n=0,r=0;r<e.length;r++){var i=(0|e.words[r])*19+n,a=67108863&i;i>>>=26,e.words[r]=a,n=i}return 0!==n&&(e.words[e.length++]=n),e},a._prime=function(e){var n;if(b[e])return b[e];
345if("k256"===e)n=new w;else if("p224"===e)n=new x;else if("p192"===e)n=new T;else if("p25519"===e)n=new C;else throw Error("Unknown prime "+e);return b[e]=n,n},M.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},M.prototype._verify2=function(e,n){r((e.negative|n.negative)==0,"red works only with positives"),r(e.red&&e.red===n.red,"red works only with red numbers")},M.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(l(e,e.umod(this.m)._forceRed(this)),e)},M.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},M.prototype.add=function(e,n){this._verify2(e,n);var r=e.add(n);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},M.prototype.iadd=function(e,n){this._verify2(e,n);var r=e.iadd(n);return r.cmp(this.m)>=0&&r.isub(this.m),r},M.prototype.sub=function(e,n){this._verify2(e,n);var r=e.sub(n);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},M.prototype.isub=function(e,n){this._verify2(e,n);var r=e.isub(n);return 0>r.cmpn(0)&&r.iadd(this.m),r},M.prototype.shl=function(e,n){return this._verify1(e),this.imod(e.ushln(n))},M.prototype.imul=function(e,n){return this._verify2(e,n),this.imod(e.imul(n))},M.prototype.mul=function(e,n){return this._verify2(e,n),this.imod(e.mul(n))},M.prototype.isqr=function(e){return this.imul(e,e.clone())},M.prototype.sqr=function(e){return this.mul(e,e)},M.prototype.sqrt=function(e){if(e.isZero())return e.clone();var n=this.m.andln(3);if(r(n%2==1),3===n){var i=this.m.add(new a(1)).iushrn(2);return this.pow(e,i)}for(var o=this.m.subn(1),s=0;!o.isZero()&&0===o.andln(1);)s++,o.iushrn(1);r(!o.isZero());var f=new a(1).toRed(this),l=f.redNeg(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);0!==this.pow(c,u).cmp(l);)c.redIAdd(l);for(var d=this.pow(c,o),p=this.pow(e,o.addn(1).iushrn(1)),h=this.pow(e,o),y=s;0!==h.cmp(f);){for(var m=h,g=0;0!==m.cmp(f);g++)m=m.redSqr();r(g<y);var b=this.pow(d,new a(1).iushln(y-g-1));p=p.redMul(b),d=b.redSqr(),h=h.redMul(d),y=g}return p},M.prototype.invm=function(e){var n=e._invmp(this.m);return 0!==n.negative?(n.negative=0,this.imod(n).redNeg()):this.imod(n)},M.prototype.pow=function(e,n){if(n.isZero())return new a(1).toRed(this);if(0===n.cmpn(1))return e.clone();var r=Array(16);r[0]=new a(1).toRed(this),r[1]=e;for(var i=2;i<r.length;i++)r[i]=this.mul(r[i-1],e);var o=r[0],s=0,f=0,l=n.bitLength()%26;for(0===l&&(l=26),i=n.length-1;i>=0;i--){for(var u=n.words[i],c=l-1;c>=0;c--){var d=u>>c&1;if(o!==r[0]&&(o=this.sqr(o)),0===d&&0===s){f=0;continue}s<<=1,s|=d,4!=++f&&(0!==i||0!==c)||(o=this.mul(o,r[s]),f=0,s=0)}l=26}return o},M.prototype.convertTo=function(e){var n=e.umod(this.m);return n===e?n.clone():n},M.prototype.convertFrom=function(e){var n=e.clone();return n.red=null,n},a.mont=function(e){return new A(e)},i(A,M),A.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},A.prototype.convertFrom=function(e){var n=this.imod(e.mul(this.rinv));return n.red=null,n},A.prototype.imul=function(e,n){if(e.isZero()||n.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(n),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=r.isub(i).iushrn(this.shift),o=a;return a.cmp(this.m)>=0?o=a.isub(this.m):0>a.cmpn(0)&&(o=a.iadd(this.m)),o._forceRed(this)},A.prototype.mul=function(e,n){if(e.isZero()||n.isZero())return new a(0)._forceRed(this);var r=e.mul(n),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(i).iushrn(this.shift),s=o;return o.cmp(this.m)>=0?s=o.isub(this.m):0>o.cmpn(0)&&(s=o.iadd(this.m)),s._forceRed(this)},A.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(eV,eM);var eK=eV.exports;let e$="bignumber/5.7.0";var eJ=eK.BN;let eX=new eO(e$),e0={},e1=!1;class e6{constructor(e,n){e!==e0&&eX.throwError("cannot call constructor directly; use BigNumber.from",eO.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=n,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return e2(e4(this).fromTwos(e))}toTwos(e){return e2(e4(this).toTwos(e))}abs(){return"-"===this._hex[0]?e6.from(this._hex.substring(1)):this}add(e){return e2(e4(this).add(e4(e)))}sub(e){return e2(e4(this).sub(e4(e)))}div(e){return e6.from(e).isZero()&&e3("division-by-zero","div"),e2(e4(this).div(e4(e)))}mul(e){return e2(e4(this).mul(e4(e)))}mod(e){let n=e4(e);return n.isNeg()&&e3("division-by-zero","mod"),e2(e4(this).umod(n))}pow(e){let n=e4(e);return n.isNeg()&&e3("negative-power","pow"),e2(e4(this).pow(n))}and(e){let n=e4(e);return(this.isNegative()||n.isNeg())&&e3("unbound-bitwise-result","and"),e2(e4(this).and(n))}or(e){let n=e4(e);return(this.isNegative()||n.isNeg())&&e3("unbound-bitwise-result","or"),e2(e4(this).or(n))}xor(e){let n=e4(e);return(this.isNegative()||n.isNeg())&&e3("unbound-bitwise-result","xor"),e2(e4(this).xor(n))}mask(e){return(this.isNegative()||e<0)&&e3("negative-width","mask"),e2(e4(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&e3("negative-width","shl"),e2(e4(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&e3("negative-width","shr"),e2(e4(this).shrn(e))}eq(e){return e4(this).eq(e4(e))}lt(e){return e4(this).lt(e4(e))}lte(e){return e4(this).lte(e4(e))}gt(e){return e4(this).gt(e4(e))}gte(e){return e4(this).gte(e4(e))}isNegative(){return"-"===this._hex[0]}isZero(){return e4(this).isZero()}toNumber(){try{return e4(this).toNumber()}catch{e3("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return eX.throwError("this platform does not support BigInt",eO.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?e1||(e1=!0,eX.warn("BigNumber.toString does not accept any parameters;
345 base-10 is assumed")):16===arguments[0]?eX.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",eO.errors.UNEXPECTED_ARGUMENT,{}):eX.throwError("BigNumber.toString does not accept parameters",eO.errors.UNEXPECTED_ARGUMENT,{})),e4(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof e6)return e;if("string"==typeof e)return e.match(/^-?0x[0-9a-f]+$/i)?new e6(e0,e5(e)):e.match(/^-?[0-9]+$/)?new e6(e0,e5(new eJ(e))):eX.throwArgumentError("invalid BigNumber string","value",e);if("number"==typeof e)return e%1&&e3("underflow","BigNumber.from",e),(e>=9007199254740991||e<=-9007199254740991)&&e3("overflow","BigNumber.from",e),e6.from(String(e));if("bigint"==typeof e)return e6.from(e.toString());if(eB(e))return e6.from(eW(e));if(e){if(e.toHexString){let n=e.toHexString();if("string"==typeof n)return e6.from(n)}else{let n=e._hex;if(null==n&&"BigNumber"===e.type&&(n=e.hex),"string"==typeof n&&(eF(n)||"-"===n[0]&&eF(n.substring(1))))return e6.from(n)}}return eX.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!!(e&&e._isBigNumber)}}function e5(e){if("string"!=typeof e)return e5(e.toString(16));if("-"===e[0])return"-"===(e=e.substring(1))[0]&&eX.throwArgumentError("invalid hex","value",e),"0x00"===(e=e5(e))?e:"-"+e;if("0x"!==e.substring(0,2)&&(e="0x"+e),"0x"===e)return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&"0x00"===e.substring(0,4);)e="0x"+e.substring(4);return e}function e2(e){return e6.from(e5(e))}function e4(e){let n=e6.from(e).toHexString();return"-"===n[0]?new eJ("-"+n.substring(3),16):new eJ(n.substring(2),16)}function e3(e,n,r){let i={fault:e,operation:n};return null!=r&&(i.value=r),eX.throwError(e,eO.errors.NUMERIC_FAULT,i)}let e8=new eO(e$),e9={},e7=e6.from(0),te=e6.from(-1);function tt(e,n,r,i){let a={fault:n,operation:r};return void 0!==i&&(a.value=i),e8.throwError(e,eO.errors.NUMERIC_FAULT,a)}let tn="0";for(;tn.length<256;)tn+=tn;function tr(e){if("number"!=typeof e)try{e=e6.from(e).toNumber()}catch{}return"number"==typeof e&&e>=0&&e<=256&&!(e%1)?"1"+tn.substring(0,e):e8.throwArgumentError("invalid decimal size","decimals",e)}function ti(e,n){null==n&&(n=0);let r=tr(n),i=(e=e6.from(e)).lt(e7);i&&(e=e.mul(te));let a=e.mod(r).toString();for(;a.length<r.length-1;)a="0"+a;a=a.match(/^([0-9]*[1-9]|0)(0*)/)[1];let o=e.div(r).toString();return e=1===r.length?o:o+"."+a,i&&(e="-"+e),e}function ta(e,n){null==n&&(n=0);let r=tr(n);"string"==typeof e&&e.match(/^-?[0-9.]+$/)||e8.throwArgumentError("invalid decimal value","value",e);let i="-"===e.substring(0,1);i&&(e=e.substring(1)),"."===e&&e8.throwArgumentError("missing value","value",e);let a=e.split(".");a.length>2&&e8.throwArgumentError("too many decimal points","value",e);let o=a[0],s=a[1];for(o||(o="0"),s||(s="0");"0"===s[s.length-1];)s=s.substring(0,s.length-1);for(s.length>r.length-1&&tt("fractional component exceeds decimals","underflow","parseFixed"),""===s&&(s="0");s.length<r.length-1;)s+="0";let f=e6.from(o),l=e6.from(s),u=f.mul(r).add(l);return i&&(u=u.mul(te)),u}class to{constructor(e,n,r,i){e!==e9&&e8.throwError("cannot use FixedFormat constructor; use FixedFormat.from",eO.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.signed=n,this.width=r,this.decimals=i,this.name=(n?"":"u")+"fixed"+String(r)+"x"+String(i),this._multiplier=tr(i),Object.freeze(this)}static from(e){if(e instanceof to)return e;"number"==typeof e&&(e=`fixed128x${e}`);let n=!0,r=128,i=18;if("string"==typeof e){if("fixed"!==e){if("ufixed"===e)n=!1;else{let a=e.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);a||e8.throwArgumentError("invalid fixed format","format",e),n="u"!==a[1],r=parseInt(a[2]),i=parseInt(a[3])}}}else if(e){let a=(n,r,i)=>null==e[n]?i:(typeof e[n]!==r&&e8.throwArgumentError("invalid fixed format ("+n+" not "+r+")","format."+n,e[n]),e[n]);n=a("signed","boolean",n),r=a("width","number",r),i=a("decimals","number",i)}return r%8&&e8.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",r),i>80&&e8.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",i),new to(e9,
345n,r,i)}}class ts{constructor(e,n,r,i){e!==e9&&e8.throwError("cannot use FixedNumber constructor; use FixedNumber.from",eO.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=i,this._hex=n,this._value=r,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(e){this.format.name!==e.format.name&&e8.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}addUnsafe(e){this._checkFormat(e);let n=ta(this._value,this.format.decimals),r=ta(e._value,e.format.decimals);return ts.fromValue(n.add(r),this.format.decimals,this.format)}subUnsafe(e){this._checkFormat(e);let n=ta(this._value,this.format.decimals),r=ta(e._value,e.format.decimals);return ts.fromValue(n.sub(r),this.format.decimals,this.format)}mulUnsafe(e){this._checkFormat(e);let n=ta(this._value,this.format.decimals),r=ta(e._value,e.format.decimals);return ts.fromValue(n.mul(r).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(e){this._checkFormat(e);let n=ta(this._value,this.format.decimals),r=ta(e._value,e.format.decimals);return ts.fromValue(n.mul(this.format._multiplier).div(r),this.format.decimals,this.format)}floor(){let e=this.toString().split(".");1===e.length&&e.push("0");let n=ts.from(e[0],this.format),r=!e[1].match(/^(0*)$/);return this.isNegative()&&r&&(n=n.subUnsafe(tf.toFormat(n.format))),n}ceiling(){let e=this.toString().split(".");1===e.length&&e.push("0");let n=ts.from(e[0],this.format),r=!e[1].match(/^(0*)$/);return!this.isNegative()&&r&&(n=n.addUnsafe(tf.toFormat(n.format))),n}round(e){null==e&&(e=0);let n=this.toString().split(".");if(1===n.length&&n.push("0"),(e<0||e>80||e%1)&&e8.throwArgumentError("invalid decimal count","decimals",e),n[1].length<=e)return this;let r=ts.from("1"+tn.substring(0,e),this.format),i=tl.toFormat(this.format);return this.mulUnsafe(r).addUnsafe(i).floor().divUnsafe(r)}isZero(){return"0.0"===this._value||"0"===this._value}isNegative(){return"-"===this._value[0]}toString(){return this._value}toHexString(e){return null==e?this._hex:(e%8&&e8.throwArgumentError("invalid byte width","width",e),eG(e6.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString(),e/8))}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return ts.fromString(this._value,e)}static fromValue(e,n,r){var i;return null!=r||null==n||null!=(i=n)&&(e6.isBigNumber(i)||"number"==typeof i&&i%1==0||"string"==typeof i&&i.match(/^-?[0-9]+$/)||eF(i)||"bigint"==typeof i||eB(i))||(r=n,n=null),null==n&&(n=0),null==r&&(r="fixed"),ts.fromString(ti(e,n),to.from(r))}static fromString(e,n){null==n&&(n="fixed");let r=to.from(n),i=ta(e,r.decimals);!r.signed&&i.lt(e7)&&tt("unsigned value cannot be negative","overflow","value",e);let a=null;return new ts(e9,r.signed?i.toTwos(r.width).toHexString():eG(i.toHexString(),r.width/8),ti(i,r.decimals),r)}static fromBytes(e,n){null==n&&(n="fixed");let r=to.from(n);if(eU(e).length>r.width/8)throw Error("overflow");let i=e6.from(e);return r.signed&&(i=i.fromTwos(r.width)),new ts(e9,i.toTwos((r.signed?0:1)+r.width).toHexString(),ti(i,r.decimals),r)}static from(e,n){if("string"==typeof e)return ts.fromString(e,n);if(eB(e))return ts.fromBytes(e,n);try{return ts.fromValue(e,0,n)}catch(e){if(e.code!==eO.errors.INVALID_ARGUMENT)throw e}return e8.throwArgumentError("invalid FixedNumber value","value",e)}static isFixedNumber(e){return!!(e&&e._isFixedNumber)}}let tf=ts.from(1),tl=ts.from("0.5"),tu=new eO("strings/5.7.0");function tc(e,n,r,i,a){if(e===sK.BAD_PREFIX||e===sK.UNEXPECTED_CONTINUE){let e=0;for(let i=n+1;i<r.length&&r[i]>>6==2;i++)e++;return e}return e===sK.OVERRUN?r.length-n-1:0}function td(e,n=sQ.current){n!=sQ.current&&(tu.checkNormalize(),e=e.normalize(n));let r=[];for(let n=0;n<e.length;n++){let i=e.charCodeAt(n);if(i<128)r.push(i);else if(i<2048)r.push(i>>6|192),r.push(63&i|128);else if((64512&i)==55296){n++;let a=e.charCodeAt(n);if(n>=e.length||(64512&a)!=56320)throw Error("invalid utf-8 string");let o=65536+((1023&i)<<10)+(1023&a);r.push(o>>18|240),r.push(o>>12&63|128),r.push(o>>6&63|128),r.push(63&o|128)}else r.push(i>>12|224),r.push(i>>6&63|128),r.push(63&i|128)}return eU(r)}
345function tp(e,n){n||(n=function(e){return[parseInt(e,16)]});let r=0,i={};return e.split(",").forEach(e=>{let a=e.split(":");i[r+=parseInt(a[0],16)]=n(a[1])}),i}function th(e){let n=0;return e.split(",").map(e=>{let r=e.split("-");return 1===r.length?r[1]="0":""===r[1]&&(r[1]="1"),{l:n+parseInt(r[0],16),h:n=parseInt(r[1],16)}})}(sH=sQ||(sQ={})).current="",sH.NFC="NFC",sH.NFD="NFD",sH.NFKC="NFKC",sH.NFKD="NFKD",(sG=sK||(sK={})).UNEXPECTED_CONTINUE="unexpected continuation byte",sG.BAD_PREFIX="bad codepoint prefix",sG.OVERRUN="string overrun",sG.MISSING_CONTINUE="missing continuation byte",sG.OUT_OF_RANGE="out of UTF-8 range",sG.UTF16_SURROGATE="UTF-16 surrogate",sG.OVERLONG="overlong representation",Object.freeze({error:function(e,n,r,i,a){return tu.throwArgumentError(`invalid codepoint at offset ${n}; ${e}`,"bytes",r)},ignore:tc,replace:function(e,n,r,i,a){return e===sK.OVERLONG?(i.push(a),0):(i.push(65533),tc(e,n,r))}}),th("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),"ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map(e=>parseInt(e,16)),tp("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),tp("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),tp("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",function(e){if(e.length%4!=0)throw Error("bad data");let n=[];for(let r=0;r<e.length;r+=4)n.push(parseInt(e.substring(r,r+4),16));return n}),th("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");let ty="hash/5.7.0";function tm(e,n){null==n&&(n=1);let r=[],i=r.forEach,a=function(e,n){i.call(e,function(e){n>0&&Array.isArray(e)?a(e,n-1):r.push(e)})};return a(e,n),r}function tg(e,n){let r=Array(e);for(let i=0,a=-1;i<e;i++)r[i]=a+=1+n();return r}function tb(e,n){let r=tg(e(),e),i=e(),a=tg(i,e),o=function(e,n){let r=Array(e);for(let i=0;i<e;i++)r[i]=1+n();return r}(i,e);for(let e=0;e<i;e++)for(let n=0;n<o[e];n++)r.push(a[e]+n);return n?r.map(e=>n[e]):r}function tv(e,n,r){let i=Array(e).fill(void 0).map(()=>[]);for(let a=0;a<n;a++)(function(e,n){let r=Array(e);for(let a=0,o=0;a<e;a++){var i;r[a]=o+=1&(i=n())?~i>>1:i>>1}return r})(e,r).forEach((e,n)=>i[n].push(e));return i}let tw=(sF=function(e){let n=0;function r(){return e[n++]<<8|e[n++]}let i=r(),a=1,o=[0,1];for(let e=1;e<i;e++)o.push(a+=r());let s=r(),f=n;n+=s;let l=0,u=0;function c(){return 0==l&&(u=u<<8|e[n++],l=8),u>>--l&1}let d=0;for(let e=0;e<31;e++)d=d<<1|c();let p=[],h=0,y=2147483648;for(;;){let e=Math.floor(((d-h+1)*a-1)/y),n=0,r=i;for(;r-n>1;){let i=n+r>>>1;e<o[i]?r=i:n=i}if(0==n)break;p.push(n);let s=h+Math.floor(y*o[n]/a),f=h+Math.floor(y*o[n+1]/a)-1;for(;!((s^f)&1073741824);)d=d<<1&2147483647|c(),s=s<<1&2147483647,f=f<<1&2147483647|1;for(;s&~f&536870912;)d=1073741824&d|d<<1&1073741823|c(),s=s<<1^1073741824,f=(1073741824^f)<<1|1073741824|1;h=s,y=1+f-s}let m=i-4;return p.map(n=>{switch(n-m){case 3:return m+65792+(e[f++]<<16|e[f++]<<8|e[f++]);case 2:return m+256+(e[f++]<<8|e[f++]);case 1:return m+e[f++];default:return n-1}})}(function(e){e=atob(e);let n=[];for(let r=0;r<e.length;r++)n.push(e.charCodeAt(r));return eU(n
vendor: 14,760 bytes, line 345
345)}("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA==")),
345a=0,()=>sF[a++]);tb(tw),tb(tw),function(e){let n=[];for(;;){let r=e();if(0==r)break;n.push(function(e,n){let r=1+n(),i=n(),a=function(e){let n=[];for(;;){let r=e();if(0==r)break;n.push(r)}return n}(n);return tm(tv(a.length,1+e,n).map((e,n)=>{let o=e[0],s=e.slice(1);return Array(a[n]).fill(void 0).map((e,n)=>{let a=n*i;return[o+n*r,s.map(e=>e+a)]})}))}(r,e))}for(;;){let r=e()-1;if(r<0)break;n.push(tv(1+e(),1+r,e).map(e=>[e[0],e.slice(1)]))}(function(e){let n={};for(let r=0;r<e.length;r++){let i=e[r];n[i[0]]=i[1]}})(tm(n))}(tw),i=tb(tw).sort((e,n)=>e-n),function e(){let n=[];for(;;){let r=tb(tw,i);if(0==r.length)break;n.push({set:new Set(r),node:e()})}n.sort((e,n)=>n.set.size-e.set.size);let r=tw();return{branches:n,valid:r%3,fe0f:!!(1&(r=r/3|0)),save:1==(r>>=1),check:2==r}}(),new eO(ty),new Uint8Array(32).fill(0);let tx=`�Ethereum Signed Message: 346`;function tT(e){return"string"==typeof e&&(e=td(e)),eY(function(e){let n=e.map(e=>eU(e)),r=new Uint8Array(n.reduce((e,n)=>e+n.length,0));return n.reduce((e,n)=>(r.set(n,e),e+n.length),0),eR(r)}([td(tx),td(String(e.length)),e]))}new eO("rlp/5.7.0");let tC=new eO("address/5.7.0");function tM(e){eF(e,20)||tC.throwArgumentError("invalid address","address",e);let n=(e=e.toLowerCase()).substring(2).split(""),r=new Uint8Array(40);for(let e=0;e<40;e++)r[e]=n[e].charCodeAt(0);let i=eU(eY(r));for(let e=0;e<40;e+=2)i[e>>1]>>4>=8&&(n[e]=n[e].toUpperCase()),(15&i[e>>1])>=8&&(n[e+1]=n[e+1].toUpperCase());return"0x"+n.join("")}let tA={};for(let e=0;e<10;e++)tA[String(e)]=String(e);for(let e=0;e<26;e++)tA[String.fromCharCode(65+e)]=String(10+e);let tE=Math.floor(Math.log10?Math.log10(9007199254740991):Math.log(9007199254740991)/Math.LN10);function tI(e,n,r){Object.defineProperty(e,n,{enumerable:!0,value:r,writable:!1})}new eO("properties/5.7.0"),new eO(ty),new Uint8Array(32).fill(0),e6.from(-1);let tS=e6.from(0),tk=e6.from(1);e6.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),eG(tk.toHexString(),32),eG(tS.toHexString(),32);var tN={},tj={};function tD(e,n){if(!e)throw Error(n||"Assertion failed")}tD.equal=function(e,n,r){if(e!=n)throw Error(r||"Assertion failed: "+e+" != "+n)};var t_={exports:{}};
346"function"==typeof Object.create?t_.exports=function(e,n){n&&(e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t_.exports=function(e,n){if(n){e.super_=n;var r=function(){};r.prototype=n.prototype,e.prototype=new r,e.prototype.constructor=e}};var tO=t_.exports;function tP(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function tL(e){return 1===e.length?"0"+e:e}function tR(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}tj.inherits=tO,tj.toArray=function(e,n){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e){if(n){if("hex"===n)for((e=e.replace(/[^a-z0-9]+/ig,"")).length%2!=0&&(e="0"+e),a=0;a<e.length;a+=2)r.push(parseInt(e[a]+e[a+1],16))}else for(var i=0,a=0;a<e.length;a++){var o,s,f=e.charCodeAt(a);f<128?r[i++]=f:(f<2048?r[i++]=f>>6|192:((o=e,s=a,(64512&o.charCodeAt(s))!=55296||s<0||s+1>=o.length||(64512&o.charCodeAt(s+1))!=56320)?r[i++]=f>>12|224:(f=65536+((1023&f)<<10)+(1023&e.charCodeAt(++a)),r[i++]=f>>18|240,r[i++]=f>>12&63|128),r[i++]=f>>6&63|128),r[i++]=63&f|128)}}else for(a=0;a<e.length;a++)r[a]=0|e[a];return r},tj.toHex=function(e){for(var n="",r=0;r<e.length;r++)n+=tL(e[r].toString(16));return n},tj.htonl=tP,tj.toHex32=function(e,n){for(var r="",i=0;i<e.length;i++){var a=e[i];"little"===n&&(a=tP(a)),r+=tR(a.toString(16))}return r},tj.zero2=tL,tj.zero8=tR,tj.join32=function(e,n,r,i){var a,o=r-n;tD(o%4==0);for(var s=Array(o/4),f=0,l=n;f<s.length;f++,l+=4)a="big"===i?e[l]<<24|e[l+1]<<16|e[l+2]<<8|e[l+3]:e[l+3]<<24|e[l+2]<<16|e[l+1]<<8|e[l],s[f]=a>>>0;return s},tj.split32=function(e,n){for(var r=Array(4*e.length),i=0,a=0;i<e.length;i++,a+=4){var o=e[i];"big"===n?(r[a]=o>>>24,r[a+1]=o>>>16&255,r[a+2]=o>>>8&255,r[a+3]=255&o):(r[a+3]=o>>>24,r[a+2]=o>>>16&255,r[a+1]=o>>>8&255,r[a]=255&o)}return r},tj.rotr32=function(e,n){return e>>>n|e<<32-n},tj.rotl32=function(e,n){return e<<n|e>>>32-n},tj.sum32=function(e,n){return e+n>>>0},tj.sum32_3=function(e,n,r){return e+n+r>>>0},tj.sum32_4=function(e,n,r,i){return e+n+r+i>>>0},tj.sum32_5=function(e,n,r,i,a){return e+n+r+i+a>>>0},tj.sum64=function(e,n,r,i){var a=e[n],o=i+e[n+1]>>>0;e[n]=(o<i?1:0)+r+a>>>0,e[n+1]=o},tj.sum64_hi=function(e,n,r,i){return(n+i>>>0<n?1:0)+e+r>>>0},tj.sum64_lo=function(e,n,r,i){return n+i>>>0},tj.sum64_4_hi=function(e,n,r,i,a,o,s,f){var l,u=n;return e+r+a+s+(0+((u=u+i>>>0)<n?1:0)+((u=u+o>>>0)<o?1:0)+((u=u+f>>>0)<f?1:0))>>>0},tj.sum64_4_lo=function(e,n,r,i,a,o,s,f){return n+i+o+f>>>0},tj.sum64_5_hi=function(e,n,r,i,a,o,s,f,l,u){var c,d=n;return e+r+a+s+l+(0+((d=d+i>>>0)<n?1:0)+((d=d+o>>>0)<o?1:0)+((d=d+f>>>0)<f?1:0)+((d=d+u>>>0)<u?1:0))>>>0},tj.sum64_5_lo=function(e,n,r,i,a,o,s,f,l,u){return n+i+o+f+u>>>0},tj.rotr64_hi=function(e,n,r){return(n<<32-r|e>>>r)>>>0},tj.rotr64_lo=function(e,n,r){return(e<<32-r|n>>>r)>>>0},tj.shr64_hi=function(e,n,r){return e>>>r},tj.shr64_lo=function(e,n,r){return(e<<32-r|n>>>r)>>>0};var tz={};function tB(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}tz.BlockHash=tB,tB.prototype.update=function(e,n){if(e=tj.toArray(e,n),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=tj.join32(e,0,e.length-r,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},tB.prototype.digest=function(e){return this.update(this._pad()),tD(null===this.pending),this._digest(e)},tB.prototype._pad=function(){var e=this.pendingTotal,n=this._delta8,r=n-(e+this.padLength)%n,i=Array(r+this.padLength);i[0]=128;for(var a=1;a<r;a++)i[a]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)i[a++]=0;i[a++]=0,i[a++]=0,i[a++]=0,i[a++]=0,i[a++]=e>>>24&255,i[a++]=e>>>16&255,i[a++]=e>>>8&255,i[a++]=255&e}else for(i[a++]=255&e,i[a++]=e>>>8&255,i[a++]=e>>>16&255,i[a++]=e>>>24&255,i[a++]=0,i[a++]=0,i[a++]=0,i[a++]=0,o=8;o<this.padLength;o++)i[a++]=0;return i};var tU={},tF={},tZ=tj.rotr32;function tW(e,n,r){return e&n^e&r^n&r}tF.ft_1=function(e,n,r,i){return 0===e?n&r^~n&i:1===e||3===e?n^r^i:2===e?tW(n,r,i):void 0},tF.ch32=function(e,n,r){return e&n^~e&r},tF.maj32=tW,tF.p32=function(e,n,r){return e^n^r},tF.s0_256=function(e){return tZ(e,2)^tZ(e,13)^tZ(e,22)},tF.s1_256=function(e){return tZ(e,6)^tZ(e,11)^tZ(e,25)},tF.g0_256=function(e){return tZ(e,7)^tZ(e,18)^e>>>3},tF.g1_256=function(e){return tZ(e,17)^tZ(e,19)^e>>>10};var tH=tj.rotl32,tG=tj.sum32,tq=tj.sum32_5,tY=tF.ft_1,tV=tz.BlockHash,tQ=[1518500249,1859775393,2400959708,3395469782];function tK(){if(!(this instanceof tK))return new tK;tV.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=Array(80)}tj.inherits(tK,tV),tK.blockSize=512,tK.outSize=160,tK.hmacStrength=80,tK.padLength=64,tK.prototype._update=function(e,n){for(var r=this.W,i=0;i<16;i++)r[i]=e[n+i];for(;i<r.length;i++)r[i]=tH(r[i-3]^r[i-8]^r[i-14]^r[i-16],1);var a=this.h[0],o=this.h[1],s=this.h[2],f=this.h[3],l=this.h[4];for(i=0;i<r.length;i++){var u=~~(i/20),c=tq(tH(a,5),tY(u,o,s,f),l,r[i],tQ[u]);l=f,f=s,s=tH(o,30),o=a,a=c}this.h[0]=tG(this.h[0],a),this.h[1]=tG(this.h[1],o),this.h[2]=tG(this.h[2],s),this.h[3]=tG(this.h[3],f),this.h[4]=tG(this.h[4],l)},tK.prototype._digest=function(e){return"hex"===e?tj.toHex32(this.h,"big"):tj.split32(this.h,"big")};var t$=tj.sum32,tJ=tj.sum32_4,tX=tj.sum32_5,t0=tF.ch32,t1=tF.maj32,t6=tF.s0_256,t5=tF.s1_256,t2=tF.g0_256,t4=tF.g1_256,t3=tz.BlockHash,t8=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756
vendor: 3,202 bytes, line 346
346734187,3204031479,3329325298];function t9(){if(!(this instanceof t9))return new t9;t3.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=t8,this.W=Array(64)}function t7(){if(!(this instanceof t7))return new t7;t9.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}tj.inherits(t9,t3),t9.blockSize=512,t9.outSize=256,t9.hmacStrength=192,t9.padLength=64,t9.prototype._update=function(e,n){for(var r=this.W,i=0;i<16;i++)r[i]=e[n+i];for(;i<r.length;i++)r[i]=tJ(t4(r[i-2]),r[i-7],t2(r[i-15]),r[i-16]);var a=this.h[0],o=this.h[1],s=this.h[2],f=this.h[3],l=this.h[4],u=this.h[5],c=this.h[6],d=this.h[7];for(tD(this.k.length===r.length),i=0;i<r.length;i++){var p=tX(d,t5(l),t0(l,u,c),this.k[i],r[i]),h=t$(t6(a),t1(a,o,s));d=c,c=u,u=l,l=t$(f,p),f=s,s=o,o=a,a=t$(p,h)}this.h[0]=t$(this.h[0],a),this.h[1]=t$(this.h[1],o),this.h[2]=t$(this.h[2],s),this.h[3]=t$(this.h[3],f),this.h[4]=t$(this.h[4],l),this.h[5]=t$(this.h[5],u),this.h[6]=t$(this.h[6],c),this.h[7]=t$(this.h[7],d)},t9.prototype._digest=function(e){return"hex"===e?tj.toHex32(this.h,"big"):tj.split32(this.h,"big")},tj.inherits(t7,t9),t7.blockSize=512,t7.outSize=224,t7.hmacStrength=192,t7.padLength=64,t7.prototype._digest=function(e){return"hex"===e?tj.toHex32(this.h.slice(0,7),"big"):tj.split32(this.h.slice(0,7),"big")};var ne=tj.rotr64_hi,nt=tj.rotr64_lo,nn=tj.shr64_hi,nr=tj.shr64_lo,ni=tj.sum64,na=tj.sum64_hi,no=tj.sum64_lo,ns=tj.sum64_4_hi,nf=tj.sum64_4_lo,nl=tj.sum64_5_hi,nu=tj.sum64_5_lo,nc=tz.BlockHash,nd=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,
3461126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function np(){if(!(this instanceof np))return new np;nc.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=nd,this.W=Array(160)}function nh(){if(!(this instanceof nh))return new nh;np.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}tj.inherits(np,nc),np.blockSize=1024,np.outSize=512,np.hmacStrength=192,np.padLength=128,np.prototype._prepareBlock=function(e,n){for(var r=this.W,i=0;i<32;i++)r[i]=e[n+i];for(;i<r.length;i+=2){var a=function(e,n){var r=ne(e,n,19)^ne(n,e,29)^nn(e,n,6);return r<0&&(r+=4294967296),r}(r[i-4],r[i-3]),o=function(e,n){var r=nt(e,n,19)^nt(n,e,29)^nr(e,n,6);return r<0&&(r+=4294967296),r}(r[i-4],r[i-3]),s=r[i-14],f=r[i-13],l=function(e,n){var r=ne(e,n,1)^ne(e,n,8)^nn(e,n,7);return r<0&&(r+=4294967296),r}(r[i-30],r[i-29]),u=function(e,n){var r=nt(e,n,1)^nt(e,n,8)^nr(e,n,7);return r<0&&(r+=4294967296),r}(r[i-30],r[i-29]),c=r[i-32],d=r[i-31];r[i]=ns(a,o,s,f,l,u,c,d),r[i+1]=nf(a,o,s,f,l,u,c,d)}},np.prototype._update=function(e,n){this._prepareBlock(e,n);var r=this.W,i=this.h[0],a=this.h[1],o=this.h[2],s=this.h[3],f=this.h[4],l=this.h[5],u=this.h[6],c=this.h[7],d=this.h[8],p=this.h[9],h=this.h[10],y=this.h[11],m=this.h[12],g=this.h[13],b=this.h[14],v=this.h[15];tD(this.k.length===r.length);for(var w=0;w<r.length;w+=2){var x=b,T=v,C=function(e,n){var r=ne(e,n,14)^ne(e,n,18)^ne(n,e,9);return r<0&&(r+=4294967296),r}(d,p),M=function(e,n){var r=nt(e,n,14)^nt(e,n,18)^nt(n,e,9);return r<0&&(r+=4294967296),r}(d,p),A=function(e,n,r,i,a){var o=e&r^~e&a;return o<0&&(o+=4294967296),o}(d,0,h,0,m),E=function(e,n,r,i,a,o){var s=n&i^~n&o;return s<0&&(s+=4294967296),s}(0,p,0,y,0,g),I=this.k[w],S=this.k[w+1],k=r[w],N=r[w+1],j=nl(x,T,C,M,A,E,I,S,k,N),D=nu(x,T,C,M,A,E,I,S,k,N);x=function(e,n){var r=ne(e,n,28)^ne(n,e,2)^ne(n,e,7);return r<0&&(r+=4294967296),r}(i,a);var _=na(x,T=function(e,n){var r=nt(e,n,28)^nt(n,e,2)^nt(n,e,7);return r<0&&(r+=4294967296),r}(i,a),C=function(e,n,r,i,a){var o=e&r^e&a^r&a;return o<0&&(o+=4294967296),o}(i,0,o,0,f),M=function(e,n,r,i,a,o){var s=n&i^n&o^i&o;return s<0&&(s+=4294967296),s}(0,a,0,s,0,l)),O=no(x,T,C,M);b=m,v=g,m=h,g=y,h=d,y=p,d=na(u,c,j,D),p=no(c,c,j,D),u=f,c=l,f=o,l=s,o=i,s=a,i=na(j,D,_,O),a=no(j,D,_,O)}ni(this.h,0,i,a),ni(this.h,2,o,s),ni(this.h,4,f,l),ni(this.h,6,u,c),ni(this.h,8,d,p),ni(this.h,10,h,y),ni(this.h,12,m,g),ni(this.h,14,b,v)},np.prototype._digest=function(e){return"hex"===e?tj.toHex32(this.h,"big"):tj.split32(this.h,"big")},tj.inherits(nh,np),nh.blockSize=1024,nh.outSize=384,nh.hmacStrength=192,nh.padLength=128,nh.prototype._digest=function(e){return"hex"===e?tj.toHex32(this.h.slice(0,12),"big"):tj.split32(this.h.slice(0,12),"big")},tU.sha1=tK,tU.sha224=t7,tU.sha256=t9,tU.sha384=nh,tU.sha512=np;var ny={},nm=tj.rotl32,ng=tj.sum32,nb=tj.sum32_3,nv=tj.sum32_4,nw=tz.BlockHash;function nx(){if(!(this instanceof nx))return new nx;nw.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function nT(e,n,r,i){return e<=15?n^r^i:e<=31?n&r|~n&i:e<=47?(n|~r)^i:e<=63?n&i|r&~i:n^(r|~i)}tj.inherits(nx,nw),ny.ripemd160=nx,nx.blockSize=512,nx.outSize=160,nx.hmacStrength=192,nx.padLength=64,nx.prototype._update=function(e,n){for(var r=this.h[0],i=this.h[1],a=this.h[2],o=this.h[3],s=this.h[4],f=r,l=i,u=a,c=o,d=s,p=0;p<80;p++){var h,y,m=ng(nm(nv(r,nT(p,i,a,o),e[nC[p]+n],(h=p)<=15?0:h<=31?1518500249:h<=47?1859775393:h<=63?2400959708:2840853838),nA[p]),s);r=s,s=o,o=nm(a,10),a=i,i=m,m=ng(nm(nv(f,nT(79-p,l,u,c),e[nM[p]+n],(y=p)<=15?1352829926:y<=31?1548603684:y<=47?1836072691:y<=63?2053994217:0),nE[p]),d),f=d,d=c,c=nm(u,10),u=l,l=m}m=nb(this.h[1],a,c),this.h[1]=nb(this.h[2],o,d),this.h[2]=nb(this.h[3],s,f),this.h[3]=nb(this.h[4],r,l),this.h[4]=nb(this.h[0],i,u),this.h[0]=m},nx.prototype._digest=function(e){return"hex"===e?tj.toHex32(this.h,"little"):tj.split32(this.h,"little")};var nC=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],nM=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],nA=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],nE=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];function nI(e,n,r){if(!(this instanceof nI))return new nI(e,n,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(tj.toArray(n,r))}function nS(e,n,r){return e(r={path:n,exports:{},require:function(e,n){return function(){throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(e,n??r.path)}},r.exports),r.exports}nI.prototype._init=function(e){e.length>this.blockSize&&(e=new this.Hash().update(e).digest()),tD(e.length<=this.blockSize);for(var n=e.length;n<this.blockSize;n++)e.push(0);for(n=0;n<e.length;n++)e[n]^=54;for(this.inner=new this.Hash().update(e),n=0;n<e.length;n++)e[n]^=106;this.outer=new this.Hash().update(e)},nI.prototype.update=function(e,n){return this.inner.update(e,n),this},nI.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)},tN.utils=tj,tN.common=tz,tN.sha=tU,tN.ripemd=ny,tN.hmac=nI,tN.sha1=tN.sha.sha1,tN.sha256=tN.sha.sha256,tN.sha224=tN.sha.sha224,tN.sha384=tN.sha.sha384,tN.sha512=tN.sha.sha512,tN.ripemd160=tN.ripemd.ripemd160;var nk=nN;function nN(e,n){if(!e)throw Error(n||"Assertion failed")}nN.equal=function(e,n,r){if(e!=n)throw Error(r||"Assertion failed: "+e+" != "+n)};var nj=nS(function(e,n){function r(e){return 1===e.length?"0"+e:e}function i(e){for(var n="",i=0;i<e.length;i++)n+=r(e[i].toString(16));return n}n.toArray=function(e,n){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!=typeof e){for(var i=0;i<e.length;i++)r[i]=0|e[i];return r}if("hex"===n){(e=e.replace(/[^a-z0-9]+/ig,"")).length%2!=0&&(e="0"+e);for(var i=0;i<e.length;i+=2)r.push(parseInt(e[i]+e[i+1],16))}else for(var i=0;i<e.length;i++){var a=e.charCodeAt(i),o=a>>8,s=255&a;o?r.push(o,s):r.push(s)}return r},n.zero2=r,n.toHex=i,n.encode=function(e,n){return"hex"===n?i(e):e}}
346),nD=nS(function(e,n){n.assert=nk,n.toArray=nj.toArray,n.zero2=nj.zero2,n.toHex=nj.toHex,n.encode=nj.encode,n.getNAF=function(e,n,r){var i=Array(Math.max(e.bitLength(),r)+1);i.fill(0);for(var a=1<<n+1,o=e.clone(),s=0;s<i.length;s++){var f,l=o.andln(a-1);o.isOdd()?(f=l>(a>>1)-1?(a>>1)-l:l,o.isubn(f)):f=0,i[s]=f,o.iushrn(1)}return i},n.getJSF=function(e,n){var r=[[],[]];e=e.clone(),n=n.clone();for(var i,a=0,o=0;e.cmpn(-a)>0||n.cmpn(-o)>0;){var s,f,l=e.andln(3)+a&3,u=n.andln(3)+o&3;3===l&&(l=-1),3===u&&(u=-1),s=1&l?(3==(i=e.andln(7)+a&7)||5===i)&&2===u?-l:l:0,r[0].push(s),f=1&u?(3==(i=n.andln(7)+o&7)||5===i)&&2===l?-u:u:0,r[1].push(f),2*a===s+1&&(a=1-a),2*o===f+1&&(o=1-o),e.iushrn(1),n.iushrn(1)}return r},n.cachedProperty=function(e,n,r){var i="_"+n;e.prototype[n]=function(){return void 0!==this[i]?this[i]:this[i]=r.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new eK(e,"hex","le")}}),n_=nD.getNAF,nO=nD.getJSF,nP=nD.assert;function nL(e,n){this.type=e,this.p=new eK(n.p,16),this.red=n.prime?eK.red(n.prime):eK.mont(this.p),this.zero=new eK(0).toRed(this.red),this.one=new eK(1).toRed(this.red),this.two=new eK(2).toRed(this.red),this.n=n.n&&new eK(n.n,16),this.g=n.g&&this.pointFromJSON(n.g,n.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function nR(e,n){this.curve=e,this.type=n,this.precomputed=null}nL.prototype.point=function(){throw Error("Not implemented")},nL.prototype.validate=function(){throw Error("Not implemented")}
vendor: 1,271 bytes, line 346
346,nL.prototype._fixedNafMul=function(e,n){nP(e.precomputed);var r=e._getDoubles(),i=n_(n,1,this._bitLength),a=(1<<r.step+1)-(r.step%2==0?2:1);a/=3;var o,s,f=[];for(o=0;o<i.length;o+=r.step){s=0;for(var l=o+r.step-1;l>=o;l--)s=(s<<1)+i[l];f.push(s)}for(var u=this.jpoint(null,null,null),c=this.jpoint(null,null,null),d=a;d>0;d--){for(o=0;o<f.length;o++)(s=f[o])===d?c=c.mixedAdd(r.points[o]):s===-d&&(c=c.mixedAdd(r.points[o].neg()));u=u.add(c)}return u.toP()},nL.prototype._wnafMul=function(e,n){var r=4,i=e._getNAFPoints(r);r=i.wnd;for(var a=i.points,o=n_(n,r,this._bitLength),s=this.jpoint(null,null,null),f=o.length-1;f>=0;f--){for(var l=0;f>=0&&0===o[f];f--)l++;if(f>=0&&l++,s=s.dblp(l),f<0)break;var u=o[f];nP(0!==u),s="affine"===e.type?u>0?s.mixedAdd(a[u-1>>1]):s.mixedAdd(a[-u-1>>1].neg()):u>0?s.add(a[u-1>>1]):s.add(a[-u-1>>1].neg())}return"affine"===e.type?s.toP():s},nL.prototype._wnafMulAdd=function(e,n,r,i,a){var o,s,f,l=this._wnafT1,u=this._wnafT2,c=this._wnafT3,d=0;for(o=0;o<i;o++){var p=(f=n[o])._getNAFPoints(e);l[o]=p.wnd,u[o]=p.points}for(o=i-1;o>=1;o-=2){var h=o-1,y=o;if(1!==l[h]||1!==l[y]){c[h]=n_(r[h],l[h],this._bitLength),c[y]=n_(r[y],l[y],this._bitLength),d=Math.max(c[h].length,d),d=Math.max(c[y].length,d);continue}var m=[n[h],null,null,n[y]];
vendor: 2,670 bytes, line 346
3460===n[h].y.cmp(n[y].y)?(m[1]=n[h].add(n[y]),m[2]=n[h].toJ().mixedAdd(n[y].neg())):0===n[h].y.cmp(n[y].y.redNeg())?(m[1]=n[h].toJ().mixedAdd(n[y]),m[2]=n[h].add(n[y].neg())):(m[1]=n[h].toJ().mixedAdd(n[y]),m[2]=n[h].toJ().mixedAdd(n[y].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],b=nO(r[h],r[y]);for(d=Math.max(b[0].length,d),c[h]=Array(d),c[y]=Array(d),s=0;s<d;s++){var v=0|b[0][s],w=0|b[1][s];c[h][s]=g[(v+1)*3+(w+1)],c[y][s]=0,u[h]=m}}var x=this.jpoint(null,null,null),T=this._wnafT4;for(o=d;o>=0;o--){for(var C=0;o>=0;){var M=!0;for(s=0;s<i;s++)T[s]=0|c[s][o],0!==T[s]&&(M=!1);if(!M)break;C++,o--}if(o>=0&&C++,x=x.dblp(C),o<0)break;for(s=0;s<i;s++){var A=T[s];0!==A&&(A>0?f=u[s][A-1>>1]:A<0&&(f=u[s][-A-1>>1].neg()),x="affine"===f.type?x.mixedAdd(f):x.add(f))}}for(o=0;o<i;o++)u[o]=null;return a?x:x.toP()},nL.BasePoint=nR,nR.prototype.eq=function(){throw Error("Not implemented")},nR.prototype.validate=function(){return this.curve.validate(this)},nL.prototype.decodePoint=function(e,n){e=nD.toArray(e,n);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?nP(e[e.length-1]%2==0):7===e[0]&&nP(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw Error("Unknown point format")},nR.prototype.encodeCompressed=function(e){return this.encode(e,!0)},nR.prototype._encode=function(e){var n=this.curve.p.byteLength(),r=this.getX().toArray("be",n);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",n))},nR.prototype.encode=function(e,n){return nD.encode(this._encode(n),e)},nR.prototype.precompute=function(e){if(this.precomputed)return this;var n={doubles:null,naf:null,beta:null};return n.naf=this._getNAFPoints(8),n.doubles=this._getDoubles(4,e),n.beta=this._getBeta(),this.precomputed=n,this},nR.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var n=this.precomputed.doubles;return!!n&&n.points.length>=Math.ceil((e.bitLength()+1)/n.step)},nR.prototype._getDoubles=function(e,n){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],i=this,a=0;a<n;a+=e){for(var o=0;o<e;o++)i=i.dbl();r.push(i)}return{step:e,points:r}},nR.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var n=[this],r=(1<<e)-1,i=1===r?null:this.dbl(),a=1;a<r;a++)n[a]=n[a-1].add(i);return{wnd:e,points:n}},nR.prototype._getBeta=function(){return null},nR.prototype.dblp=function(e){for(var n=this,r=0;r<e;r++)n=n.dbl();return n};var nz=nS(function(e){"function"==typeof Object.create?e.exports=function(e,n){
346n&&(e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,n){if(n){e.super_=n;var r=function(){};r.prototype=n.prototype,e.prototype=new r,e.prototype.constructor=e}}}),nB=nD.assert;function nU(e){nL.call(this,"short",e),this.a=new eK(e.a,16).toRed(this.red),this.b=new eK(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}function nF(e,n,r,i){nL.BasePoint.call(this,e,"affine"),null===n&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new eK(n,16),this.y=new eK(r,16),i&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function nZ(e,n,r,i){nL.BasePoint.call(this,e,"jacobian"),null===n&&null===r&&null===i?(this.x=this.curve.one,this.y=this.curve.one,this.z=new eK(0)):(this.x=new eK(n,16),this.y=new eK(r,16),this.z=new eK(i,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}nz(nU,nL),nU.prototype._getEndomorphism=function(e){if(!(!this.zeroA||!this.g||!this.n||1!==this.p.modn(3))){if(e.beta)n=new eK(e.beta,16).toRed(this.red);else{var n,r,i,a=this._getEndoRoots(this.p);n=(n=0>a[0].cmp(a[1])?a[0]:a[1]).toRed(this.red)}if(e.lambda)r=new eK(e.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(n))?r=o[0]:(r=o[1],nB(0===this.g.mul(r).x.cmp(this.g.x.redMul(n))))}return i=e.basis?e.basis.map(function(e){return{a:new eK(e.a,16),b:new eK(e.b,16)}}):this._getEndoBasis(r),{beta:n,lambda:r,basis:i}}},nU.prototype._getEndoRoots=function(e){var n=e===this.p?this.red:eK.mont(e),r=new eK(2).toRed(n).redInvm(),i=r.redNeg(),a=new eK(3).toRed(n).redNeg().redSqrt().redMul(r);return[i.redAdd(a).fromRed(),i.redSub(a).fromRed()]},nU.prototype._getEndoBasis=function(e){for(var n,r,i,a,o,s,f,l,u,c=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=e,p=this.n.clone(),h=new eK(1),y=new eK(0),m=new eK(0),g=new eK(1),b=0;0!==d.cmpn(0);){var v=p.div(d);l=p.sub(v.mul(d)),u=m.sub(v.mul(h));var w=g.sub(v.mul(y));if(!i&&0>l.cmp(c))n=f.neg(),r=h,i=l.neg(),a=u;else if(i&&2==++b)break;f=l,p=d,d=l,m=h,h=u,g=y,y=w}o=l.neg(),s=u;var x=i.sqr().add(a.sqr());return o.sqr().add(s.sqr()).cmp(x)>=0&&(o=n,s=r),i.negative&&(i=i.neg(),a=a.neg()),o.negative&&(o=o.neg(),s=s.neg()),[{a:i,b:a},{a:o,b:s}]},nU.prototype._endoSplit=function(e){var n=this.endo.basis,r=n[0],i=n[1],a=i.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),s=a.mul(r.a),f=o.mul(i.a),l=a.mul(r.b),u=o.mul(i.b);return{k1:e.sub(s).sub(f),k2:l.add(u).neg()}},nU.prototype.pointFromX=function(e,n){(e=new eK(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw Error("invalid point");var a=i.fromRed().isOdd();return(n&&!a||!n&&a)&&(i=i.redNeg()),this.point(e,i)},nU.prototype.validate=function(e){if(e.inf)return!0;var n=e.x,r=e.y,i=this.a.redMul(n),a=n.redSqr().redMul(n).redIAdd(i).redIAdd(this.b);return 0===r.redSqr().redISub(a).cmpn(0)},nU.prototype._endoWnafMulAdd=function(e,n,r){for(var i=this._endoWnafT1,a=this._endoWnafT2,o=0;o<e.length;o++){var s=this._endoSplit(n[o]),f=e[o],l=f._getBeta();s.k1.negative&&(s.k1.ineg(),f=f.neg(!0)),s.k2.negative&&(s.k2.ineg(),l=l.neg(!0)),i[2*o]=f,i[2*o+1]=l,a[2*o]=s.k1,a[2*o+1]=s.k2}for(var u=this._wnafMulAdd(1,i,a,2*o,r),c=0;c<2*o;c++)i[c]=null,a[c]=null;return u},nz(nF,nL.BasePoint),nU.prototype.point=function(e,n,r){return new nF(this,e,n,r)},nU.prototype.pointFromJSON=function(e,n){return nF.fromJSON(this,e,n)},nF.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var n=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,i=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=n,n.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(i)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(i)}}}return n}}
vendor: 8,424 bytes, line 346
346,nF.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},nF.fromJSON=function(e,n,r){"string"==typeof n&&(n=JSON.parse(n));var i=e.point(n[0],n[1],r);if(!n[2])return i;function a(n){return e.point(n[0],n[1],r)}var o=n[2];return i.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[i].concat(o.doubles.points.map(a))},naf:o.naf&&{wnd:o.naf.wnd,points:[i].concat(o.naf.points.map(a))}},i},nF.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},nF.prototype.isInfinity=function(){return this.inf},nF.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e)||0===this.x.cmp(e.x))return this.curve.point(null,null);var n=this.y.redSub(e.y);0!==n.cmpn(0)&&(n=n.redMul(this.x.redSub(e.x).redInvm()));var r=n.redSqr().redISub(this.x).redISub(e.x),i=n.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,i)},nF.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var n=this.curve.a,r=this.x.redSqr(),i=e.redInvm(),a=r.redAdd(r).redIAdd(r).redIAdd(n).redMul(i),o=a.redSqr().redISub(this.x.redAdd(this.x)),s=a.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,s)},nF.prototype.getX=function(){return this.x.fromRed()},nF.prototype.getY=function(){return this.y.fromRed()},nF.prototype.mul=function(e){return e=new eK(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},nF.prototype.mulAdd=function(e,n,r){var i=[this,n],a=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,a):this.curve._wnafMulAdd(1,i,a,2)},nF.prototype.jmulAdd=function(e,n,r){var i=[this,n],a=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,a,!0):this.curve._wnafMulAdd(1,i,a,2,!0)},nF.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},nF.prototype.neg=function(e){if(this.inf)return this;var n=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,i=function(e){return e.neg()};n.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(i)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(i)}}}return n},nF.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},nz(nZ,nL.BasePoint),nU.prototype.jpoint=function(e,n,r){return new nZ(this,e,n,r)},nZ.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),n=e.redSqr(),r=this.x.redMul(n),i=this.y.redMul(n).redMul(e);return this.curve.point(r,i)},nZ.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},nZ.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var n=e.z.redSqr(),r=this.z.redSqr(),i=this.x.redMul(n),a=e.x.redMul(r),o=this.y.redMul(n.redMul(e.z)),s=e.y.redMul(r.redMul(this.z)),f=i.redSub(a),l=o.redSub(s);if(0===f.cmpn(0))return 0!==l.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=f.redSqr(),c=u.redMul(f),d=i.redMul(u),p=l.redSqr().redIAdd(c).redISub(d).redISub(d),h=l.redMul(d.redISub(p)).redISub(o.redMul(c)),y=this.z.redMul(e.z).redMul(f);return this.curve.jpoint(p,h,y)},nZ.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var n=this.z.redSqr(),r=this.x,i=e.x.redMul(n),a=this.y,o=e.y.redMul(n).redMul(this.z),s=r.redSub(i),f=a.redSub(o);if(0===s.cmpn(0))return 0!==f.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=s.redSqr(),u=l.redMul(s),c=r.redMul(l),d=f.redSqr().redIAdd(u).redISub(c).redISub(c),p=f.redMul(c.redISub(d)).redISub(a.redMul(u)),h=this.z.redMul(s);return this.curve.jpoint(d,p,h)},nZ.prototype.dblp=function(e){if(0===e||this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){var n,r=this;for(n=0;n<e;n++)r=r.dbl();return r}var i=this.curve.a,a=this.curve.tinv,o=this.x,s=this.y,f=this.z,l=f.redSqr().redSqr(),u=s.redAdd(s);for(n=0;n<e;n++){var c=o.redSqr(),d=u.redSqr(),p=d.redSqr(),h=c.redAdd(c).redIAdd(c).redIAdd(i.redMul(l)),y=o.redMul(d),m=h.redSqr().redISub(y.redAdd(y)),g=y.redISub(m),b=h.redMul(g);b=b.redIAdd(b).redISub(p);var v=u.redMul(f);n+1<e&&(l=l.redMul(p)),o=m,f=v,u=b}return this.curve.jpoint(o,u.redMul(a),f)},nZ.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},nZ.prototype._zeroDbl=function(){var e,n,r;if(this.zOne){var i=this.x.redSqr(),a=this.y.redSqr(),o=a.redSqr(),s=this.x.redAdd(a).redSqr().redISub(i).redISub(o);s=s.redIAdd(s);var f=i.redAdd(i).redIAdd(i),l=f.redSqr().redISub(s).redISub(s),u=o.redIAdd(o);u=(u=u.redIAdd(u)).redIAdd(u),e=l,n=f.redMul(s.redISub(l)).redISub(u),r=this.y.redAdd(this.y)}else{var c=this.x.redSqr(),d=this.y.redSqr(),p=d.redSqr(),h=this.x.redAdd(d).redSqr().redISub(c).redISub(p);h=h.redIAdd(h);var y=c.redAdd(c).redIAdd(c),m=y.redSqr(),g=p.redIAdd(p);g=(g=g.redIAdd(g)).redIAdd(g),e=m.redISub(h).redISub(h),n=y.redMul(h.redISub(e)).redISub(g),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,n,r)},nZ.prototype._threeDbl=function(){var e,n,r;if(this.zOne){var i=this.x.redSqr(),a=this.y.redSqr(),o=a.redSqr(),s=this.x.redAdd(a).redSqr().redISub(i).redISub(o);s=s.redIAdd(s);var f=i.redAdd(i).redIAdd(i).redIAdd(this.curve.a),l=f.redSqr().redISub(s).redISub(s);e=l;var u=o.redIAdd(o);u=(u=u.redIAdd(u)).redIAdd(u),n=f.redMul(s.redISub(l)).redISub(u),r=this.y.redAdd(this.y)}else{var c=this.z.redSqr(),d=this.y.redSqr(),p=this.x.redMul(d),h=this.x.redSub(c).redMul(this.x.redAdd(c));h=h.redAdd(h).redIAdd(h);var y=p.redIAdd(p),m=(y=y.redIAdd(y)).redAdd(y);e=h.redSqr().redISub(m),r=this.y.redAdd(this.z).redSqr().redISub(d).redISub(c);var g=d.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),n=h.redMul(y.redISub(e)).redISub(g)}return this.curve.jpoint(e,n,r)},nZ.prototype._dbl=function(){var e=this.curve.a,n=this.x,r=this.y,i=this.z,a=i.redSqr().redSqr(),o=n.redSqr(),s=r.redSqr(),f=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(a)),l=n.redAdd(n),u=(l=l.redIAdd(l)).redMul(s),c=f.redSqr().redISub(u.redAdd(u)),d=u.redISub(c),p=s.redSqr();p=(p=(p=p.redIAdd(p)).redIAdd(p)).redIAdd(p);var h=f.redMul(d).redISub(p),y=r.redAdd(r).redMul(i);return this.curve.jpoint(c,h,y)},nZ.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),n=this.y.redSqr(),r=this.z.redSqr(),i=n.redSqr(),a=e.redAdd(e).redIAdd(e),o=a.redSqr(),s=this.x.redAdd(n).redSqr().redISub(e).redISub(i),f=(s=(s=(s=s.redIAdd(s)).redAdd(s).redIAdd(s)).redISub(o)).redSqr(),l=i.redIAdd(i);l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var u=a.redIAdd(s).redSqr().redISub(o).redISub(f).redISub(l),c=n.redMul(u);c=(c=c.redIAdd(c)).redIAdd(c);var d=this.x.redMul(f).redISub(c);d=(d=d.redIAdd(d)).redIAdd(d);var p=this.y.redMul(u.redMul(l.redISub(u)).redISub(s.redMul(f)));p=(p=(p=p.redIAdd(p)).redIAdd(p)).redIAdd(p);var h=this.z.redAdd(s).redSqr().redISub(r).redISub(f);return this.curve.jpoint(d,p,h)},nZ.prototype.mul=function(e,n){return e=new eK(e,n),this.curve._wnafMul(this,e)},nZ.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var n=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(n)).cmpn(0))return!1;var i=n.redMul(this.z),a=r.redMul(e.z);return 0===this.y.redMul(a).redISub(e.y.redMul(i)).cmpn(0)},nZ.prototype.eqXToP=function(e){var n=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(n);if(0===this.x.cmp(r))return!0;for(var i=e.clone(),a=this.curve.redN.redMul(n);;){if(i.iadd(this.curve.n),i.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(a),0===this.x.cmp(r))return!0}},nZ.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},nZ.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};
vendor: 4,876 bytes, line 346
346var nW=nS(function(e,n){n.base=nL,n.short=nU,n.mont=null,n.edwards=null}),nH=nS(function(e,n){var r,i=nD.assert;function a(e){"short"===e.type?this.curve=new nW.short(e):"edwards"===e.type?this.curve=new nW.edwards(e):this.curve=new nW.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function o(e,r){Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get:function(){var i=new a(r);return Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:i}),i}})}n.PresetCurve=a,o("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:tN.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),o("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:tN.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),o("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:tN.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),o("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:tN.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),o("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:tN.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),o("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:tN.sha256,gRed:!1,g:["9"]}),o("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:tN.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=null.crash()}catch{r=void 0}o("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:tN.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"}
346,{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})});function nG(e){if(!(this instanceof nG))return new nG(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var n=nj.toArray(e.entropy,e.entropyEnc||"hex"),r=nj.toArray(e.nonce,e.nonceEnc||"hex"),i=nj.toArray(e.pers,e.persEnc||"hex");nk(n.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(n,r,i)}nG.prototype._init=function(e,n,r){var i=e.concat(n).concat(r);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var a=0;a<this.V.length;a++)this.K[a]=0,this.V[a]=1;this._update(i),this._reseed=1,this.reseedInterval=281474976710656},nG.prototype._hmac=function(){return new tN.hmac(this.hash,this.K)},nG.prototype._update=function(e){var n=this._hmac().update(this.V).update([0]);e&&(n=n.update(e)),this.K=n.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},nG.prototype.reseed=function(e,n,r,i){"string"!=typeof n&&(i=r,r=n,n=null),e=nj.toArray(e,n),r=nj.toArray(r,i),nk(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},nG.prototype.generate=function(e,n,r,i){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof n&&(i=r,r=n,n=null),r&&(r=nj.toArray(r,i||"hex"),this._update(r));for(var a=[];a.length<e;)this.V=this._hmac().update(this.V).digest(),a=a.concat(this.V);var o=a.slice(0,e);return this._update(r),this._reseed++,nj.encode(o,n)};var nq=nD.assert;function nY(e,n){this.ec=e,this.priv=null,this.pub=null,n.priv&&this._importPrivate(n.priv,n.privEnc),n.pub&&this._importPublic(n.pub,n.pubEnc)}nY.fromPublic=function(e,n,r){return n instanceof nY?n:new nY(e,{pub:n,pubEnc:r})},nY.fromPrivate=function(e,n,r){return n instanceof nY?n:new nY(e,{priv:n,privEnc:r})},nY.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},nY.prototype.getPublic=function(e,n){return"string"==typeof e&&(n=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),n?this.pub.encode(n,e):this.pub},nY.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},nY.prototype._importPrivate=function(e,n){this.priv=new eK(e,n||16),this.priv=this.priv.umod(this.ec.curve.n)},nY.prototype._importPublic=function(e,n){if(e.x||e.y){"mont"===this.ec.curve.type?nq(e.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&nq(e.x&&e.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,n)},nY.prototype.derive=function(e){return e.validate()||nq(e.validate(),"public point not validated"),e.mul(this.priv).getX()},nY.prototype.sign=function(e,n,r){return this.ec.sign(e,this,n,r)},nY.prototype.verify=function(e,n){return this.ec.verify(e,n,this)},nY.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var nV=nD.assert;function nQ(e,n){if(e instanceof nQ)return e;this._importDER(e,n)||(nV(e.r&&e.s,"Signature without r or s"),this.r=new eK(e.r,16),this.s=new eK(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function nK(){this.place=0}function n$(e,n){var r=e[n.place++];if(!(128&r))return r;var i=15&r;if(0===i||i>4)return!1;for(var a=0,o=0,s=n.place;o<i;o++,s++)a<<=8,a|=e[s],a>>>=0;return!(a<=127)&&(n.place=s,a)}function nJ(e){for(var n=0,r=e.length-1;!e[n]&&!(128&e[n+1])&&n<r;)n++;return 0===n?e:e.slice(n)}function nX(e,n){if(n<128){e.push(n);return}var r=1+(Math.log(n)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(n>>>(r<<3)&255);e.push(n)}nQ.prototype._importDER=function(e,n){e=nD.toArray(e,n);var r=new nK;if(48!==e[r.place++])return!1;var i=n$(e,r);if(!1===i||i+r.place!==e.length||2!==e[r.place++])return!1;var a=n$(e,r);if(!1===a)return!1;var o=e.slice(r.place,a+r.place);if(r.place+=a,2!==e[r.place++])return!1;var s=n$(e,r);if(!1===s||e.length!==s+r.place)return!1;var f=e.slice(r.place,s+r.place);
346if(0===o[0]){if(!(128&o[1]))return!1;o=o.slice(1)}if(0===f[0]){if(!(128&f[1]))return!1;f=f.slice(1)}return this.r=new eK(o),this.s=new eK(f),this.recoveryParam=null,!0},nQ.prototype.toDER=function(e){var n=this.r.toArray(),r=this.s.toArray();for(128&n[0]&&(n=[0].concat(n)),128&r[0]&&(r=[0].concat(r)),n=nJ(n),r=nJ(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var i=[2];nX(i,n.length),(i=i.concat(n)).push(2),nX(i,r.length);var a=i.concat(r),o=[48];return nX(o,a.length),o=o.concat(a),nD.encode(o,e)};var n0=function(){throw Error("unsupported")},n1=nD.assert;function n6(e){if(!(this instanceof n6))return new n6(e);"string"==typeof e&&(n1(Object.prototype.hasOwnProperty.call(nH,e),"Unknown curve "+e),e=nH[e]),e instanceof nH.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}n6.prototype.keyPair=function(e){return new nY(this,e)},n6.prototype.keyFromPrivate=function(e,n){return nY.fromPrivate(this,e,n)},n6.prototype.keyFromPublic=function(e,n){return nY.fromPublic(this,e,n)},n6.prototype.genKeyPair=function(e){e||(e={});for(var n=new nG({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||n0(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),i=this.n.sub(new eK(2));;){var a=new eK(n.generate(r));if(!(a.cmp(i)>0))return a.iaddn(1),this.keyFromPrivate(a)}},n6.prototype._truncateToN=function(e,n){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!n&&e.cmp(this.n)>=0?e.sub(this.n):e},n6.prototype.sign=function(e,n,r,i){"object"==typeof r&&(i=r,r=null),i||(i={}),n=this.keyFromPrivate(n,r),e=this._truncateToN(new eK(e,16));for(var a=this.n.byteLength(),o=n.getPrivate().toArray("be",a),s=e.toArray("be",a),f=new nG({hash:this.hash,entropy:o,nonce:s,pers:i.pers,persEnc:i.persEnc||"utf8"}),l=this.n.sub(new eK(1)),u=0;;u++){var c=i.k?i.k(u):new eK(f.generate(this.n.byteLength()));if(!(0>=(c=this._truncateToN(c,!0)).cmpn(1)||c.cmp(l)>=0)){var d=this.g.mul(c);if(!d.isInfinity()){var p=d.getX(),h=p.umod(this.n);if(0!==h.cmpn(0)){var y=c.invm(this.n).mul(h.mul(n.getPrivate()).iadd(e));if(0!==(y=y.umod(this.n)).cmpn(0)){var m=(d.getY().isOdd()?1:0)|(0!==p.cmp(h)?2:0);return i.canonical&&y.cmp(this.nh)>0&&(y=this.n.sub(y),m^=1),new nQ({r:h,s:y,recoveryParam:m})}}}}}},n6.prototype.verify=function(e,n,r,i){e=this._truncateToN(new eK(e,16)),r=this.keyFromPublic(r,i);var a=(n=new nQ(n,"hex")).r,o=n.s;if(0>a.cmpn(1)||a.cmp(this.n)>=0||0>o.cmpn(1)||o.cmp(this.n)>=0)return!1;var s,f=o.invm(this.n),l=f.mul(e).umod(this.n),u=f.mul(a).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(l,r.getPublic(),u)).isInfinity()&&s.eqXToP(a):!(s=this.g.mulAdd(l,r.getPublic(),u)).isInfinity()&&0===s.getX().umod(this.n).cmp(a)},n6.prototype.recoverPubKey=function(e,n,r,i){n1((3&r)===r,"The recovery param is more than two bits"),n=new nQ(n,i);var a=this.n,o=new eK(e),s=n.r,f=n.s,l=1&r,u=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&u)throw Error("Unable to find sencond key candinate");s=u?this.curve.pointFromX(s.add(this.curve.n),l):this.curve.pointFromX(s,l);var c=n.r.invm(a),d=a.sub(o).mul(c).umod(a),p=f.mul(c).umod(a);return this.g.mulAdd(d,s,p)},n6.prototype.getKeyRecoveryParam=function(e,n,r,i){if(null!==(n=new nQ(n,i)).recoveryParam)return n.recoveryParam;for(var a,o=0;o<4;o++){try{a=this.recoverPubKey(e,n,o)}catch{continue}if(a.eq(r))return o}throw Error("Unable to find valid recovery factor")};
346var n5=nS(function(e,n){n.version="6.5.4",n.utils=nD,n.rand=function(){throw Error("unsupported")},n.curve=nW,n.curves=nH,n.ec=n6,n.eddsa=null}).ec;let n2=new eO("signing-key/5.7.0"),n4=null;function n3(){return n4||(n4=new n5("secp256k1")),n4}class n8{constructor(e){tI(this,"curve","secp256k1"),tI(this,"privateKey",eW(e)),32!==function(e){if("string"!=typeof e)e=eW(e);else if(!eF(e)||e.length%2)return null;return(e.length-2)/2}(this.privateKey)&&n2.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");let n=n3().keyFromPrivate(eU(this.privateKey));tI(this,"publicKey","0x"+n.getPublic(!1,"hex")),tI(this,"compressedPublicKey","0x"+n.getPublic(!0,"hex")),tI(this,"_isSigningKey",!0)}_addPoint(e){let n=n3().keyFromPublic(eU(this.publicKey)),r=n3().keyFromPublic(eU(e));return"0x"+n.pub.add(r.pub).encodeCompressed("hex")}signDigest(e){let n=n3().keyFromPrivate(eU(this.privateKey)),r=eU(e);32!==r.length&&n2.throwArgumentError("bad digest length","digest",e);let i=n.sign(r,{canonical:!0});return eq({recoveryParam:i.recoveryParam,r:eG("0x"+i.r.toString(16),32),s:eG("0x"+i.s.toString(16),32)})}computeSharedSecret(e){let n=n3().keyFromPrivate(eU(this.privateKey)),r=n3().keyFromPublic(eU(n9(e)));return eG("0x"+n.derive(r.getPublic()).toString(16),32)}static isSigningKey(e){return!!(e&&e._isSigningKey)}}function n9(e,n){let r=eU(e);if(32===r.length){let e=new n8(r);return n?"0x"+n3().keyFromPrivate(r).getPublic(!0,"hex"):e.publicKey}return 33===r.length?n?eW(r):"0x"+n3().keyFromPublic(r).getPublic(!1,"hex"):65===r.length?n?"0x"+n3().keyFromPublic(r).getPublic(!0,"hex"):eW(r):n2.throwArgumentError("invalid public or private key","key","[REDACTED]")}async function n7(e,n,r,i,a,o){switch(r.t){case"eip191":var s;return s=r.s,(function(e){let n=null;if("string"!=typeof e&&tC.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==e.substring(0,2)&&(e="0x"+e),n=tM(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&n!==e&&tC.throwArgumentError("bad address checksum","address",e);else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==function(e){let n=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map(e=>tA[e]).join("");for(;n.length>=tE;){let e=n.substring(0,tE);n=parseInt(e,10)%97+n.substring(e.length)}let r=String(98-parseInt(n,10)%97);for(;r.length<2;)r="0"+r;return r}(e)&&tC.throwArgumentError("bad icap checksum","address",e),n=new eJ(e.substring(4),36).toString(16);n.length<40;)n="0"+n;n=tM("0x"+n)}else tC.throwArgumentError("invalid address","address",e);return n})(eH(eY(eH(n9(function(e,n){let r=eq(n),i={r:eU(r.r),s:eU(r.s)};return"0x"+n3().recoverPubKey(eU(e),i,r.recoveryParam).encode("hex",!1)}(eU(tT(n)),s)),1)),12)).toLowerCase()===e.toLowerCase();case"eip1271":return await re(e,n,r.s,i,a,o);default:throw Error(`verifySignature failed: Attempted to verify CacaoSignature with unknown type: ${r.t}`)}}async function re(e,n,r,i,a,o){try{let s="0x1626ba7e",f=r.substring(2),l=tT(n).substring(2),u=await fetch(`${o||"https://rpc.walletconnect.com/v1"}/?chainId=${i}&projectId=${a}`,{method:"POST",body:JSON.stringify({id:Date.now()+Math.floor(1e3*Math.random()),jsonrpc:"2.0",method:"eth_call",params:[{to:e,data:s+l+"00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000041"+f},"latest"]})}),{result:c}=await u.json();return!!c&&c.slice(0,s.length).toLowerCase()===s.toLowerCase()}catch(e){return console.error("isValidEip1271Signature: ",e),!1}}new eO("transactions/5.7.0"),(sq=s$||(s$={}))[sq.legacy=0]="legacy",sq[sq.eip2930=1]="eip2930",sq[sq.eip1559=2]="eip1559";var rt=Object.defineProperty,rn=Object.defineProperties,rr=Object.getOwnPropertyDescriptors,ri=Object.getOwnPropertySymbols,ra=Object.prototype.hasOwnProperty,ro=Object.prototype.propertyIsEnumerable,rs=(e,n,r)=>n in e?rt(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,rf=(e,n)=>{for(var r in n||(n={}))ra.call(n,r)&&rs(e,r,n[r]);if(ri)for(var r of ri(n))ro.call(n,r)&&rs(e,r,n[r]);return e},rl=(e,n)=>rn(e,rr(n));let ru=e=>e?.split(":"),rc=e=>{let n=e&&ru(e);
346if(n)return e.includes("did:pkh:")?n[3]:n[1]},rd=e=>{let n=e&&ru(e);if(n)return n[2]+":"+n[3]},rp=e=>{let n=e&&ru(e);if(n)return n.pop()};async function rh(e){let{cacao:n,projectId:r}=e,{s:i,p:a}=n,o=ry(a,a.iss),s=rp(a.iss);return await n7(s,o,i,rc(a.iss),r)}let ry=(e,n)=>{let r=`${e.domain} wants you to sign in with your Ethereum account:`,i=rp(n);if(!e.aud&&!e.uri)throw Error("Either `aud` or `uri` is required to construct the message");let a=e.statement||void 0,o=`URI: ${e.aud||e.uri}`,s=`Version: ${e.version}`,f=`Chain ID: ${rc(n)}`,l=`Nonce: ${e.nonce}`,u=`Issued At: ${e.iat}`,c=e.exp?`Expiration Time: ${e.exp}`:void 0,d=e.nbf?`Not Before: ${e.nbf}`:void 0,p=e.requestId?`Request ID: ${e.requestId}`:void 0,h=e.resources?`Resources:${e.resources.map(e=>` 347- ${e}`).join("")}`:void 0,y=rx(e.resources);return y&&(a=function(e="",n){rm(n);let r="I further authorize the stated URI to perform the following actions on my behalf: ";if(e.includes(r))return e;let i=[],a=0;Object.keys(n.att).forEach(e=>{let r=Object.keys(n.att[e]).map(e=>({ability:e.split("/")[0],action:e.split("/")[1]}));r.sort((e,n)=>e.action.localeCompare(n.action));let o={};r.forEach(e=>{o[e.ability]||(o[e.ability]=[]),o[e.ability].push(e.action)});let s=Object.keys(o).map(n=>(a++,`(${a}) '${n}': '${o[n].join("', '")}' for '${e}'.`));i.push(s.join(", ").replace(".,","."))});let o=i.join(" "),s=`${r}${o}`;return`${e?e+" ":""}${s}`}(a,rb(y))),[r,i,"",a,"",o,s,f,l,u,c,d,p,h].filter(e=>null!=e).join(` 348`)};function rm(e){if(!e)throw Error("No recap provided, value is undefined");if(!e.att)throw Error("No `att` property found");let n=Object.keys(e.att);if(!(null!=n&&n.length))throw Error("No resources found in `att` property");n.forEach(n=>{let r=e.att[n];if(Array.isArray(r)||"object"!=typeof r)throw Error(`Resource must be an object: ${n}`);if(!Object.keys(r).length)throw Error(`Resource object is empty: ${n}`);Object.keys(r).forEach(e=>{let n=r[e];if(!Array.isArray(n))throw Error(`Ability limits ${e} must be an array of objects, found: ${n}`);if(!n.length)throw Error(`Value of ${e} is empty array, must be an array with objects`);n.forEach(n=>{if("object"!=typeof n)throw Error(`Ability limits (${e}) must be an array of objects, found: ${n}`)})})})}function rg(e){return rm(e),`urn:recap:${J.from(JSON.stringify(e)).toString("base64").replace(/=/g,"")}`}function rb(e){var n;let r=(n=e.replace("urn:recap:",""),JSON.parse(J.from(n,"base64").toString("utf-8")));return rm(r),r}function rv(e){var n;let r=rb(e);rm(r);let i=null==(n=r.att)?void 0:n.eip155;return i?Object.keys(i).map(e=>e.split("/")[1]):[]}function rw(e){let n=rb(e);rm(n);let r=[];return Object.values(n.att).forEach(e=>{Object.values(e).forEach(e=>{var n;null!=(n=e?.[0])&&n.chains&&r.push(e[0].chains)})}),[...new Set(r.flat())]}function rx(e){if(!e)return;let n=e?.[e.length-1];return n&&n.includes("urn:recap:")?n:void 0}let rT="base10",rC="base16",rM="base64pad",rA="utf8";function rE(){let e=(0,q.randomBytes)(32);return(0,Q.BB)(e,rC)}function rI(e){let n=(0,Y.vp)((0,Q.mL)(e,rC));return(0,Q.BB)(n,rC)}function rS(e){let n=(0,Y.vp)((0,Q.mL)(e,rA));return(0,Q.BB)(n,rC)}function rk(e){return Number((0,Q.BB)(e,rT))}function rN(e){let n=(0,Q.mL)(e,rM),r=n.slice(0,1);if(1===rk(r)){let e=n.slice(1,33),i=n.slice(33,45);return{type:r,sealed:n.slice(45),iv:i,senderPublicKey:e}}let i=n.slice(1,13);return{type:r,sealed:n.slice(13),iv:i}}function rj(e){let n=e?.type||0;if(1===n){if(typeof e?.senderPublicKey>"u")throw Error("missing sender public key");if(typeof e?.receiverPublicKey>"u")throw Error("missing receiver public key")}return{type:n,senderPublicKey:e?.senderPublicKey,receiverPublicKey:e?.receiverPublicKey}}function rD(e){return 1===e.type&&"string"==typeof e.senderPublicKey&&"string"==typeof e.receiverPublicKey}function r_(e){return e?.relay||{protocol:"irn"}}function rO(e){let n=K.iO[e];if(typeof n>"u")throw Error(`Relay Protocol not supported: ${e}`);return n}var rP=Object.defineProperty,rL=Object.defineProperties,rR=Object.getOwnPropertyDescriptors,rz=Object.getOwnPropertySymbols,rB=Object.prototype.hasOwnProperty,rU=Object.prototype.propertyIsEnumerable,rF=(e,n,r)=>n in e?rP(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,rZ=(e,n)=>{for(var r in n||(n={}))rB.call(n,r)&&rF(e,r,n[r]);if(rz)for(var r of rz(n))rU.call(n,r)&&rF(e,r,n[r]);return e},rW=(e,n)=>rL(e,rR(n));function rH(e){var n;
348let r=(e=(e=e.includes("wc://")?e.replace("wc://",""):e).includes("wc:")?e.replace("wc:",""):e).indexOf(":"),i=-1!==e.indexOf("?")?e.indexOf("?"):void 0,a=e.substring(0,r),o=e.substring(r+1,i).split("@"),s="u">typeof i?e.substring(i):"",f=W.parse(s),l="string"==typeof f.methods?f.methods.split(","):void 0;return{protocol:a,topic:(n=o[0]).startsWith("//")?n.substring(2):n,version:parseInt(o[1],10),symKey:f.symKey,relay:function(e,n="-"){let r={},i="relay"+n;return Object.keys(e).forEach(n=>{if(n.startsWith(i)){let a=n.replace(i,""),o=e[n];r[a]=o}}),r}(f),methods:l,expiryTimestamp:f.expiryTimestamp?parseInt(f.expiryTimestamp,10):void 0}}function rG(e){let n=[];return e.forEach(e=>{let[r,i]=e.split(":");n.push(`${r}:${i}`)}),n}function rq(e,n){let r=function(e){let n={};return e?.forEach(e=>{let[r,i]=e.split(":");n[r]||(n[r]={accounts:[],chains:[],events:[]}),n[r].accounts.push(e),n[r].chains.push(`${r}:${i}`)}),n}(n=n.map(e=>e.replace("did:pkh:","")));for(let[n,i]of Object.entries(r))i.methods?i.methods=function(e=[],n=[]){return[...new Set([...e,...n])]}(i.methods,e):i.methods=e,i.events=["chainChanged","accountsChanged"];return r}Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;let rY={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},rV={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function rQ(e,n){let{message:r,code:i}=rV[e];return{message:n?`${r} ${n}`:r,code:i}}function rK(e,n){let{message:r,code:i}=rY[e];return{message:n?`${r} ${n}`:r,code:i}}function r$(e,n){return!!Array.isArray(e)&&(!("u">typeof n)||!e.length||e.every(n))}function rJ(e){return Object.getPrototypeOf(e)===Object.prototype&&Object.keys(e).length}function rX(e){return typeof e>"u"}function r0(e,n){return!!(n&&rX(e))||"string"==typeof e&&!!e.trim().length}function r1(e,n){return!!(n&&rX(e))||"number"==typeof e&&!isNaN(e)}function r6(e){return!!(r0(e,!1)&&e.includes(":"))&&2===e.split(":").length}function r5(e){if(r0(e,!1))try{return"u">typeof new URL(e)}catch{}return!1}function r2(e){let n=!0;return r$(e)?e.length&&(n=e.every(e=>r0(e,!1))):n=!1,n}function r4(e,n){let r=null;return Object.values(e).forEach(e=>{var i;let a;if(r)return;let o=(i=`${n}, namespace`,a=null,r2(e?.methods)?r2(e?.events)||(a=rK("UNSUPPORTED_EVENTS",`${i}, events should be an array of strings or empty array for no events`)):a=rK("UNSUPPORTED_METHODS",`${i}
348, methods should be an array of strings or empty array for no methods`),a);o&&(r=o)}),r}function r3(e,n){let r=null;if(e&&rJ(e)){let i;let a=r4(e,n);a&&(r=a);let o=(i=null,Object.values(e).forEach(e=>{var r,a;let o;if(i)return;let s=(r=e?.accounts,a=`${n} namespace`,o=null,r$(r)?r.forEach(e=>{o||function(e){if(r0(e,!1)&&e.includes(":")){let n=e.split(":");if(3===n.length){let e=n[0]+":"+n[1];return!!n[2]&&r6(e)}}return!1}(e)||(o=rK("UNSUPPORTED_ACCOUNTS",`${a}, account ${e} should be a string and conform to "namespace:chainId:address" format`))}):o=rK("UNSUPPORTED_ACCOUNTS",`${a}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),o);s&&(i=s)}),i);o&&(r=o)}else r=rQ("MISSING_OR_INVALID",`${n}, namespaces should be an object with data`);return r}function r8(e){return r0(e.protocol,!0)}function r9(e){return"u">typeof e}function r7(e,n){return!(!r6(n)||!(function(e){let n=[];return Object.values(e).forEach(e=>{n.push(...rG(e.accounts))}),n})(e).includes(n))}function ie(e,n,r){let i=null,a=function(e){let n={};return Object.keys(e).forEach(r=>{var i;r.includes(":")?n[r]=e[r]:null==(i=e[r].chains)||i.forEach(i=>{n[i]={methods:e[r].methods,events:e[r].events}})}),n}(e),o=function(e){let n={};return Object.keys(e).forEach(r=>{if(r.includes(":"))n[r]=e[r];else{let i=rG(e[r].accounts);i?.forEach(i=>{n[i]={accounts:e[r].accounts.filter(e=>e.includes(`${i}:`)),methods:e[r].methods,events:e[r].events}})}}),n}(n),s=Object.keys(a),f=Object.keys(o),l=it(Object.keys(e)),u=it(Object.keys(n)),c=l.filter(e=>!u.includes(e));return c.length&&(i=rQ("NON_CONFORMING_NAMESPACES",`${r} namespaces keys don't satisfy requiredNamespaces. 349 Required: ${c.toString()} 350 Received: ${Object.keys(n).toString()}`)),ed(s,f)||(i=rQ("NON_CONFORMING_NAMESPACES",`${r} namespaces chains don't satisfy required namespaces. 351 Required: ${s.toString()} 352 Approved: ${f.toString()}`)),Object.keys(n).forEach(e=>{if(!e.includes(":")||i)return;let a=rG(n[e].accounts);a.includes(e)||(i=rQ("NON_CONFORMING_NAMESPACES",`${r} namespaces accounts don't satisfy namespace accounts for ${e} 353 Required: ${e} 354 Approved: ${a.toString()}`))}),s.forEach(e=>{i||(ed(a[e].methods,o[e].methods)?ed(a[e].events,o[e].events)||(i=rQ("NON_CONFORMING_NAMESPACES",`${r} namespaces events don't satisfy namespace events for ${e}`)):i=rQ("NON_CONFORMING_NAMESPACES",`${r} namespaces methods don't satisfy namespace methods for ${e}`))}),i}function it(e){return[...new Set(e.map(e=>e.includes(":")?e.split(":")[0]:e))]}function ir(e,n){return r1(e,!1)&&e<=n.max&&e>=n.min}function ii(){let e=ec();return new Promise(n=>{switch(e){case es.browser:n(eu()&&navigator?.onLine);break;case es.reactNative:n(ia());break;case es.node:default:n(!0)}})}async function ia(){if(el()&&"u">typeof r.g&&null!=r.g&&r.g.NetInfo){let e=await (null==r.g?void 0:r.g.NetInfo.fetch());return e?.isConnected}return!0}let io={};class is{static get(e){return io[e]}static set(e,n){io[e]=n}static delete(e){delete io[e]}}var il=r(56186);class iu extends il.IJsonRpcProvider{constructor(e){super(e),this.events=new o.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(e),this.connection.connected&&this.registerEventListeners()}async connect(e=this.connection){await this.open(e)}async disconnect(){await this.close()}on(e,n){this.events.on(e,n)}once(e,n){this.events.once(e,n)}off(e,n){this.events.off(e,n)}removeListener(e,n){this.events.removeListener(e,n)}async request(e,n){return this.requestStrict((0,il.formatJsonRpcRequest)(e.method,e.params||[],e.id||(0,il.getBigIntRpcId)().toString()),n)}async requestStrict(e,n){return new Promise(async(r,i)=>{if(!this.connection.connected)try{await this.open()}catch(e){i(e)}this.events.on(`${e.id}`,e=>{(0,il.isJsonRpcError)(e)?i(e.error):r(e.result)});try{await this.connection.send(e,n)}catch(e){i(e)}})}setConnection(e=this.connection){return e}onPayload(e){this.events.emit("payload",e),(0,il.isJsonRpcResponse)(e)?this.events.emit(`${e.id}`,e):this.events.emit("message",{type:e.method,data:e.params})}onClose(e){e&&3e3===e.code&&this.events.emit("error",Error(`WebSocket connection closed abnormally with code: ${e.code} ${e.reason?`(${e.reason})`:""}`)),this.events.emit("disconnect")}
354async open(e=this.connection){this.connection===e&&this.connection.connected||(this.connection.connected&&this.close(),"string"==typeof e&&(await this.connection.open(e),e=this.connection),this.connection=this.setConnection(e),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",e=>this.onPayload(e)),this.connection.on("close",e=>this.onClose(e)),this.connection.on("error",e=>this.events.emit("error",e)),this.connection.on("register_error",e=>this.onClose()),this.hasRegisteredEventListeners=!0)}}var ic=r(28939),id=r(72307),ip=r.n(id),ih=r(63144),iy=r.n(ih),im=r(34155),ig=function(e,n){if(e.length>=255)throw TypeError("Alphabet too long");for(var r=new Uint8Array(256),i=0;i<r.length;i++)r[i]=255;for(var a=0;a<e.length;a++){var o=e.charAt(a),s=o.charCodeAt(0);if(255!==r[s])throw TypeError(o+" is ambiguous");r[s]=a}var f=e.length,l=e.charAt(0),u=Math.log(f)/Math.log(256),c=Math.log(256)/Math.log(f);function d(e){if("string"!=typeof e)throw TypeError("Expected String");if(0===e.length)return new Uint8Array;var n=0;if(" "!==e[0]){for(var i=0,a=0;e[n]===l;)i++,n++;for(var o=(e.length-n)*u+1>>>0,s=new Uint8Array(o);e[n];){var c=r[e.charCodeAt(n)];if(255===c)return;for(var d=0,p=o-1;(0!==c||d<a)&&-1!==p;p--,d++)c+=f*s[p]>>>0,s[p]=c%256>>>0,c=c/256>>>0;if(0!==c)throw Error("Non-zero carry");a=d,n++}if(" "!==e[n]){for(var h=o-a;h!==o&&0===s[h];)h++;for(var y=new Uint8Array(i+(o-h)),m=i;h!==o;)y[m++]=s[h++];return y}}}return{encode:function(n){if(n instanceof Uint8Array||(ArrayBuffer.isView(n)?n=new Uint8Array(n.buffer,n.byteOffset,n.byteLength):Array.isArray(n)&&(n=Uint8Array.from(n))),!(n instanceof Uint8Array))throw TypeError("Expected Uint8Array");if(0===n.length)return"";for(var r=0,i=0,a=0,o=n.length;a!==o&&0===n[a];)a++,r++;for(var s=(o-a)*c+1>>>0,u=new Uint8Array(s);a!==o;){for(var d=n[a],p=0,h=s-1;(0!==d||p<i)&&-1!==h;h--,p++)d+=256*u[h]>>>0,u[h]=d%f>>>0,d=d/f>>>0;if(0!==d)throw Error("Non-zero carry");i=p,a++}for(var y=s-i;y!==s&&0===u[y];)y++;for(var m=l.repeat(r);y<s;++y)m+=e.charAt(u[y]);return m},decodeUnsafe:d,decode:function(e){var r=d(e);if(r)return r;throw Error(`Non-${n} character`)}}};let ib=e=>{if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw Error("Unknown type, must be binary type")},iv=e=>new TextEncoder().encode(e),iw=e=>new TextDecoder().decode(e);class ix{constructor(e,n,r){this.name=e,this.prefix=n,this.baseEncode=r}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class iT{constructor(e,n,r){if(this.name=e,this.prefix=n,void 0===n.codePointAt(0))throw Error("Invalid prefix character");this.prefixCodePoint=n.codePointAt(0),this.baseDecode=r}decode(e){if("string"==typeof e){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(e){return iM(this,e)}}class iC{constructor(e){this.decoders=e}or(e){return iM(this,e)}decode(e){let n=e[0],r=this.decoders[n];if(r)return r.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}let iM=(e,n)=>new iC({...e.decoders||{[e.prefix]:e},...n.decoders||{[n.prefix]:n}});class iA{constructor(e,n,r,i){this.name=e,this.prefix=n,this.baseEncode=r,this.baseDecode=i,this.encoder=new ix(e,n,r),this.decoder=new iT(e,n,i)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}let iE=({name:e,prefix:n,encode:r,decode:i})=>new iA(e,n,r,i),iI=({prefix:e,name:n,alphabet:r})=>{let{encode:i,decode:a}=ig(r,n);return iE({prefix:e,name:n,encode:i,decode:e=>ib(a(e))})},iS=(e,n,r,i)=>{let a={};for(let e=0;e<n.length;++e)a[n[e]]=e;let o=e.length;for(;"="===e[o-1];)--o;let s=new Uint8Array(o*r/8|0),f=0,l=0,u=0;for(let n=0;n<o;++n){let o=a[e[n]];if(void 0===o)throw SyntaxError(`Non-${i} character`);l=l<<r|o,(f+=r)>=8&&(f-=8,s[u++]=255&l>>f)}if(f>=r||255&l<<8-f)throw SyntaxError("Unexpected end of data");return s},ik=(e,n,r)=>{let i="="===n[n.length-1],a=(1<<r)-1,o="",s=0,f=0;for(let i=0;i<e.length;++i)for(f=f<<8|e[i],s+=8;s>r;)s-=r,o+=n[a&f>>s];if(s&&(o+=n[a&f<<r-s]),i)for(;o.length*r&7;)o+="=";return o}
354,iN=({name:e,prefix:n,bitsPerChar:r,alphabet:i})=>iE({prefix:n,name:e,encode:e=>ik(e,i,r),decode:n=>iS(n,i,r,e)});var ij=Object.freeze({__proto__:null,identity:iE({prefix:"\0",name:"identity",encode:e=>iw(e),decode:e=>iv(e)})}),iD=Object.freeze({__proto__:null,base2:iN({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1})}),i_=Object.freeze({__proto__:null,base8:iN({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3})}),iO=Object.freeze({__proto__:null,base10:iI({prefix:"9",name:"base10",alphabet:"0123456789"})}),iP=Object.freeze({__proto__:null,base16:iN({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),base16upper:iN({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4})});let iL=iN({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),iR=iN({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),iz=iN({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),iB=iN({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),iU=iN({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),iF=iN({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5});var iZ=Object.freeze({__proto__:null,base32:iL,base32upper:iR,base32pad:iz,base32padupper:iB,base32hex:iU,base32hexupper:iF,base32hexpad:iN({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),base32hexpadupper:iN({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),base32z:iN({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5})}),iW=Object.freeze({__proto__:null,base36:iI({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),base36upper:iI({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"})}),iH=Object.freeze({__proto__:null,base58btc:iI({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),base58flickr:iI({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"})});let iG=iN({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6});var iq=Object.freeze({__proto__:null,base64:iG,base64pad:iN({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),base64url:iN({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),base64urlpad:iN({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6})});let iY=Array.from("\uD83D\uDE80\uD83E\uDE90â\uD83D\uDEF0\uD83C\uDF0C\uD83C\uDF11\uD83C\uDF12\uD83C\uDF13\uD83C\uDF14\uD83C\uDF15\uD83C\uDF16\uD83C\uDF17\uD83C\uDF18\uD83C\uDF0D\uD83C\uDF0F\uD83C\uDF0E\uD83D\uDC09â\uD83D\uDCBB\uD83D\uDDA5\uD83D\uDCBE\uD83D\uDCBF\uD83D\uDE02â¤\uD83D\uDE0D\uD83E\uDD23\uD83D\uDE0A\uD83D\uDE4F\uD83D\uDC95\uD83D\uDE2D\uD83D\uDE18\uD83D\uDC4D\uD83D\uDE05\uD83D\uDC4F\uD83D\uDE01\uD83D\uDD25\uD83E\uDD70\uD83D\uDC94\uD83D\uDC96\uD83D\uDC99\uD83D\uDE22\uD83E\uDD14\uD83D\uDE06\uD83D\uDE44\uD83D\uDCAA\uD83D\uDE09âº\uD83D\uDC4C\uD83E\uDD17\uD83D\uDC9C\uD83D\uDE14\uD83D\uDE0E\uD83D\uDE07\uD83C\uDF39\uD83E\uDD26\uD83C\uDF89\uD83D\uDC9Eââ¨\uD83E\uDD37\uD83D\uDE31\uD83D\uDE0C\uD83C\uDF38\uD83D\uDE4C\uD83D\uDE0B\uD83D\uDC97\uD83D\uDC9A\uD83D\uDE0F\uD83D\uDC9B\uD83D\uDE42\uD83D\uDC93\uD83E\uDD29\uD83D\uDE04\uD83D\uDE00\uD83D\uDDA4\uD83D\uDE03\uD83D\uDCAF\uD83D\uDE48\uD83D\uDC47\uD83C\uDFB6\uD83D\uDE12\uD83E\uDD2Dâ£\uD83D\uDE1C\uD83D\uDC8B\uD83D\uDC40\uD83D\uDE2A\uD83D\uDE11\uD83D\uDCA5\uD83D\uDE4B\uD83D\uDE1E\uD83D\uDE29\uD83D\uDE21\uD83E\uDD2A\uD83D\uDC4A\uD83E\uDD73\uD83D\uDE25\uD83E\uDD24\uD83D\uDC49\uD83D\uDC83\uD83D\uDE33â\uD83D\uDE1A\uD83D\uDE1D\uD83D\uDE34\uD83C\uDF1F\uD83D\uDE2C\uD83D\uDE43\uD83C\uDF40\uD83C\uDF37\uD83D\uDE3B\uD83D\uDE13ââ
\uD83E\uDD7A\uD83C\uDF08\uD83D\uDE08\uD83E\uDD18\uD83D\uDCA6â\uD83D\uDE23\uD83C\uDFC3\uD83D\uDC90â¹\uD83C\uDF8A\uD83D\uDC98\uD83D\uDE20â\uD83D\uDE15\uD83C\uDF3A\uD83C\uDF82\uD83C\uDF3B\uD83D\uDE10\uD83D\uDD95\uD83D\uDC9D\uD83D\uDE4A\uD83D\uDE39\uD83D\uDDE3\uD83D\uDCAB\uD83D\uDC80\uD83D\uDC51\uD83C\uDFB5\uD83E\uDD1E\uD83D\uDE1B\uD83D\uDD34\uD83D\uDE24\uD83C\uDF3C\uD83D\uDE2Bâ½\uD83E\uDD19â\uD83C\uDFC6\uD83E\uDD2B\uD83D\uDC48\uD83D\uDE2E\uD83D\uDE46\uD83C\uDF7B\uD83C\uDF43\uD83D\uDC36\uD83D\uDC81\uD83D\uDE32\uD83C\uDF3F\uD83E\uDDE1\uD83C\uDF81â¡\uD83C\uDF1E\uD83C\uDF88ââ\uD83D\uDC4B\uD83D\uDE30\uD83E\uDD28\uD83D\uDE36\uD83E\uDD1D\uD83D\uDEB6\uD83D\uDCB0\uD83C\uDF53\uD83D\uDCA2\uD83E\uDD1F\uD83D\uDE41\uD83D\uDEA8\uD83D\uDCA8\uD83E\uDD2Câ\uD83C\uDF80\uD83C\uDF7A\uD83E\uDD13\uD83D\uDE19\uD83D\uDC9F\uD83C\uDF31\uD83D\uDE16\uD83D\uDC76\uD83E\uDD74â¶â¡â\uD83D\uDC8E\uD83D\uDCB8â¬\uD83D\uDE28\uD83C\uDF1A\uD83E\uDD8B\uD83D\uDE37\uD83D\uDD7Aâ \uD83D\uDE45\uD83D\uDE1F\uD83D\uDE35\uD83D\uDC4E\uD83E\uDD32\uD83E\uDD20\uD83E\uDD27\uD83D\uDCCC\uD83D\uDD35\uD83D\uDC85\uD83E\uDDD0\uD83D\uDC3E\uD83C\uDF52\uD83D\uDE17\uD83E\uDD11\uD83C\uDF0A\uD83E\uDD2F\uD83D\uDC37â\uD83D\uDCA7\uD83D\uDE2F\uD83D\uDC86\uD83D\uDC46\uD83C\uDFA4\uD83D\uDE47\uD83C\uDF51â\uD83C\uDF34\uD83D\uDCA3\uD83D\uDC38\uD83D\uDC8C\uD83D\uDCCD\uD83E\uDD40\uD83E\uDD22\uD83D\uDC45\uD83D\uDCA1\uD83D\uDCA9\uD83D\uDC50\uD83D\uDCF8\uD83D\uDC7B\uD83E\uDD10\uD83E\uDD2E\uD83C\uDFBC\uD83E\uDD75\uD83D\uDEA9\uD83C\uDF4E\uD83C\uDF4A\uD83D\uDC7C\uD83D\uDC8D\uD83D\uDCE3\uD83E\uDD42"),iV=iY.reduce((e,n,r)=>(e[r]=n,e),[]),iQ=iY.reduce((e,n,r)=>(e[n.codePointAt(0)]=r,e),[]);var iK=Object.freeze({__proto__:null,base256emoji:iE({prefix:"\uD83D\uDE80",name:"base256emoji",encode:function(e){return e.reduce((e,n)=>e+=iV[n],"")},decode:function(e){let n=[];for(let r of e){let e=iQ[r.codePointAt(0)];if(void 0===e)throw Error(`Non-base256emoji character: ${r}`);n.push(e)}return new Uint8Array(n)}})});function i$(e,n){var r,i=0,n=n||0,a=0,o=n,s=e.length;do{if(o>=s)throw i$.bytes=0,RangeError("Could not decode varint");r=e[o++],i+=a<28?(127&r)<<a:(127&r)*Math.pow(2,a),a+=7}while(r>=128);return i$.bytes=o-n,i}var iJ=function e(n,r,i){r=r||[],i=i||0;for(var a=i;n>=2147483648;)r[i++]=255&n|128,n/=128;for(;-128&n;)r[i++]=255&n|128,n>>>=7;return r[i]=0|n,e.bytes=i-a+1,r};let iX=(e,n,r=0)=>(iJ(e,n,r),n),i0=e=>e<128?1:e<16384?2:e<2097152?3:e<268435456?4:e<34359738368?5:e<4398046511104?6:e<562949953421312?7:e<72057594037927940?8:e<0x7fffffffffffffff?9:10,i1=(e,n)=>{let r=n.byteLength,i=i0(e),a=i+i0(r),o=new Uint8Array(a+r);return iX(e,o,0),iX(r,o,i),o.set(n,a),new i6(e,r,n,o)};
354class i6{constructor(e,n,r,i){this.code=e,this.size=n,this.digest=r,this.bytes=i}}let i5=({name:e,code:n,encode:r})=>new i2(e,n,r);class i2{constructor(e,n,r){this.name=e,this.code=n,this.encode=r}digest(e){if(e instanceof Uint8Array){let n=this.encode(e);return n instanceof Uint8Array?i1(this.code,n):n.then(e=>i1(this.code,e))}throw Error("Unknown type, must be binary type")}}let i4=e=>async n=>new Uint8Array(await crypto.subtle.digest(e,n));var i3=Object.freeze({__proto__:null,sha256:i5({name:"sha2-256",code:18,encode:i4("SHA-256")}),sha512:i5({name:"sha2-512",code:19,encode:i4("SHA-512")})}),i8=Object.freeze({__proto__:null,identity:{code:0,name:"identity",encode:ib,digest:e=>i1(0,ib(e))}});new TextEncoder,new TextDecoder;let i9={...ij,...iD,...i_,...iO,...iP,...iZ,...iW,...iH,...iq,...iK};function i7(e,n,r,i){return{name:e,prefix:n,encoder:{name:e,prefix:n,encode:r},decoder:{decode:i}}}({...i3,...i8});let ae=i7("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>new TextEncoder().encode(e.substring(1))),at=i7("ascii","a",e=>{let n="a";for(let r=0;r<e.length;r++)n+=String.fromCharCode(e[r]);return n},e=>{let n=function(e=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?globalThis.Buffer.allocUnsafe(e):new Uint8Array(e)}((e=e.substring(1)).length);for(let r=0;r<e.length;r++)n[r]=e.charCodeAt(r);return n}),an={utf8:ae,"utf-8":ae,hex:i9.base16,latin1:at,ascii:at,binary:at,...i9},ar="core",ai=`wc@2:${ar}:`,aa={logger:"error"},ao={database:":memory:"},as="client_ed25519_seed",af=w.ONE_DAY,al=w.SIX_HOURS,au="wss://relay.walletconnect.org",ac={message:"relayer_message",message_ack:"relayer_message_ack",connect:"relayer_connect",disconnect:"relayer_disconnect",error:"relayer_error",connection_stalled:"relayer_connection_stalled",publish:"relayer_publish"},ad={payload:"payload",connect:"connect",disconnect:"disconnect",error:"error"},ap={created:"subscription_created",deleted:"subscription_deleted",sync:"subscription_sync",resubscribed:"subscription_resubscribed"},ah=1e3*w.FIVE_SECONDS,ay={wc_pairingDelete:{req:{ttl:w.ONE_DAY,prompt:!1,tag:1e3},res:{ttl:w.ONE_DAY,prompt:!1,tag:1001}},wc_pairingPing:{req:{ttl:w.THIRTY_SECONDS,prompt:!1,tag:1002},res:{ttl:w.THIRTY_SECONDS,prompt:!1,tag:1003}},unregistered_method:{req:{ttl:w.ONE_DAY,prompt:!1,tag:0},res:{ttl:w.ONE_DAY,prompt:!1,tag:0}}},am={create:"pairing_create",expire:"pairing_expire",delete:"pairing_delete",ping:"pairing_ping"},ag={created:"history_created",updated:"history_updated",deleted:"history_deleted",sync:"history_sync"},ab={created:"expirer_created",deleted:"expirer_deleted",expired:"expirer_expired",sync:"expirer_sync"},av="verify-api",aw="https://verify.walletconnect.org",ax=["https://verify.walletconnect.com",aw];class aT{constructor(e,n){this.core=e,this.logger=n,this.keychain=new Map,this.name="keychain",this.version="0.3",this.initialized=!1,this.storagePrefix=ai,this.init=async()=>{if(!this.initialized){let e=await this.getKeyChain();"u">typeof e&&(this.keychain=e),this.initialized=!0}},this.has=e=>(this.isInitialized(),this.keychain.has(e)),this.set=async(e,n)=>{this.isInitialized(),this.keychain.set(e,n),await this.persist()},this.get=e=>{this.isInitialized();let n=this.keychain.get(e);if(typeof n>"u"){let{message:n}=rQ("NO_MATCHING_KEY",`${this.name}: ${e}`);throw Error(n)}return n},this.del=async e=>{this.isInitialized(),this.keychain.delete(e),await this.persist()},this.core=e,this.logger=(0,E.Ep)(n,this.name)}get context(){return(0,E.Fd)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setKeyChain(e){await this.core.storage.setItem(this.storageKey,ep(e))}async getKeyChain(){let e=await this.core.storage.getItem(this.storageKey);return"u">typeof e?eh(e):void 0}async persist(){await this.setKeyChain(this.keychain)}isInitialized(){if(!this.initialized){let{message:e}=rQ("NOT_INITIALIZED",this.name);throw Error(e)}}}class aC{constructor(e,n,r){this.core=e,this.logger=n,this.name="crypto",this.randomSessionIdentifier=rE(),this.initialized=!1,this.init=async()=>{this.initialized||(await this.keychain.init(),this.initialized=!0)},this.hasKeys=e=>(this.isInitialized(),this.keychain.has(e)),this.getClientId=async()=>{this.isInitialized();let e=await this.getClientSeed(),n=B.generateKeyPair(e);return B.encodeIss(n.publicKey)},this.generateKeyPair=()=>{this.isInitialized();let e=function(){let e=V.Au();return{privateKey:(0,Q.BB)(e.secretKey,rC),publicKey:(0,Q.BB)(e.publicKey,rC)}}();return this.setPrivateKey(e.publicKey,e.privateKey)},this.signJWT=async e=>{this.isInitialized();let n=await this.getClientSeed(),r=B.generateKeyPair(n),i=this.randomSessionIdentifier;return await B.signJWT(i,e,af,r)},this.generateSharedKey=(e,n,r)=>{this.isInitialized();let i=function(e,n){let r=V.gi((0,Q.mL)(e,rC),(0,Q.mL)(n,rC),!0),i=new G.t(Y.mE,r).expand(32);return(0,Q.BB)(i,rC)}(this.getPrivateKey(e),n);return this.setSymKey(i,r)},this.setSymKey=async(e,n)=>{this.isInitialized();let r=n||rI(e);return await this.keychain.set(r,e),r},this.deleteKeyPair=async e=>{this.isInitialized(),await this.keychain.del(e)},this.deleteSymKey=async e=>{this.isInitialized(),await this.keychain.del(e)},this.encode=async(e,n,r)=>{this.isInitialized();let i=rj(r),a=(0,u.u)(n);if(rD(i)){let n=i.senderPublicKey,r=i.receiverPublicKey;e=await this.generateSharedKey(n,r)}let o=this.getSymKey(e),{type:s,senderPublicKey:f}=i;return function(e){var n;let r=(n="u">typeof e.type?e.type:0,(0,Q.mL)(`${n}`,rT));if(1===rk(r)&&typeof e.senderPublicKey>"u")throw Error("Missing sender public key for type 1 envelope");let i="u">typeof e.senderPublicKey?(0,Q.mL)(e.senderPublicKey,rC):void 0,a="u">typeof e.iv?(0,Q.mL)(e.iv,rC):(0,q.randomBytes)(12);return function(e){if(1===rk(e.type)){if(typeof e.senderPublicKey>"u")throw Error("Missing sender public key for type 1 envelope");
354return(0,Q.BB)((0,Q.zo)([e.type,e.senderPublicKey,e.iv,e.sealed]),rM)}return(0,Q.BB)((0,Q.zo)([e.type,e.iv,e.sealed]),rM)}({type:r,sealed:new H.OK((0,Q.mL)(e.symKey,rC)).seal(a,(0,Q.mL)(e.message,rA)),iv:a,senderPublicKey:i})}({type:s,symKey:o,message:a,senderPublicKey:f})},this.decode=async(e,n,r)=>{this.isInitialized();let i=function(e,n){let r=rN(e);return rj({type:rk(r.type),senderPublicKey:"u">typeof r.senderPublicKey?(0,Q.BB)(r.senderPublicKey,rC):void 0,receiverPublicKey:n?.receiverPublicKey})}(n,r);if(rD(i)){let n=i.receiverPublicKey,r=i.senderPublicKey;e=await this.generateSharedKey(n,r)}try{let r=this.getSymKey(e),i=function(e){let n=new H.OK((0,Q.mL)(e.symKey,rC)),{sealed:r,iv:i}=rN(e.encoded),a=n.open(i,r);if(null===a)throw Error("Failed to decrypt");return(0,Q.BB)(a,rA)}({symKey:r,encoded:n});return(0,u.D)(i)}catch(n){this.logger.error(`Failed to decode message from topic: '${e}', clientId: '${await this.getClientId()}'`),this.logger.error(n)}},this.getPayloadType=e=>rk(rN(e).type),this.getPayloadSenderPublicKey=e=>{let n=rN(e);return n.senderPublicKey?(0,Q.BB)(n.senderPublicKey,rC):void 0},this.core=e,this.logger=(0,E.Ep)(n,this.name),this.keychain=r||new aT(this.core,this.logger)}get context(){return(0,E.Fd)(this.logger)}async setPrivateKey(e,n){return await this.keychain.set(e,n),e}getPrivateKey(e){return this.keychain.get(e)}async getClientSeed(){let e="";try{e=this.keychain.get(as)}catch{e=rE(),await this.keychain.set(as,e)}return function(e,n="utf8"){let r=an[n];if(!r)throw Error(`Unsupported encoding "${n}"`);return("utf8"===n||"utf-8"===n)&&null!=globalThis.Buffer&&null!=globalThis.Buffer.from?globalThis.Buffer.from(e,"utf8"):r.decoder.decode(`${r.prefix}${e}`)}(e,"base16")}getSymKey(e){return this.keychain.get(e)}isInitialized(){if(!this.initialized){let{message:e}=rQ("NOT_INITIALIZED",this.name);throw Error(e)}}}class aM extends k{constructor(e,n){super(e,n),this.logger=e,this.core=n,this.messages=new Map,this.name="messages",this.version="0.3",this.initialized=!1,this.storagePrefix=ai,this.init=async()=>{if(!this.initialized){this.logger.trace("Initialized");try{let e=await this.getRelayerMessages();"u">typeof e&&(this.messages=e),this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",size:this.messages.size})}catch(e){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(e)}finally{this.initialized=!0}}},this.set=async(e,n)=>{this.isInitialized();let r=rS(n),i=this.messages.get(e);return typeof i>"u"&&(i={}),"u">typeof i[r]||(i[r]=n,this.messages.set(e,i),await this.persist()),r},this.get=e=>{this.isInitialized();let n=this.messages.get(e);return typeof n>"u"&&(n={}),n},this.has=(e,n)=>(this.isInitialized(),"u">typeof this.get(e)[rS(n)]),this.del=async e=>{this.isInitialized(),this.messages.delete(e),await this.persist()},this.logger=(0,E.Ep)(e,this.name),this.core=n}get context(){return(0,E.Fd)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setRelayerMessages(e){await this.core.storage.setItem(this.storageKey,ep(e))}async getRelayerMessages(){let e=await this.core.storage.getItem(this.storageKey);return"u">typeof e?eh(e):void 0}async persist(){await this.setRelayerMessages(this.messages)}isInitialized(){if(!this.initialized){let{message:e}=rQ("NOT_INITIALIZED",this.name);throw Error(e)}}}class aA extends N{constructor(e,n){super(e,n),this.relayer=e,this.logger=n,this.events=new o.EventEmitter,this.name="publisher",this.queue=new Map,this.publishTimeout=(0,w.toMiliseconds)(w.ONE_MINUTE),this.failedPublishTimeout=(0,w.toMiliseconds)(w.ONE_SECOND),this.needsTransportRestart=!1,this.publish=async(e,n,r)=>{var i;this.logger.debug("Publishing Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:e,message:n,opts:r}});let a=r?.ttl||al,o=r_(r),s=r?.prompt||!1,f=r?.tag||0,l=r?.id||(0,il.getBigIntRpcId)().toString(),u={topic:e,message:n,opts:{ttl:a,relay:o,prompt:s,tag:f,id:l}},c=`Failed to publish payload, please try again. id:${l} tag:${f}`,d=Date.now(),p,h=1;try{for(;void 0===p;){if(Date.now()-d>this.publishTimeout)throw Error(c);this.logger.trace({id:l,attempts:h},`publisher.publish - attempt ${h}`),p=await await em(this.rpcPublish(e,n,a,o,s,f,l).catch(e=>this.logger.warn(e)),this.publishTimeout,c),h++,p||await new Promise(e=>setTimeout(e,this.failedPublishTimeout))}this.relayer.events.emit(ac.publish,u),this.logger.debug("Successfully Published Payload"),this.logger.trace({type:"method",method:"publish",params:{id:l,topic:e,message:n,opts:r}})}catch(e){if(this.logger.debug("Failed to Publish Payload"),this.logger.error(e),null!=(i=r?.internal)&&i.throwOnFailedPublish)throw e;this.queue.set(l,u)}},this.on=(e,n)=>{this.events.on(e,n)},this.once=(e,n)=>{this.events.once(e,n)},this.off=(e,n)=>{this.events.off(e,n)},this.removeListener=(e,n)=>{this.events.removeListener(e,n)},this.relayer=e,this.logger=(0,E.Ep)(n,this.name),this.registerEventListeners()}get context(){return(0,E.Fd)(this.logger)}rpcPublish(e,n,r,i,a,o,s){var f,l,u,c;let d={method:rO(i.protocol).publish,params:{topic:e,message:n,ttl:r,prompt:a,tag:o},id:s};return rX(null==(f=d.params)?void 0:f.prompt)&&(null==(l=d.params)||delete l.prompt),rX(null==(u=d.params)?void 0:u.tag)&&(null==(c=d.params)||delete c.tag),this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:d}),this.relayer.request(d)}removeRequestFromQueue(e){this.queue.delete(e)}checkQueue(){this.queue.forEach(async e=>{let{topic:n,message:r,opts:i}=e;await this.publish(n,r,i)})}registerEventListeners(){this.relayer.core.heartbeat.on(M,()=>{if(this.needsTransportRestart){this.needsTransportRestart=!1,this.relayer.events.emit(ac.connection_stalled);return}this.checkQueue()}),this.relayer.on(ac.message_ack,e=>{this.removeRequestFromQueue(e.id.toString())})}}class aE{constructor(){this.map=new Map,this.set=(e,n)=>{let r=this.get(e);
354this.exists(e,n)||this.map.set(e,[...r,n])},this.get=e=>this.map.get(e)||[],this.exists=(e,n)=>this.get(e).includes(n),this.delete=(e,n)=>{if(typeof n>"u"){this.map.delete(e);return}if(!this.map.has(e))return;let r=this.get(e);if(!this.exists(e,n))return;let i=r.filter(e=>e!==n);if(!i.length){this.map.delete(e);return}this.map.set(e,i)},this.clear=()=>{this.map.clear()}}get topics(){return Array.from(this.map.keys())}}var aI=Object.defineProperty,aS=Object.defineProperties,ak=Object.getOwnPropertyDescriptors,aN=Object.getOwnPropertySymbols,aj=Object.prototype.hasOwnProperty,aD=Object.prototype.propertyIsEnumerable,a_=(e,n,r)=>n in e?aI(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,aO=(e,n)=>{for(var r in n||(n={}))aj.call(n,r)&&a_(e,r,n[r]);if(aN)for(var r of aN(n))aD.call(n,r)&&a_(e,r,n[r]);return e},aP=(e,n)=>aS(e,ak(n));class aL extends _{constructor(e,n){super(e,n),this.relayer=e,this.logger=n,this.subscriptions=new Map,this.topicMap=new aE,this.events=new o.EventEmitter,this.name="subscription",this.version="0.3",this.pending=new Map,this.cached=[],this.initialized=!1,this.pendingSubscriptionWatchLabel="pending_sub_watch_label",this.pollingInterval=20,this.storagePrefix=ai,this.subscribeTimeout=(0,w.toMiliseconds)(w.ONE_MINUTE),this.restartInProgress=!1,this.batchSubscribeTopicsLimit=500,this.pendingBatchMessages=[],this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),this.registerEventListeners(),this.clientId=await this.relayer.core.crypto.getClientId())},this.subscribe=async(e,n)=>{await this.restartToComplete(),this.isInitialized(),this.logger.debug("Subscribing Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:e,opts:n}});try{let r=r_(n),i={topic:e,relay:r};this.pending.set(e,i);let a=await this.rpcSubscribe(e,r);return"string"==typeof a&&(this.onSubscribe(a,i),this.logger.debug("Successfully Subscribed Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:e,opts:n}})),a}catch(e){throw this.logger.debug("Failed to Subscribe Topic"),this.logger.error(e),e}},this.unsubscribe=async(e,n)=>{await this.restartToComplete(),this.isInitialized(),"u">typeof n?.id?await this.unsubscribeById(e,n.id,n):await this.unsubscribeByTopic(e,n)},this.isSubscribed=async e=>{if(this.topics.includes(e))return!0;let n=`${this.pendingSubscriptionWatchLabel}_${e}`;return await new Promise((r,i)=>{let a=new w.Watch;a.start(n);let o=setInterval(()=>{!this.pending.has(e)&&this.topics.includes(e)&&(clearInterval(o),a.stop(n),r(!0)),a.elapsed(n)>=ah&&(clearInterval(o),a.stop(n),i(Error("Subscription resolution timeout")))},this.pollingInterval)}).catch(()=>!1)},this.on=(e,n)=>{this.events.on(e,n)},this.once=(e,n)=>{this.events.once(e,n)},this.off=(e,n)=>{this.events.off(e,n)},this.removeListener=(e,n)=>{this.events.removeListener(e,n)},this.start=async()=>{await this.onConnect()},this.stop=async()=>{await this.onDisconnect()},this.restart=async()=>{this.restartInProgress=!0,await this.restore(),await this.reset(),this.restartInProgress=!1},this.relayer=e,this.logger=(0,E.Ep)(n,this.name),this.clientId=""}get context(){return(0,E.Fd)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.relayer.core.customStoragePrefix+"//"+this.name}get length(){return this.subscriptions.size}get ids(){return Array.from(this.subscriptions.keys())}get values(){return Array.from(this.subscriptions.values())}get topics(){return this.topicMap.topics}hasSubscription(e,n){let r=!1;try{r=this.getSubscription(e).topic===n}catch{}return r}onEnable(){this.cached=[],this.initialized=!0}onDisable(){this.cached=this.values,this.subscriptions.clear(),this.topicMap.clear()}async unsubscribeByTopic(e,n){let r=this.topicMap.get(e);await Promise.all(r.map(async r=>await this.unsubscribeById(e,r,n)))}async unsubscribeById(e,n,r){this.logger.debug("Unsubscribing Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:e,id:n,opts:r}});try{let i=r_(r);await this.rpcUnsubscribe(e,n,i);let a=rK("USER_DISCONNECTED",`${this.name}, ${e}`);await this.onUnsubscribe(e,n,a),this.logger.debug("Successfully Unsubscribed Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:e,id:n,opts:r}})}catch(e){throw this.logger.debug("Failed to Unsubscribe Topic"),this.logger.error(e),e}}async rpcSubscribe(e,n){let r={method:rO(n.protocol).subscribe,params:{topic:e}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:r});
354try{return await await em(this.relayer.request(r).catch(e=>this.logger.warn(e)),this.subscribeTimeout)?rS(e+this.clientId):null}catch{this.logger.debug("Outgoing Relay Subscribe Payload stalled"),this.relayer.events.emit(ac.connection_stalled)}return null}async rpcBatchSubscribe(e){if(!e.length)return;let n={method:rO(e[0].relay.protocol).batchSubscribe,params:{topics:e.map(e=>e.topic)}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});try{return await await em(this.relayer.request(n).catch(e=>this.logger.warn(e)),this.subscribeTimeout)}catch{this.relayer.events.emit(ac.connection_stalled)}}async rpcBatchFetchMessages(e){let n;if(!e.length)return;let r={method:rO(e[0].relay.protocol).batchFetchMessages,params:{topics:e.map(e=>e.topic)}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:r});try{n=await await em(this.relayer.request(r).catch(e=>this.logger.warn(e)),this.subscribeTimeout)}catch{this.relayer.events.emit(ac.connection_stalled)}return n}rpcUnsubscribe(e,n,r){let i={method:rO(r.protocol).unsubscribe,params:{topic:e,id:n}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:i}),this.relayer.request(i)}onSubscribe(e,n){this.setSubscription(e,aP(aO({},n),{id:e})),this.pending.delete(n.topic)}onBatchSubscribe(e){e.length&&e.forEach(e=>{this.setSubscription(e.id,aO({},e)),this.pending.delete(e.topic)})}async onUnsubscribe(e,n,r){this.events.removeAllListeners(n),this.hasSubscription(n,e)&&this.deleteSubscription(n,r),await this.relayer.messages.del(e)}async setRelayerSubscriptions(e){await this.relayer.core.storage.setItem(this.storageKey,e)}async getRelayerSubscriptions(){return await this.relayer.core.storage.getItem(this.storageKey)}setSubscription(e,n){this.logger.debug("Setting subscription"),this.logger.trace({type:"method",method:"setSubscription",id:e,subscription:n}),this.addSubscription(e,n)}addSubscription(e,n){this.subscriptions.set(e,aO({},n)),this.topicMap.set(n.topic,e),this.events.emit(ap.created,n)}getSubscription(e){this.logger.debug("Getting subscription"),this.logger.trace({type:"method",method:"getSubscription",id:e});let n=this.subscriptions.get(e);if(!n){let{message:n}=rQ("NO_MATCHING_KEY",`${this.name}: ${e}`);throw Error(n)}return n}deleteSubscription(e,n){this.logger.debug("Deleting subscription"),this.logger.trace({type:"method",method:"deleteSubscription",id:e,reason:n});let r=this.getSubscription(e);this.subscriptions.delete(e),this.topicMap.delete(r.topic,e),this.events.emit(ap.deleted,aP(aO({},r),{reason:n}))}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit(ap.sync)}async reset(){if(this.cached.length){let e=Math.ceil(this.cached.length/this.batchSubscribeTopicsLimit);for(let n=0;n<e;n++){let e=this.cached.splice(0,this.batchSubscribeTopicsLimit);await this.batchFetchMessages(e),await this.batchSubscribe(e)}}this.events.emit(ap.resubscribed)}async restore(){try{let e=await this.getRelayerSubscriptions();if(typeof e>"u"||!e.length)return;if(this.subscriptions.size){let{message:e}=rQ("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(e),this.logger.error(`${this.name}: ${JSON.stringify(this.values)}`),Error(e)}this.cached=e,this.logger.debug(`Successfully Restored subscriptions for ${this.name}`),this.logger.trace({type:"method",method:"restore",subscriptions:this.values})}catch(e){this.logger.debug(`Failed to Restore subscriptions for ${this.name}`),this.logger.error(e)}}async batchSubscribe(e){if(!e.length)return;let n=await this.rpcBatchSubscribe(e);r$(n)&&this.onBatchSubscribe(n.map((n,r)=>aP(aO({},e[r]),{id:n})))}async batchFetchMessages(e){if(!e.length)return;this.logger.trace(`Fetching batch messages for ${e.length} subscriptions`);let n=await this.rpcBatchFetchMessages(e);n&&n.messages&&(this.pendingBatchMessages=this.pendingBatchMessages.concat(n.messages))}async onConnect(){await this.restart(),this.onEnable()}onDisconnect(){this.onDisable()}async checkPending(){if(!this.initialized||!this.relayer.connected)return;let e=[];this.pending.forEach(n=>{e.push(n)}),await this.batchSubscribe(e),this.pendingBatchMessages.length&&(await this.relayer.handleBatchMessageEvents(this.pendingBatchMessages),this.pendingBatchMessages=[])}registerEventListeners(){this.relayer.core.heartbeat.on(M,async()=>{await this.checkPending()}),this.events.on(ap.created,async e=>{let n=ap.created;this.logger.info(`Emitting ${n}`),this.logger.debug({type:"event",event:n,data:e}),await this.persist()}),this.events.on(ap.deleted,async e=>{let n=ap.deleted;this.logger.info(`Emitting ${n}`),this.logger.debug({type:"event",event:n,data:e}),await this.persist()})}isInitialized(){if(!this.initialized){let{message:e}=rQ("NOT_INITIALIZED",this.name);throw Error(e)}}async restartToComplete(){this.restartInProgress&&await new Promise(e=>{let n=setInterval(()=>{this.restartInProgress||(clearInterval(n),e())},this.pollingInterval)})}}var aR=Object.defineProperty,az=Object.getOwnPropertySymbols,aB=Object.prototype.hasOwnProperty,aU=Object.prototype.propertyIsEnumerable,aF=(e,n,r)=>n in e?aR(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,aZ=(e,n)=>{for(var r in n||(n={}))aB.call(n,r)&&aF(e,r,n[r]);if(az)for(var r of az(n))aU.call(n,r)&&aF(e,r,n[r]);return e};class aW extends j{constructor(e){super(e),this.protocol="wc",this.version=2,this.events=new o.EventEmitter,this.name="relayer",this.transportExplicitlyClosed=!1,this.initialized=!1,this.connectionAttemptInProgress=!1,this.connectionStatusPollingInterval=20,this.staleConnectionErrors=["s
354ocket hang up","stalled","interrupted"],this.hasExperiencedNetworkDisruption=!1,this.requestsInFlight=new Map,this.heartBeatTimeout=(0,w.toMiliseconds)(w.THIRTY_SECONDS+w.ONE_SECOND),this.request=async e=>{var n,r;this.logger.debug("Publishing Request Payload");let i=e.id||(0,il.getBigIntRpcId)().toString();await this.toEstablishConnection();try{let a=this.provider.request(e);this.requestsInFlight.set(i,{promise:a,request:e}),this.logger.trace({id:i,method:e.method,topic:null==(n=e.params)?void 0:n.topic},"relayer.request - attempt to publish...");let o=await new Promise(async(e,n)=>{let r=()=>{n(Error(`relayer.request - publish interrupted, id: ${i}`))};this.provider.on(ad.disconnect,r);let o=await a;this.provider.off(ad.disconnect,r),e(o)});return this.logger.trace({id:i,method:e.method,topic:null==(r=e.params)?void 0:r.topic},"relayer.request - published"),o}catch(e){throw this.logger.debug(`Failed to Publish Request: ${i}`),e}finally{this.requestsInFlight.delete(i)}},this.resetPingTimeout=()=>{if(ef())try{clearTimeout(this.pingTimeout),this.pingTimeout=setTimeout(()=>{var e,n,r;null==(r=null==(n=null==(e=this.provider)?void 0:e.connection)?void 0:n.socket)||r.terminate()},this.heartBeatTimeout)}catch(e){this.logger.warn(e)}},this.onPayloadHandler=e=>{this.onProviderPayload(e),this.resetPingTimeout()},this.onConnectHandler=()=>{this.logger.trace("relayer connected"),this.startPingTimeout(),this.events.emit(ac.connect)},this.onDisconnectHandler=()=>{this.logger.trace("relayer disconnected"),this.onProviderDisconnect()},this.onProviderErrorHandler=e=>{this.logger.error(e),this.events.emit(ac.error,e),this.logger.info("Fatal socket error received, closing transport"),this.transportClose()},this.registerProviderListeners=()=>{this.provider.on(ad.payload,this.onPayloadHandler),this.provider.on(ad.connect,this.onConnectHandler),this.provider.on(ad.disconnect,this.onDisconnectHandler),this.provider.on(ad.error,this.onProviderErrorHandler)},this.core=e.core,this.logger="u">typeof e.logger&&"string"!=typeof e.logger?(0,E.Ep)(e.logger,this.name):(0,E.gw)((0,E.jI)({level:e.logger||"error"})),this.messages=new aM(this.logger,e.core),this.subscriber=new aL(this,this.logger),this.publisher=new aA(this,this.logger),this.relayUrl=e?.relayUrl||au,this.projectId=e.projectId,this.bundleId=function(){var e;try{return el()&&"u">typeof r.g&&"u">typeof(null==r.g?void 0:r.g.Application)?null==(e=r.g.Application)?void 0:e.applicationId:void 0}catch{return}}(),this.provider={}}
354async init(){this.logger.trace("Initialized"),this.registerEventListeners(),await Promise.all([this.messages.init(),this.subscriber.init()]),await this.transportOpen(),this.initialized=!0,setTimeout(async()=>{0===this.subscriber.topics.length&&0===this.subscriber.pending.size&&(this.logger.info("No topics subscribed to after init, closing transport"),await this.transportClose(),this.transportExplicitlyClosed=!1)},1e4)}get context(){return(0,E.Fd)(this.logger)}get connected(){var e,n,r;return(null==(r=null==(n=null==(e=this.provider)?void 0:e.connection)?void 0:n.socket)?void 0:r.readyState)===1}get connecting(){var e,n,r;return(null==(r=null==(n=null==(e=this.provider)?void 0:e.connection)?void 0:n.socket)?void 0:r.readyState)===0}async publish(e,n,r){this.isInitialized(),await this.publisher.publish(e,n,r),await this.recordMessageEvent({topic:e,message:n,publishedAt:Date.now()})}async subscribe(e,n){var r;this.isInitialized();let i=(null==(r=this.subscriber.topicMap.get(e))?void 0:r[0])||"",a,o=n=>{n.topic===e&&(this.subscriber.off(ap.created,o),a())};return await Promise.all([new Promise(e=>{a=e,this.subscriber.on(ap.created,o)}),new Promise(async r=>{i=await this.subscriber.subscribe(e,n)||i,r()})]),i}async unsubscribe(e,n){this.isInitialized(),await this.subscriber.unsubscribe(e,n)}on(e,n){this.events.on(e,n)}once(e,n){this.events.once(e,n)}off(e,n){this.events.off(e,n)}removeListener(e,n){this.events.removeListener(e,n)}async transportDisconnect(){if(!this.hasExperiencedNetworkDisruption&&this.connected&&this.requestsInFlight.size>0)try{await Promise.all(Array.from(this.requestsInFlight.values()).map(e=>e.promise))}catch(e){this.logger.warn(e)}this.hasExperiencedNetworkDisruption||this.connected?await em(this.provider.disconnect(),2e3,"provider.disconnect()").catch(()=>this.onProviderDisconnect()):this.onProviderDisconnect()}async transportClose(){this.transportExplicitlyClosed=!0,await this.transportDisconnect()}async transportOpen(e){await this.confirmOnlineStateOrThrow(),e&&e!==this.relayUrl&&(this.relayUrl=e,await this.transportDisconnect()),await this.createProvider(),this.connectionAttemptInProgress=!0,this.transportExplicitlyClosed=!1;try{await new Promise(async(e,n)=>{let r=()=>{this.provider.off(ad.disconnect,r),n(Error("Connection interrupted while trying to subscribe"))};this.provider.on(ad.disconnect,r),await em(this.provider.connect(),(0,w.toMiliseconds)(w.ONE_MINUTE),`Socket stalled when trying to connect to ${this.relayUrl}`).catch(e=>{n(e)}),this.subscriber.start().catch(e=>{this.logger.error(e),this.onDisconnectHandler()}),this.hasExperiencedNetworkDisruption=!1,e()})}catch(e){if(this.logger.error(e),this.hasExperiencedNetworkDisruption=!0,!this.isConnectionStalled(e.message))throw e}finally{this.connectionAttemptInProgress=!1}}async restartTransport(e){this.connectionAttemptInProgress||(this.relayUrl=e||this.relayUrl,await this.confirmOnlineStateOrThrow(),await this.transportClose(),await this.transportOpen())}async confirmOnlineStateOrThrow(){if(!await ii())throw Error("No internet connection detected. Please restart your network and try again.")}async handleBatchMessageEvents(e){if(e?.length===0){this.logger.trace("Batch message events is empty. Ignoring...");return}let n=e.sort((e,n)=>e.publishedAt-n.publishedAt);for(let e of(this.logger.trace(`Batch of ${n.length} message events sorted`),n))try{await this.onMessageEvent(e)}catch(e){this.logger.warn(e)}this.logger.trace(`Batch of ${n.length} message events processed`)}startPingTimeout(){var e,n,r,i,a;if(ef())try{null!=(n=null==(e=this.provider)?void 0:e.connection)&&n.socket&&(null==(a=null==(i=null==(r=this.provider)?void 0:r.connection)?void 0:i.socket)||a.once("ping",()=>{this.resetPingTimeout()})),this.resetPingTimeout()}catch(e){this.logger.warn(e)}}isConnectionStalled(e){return this.staleConnectionErrors.some(n=>e.includes(n))}async createProvider(){this.provider.connection&&this.unregisterProviderListeners();let e=await this.core.crypto.signJWT(this.relayUrl);this.provider=new iu(new ic.Z(function({protocol:e,version:n,relayUrl:i,sdkVersion:a,auth:o,projectId:s,useOnCloseEvent:f,bundleId:l}){var u,c;let d;let p=i.split("?"),h=function(e,n,i){let a=function(){if(ec()===es.reactNative&&"u">typeof r.g&&"u">typeof(null==r.g?void 0:r.g.Platform)){let{OS:e,Version:n}=r.g.Platform;return[e,n].join("-")}let e=(0,U.qY)();if(null===e)return"unknown";let n=e.os?e.os.replace(" ","").toLowerCase():"unknown";return"browser"===e.type?[n,e.name,e.version].join("-"):[n,e.ver
354sion].join("-")}(),o=function(){var e;let n=ec();return n===es.browser?[n,(null==(e=(0,F.getLocation)())?void 0:e.host)||"unknown"].join(":"):n}();return[[e,n].join("-"),["js",i].join("-"),a,o].join("/")}(e,n,a),y=(u=p[1]||"",c={auth:o,ua:h,projectId:s,useOnCloseEvent:f||void 0,origin:l||void 0},d=eo(eo({},d=W.parse(u)),c),u=W.stringify(d));return p[0]+"?"+y}({sdkVersion:"2.14.0",protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:e,useOnCloseEvent:!0,bundleId:this.bundleId}))),this.registerProviderListeners()}async recordMessageEvent(e){let{topic:n,message:r}=e;await this.messages.set(n,r)}async shouldIgnoreMessageEvent(e){let{topic:n,message:r}=e;if(!r||0===r.length)return this.logger.debug(`Ignoring invalid/empty message: ${r}`),!0;if(!await this.subscriber.isSubscribed(n))return this.logger.debug(`Ignoring message for non-subscribed topic ${n}`),!0;let i=this.messages.has(n,r);return i&&this.logger.debug(`Ignoring duplicate message: ${r}`),i}async onProviderPayload(e){if(this.logger.debug("Incoming Relay Payload"),this.logger.trace({type:"payload",direction:"incoming",payload:e}),(0,il.isJsonRpcRequest)(e)){if(!e.method.endsWith("_subscription"))return;let n=e.params,{topic:r,message:i,publishedAt:a}=n.data,o={topic:r,message:i,publishedAt:a};this.logger.debug("Emitting Relayer Payload"),this.logger.trace(aZ({type:"event",event:n.id},o)),this.events.emit(n.id,o),await this.acknowledgePayload(e),await this.onMessageEvent(o)}else(0,il.isJsonRpcResponse)(e)&&this.events.emit(ac.message_ack,e)}async onMessageEvent(e){await this.shouldIgnoreMessageEvent(e)||(this.events.emit(ac.message,e),await this.recordMessageEvent(e))}async acknowledgePayload(e){let n=(0,il.formatJsonRpcResult)(e.id,!0);await this.provider.connection.send(n)}unregisterProviderListeners(){this.provider.off(ad.payload,this.onPayloadHandler),this.provider.off(ad.connect,this.onConnectHandler),this.provider.off(ad.disconnect,this.onDisconnectHandler),this.provider.off(ad.error,this.onProviderErrorHandler),clearTimeout(this.pingTimeout)}async registerEventListeners(){let e=await ii();!function(e){switch(ec()){case es.browser:!el()&&eu()&&(window.addEventListener("online",()=>e(!0)),window.addEventListener("offline",()=>e(!1)));break;case es.reactNative:el()&&"u">typeof r.g&&null!=r.g&&r.g.NetInfo&&r.g?.NetInfo.addEventListener(n=>e(n?.isConnected));case es.node:}}(async n=>{e!==n&&(e=n,n?await this.restartTransport().catch(e=>this.logger.error(e)):(this.hasExperiencedNetworkDisruption=!0,await this.transportDisconnect(),this.transportExplicitlyClosed=!1))})}async onProviderDisconnect(){await this.subscriber.stop(),this.requestsInFlight.clear(),clearTimeout(this.pingTimeout),this.events.emit(ac.disconnect),this.connectionAttemptInProgress=!1,this.transportExplicitlyClosed||setTimeout(async()=>{await this.transportOpen().catch(e=>this.logger.error(e))},(0,w.toMiliseconds)(.1))}isInitialized(){if(!this.initialized){let{message:e}=rQ("NOT_INITIALIZED",this.name);throw Error(e)}}async toEstablishConnection(){await this.confirmOnlineStateOrThrow(),this.connected||(this.connectionAttemptInProgress&&await new Promise(e=>{let n=setInterval(()=>{this.connected&&(clearInterval(n),e())},this.connectionStatusPollingInterval)}),await this.transportOpen())}}var aH=Object.defineProperty,aG=Object.getOwnPropertySymbols,aq=Object.prototype.hasOwnProperty,aY=Object.prototype.propertyIsEnumerable,aV=(e,n,r)=>n in e?aH(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,aQ=(e,n)=>{for(var r in n||(n={}))aq.call(n,r)&&aV(e,r,n[r]);if(aG)for(var r of aG(n))aY.call(n,r)&&aV(e,r,n[r]);return e};class aK extends D{constructor(e,n,r,i=ai,a){super(e,n,r,i),this.core=e,this.logger=n,this.name=r,this.map=new Map,this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=ai,this.recentlyDeleted=[],this.recentlyDeletedLimit=200,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(e=>{var n;this.getKey&&null!==e&&!rX(e)?this.map.set(this.getKey(e),e):(null==(n=e?.proposer)?void 0:n.publicKey)?this.map.set(e.id,e):e?.topic&&this.map.set(e.topic,e)}),this.cached=[],this.initialized=!0)},this.set=async(e,n)=>{this.isInitialized(),this.map.has(e)?await this.update(e,n):(this.logger.debug("Setting value"),this.logger.trace({type:"method",method:"set",key:e,value:n}),this.map.set(e,n),await this.persist())},this.get=e=>(this.isInitialized(),this.logger.debug("Getting value"),this.logger.trace({type:"method",method:"get",key:e}),this.getData(e)),this.getAll=e=>(this.isInitialized(),e?this.values.filter(n=>Object.keys(e).every(r=>ip()(n[r],e[r]))):this.values),this.update=async(e,n)=>{this.isInitialized(),this.logger.debug("Updating value"),this.logger.trace({type:"method",method:"update",key:e,update:n});let r=aQ(aQ({},this.getData(e)),n);this.map.set(e,r),await this.persist()},this.delete=async(e,n)=>{this.isInitialized(),this.map.has(e)&&(this.logger.debug("Deleting value"),this.logger.trace({type:"method",method:"delete",ke
354y:e,reason:n}),this.map.delete(e),this.addToRecentlyDeleted(e),await this.persist())},this.logger=(0,E.Ep)(n,this.name),this.storagePrefix=i,this.getKey=a}get context(){return(0,E.Fd)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.map.size}get keys(){return Array.from(this.map.keys())}get values(){return Array.from(this.map.values())}addToRecentlyDeleted(e){this.recentlyDeleted.push(e),this.recentlyDeleted.length>=this.recentlyDeletedLimit&&this.recentlyDeleted.splice(0,this.recentlyDeletedLimit/2)}async setDataStore(e){await this.core.storage.setItem(this.storageKey,e)}async getDataStore(){return await this.core.storage.getItem(this.storageKey)}getData(e){let n=this.map.get(e);if(!n){if(this.recentlyDeleted.includes(e)){let{message:n}=rQ("MISSING_OR_INVALID",`Record was recently deleted - ${this.name}: ${e}`);throw this.logger.error(n),Error(n)}let{message:n}=rQ("NO_MATCHING_KEY",`${this.name}: ${e}`);throw this.logger.error(n),Error(n)}return n}async persist(){await this.setDataStore(this.values)}async restore(){try{let e=await this.getDataStore();if(typeof e>"u"||!e.length)return;if(this.map.size){let{message:e}=rQ("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(e),Error(e)}this.cached=e,this.logger.debug(`Successfully Restored value for ${this.name}`),this.logger.trace({type:"method",method:"restore",value:this.values})}catch(e){this.logger.debug(`Failed to Restore value for ${this.name}`),this.logger.error(e)}}isInitialized(){if(!this.initialized){let{message:e}=rQ("NOT_INITIALIZED",this.name);throw Error(e)}}}class a${constructor(e,n){this.core=e,this.logger=n,this.name="pairing",this.version="0.3",this.events=new(s()),this.initialized=!1,this.storagePrefix=ai,this.ignoredPayloadTypes=[1],this.registeredMethods=[],this.init=async()=>{this.initialized||(await this.pairings.init(),await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.initialized=!0,this.logger.trace("Initialized"))},this.register=({methods:e})=>{this.isInitialized(),this.registeredMethods=[...new Set([...this.registeredMethods,...e])]},this.create=async e=>{var n;this.isInitialized();let r=rE(),i=await this.core.crypto.setSymKey(r),a=ev(w.FIVE_MINUTES),o={protocol:"irn"},s=(n={protocol:this.core.protocol,version:this.core.version,topic:i,symKey:r,relay:o,expiryTimestamp:a,methods:e?.methods},`${n.protocol}:${n.topic}@${n.version}?`+W.stringify(rZ(rW(rZ({symKey:n.symKey},function(e,n="-"){let r={};return Object.keys(e).forEach(i=>{e[i]&&(r["relay"+n+i]=e[i])}),r}(n.relay)),{expiryTimestamp:n.expiryTimestamp}),n.methods?{methods:n.methods.join(",")}:{})));return this.core.expirer.set(i,a),await this.pairings.set(i,{topic:i,expiry:a,relay:o,active:!1}),await this.core.relayer.subscribe(i),{topic:i,uri:s}},this.pair=async e=>{this.isInitialized(),this.isValidPair(e);let{topic:n,symKey:r,relay:i,expiryTimestamp:a,methods:o}=rH(e.uri);if(this.pairings.keys.includes(n)&&this.pairings.get(n).active)throw Error(`Pairing already exists: ${n}. Please try again with a new connection URI.`);let s=a||ev(w.FIVE_MINUTES),f={topic:n,relay:i,expiry:s,active:!1,methods:o};return this.core.expirer.set(n,s),await this.pairings.set(n,f),e.activatePairing&&await this.activate({topic:n}),this.events.emit(am.create,f),this.core.crypto.keychain.has(n)||await this.core.crypto.setSymKey(r,n),await this.core.relayer.subscribe(n,{relay:i}),f},this.activate=async({topic:e})=>{this.isInitialized();let n=ev(w.THIRTY_DAYS);this.core.expirer.set(e,n),await this.pairings.update(e,{active:!0,expiry:n})},this.ping=async e=>{this.isInitialized(),await this.isValidPing(e);let{topic:n}=e;if(this.pairings.keys.includes(n)){let e=await this.sendRequest(n,"wc_pairingPing",{}),{done:r,resolve:i,reject:a}=ey();this.events.once(ex("pairing_ping",e),({error:e})=>{e?a(e):i()}),await r()}},this.updateExpiry=async({topic:e,expiry:n})=>{this.isInitialized(),await this.pairings.update(e,{expiry:n})},this.updateMetadata=async({topic:e,metadata:n})=>{this.isInitialized(),await this.pairings.update(e,{peerMetadata:n})},this.getPairings=()=>(this.isInitialized(),this.pairings.values),this.disconnect=async e=>{this.isInitialized(),await this.isValidDisconnect(e);let{topic:n}=e;this.pairings.keys.includes(n)&&(await this.sendRequest(n,"wc_pairingDelete",rK("USER_DISCONNECTED")),await this.deletePairing(n))},this.sendRequest=async(e,n,r)=>{let i=(0,il.formatJsonRpcRequest)(n,r),a=await this.core.crypto.encode(e,i),o=ay[n].req;return this.core.history.set(e,i),this.core.relayer.publish(e,a,o),i.id},this.sendResult=async(e,n,r)=>{let i=(0,il.formatJsonRpcResult)(e,r),a=await this.core.crypto.encode(n,i),o=ay[(await this.core.history.get(n,e)).request.method].res;await this.core.relayer.publish(n,a,o),await this.core.history.resolve(i)},this.sendError=async(e,n,r)=>{let i=(0,il.formatJsonRpcError)(e,r),a=await this.core.crypto.encode(n,i),o=await this.core.history.get(n,e),s=ay[o.request.method]?ay[o.request.method].res:ay.unregistered_method.res;await this.core.relayer.publish(n,a,s),await this.core.history.resolve(i)},this.deletePairing=async(e,n)=>{await this.core.relayer.unsubscribe(e),await Promise.all([this.pairings.delete(e,rK("USER_DISCONNECTED")),this.core.crypto.deleteSymKey(e),n?Promise.resolve():this.core.expirer.del(e)])},this.cleanup=async()=>{let e=this.pairings.getAll().filter(e=>ew(e.expiry));await Promise.all(e.map(e=>this.deletePairing(e.topic)))},this.onRelayEventRequest=e=>{let{topic:n,payload:r}=e;switch(r.method){case"wc_pairingPing":return this.onPairingPingRequest(n,r);case"wc_pairingDelete":return this.onPairingDeleteRequest(n,r);default:return this.onUnknownRpcMethodRequest(n,r)}},this.onRelayEventResponse=async e=>{let{topic:n,payload:r}=e,i=(await this.core.history.get(n,r.id)).request.method;return"wc_pairingPing"===i?this.onPairingPingResponse(n,r):this.onUnknownRpcMethodResponse(i)},this.onPairingPingRequest=async(e,n)=>{let{id:r}=n;try{this.isValidPing({topic:e}),await this.sendResult(r,e,!0),this.events.emit(am.ping,{id:r,topic:e})}catch(n){await this.sendError(r,e,n),this.logger.error(n)}},this.onPairingPingResponse=(e,n)=>{let{id:r}=n;setTimeout(()=>
354{(0,il.isJsonRpcResult)(n)?this.events.emit(ex("pairing_ping",r),{}):(0,il.isJsonRpcError)(n)&&this.events.emit(ex("pairing_ping",r),{error:n.error})},500)},this.onPairingDeleteRequest=async(e,n)=>{let{id:r}=n;try{this.isValidDisconnect({topic:e}),await this.deletePairing(e),this.events.emit(am.delete,{id:r,topic:e})}catch(n){await this.sendError(r,e,n),this.logger.error(n)}},this.onUnknownRpcMethodRequest=async(e,n)=>{let{id:r,method:i}=n;try{if(this.registeredMethods.includes(i))return;let n=rK("WC_METHOD_UNSUPPORTED",i);await this.sendError(r,e,n),this.logger.error(n)}catch(n){await this.sendError(r,e,n),this.logger.error(n)}},this.onUnknownRpcMethodResponse=e=>{this.registeredMethods.includes(e)||this.logger.error(rK("WC_METHOD_UNSUPPORTED",e))},this.isValidPair=e=>{var n;if(!r9(e)){let{message:n}=rQ("MISSING_OR_INVALID",`pair() params: ${e}`);throw Error(n)}if(!r5(e.uri)){let{message:n}=rQ("MISSING_OR_INVALID",`pair() uri: ${e.uri}`);throw Error(n)}let r=rH(e.uri);if(!(null!=(n=r?.relay)&&n.protocol)){let{message:e}=rQ("MISSING_OR_INVALID","pair() uri#relay-protocol");throw Error(e)}if(!(null!=r&&r.symKey)){let{message:e}=rQ("MISSING_OR_INVALID","pair() uri#symKey");throw Error(e)}if(null!=r&&r.expiryTimestamp&&(0,w.toMiliseconds)(r?.expiryTimestamp)<Date.now()){let{message:e}=rQ("EXPIRED","pair() URI has expired. Please try again with a new connection URI.");throw Error(e)}},this.isValidPing=async e=>{if(!r9(e)){let{message:n}=rQ("MISSING_OR_INVALID",`ping() params: ${e}`);throw Error(n)}let{topic:n}=e;await this.isValidPairingTopic(n)},this.isValidDisconnect=async e=>{if(!r9(e)){let{message:n}=rQ("MISSING_OR_INVALID",`disconnect() params: ${e}`);throw Error(n)}let{topic:n}=e;await this.isValidPairingTopic(n)},this.isValidPairingTopic=async e=>{if(!r0(e,!1)){let{message:n}=rQ("MISSING_OR_INVALID",`pairing topic should be a string: ${e}`);throw Error(n)}if(!this.pairings.keys.includes(e)){let{message:n}=rQ("NO_MATCHING_KEY",`pairing topic doesn't exist: ${e}`);throw Error(n)}if(ew(this.pairings.get(e).expiry)){await this.deletePairing(e);let{message:n}=rQ("EXPIRED",`pairing topic: ${e}`);throw Error(n)}},this.core=e,this.logger=(0,E.Ep)(n,this.name),this.pairings=new aK(this.core,this.logger,this.name,this.storagePrefix)}get context(){return(0,E.Fd)(this.logger)}isInitialized(){if(!this.initialized){let{message:e}=rQ("NOT_INITIALIZED",this.name);throw Error(e)}}registerRelayerEvents(){this.core.relayer.on(ac.message,async e=>{let{topic:n,message:r}=e;if(!this.pairings.keys.includes(n)||this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(r)))return;let i=await this.core.crypto.decode(n,r);try{(0,il.isJsonRpcRequest)(i)?(this.core.history.set(n,i),this.onRelayEventRequest({topic:n,payload:i})):(0,il.isJsonRpcResponse)(i)&&(await this.core.history.resolve(i),await this.onRelayEventResponse({topic:n,payload:i}),this.core.history.delete(n,i.id))}catch(e){this.logger.error(e)}})}registerExpirerEvents(){this.core.expirer.on(ab.expired,async e=>{let{topic:n}=eb(e.target);n&&this.pairings.keys.includes(n)&&(await this.deletePairing(n,!0),this.events.emit(am.expire,{topic:n}))})}}class aJ extends S{constructor(e,n){super(e,n),this.core=e,this.logger=n,this.records=new Map,this.events=new o.EventEmitter,this.name="history",this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=ai,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(e=>this.records.set(e.id,e)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.set=(e,n,r)=>{if(this.isInitialized(),this.logger.debug("Setting JSON-RPC request history record"),this.logger.trace({type:"method",method:"set",topic:e,request:n,chainId:r}),this.records.has(n.id))return;let i={id:n.id,topic:e,request:{method:n.method,params:n.params||null},chainId:r,expiry:ev(w.THIRTY_DAYS)};this.records.set(i.id,i),this.persist(),this.events.emit(ag.created,i)},this.resolve=async e=>{if(this.isInitialized(),this.logger.debug("Updating JSON-RPC response history record"),this.logger.trace({type:"method",method:"update",response:e}),!this.records.has(e.id))return;let n=await this.getRecord(e.id);typeof n.response>
354"u"&&(n.response=(0,il.isJsonRpcError)(e)?{error:e.error}:{result:e.result},this.records.set(n.id,n),this.persist(),this.events.emit(ag.updated,n))},this.get=async(e,n)=>(this.isInitialized(),this.logger.debug("Getting record"),this.logger.trace({type:"method",method:"get",topic:e,id:n}),await this.getRecord(n)),this.delete=(e,n)=>{this.isInitialized(),this.logger.debug("Deleting record"),this.logger.trace({type:"method",method:"delete",id:n}),this.values.forEach(r=>{r.topic!==e||"u">typeof n&&r.id!==n||(this.records.delete(r.id),this.events.emit(ag.deleted,r))}),this.persist()},this.exists=async(e,n)=>(this.isInitialized(),!!this.records.has(n)&&(await this.getRecord(n)).topic===e),this.on=(e,n)=>{this.events.on(e,n)},this.once=(e,n)=>{this.events.once(e,n)},this.off=(e,n)=>{this.events.off(e,n)},this.removeListener=(e,n)=>{this.events.removeListener(e,n)},this.logger=(0,E.Ep)(n,this.name)}get context(){return(0,E.Fd)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get size(){return this.records.size}get keys(){return Array.from(this.records.keys())}get values(){return Array.from(this.records.values())}get pending(){let e=[];return this.values.forEach(n=>{if("u">typeof n.response)return;let r={topic:n.topic,request:(0,il.formatJsonRpcRequest)(n.request.method,n.request.params,n.id),chainId:n.chainId};return e.push(r)}),e}async setJsonRpcRecords(e){await this.core.storage.setItem(this.storageKey,e)}async getJsonRpcRecords(){return await this.core.storage.getItem(this.storageKey)}getRecord(e){this.isInitialized();let n=this.records.get(e);if(!n){let{message:n}=rQ("NO_MATCHING_KEY",`${this.name}: ${e}`);throw Error(n)}return n}async persist(){await this.setJsonRpcRecords(this.values),this.events.emit(ag.sync)}async restore(){try{let e=await this.getJsonRpcRecords();if(typeof e>"u"||!e.length)return;if(this.records.size){let{message:e}=rQ("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(e),Error(e)}this.cached=e,this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",records:this.values})}catch(e){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(e)}}registerEventListeners(){this.events.on(ag.created,e=>{let n=ag.created;this.logger.info(`Emitting ${n}`),this.logger.debug({type:"event",event:n,record:e})}),this.events.on(ag.updated,e=>{let n=ag.updated;this.logger.info(`Emitting ${n}`),this.logger.debug({type:"event",event:n,record:e})}),this.events.on(ag.deleted,e=>{let n=ag.deleted;this.logger.info(`Emitting ${n}`),this.logger.debug({type:"event",event:n,record:e})}),this.core.heartbeat.on(M,()=>{this.cleanup()})}cleanup(){try{this.isInitialized();let e=!1;this.records.forEach(n=>{(0,w.toMiliseconds)(n.expiry||0)-Date.now()<=0&&(this.logger.info(`Deleting expired history log: ${n.id}`),this.records.delete(n.id),this.events.emit(ag.deleted,n,!1),e=!0)}),e&&this.persist()}catch(e){this.logger.warn(e)}}isInitialized(){if(!this.initialized){let{message:e}=rQ("NOT_INITIALIZED",this.name);throw Error(e)}}}class aX extends O{constructor(e,n){super(e,n),this.core=e,this.logger=n,this.expirations=new Map,this.events=new o.EventEmitter,this.name="expirer",this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=ai,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(e=>this.expirations.set(e.target,e)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.has=e=>{try{let n=this.formatTarget(e);return"u">typeof this.getExpiration(n)}catch{return!1}},this.set=(e,n)=>{this.isInitialized();let r=this.formatTarget(e),i={target:r,expiry:n};this.expirations.set(r,i),this.checkExpiry(r,i),this.events.emit(ab.created,{target:r,expiration:i})},this.get=e=>{this.isInitialized();let n=this.formatTarget(e);return this.getExpiration(n)},this.del=e=>{if(this.isInitialized(),this.has(e)){let n=this.formatTarget(e),r=this.getExpiration(n);this.expirations.delete(n),this.events.emit(ab.deleted,{target:n,expiration:r})}},this.on=(e,n)=>{this.events.on(e,n)},this.once=(e,n)=>{this.events.once(e,n)},this.off=(e,n)=>{this.events.off(e,n)},this.removeListener=(e,n)=>{this.events.removeListener(e,n)},this.logger=(0,E.Ep)(n,this.name)}get context(){return(0,E.Fd)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.expirations.size}get keys(){return Array.from(this.expirations.keys())}get values(){return Array.from(this.expirations.values())}formatTarget(e){if("string"==typeof e)return eg("topic",e);if("number"==typeof e)return eg("id",e);let{message:n}=rQ("UNKNOWN_TYPE",`Target type: ${typeof e}`);throw Error(n)}async setExpirations(e){await this.core.storage.setItem(this.storageKey,e)}async getExpirations(){return await this.core.storage.getItem(this.storageKey)}async persist(){await this.setExpirations(this.values),this.events.emit(ab.sync)}
354async restore(){try{let e=await this.getExpirations();if(typeof e>"u"||!e.length)return;if(this.expirations.size){let{message:e}=rQ("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(e),Error(e)}this.cached=e,this.logger.debug(`Successfully Restored expirations for ${this.name}`),this.logger.trace({type:"method",method:"restore",expirations:this.values})}catch(e){this.logger.debug(`Failed to Restore expirations for ${this.name}`),this.logger.error(e)}}getExpiration(e){let n=this.expirations.get(e);if(!n){let{message:n}=rQ("NO_MATCHING_KEY",`${this.name}: ${e}`);throw this.logger.warn(n),Error(n)}return n}checkExpiry(e,n){let{expiry:r}=n;(0,w.toMiliseconds)(r)-Date.now()<=0&&this.expire(e,n)}expire(e,n){this.expirations.delete(e),this.events.emit(ab.expired,{target:e,expiration:n})}checkExpirations(){this.core.relayer.connected&&this.expirations.forEach((e,n)=>this.checkExpiry(n,e))}registerEventListeners(){this.core.heartbeat.on(M,()=>this.checkExpirations()),this.events.on(ab.created,e=>{let n=ab.created;this.logger.info(`Emitting ${n}`),this.logger.debug({type:"event",event:n,data:e}),this.persist()}),this.events.on(ab.expired,e=>{let n=ab.expired;this.logger.info(`Emitting ${n}`),this.logger.debug({type:"event",event:n,data:e}),this.persist()}),this.events.on(ab.deleted,e=>{let n=ab.deleted;this.logger.info(`Emitting ${n}`),this.logger.debug({type:"event",event:n,data:e}),this.persist()})}isInitialized(){if(!this.initialized){let{message:e}=rQ("NOT_INITIALIZED",this.name);throw Error(e)}}}class a0 extends P{constructor(e,n){super(e,n),this.projectId=e,this.logger=n,this.name=av,this.initialized=!1,this.queue=[],this.verifyDisabled=!1,this.init=async e=>{if(this.verifyDisabled||el()||!eu())return;let n=this.getVerifyUrl(e?.verifyUrl);this.verifyUrl!==n&&this.removeIframe(),this.verifyUrl=n;try{await this.createIframe()}catch(e){this.logger.info(`Verify iframe failed to load: ${this.verifyUrl}`),this.logger.info(e),this.verifyDisabled=!0}},this.register=async e=>{this.initialized?this.sendPost(e.attestationId):(this.addToQueue(e.attestationId),await this.init())},this.resolve=async e=>{if(this.isDevEnv)return"";let n=this.getVerifyUrl(e?.verifyUrl);return this.fetchAttestation(e.attestationId,n)},this.fetchAttestation=async(e,n)=>{this.logger.info(`resolving attestation: ${e} from url: ${n}`);let r=this.startAbortTimer(5*w.ONE_SECOND),i=await fetch(`${n}/attestation/${e}`,{signal:this.abortController.signal});return clearTimeout(r),200===i.status?await i.json():void 0},this.addToQueue=e=>{this.queue.push(e)},this.processQueue=()=>{0!==this.queue.length&&(this.queue.forEach(e=>this.sendPost(e)),this.queue=[])},this.sendPost=e=>{var n;try{if(!this.iframe)return;null==(n=this.iframe.contentWindow)||n.postMessage(e,"*"),this.logger.info(`postMessage sent: ${e} ${this.verifyUrl}`)}catch{}},this.createIframe=async()=>{let e;let n=r=>{"verify_ready"===r.data&&(this.onInit(),window.removeEventListener("message",n),e())};await Promise.race([new Promise(r=>{let i=document.getElementById(av);if(i)return this.iframe=i,this.onInit(),r();window.addEventListener("message",n);let a=document.createElement("iframe");a.id=av,a.src=`${this.verifyUrl}/${this.projectId}`,a.style.display="none",document.body.append(a),this.iframe=a,e=r}),new Promise((e,r)=>setTimeout(()=>{window.removeEventListener("message",n),r("verify iframe load timeout")},(0,w.toMiliseconds)(w.FIVE_SECONDS)))])},this.onInit=()=>{this.initialized=!0,this.processQueue()},this.removeIframe=()=>{this.iframe&&(this.iframe.remove(),this.iframe=void 0,this.initialized=!1)},this.getVerifyUrl=e=>{let n=e||aw;return ax.includes(n)||(this.logger.info(`verify url: ${n}, not included in trusted list, assigning default: ${aw}`),n=aw),n},this.logger=(0,E.Ep)(n,this.name),this.verifyUrl=aw,this.abortController=new AbortController,this.isDevEnv=ef()&&im.env.IS_VITEST}get context(){return(0,E.Fd)(this.logger)}startAbortTimer(e){return this.abortController=new AbortController,setTimeout(()=>this.abortController.abort(),(0,w.toMiliseconds)(e))}}class a1 extends L{constructor(e,n){super(e,n),this.projectId=e,this.logger=n,this.context="echo",this.registerDeviceToken=async e=>{let{clientId:n,token:r,notificationType:i,enableEncrypted:a=!1}=e,o=`https://echo.walletconnect.com/${this.projectId}/clients`;await iy()(o,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({client_id:n,type:i,token:r,always_raw:a})})},this.logger=(0,E.Ep)(n,this.context)}}var a6=Object.defineProperty,a5=Object.getOwnPropertySymbols,a2=Object.prototype.hasOwnProperty,a4=Object.prototype.propertyIsEnumerable,a3=(e,n,r)=>n in e?a6(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,a8=(e,n)=>{for(var r in n||(n={}))a2.call(n,r)&&a3(e,r,n[r]);if(a5)for(var r of a5(n))a4.call(n,r)&&a3(e,r,n[r]);return e};class a9 extends I{constructor(e){var n;super(e),this.protocol="wc",this.version=2,this.name=ar,this.events=new o.EventEmitter,this.initialized=!1,this.on=(e,n)=>this.events.on(e,n),this.once=(e,n)=>this.events.once(e,n),this.off=(e,n)=>this.events.off(e,n),this.removeListener=(e,n)=>this.events.removeListener(e,n),this.projectId=e?.projectId,this.relayUrl=e?.relayUrl||au,this.customStoragePrefix=null!=e&&e.customStoragePrefix?`:${e.customStoragePrefix}`:"";let r=(0,E.jI)({level:"string"==typeof e?.logger&&e.logger?e.logger:aa.logger}),{logger:i,chunkLoggerController:a}=(0,E.Rt)({opts:r,maxSizeInBytes:e?.maxLogBlobSizeInBytes,loggerOverride:e?.logger});this.logChunkController=a,null!=(n=this.logChunkController)&&n.downloadLogsBlobInBrowser&&(window.downloadLogsBlobInBrowser=async()=>{var e,n;null!=(e=this.logChunkController)&&e.downloadLogsBlobInBrowser&&(null==(n=this.logChunkController)||n.downloadLogsBlobInBrowser({clientId:await this.crypto.getClientId()}))}),this.logger=(0,E.Ep)(i,this.name),this.heartbeat=new A,this.crypto=new aC(this,this.logger,e?.keychain),this.history=new aJ(this,this.logger),this.expirer=new aX(this,this.logger),this.storage=null!=e&&e.storage?e.storage:new v(a8(a8({},ao),e?.storageOptions)),this.relayer=new aW({core:this,logger:this.logger,relayUrl:this.relayUrl,projectId:this.projectId}),this.pairing=new a$(this,this.logger),this.verify=new a0(this.projectId||"",this.logger),this.echoClient=new a1(this.projectId||"",this.logger)}static async init(e){let n=new a9(e);await n.initialize();let r=await n.crypto.getClientId();return await n.storage.setItem("WALLETCONNECT_CLIENT_ID",r),n}get context(){return(0,E.Fd)(this.logger)}async start(){this.initialized||await this.initialize()}async getLogsBlob(){var e;return null==(e=this.logChunkController)?void 0:e.logsToBlob({clientId:await this.crypto.getClientId()})}async initialize(){this.logger.trace("Initialized");try{await this.crypto.init(),await this.history.init(),await this.expirer.init(),await this.relayer.init(),await this.heartbeat.init(
354),await this.pairing.init(),this.initialized=!0,this.logger.info("Core Initialization Success")}catch(e){throw this.logger.warn(`Core Initialization Failure at epoch ${Date.now()}`,e),this.logger.error(e.message),e}}}var a7=r(93684),oe=r(83875);class ot{constructor(e){this.client=e}}class on{constructor(e){this.opts=e}}let or={wc_authRequest:{req:{ttl:w.ONE_DAY,prompt:!0,tag:3e3},res:{ttl:w.ONE_DAY,prompt:!1,tag:3001}}},oi={min:w.FIVE_MINUTES,max:w.SEVEN_DAYS},oa="authClient",oo="wc@1:auth:",os=`${oo}:PUB_KEY`;function of(e){return e?.split(":")}function ol(e){let n=e&&of(e);if(n)return n.pop()}async function ou(e,n,r,i,a){switch(r.t){case"eip191":var o;return o=r.s,(0,oe.recoverAddress)((0,a7.r)(n),o).toLowerCase()===e.toLowerCase();case"eip1271":return await oc(e,n,r.s,i,a);default:throw Error(`verifySignature failed: Attempted to verify CacaoSignature with unknown type: ${r.t}`)}}async function oc(e,n,r,i,a){try{let o="0x1626ba7e",s=r.substring(2),f=(0,a7.r)(n).substring(2),l=await iy()(`https://rpc.walletconnect.com/v1/?chainId=${i}&projectId=${a}`,{method:"POST",body:JSON.stringify({id:Date.now()+Math.floor(1e3*Math.random()),jsonrpc:"2.0",method:"eth_call",params:[{to:e,data:o+f+"00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000041"+s},"latest"]})}),{result:u}=await l.json();return!!u&&u.slice(0,o.length).toLowerCase()===o.toLowerCase()}catch(e){return console.error("isValidEip1271Signature: ",e),!1}}function od(e){return e.getAll().filter(e=>"requester"in e)}function op(e,n){return od(e).find(e=>e.id===n)}var oh=function(e,n){if(e.length>=255)throw TypeError("Alphabet too long");for(var r=new Uint8Array(256),i=0;i<r.length;i++)r[i]=255;for(var a=0;a<e.length;a++){var o=e.charAt(a),s=o.charCodeAt(0);if(255!==r[s])throw TypeError(o+" is ambiguous");r[s]=a}var f=e.length,l=e.charAt(0),u=Math.log(f)/Math.log(256),c=Math.log(256)/Math.log(f);function d(e){if("string"!=typeof e)throw TypeError("Expected String");if(0===e.length)return new Uint8Array;var n=0;if(" "!==e[0]){for(var i=0,a=0;e[n]===l;)i++,n++;for(var o=(e.length-n)*u+1>>>0,s=new Uint8Array(o);e[n];){var c=r[e.charCodeAt(n)];if(255===c)return;for(var d=0,p=o-1;(0!==c||d<a)&&-1!==p;p--,d++)c+=f*s[p]>>>0,s[p]=c%256>>>0,c=c/256>>>0;if(0!==c)throw Error("Non-zero carry");a=d,n++}if(" "!==e[n]){for(var h=o-a;h!==o&&0===s[h];)h++;for(var y=new Uint8Array(i+(o-h)),m=i;h!==o;)y[m++]=s[h++];return y}}}return{encode:function(n){if(n instanceof Uint8Array||(ArrayBuffer.isView(n)?n=new Uint8Array(n.buffer,n.byteOffset,n.byteLength):Array.isArray(n)&&(n=Uint8Array.from(n))),!(n instanceof Uint8Array))throw TypeError("Expected Uint8Array");if(0===n.length)return"";for(var r=0,i=0,a=0,o=n.length;a!==o&&0===n[a];)a++,r++;for(var s=(o-a)*c+1>>>0,u=new Uint8Array(s);a!==o;){for(var d=n[a],p=0,h=s-1;(0!==d||p<i)&&-1!==h;h--,p++)d+=256*u[h]>>>0,u[h]=d%f>>>0,d=d/f>>>0;if(0!==d)throw Error("Non-zero carry");i=p,a++}for(var y=s-i;y!==s&&0===u[y];)y++;for(var m=l.repeat(r);y<s;++y)m+=e.charAt(u[y]);return m},decodeUnsafe:d,decode:function(e){var r=d(e);if(r)return r;throw Error(`Non-${n} character`)}}};let oy=e=>{if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw Error("Unknown type, must be binary type")},om=e=>new TextEncoder().encode(e),og=e=>new TextDecoder().decode(e);class ob{constructor(e,n,r){this.name=e,this.prefix=n,this.baseEncode=r}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class ov{constructor(e,n,r){if(this.name=e,this.prefix=n,void 0===n.codePointAt(0))throw Error("Invalid prefix character");this.prefixCodePoint=n.codePointAt(0),this.baseDecode=r}decode(e){if("string"==typeof e){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(e){return ox(this,e)}}class ow{constructor(e){this.decoders=e}or(e){return ox(this,e)}decode(e){let n=e[0],r=this.decoders[n];if(r)return r.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}
354, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}let ox=(e,n)=>new ow({...e.decoders||{[e.prefix]:e},...n.decoders||{[n.prefix]:n}});class oT{constructor(e,n,r,i){this.name=e,this.prefix=n,this.baseEncode=r,this.baseDecode=i,this.encoder=new ob(e,n,r),this.decoder=new ov(e,n,i)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}let oC=({name:e,prefix:n,encode:r,decode:i})=>new oT(e,n,r,i),oM=({prefix:e,name:n,alphabet:r})=>{let{encode:i,decode:a}=oh(r,n);return oC({prefix:e,name:n,encode:i,decode:e=>oy(a(e))})},oA=(e,n,r,i)=>{let a={};for(let e=0;e<n.length;++e)a[n[e]]=e;let o=e.length;for(;"="===e[o-1];)--o;let s=new Uint8Array(o*r/8|0),f=0,l=0,u=0;for(let n=0;n<o;++n){let o=a[e[n]];if(void 0===o)throw SyntaxError(`Non-${i} character`);l=l<<r|o,(f+=r)>=8&&(f-=8,s[u++]=255&l>>f)}if(f>=r||255&l<<8-f)throw SyntaxError("Unexpected end of data");return s},oE=(e,n,r)=>{let i="="===n[n.length-1],a=(1<<r)-1,o="",s=0,f=0;for(let i=0;i<e.length;++i)for(f=f<<8|e[i],s+=8;s>r;)s-=r,o+=n[a&f>>s];if(s&&(o+=n[a&f<<r-s]),i)for(;o.length*r&7;)o+="=";return o},oI=({name:e,prefix:n,bitsPerChar:r,alphabet:i})=>oC({prefix:n,name:e,encode:e=>oE(e,i,r),decode:n=>oA(n,i,r,e)});var oS=Object.freeze({__proto__:null,identity:oC({prefix:"\0",name:"identity",encode:e=>og(e),decode:e=>om(e)})}),ok=Object.freeze({__proto__:null,base2:oI({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1})}),oN=Object.freeze({__proto__:null,base8:oI({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3})}),oj=Object.freeze({__proto__:null,base10:oM({prefix:"9",name:"base10",alphabet:"0123456789"})}),oD=Object.freeze({__proto__:null,base16:oI({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),base16upper:oI({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4})});let o_=oI({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),oO=oI({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),oP=oI({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),oL=oI({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),oR=oI({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),oz=oI({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5});var oB=Object.freeze({__proto__:null,base32:o_,base32upper:oO,base32pad:oP,base32padupper:oL,base32hex:oR,base32hexupper:oz,base32hexpad:oI({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),base32hexpadupper:oI({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),base32z:oI({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5})}),oU=Object.freeze({__proto__:null,base36:oM({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),base36upper:oM({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"})}),oF=Object.freeze({__proto__:null,base58btc:oM({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),base58flickr:oM({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"})});let oZ=oI({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6});var oW=Object.freeze({__proto__:null,base64:oZ,base64pad:oI({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),base64url:oI({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),base64urlpad:oI({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6})});let oH=Array.from("\uD83D\uDE80\uD83E\uDE90â\uD83D\uDEF0\uD83C\uDF0C\uD83C\uDF11\uD83C\uDF12\uD83C\uDF13\uD83C\uDF14\uD83C\uDF15\uD83C\uDF16\uD83C\uDF17\uD83C\uDF18\uD83C\uDF0D\uD83C\uDF0F\uD83C\uDF0E\uD83D\uDC09â\uD83D\uDCBB\uD83D\uDDA5\uD83D\uDCBE\uD83D\uDCBF\uD83D\uDE02â¤\uD83D\uDE0D\uD83E\uDD23\uD83D\uDE0A\uD83D\uDE4F\uD83D\uDC95\uD83D\uDE2D\uD83D\uDE18\uD83D\uDC4D\uD83D\uDE05\uD83D\uDC4F\uD83D\uDE01\uD83D\uDD25\uD83E\uDD70\uD83D\uDC94\uD83D\uDC96\uD83D\uDC99\uD83D\uDE22\uD83E\uDD14\uD83D\uDE06\uD83D\uDE44\uD83D\uDCAA\uD83D\uDE09âº\uD83D\uDC4C\uD83E\uDD17\uD83D\uDC9C\uD83D\uDE14\uD83D\uDE0E\uD83D\uDE07\uD83C\uDF39\uD83E\uDD26\uD83C\uDF89\uD83D\uDC9Eââ¨\uD83E\uDD37\uD83D\uDE31\uD83D\uDE0C\uD83C\uDF38\uD83D\uDE4C\uD83D\uDE0B\uD83D\uDC97\uD83D\uDC9A\uD83D\uDE0F\uD83D\uDC9B\uD83D\uDE42\uD83D\uDC93\uD83E\uDD29\uD83D\uDE04\uD83D\uDE00\uD83D\uDDA4\uD83D\uDE03\uD83D\uDCAF\uD83D\uDE48\uD83D\uDC47\uD83C\uDFB6\uD83D\uDE12\uD83E\uDD2Dâ£\uD83D\uDE1C\uD83D\uDC8B\uD83D\uDC40\uD83D\uDE2A\uD83D\uDE11\uD83D\uDCA5\uD83D\uDE4B\uD83D\uDE1E\uD83D\uDE29\uD83D\uDE21\uD83E\uDD2A\uD83D\uDC4A\uD83E\uDD73\uD83D\uDE25\uD83E\uDD24\uD83D\uDC49\uD83D\uDC83\uD83D\uDE33â\uD83D\uDE1A\uD83D\uDE1D\uD83D\uDE34\uD83C\uDF1F\uD83D\uDE2C\uD83D\uDE43\uD83C\uDF40\uD83C\uDF37\uD83D\uDE3B\uD83D\uDE13ââ
\uD83E\uDD7A\uD83C\uDF08\uD83D\uDE08\uD83E\uDD18\uD83D\uDCA6â\uD83D\uDE23\uD83C\uDFC3\uD83D\uDC90â¹\uD83C\uDF8A\uD83D\uDC98\uD83D\uDE20â\uD83D\uDE15\uD83C\uDF3A\uD83C\uDF82\uD83C\uDF3B\uD83D\uDE10\uD83D\uDD95\uD83D\uDC9D\uD83D\uDE4A\uD83D\uDE39\uD83D\uDDE3\uD83D\uDCAB\uD83D\uDC80\uD83D\uDC51\uD83C\uDFB5\uD83E\uDD1E\uD83D\uDE1B\uD83D\uDD34\uD83D\uDE24\uD83C\uDF3C\uD83D\uDE2Bâ½\uD83E\uDD19â\uD83C\uDFC6\uD83E\uDD2B\uD83D\uDC48\uD83D\uDE2E\uD83D\uDE46\uD83C\uDF7B\uD83C\uDF43\uD83D\uDC36\uD83D\uDC81\uD83D\uDE32\uD83C\uDF3F\uD83E\uDDE1\uD83C\uDF81â¡\uD83C\uDF1E\uD83C\uDF88ââ\uD83D\uDC4B\uD83D\uDE30\uD83E\uDD28\uD83D\uDE36\uD83E\uDD1D\uD83D\uDEB6\uD83D\uDCB0\uD83C\uDF53\uD83D\uDCA2\uD83E\uDD1F\uD83D\uDE41\uD83D\uDEA8\uD83D\uDCA8\uD83E\uDD2Câ\uD83C\uDF80\uD83C\uDF7A\uD83E\uDD13\uD83D\uDE19\uD83D\uDC9F\uD83C\uDF31\uD83D\uDE16\uD83D\uDC76\uD83E\uDD74â¶â¡â\uD83D\uDC8E\uD83D\uDCB8â¬\uD83D\uDE28\uD83C\uDF1A\uD83E\uDD8B\uD83D\uDE37\uD83D\uDD7Aâ \uD83D\uDE45\uD83D\uDE1F\uD83D\uDE35\uD83D\uDC4E\uD83E\uDD32\uD83E\uDD20\uD83E\uDD27\uD83D\uDCCC\uD83D\uDD35\uD83D\uDC85\uD83E\uDDD0\uD83D\uDC3E\uD83C\uDF52\uD83D\uDE17\uD83E\uDD11\uD83C\uDF0A\uD83E\uDD2F\uD83D\uDC37â\uD83D\uDCA7\uD83D\uDE2F\uD83D\uDC86\uD83D\uDC46\uD83C\uDFA4\uD83D\uDE47\uD83C\uDF51â\uD83C\uDF34\uD83D\uDCA3\uD83D\uDC38\uD83D\uDC8C\uD83D\uDCCD\uD83E\uDD40\uD83E\uDD22\uD83D\uDC45\uD83D\uDCA1\uD83D\uDCA9\uD83D\uDC50\uD83D\uDCF8\uD83D\uDC7B\uD83E\uDD10\uD83E\uDD2E\uD83C\uDFBC\uD83E\uDD75\uD83D\uDEA9\uD83C\uDF4E\uD83C\uDF4A\uD83D\uDC7C\uD83D\uDC8D\uD83D\uDCE3\uD83E\uDD42"),oG=oH.reduce((e,n,r)=>(e[r]=n,e),[]),oq=oH.reduce((e,n,r)=>(e[n.codePointAt(0)]=r,e),[]);var oY=Object.freeze({__proto__:null,base256emoji:oC({prefix:"\uD83D\uDE80",name:"base256emoji",encode:function(e){return e.reduce((e,n)=>e+=oG[n],"")},decode:function(e){let n=[];for(let r of e){let e=oq[r.codePointAt(0)];if(void 0===e)throw Error(`Non-base256emoji character: ${r}`);n.push(e)}return new Uint8Array(n)}})});function oV(e,n){var r,i=0,n=n||0,a=0,o=n,s=e.length;do{if(o>=s)throw oV.bytes=0,RangeError("Could not decode varint");r=e[o++],i+=a<28?(127&r)<<a:(127&r)*Math.pow(2,a),a+=7}while(r>=128);return oV.bytes=o-n,i}var oQ=function e(n,r,i){r=r||[],i=i||0;for(var a=i;n>=2147483648;)r[i++]=255&n|128,n/=128;for(;-128&n;)r[i++]=255&n|128,n>>>=7;return r[i]=0|n,e.bytes=i-a+1,r};let oK=(e,n,r=0)=>(oQ(e,n,r),n),o$=e=>e<128?1:e<16384?2:e<2097152?3:e<268435456?4:e<34359738368?5:e<4398046511104?6:e<562949953421312?7:e<72057594037927940?8:e<0x7fffffffffffffff?9:10,oJ=(e,n)=>{let r=n.byteLength,i=o$(e),a=i+o$(r),o=new Uint8Array(a+r);return oK(e,o,0),oK(r,o,i),o.set(n,a),new oX(e,r,n,o)};
354class oX{constructor(e,n,r,i){this.code=e,this.size=n,this.digest=r,this.bytes=i}}let o0=({name:e,code:n,encode:r})=>new o1(e,n,r);class o1{constructor(e,n,r){this.name=e,this.code=n,this.encode=r}digest(e){if(e instanceof Uint8Array){let n=this.encode(e);return n instanceof Uint8Array?oJ(this.code,n):n.then(e=>oJ(this.code,e))}throw Error("Unknown type, must be binary type")}}let o6=e=>async n=>new Uint8Array(await crypto.subtle.digest(e,n));var o5=Object.freeze({__proto__:null,sha256:o0({name:"sha2-256",code:18,encode:o6("SHA-256")}),sha512:o0({name:"sha2-512",code:19,encode:o6("SHA-512")})}),o2=Object.freeze({__proto__:null,identity:{code:0,name:"identity",encode:oy,digest:e=>oJ(0,oy(e))}});new TextEncoder,new TextDecoder;let o4={...oS,...ok,...oN,...oj,...oD,...oB,...oU,...oF,...oW,...oY};function o3(e,n,r,i){return{name:e,prefix:n,encoder:{name:e,prefix:n,encode:r},decoder:{decode:i}}}({...o5,...o2});let o8=o3("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>new TextEncoder().encode(e.substring(1))),o9=o3("ascii","a",e=>{let n="a";for(let r=0;r<e.length;r++)n+=String.fromCharCode(e[r]);return n},e=>{let n=function(e=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?globalThis.Buffer.allocUnsafe(e):new Uint8Array(e)}((e=e.substring(1)).length);for(let r=0;r<e.length;r++)n[r]=e.charCodeAt(r);return n}),o7={utf8:o8,"utf-8":o8,hex:o4.base16,latin1:o9,ascii:o9,binary:o9,...o4};function se(e){return function(e,n="utf8"){let r=o7[n];if(!r)throw Error(`Unsupported encoding "${n}"`);return("utf8"===n||"utf-8"===n)&&null!=globalThis.Buffer&&null!=globalThis.Buffer.from?globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8"):r.encoder.encode(e).substring(1)}((0,Y.vp)(function(e,n="utf8"){let r=o7[n];if(!r)throw Error(`Unsupported encoding "${n}"`);return("utf8"===n||"utf-8"===n)&&null!=globalThis.Buffer&&null!=globalThis.Buffer.from?globalThis.Buffer.from(e,"utf8"):r.decoder.decode(`${r.prefix}${e}`)}(e,"utf8")),"base16")}var st=Object.defineProperty,sn=Object.defineProperties,sr=Object.getOwnPropertyDescriptors,si=Object.getOwnPropertySymbols,sa=Object.prototype.hasOwnProperty,so=Object.prototype.propertyIsEnumerable,ss=(e,n,r)=>n in e?st(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,sf=(e,n)=>{for(var r in n||(n={}))sa.call(n,r)&&ss(e,r,n[r]);if(si)for(var r of si(n))so.call(n,r)&&ss(e,r,n[r]);return e},sl=(e,n)=>sn(e,sr(n));class su extends ot{constructor(e){super(e),this.initialized=!1,this.name="authEngine",this.init=()=>{this.initialized||(this.registerRelayerEvents(),this.registerPairingEvents(),this.client.core.pairing.register({methods:Object.keys(or)}),this.initialized=!0)},this.request=async(e,n)=>{if(this.isInitialized(),!function(e){let n=r5(e.aud),r=RegExp(`${e.domain}`).test(e.aud),i=!!e.nonce,a=!e.type||"eip4361"===e.type,o=e.expiry;if(o&&!ir(o,oi)){let{message:e}=rQ("MISSING_OR_INVALID",`request() expiry: ${o}. Expiry must be a number (in seconds) between ${oi.min} and ${oi.max}`);throw Error(e)}return!!(n&&r&&i&&a)}(e))throw Error("Invalid request");if(null!=n&&n.topic)return await this.requestOnKnownPairing(n.topic,e);let{chainId:r,statement:i,aud:a,domain:o,nonce:s,type:f,exp:l,nbf:u}=e,{topic:c,uri:d}=await this.client.core.pairing.create();this.client.logger.info({message:"Generated new pairing",pairing:{topic:c,uri:d}});let p=await this.client.core.crypto.generateKeyPair(),h=rI(p);await this.client.authKeys.set(os,{responseTopic:h,publicKey:p}),await this.client.pairingTopics.set(h,{topic:h,pairingTopic:c}),await this.client.core.relayer.subscribe(h),this.client.logger.info(`sending request to new pairing topic: ${c}`);let y=await this.sendRequest(c,"wc_authRequest",{payloadParams:{type:f??"eip4361",chainId:r,statement:i,aud:a,domain:o,version:"1",nonce:s,iat:new Date().toISOString(),exp:l,nbf:u},requester:{publicKey:p,metadata:this.client.metadata}},{},e.expiry);return this.client.logger.info(`sent request to new pairing topic: ${c}`),{uri:d,id:y}},this.respond=async(e,n)=>{if(this.isInitialized(),!op(this.client.requests,e.id))throw Error("Invalid response");let r=op(this.client.requests,e.id);if(!r)throw Error(`Could not find pending auth request with id ${e.id}`);let i=r.requester.publicKey,a=await this.client.core.crypto.generateKeyPair(),o=rI(i),s={type:1,receiverPublicKey:i,senderPublicKey:a};if("error"in e){await this.sendError(r.id,o,e,s);return}let f={h:{t:"eip4361"},p:sl(sf({},r.cacaoPayload),{iss:n}),s:e.signature};await this.sendResult(r.id,o,f,s),await this.client.core.pairing.activate({topic:r.pairingTopic}),await this.client.requests.update(r.id,sf({},f))},this.getPendingRequests=()=>
354od(this.client.requests),this.formatMessage=(e,n)=>{this.client.logger.debug(`formatMessage, cacao is: ${JSON.stringify(e)}`);let r=`${e.domain} wants you to sign in with your Ethereum account:`,i=ol(n),a=e.statement,o=`URI: ${e.aud}`,s=`Version: ${e.version}`,f=`Chain ID: ${function(e){let n=e&&of(e);if(n)return n[3]}(n)}`,l=`Nonce: ${e.nonce}`;return[r,i,"",a,"",o,s,f,l,`Issued At: ${e.iat}`,e.exp?`Expiry: ${e.exp}`:void 0,e.resources&&e.resources.length>0?`Resources: 355${e.resources.map(e=>`- ${e}`).join(` 356`)}`:void 0].filter(e=>null!=e).join(` 357`)},this.setExpiry=async(e,n)=>{this.client.core.pairing.pairings.keys.includes(e)&&await this.client.core.pairing.updateExpiry({topic:e,expiry:n}),this.client.core.expirer.set(e,n)},this.sendRequest=async(e,n,r,i,a)=>{let o=(0,il.formatJsonRpcRequest)(n,r),s=await this.client.core.crypto.encode(e,o,i),f=or[n].req;if(a&&(f.ttl=a),this.client.core.history.set(e,o),eu()){let e=se(JSON.stringify(o));this.client.core.verify.register({attestationId:e})}return await this.client.core.relayer.publish(e,s,sl(sf({},f),{internal:{throwOnFailedPublish:!0}})),o.id},this.sendResult=async(e,n,r,i)=>{let a=(0,il.formatJsonRpcResult)(e,r),o=await this.client.core.crypto.encode(n,a,i),s=or[(await this.client.core.history.get(n,e)).request.method].res;return await this.client.core.relayer.publish(n,o,sl(sf({},s),{internal:{throwOnFailedPublish:!0}})),await this.client.core.history.resolve(a),a.id},this.sendError=async(e,n,r,i)=>{let a=(0,il.formatJsonRpcError)(e,r.error),o=await this.client.core.crypto.encode(n,a,i),s=or[(await this.client.core.history.get(n,e)).request.method].res;return await this.client.core.relayer.publish(n,o,s),await this.client.core.history.resolve(a),a.id},this.requestOnKnownPairing=async(e,n)=>{let r=this.client.core.pairing.pairings.getAll({active:!0}).find(n=>n.topic===e);if(!r)throw Error(`Could not find pairing for provided topic ${e}`);let{publicKey:i}=this.client.authKeys.get(os),{chainId:a,statement:o,aud:s,domain:f,nonce:l,type:u}=n,c=await this.sendRequest(r.topic,"wc_authRequest",{payloadParams:{type:u??"eip4361",chainId:a,statement:o,aud:s,domain:f,version:"1",nonce:l,iat:new Date().toISOString()},requester:{publicKey:i,metadata:this.client.metadata}},{},n.expiry);return this.client.logger.info(`sent request to known pairing topic: ${r.topic}`),{id:c}},this.onPairingCreated=e=>{let n=this.getPendingRequests();if(n){let r=Object.values(n).find(n=>n.pairingTopic===e.topic);r&&this.handleAuthRequest(r)}},this.onRelayEventRequest=e=>{let{topic:n,payload:r}=e,i=r.method;return"wc_authRequest"===i?this.onAuthRequest(n,r):this.client.logger.info(`Unsupported request method ${i}`)},this.onRelayEventResponse=async e=>{let{topic:n,payload:r}=e,i=(await this.client.core.history.get(n,r.id)).request.method;return"wc_authRequest"===i?this.onAuthResponse(n,r):this.client.logger.info(`Unsupported response method ${i}`)},this.onAuthRequest=async(e,n)=>{let{requester:r,payloadParams:i}=n.params;this.client.logger.info({type:"onAuthRequest",topic:e,payload:n});let a=se(JSON.stringify(n)),o=await this.getVerifyContext(a,this.client.metadata),s={requester:r,pairingTopic:e,id:n.id,cacaoPayload:i,verifyContext:o};await this.client.requests.set(n.id,s),this.handleAuthRequest(s)},this.handleAuthRequest=async e=>{let{id:n,pairingTopic:r,requester:i,cacaoPayload:a,verifyContext:o}=e;try{this.client.emit("auth_request",{id:n,topic:r,params:{requester:i,cacaoPayload:a},verifyContext:o})}catch(n){await this.sendError(e.id,e.pairingTopic,n),this.client.logger.error(n)}},this.onAuthResponse=async(e,n)=>{let{id:r}=n;if(this.client.logger.info({type:"onAuthResponse",topic:e,response:n}),(0,il.isJsonRpcResult)(n)){let{pairingTopic:i}=this.client.pairingTopics.get(e);await this.client.core.pairing.activate({topic:i});let{s:a,p:o}=n.result;await this.client.requests.set(r,sf({id:r,pairingTopic:i},n.result));let s=this.formatMessage(o,o.iss);this.client.logger.debug(`reconstructed message: 358`,JSON.stringify(s)),this.client.logger.debug("payload.iss:",o.iss),this.client.logger.debug("signature:",a);let f=ol(o.iss),l=function(e){let n=e&&of(e);if(n)return n[2]+":"+n[3]}(o.iss);if(!f)throw Error("Could not derive address from `payload.iss`");if(!l)throw Error("Could not derive chainId from `payload.iss`");this.client.logger.debug("walletAddress extracted from `payload.iss`:",f),await ou(f,s,a,l,this.client.projectId)?this.client.emit("auth_response",{id:r,topic:e,params:n}):this.client.emit("auth_response",{id:r,topic:e,params:{message:"Invalid signature",code:-1}})}
358else(0,il.isJsonRpcError)(n)&&this.client.emit("auth_response",{id:r,topic:e,params:n})},this.getVerifyContext=async(e,n)=>{let r={verified:{verifyUrl:n.verifyUrl||"",validation:"UNKNOWN",origin:n.url||""}};try{let i=await this.client.core.verify.resolve({attestationId:e,verifyUrl:n.verifyUrl});i&&(r.verified.origin=i.origin,r.verified.isScam=i.isScam,r.verified.validation=origin===new URL(n.url).origin?"VALID":"INVALID")}catch(e){this.client.logger.error(e)}return this.client.logger.info(`Verify context: ${JSON.stringify(r)}`),r}}isInitialized(){if(!this.initialized){let{message:e}=rQ("NOT_INITIALIZED",this.name);throw Error(e)}}registerRelayerEvents(){this.client.core.relayer.on(ac.message,async e=>{let{topic:n,message:r}=e,{responseTopic:i,publicKey:a}=this.client.authKeys.keys.includes(os)?this.client.authKeys.get(os):{responseTopic:void 0,publicKey:void 0};if(i&&n!==i){this.client.logger.debug("[Auth] Ignoring message from unknown topic",n);return}let o=await this.client.core.crypto.decode(n,r,{receiverPublicKey:a});(0,il.isJsonRpcRequest)(o)?(this.client.core.history.set(n,o),this.onRelayEventRequest({topic:n,payload:o})):(0,il.isJsonRpcResponse)(o)&&(await this.client.core.history.resolve(o),this.onRelayEventResponse({topic:n,payload:o}))})}registerPairingEvents(){this.client.core.pairing.events.on(am.create,e=>this.onPairingCreated(e))}}class sc extends on{constructor(e){super(e),this.protocol="wc",this.version=1,this.name=oa,this.events=new o.EventEmitter,this.emit=(e,n)=>this.events.emit(e,n),this.on=(e,n)=>this.events.on(e,n),this.once=(e,n)=>this.events.once(e,n),this.off=(e,n)=>this.events.off(e,n),this.removeListener=(e,n)=>this.events.removeListener(e,n),this.request=async(e,n)=>{try{return await this.engine.request(e,n)}catch(e){throw this.logger.error(e.message),e}},this.respond=async(e,n)=>{try{return await this.engine.respond(e,n)}catch(e){throw this.logger.error(e.message),e}},this.getPendingRequests=()=>{try{return this.engine.getPendingRequests()}catch(e){throw this.logger.error(e.message),e}},this.formatMessage=(e,n)=>{try{return this.engine.formatMessage(e,n)}catch(e){throw this.logger.error(e.message),e}};let n="u">typeof e.logger&&"string"!=typeof e.logger?e.logger:(0,E.gw)((0,E.jI)({level:e.logger||"error"}));this.name=e?.name||oa,this.metadata=e.metadata,this.projectId=e.projectId,this.core=e.core||new a9(e),this.logger=(0,E.Ep)(n,this.name),this.authKeys=new aK(this.core,this.logger,"authKeys",oo,()=>os),this.pairingTopics=new aK(this.core,this.logger,"pairingTopics",oo),this.requests=new aK(this.core,this.logger,"requests",oo,e=>e.id),this.engine=new su(this)}static async init(e){let n=new sc(e);return await n.initialize(),n}get context(){return(0,E.Fd)(this.logger)}async initialize(){this.logger.trace("Initialized");try{await this.core.start(),await this.authKeys.init(),await this.requests.init(),await this.pairingTopics.init(),await this.engine.init(),this.logger.info("AuthClient Initialization Success"),this.logger.info({authClient:this})}catch(e){throw this.logger.info("AuthClient Initialization Failure"),this.logger.error(e.message),e}}}let sd="client",sp=`wc@2:${sd}:`,sh={name:sd,logger:"error"},sy="WALLETCONNECT_DEEPLINK_CHOICE",sm=w.SEVEN_DAYS,sg={wc_sessionPropose:{req:{ttl:w.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:w.FIVE_MINUTES,prompt:!1,tag:1101},reject:{ttl:w.FIVE_MINUTES,prompt:!1,tag:1120},autoReject:{ttl:w.FIVE_MINUTES,prompt:!1,tag:1121}},wc_sessionSettle:{req:{ttl:w.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:w.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:w.ONE_DAY,prompt:!1,tag:1104},res:{ttl:w.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:w.ONE_DAY,prompt:!1,tag:1106},res:{ttl:w.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:w.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:w.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:w.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:w.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:w.ONE_DAY,prompt:!1,tag:1112},res:{ttl:w.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:w.ONE_DAY,prompt:!1,tag:1114},res:{ttl:w.ONE_DAY,prompt:!1,tag:1115}},wc_sessionAuthenticate:{req:{ttl:w.ONE_HOUR,prompt:!0,tag:1116},res:{ttl:w.ONE_HOUR,prompt:!1,tag:1117},reject:{ttl:w.FIVE_MINUTES,prompt:!1,tag:1118},autoReject:{ttl:w.FIVE_MINUTES,prompt:!1,tag:1119}}},sb={min:w.FIVE_MINUTES,max:w.SEVEN_DAYS},sv={idle:"IDLE",active:"ACTIVE"},sw=["wc_sessionPropose","wc_sessionRequest","wc_authRequest","wc_sessionAuthenticate"],sx="[email protected]:auth:",sT=`${sx}:PUB_KEY`;var sC=Object.defineProperty,sM=Object.defineProperties,sA=Object.getOwnPropertyDescriptors,sE=Object.getOwnPropertySymbols,s
358I=Object.prototype.hasOwnProperty,sS=Object.prototype.propertyIsEnumerable,sk=(e,n,r)=>n in e?sC(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,sN=(e,n)=>{for(var r in n||(n={}))sI.call(n,r)&&sk(e,r,n[r]);if(sE)for(var r of sE(n))sS.call(n,r)&&sk(e,r,n[r]);return e},sj=(e,n)=>sM(e,sA(n));class sD extends z{constructor(e){super(e),this.name="engine",this.events=new(s()),this.initialized=!1,this.requestQueue={state:sv.idle,queue:[]},this.sessionRequestQueue={state:sv.idle,queue:[]},this.requestQueueDelay=w.ONE_SECOND,this.expectedPairingMethodMap=new Map,this.recentlyDeletedMap=new Map,this.recentlyDeletedLimit=200,this.relayMessageCache=[],this.init=async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.registerPairingEvents(),this.client.core.pairing.register({methods:Object.keys(sg)}),this.initialized=!0,setTimeout(()=>{this.sessionRequestQueue.queue=this.getPendingSessionRequests(),this.processSessionRequestQueue()},(0,w.toMiliseconds)(this.requestQueueDelay)))},this.connect=async e=>{await this.isInitialized();let n=sj(sN({},e),{requiredNamespaces:e.requiredNamespaces||{},optionalNamespaces:e.optionalNamespaces||{}});await this.isValidConnect(n);let{pairingTopic:r,requiredNamespaces:i,optionalNamespaces:a,sessionProperties:o,relays:s}=n,f=r,l,u=!1;try{f&&(u=this.client.core.pairing.pairings.get(f).active)}catch(e){throw this.client.logger.error(`connect() -> pairing.get(${f}) failed`),e}if(!f||!u){let{topic:e,uri:n}=await this.client.core.pairing.create();f=e,l=n}if(!f){let{message:e}=rQ("NO_MATCHING_KEY",`connect() pairing topic: ${f}`);throw Error(e)}let c=await this.client.core.crypto.generateKeyPair(),d=sg.wc_sessionPropose.req.ttl||w.FIVE_MINUTES,p=ev(d),h=sN({requiredNamespaces:i,optionalNamespaces:a,relays:s??[{protocol:"irn"}],proposer:{publicKey:c,metadata:this.client.metadata},expiryTimestamp:p,pairingTopic:f},o&&{sessionProperties:o}),{reject:y,resolve:m,done:g}=ey(d,"Proposal expired");this.events.once(ex("session_connect"),async({error:e,session:n})=>{if(e)y(e);else if(n){n.self.publicKey=c;let e=sj(sN({},n),{pairingTopic:h.pairingTopic,requiredNamespaces:h.requiredNamespaces,optionalNamespaces:h.optionalNamespaces});await this.client.session.set(n.topic,e),await this.setExpiry(n.topic,n.expiry),f&&await this.client.core.pairing.updateMetadata({topic:f,metadata:n.peer.metadata}),this.cleanupDuplicatePairings(e),m(e)}});let b=await this.sendRequest({topic:f,method:"wc_sessionPropose",params:h,throwOnFailedPublish:!0});return await this.setProposal(b,sN({id:b},h)),{uri:l,approval:g}},this.pair=async e=>{await this.isInitialized();try{return await this.client.core.pairing.pair(e)}catch(e){throw this.client.logger.error("pair() failed"),e}},this.approve=async e=>{let n;await this.isInitialized();try{await this.isValidApprove(e)}catch(e){throw this.client.logger.error("approve() -> isValidApprove() failed"),e}let{id:r,relayProtocol:i,namespaces:a,sessionProperties:o,sessionConfig:s}=e;try{n=this.client.proposal.get(r)}catch(e){throw this.client.logger.error(`approve() -> proposal.get(${r}) failed`),e}let{pairingTopic:f,proposer:l,requiredNamespaces:u,optionalNamespaces:c}=n,d=await this.client.core.crypto.generateKeyPair(),p=l.publicKey,h=await this.client.core.crypto.generateSharedKey(d,p),y=sN(sN({relay:{protocol:i??"irn"},namespaces:a,controller:{publicKey:d,metadata:this.client.metadata},expiry:ev(sm)},o&&{sessionProperties:o}),s&&{sessionConfig:s});await this.client.core.relayer.subscribe(h);let m=sj(sN({},y),{topic:h,requiredNamespaces:u,optionalNamespaces:c,pairingTopic:f,acknowledged:!1,self:y.controller,peer:{publicKey:l.publicKey,metadata:l.metadata},controller:d});await this.client.session.set(h,m);try{await this.sendResult({id:r,topic:f,result:{relay:{protocol:i??"irn"},responderPublicKey:d},throwOnFailedPublish:!0}),await this.sendRequest({topic:h,method:"wc_sessionSettle",params:y,throwOnFailedPublish:!0})}catch(e){throw this.client.logger.error(e),this.client.session.delete(h,rK("USER_DISCONNECTED")),await this.client.core.relayer.unsubscribe(h),e}return await this.client.core.pairing.updateMetadata({topic:f,metadata:l.metadata}),await this.client.proposal.delete(r,rK("USER_DISCONNECTED")),await this.client.core.pairing.activate({topic:f}),await this.setExpiry(h,ev(sm)),{topic:h,acknowledged:()=>new Promise(e=>setTimeout(()=>e(this.client.session.get(h)),500))}},this.reject=async e=>{let n;await this.isInitialized();try{await this.isValidReject(e)}catch(e){throw this.client.logger.error("reject() -> isValidReject() failed"),e}let{id:r,reason:i}=e;try{n=this.client.proposal.get(r).pairingTopic}catch(e){throw this.client.logger.error(`reject() -> proposal.get(${r}) failed`),e}
358n&&(await this.sendError({id:r,topic:n,error:i,rpcOpts:sg.wc_sessionPropose.reject}),await this.client.proposal.delete(r,rK("USER_DISCONNECTED")))},this.update=async e=>{await this.isInitialized();try{await this.isValidUpdate(e)}catch(e){throw this.client.logger.error("update() -> isValidUpdate() failed"),e}let{topic:n,namespaces:r}=e,{done:i,resolve:a,reject:o}=ey(),s=(0,il.payloadId)(),f=(0,il.getBigIntRpcId)().toString(),l=this.client.session.get(n).namespaces;return this.events.once(ex("session_update",s),({error:e})=>{e?o(e):a()}),await this.client.session.update(n,{namespaces:r}),await this.sendRequest({topic:n,method:"wc_sessionUpdate",params:{namespaces:r},throwOnFailedPublish:!0,clientRpcId:s,relayRpcId:f}).catch(e=>{this.client.logger.error(e),this.client.session.update(n,{namespaces:l}),o(e)}),{acknowledged:i}},this.extend=async e=>{await this.isInitialized();try{await this.isValidExtend(e)}catch(e){throw this.client.logger.error("extend() -> isValidExtend() failed"),e}let{topic:n}=e,r=(0,il.payloadId)(),{done:i,resolve:a,reject:o}=ey();return this.events.once(ex("session_extend",r),({error:e})=>{e?o(e):a()}),await this.setExpiry(n,ev(sm)),this.sendRequest({topic:n,method:"wc_sessionExtend",params:{},clientRpcId:r,throwOnFailedPublish:!0}).catch(e=>{o(e)}),{acknowledged:i}},this.request=async e=>{await this.isInitialized();try{await this.isValidRequest(e)}catch(e){throw this.client.logger.error("request() -> isValidRequest() failed"),e}let{chainId:n,request:r,topic:i,expiry:a=sg.wc_sessionRequest.req.ttl}=e,o=this.client.session.get(i),s=(0,il.payloadId)(),f=(0,il.getBigIntRpcId)().toString(),{done:l,resolve:u,reject:c}=ey(a,"Request expired. Please try again.");return this.events.once(ex("session_request",s),({error:e,result:n})=>{e?c(e):u(n)}),await Promise.all([new Promise(async e=>{await this.sendRequest({clientRpcId:s,relayRpcId:f,topic:i,method:"wc_sessionRequest",params:{request:sj(sN({},r),{expiryTimestamp:ev(a)}),chainId:n},expiry:a,throwOnFailedPublish:!0}).catch(e=>c(e)),this.client.events.emit("session_request_sent",{topic:i,request:r,chainId:n,id:s}),e()}),new Promise(async e=>{var n;null!=(n=o.sessionConfig)&&n.disableDeepLink||eT({id:s,topic:i,wcDeepLink:await eC(this.client.core.storage,sy)}),e()}),l()]).then(e=>e[2])},this.respond=async e=>{await this.isInitialized(),await this.isValidRespond(e);let{topic:n,response:r}=e,{id:i}=r;(0,il.isJsonRpcResult)(r)?await this.sendResult({id:i,topic:n,result:r.result,throwOnFailedPublish:!0}):(0,il.isJsonRpcError)(r)&&await this.sendError({id:i,topic:n,error:r.error}),this.cleanupAfterResponse(e)},this.ping=async e=>{await this.isInitialized();try{await this.isValidPing(e)}catch(e){throw this.client.logger.error("ping() -> isValidPing() failed"),e}let{topic:n}=e;if(this.client.session.keys.includes(n)){let e=(0,il.payloadId)(),r=(0,il.getBigIntRpcId)().toString(),{done:i,resolve:a,reject:o}=ey();this.events.once(ex("session_ping",e),({error:e})=>{e?o(e):a()}),await Promise.all([this.sendRequest({topic:n,method:"wc_sessionPing",params:{},throwOnFailedPublish:!0,clientRpcId:e,relayRpcId:r}),i()])}else this.client.core.pairing.pairings.keys.includes(n)&&await this.client.core.pairing.ping({topic:n})},this.emit=async e=>{await this.isInitialized(),await this.isValidEmit(e);let{topic:n,event:r,chainId:i}=e,a=(0,il.getBigIntRpcId)().toString();await this.sendRequest({topic:n,method:"wc_sessionEvent",params:{event:r,chainId:i},throwOnFailedPublish:!0,relayRpcId:a})},this.disconnect=async e=>{await this.isInitialized(),await this.isValidDisconnect(e);let{topic:n}=e;if(this.client.session.keys.includes(n))await this.sendRequest({topic:n,method:"wc_sessionDelete",params:rK("USER_DISCONNECTED"),throwOnFailedPublish:!0}),await this.deleteSession({topic:n,emitEvent:!1});else if(this.client.core.pairing.pairings.keys.includes(n))await this.client.core.pairing.disconnect({topic:n});else{let{message:e}=rQ("MISMATCHED_TOPIC",`Session or pairing topic not found: ${n}`);throw Error(e)}},this.find=e=>(this.isInitialized(),this.client.session.getAll().filter(n=>(function(e,n){let{requiredNamespaces:r}=n,i=Object.keys(e.namespaces),a=Object.keys(r),o=!0;return!!ed(a,i)&&(i.forEach(n=>{let{accounts:i,methods:a,events:s}=e.namespaces[n],f=rG(i),l=r[n];ed(ee(n,l),f)&&ed(l.methods,a)&&ed(l.events,s)||(o=!1)}),o)})(n,e))),this.getPendingSessionRequests=()=>
358this.client.pendingRequest.getAll(),this.authenticate=async e=>{this.isInitialized(),this.isValidAuthenticate(e);let{chains:n,statement:r="",uri:i,domain:a,nonce:o,type:s,exp:f,nbf:l,methods:u=[],expiry:c}=e,d=[...e.resources||[]],{topic:p,uri:h}=await this.client.core.pairing.create({methods:["wc_sessionAuthenticate"]});this.client.logger.info({message:"Generated new pairing",pairing:{topic:p,uri:h}});let y=await this.client.core.crypto.generateKeyPair(),m=rI(y);if(await Promise.all([this.client.auth.authKeys.set(sT,{responseTopic:m,publicKey:y}),this.client.auth.pairingTopics.set(m,{topic:m,pairingTopic:p})]),await this.client.core.relayer.subscribe(m),this.client.logger.info(`sending request to new pairing topic: ${p}`),u.length>0){var g,b;let{namespace:e}=X(n[0]),r=rg(function(e,n,r,i={}){return r?.sort((e,n)=>e.localeCompare(n)),{att:{[e]:function(e,n,r={}){return Object.assign({},...(n=n?.sort((e,n)=>e.localeCompare(n))).map(n=>({[`${e}/${n}`]:[r]})))}(n,r,i)}}}(e,"request",u));rx(d)&&(g=r,b=d.pop(),r=rg(function(e,n){rm(e),rm(n);let r=Object.keys(e.att).concat(Object.keys(n.att)).sort((e,n)=>e.localeCompare(n)),i={att:{}};return r.forEach(r=>{var a,o;Object.keys((null==(a=e.att)?void 0:a[r])||{}).concat(Object.keys((null==(o=n.att)?void 0:o[r])||{})).sort((e,n)=>e.localeCompare(n)).forEach(a=>{var o,s;i.att[r]=rl(rf({},i.att[r]),{[a]:(null==(o=e.att[r])?void 0:o[a])||(null==(s=n.att[r])?void 0:s[a])})})}),i}(rb(g),rb(b)))),d.push(r)}let v=c&&c>sg.wc_sessionAuthenticate.req.ttl?c:sg.wc_sessionAuthenticate.req.ttl,w={authPayload:{type:s??"caip122",chains:n,statement:r,aud:i,domain:a,version:"1",nonce:o,iat:new Date().toISOString(),exp:f,nbf:l,resources:d},requester:{publicKey:y,metadata:this.client.metadata},expiryTimestamp:ev(v)},x={requiredNamespaces:{},optionalNamespaces:{eip155:{chains:n,methods:[...new Set(["personal_sign",...u])],events:["chainChanged","accountsChanged"]}},relays:[{protocol:"irn"}],pairingTopic:p,proposer:{publicKey:y,metadata:this.client.metadata},expiryTimestamp:ev(sg.wc_sessionPropose.req.ttl)},{done:T,resolve:C,reject:M}=ey(v,"Request expired"),A=async({error:e,session:n})=>{if(this.events.off(ex("session_request",I),E),e)M(e);else if(n){n.self.publicKey=y,await this.client.session.set(n.topic,n),await this.setExpiry(n.topic,n.expiry),p&&await this.client.core.pairing.updateMetadata({topic:p,metadata:n.peer.metadata});let e=this.client.session.get(n.topic);await this.deleteProposal(S),C({session:e})}},E=async e=>{let n;if(await this.deletePendingAuthRequest(I,{message:"fulfilled",code:0}),e.error){let n=rK("WC_METHOD_UNSUPPORTED","wc_sessionAuthenticate");return e.error.code===n.code?void 0:(this.events.off(ex("session_connect"),A),M(e.error.message))}await this.deleteProposal(S),this.events.off(ex("session_connect"),A);let{cacaos:r,responder:i}=e.result,a=[],o=[];for(let e of r){await rh({cacao:e,projectId:this.client.core.projectId})||(this.client.logger.error(e,"Signature verification failed"),M(rK("SESSION_SETTLEMENT_FAILED","Signature verification failed")));let{p:n}=e,r=rx(n.resources),i=[rd(n.iss)],s=rp(n.iss);if(r){let e=rv(r),n=rw(r);a.push(...e),i.push(...n)}for(let e of i)o.push(`${e}:${s}`)}let s=await this.client.core.crypto.generateSharedKey(y,i.publicKey);a.length>0&&(n={topic:s,acknowledged:!0,self:{publicKey:y,metadata:this.client.metadata},peer:i,controller:i.publicKey,expiry:ev(sm),requiredNamespaces:{},optionalNamespaces:{},relay:{protocol:"irn"}
358,pairingTopic:p,namespaces:rq([...new Set(a)],[...new Set(o)])},await this.client.core.relayer.subscribe(s),await this.client.session.set(s,n),p&&await this.client.core.pairing.updateMetadata({topic:p,metadata:i.metadata}),n=this.client.session.get(s)),C({auths:r,session:n})},I=(0,il.payloadId)(),S=(0,il.payloadId)();this.events.once(ex("session_connect"),A),this.events.once(ex("session_request",I),E);try{await Promise.all([this.sendRequest({topic:p,method:"wc_sessionAuthenticate",params:w,expiry:e.expiry,throwOnFailedPublish:!0,clientRpcId:I}),this.sendRequest({topic:p,method:"wc_sessionPropose",params:x,expiry:sg.wc_sessionPropose.req.ttl,throwOnFailedPublish:!0,clientRpcId:S})])}catch(e){throw this.events.off(ex("session_connect"),A),this.events.off(ex("session_request",I),E),e}return await this.setProposal(S,sN({id:S},x)),await this.setAuthRequest(I,{request:sj(sN({},w),{verifyContext:{}}),pairingTopic:p}),{uri:h,response:T}},this.approveSessionAuthenticate=async e=>{let n;this.isInitialized();let{id:r,auths:i}=e,a=this.getPendingAuthRequest(r);if(!a)throw Error(`Could not find pending auth request with id ${r}`);let o=a.requester.publicKey,s=await this.client.core.crypto.generateKeyPair(),f=rI(o),l={type:1,receiverPublicKey:o,senderPublicKey:s},u=[],c=[];for(let e of i){if(!await rh({cacao:e,projectId:this.client.core.projectId})){let e=rK("SESSION_SETTLEMENT_FAILED","Signature verification failed");throw await this.sendError({id:r,topic:f,error:e,encodeOpts:l}),Error(e.message)}let{p:n}=e,i=rx(n.resources),a=[rd(n.iss)],o=rp(n.iss);if(i){let e=rv(i),n=rw(i);u.push(...e),a.push(...n)}for(let e of a)c.push(`${e}:${o}`)}let d=await this.client.core.crypto.generateSharedKey(s,o);return u?.length>0&&(n={topic:d,acknowledged:!0,self:{publicKey:s,metadata:this.client.metadata},peer:{publicKey:o,metadata:a.requester.metadata},controller:o,expiry:ev(sm),authentication:i,requiredNamespaces:{},optionalNamespaces:{},relay:{protocol:"irn"},pairingTopic:a.pairingTopic,namespaces:rq([...new Set(u)],[...new Set(c)])},await this.client.core.relayer.subscribe(d),await this.client.session.set(d,n),await this.client.core.pairing.updateMetadata({topic:a.pairingTopic,metadata:a.requester.metadata})),await this.sendResult({topic:f,id:r,result:{cacaos:i,responder:{publicKey:s,metadata:this.client.metadata}},encodeOpts:l,throwOnFailedPublish:!0}),await this.client.auth.requests.delete(r,{message:"fulfilled",code:0}),await this.client.core.pairing.activate({topic:a.pairingTopic}),{session:n}},this.rejectSessionAuthenticate=async e=>{await this.isInitialized();let{id:n,reason:r}=e,i=this.getPendingAuthRequest(n);if(!i)throw Error(`Could not find pending auth request with id ${n}`);let a=i.requester.publicKey,o=await this.client.core.crypto.generateKeyPair(),s=rI(a);await this.sendError({id:n,topic:s,error:r,encodeOpts:{type:1,receiverPublicKey:a,senderPublicKey:o},rpcOpts:sg.wc_sessionAuthenticate.reject}),await this.client.auth.requests.delete(n,{message:"rejected",code:0}),await this.client.proposal.delete(n,rK("USER_DISCONNECTED"))},this.formatAuthMessage=e=>{this.isInitialized();let{request:n,iss:r}=e;return ry(n,r)},this.processRelayMessageCache=()=>{setTimeout(async()=>{if(0!==this.relayMessageCache.length)for(;this.relayMessageCache.length>0;)try{let e=this.relayMessageCache.shift();e&&await this.onRelayMessage(e)}catch(e){this.client.logger.error(e)}},50)},this.cleanupDuplicatePairings=async e=>{if(e.pairingTopic)try{let n=this.client.core.pairing.pairings.get(e.pairingTopic),r=this.client.core.pairing.pairings.getAll().filter(r=>{var i,a;return(null==(i=r.peerMetadata)?void 0:i.url)&&(null==(a=r.peerMetadata)?void 0:a.url)===e.peer.metadata.url&&r.topic&&r.topic!==n.topic});if(0===r.length)return;this.client.logger.info(`Cleaning up ${r.length} duplicate pairing(s)`),await Promise.all(r.map(e=>this.client.core.pairing.disconnect({topic:e.topic}))),this.client.logger.info("Duplicate pairings clean up finished")}catch(e){this.client.logger.error(e)}},this.deleteSession=async e=>{var n;let{topic:r,expirerHasDeleted:i=!1,emitEvent:a=!0,id:o=0}=e,{self:s}=this.client.session.get(r);await this.client.core.relayer.unsubscribe(r),await this.client.session.delete(r,rK("USER_DISCONNECTED")),this.addToRecentlyDeleted(r,"session"),this.client.core.crypto.keychain.has(s.publicKey)&&await this.client.core.crypto.deleteKeyPair(s.publicKey),this.client.core.crypto.keychain.has(r)&&await this.client.core.crypto.deleteSymKey(r),i||this.client.core.expirer.del(r),this.client.core.storage.removeItem(sy).catch(e=>this.client.logger.warn(e)),this.getPendingSessionRequests().forEac
358h(e=>{e.topic===r&&this.deletePendingSessionRequest(e.id,rK("USER_DISCONNECTED"))}),r===(null==(n=this.sessionRequestQueue.queue[0])?void 0:n.topic)&&(this.sessionRequestQueue.state=sv.idle),a&&this.client.events.emit("session_delete",{id:o,topic:r})},this.deleteProposal=async(e,n)=>{await Promise.all([this.client.proposal.delete(e,rK("USER_DISCONNECTED")),n?Promise.resolve():this.client.core.expirer.del(e)]),this.addToRecentlyDeleted(e,"proposal")},this.deletePendingSessionRequest=async(e,n,r=!1)=>{await Promise.all([this.client.pendingRequest.delete(e,n),r?Promise.resolve():this.client.core.expirer.del(e)]),this.addToRecentlyDeleted(e,"request"),this.sessionRequestQueue.queue=this.sessionRequestQueue.queue.filter(n=>n.id!==e),r&&(this.sessionRequestQueue.state=sv.idle,this.client.events.emit("session_request_expire",{id:e}))},this.deletePendingAuthRequest=async(e,n,r=!1)=>{await Promise.all([this.client.auth.requests.delete(e,n),r?Promise.resolve():this.client.core.expirer.del(e)])},this.setExpiry=async(e,n)=>{this.client.session.keys.includes(e)&&(this.client.core.expirer.set(e,n),await this.client.session.update(e,{expiry:n}))},this.setProposal=async(e,n)=>{this.client.core.expirer.set(e,ev(sg.wc_sessionPropose.req.ttl)),await this.client.proposal.set(e,n)},this.setAuthRequest=async(e,n)=>{let{request:r,pairingTopic:i}=n;this.client.core.expirer.set(e,r.expiryTimestamp),await this.client.auth.requests.set(e,{authPayload:r.authPayload,requester:r.requester,expiryTimestamp:r.expiryTimestamp,id:e,pairingTopic:i,verifyContext:r.verifyContext})},this.setPendingSessionRequest=async e=>{let{id:n,topic:r,params:i,verifyContext:a}=e,o=i.request.expiryTimestamp||ev(sg.wc_sessionRequest.req.ttl);this.client.core.expirer.set(n,o),await this.client.pendingRequest.set(n,{id:n,topic:r,params:i,verifyContext:a})},this.sendRequest=async e=>{let n;let{topic:r,method:i,params:a,expiry:o,relayRpcId:s,clientRpcId:f,throwOnFailedPublish:l}=e,u=(0,il.formatJsonRpcRequest)(i,a,f);if(eu()&&sw.includes(i)){let e=rS(JSON.stringify(u));this.client.core.verify.register({attestationId:e})}try{n=await this.client.core.crypto.encode(r,u)}catch(e){throw await this.cleanup(),this.client.logger.error(`sendRequest() -> core.crypto.encode() for topic ${r} failed`),e}let c=sg[i].req;return o&&(c.ttl=o),s&&(c.id=s),this.client.core.history.set(r,u),l?(c.internal=sj(sN({},c.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(r,n,c)):this.client.core.relayer.publish(r,n,c).catch(e=>this.client.logger.error(e)),u.id},this.sendResult=async e=>{let n,r;let{id:i,topic:a,result:o,throwOnFailedPublish:s,encodeOpts:f}=e,l=(0,il.formatJsonRpcResult)(i,o);try{n=await this.client.core.crypto.encode(a,l,f)}catch(e){throw await this.cleanup(),this.client.logger.error(`sendResult() -> core.crypto.encode() for topic ${a} failed`),e}try{r=await this.client.core.history.get(a,i)}catch(e){throw this.client.logger.error(`sendResult() -> history.get(${a}, ${i}) failed`),e}let u=sg[r.request.method].res;s?(u.internal=sj(sN({},u.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(a,n,u)):this.client.core.relayer.publish(a,n,u).catch(e=>this.client.logger.error(e)),await this.client.core.history.resolve(l)},this.sendError=async e=>{let n,r;let{id:i,topic:a,error:o,encodeOpts:s,rpcOpts:f}=e,l=(0,il.formatJsonRpcError)(i,o);try{n=await this.client.core.crypto.encode(a,l,s)}catch(e){throw await this.cleanup(),this.client.logger.error(`sendError() -> core.crypto.encode() for topic ${a} failed`),e}try{r=await this.client.core.history.get(a,i)}catch(e){throw this.client.logger.error(`sendError() -> history.get(${a}, ${i}) failed`),e}let u=f||sg[r.request.method].res;this.client.core.relayer.publish(a,n,u),await this.client.core.history.resolve(l)},this.cleanup=async()=>{let e=[],n=[];this.client.session.getAll().forEach(n=>{let r=!1;ew(n.expiry)&&(r=!0),this.client.core.crypto.keychain.has(n.topic)||(r=!0),r&&e.push(n.topic)}),this.client.proposal.getAll().forEach(e=>{ew(e.expiryTimestamp)&&n.push(e.id)}),await Promise.all([...e.map(e=>this.deleteSession({topic:e})),...n.map(e=>this.deleteProposal(e))])},this.onRelayEventRequest=async e=>{this.requestQueue.queue.push(e),await this.processRequestsQueue()},this.processRequestsQueue=async()=>
358{if(this.requestQueue.state===sv.active){this.client.logger.info("Request queue already active, skipping...");return}for(this.client.logger.info(`Request queue starting with ${this.requestQueue.queue.length} requests`);this.requestQueue.queue.length>0;){this.requestQueue.state=sv.active;let e=this.requestQueue.queue.shift();if(e)try{await this.processRequest(e)}catch(e){this.client.logger.warn(e)}}this.requestQueue.state=sv.idle},this.processRequest=async e=>{let{topic:n,payload:r}=e,i=r.method;if(!this.shouldIgnorePairingRequest({topic:n,requestMethod:i}))switch(i){case"wc_sessionPropose":return await this.onSessionProposeRequest(n,r);case"wc_sessionSettle":return await this.onSessionSettleRequest(n,r);case"wc_sessionUpdate":return await this.onSessionUpdateRequest(n,r);case"wc_sessionExtend":return await this.onSessionExtendRequest(n,r);case"wc_sessionPing":return await this.onSessionPingRequest(n,r);case"wc_sessionDelete":return await this.onSessionDeleteRequest(n,r);case"wc_sessionRequest":return await this.onSessionRequest(n,r);case"wc_sessionEvent":return await this.onSessionEventRequest(n,r);case"wc_sessionAuthenticate":return await this.onSessionAuthenticateRequest(n,r);default:return this.client.logger.info(`Unsupported request method ${i}`)}},this.onRelayEventResponse=async e=>{let{topic:n,payload:r}=e,i=(await this.client.core.history.get(n,r.id)).request.method;switch(i){case"wc_sessionPropose":return this.onSessionProposeResponse(n,r);case"wc_sessionSettle":return this.onSessionSettleResponse(n,r);case"wc_sessionUpdate":return this.onSessionUpdateResponse(n,r);case"wc_sessionExtend":return this.onSessionExtendResponse(n,r);case"wc_sessionPing":return this.onSessionPingResponse(n,r);case"wc_sessionRequest":return this.onSessionRequestResponse(n,r);case"wc_sessionAuthenticate":return this.onSessionAuthenticateResponse(n,r);default:return this.client.logger.info(`Unsupported response method ${i}`)}},this.onRelayEventUnknownPayload=e=>{let{topic:n}=e,{message:r}=rQ("MISSING_OR_INVALID",`Decoded payload on topic ${n} is not identifiable as a JSON-RPC request or a response.`);throw Error(r)},this.shouldIgnorePairingRequest=e=>{let{topic:n,requestMethod:r}=e,i=this.expectedPairingMethodMap.get(n);return!(!i||i.includes(r))&&!!(i.includes("wc_sessionAuthenticate")&&this.client.events.listenerCount("session_authenticate")>0)},this.onSessionProposeRequest=async(e,n)=>{let{params:r,id:i}=n;try{this.isValidConnect(sN({},n.params));let a=r.expiryTimestamp||ev(sg.wc_sessionPropose.req.ttl),o=sN({id:i,pairingTopic:e,expiryTimestamp:a},r);await this.setProposal(i,o);let s=rS(JSON.stringify(n)),f=await this.getVerifyContext(s,o.proposer.metadata);this.client.events.emit("session_proposal",{id:i,params:o,verifyContext:f})}catch(n){await this.sendError({id:i,topic:e,error:n,rpcOpts:sg.wc_sessionPropose.autoReject}),this.client.logger.error(n)}},this.onSessionProposeResponse=async(e,n)=>{let{id:r}=n;if((0,il.isJsonRpcResult)(n)){let{result:i}=n;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:i});let a=this.client.proposal.get(r);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",proposal:a});let o=a.proposer.publicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",selfPublicKey:o});let s=i.responderPublicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:s});let f=await this.client.core.crypto.generateSharedKey(o,s);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",sessionTopic:f});let l=await this.client.core.relayer.subscribe(f);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:l}),await this.client.core.pairing.activate({topic:e})}else if((0,il.isJsonRpcError)(n)){await this.client.proposal.delete(r,rK("USER_DISCONNECTED"));let e=ex("session_connect");if(0===this.events.listenerCount(e))throw Error(`emitting ${e} without any listeners, 954`);this.events.emit(ex("session_connect"),{error:n.error})}},this.onSessionSettleRequest=async(e,n)=>{let{id:r,params:i}=n;try{this.isValidSessionSettleRequest(i);let{relay:r,controller:a,expiry:o,namespaces:s,sessionProperties:f,sessionConfig:l}=n.params,u=sN(sN({topic:e,relay:r,expiry:o,namespaces:s,acknowledged:!0,pairingTopic:"",requiredNamespaces:{},optionalNamespaces:{},controller:a.publicKey,self:{publicKey:"",metadata:this.client.metadata},peer:{publicKey:a.publicKey,metadata:a.metadata}},f&&{sessionProperties:f}),l&&{sessionConfig:l});await this.sendResult({id:n.id,topic:e,result:!0,throwOnFailedPublish:!0});let c=ex("session_connect");
358if(0===this.events.listenerCount(c))throw Error(`emitting ${c} without any listeners 997`);this.events.emit(ex("session_connect"),{session:u})}catch(n){await this.sendError({id:r,topic:e,error:n}),this.client.logger.error(n)}},this.onSessionSettleResponse=async(e,n)=>{let{id:r}=n;(0,il.isJsonRpcResult)(n)?(await this.client.session.update(e,{acknowledged:!0}),this.events.emit(ex("session_approve",r),{})):(0,il.isJsonRpcError)(n)&&(await this.client.session.delete(e,rK("USER_DISCONNECTED")),this.events.emit(ex("session_approve",r),{error:n.error}))},this.onSessionUpdateRequest=async(e,n)=>{let{params:r,id:i}=n;try{let n=`${e}_session_update`,a=is.get(n);if(a&&this.isRequestOutOfSync(a,i)){this.client.logger.info(`Discarding out of sync request - ${i}`),this.sendError({id:i,topic:e,error:rK("INVALID_UPDATE_REQUEST")});return}this.isValidUpdate(sN({topic:e},r));try{is.set(n,i),await this.client.session.update(e,{namespaces:r.namespaces}),await this.sendResult({id:i,topic:e,result:!0,throwOnFailedPublish:!0})}catch(e){throw is.delete(n),e}this.client.events.emit("session_update",{id:i,topic:e,params:r})}catch(n){await this.sendError({id:i,topic:e,error:n}),this.client.logger.error(n)}},this.isRequestOutOfSync=(e,n)=>parseInt(n.toString().slice(0,-3))<=parseInt(e.toString().slice(0,-3)),this.onSessionUpdateResponse=(e,n)=>{let{id:r}=n,i=ex("session_update",r);if(0===this.events.listenerCount(i))throw Error(`emitting ${i} without any listeners`);(0,il.isJsonRpcResult)(n)?this.events.emit(ex("session_update",r),{}):(0,il.isJsonRpcError)(n)&&this.events.emit(ex("session_update",r),{error:n.error})},this.onSessionExtendRequest=async(e,n)=>{let{id:r}=n;try{this.isValidExtend({topic:e}),await this.setExpiry(e,ev(sm)),await this.sendResult({id:r,topic:e,result:!0,throwOnFailedPublish:!0}),this.client.events.emit("session_extend",{id:r,topic:e})}catch(n){await this.sendError({id:r,topic:e,error:n}),this.client.logger.error(n)}},this.onSessionExtendResponse=(e,n)=>{let{id:r}=n,i=ex("session_extend",r);if(0===this.events.listenerCount(i))throw Error(`emitting ${i} without any listeners`);(0,il.isJsonRpcResult)(n)?this.events.emit(ex("session_extend",r),{}):(0,il.isJsonRpcError)(n)&&this.events.emit(ex("session_extend",r),{error:n.error})},this.onSessionPingRequest=async(e,n)=>{let{id:r}=n;try{this.isValidPing({topic:e}),await this.sendResult({id:r,topic:e,result:!0,throwOnFailedPublish:!0}),this.client.events.emit("session_ping",{id:r,topic:e})}catch(n){await this.sendError({id:r,topic:e,error:n}),this.client.logger.error(n)}},this.onSessionPingResponse=(e,n)=>{let{id:r}=n,i=ex("session_ping",r);if(0===this.events.listenerCount(i))throw Error(`emitting ${i} without any listeners`);setTimeout(()=>{(0,il.isJsonRpcResult)(n)?this.events.emit(ex("session_ping",r),{}):(0,il.isJsonRpcError)(n)&&this.events.emit(ex("session_ping",r),{error:n.error})},500)},this.onSessionDeleteRequest=async(e,n)=>{let{id:r}=n;try{this.isValidDisconnect({topic:e,reason:n.params}),await Promise.all([new Promise(n=>{this.client.core.relayer.once(ac.publish,async()=>{n(await this.deleteSession({topic:e,id:r}))})}),this.sendResult({id:r,topic:e,result:!0,throwOnFailedPublish:!0}),this.cleanupPendingSentRequestsForTopic({topic:e,error:rK("USER_DISCONNECTED")})])}catch(e){this.client.logger.error(e)}},this.onSessionRequest=async(e,n)=>{var r;let{id:i,params:a}=n;try{await this.isValidRequest(sN({topic:e},a));let n=rS(JSON.stringify((0,il.formatJsonRpcRequest)("wc_sessionRequest",a,i))),o=this.client.session.get(e),s=await this.getVerifyContext(n,o.peer.metadata),f={id:i,topic:e,params:a,verifyContext:s};await this.setPendingSessionRequest(f),null!=(r=this.client.signConfig)&&r.disableRequestQueue?this.emitSessionRequest(f):(this.addSessionRequestToSessionRequestQueue(f),this.processSessionRequestQueue())}catch(n){await this.sendError({id:i,topic:e,error:n}),this.client.logger.error(n)}},this.onSessionRequestResponse=(e,n)=>{let{id:r}=n,i=ex("session_request",r);if(0===this.events.listenerCount(i))throw Error(`emitting ${i} without any listeners`);(0,il.isJsonRpcResult)(n)?this.events.emit(ex("session_request",r),{result:n.result}
358):(0,il.isJsonRpcError)(n)&&this.events.emit(ex("session_request",r),{error:n.error})},this.onSessionEventRequest=async(e,n)=>{let{id:r,params:i}=n;try{let n=`${e}_session_event_${i.event.name}`,a=is.get(n);if(a&&this.isRequestOutOfSync(a,r)){this.client.logger.info(`Discarding out of sync request - ${r}`);return}this.isValidEmit(sN({topic:e},i)),this.client.events.emit("session_event",{id:r,topic:e,params:i}),is.set(n,r)}catch(n){await this.sendError({id:r,topic:e,error:n}),this.client.logger.error(n)}},this.onSessionAuthenticateResponse=(e,n)=>{let{id:r}=n;this.client.logger.trace({type:"method",method:"onSessionAuthenticateResponse",topic:e,payload:n}),(0,il.isJsonRpcResult)(n)?this.events.emit(ex("session_request",r),{result:n.result}):(0,il.isJsonRpcError)(n)&&this.events.emit(ex("session_request",r),{error:n.error})},this.onSessionAuthenticateRequest=async(e,n)=>{try{let{requester:r,authPayload:i,expiryTimestamp:a}=n.params,o=rS(JSON.stringify(n)),s=await this.getVerifyContext(o,this.client.metadata),f={requester:r,pairingTopic:e,id:n.id,authPayload:i,verifyContext:s,expiryTimestamp:a};await this.setAuthRequest(n.id,{request:f,pairingTopic:e}),this.client.events.emit("session_authenticate",{topic:e,params:n.params,id:n.id,verifyContext:s})}catch(a){this.client.logger.error(a);let r=n.params.requester.publicKey,i=await this.client.core.crypto.generateKeyPair();await this.sendError({id:n.id,topic:e,error:a,encodeOpts:{type:1,receiverPublicKey:r,senderPublicKey:i},rpcOpts:sg.wc_sessionAuthenticate.autoReject})}},this.addSessionRequestToSessionRequestQueue=e=>{this.sessionRequestQueue.queue.push(e)},this.cleanupAfterResponse=e=>{this.deletePendingSessionRequest(e.response.id,{message:"fulfilled",code:0}),setTimeout(()=>{this.sessionRequestQueue.state=sv.idle,this.processSessionRequestQueue()},(0,w.toMiliseconds)(this.requestQueueDelay))},this.cleanupPendingSentRequestsForTopic=({topic:e,error:n})=>{let r=this.client.core.history.pending;r.length>0&&r.filter(n=>n.topic===e&&"wc_sessionRequest"===n.request.method).forEach(e=>{let r=ex("session_request",e.request.id);if(0===this.events.listenerCount(r))throw Error(`emitting ${r} without any listeners`);this.events.emit(ex("session_request",e.request.id),{error:n})})},this.processSessionRequestQueue=()=>{if(this.sessionRequestQueue.state===sv.active){this.client.logger.info("session request queue is already active.");return}let e=this.sessionRequestQueue.queue[0];if(!e){this.client.logger.info("session request queue is empty.");return}try{this.sessionRequestQueue.state=sv.active,this.emitSessionRequest(e)}catch(e){this.client.logger.error(e)}},this.emitSessionRequest=e=>{this.client.events.emit("session_request",e)},this.onPairingCreated=e=>{if(e.methods&&this.expectedPairingMethodMap.set(e.topic,e.methods),e.active)return;let n=this.client.proposal.getAll().find(n=>n.pairingTopic===e.topic);
358n&&this.onSessionProposeRequest(e.topic,(0,il.formatJsonRpcRequest)("wc_sessionPropose",{requiredNamespaces:n.requiredNamespaces,optionalNamespaces:n.optionalNamespaces,relays:n.relays,proposer:n.proposer,sessionProperties:n.sessionProperties},n.id))},this.isValidConnect=async e=>{let n;if(!r9(e)){let{message:n}=rQ("MISSING_OR_INVALID",`connect() params: ${JSON.stringify(e)}`);throw Error(n)}let{pairingTopic:r,requiredNamespaces:i,optionalNamespaces:a,sessionProperties:o,relays:s}=e;if(rX(r)||await this.isValidPairingTopic(r),n=!1,s?s&&r$(s)&&s.length&&s.forEach(e=>{n=r8(e)}):n=!0,!n){let{message:e}=rQ("MISSING_OR_INVALID",`connect() relays: ${s}`);throw Error(e)}rX(i)||0===rJ(i)||this.validateNamespaces(i,"requiredNamespaces"),rX(a)||0===rJ(a)||this.validateNamespaces(a,"optionalNamespaces"),rX(o)||this.validateSessionProps(o,"sessionProperties")},this.validateNamespaces=(e,n)=>{let r=function(e,n,r){let i=null;if(e&&rJ(e)){let a;let o=r4(e,n);o&&(i=o);let s=(a=null,Object.entries(e).forEach(([e,i])=>{var o,s;let f;if(a)return;let l=(o=ee(e,i),s=`${n} ${r}`,f=null,r$(o)&&o.length?o.forEach(e=>{f||r6(e)||(f=rK("UNSUPPORTED_CHAINS",`${s}, chain ${e} should be a string and conform to "namespace:chainId" format`))}):r6(e)||(f=rK("UNSUPPORTED_CHAINS",`${s}, chains must be defined as "namespace:chainId" e.g. "eip155:1": {...} in the namespace key OR as an array of CAIP-2 chainIds e.g. eip155: { chains: ["eip155:1", "eip155:5"] }`)),f);l&&(a=l)}),a);s&&(i=s)}else i=rQ("MISSING_OR_INVALID",`${n}, ${r} should be an object with data`);return i}(e,"connect()",n);if(r)throw Error(r.message)},this.isValidApprove=async e=>{if(!r9(e))throw Error(rQ("MISSING_OR_INVALID",`approve() params: ${e}`).message);let{id:n,namespaces:r,relayProtocol:i,sessionProperties:a}=e;this.checkRecentlyDeleted(n),await this.isValidProposalId(n);let o=this.client.proposal.get(n),s=r3(r,"approve()");if(s)throw Error(s.message);let f=ie(o.requiredNamespaces,r,"approve()");if(f)throw Error(f.message);if(!r0(i,!0)){let{message:e}=rQ("MISSING_OR_INVALID",`approve() relayProtocol: ${i}`);throw Error(e)}rX(a)||this.validateSessionProps(a,"sessionProperties")},this.isValidReject=async e=>{if(!r9(e)){let{message:n}=rQ("MISSING_OR_INVALID",`reject() params: ${e}`);throw Error(n)}let{id:n,reason:r}=e;if(this.checkRecentlyDeleted(n),await this.isValidProposalId(n),!r||"object"!=typeof r||!r.code||!r1(r.code,!1)||!r.message||!r0(r.message,!1)){let{message:e}=rQ("MISSING_OR_INVALID",`reject() reason: ${JSON.stringify(r)}`);throw Error(e)}},this.isValidSessionSettleRequest=e=>{let n;if(!r9(e)){let{message:n}=rQ("MISSING_OR_INVALID",`onSessionSettleRequest() params: ${e}`);throw Error(n)}let{relay:r,controller:i,namespaces:a,expiry:o}=e;if(!r8(r)){let{message:e}=rQ("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string");throw Error(e)}let s=(n=null,r0(i?.publicKey,!1)||(n=rQ("MISSING_OR_INVALID","onSessionSettleRequest() controller public key should be a string")),n);if(s)throw Error(s.message);let f=r3(a,"onSessionSettleRequest()");if(f)throw Error(f.message);if(ew(o)){let{message:e}=rQ("EXPIRED","onSessionSettleRequest()");throw Error(e)}},this.isValidUpdate=async e=>{if(!r9(e)){let{message:n}=rQ("MISSING_OR_INVALID",`update() params: ${e}`);throw Error(n)}let{topic:n,namespaces:r}=e;this.checkRecentlyDeleted(n),await this.isValidSessionTopic(n);let i=this.client.session.get(n),a=r3(r,"update()");if(a)throw Error(a.message);let o=ie(i.requiredNamespaces,r,"update()");if(o)throw Error(o.message)},this.isValidExtend=async e=>{if(!r9(e)){let{message:n}=rQ("MISSING_OR_INVALID",`extend() params: ${e}`);throw Error(n)}let{topic:n}=e;this.checkRecentlyDeleted(n),await this.isValidSessionTopic(n)},this.isValidRequest=async e=>{var n;if(!r9(e)){let{message:n}=rQ("MISSING_OR_INVALID",`request() params: ${e}`);throw Error(n)}let{topic:r,request:i,chainId:a,expiry:o}=e;this.checkRecentlyDeleted(r),await this.isValidSessionTopic(r);let{namespaces:s}=this.client.session.get(r);if(!r7(s,a)){let{message:e}=rQ("MISSING_OR_INVALID",`request() chainId: ${a}`);throw Error(e)}if(rX(i)||!r0(i.method,!1)){let{message:e}=rQ("MISSING_OR_INVALID",`request() ${JSON.stringify(i)}`);throw Error(e)}if(!(r0(n=i.method,!1)&&(function(e,n){let r=[];
358return Object.values(e).forEach(e=>{rG(e.accounts).includes(n)&&r.push(...e.methods)}),r})(s,a).includes(n))){let{message:e}=rQ("MISSING_OR_INVALID",`request() method: ${i.method}`);throw Error(e)}if(o&&!ir(o,sb)){let{message:e}=rQ("MISSING_OR_INVALID",`request() expiry: ${o}. Expiry must be a number (in seconds) between ${sb.min} and ${sb.max}`);throw Error(e)}},this.isValidRespond=async e=>{var n;if(!r9(e)){let{message:n}=rQ("MISSING_OR_INVALID",`respond() params: ${e}`);throw Error(n)}let{topic:r,response:i}=e;try{await this.isValidSessionTopic(r)}catch(r){throw null!=(n=e?.response)&&n.id&&this.cleanupAfterResponse(e),r}if(rX(i)||rX(i.result)&&rX(i.error)||!r1(i.id,!1)||!r0(i.jsonrpc,!1)){let{message:e}=rQ("MISSING_OR_INVALID",`respond() response: ${JSON.stringify(i)}`);throw Error(e)}},this.isValidPing=async e=>{if(!r9(e)){let{message:n}=rQ("MISSING_OR_INVALID",`ping() params: ${e}`);throw Error(n)}let{topic:n}=e;await this.isValidSessionOrPairingTopic(n)},this.isValidEmit=async e=>{var n;if(!r9(e)){let{message:n}=rQ("MISSING_OR_INVALID",`emit() params: ${e}`);throw Error(n)}let{topic:r,event:i,chainId:a}=e;await this.isValidSessionTopic(r);let{namespaces:o}=this.client.session.get(r);if(!r7(o,a)){let{message:e}=rQ("MISSING_OR_INVALID",`emit() chainId: ${a}`);throw Error(e)}if(rX(i)||!r0(i.name,!1)){let{message:e}=rQ("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(i)}`);throw Error(e)}if(!(r0(n=i.name,!1)&&(function(e,n){let r=[];return Object.values(e).forEach(e=>{rG(e.accounts).includes(n)&&r.push(...e.events)}),r})(o,a).includes(n))){let{message:e}=rQ("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(i)}`);throw Error(e)}},this.isValidDisconnect=async e=>{if(!r9(e)){let{message:n}=rQ("MISSING_OR_INVALID",`disconnect() params: ${e}`);throw Error(n)}let{topic:n}=e;await this.isValidSessionOrPairingTopic(n)},this.isValidAuthenticate=e=>{let{chains:n,uri:r,domain:i,nonce:a}=e;if(!Array.isArray(n)||0===n.length)throw Error("chains is required and must be a non-empty array");if(!r0(r,!1))throw Error("uri is required parameter");if(!r0(i,!1))throw Error("domain is required parameter");if(!r0(a,!1))throw Error("nonce is required parameter");if([...new Set(n.map(e=>X(e).namespace))].length>1)throw Error("Multi-namespace requests are not supported. Please request single namespace only.");let{namespace:o}=X(n[0]);if("eip155"!==o)throw Error("Only eip155 namespace is supported for authenticated sessions. Please use .connect() for non-eip155 chains.")},this.getVerifyContext=async(e,n)=>{let r={verified:{verifyUrl:n.verifyUrl||aw,validation:"UNKNOWN",origin:n.url||""}};try{let i=await this.client.core.verify.resolve({attestationId:e,verifyUrl:n.verifyUrl});i&&(r.verified.origin=i.origin,r.verified.isScam=i.isScam,r.verified.validation=i.origin===new URL(n.url).origin?"VALID":"INVALID")}catch(e){this.client.logger.info(e)}return this.client.logger.info(`Verify context: ${JSON.stringify(r)}`),r},this.validateSessionProps=(e,n)=>{Object.values(e).forEach(e=>{if(!r0(e,!1)){let{message:r}=rQ("MISSING_OR_INVALID",`${n} must be in Record<string, string> format. Received: ${JSON.stringify(e)}`);throw Error(r)}})},this.getPendingAuthRequest=e=>{let n=this.client.auth.requests.get(e);return"object"==typeof n?n:void 0},this.addToRecentlyDeleted=(e,n)=>{if(this.recentlyDeletedMap.set(e,n),this.recentlyDeletedMap.size>=this.recentlyDeletedLimit){let e=0,n=this.recentlyDeletedLimit/2;for(let r of this.recentlyDeletedMap.keys()){if(e++>=n)break;this.recentlyDeletedMap.delete(r)}}},this.checkRecentlyDeleted=e=>{let n=this.recentlyDeletedMap.get(e);if(n){let{message:r}=rQ("MISSING_OR_INVALID",`Record was recently deleted - ${n}: ${e}`);throw Error(r)}}}async isInitialized(){if(!this.initialized){let{message:e}=rQ("NOT_INITIALIZED",this.name);throw Error(e)}await this.client.core.relayer.confirmOnlineStateOrThrow()}registerRelayerEvents(){this.client.core.relayer.on(ac.message,e=>{!this.initialized||this.relayMessageCache.length>0?this.relayMessageCache.push(e):this.onRelayMessage(e)})}async onRelayMessage(e){let{topic:n,message:r}=e,{publicKey:i}=this.client.auth.authKeys.keys.includes(sT)?this.client.auth.authKeys.get(sT):{responseTopic:void 0,publicKey:void 0},a=await this.client.core.crypto.decode(n,r,{receiverPublicKey:i});
358try{(0,il.isJsonRpcRequest)(a)?(this.client.core.history.set(n,a),this.onRelayEventRequest({topic:n,payload:a})):(0,il.isJsonRpcResponse)(a)?(await this.client.core.history.resolve(a),await this.onRelayEventResponse({topic:n,payload:a}),this.client.core.history.delete(n,a.id)):this.onRelayEventUnknownPayload({topic:n,payload:a})}catch(e){this.client.logger.error(e)}}registerExpirerEvents(){this.client.core.expirer.on(ab.expired,async e=>{let{topic:n,id:r}=eb(e.target);return r&&this.client.pendingRequest.keys.includes(r)?await this.deletePendingSessionRequest(r,rQ("EXPIRED"),!0):r&&this.client.auth.requests.keys.includes(r)?await this.deletePendingAuthRequest(r,rQ("EXPIRED"),!0):void(n?this.client.session.keys.includes(n)&&(await this.deleteSession({topic:n,expirerHasDeleted:!0}),this.client.events.emit("session_expire",{topic:n})):r&&(await this.deleteProposal(r,!0),this.client.events.emit("proposal_expire",{id:r})))})}registerPairingEvents(){this.client.core.pairing.events.on(am.create,e=>this.onPairingCreated(e)),this.client.core.pairing.events.on(am.delete,e=>{this.addToRecentlyDeleted(e.topic,"pairing")})}isValidPairingTopic(e){if(!r0(e,!1)){let{message:n}=rQ("MISSING_OR_INVALID",`pairing topic should be a string: ${e}`);throw Error(n)}if(!this.client.core.pairing.pairings.keys.includes(e)){let{message:n}=rQ("NO_MATCHING_KEY",`pairing topic doesn't exist: ${e}`);throw Error(n)}if(ew(this.client.core.pairing.pairings.get(e).expiry)){let{message:n}=rQ("EXPIRED",`pairing topic: ${e}`);throw Error(n)}}async isValidSessionTopic(e){if(!r0(e,!1)){let{message:n}=rQ("MISSING_OR_INVALID",`session topic should be a string: ${e}`);throw Error(n)}if(this.checkRecentlyDeleted(e),!this.client.session.keys.includes(e)){let{message:n}=rQ("NO_MATCHING_KEY",`session topic doesn't exist: ${e}`);throw Error(n)}if(ew(this.client.session.get(e).expiry)){await this.deleteSession({topic:e});let{message:n}=rQ("EXPIRED",`session topic: ${e}`);throw Error(n)}if(!this.client.core.crypto.keychain.has(e)){let{message:n}=rQ("MISSING_OR_INVALID",`session topic does not exist in keychain: ${e}`);throw await this.deleteSession({topic:e}),Error(n)}}async isValidSessionOrPairingTopic(e){if(this.checkRecentlyDeleted(e),this.client.session.keys.includes(e))await this.isValidSessionTopic(e);else if(this.client.core.pairing.pairings.keys.includes(e))this.isValidPairingTopic(e);else if(r0(e,!1)){let{message:n}=rQ("NO_MATCHING_KEY",`session or pairing topic doesn't exist: ${e}`);throw Error(n)}else{let{message:n}=rQ("MISSING_OR_INVALID",`session or pairing topic should be a string: ${e}`);throw Error(n)}}async isValidProposalId(e){if("number"!=typeof e){let{message:n}=rQ("MISSING_OR_INVALID",`proposal id should be a number: ${e}`);throw Error(n)}if(!this.client.proposal.keys.includes(e)){let{message:n}=rQ("NO_MATCHING_KEY",`proposal id doesn't exist: ${e}`);throw Error(n)}if(ew(this.client.proposal.get(e).expiryTimestamp)){await this.deleteProposal(e);let{message:n}=rQ("EXPIRED",`proposal id: ${e}`);throw Error(n)}}}class s_ extends aK{constructor(e,n){super(e,n,"proposal",sp),this.core=e,this.logger=n}}class sO extends aK{constructor(e,n){super(e,n,"session",sp),this.core=e,this.logger=n}}class sP extends aK{constructor(e,n){super(e,n,"request",sp,e=>e.id),this.core=e,this.logger=n}}class sL extends aK{constructor(e,n){super(e,n,"authKeys",sx,()=>sT),this.core=e,this.logger=n}}class sR extends aK{constructor(e,n){super(e,n,"pairingTopics",sx),this.core=e,this.logger=n}}class sz extends aK{constructor(e,n){super(e,n,"requests",sx,e=>e.id),this.core=e,this.logger=n}}class sB{constructor(e,n){this.core=e,this.logger=n,this.authKeys=new sL(this.core,this.logger),this.pairingTopics=new sR(this.core,this.logger),this.requests=new sz(this.core,this.logger)}
358async init(){await this.authKeys.init(),await this.pairingTopics.init(),await this.requests.init()}}class sU extends R{constructor(e){super(e),this.protocol="wc",this.version=2,this.name=sh.name,this.events=new o.EventEmitter,this.on=(e,n)=>this.events.on(e,n),this.once=(e,n)=>this.events.once(e,n),this.off=(e,n)=>this.events.off(e,n),this.removeListener=(e,n)=>this.events.removeListener(e,n),this.removeAllListeners=e=>this.events.removeAllListeners(e),this.connect=async e=>{try{return await this.engine.connect(e)}catch(e){throw this.logger.error(e.message),e}},this.pair=async e=>{try{return await this.engine.pair(e)}catch(e){throw this.logger.error(e.message),e}},this.approve=async e=>{try{return await this.engine.approve(e)}catch(e){throw this.logger.error(e.message),e}},this.reject=async e=>{try{return await this.engine.reject(e)}catch(e){throw this.logger.error(e.message),e}},this.update=async e=>{try{return await this.engine.update(e)}catch(e){throw this.logger.error(e.message),e}},this.extend=async e=>{try{return await this.engine.extend(e)}catch(e){throw this.logger.error(e.message),e}},this.request=async e=>{try{return await this.engine.request(e)}catch(e){throw this.logger.error(e.message),e}},this.respond=async e=>{try{return await this.engine.respond(e)}catch(e){throw this.logger.error(e.message),e}},this.ping=async e=>{try{return await this.engine.ping(e)}catch(e){throw this.logger.error(e.message),e}},this.emit=async e=>{try{return await this.engine.emit(e)}catch(e){throw this.logger.error(e.message),e}},this.disconnect=async e=>{try{return await this.engine.disconnect(e)}catch(e){throw this.logger.error(e.message),e}},this.find=e=>{try{return this.engine.find(e)}catch(e){throw this.logger.error(e.message),e}},this.getPendingSessionRequests=()=>{try{return this.engine.getPendingSessionRequests()}catch(e){throw this.logger.error(e.message),e}},this.authenticate=async e=>{try{return await this.engine.authenticate(e)}catch(e){throw this.logger.error(e.message),e}},this.formatAuthMessage=e=>{try{return this.engine.formatAuthMessage(e)}catch(e){throw this.logger.error(e.message),e}},this.approveSessionAuthenticate=async e=>{try{return await this.engine.approveSessionAuthenticate(e)}catch(e){throw this.logger.error(e.message),e}},this.rejectSessionAuthenticate=async e=>{try{return await this.engine.rejectSessionAuthenticate(e)}catch(e){throw this.logger.error(e.message),e}},this.name=e?.name||sh.name,this.metadata=e?.metadata||(0,Z.D)()||{name:"",description:"",url:"",icons:[""]},this.signConfig=e?.signConfig;let n="u">typeof e?.logger&&"string"!=typeof e?.logger?e.logger:(0,E.gw)((0,E.jI)({level:e?.logger||sh.logger}));this.core=e?.core||new a9(e),this.logger=(0,E.Ep)(n,this.name),this.session=new sO(this.core,this.logger),this.proposal=new s_(this.core,this.logger),this.pendingRequest=new sP(this.core,this.logger),this.engine=new sD(this),this.auth=new sB(this.core,this.logger)}static async init(e){let n=new sU(e);return await n.initialize(),n}get context(){return(0,E.Fd)(this.logger)}get pairing(){return this.core.pairing.pairings}async initialize(){this.logger.trace("Initialized");try{await this.core.start(),await this.session.init(),await this.proposal.init(),await this.pendingRequest.init(),await this.engine.init(),await this.auth.init(),this.core.verify.init({verifyUrl:this.metadata.verifyUrl}),this.logger.info("SignClient Initialization Success"),this.engine.processRelayMessageCache()}catch(e){throw this.logger.info("SignClient Initialization Failure"),this.logger.error(e.message),e}}}var sF,sZ,sW,sH,sG,sq,sY,sV,sQ,sK,s$,sJ,sX={exports:{}},s0="object"==typeof Reflect?Reflect:null,s1=s0&&"function"==typeof s0.apply?s0.apply:function(e,n,r){return Function.prototype.apply.call(e,n,r)};sJ=s0&&"function"==typeof s0.ownKeys?s0.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s6=Number.isNaN||function(e){return e!=e};function s5(){s5.init.call(this)}sX.exports=s5,sX.exports.once=function(e,n){return new Promise(function(r,i){var a;function o(r){e.removeListener(n,s),i(r)}function s(){"function"==typeof e.removeListener&&e.removeListener("error",o),r([].slice.call(arguments))}fr(e,n,s,{once:!0}),"error"!==n&&(a={once:!0},"function"==typeof e.on&&fr(e,"error",o,a))})},s5.EventEmitter=s5,s5.prototype._events=void 0,s5.prototype._eventsCount=0,s5.prototype._maxListeners=void 0;var s2=10;function s4(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function s3(e){return void 0===e._maxListeners?s5.defaultMaxListeners:e._maxListeners}function s8(e,n,r,i){var a,o,s;if(s4(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",n,r.listener?r.listener:r),o=e._events),s=o[n]),void 0===s)s=o[n]=r,++e._eventsCount;else if("function"==typeof s?s=o[n]=i?[r,s]:[s,r]:i?s.unshift(r):s.push(r),(a=s3(e))>0&&s.length>a&&!s.warned){s.warned=!0;var f=Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(n)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=e,f.type=n,f.count=s.length,console&&console.warn&&console.warn(f)}return e}function s9(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function s7(e,n,r){var i={fired:!1,wrapFn:void 0,target:e,type:n,listener:r},a=s9.bind(i);return a.listener=r,i.wrapFn=a,a}function fe(e,n,r){var i=e._events;if(void 0===i)return[];var a=i[n];return void 0===a?[]:"function"==typeof a?r?[a.listener||a]:[a]:r?function(e){for(var n=Array(e.length),r=0;r<n.length;++r)n[r]=e[r].listener||e[r];return n}(a):fn(a,a.length)}function ft(e){var n=this._events;if(void 0!==n){var r=n[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function fn(e,n){for(var r=Array(n),i=0;i<n;++i)r[i]=e[i];return r}function fr(e,n,r,i){if("function"==typeof e.on)i.once?e.once(n,r):e.on(n,r);else if("function"==typeof e.addEventListener)e.addEventListener(n,function a(o){i.once&&e.removeEventListener(n,a),r(o)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}Object.defineProperty(s5,"defaultMaxListeners",{enumerable:!0,get:function(){return s2},set:function(e){if("number"!=typeof e||e<0||s6(e))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s2=e}}),s5.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s5.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||s6(e))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s5.prototype.getMaxListeners=function(){return s3(this)},s5.prototype.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n.push(arguments[r]);var i="error"===e,a=this._events;if(void 0!==a)i=i&&void 0===a.error;else if(!i)return!1;if(i){if(n.length>0&&(o=n[0]),o instanceof Error)throw o;var o,s=Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var f=a[e];if(void 0===f)return!1;if("function"==typeof f)s1(f,this,n);else for(var l=f.length,u=fn(f,l),r=0;r<l;++r)s1(u[r],this,n);return!0},s5.prototype.addListener=function(e,n){return s8(this,e,n,!1)},s5.prototype.on=s5.prototype.addListener,s5.prototype.prependListener=function(e,n){return s8(this,e,n,!0)},s5.prototype.once=function(e,n){return s4(n),this.on(e,s7(this,e,n)),this},s5.prototype.prependOnceListener=function(e,n){return s4(n),this.prependListener(e,s7(this,e,n)),this},s5.prototype.removeListener=function(e,n){var r,i,a,o,s;if(s4(n),void 0===(i=this._events)||void 0===(r=i[e]))return this;if(r===n||r.listener===n)0==--this._eventsCount?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit
358("removeListener",e,r.listener||n));else if("function"!=typeof r){for(a=-1,o=r.length-1;o>=0;o--)if(r[o]===n||r[o].listener===n){s=r[o].listener,a=o;break}if(a<0)return this;0===a?r.shift():function(e,n){for(;n+1<e.length;n++)e[n]=e[n+1];e.pop()}(r,a),1===r.length&&(i[e]=r[0]),void 0!==i.removeListener&&this.emit("removeListener",e,s||n)}return this},s5.prototype.off=s5.prototype.removeListener,s5.prototype.removeAllListeners=function(e){var n,r,i;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0==arguments.length){var a,o=Object.keys(r);for(i=0;i<o.length;++i)"removeListener"!==(a=o[i])&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(n=r[e]))this.removeListener(e,n);else if(void 0!==n)for(i=n.length-1;i>=0;i--)this.removeListener(e,n[i]);return this},s5.prototype.listeners=function(e){return fe(this,e,!0)},s5.prototype.rawListeners=function(e){return fe(this,e,!1)},s5.listenerCount=function(e,n){return"function"==typeof e.listenerCount?e.listenerCount(n):ft.call(e,n)},s5.prototype.listenerCount=ft,s5.prototype.eventNames=function(){return this._eventsCount>0?sJ(this._events):[]};class fi{constructor(e){this.opts=e}}class fa{constructor(e){this.client=e}}var fo=Object.defineProperty,fs=Object.defineProperties,ff=Object.getOwnPropertyDescriptors,fl=Object.getOwnPropertySymbols,fu=Object.prototype.hasOwnProperty,fc=Object.prototype.propertyIsEnumerable,fd=(e,n,r)=>n in e?fo(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,fp=(e,n)=>{for(var r in n||(n={}))fu.call(n,r)&&fd(e,r,n[r]);if(fl)for(var r of fl(n))fc.call(n,r)&&fd(e,r,n[r]);return e},fh=(e,n)=>fs(e,ff(n));class fy extends fa{constructor(e){super(e),this.init=async()=>{this.signClient=await sU.init({core:this.client.core,metadata:this.client.metadata,signConfig:this.client.signConfig}),this.authClient=await sc.init({core:this.client.core,projectId:"",metadata:this.client.metadata})},this.pair=async e=>{await this.client.core.pairing.pair(e)},this.approveSession=async e=>{let{topic:n,acknowledged:r}=await this.signClient.approve(fh(fp({},e),{id:e.id,namespaces:e.namespaces,sessionProperties:e.sessionProperties,sessionConfig:e.sessionConfig}));return await r(),this.signClient.session.get(n)},this.rejectSession=async e=>await this.signClient.reject(e),this.updateSession=async e=>await this.signClient.update(e),this.extendSession=async e=>await this.signClient.extend(e),this.respondSessionRequest=async e=>await this.signClient.respond(e),this.disconnectSession=async e=>await this.signClient.disconnect(e),this.emitSessionEvent=async e=>await this.signClient.emit(e),this.getActiveSessions=()=>this.signClient.session.getAll().reduce((e,n)=>(e[n.topic]=n,e),{}),this.getPendingSessionProposals=()=>this.signClient.proposal.getAll(),this.getPendingSessionRequests=()=>this.signClient.getPendingSessionRequests(),this.respondAuthRequest=async(e,n)=>await this.authClient.respond(e,n),this.getPendingAuthRequests=()=>this.authClient.requests.getAll().filter(e=>"requester"in e),this.formatMessage=(e,n)=>this.authClient.formatMessage(e,n),this.approveSessionAuthenticate=async e=>await this.signClient.approveSessionAuthenticate(e),this.rejectSessionAuthenticate=async e=>await this.signClient.rejectSessionAuthenticate(e),this.formatAuthMessage=e=>this.signClient.formatAuthMessage(e),this.registerDeviceToken=e=>this.client.core.echoClient.registerDeviceToken(e),this.on=(e,n)=>(this.setEvent(e,"off"),this.setEvent(e,"on"),this.client.events.on(e,n)),this.once=(e,n)=>(this.setEvent(e,"off"),this.setEvent(e,"once"),this.client.events.once(e,n)),this.off=(e,n)=>(this.setEvent(e,"off"),this.client.events.off(e,n)),this.removeListener=(e,n)=>(this.setEvent(e,"removeListener"),this.client.events.removeListener(e,n)),this.onSessionRequest=e=>{this.client.events.emit("session_request",e)},this.onSessionProposal=e=>{this.client.events.emit("session_proposal",e)},this.onSessionDelete=e=>{this.client.events.emit("session_delete",e)}
358,this.onAuthRequest=e=>{this.client.events.emit("auth_request",e)},this.onProposalExpire=e=>{this.client.events.emit("proposal_expire",e)},this.onSessionRequestExpire=e=>{this.client.events.emit("session_request_expire",e)},this.onSessionRequestAuthenticate=e=>{this.client.events.emit("session_authenticate",e)},this.setEvent=(e,n)=>{switch(e){case"session_request":this.signClient.events[n]("session_request",this.onSessionRequest);break;case"session_proposal":this.signClient.events[n]("session_proposal",this.onSessionProposal);break;case"session_delete":this.signClient.events[n]("session_delete",this.onSessionDelete);break;case"auth_request":this.authClient[n]("auth_request",this.onAuthRequest);break;case"proposal_expire":this.signClient.events[n]("proposal_expire",this.onProposalExpire);break;case"session_request_expire":this.signClient.events[n]("session_request_expire",this.onSessionRequestExpire);break;case"session_authenticate":this.signClient.events[n]("session_authenticate",this.onSessionRequestAuthenticate)}},this.signClient={},this.authClient={}}}let fm=class extends fi{constructor(e){super(e),this.events=new sX.exports,this.on=(e,n)=>this.engine.on(e,n),this.once=(e,n)=>this.engine.once(e,n),this.off=(e,n)=>this.engine.off(e,n),this.removeListener=(e,n)=>this.engine.removeListener(e,n),this.pair=async e=>{try{return await this.engine.pair(e)}catch(e){throw this.logger.error(e.message),e}},this.approveSession=async e=>{try{return await this.engine.approveSession(e)}catch(e){throw this.logger.error(e.message),e}},this.rejectSession=async e=>{try{return await this.engine.rejectSession(e)}catch(e){throw this.logger.error(e.message),e}},this.updateSession=async e=>{try{return await this.engine.updateSession(e)}catch(e){throw this.logger.error(e.message),e}},this.extendSession=async e=>{try{return await this.engine.extendSession(e)}catch(e){throw this.logger.error(e.message),e}},this.respondSessionRequest=async e=>{try{return await this.engine.respondSessionRequest(e)}catch(e){throw this.logger.error(e.message),e}},this.disconnectSession=async e=>{try{return await this.engine.disconnectSession(e)}catch(e){throw this.logger.error(e.message),e}},this.emitSessionEvent=async e=>{try{return await this.engine.emitSessionEvent(e)}catch(e){throw this.logger.error(e.message),e}},this.getActiveSessions=()=>{try{return this.engine.getActiveSessions()}catch(e){throw this.logger.error(e.message),e}},this.getPendingSessionProposals=()=>{try{return this.engine.getPendingSessionProposals()}catch(e){throw this.logger.error(e.message),e}},this.getPendingSessionRequests=()=>{try{return this.engine.getPendingSessionRequests()}catch(e){throw this.logger.error(e.message),e}},this.respondAuthRequest=async(e,n)=>{try{return await this.engine.respondAuthRequest(e,n)}catch(e){throw this.logger.error(e.message),e}},this.getPendingAuthRequests=()=>{try{return this.engine.getPendingAuthRequests()}catch(e){throw this.logger.error(e.message),e}},this.formatMessage=(e,n)=>{try{return this.engine.formatMessage(e,n)}catch(e){throw this.logger.error(e.message),e}},this.registerDeviceToken=e=>{try{return this.engine.registerDeviceToken(e)}catch(e){throw this.logger.error(e.message),e}},this.approveSessionAuthenticate=e=>{try{return this.engine.approveSessionAuthenticate(e)}catch(e){throw this.logger.error(e.message),e}},this.rejectSessionAuthenticate=e=>{try{return this.engine.rejectSessionAuthenticate(e)}catch(e){throw this.logger.error(e.message),e}},this.formatAuthMessage=e=>{try{return this.engine.formatAuthMessage(e)}catch(e){throw this.logger.error(e.message),e}},this.metadata=e.metadata,this.name=e.name||"Web3Wallet",this.signConfig=e.signConfig,this.core=e.core,this.logger=this.core.logger,this.engine=new fy(this)}static async init(e){let n=new fm(e);return await n.initialize(),n}async initialize(){this.logger.trace("Initialized");try{await this.engine.init(),this.logger.info("Web3Wallet Initialization Success")}catch(e){throw this.logger.info("Web3Wallet Initialization Failure"),this.logger.error(e.message),e}}};fm.notifications={decryptMessage:async e=>{let n={core:new a9({storageOptions:e.storageOptions,storage:e.storage})};await n.core.crypto.init();let r=n.core.crypto.decode(e.topic,e.encryptedMessage);return n.core=null,r},getMetadata:async e=>{let n={core:new a9({storageOptions:e.storageOptions,storage:e.storage}),sessionStore:null};n.sessionStore=new sO(n.core,n.core.logger),await n.sessionStore.init(
358);let r=n.sessionStore.get(e.topic),i=r?.peer.metadata;return n.core=null,n.sessionStore=null,i}};var fg=r(16441),fb=r(19485),fv=r(29251),fw=r(65007),fx=r(8203);r(17191),r(29472),r(4183);var fT=r(46795),fC=r(27021),fM=r(57334),fA=r(85560),fE=r(98294);r(35124);class fI extends fM.a{get walletName(){return"OKX"}constructor(e){super(fI.id,e),this.isInjected=!!(0,fE.g)()}async getConnector(){if(!this.connector){if(this.isInjected){let{OKXConnector:e}=await r.e(48586).then(r.bind(r,48586));this.OKXConnector=new e({chains:this.chains,connectorStorage:this.walletStorage,options:{shimDisconnect:!0}}),this.connector=new fC.W(this.OKXConnector)}else{let{WalletConnectConnector:e}=await r.e(76044).then(r.bind(r,76044)),n=new e({chains:this.chains,options:{projectId:this.options?.projectId||fx.T,storage:this.walletStorage,qrcode:this.options?.qrcode,dappMetadata:this.dappMetadata,qrModalOptions:this.options?.qrModalOptions}});n.getProvider().then(e=>{e.signer.client.on("session_request_sent",()=>{this.emit("wc_session_request_sent")})}),this.walletConnectConnector=n,this.connector=new fC.W(n)}}return this.connector}async connectWithQrCode(e){await this.getConnector();let n=this.walletConnectConnector;if(!n)throw Error("WalletConnect connector not found");(await n.getProvider()).on("display_uri",n=>{e.onQrCodeUri(n)}),this.connect({chainId:e.chainId}).then(e.onConnected)}}(0,fT._)(fI,"id",fA.w.okx);var fS=r(21064);class fk extends fM.a{get walletName(){return"Core wallet"}constructor(e){super(fk.id,e),this.isInjected=!!(0,fS.g)()}async getConnector(){if(!this.connector){if(this.isInjected){let{CoreWalletConnector:e}=await r.e(81311).then(r.bind(r,81311));this.CoreWalletConnector=new e({chains:this.chains,connectorStorage:this.walletStorage,options:{shimDisconnect:!0}}),this.connector=new fC.W(this.CoreWalletConnector)}else{let{WalletConnectConnector:e}=await r.e(76044).then(r.bind(r,76044)),n=new e({chains:this.chains,options:{projectId:this.options?.projectId||fx.T,storage:this.walletStorage,qrcode:this.options?.qrcode,dappMetadata:this.dappMetadata,qrModalOptions:this.options?.qrModalOptions}});n.getProvider().then(e=>{e.signer.client.on("session_request_sent",()=>{this.emit("wc_session_request_sent")})}),this.walletConnectConnector=n,this.connector=new fC.W(n)}}return this.connector}async connectWithQrCode(e){await this.getConnector();let n=this.walletConnectConnector;if(!n)throw Error("WalletConnect connector not found");(await n.getProvider()).on("display_uri",n=>{e.onQrCodeUri(n)}),this.connect({chainId:e.chainId}).then(e.onConnected)}}(0,fT._)(fk,"id",fA.w.coreWallet);var fN=r(61762);class fj extends fM.a{get walletName(){return"OneKey wallet"}constructor(e){super(fj.id,e),this.isInjected=!!(0,fN.g)()}async getConnector(){if(!this.connector){if(this.isInjected){let{OneKeyConnector:e}=await r.e(82067).then(r.bind(r,82067));this.OneKeyConnector=new e({chains:this.chains,connectorStorage:this.walletStorage,options:{shimDisconnect:!0}}),this.connector=new fC.W(this.OneKeyConnector)}else{let{WalletConnectConnector:e}=await r.e(76044).then(r.bind(r,76044)),n=new e({chains:this.chains,options:{projectId:this.options?.projectId||fx.T,storage:this.walletStorage,qrcode:this.options?.qrcode,dappMetadata:this.dappMetadata,qrModalOptions:this.options?.qrModalOptions}});n.getProvider().then(e=>{e.signer.client.on("session_request_sent",()=>{this.emit("wc_session_request_sent")})}),this.walletConnectConnector=n,this.connector=new fC.W(n)}}return this.connector}async connectWithQrCode(e){await this.getConnector();let n=this.walletConnectConnector;if(!n)throw Error("WalletConnect connector not found");(await n.getProvider()).on("display_uri",n=>{e.onQrCodeUri(n)}),this.connect({chainId:e.chainId}).then(e.onConnected)}}(0,fT._)(fj,"id",fA.w.oneKey);var fD=r(10286);class f_ extends fM.a{get walletName(){return"Crypto Defi wallet"}constructor(e){super(f_.id,e),this.isInjected=!!(0,fD.g)()}async getConnector(){if(!this.connector){if(this.isInjected){let{CryptoDefiWalletConnector:e}=await r.e(10338).then(r.bind(r,10338));this.CryptoDefiWalletConnector=new e({chains:this.chains,connectorStorage:this.walletStorage,options:{shimDisconnect:!0}}),this.connector=new fC.W(this.CryptoDefiWalletConnector)}else{let{WalletConnectConnector:e}=await r.e(76044).then(r.bind(r,76044)),n=new e({chains:this.chains,options:{projectId:this.options?.projectId||fx.T,storage:this.walletStorage,qrcode:this.options?.qrcode,dappMetadata:this.dappMetadata,qrModalOptions:this.options?.qrModalOptions}});n.getProvider().then(e=>{e.signer.client.on("session_request_sent",()=>
358{this.emit("wc_session_request_sent")})}),this.walletConnectConnector=n,this.connector=new fC.W(n)}}return this.connector}async connectWithQrCode(e){await this.getConnector();let n=this.walletConnectConnector;if(!n)throw Error("WalletConnect connector not found");(await n.getProvider()).on("display_uri",n=>{e.onQrCodeUri(n)}),this.connect({chainId:e.chainId}).then(e.onConnected)}}(0,fT._)(f_,"id",fA.w.cryptoDefiWallet);var fO=r(85262);class fP extends fM.a{get walletName(){return"Rabby wallet"}constructor(e){super(fP.id,e),this.isInjected=!!(0,fO.g)()}async getConnector(){if(!this.connector){if(this.isInjected){let{RabbyConnector:e}=await r.e(98448).then(r.bind(r,98448));this.RabbyConnector=new e({chains:this.chains,connectorStorage:this.walletStorage,options:{shimDisconnect:!0}}),this.connector=new fC.W(this.RabbyConnector)}else{let{WalletConnectConnector:e}=await r.e(76044).then(r.bind(r,76044)),n=new e({chains:this.chains,options:{projectId:this.options?.projectId||fx.T,storage:this.walletStorage,qrcode:this.options?.qrcode,dappMetadata:this.dappMetadata,qrModalOptions:this.options?.qrModalOptions}});n.getProvider().then(e=>{e.signer.client.on("session_request_sent",()=>{this.emit("wc_session_request_sent")})}),this.walletConnectConnector=n,this.connector=new fC.W(n)}}return this.connector}async connectWithQrCode(e){await this.getConnector();let n=this.walletConnectConnector;if(!n)throw Error("WalletConnect connector not found");(await n.getProvider()).on("display_uri",n=>{e.onQrCodeUri(n)}),this.connect({chainId:e.chainId}).then(e.onConnected)}}(0,fT._)(fP,"id",fA.w.rabby);var fL=r(51367);class fR extends fM.a{get walletName(){return"Coin98 wallet"}constructor(e){super(fR.id,e),this.isInjected=!!(0,fL.g)()}async getConnector(){if(!this.connector){if(this.isInjected){let{Coin98Connector:e}=await r.e(64481).then(r.bind(r,64481));this.Coin98Connector=new e({chains:this.chains,connectorStorage:this.walletStorage,options:{shimDisconnect:!0}}),this.connector=new fC.W(this.Coin98Connector)}else{let{WalletConnectConnector:e}=await r.e(76044).then(r.bind(r,76044)),n=new e({chains:this.chains,options:{projectId:this.options?.projectId||fx.T,storage:this.walletStorage,qrcode:this.options?.qrcode,dappMetadata:this.dappMetadata,qrModalOptions:this.options?.qrModalOptions}});n.getProvider().then(e=>{e.signer.client.on("session_request_sent",()=>{this.emit("wc_session_request_sent")})}),this.walletConnectConnector=n,this.connector=new fC.W(n)}}return this.connector}async connectWithQrCode(e){await this.getConnector();let n=this.walletConnectConnector;if(!n)throw Error("WalletConnect connector not found");(await n.getProvider()).on("display_uri",n=>{e.onQrCodeUri(n)}),this.connect({chainId:e.chainId}).then(e.onConnected)}}(0,fT._)(fR,"id",fA.w.coin98),r(40531),r(42357),r(66006);var fz=r(24528);class fB extends fM.a{get walletName(){return"imToken"}constructor(e){super(fB.id,e),(0,fz.a)(globalThis.window)?this.isInjected=!!globalThis.window.ethereum?.isImToken:this.isInjected=!1}async getConnector(){if(!this.connector){if(this.isInjected){let{ImTokenConnector:e}=await r.e(48175).then(r.bind(r,48175)),n=new e({chains:this.chains,connectorStorage:this.walletStorage,options:{shimDisconnect:!0}});this.imtokenConnector=n,this.connector=new fC.W(n)}else{let{WalletConnectConnector:e}=await r.e(76044).then(r.bind(r,76044)),n=new e({chains:this.chains,options:{projectId:this.options?.projectId||fx.T,storage:this.walletStorage,qrcode:this.options?.qrcode,dappMetadata:this.dappMetadata,qrModalOptions:this.options?.qrModalOptions}});n.getProvider().then(e=>{e.signer.client.on("session_request_sent",()=>{this.emit("wc_session_request_sent")})}),this.walletConnectConnector=n,this.connector=new fC.W(n)}}return this.connector}async connectWithQrCode(e){await this.getConnector();let n=this.walletConnectConnector;if(!n)throw Error("WalletConnect connector not found");(await n.getProvider()).on("display_uri",n=>{e.onQrCodeUri(n)}),this.connect({chainId:e.chainId}).then(e.onConnected)}}(0,fT._)(fB,"meta",{name:"imToken",iconURL:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODAiIGhlaWdodD0iODAiIHZpZXdCb3g9IjAgMCA4MCA4MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzIyMl80NzgzKSI+CjxtY
358XNrIGlkPSJtYXNrMF8yMjJfNDc4MyIgc3R5bGU9Im1hc2stdHlwZTpsdW1pbmFuY2UiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHg9IjAiIHk9IjAiIHdpZHRoPSI4MCIgaGVpZ2h0PSI4MCI+CjxwYXRoIGQ9Ik03OS44OTQ4IDBIMC4wNTA3ODEyVjgwSDc5Ljg5NDhWMFoiIGZpbGw9IndoaXRlIi8+CjwvbWFzaz4KPGcgbWFzaz0idXJsKCNtYXNrMF8yMjJfNDc4MykiPgo8cGF0aCBkPSJNNjIuMDI3NSAwSDE4LjA1MDlDOC4xNDYzOSAwIDAuMTE3MTg4IDguMDQ0ODggMC4xMTcxODggMTcuOTY4OFY2Mi4wMzEyQzAuMTE3MTg4IDcxLjk1NTEgOC4xNDYzOSA4MCAxOC4wNTA5IDgwSDYyLjAyNzVDNzEuOTMyIDgwIDc5Ljk2MTIgNzEuOTU1MSA3OS45NjEyIDYyLjAzMTJWMTcuOTY4OEM3OS45NjEyIDguMDQ0ODggNzEuOTMyIDAgNjIuMDI3NSAwWiIgZmlsbD0idXJsKCNwYWludDBfbGluZWFyXzIyMl80NzgzKSIvPgo8cGF0aCBkPSJNNjUuMDk4MSAyNC43MzNDNjYuNzU4NiA0Ny4yNjY3IDUyLjMwMjEgNTcuOTE3MiAzOS4zNDIzIDU5LjA1M0MyNy4yOTM1IDYwLjEwODcgMTUuOTUyIDUyLjY5MDggMTQuOTU3MSA0MS4yOTM2QzE0LjEzNjMgMzEuODc3NiAxOS45NDQ1IDI3Ljg2ODkgMjQuNTA4IDI3LjQ2OTRDMjkuMjAxNSAyNy4wNTcgMzMuMTQ1OCAzMC4zMDAxIDMzLjQ4NzkgMzQuMjI2OUMzMy44MTc1IDM4LjAwMiAzMS40NjY0IDM5LjcyMDUgMjkuODMxMyAzOS44NjM0QzI4LjUzODIgMzkuOTc3IDI2LjkxMTQgMzkuMTkwNSAyNi43NjQ1IDM3LjUwMTZDMjYuNjM4NSAzNi4wNTAzIDI3LjE4ODUgMzUuODUyNiAyNy4wNTQxIDM0LjMxMDlDMjYuODE0OSAzMS41NjYyIDI0LjQyNjEgMzEuMjQ2NiAyMy4xMTgzIDMxLjM2MDFDMjEuNTM1NyAzMS40OTkxIDE4LjY2NDEgMzMuMzQ5OCAxOS4wNjcgMzcuOTZDMTkuNDcyMiA0Mi42MTAxIDIzLjkyMjIgNDYuMjg0NSAyOS43NTU3IDQ1Ljc3MzRDMzYuMDUwOSA0NS4yMjIzIDQwLjQzMzcgNDAuMzExNCA0MC43NjM0IDMzLjQyMzRDNDAuNzYwMyAzMy4wNTg2IDQwLjgzNyAzMi42OTc1IDQwLjk4OCAzMi4zNjU1TDQwLjk5IDMyLjM1NzJDNDEuMDU3OCAzMi4yMTI4IDQxLjEzNzIgMzIuMDc0MiA0MS4yMjcyIDMxLjk0MjhDNDEuMzYxNiAzMS43NDA5IDQxLjUzMzggMzEuNTE4IDQxLjc1NjIgMzEuMjczOUM0MS43NTgzIDMxLjI2NzYgNDEuNzU4MyAzMS4yNjc2IDQxLjc2MjYgMzEuMjY3NkM0MS45MjQxIDMxLjA4NDcgNDIuMTE5NCAzMC44ODcgNDIuMzM5NyAzMC42NzQ1QzQ1LjA4OTcgMjguMDc1IDU0Ljk5MzEgMjEuOTQ0MiA2NC4zNTkyIDIzLjg4NTVDNjQuNTU3MyAyMy45MjggNjQuNzM2MSAyNC4wMzM0IDY0Ljg2OTMgMjQuMTg2MkM2NS4wMDI1IDI0LjMzOTEgNjUuMDgyNiAyNC41MzA4IDY1LjA5ODEgMjQuNzMzWiIgZmlsbD0id2hpdGUiLz4KPC9nPgo8L2c+CjxkZWZzPgo8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MF9saW5lYXJfMjIyXzQ3ODMiIHgxPSI3My41MDA5IiB5MT0iNS4zMTI1IiB4Mj0iMi44NzI0MSIgeTI9Ijc3LjY3NDciIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iIzExQzREMSIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMwMDYyQUQiLz4KPC9saW5lYXJHcmFkaWVudD4KPGNsaXBQYXRoIGlkPSJjbGlwMF8yMjJfNDc4MyI+CjxyZWN0IHdpZHRoPSI4MCIgaGVpZ2h0PSI4MCIgZmlsbD0id2hpdGUiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4=",urls:{ios:"https://itunes.apple.com/us/app/imtoken2/id1384798940",android:"https://play.google.com/store/apps/details?id=im.token.app"}}),(0,fT._)(fB,"id",fA.w.imtoken);class fU extends fM.a{get walletName(){return"Injected Wallet"}constructor(e){super(fU.id,e)}async getConnector(){if(!this.connector){let{InjectedConnector:e}=await r.e(95664).then(r.bind(r,95664));this.connector=new fC.W(new e({chains:this.chains,connectorStorage:this.walletStorage,options:{shimDisconnect:!0}}))}return this.connector}}(0,fT._)(fU,"id","injected"),r(80381),r(10748),r(70166);var fF=r(18949);class fZ extends fM.a{get walletName(){return"XDEFI"}constructor(e){super(fZ.id,e),this.isInjected=!!(0,fF.g)()}async getConnector(){if(!this.connector){let{XDEFIConnector:e}=await r.e(28722).then(r.bind(r,28722)),n=new e({chains:this.chains,connectorStorage:this.walletStorage,options:{shimDisconnect:!0}});this.connector=new fC.W(n)}return this.connector}}(0,fT._)(fZ,"id",fA.w.xdefi),r(35973),r(79911),r(2515),r(51758),r(36398);var fW=r(59577);r(20034),r(36901),r(44758);var fH=r(1832);r(51364);class fG extends fW.c9{get walletName(){return"Token Bound Smart Wallet"}constructor(e){super({...e,factoryAddress:e.registryAddress||fH.E}),this.tbaOptions=e}async getConnector(){if(!this.tbaConnector){let{TokenBoundSmartWalletConnector:e}=await Promise.all([r.e(85163),r.e(34363)]).then(r.bind(r,34363));this.tbaConnector=new e(this.tbaOptions)}return this.tbaConnector}}(0,fT._)(fG,"meta",{name:"Token Bound Smart Wallet",iconURL:"ipfs://QmeAJVqn17aDNQhjEU3kcWVZCFBrfta8LzaDGkS8Egdiyk/smart-wallet.svg"}),(0,fT._)(fG,"id",fA.w.tokenBoundSmartWallet);var fq=r(58750);class fY extends fM.a{get walletName(){return"Magic Eden"}constructor(e){super(fY.id,e),this.isInjected=!!(0,fq.g)()}async getConnector(){if(!this.connector){let{MagicEdenConnector:e}=await r.e(81030).then(r.bind(r,81030)),n=new e({chains:this.chains,connectorStorage:this.walletStorage,options:{shimDisconnect:!0}});this.connector=new fC.W(n)}return this.connector}}(0,fT._)(fY,"id",fA.w.magicEden);var fV=r(96214);r(48764);class fQ extends fw.Z{constructor(e){super(),this.wallet=e}}class fK extends fQ{constructor(e,n){super(n);let r={walletConnectWalletMetadata:{name:"thirdweb Smart Account",description:"thirdweb Smart Account",url:"https://thirdweb.com",icons:["https://thirdweb.com/favicon.ico"]}
358,walletConnectV2ProjectId:fx.T,walletConnectV2RelayUrl:fx.W,...e?.walletConnectReceiver===!0?{}:e?.walletConnectReceiver};this._wcMetadata=r.walletConnectWalletMetadata,this._core=new a9({projectId:r.walletConnectV2ProjectId,relayUrl:r.walletConnectV2RelayUrl})}async init(){this._wcWallet=await fm.init({core:this._core,metadata:this._wcMetadata});let e=this._wcWallet.getActiveSessions(),n=Object.keys(e);n[0]&&(this._session=e[n[0]]),this._setupWalletConnectEventsListeners()}async connectApp(e){if(!this._wcWallet)throw Error("Please, init the wallet before connecting an app.");await this._wcWallet.core.pairing.pair({uri:e})}async approveSession(){if(!this._wcWallet)throw Error("Please, init the wallet before making session requests.");if(!this._activeProposal)throw Error("Please, pass a valid proposal.");let e=await this.wallet.getAddress(),{id:n,params:r}=this._activeProposal,{requiredNamespaces:i,relays:a}=r,o={};Object.keys(i).forEach(n=>{let r=[],a=i[n];a&&(a.chains?.map(n=>{r.push(`${n}:${e}`)}),o[n]={accounts:r,methods:a.methods,events:a.events})}),this._session=await this._wcWallet.approveSession({id:n,relayProtocol:a[0]?.protocol,namespaces:o}),this.emit("session_approved")}async rejectSession(){if(!this._wcWallet)throw Error("Please, init the wallet before making session requests.");if(!this._activeProposal)throw Error("Please, pass a valid proposal.");let{id:e}=this._activeProposal;await this._wcWallet.rejectSession({id:e,reason:{message:"User rejected methods.",code:5002}})}async approveEIP155Request(){let e;if(!this._activeRequestEvent)return;let{topic:n,params:r,id:i}=this._activeRequestEvent,{request:a}=r;switch(a.method){case fx.E.PERSONAL_SIGN:case fx.E.ETH_SIGN:let o=this._getSignParamsMessage(a.params),s=await this.wallet.signMessage(o||"");e=(0,il.formatJsonRpcResult)(i,s);break;case fx.E.ETH_SEND_TRANSACTION:let f=await this.wallet.getSigner(),l=a.params[0],u=await f.sendTransaction(l),{transactionHash:c}=await u.wait();e=(0,il.formatJsonRpcResult)(i,c);break;case fx.E.ETH_SIGN_TRANSACTION:let d=await this.wallet.getSigner(),p=a.params[0],h=await d.signTransaction(p);e=(0,il.formatJsonRpcResult)(i,h);break;default:return this._wcWallet?.respondSessionRequest({topic:n,response:{id:i,jsonrpc:"2.0",error:{message:"Invalid event.",code:1002}}})}return this._wcWallet?.respondSessionRequest({topic:n,response:e})}async rejectEIP155Request(){if(!this._activeRequestEvent)return;let{topic:e,id:n}=this._activeRequestEvent;return this._wcWallet?.respondSessionRequest({topic:e,response:{id:n,jsonrpc:"2.0",error:{message:"User rejected methods.",code:5002}}})}getActiveSessions(){if(!this._wcWallet)throw Error("Please, init the wallet before getting sessions.");let e=this._wcWallet.getActiveSessions(),n=Object.keys(e);if(!e||0===n.length)return[];let r=[];for(let i of n){let n=e[i];if(n){let e=n.topic,i=n.peer.metadata;r.push({topic:e,peer:{metadata:i}})}}return r}disconnectSession(){if(!this._wcWallet)throw Error("Please, init the wallet before disconnecting sessions.");if(!this._session)return Promise.resolve();let e={topic:this._session.topic,reason:{message:"User disconnected.",code:6e3}};return this._wcWallet?.disconnectSession(e)}_setupWalletConnectEventsListeners(){if(!this._wcWallet)throw Error("Please, init the wallet before making session requests.");this._wcWallet.on("session_proposal",e=>{this._activeProposal=e,this.emit("session_proposal",{proposer:{metadata:e.params.proposer.metadata}})}),this._wcWallet.on("session_delete",e=>{this._session=void 0,this._activeProposal=void 0,this.emit("session_delete",{topic:e.topic})}),this._wcWallet.on("session_request",async e=>{if(!this._session)return;let{params:n}=e,{request:r}=n,{params:i}=r;switch(r.method){case fx.E.ETH_SIGN:case fx.E.PERSONAL_SIGN:this._activeRequestEvent=e;let a=i[0],o=new TextDecoder().decode(fg.arrayify(a)),s=[...i];s[0]=o,this.emit("session_request",{topic:this._session.topic,params:s,peer:{metadata:this._session.peer.metadata},method:r.method});return;case fx.E.ETH_SEND_TRANSACTION:case fx.E.ETH_SIGN_TRANSACTION:this._activeRequestEvent=e,this.emit
358("session_request",{topic:this._session.topic,params:e.params.request.params,peer:{metadata:this._session.peer.metadata},method:r.method});return;default:throw Error(`WCV2.Method not supported: ${r.method}`)}})}_getSignParamsMessage(e){let n=e.filter(e=>!fb.isAddress(e))[0]||"";return fg.isHexString(n)?fv.ZN(n):n}}},81764:function(e,n,r){"use strict";r.d(n,{g:function(){return o},i:function(){return a}});var i=r(22555);function a(e){let n=new URL(e).hostname;return n.endsWith(".thirdweb.com")||n.endsWith(".thirdweb-dev.com")||"localhost"===n||"0.0.0.0"===n}function o(e){return(0,i.OZ$)(e).map(e=>{try{let n=new URL(e);return n.hostname.endsWith(".thirdweb.com")&&(n.pathname="",n.search=""),n.toString()}catch(n){return e}})}},1832:function(e,n,r){"use strict";r.d(n,{A:function(){return g},D:function(){return m},E:function(){return h},M:function(){return y},c:function(){return d},e:function(){return b},f:function(){return p}});var i=r(93901),a=r(64146),o=r(93684),s=r(91651),f=r(81764),l=r(35124),u=r(2515);r(51364);let c=["function isValidSignature(bytes32 _hash, bytes _signature) public view returns (bytes4)"];async function d(e,n,r,u,d,p){let h=!1;"undefined"!=typeof globalThis&&"TW_SKIP_FETCH_SETUP"in globalThis&&"boolean"==typeof globalThis.TW_SKIP_FETCH_SETUP&&(h=globalThis.TW_SKIP_FETCH_SETUP);let y=(0,l.m)(u,d),m={};if((0,f.i)(y)){let e="undefined"!=typeof globalThis&&"APP_BUNDLE_ID"in globalThis?globalThis.APP_BUNDLE_ID:void 0;p?m["x-secret-key"]=p:d&&(m["x-client-id"]=d,e&&(m["x-bundle-id"]=e)),"undefined"!=typeof globalThis&&"TW_AUTH_TOKEN"in globalThis&&"string"==typeof globalThis.TW_AUTH_TOKEN&&(m.authorization=`Bearer ${globalThis.TW_AUTH_TOKEN}`),"undefined"!=typeof globalThis&&"TW_CLI_AUTH_TOKEN"in globalThis&&"string"==typeof globalThis.TW_CLI_AUTH_TOKEN&&(m.authorization=`Bearer ${globalThis.TW_CLI_AUTH_TOKEN}`,m["x-authorize-wallet"]="true"),(0,s.s)(m)}let g=new i.c({url:y,skipFetchSetup:h,headers:m},u),b=new a.CH(r,c,g);try{return await b.isValidSignature(o.r(e),n)==="0x1626ba7e"}catch{return!1}}let p="0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",h="0x02101dfB77FDE026414827Fdc604ddAF224F0921",y=5e4,m="0x85e23b94e7F5E9cC1fF78BCe78cfb15B81f0DF00",g=[{type:"constructor",inputs:[{name:"_entrypoint",type:"address",internalType:"contract IEntryPoint"},{name:"_factory",type:"address",internalType:"address"}],stateMutability:"nonpayable"},{type:"receive",stateMutability:"payable"},{type:"function",name:"addDeposit",inputs:[],outputs:[],stateMutability:"payable"},{type:"function",name:"contractURI",inputs:[],outputs:[{name:"",type:"string",internalType:"string"}],stateMutability:"view"},{type:"function",name:"entryPoint",inputs:[],outputs:[{name:"",type:"address",internalType:"contract IEntryPoint"}],stateMutability:"view"},{type:"function",name:"execute",inputs:[{name:"_target",type:"address",internalType:"address"},{name:"_value",type:"uint256",internalType:"uint256"},{name:"_calldata",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"executeBatch",inputs:[{name:"_target",type:"address[]",internalType:"address[]"},{name:"_value",type:"uint256[]",internalType:"uint256[]"},{name:"_calldata",type:"bytes[]",internalType:"bytes[]"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"factory",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"getAllActiveSigners",inputs:[],outputs:[{name:"signers",type:"tuple[]",internalType:"struct IAccountPermissions.SignerPermissions[]",components:[{name:"signer",type:"address",internalType:"address"},{name:"approvedTargets",type:"address[]",internalType:"address[]"},{name:"nativeTokenLimitPerTransaction",type:"uint256",internalType:"uint256"},{name:"startTimestamp",type:"uint128",internalType:"uint128"},{name:"endTimestamp",type:"uint128",internalType:"uint128"}]}],stateMutability:"view"},{type:"function",name:"getAllAdmins",inputs:[],outputs:[{name:"",type:"address[]",internalType:"address[]"}],stateMutability:"view"},{type:"function",name:"getAllSigners",inputs:[],outputs:[{name:"signers",type:"tuple[]",internalType:"struct IAccountPermissions.SignerPermissions[]",components:[{name:"signer",type:"address",internalType:"address"},{name:"approvedTargets",type:"address[]",internalType:"address[]"},{name:"nativeTokenLimitPerTransaction",type:"uint256",internalType:"uint256"},{name:"startTimestamp",type:"uint128",internalType:"uint128"},{name:"endTimestamp",type:"uint128",internalType:"uint128"}]}],stateMutability:"view"},{type:"function",name:"getMessageHash",inputs:[{name:"_hash",type:"bytes32",internalType:"bytes32"}],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"view"}
358,{type:"function",name:"getNonce",inputs:[],outputs:[{name:"",type:"uint256",internalType:"uint256"}],stateMutability:"view"},{type:"function",name:"getPermissionsForSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"tuple",internalType:"struct IAccountPermissions.SignerPermissions",components:[{name:"signer",type:"address",internalType:"address"},{name:"approvedTargets",type:"address[]",internalType:"address[]"},{name:"nativeTokenLimitPerTransaction",type:"uint256",internalType:"uint256"},{name:"startTimestamp",type:"uint128",internalType:"uint128"},{name:"endTimestamp",type:"uint128",internalType:"uint128"}]}],stateMutability:"view"},{type:"function",name:"initialize",inputs:[{name:"_defaultAdmin",type:"address",internalType:"address"},{name:"_data",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"isActiveSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"isAdmin",inputs:[{name:"_account",type:"address",internalType:"address"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"isValidSignature",inputs:[{name:"_hash",type:"bytes32",internalType:"bytes32"},{name:"_signature",type:"bytes",internalType:"bytes"}],outputs:[{name:"magicValue",type:"bytes4",internalType:"bytes4"}],stateMutability:"view"},{type:"function",name:"isValidSigner",inputs:[{name:"_signer",type:"address",internalType:"address"},{name:"_userOp",type:"tuple",internalType:"struct UserOperation",components:[{name:"sender",type:"address",internalType:"address"},{name:"nonce",type:"uint256",internalType:"uint256"},{name:"initCode",type:"bytes",internalType:"bytes"},{name:"callData",type:"bytes",internalType:"bytes"},{name:"callGasLimit",type:"uint256",internalType:"uint256"},{name:"verificationGasLimit",type:"uint256",internalType:"uint256"},{name:"preVerificationGas",type:"uint256",internalType:"uint256"},{name:"maxFeePerGas",type:"uint256",internalType:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256",internalType:"uint256"},{name:"paymasterAndData",type:"bytes",internalType:"bytes"},{name:"signature",type:"bytes",internalType:"bytes"}]}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"multicall",inputs:[{name:"data",type:"bytes[]",internalType:"bytes[]"}],outputs:[{name:"results",type:"bytes[]",internalType:"bytes[]"}],stateMutability:"nonpayable"},{type:"function",name:"onERC1155BatchReceived",inputs:[{name:"",type:"address",internalType:"address"},{name:"",type:"address",internalType:"address"},{name:"",type:"uint256[]",internalType:"uint256[]"},{name:"",type:"uint256[]",internalType:"uint256[]"},{name:"",type:"bytes",internalType:"bytes"}],outputs:[{name:"",type:"bytes4",internalType:"bytes4"}],stateMutability:"nonpayable"},{type:"function",name:"onERC1155Received",inputs:[{name:"",type:"address",internalType:"address"},{name:"",type:"address",internalType:"address"},{name:"",type:"uint256",internalType:"uint256"},{name:"",type:"uint256",internalType:"uint256"},{name:"",type:"bytes",internalType:"bytes"}],outputs:[{name:"",type:"bytes4",internalType:"bytes4"}],stateMutability:"nonpayable"},{type:"function",name:"onERC721Received",inputs:[{name:"",type:"address",internalType:"address"},{name:"",type:"address",internalType:"address"},{name:"",type:"uint256",internalType:"uint256"},{name:"",type:"bytes",internalType:"bytes"}],outputs:[{name:"",type:"bytes4",internalType:"bytes4"}],stateMutability:"nonpayable"},{type:"function",name:"setContractURI",inputs:[{name:"_uri",type:"string",internalType:"string"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setEntrypointOverride",inputs:[{name:"_entrypointOverride",type:"address",internalType:"contract IEntryPoint"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"setPermissionsForSigner",inputs:[{name:"_req",type:"tuple",internalType:"struct IAccountPermissions.SignerPermissionRequest",components:[{name:"signer",type:"address",internalType:"address"},{name:"isAdmin",type:"uint8",internalType:"uint8"},{name:"approvedTargets",type:"address[]",internalType:"address[]"},{name:"nativeTokenLimitPerTransaction",type:"uint256",internalType:"uint256"},{name:"permissionStartTimestamp",type:"uint128",internalType:"uint128"},{name:"permissionEndTimestamp",type:"uint128",internalType:"uint128"},{name:"reqValidityStartTimestamp",type:"uint128",internalType:"uint128"},{name:"reqValidityEndTimestamp",type:"uint128",internalType:"uint128"},{name:"uid",type:"bytes32",internalType:"bytes32"}]},{name:"_signature",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"nonpayable"}
358,{type:"function",name:"supportsInterface",inputs:[{name:"interfaceId",type:"bytes4",internalType:"bytes4"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"validateUserOp",inputs:[{name:"userOp",type:"tuple",internalType:"struct UserOperation",components:[{name:"sender",type:"address",internalType:"address"},{name:"nonce",type:"uint256",internalType:"uint256"},{name:"initCode",type:"bytes",internalType:"bytes"},{name:"callData",type:"bytes",internalType:"bytes"},{name:"callGasLimit",type:"uint256",internalType:"uint256"},{name:"verificationGasLimit",type:"uint256",internalType:"uint256"},{name:"preVerificationGas",type:"uint256",internalType:"uint256"},{name:"maxFeePerGas",type:"uint256",internalType:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256",internalType:"uint256"},{name:"paymasterAndData",type:"bytes",internalType:"bytes"},{name:"signature",type:"bytes",internalType:"bytes"}]},{name:"userOpHash",type:"bytes32",internalType:"bytes32"},{name:"missingAccountFunds",type:"uint256",internalType:"uint256"}],outputs:[{name:"validationData",type:"uint256",internalType:"uint256"}],stateMutability:"nonpayable"},{type:"function",name:"verifySignerPermissionRequest",inputs:[{name:"req",type:"tuple",internalType:"struct IAccountPermissions.SignerPermissionRequest",components:[{name:"signer",type:"address",internalType:"address"},{name:"isAdmin",type:"uint8",internalType:"uint8"},{name:"approvedTargets",type:"address[]",internalType:"address[]"},{name:"nativeTokenLimitPerTransaction",type:"uint256",internalType:"uint256"},{name:"permissionStartTimestamp",type:"uint128",internalType:"uint128"},{name:"permissionEndTimestamp",type:"uint128",internalType:"uint128"},{name:"reqValidityStartTimestamp",type:"uint128",internalType:"uint128"},{name:"reqValidityEndTimestamp",type:"uint128",internalType:"uint128"},{name:"uid",type:"bytes32",internalType:"bytes32"}]},{name:"signature",type:"bytes",internalType:"bytes"}],outputs:[{name:"success",type:"bool",internalType:"bool"},{name:"signer",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"withdrawDepositTo",inputs:[{name:"withdrawAddress",type:"address",internalType:"address payable"},{name:"amount",type:"uint256",internalType:"uint256"}],outputs:[],stateMutability:"nonpayable"},{type:"event",name:"AdminUpdated",inputs:[{name:"signer",type:"address",indexed:!0,internalType:"address"},{name:"isAdmin",type:"bool",indexed:!1,internalType:"bool"}],anonymous:!1},{type:"event",name:"ContractURIUpdated",inputs:[{name:"prevURI",type:"string",indexed:!1,internalType:"string"},{name:"newURI",type:"string",indexed:!1,internalType:"string"}],anonymous:!1},{type:"event",name:"Initialized",inputs:[{name:"version",type:"uint8",indexed:!1,internalType:"uint8"}],anonymous:!1},{type:"event",name:"SignerPermissionsUpdated",inputs:[{name:"authorizingSigner",type:"address",indexed:!0,internalType:"address"},{name:"targetSigner",type:"address",indexed:!0,internalType:"address"},{name:"permissions",type:"tuple",indexed:!1,internalType:"struct IAccountPermissions.SignerPermissionRequest",components:[{name:"signer",type:"address",internalType:"address"},{name:"isAdmin",type:"uint8",internalType:"uint8"},{name:"approvedTargets",type:"address[]",internalType:"address[]"},{name:"nativeTokenLimitPerTransaction",type:"uint256",internalType:"uint256"},{name:"permissionStartTimestamp",type:"uint128",internalType:"uint128"},{name:"permissionEndTimestamp",type:"uint128",internalType:"uint128"},{name:"reqValidityStartTimestamp",type:"uint128",internalType:"uint128"},{name:"reqValidityEndTimestamp",type:"uint128",internalType:"uint128"},{name:"uid",type:"bytes32",internalType:"bytes32"}]}],anonymous:!1}];async function b(e,n,r){let i=(0,u.a_)(e,{clientId:n,secretKey:r}),a=(await i.getNetwork()).chainId;return 324===a||300===a||302===a}},85560:function(e,n,r){"use strict";r.d(n,{w:function(){return i}});let i={blocto:"blocto",coin98:"coin98",coinbase:"coinbase",coreWallet:"coreWallet",cryptoDefiWallet:"cryptoDefiWallet",frame:"frame",imtoken:"imToken",localWallet:"localWallet",magicLink:"magicLink",metamask:"metamask",paper:"paper",rainbow:"rainbowWallet",smartWallet:"smartWallet",tokenBoundSmartWallet:"tokenBoundSmartWallet",safe:"safe",trust:"trust",embeddedWallet:"embeddedWallet",walletConnect
358V1:"walletConnectV1",walletConnect:"walletConnect",phantom:"phantom",okx:"okx",oneKey:"oneKey",rabby:"rabby",xdefi:"xdefi",magicEden:"magicEden"}},8203:function(e,n,r){"use strict";r.d(n,{E:function(){return o},T:function(){return i},W:function(){return a}});let i="145769e410f16970a79ff77b2d89a1e0",a="wss://relay.walletconnect.com",o={PERSONAL_SIGN:"personal_sign",ETH_SIGN:"eth_sign",ETH_SIGN_TRANSACTION:"eth_signTransaction",ETH_SIGN_TYPED_DATA:"eth_signTypedData",ETH_SIGN_TYPED_DATA_V3:"eth_signTypedData_v3",ETH_SIGN_TYPED_DATA_V4:"eth_signTypedData_v4",ETH_SEND_TRANSACTION:"eth_sendTransaction",SWITCH_CHAIN:"wallet_switchEthereumChain"}},35124:function(e,n,r){"use strict";r.d(n,{m:function(){return m},q:function(){return g}});var i=r(46795),a=r(64146),o=r(93684),s=r(16441),f=r(83875),l=r(65007),u=r(2515),c=r(43277),d=r(99979),p=r(23437);let h=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"who",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"}];function y(e,n){return new a.CH(n,h,e)}function m(e,n){return`https://${e}.rpc.thirdweb.com${n?`/${n}`:""}${"undefined"!=typeof globalThis&&"APP_BUNDLE_ID"in globalThis&&globalThis.APP_BUNDLE_ID?`?bundleId=${globalThis.APP_BUNDLE_ID}`:""}`}class g extends l.Z{constructor(){super(...arguments),(0,i._)(this,"type","evm")}
358async getAddress(){return(await this.getSigner()).getAddress()}async getBalance(){let e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.aV,r=await this.getSigner(),i=await this.getAddress();if(!r.provider)throw Error("Please connect a provider");if((0,c.i)(n))e=await r.provider.getBalance(i);else{let a=y(r,n);e=await a.balanceOf(i)}return await (0,c.a)(r.provider,n,e)}async getChainId(){return(await this.getSigner()).getChainId()}async transfer(e,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.aV,i=await this.getSigner(),a=await this.getAddress();if(!i.provider)throw Error("Please connect a provider");let o=await (0,d.n)(i.provider,n,r);if((0,c.i)(r)){let n=(0,p.g)(i.provider),r=await i.sendTransaction({from:a,to:e,value:o,...n});return{receipt:await r.wait()}}{let n=y(i,r),a=await n.transfer(e,o);return{receipt:await a.wait()}}}async signMessage(e){let n=await this.getSigner();return await n.signMessage(e)}async verifySignature(e,n,r,i){try{let i=o.r(e),a=s.arrayify(i);if(f.recoverAddress(a,n)===r)return!0}catch{}return!1}}},17191:function(e,n,r){"use strict";r.d(n,{Y:function(){return l}});var i=r(46795),a=r(27021),o=r(57334),s=r(85560),f=r(22555);r(65007),r(35124);class l extends o.a{constructor(e){e?.chain&&e.clientId&&(e.chain=(0,f.nRj)(e.chain,e.clientId)),super(l.id,e),(0,i._)(this,"name","Blocto")}async initConnector(){let{BloctoConnector:e}=await Promise.all([r.e(21417),r.e(35844)]).then(r.bind(r,35844)),n=new e({chains:this.chains,options:{appId:this.options?.appId,chainId:this.options?.chain?.chainId}});return this.connector=new a.W(n),this.connector}async getConnector(){return this.connector?Promise.resolve(this.connector):await this.initConnector()}}(0,i._)(l,"id",s.w.blocto),(0,i._)(l,"meta",{name:"Blocto",iconURL:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzIyMzNfMjM4NykiPgo8cmVjdCB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHJ4PSIxMiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTMyLjkwMjggMTguMzA2M0MyOC4zOTExIDE4LjMwNjMgMjMuOTg3MyAyMC4wNDU5IDIwLjY5NTIgMjMuMTMxOUMxNy4wODQzIDI2LjUxNzYgMTQuNzk5MiAzMS41MTc3IDEzLjQ4OTMgMzYuMjIxMkMxMi42MzE0IDM5LjI5OTIgMTIuMjAxNiA0Mi40OTE1IDEyLjIwMTYgNDUuNjg1M0MxMi4yMDE2IDQ2LjY1MTEgMTIuMjQxMiA0Ny42MDg5IDEyLjMxNzQgNDguNTU1NkMxMi40MTA5IDQ5LjcwNjkgMTMuNTMyMSA1MC41MDQ2IDE0LjY0ODUgNTAuMjAzM0MxNS42MjIyIDQ5Ljk0MTYgMTYuNjQ2NiA0OS44MDA1IDE3LjcwMjggNDkuODAwNUMxOS44NzIyIDQ5LjgwMDUgMjEuOTA1MiA1MC4zOTA0IDIzLjY0OCA1MS40MjEyQzIzLjY5MDggNTEuNDQ2NiAyMy43MzIgNTEuNDcxOSAyMy43NzQ4IDUxLjQ5NTdDMjYuNjA3MSA1My4xODQ2IDI5Ljk0ODQgNTQuMTEyMyAzMy41MTE3IDUzLjk5MzRDNDIuODA2MiA1My42ODU3IDUwLjM5OSA0Ni4xMjMgNTAuNzQxNiAzNi44MzAxQzUxLjExNTggMjYuNjYzNSA0Mi45ODY5IDE4LjMwNDcgMzIuOTA0NCAxOC4zMDQ3TDMyLjkwMjggMTguMzA2M1pNMzIuOTAyOCA0NC4zMTJDMjguMzk3NSA0NC4zMTIgMjQuNzQ1NCA0MC42NTk5IDI0Ljc0NTQgMzYuMTU2MkMyNC43NDU0IDMxLjY1MjUgMjguMzk3NSAyNy45OTg3IDMyLjkwMjggMjcuOTk4N0MzNy40MDgxIDI3Ljk5ODcgNDEuMDYwMiAzMS42NTA5IDQxLjA2MDIgMzYuMTU2MkM0MS4wNjAyIDQwLjY2MTQgMzcuNDA4MSA0NC4zMTIgMzIuOTAyOCA0NC4zMTJaIiBmaWxsPSIjMTRBQUZGIi8+CjxwYXRoIGQ9Ik0yNS41NjM2IDEyLjY4MjZDMjUuNTYzNiAxNS4wMzQ0IDI0LjMzMTUgMTcuMjE2NCAyMi4zMDggMTguNDE1M0MyMS4wMzc3IDE5LjE2ODYgMTkuODQ2OCAyMC4wNTgyIDE4Ljc2ODQgMjEuMDcxNUMxNi4zNzU1IDIzLjMxMzkgMTQuNTg5OCAyNi4wNjUzIDEzLjI2NzMgMjguNzkyOUMxMy4wMDcyIDI5LjMzMDQgMTIuMiAyOS4xNDAyIDEyLjIgMjguNTQyM1YxMi42ODI2QzEyLjIgOC45OTI0MiAxNS4xOTI0IDYgMTguODgyNiA2QzIyLjU3MjggNiAyNS41NjUyI
358DguOTkyNDIgMjUuNTY1MiAxMi42ODI2SDI1LjU2MzZaIiBmaWxsPSIjMDA3NUZGIi8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDBfMjIzM18yMzg3Ij4KPHJlY3Qgd2lkdGg9IjYwIiBoZWlnaHQ9IjYwIiBmaWxsPSJ3aGl0ZSIvPgo8L2NsaXBQYXRoPgo8L2RlZnM+Cjwvc3ZnPgo=",urls:{android:"https://play.google.com/store/apps/details?id=com.portto.blocto",ios:"https://apps.apple.com/app/blocto/id1481181682"}})},42357:function(e,n,r){"use strict";r.d(n,{G:function(){return l}});var i=r(46795),a=r(27021),o=r(85560),s=r(57334),f=r(48764);r(65007),r(35124),window.Buffer=f.Buffer;class l extends s.a{get walletName(){return"Coinbase Wallet"}constructor(e){super(l.id,e),this.headlessMode=e?.headlessMode||!1,this.theme=e?.theme||!1===this.dappMetadata.isDarkMode?"light":"dark"}async getConnector(){if(!this.connector){let{CoinbaseWalletConnector:e}=await r.e(12532).then(r.bind(r,12532)),n=new e({chains:this.chains,options:{appName:this.dappMetadata.name,reloadOnDisconnect:!1,darkMode:"dark"===this.theme,headlessMode:this.headlessMode}});n.on("connect",()=>{}),this.coinbaseConnector=n,this.connector=new a.W(n)}return this.connector}async getQrUrl(){if(await this.getConnector(),!this.coinbaseConnector)throw Error("Coinbase connector not initialized");return this.coinbaseConnector.getQrUrl()}}(0,i._)(l,"meta",{iconURL:"ipfs://QmcJBHopbwfJcLqJpX2xEufSS84aLbF7bHavYhaXUcrLaH/coinbase.svg",name:"Coinbase Wallet",urls:{chrome:"https://chrome.google.com/webstore/detail/coinbase-wallet-extension/hnfanknocfeofbddgcijnmhnfnkdnaad",android:"https://play.google.com/store/apps/details?id=org.toshi",ios:"https://apps.apple.com/us/app/coinbase-wallet-nfts-crypto/id1278383455"}}),(0,i._)(l,"id",o.w.coinbase)},29472:function(e,n,r){"use strict";r.d(n,{c:function(){return f}});var i=r(46795),a=r(22555),o=r(85560),s=r(57334);r(35124),r(65007);class f extends s.a{static async sendVerificationEmail(e){return new f({chain:a.kJW,clientId:e.clientId}).sendVerificationEmail({email:e.email})}static async sendVerificationSms(e){return new f({chain:a.kJW,clientId:e.clientId}).sendVerificationSms({phoneNumber:e.phoneNumber})}get walletName(){return"Embedded Wallet"}constructor(e){super(f.id,{...e});try{this.chain={...e.chain,rpc:(0,a.OZ$)(e.chain,e.clientId)}}catch{this.chain=e.chain}}async getConnector(){if(!this.connector){let{EmbeddedWalletConnector:e}=await r.e(76457).then(r.bind(r,76457));this.connector=new e({clientId:this.options?.clientId??"",chain:this.chain,chains:this.chains,onAuthSuccess:this.options?.onAuthSuccess})}return this.connector}autoConnect(e){if(!e)throw Error("Can't autoconnect embedded wallet");return this.connect(e)}getConnectParams(){let e=super.getConnectParams();if(e)return{chainId:e.chainId,authResult:{user:e.authResult.user}}}async getEmail(){return(await this.getConnector()).getEmail()}async getPhoneNumber(){return(await this.getConnector()).getPhoneNumber()}async getEmbeddedWalletSDK(){return(await this.getConnector()).getEmbeddedWalletSDK()}async getRecoveryInformation(){return(await this.getConnector()).getRecoveryInformation()}async sendVerificationEmail(e){let{email:n}=e;return(await this.getConnector()).sendVerificationEmail({email:n})}async sendVerificationSms(e){let{phoneNumber:n}=e;return(await this.getConnector()).sendVerificationSms({phoneNumber:n})}async authenticate(e){let n=(await this.getConnector()).authenticate(e);try{await this.walletStorage.setItem(l,e.strategy)}catch{}return n}async getLastUsedAuthStrategy(){try{return await this.walletStorage.getItem(l)}catch{return null}}connect(e){return super.connect(e)}}(0,i._)(f,"id",o.w.embeddedWallet),(0,i._)(f,"meta",{name:"Embedded Wallet",iconURL:"ipfs://QmNx2evQa6tcQs9VTd3YaDm31ckfStvgRGKFGELahUmrbV/emailIcon.svg"});let l="lastUsedAuthStrategy"},66006:function(e,n,r){"use strict";r.d(n,{K:function(){return f}});var i=r(46795),a=r(85560),o=r(27021),s=r(57334);r(65007),r(35124);class f extends s.a{get walletName(){return"Frame Wallet"}constructor(e){super(f.id,e)}async getConnector(){if(!this.connector){let{FrameConnector:e}=await r.e(91373).then(r.bind(r,91373));this.connector=new o.W(new e({chains:this.chains,connectorStorage:this.walletStorage,options:{shimDisconnect:!0}}))}return this.connector}}(0,i._)(f,"id",a.w.frame)},80381:function(e,n,r){"use strict";r.d(n,{S:function(){return p}});var i=r(46795),a=r(85560),o=r(57334),s=r(22555),f=r(5634),l=r(79911),u=r(84178),c=r(98286);r(35124),r(65007);let d="localWalletData";class p extends o.a{get walletName(){return"Local Wallet"}constructor(e){super(p.id,e),e?.chain&&e.clientId&&(e.chain=(0,s.nRj)(e.chain,e.clientId)),this.options=e||{},this._storage=e?.storage||(0,o.c)(a.w.localWallet)}async getConnector(){if(!this.connector){let{LocalWalletConnector:e}=await r.e(89498).then(r.bind(r,89498));if(!this.ethersWallet)throw Error("wallet is not initialized");let n=(this.options.chain?[...s.gL9,this.options.chain]:s.gL9).map(e=>(0,s.nRj)(e,this.options.clientId));this.connector=new e({chain:this.options.chain||(0,s.nRj)(s.kJW,this.options.clientId),ethersWallet:this.ethersWallet,chains:this.chains||n,clientId:this.options.clientId,secretKey:this.options.secretKey})}return this.connector}
358async loadOrCreate(e){await this.getSavedData(e.storage)?await this.load(e):(await this.generate(),await this.save(e))}async generate(){if(this.ethersWallet)throw Error("wallet is already initialized");let e=f.O(32);return this.ethersWallet=new l.Wallet(e),this.ethersWallet.address}async import(e){if(this.ethersWallet)throw Error("wallet is already initialized");if("encryptedJson"in e)return this.ethersWallet=await l.Wallet.fromEncryptedJson(e.encryptedJson,e.password),this.ethersWallet.address;if("privateKey"in e){if(!e.encryption&&!g(e.privateKey))throw Error("invalid private key");let n=await y(e.encryption)(e.privateKey);if(e.encryption&&(""===n||!g(n)))throw Error("invalid password");return this.ethersWallet=new l.Wallet(n),this.ethersWallet.address}if("mnemonic"in e){if(!e.encryption&&!u.isValidMnemonic(e.mnemonic))throw Error("invalid mnemonic");let n=await y(e.encryption)(e.mnemonic);if(e.encryption&&(""===n||!u.isValidMnemonic(n)))throw Error("invalid password");return this.ethersWallet=l.Wallet.fromMnemonic(n),this.ethersWallet.address}throw Error("invalid import strategy")}async load(e){if(this.ethersWallet)throw Error("wallet is already initialized");
358let n=await this.getSavedData(e.storage);if(!n)throw Error("No Saved wallet found in storage");if(n.strategy!==e.strategy)throw Error(`Saved wallet data is not ${e.strategy}, it is ${n.strategy}`);if("encryptedJson"===e.strategy)return this.import({encryptedJson:n.data,password:e.password});if(n.isEncrypted&&!e.encryption)throw Error("Saved wallet data is encrypted, but no password is provided");if(!n.isEncrypted&&e.encryption)throw Error("Saved wallet data is not encrypted, but encryption config is provided");if("privateKey"===e.strategy)return this.import({privateKey:n.data,encryption:e.encryption});if("mnemonic"===e.strategy)return this.import({mnemonic:n.data,encryption:e.encryption});throw Error("invalid load strategy")}async save(e){let n=this.ethersWallet;if(!n)throw Error("Wallet is not initialized");if("encryptedJson"===e.strategy){let r=await n.encrypt(e.password,{scrypt:{N:1<<32}});await this._saveData({address:n.address,data:r,strategy:"encryptedJson",isEncrypted:!0},e.storage)}if("privateKey"===e.strategy){let r=await m(e.encryption)(n.privateKey);await this._saveData({address:n.address,data:r,strategy:"privateKey",isEncrypted:!!e.encryption},e.storage)}if("mnemonic"===e.strategy){if(!n.mnemonic)throw Error("mnemonic can not be computed if wallet is created from a private key or generated using generate()");let r=await m(e.encryption)(n.mnemonic.phrase);await this._saveData({address:n.address,data:r,strategy:"mnemonic",isEncrypted:!!e.encryption},e.storage)}}
358async isSaved(){try{let e=await this.getSavedData(),n=await this.getAddress();if(e?.address===n)return!0;return!1}catch(e){return!1}}async deleteSaved(){await this._storage.removeItem(d)}async export(e){let n=this.ethersWallet;if(!n)throw Error("Wallet is not initialized");if("encryptedJson"===e.strategy)return n.encrypt(e.password,{scrypt:{N:1<<32}});if("privateKey"===e.strategy)return m(e.encryption)(n.privateKey);if("mnemonic"===e.strategy){if(!n.mnemonic)throw Error("mnemonic can not be computed if wallet is created from a private key or generated using generate()");return m(e.encryption)(n.mnemonic.phrase)}throw Error("Invalid export strategy")}async getSavedData(e){let n=e||this._storage;try{let e=await n.getItem(d);if(!e)return null;let r=JSON.parse(e);if(!r)return null;return r}catch(e){return null}}async _saveData(e,n){let r=n||this._storage;await r.setItem(d,JSON.stringify(e))}async disconnect(){await super.disconnect(),this.ethersWallet=void 0}}async function h(e){return e}function y(e){return e?n=>(e.decrypt||c.Ze)(n,e.password):h}function m(e){return e?n=>(e.encrypt||c.oj)(n,e.password):h}function g(e){return!!e.match(/^(0x)?[0-9a-f]{64}$/i)}(0,i._)(p,"id",a.w.localWallet),(0,i._)(p,"meta",{name:"Local Wallet",iconURL:"ipfs://QmbQzSNGvmNYZzem9jZRuYeLe9K2W4pqbdnVUp7Y6edQ8Y/local-wallet.svg"})},70166:function(e,n,r){"use strict";r.d(n,{B:function(){return f}});var i=r(46795),a=r(27021),o=r(57334),s=r(85560);r(65007),r(35124);class f extends o.a{get walletName(){return"Magic Link"}constructor(e){super(f.id,e),this.options=e}async initializeConnector(){let{MagicAuthConnector:e}=await r.e(91675).then(r.bind(r,82093)),n=new e({chains:this.chains,options:this.options});return this.magicConnector=n,this.connector=new a.W(n),this.connector}async getConnector(){return this.connector?this.connector:await this.initializeConnector()}getMagic(){if(!this.magicConnector)throw Error("Magic connector is not initialized");return this.magicConnector.getMagicSDK()}async autoConnect(e){await this.initializeConnector(),await this.magicConnector?.initializeMagicSDK(e);let n=this.getMagic();if(new URL(window.location.href).searchParams.get("magic_credential"))try{this.oAuthRedirectResult=await n.oauth.getRedirectResult()}catch{}if(await n.user.isLoggedIn())return super.autoConnect(e);throw Error("Magic user is not logged in")}async disconnect(){this.oAuthRedirectResult=void 0;let e=this.getMagic();return await e.user.logout(),super.disconnect()}async connect(e){if("email"in e&&!1===this.options.emailLogin)throw Error("Email login is disabled");if("phoneNumber"in e&&!1===this.options.smsLogin)throw Error("SMS login is disabled");return super.connect(e)}}(0,i._)(f,"meta",{iconURL:"ipfs://QmUMBFZGXxBpgDmZzZAHhbcCL5nYvZnVaYLTajsNjLcxMU/1-Icon_Magic_Color.svg",name:"Magic Link"}),(0,i._)(f,"id",s.w.magicLink)},4183:function(e,n,r){"use strict";r.d(n,{t:function(){return u}});var i=r(46795),a=r(27021),o=r(57334),s=r(85560),f=r(8203),l=r(6156);r(65007),r(35124);class u extends o.a{get walletName(){return"MetaMask"}constructor(e){super(u.id,e),this.isInjected=!!(0,l.g)()}async getConnector(){if(!this.connector){if(this.isInjected){let{MetaMaskConnector:e}=await r.e(3046).then(r.bind(r,3046)),n=new e({chains:this.chains,connectorStorage:this.walletStorage,options:{shimDisconnect:!0}});this.metamaskConnector=n,this.connector=new a.W(n)}else{let{WalletConnectConnector:e}=await r.e(76044).then(r.bind(r,76044)),n=new e({chains:this.chains,options:{projectId:this.options?.projectId||f.T,storage:this.walletStorage,qrcode:this.options?.qrcode,dappMetadata:this.dappMetadata,qrModalOptions:this.options?.qrModalOptions}});n.getProvider().then(e=>{e.signer.client.on("session_request_sent",()=>{this.emit("wc_session_request_sent")})}),this.walletConnectConnector=n,this.connector=new a.W(n)}}return this.connector}async connectWithQrCode(e){await this.getConnector();let n=this.walletConnectConnector;if(!n)throw Error("WalletConnect connector not found");(await n.getProvider()).on("display_uri",n=>{e.onQrCodeUri(n)}),this.connect({chainId:e.chainId}).then(e.onConnected)}async switchAccount(){if(!this.metamaskConnector)throw Error("Can not switch Account");await this.metamaskConnector.switchAccount()}}(0,i._)(u,"meta",{name:"MetaMask",iconURL:"ipfs://QmZZHcw7zcXursywnLDAyY6Hfxzqop5GKgwoq8NB9jjrkN/metamask.svg",urls:{chrome:"https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn",android:"https://play.google.com/store/apps/details?id=io.metamask",ios:"https://apps.apple.com/us/app/metamask-blockchain-wallet/id1438144202"}}),(0,i._)(u,"id",s.w.metamask)},40531:function(e,n,r){"use strict";r.d(n,{a:function(){return f}});var i=r(46795),a=r(22555),o=r(85560),s=r(57334);r(35124),r(65007);class f extends s.a{get walletName(){return"Paper Wallet"}constructor(e){super(f.id,{...e});try{this.chain={...e.chain,rpc:(0,a.OZ$)(e.chain,e.clientId)}}catch{this.chain=e.chain}if(e.paperClientId&&"uninitialized"===e.paperClientId){this.paperClientId="00000000-0000-0000-0000-000000000000";return}if(e.advancedOptions&&e.advancedOptions?.recoveryShareManagement==="USER_MANAGED"&&(e.paperClientId&&!this.isClientIdLegacyPaper(e.paperClientId)||!e.paperClientId&&e.clientId&&!this.isClientIdLegacyPaper(e.clientId)))throw Error('RecoveryShareManagement option "USER_MANAGED" is not supported with thirdweb client ID');if(!e.clientId&&!e.paperClientId)throw Error("clientId or paperClientId is required");if(e.paperClientId&&!this.isClientIdLegacyPaper(e.paperClientId))throw Error("paperClientId must be a legacy paper client ID");if(e.clientId&&this.isClientIdLegacyPaper(e.clientId))throw Error("clientId must be a thirdweb client ID");this.paperClientId=e.paperClientId??e.clientId,this.onAuthSuccess=e.onAuthSuccess}isClientIdLegacyPaper(e){return e.indexOf("-")>0&&36===e.length}async getConnector(){if(!this.connector){let{PaperWalletConnector:e}=await r.e(38692).then(r.bind(r,38692));this.connector=new e({clientId:this.paperClientId,chain:this.chain,chains:this.chains,onAuthSuccess:this.onAuthSuccess,advancedOptions:{recoveryShareManagement:this.options?.advancedOptions?.recoveryShareManagement},styles:this.options?.styles})}return this.connector}
358getConnectParams(){let e=super.getConnectParams();return e?"object"==typeof e.googleLogin?{...e,googleLogin:!0}:e:void 0}async getEmail(){return(await this.getConnector()).getEmail()}async getPaperSDK(){return(await this.getConnector()).getPaperSDK()}}(0,i._)(f,"id",o.w.paper),(0,i._)(f,"meta",{name:"Paper Wallet",iconURL:"ipfs://QmNrLXtPoFrh4yjZbXui39zUMozS1oetpgU8dvZhFAxfRa/paper-logo-icon.svg"})},35973:function(e,n,r){"use strict";r.d(n,{j:function(){return l}});var i=r(46795),a=r(27021),o=r(57334),s=r(85560),f=r(11123);r(65007),r(35124);class l extends o.a{get walletName(){return"Phantom"}constructor(e){super(l.id,e),this.isInjected=!!(0,f.g)()}async getConnector(){if(!this.connector){let{PhantomConnector:e}=await r.e(31626).then(r.bind(r,31626)),n=new e({chains:this.chains,connectorStorage:this.walletStorage,options:{shimDisconnect:!0}});this.phantomConnector=n,this.connector=new a.W(n)}return this.connector}}(0,i._)(l,"meta",{name:"Phantom",iconURL:"ipfs://bafybeibkpca5nwxpsjrtuxmz2ckb5lyc2sl2abg5f7dnvxku637vvffjti",urls:{chrome:"https://chrome.google.com/webstore/detail/phantom/bfnaelmomeimhlpmgjnjophhpkkoljpa"}}),(0,i._)(l,"id",s.w.phantom)},51758:function(e,n,r){"use strict";r.d(n,{h:function(){return u}});var i=r(46795),a=r(27021),o=r(57334),s=r(85560),f=r(8203),l=r(81799);r(65007),r(35124);class u extends o.a{get walletName(){return"Rainbow Wallet"}constructor(e){super(u.id,e),this.isInjected=!!(0,l.g)()}async getConnector(){if(!this.connector){if(this.isInjected){let{RainbowConnector:e}=await r.e(88715).then(r.bind(r,88715)),n=new e({chains:this.chains,connectorStorage:this.walletStorage,options:{shimDisconnect:!0}});this.rainbowConnector=n,this.connector=new a.W(n)}else{let{WalletConnectConnector:e}=await r.e(76044).then(r.bind(r,76044)),n=new e({chains:this.chains,options:{projectId:this.options?.projectId||f.T,storage:this.walletStorage,qrcode:this.options?.qrcode,dappMetadata:this.dappMetadata,qrModalOptions:this.options?.qrModalOptions}});n.getProvider().then(e=>{e.signer.client.on("session_request_sent",()=>{this.emit("wc_session_request_sent")})}),this.walletConnectConnector=n,this.connector=new a.W(n)}}return this.connector}async connectWithQrCode(e){await this.getConnector();let n=this.walletConnectConnector;if(!n)throw Error("WalletConnect connector not found");(await n.getProvider()).on("display_uri",n=>{e.onQrCodeUri(n)}),this.connect({chainId:e.chainId}).then(e.onConnected)}}(0,i._)(u,"meta",{name:"Rainbow Wallet",iconURL:"ipfs://QmSZn47p4DVVBfzvg9BAX2EqwnPxkT1YAE7rUnrtd9CybQ/rainbow-logo.png",urls:{chrome:"https://chrome.google.com/webstore/detail/rainbow/opfgelmcmbiajamepnmloijbpoleiama",android:"https://rnbwapp.com/e/Va41HWS6Oxb",ios:"https://rnbwapp.com/e/OeMdmkJ6Oxb"}}),(0,i._)(u,"id",s.w.rainbow)},36398:function(e,n,r){"use strict";r.d(n,{v:function(){return s}});var i=r(46795),a=r(57334),o=r(85560);r(35124),r(65007);class s extends a.a{get walletName(){return"Safe Wallet"}constructor(e){super(s.id,{...e})}async getConnector(){if(!this.connector){let{SafeConnector:e}=await Promise.all([r.e(35500),r.e(89539),r.e(22321),r.e(40513),r.e(82785),r.e(97652)]).then(r.bind(r,82785));this.connector=new e}return this.connector}getPersonalWallet(){return this.connector?.personalWallet}autoConnect(e){return this.connect(e)}connect(e){return super.connect(e)}}(0,i._)(s,"meta",{name:"Safe",iconURL:"ipfs://QmbbyxDDmmLQh8DzzeUR6X6B75bESsNUFmbdvS3ZsQ2pN1/SafeToken.svg"}),(0,i._)(s,"id",o.w.safe)},10748:function(e,n,r){"use strict";r.d(n,{I:function(){return s}});var i=r(85560),a=r(57334),o=r(22555);r(35124),r(65007);class s extends a.a{constructor(e){super("signerWallet",e),e.clientId&&e.chain&&(e.chain=(0,o.nRj)(e.chain,e.clientId)),this.options=e,this.signer=e.signer,this._storage=e?.storage||(0,a.c)(i.w.localWallet)}async getConnector(){if(!this.connector){let{SignerConnector:e}=await r.e(97611).then(r.bind(r,97611));this.signer||(this.signer=this.options.signer);let n=(this.options.chain?[...o.gL9,this.options.chain]:o.gL9).map(e=>(0,o.nRj)(e,this.options.clientId));this.connector=new e({chain:this.options.chain||(0,o.nRj)(o.kJW,this.options.clientId),signer:this.signer,chains:this.chains||n,clientId:this.options.clientId,secretKey:this.options.secretKey})}return this.connector}}},59577:function(e,n,r){"use strict";r.d(n,{c9:function(){return d}});var i=r(46795),a=r(57334),o=r(85560),s=r(22555),f=r(93684),l=r(16441),u=r(83875),c=r(1832);r(35124),r(65007),r(51364);class d extends a.a{get walletName(){return"Smart Wallet"}constructor(e){if(e.clientId&&"object"==typeof e.chain)try{e.chain={...e.chain,rpc:(0,s.OZ$)(e.chain,e.clientId)}}catch{}super(d.id,{...e})}async getConnector(){if(!this.connector){if(this.options&&await (0,c.e)(this.options.chain,this.options.clientId,this.options.secretKey)){let{ZkSyncConnector:e}=await r.e(44315).then(r.bind(r,44315));this.connector=new e(this.options)}else{let{SmartWalletConnector:e}=await r.e(85163).then(r.bind(r,85163));this.connector=new e(this.options)}}return this.connector}getPersonalWallet(){return this.connector?.personalWallet}async hasPermissionToExecute(e){return(await this.getConnector()).hasPermissionToExecute(e)}async send(e,n){return(await this.getConnector()).send(e,n)}async execute(e,n){return(await this.getConnector()).execute(e,n)}async sendBatch(e,n){return(await this.getConnector()).sendBatch(e,n)}async executeBatch(e,n){return(await this.getConnector()).executeBatch(e,n)}async sendRaw(e,n){return(await this.getConnector()).sendRaw(e,n)}async executeRaw(e,n){return(await this.getConnector()).executeRaw(e,n)}async estimate(e,n){return(await this.getConnector()).estimate(e,n)}async estimateBatch(e,n){return(await this.getConnector()).estimateBatch(e,n)}async estimateRaw(e,n){return(await this.getConnector()).estimateRaw(e,n)}async estimateBatchRaw(e,n){return(await this.getConnector()).estimateBatchRaw(e,n)}async sendBatchRaw(e,n){return(await this.getConnector()).sendBatchRaw(e,n)}async executeBatchRaw(e,n){return(await this.getConnector()).executeBatchRaw(e,n)}async deploy(e){return(await this.getConnector()).deploy(e)}async deployIfNeeded(e){return(await this.getConnector()).deployIfNeeded(e)}async isDeployed(){let e=await this.getConnector();return!!(e.chainId&&await (0,c.e)(e.chainId))||e.isDeployed()}async createSessionKey(e,n){return(await this.getConnector()).grantPermissions(e,n)}async revokeSessionKey(e){return(await this.getConnector()).revokePermissions(e)}async addAdmin(e){return(await this.getConnector()).addAdmin(e)}async removeAdmin(e){return(await this.getConnector()).removeAdmin(e)}async getAllActiveSigners(){return(await this.getConnector()).getAllActiveSigners()}async getAccountContract(){return(await this.getConnector()).getAccountContract()}async getFactoryContract(){return(await this.getConnector()).getFactoryContract()}async verifySignature(e,n,r,i){try{let i=f.r(e),a=l.arrayify(i);if(u.recoverAddress(a,n)===r)return!0}catch{}if(void 0!==i)try{return await (0,c.c)(e,n,r,i||1,this.options?.clientId,this.options?.secretKey)}catch{}return!1}autoConnect(e){return this.connect(e)}connect(e){return super.connect(e)}}(0,i._)(d,"meta",{name:"Smart Wallet",iconURL:"ipfs://QmeAJVqn17aDNQhjEU3kcWVZCFBrfta8LzaDGkS8Egdiyk/smart-wallet.svg"}),(0,i._)(d,"id",o.w.smartWallet)},20034:function(e,n,r){"use strict";r.d(n,{d:function(){return u}});var i=r(46795),a=r(27021),o=r(24528),s=r(57334),f=r(85560),l=r(8203);r(65007),r(35124);class u extends s.a{get walletName(){return"Trust Wallet"}constructor(e){super(u.id,e),(0,o.a)(globalThis.window)?this.isInjected=!!globalThis.window.ethereum?.isTrust:this.isInjected=!1}async getConnector(){if(!this.connector){if(this.isInjected){let{TrustConnector:e}=await r.e(88872).then(r.bind(r,88872)),n=new e({chains:this.chains,connectorStorage:this.walletStorage,options:{shimDisconnect:!0}});this.trustConnector=n,this.connector=new a.W(n)}else{let{WalletConnectConnector:e}=await r.e(76044).then(r.bind(r,76044)),n=new e({chains:this.chains,options:{projectId:this.options?.projectId||l.T,storage:this.walletStorage,qrcode:this.options?.qrcode,dappMetadata:this.dappMetadata,qrModalOptions:this.options?.qrModalOptions}});n.getProvider().then(e=>{e.signer.client.on("session_request_sent",()=>
358{this.emit("wc_session_request_sent")})}),this.walletConnectConnector=n,this.connector=new a.W(n)}}return this.connector}async connectWithQrCode(e){await this.getConnector();let n=this.walletConnectConnector;if(!n)throw Error("WalletConnect connector not found");(await n.getProvider()).on("display_uri",n=>{e.onQrCodeUri(n)}),this.connect({chainId:e.chainId}).then(e.onConnected)}}(0,i._)(u,"meta",{name:"Trust Wallet",iconURL:"ipfs://QmNigQbXk7wKZwDcgN38Znj1ZZQ3JEG3DD6fUKLBU8SUTP/trust%20wallet.svg",urls:{chrome:"https://chrome.google.com/webstore/detail/trust-wallet/egjidjbpglichdcondbcbdnbeeppgdph",android:"https://play.google.com/store/apps/details?id=com.wallet.crypto.trustapp",ios:"https://apps.apple.com/us/app/trust-crypto-bitcoin-wallet/id1288339409"}}),(0,i._)(u,"id",f.w.trust)},36901:function(e,n,r){"use strict";r.d(n,{b:function(){return l}});var i=r(46795),a=r(27021),o=r(57334),s=r(8203),f=r(85560);r(65007),r(35124);class l extends o.a{get walletName(){return"WalletConnect"}constructor(e){super(e?.walletId||l.id,e),(0,i._)(this,"_maybeThrowError",e=>{if(e)throw e}),(0,i._)(this,"_onConnect",e=>{if(this._provider=e.provider,!this._provider)throw Error("WalletConnect provider not found after connecting.")}),(0,i._)(this,"_onDisconnect",()=>{this._removeListeners()}),(0,i._)(this,"_onChange",async e=>{e.chain||e.account}),(0,i._)(this,"_onMessage",e=>{"display_uri"===e.type&&this.emit("display_uri",e.data)}),(0,i._)(this,"_onSessionRequestSent",()=>{this.emit("wc_session_request_sent")}),this.projectId=e?.projectId||s.T,this.qrcode=e?.qrcode!==!1}async getConnector(){if(!this.connector){let{WalletConnectConnector:e}=await r.e(76044).then(r.bind(r,76044));this._walletConnectConnector=new e({chains:this.chains,options:{qrcode:this.qrcode,projectId:this.projectId,dappMetadata:this.dappMetadata,storage:this.walletStorage,qrModalOptions:this.options?.qrModalOptions}}),this.connector=new a.W(this._walletConnectConnector),this._provider=await this._walletConnectConnector.getProvider(),this._setupListeners()}return this.connector}_setupListeners(){this._walletConnectConnector&&(this._removeListeners(),this._walletConnectConnector.on("connect",this._onConnect),this._walletConnectConnector.on("disconnect",this._onDisconnect),this._walletConnectConnector.on("change",this._onChange),this._walletConnectConnector.on("message",this._onMessage),this._provider?.signer.client.on("session_request_sent",this._onSessionRequestSent))}_removeListeners(){this._walletConnectConnector&&(this._walletConnectConnector.removeListener("connect",this._onConnect),this._walletConnectConnector.removeListener("disconnect",this._onDisconnect),this._walletConnectConnector.removeListener("change",this._onChange),this._walletConnectConnector.removeListener("message",this._onMessage),this._provider?.signer.client.removeListener("session_request_sent",this._onSessionRequestSent))}async connectWithQrCode(e){await this.getConnector();let n=this._walletConnectConnector;if(!n)throw Error("WalletConnect connector not found");n.showWalletConnectModal=!1,(await n.getProvider()).on("display_uri",n=>{e.onQrCodeUri(n)}),this.connect({chainId:e.chainId}).then(e.onConnected)}async connectWithModal(e){await this.getConnector();let n=this._walletConnectConnector;if(!n)throw Error("WalletConnect connector not found");n.showWalletConnectModal=!0,await n.initProvider(),await this.connect({chainId:e?.chainId})}}(0,i._)(l,"id",f.w.walletConnect),(0,i._)(l,"meta",{name:"WalletConnect",iconURL:"ipfs://QmX58KPRaTC9JYZ7KriuBzeoEaV2P9eZcA3qbFnTHZazKw/wallet-connect.svg"})},44758:function(e,n,r){"use strict";r.d(n,{g:function(){return l}});var i=r(46795),a=r(27021),o=r(57334),s=r(24528),f=r(8203);r(65007),r(35124);class l extends o.a{get walletName(){return"Zerion Wallet"}constructor(e){super(l.id,e),(0,s.a)(globalThis.window)?this.isInjected=!!globalThis.window.ethereum?.isZerion:this.isInjected=!1}async getConnector(){if(!this.connector){if(this.isInjected){let{ZerionConnector:e}=await r.e(5442).then(r.bind(r,5442)),n=new e({chains:this.chains,connectorStorage:this.walletStorage,options:{shimDisconnect:!0}});this.zerionConnector=n,this.connector=new a.W(n)}else{let{WalletConnectConnector:e}=await r.e(76044).then(r.bind(r,76044)),n=new e({chains:this.chains,options:{projectId:this.options?.projectId||f.T,storage:this.walletStorage,qrcode:this.options?.qrcode,dappMetadata:this.dappMetadata,qrModalOptions:this.options?.qrModalOptions}});n.getProvider().then(e=>{e.signer.client.on("session_request_sent",()=>
358{this.emit("wc_session_request_sent")})}),this.walletConnectConnector=n,this.connector=new a.W(n)}}return this.connector}async connectWithQrCode(e){await this.getConnector();let n=this.walletConnectConnector;if(!n)throw Error("WalletConnect connector not found");(await n.getProvider()).on("display_uri",n=>{e.onQrCodeUri(n)}),this.connect({chainId:e.chainId}).then(e.onConnected)}}(0,i._)(l,"id","zerion"),(0,i._)(l,"meta",{name:"Zerion Wallet",iconURL:"ipfs://Qmb1LhNtMUkzbgk1V8ZiUSRXjMJGRkS5HH3R71KyRgjdBG/zerion.png",urls:{chrome:"https://zerion.io/extension",android:"https://link.zerion.io/901o6IN0jqb",ios:"https://link.zerion.io/a11o6IN0jqb"}})},53623:function(e){"use strict";var n=Object.prototype.hasOwnProperty,r="~";function i(){}function a(e,n,r){this.fn=e,this.context=n,this.once=r||!1}function o(e,n,i,o,s){if("function"!=typeof i)throw TypeError("The listener must be a function");var f=new a(i,o||e,s),l=r?r+n:n;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],f]:e._events[l].push(f):(e._events[l]=f,e._eventsCount++),e}function s(e,n){0==--e._eventsCount?e._events=new i:delete e._events[n]}function f(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(r=!1)),f.prototype.eventNames=function(){var e,i,a=[];if(0===this._eventsCount)return a;for(i in e=this._events)n.call(e,i)&&a.push(r?i.slice(1):i);return Object.getOwnPropertySymbols?a.concat(Object.getOwnPropertySymbols(e)):a},f.prototype.listeners=function(e){var n=r?r+e:e,i=this._events[n];if(!i)return[];if(i.fn)return[i.fn];for(var a=0,o=i.length,s=Array(o);a<o;a++)s[a]=i[a].fn;return s},f.prototype.listenerCount=function(e){var n=r?r+e:e,i=this._events[n];return i?i.fn?1:i.length:0},f.prototype.emit=function(e,n,i,a,o,s){var f=r?r+e:e;if(!this._events[f])return!1;var l,u,c=this._events[f],d=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,n),!0;case 3:return c.fn.call(c.context,n,i),!0;case 4:return c.fn.call(c.context,n,i,a),!0;case 5:return c.fn.call(c.context,n,i,a,o),!0;case 6:return c.fn.call(c.context,n,i,a,o,s),!0}for(u=1,l=Array(d-1);u<d;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var p,h=c.length;for(u=0;u<h;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),d){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,n);break;case 3:c[u].fn.call(c[u].context,n,i);break;case 4:c[u].fn.call(c[u].context,n,i,a);break;default:if(!l)for(p=1,l=Array(d-1);p<d;p++)l[p-1]=arguments[p];c[u].fn.apply(c[u].context,l)}}return!0},f.prototype.on=function(e,n,r){return o(this,e,n,r,!1)},f.prototype.once=function(e,n,r){return o(this,e,n,r,!0)},f.prototype.removeListener=function(e,n,i,a){var o=r?r+e:e;if(!this._events[o])return this;if(!n)return s(this,o),this;var f=this._events[o];if(f.fn)f.fn!==n||a&&!f.once||i&&f.context!==i||s(this,o);else{for(var l=0,u=[],c=f.length;l<c;l++)(f[l].fn!==n||a&&!f[l].once||i&&f[l].context!==i)&&u.push(f[l]);u.length?this._events[o]=1===u.length?u[0]:u:s(this,o)}return this},f.prototype.removeAllListeners=function(e){var n;return e?(n=r?r+e:e,this._events[n]&&s(this,n)):(this._events=new i,this._eventsCount=0),this},f.prototype.off=f.prototype.removeListener,f.prototype.addListener=f.prototype.on,f.prefixed=r,f.EventEmitter=f,e.exports=f},40926:function(e,n,r){"use strict";function i(){return(null===r.g||void 0===r.g?void 0:r.g.crypto)||(null===r.g||void 0===r.g?void 0:r.g.msCrypto)||{}}function a(){let e=i();return e.subtle||e.webkitSubtle}Object.defineProperty(n,"__esModule",{value:!0}),n.isBrowserCryptoAvailable=n.getSubtleCrypto=n.getBrowerCrypto=void 0,n.getBrowerCrypto=i,n.getSubtleCrypto=a,n.isBrowserCryptoAvailable=function(){return!!i()&&!!a()}},88618:function(e,n,r){"use strict";var i=r(34155);function a(){return"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product}function o(){return void 0!==i&&void 0!==i.versions&&void 0!==i.versions.node}Object.defineProperty(n,"__esModule",{value:!0}),n.isBrowser=n.isNode=n.isReactNative=void 0,n.isReactNative=a,n.isNode=o,n.isBrowser=function(){return!a()&&!o()}},1468:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});let i=r(70655);i.__exportStar(r(40926),n),i.__exportStar(r(88618),n)},38200:function(e,n,r){"use strict";r.d(n,{q:function(){return i}});class i{}},79806:function(e,n,r){"use strict";r.d(n,{CA:function(){return a},JV:function(){return f},O4:function(){return i},dQ:function(){return o},xK:function(){return s}});let i="INTERNAL_ERROR",a="SERVER_ERROR",o=[-32700,-32600,-32601,-32602,-32603],s={PARSE_ERROR:{code:-32700,message:"Parse error"},INVALID_REQUEST:{code:-32600,message:"Invalid Request"},METHOD_NOT_FOUND:{code:-32601,message:"Method not found"},INVALID_PARAMS:{code:-32602,message:"Invalid params"},[i]:{code:-32603,message:"Internal error"},[a]:{code:-32e3,message:"Server error"}},f=a},9698:function(e,n,r){"use strict";var i=r(1468);r.o(i,"IJsonRpcProvider")&&r.d(n,{IJsonRpcProvider:function(){return i.IJsonRpcProvider}}),r.o(i,"formatJsonRpcError")&&r.d(n,{formatJsonRpcError:function(){return i.formatJsonRpcError}}),r.o(i,"formatJsonRpcRequest")&&r.d(n,{formatJsonRpcRequest:function(){return i.formatJsonRpcRequest}}),r.o(i,"formatJsonRpcResult")&&r.d(n,{formatJsonRpcResult:function(){return i.formatJsonRpcResult}}),r.o(i,"getBigIntRpcId")&&r.d(n,{getBigIntRpcId:function(){return i.getBigIntRpcId}}),r.o(i,"isHttpUrl")&&r.d(n,{isHttpUrl:function(){return i.isHttpUrl}}),r.o(i,"isJsonRpcError")&&r.d(n,{isJsonRpcError:function(){return i.isJsonRpcError}}),r.o(i,"isJsonRpcRequest")&&r.d(n,{isJsonRpcRequest:function(){return i.isJsonRpcRequest}}),r.o(i,"isJsonRpcResponse")&&r.d(n,{isJsonRpcResponse:function(){return i.isJsonRpcResponse}}),r.o(i,"isJsonRpcResult")&&r.d(n,{isJsonRpcResult:function(){return i.isJsonRpcResult}}),r.o(i,"isLocalhostUrl")&&r.d(n,{isLocalhostUrl:function(){return i.isLocalhostUrl}}),r.o(i,"isReactNative")&&r.d(n,{isReactNative:function(){return i.isReactNative}}),r.o(i,"isWsUrl")&&r.d(n,{isWsUrl:function(){return i.isWsUrl}}),r.o(i,"payloadId")&&r.d(n,{payloadId:function(){return i.payloadId}})},90110:function(e,n,r){"use strict";r.d(n,{CX:function(){return f},L2:function(){return s},by:function(){return o},i5:function(){return a}});var i=r(79806);function a(e){return i.dQ.includes(e)}function o(e){return Object.keys(i.xK).includes(e)?i.xK[e]:i.xK[i.JV]}function s(e){return Object.values(i.xK).find(n=>n.code===e)||i.xK[i.JV]}function f(e,n,r){return e.message.includes("getaddrinfo ENOTFOUND")||e.message.includes("connect ECONNREFUSED")?Error(`Unavailable ${r} RPC url at ${n}`):e}},71937:function(e,n,r){"use strict";r.d(n,{CS:function(){return s},RI:function(){return u},o0:function(){return o},sT:function(){return f},tm:function(){return l}});var i=r(90110),a=r(79806);
358function o(e=3){return Date.now()*Math.pow(10,e)+Math.floor(Math.random()*Math.pow(10,e))}function s(e=6){return BigInt(o(e))}function f(e,n,r){return{id:r||o(),jsonrpc:"2.0",method:e,params:n}}function l(e,n){return{id:e,jsonrpc:"2.0",result:n}}function u(e,n,r){var o;return{id:e,jsonrpc:"2.0",error:void 0===(o=n)?(0,i.by)(a.O4):("string"==typeof o&&(o=Object.assign(Object.assign({},(0,i.by)(a.CA)),{message:o})),void 0!==r&&(o.data=r),(0,i.i5)(o.code)&&(o=(0,i.L2)(o.code)),o)}}},56186:function(e,n,r){"use strict";r.d(n,{IJsonRpcProvider:function(){return s.x0},formatJsonRpcError:function(){return o.RI},formatJsonRpcRequest:function(){return o.sT},formatJsonRpcResult:function(){return o.tm},getBigIntRpcId:function(){return o.CS},isHttpUrl:function(){return f.jK},isJsonRpcError:function(){return l.jg},isJsonRpcRequest:function(){return l.DW},isJsonRpcResponse:function(){return l.u},isJsonRpcResult:function(){return l.k4},isLocalhostUrl:function(){return f.JF},isWsUrl:function(){return f.UZ},parseConnectionError:function(){return i.CX},payloadId:function(){return o.o0}}),r(79806);var i=r(90110),a=r(9698);r.o(a,"IJsonRpcProvider")&&r.d(n,{IJsonRpcProvider:function(){return a.IJsonRpcProvider}}),r.o(a,"formatJsonRpcError")&&r.d(n,{formatJsonRpcError:function(){return a.formatJsonRpcError}}),r.o(a,"formatJsonRpcRequest")&&r.d(n,{formatJsonRpcRequest:function(){return a.formatJsonRpcRequest}}),r.o(a,"formatJsonRpcResult")&&r.d(n,{formatJsonRpcResult:function(){return a.formatJsonRpcResult}}),r.o(a,"getBigIntRpcId")&&r.d(n,{getBigIntRpcId:function(){return a.getBigIntRpcId}}),r.o(a,"isHttpUrl")&&r.d(n,{isHttpUrl:function(){return a.isHttpUrl}}),r.o(a,"isJsonRpcError")&&r.d(n,{isJsonRpcError:function(){return a.isJsonRpcError}}),r.o(a,"isJsonRpcRequest")&&r.d(n,{isJsonRpcRequest:function(){return a.isJsonRpcRequest}}),r.o(a,"isJsonRpcResponse")&&r.d(n,{isJsonRpcResponse:function(){return a.isJsonRpcResponse}}),r.o(a,"isJsonRpcResult")&&r.d(n,{isJsonRpcResult:function(){return a.isJsonRpcResult}}),r.o(a,"isLocalhostUrl")&&r.d(n,{isLocalhostUrl:function(){return a.isLocalhostUrl}}),r.o(a,"isReactNative")&&r.d(n,{isReactNative:function(){return a.isReactNative}}),r.o(a,"isWsUrl")&&r.d(n,{isWsUrl:function(){return a.isWsUrl}}),r.o(a,"payloadId")&&r.d(n,{payloadId:function(){return a.payloadId}});var o=r(71937),s=r(64085),f=r(46119),l=r(84733)},64085:function(e,n,r){"use strict";r.d(n,{x0:function(){return o}});class i{}class a extends i{constructor(){super()}}class o extends a{constructor(e){super()}}},46119:function(e,n,r){"use strict";function i(e,n){let r=function(e){let n=e.match(RegExp(/^\w+:/,"gi"));if(n&&n.length)return n[0]}(e);return void 0!==r&&new RegExp(n).test(r)}function a(e){return i(e,"^https?:")}function o(e){return i(e,"^wss?:")}function s(e){return RegExp("wss?://localhost(:d{2,5})?").test(e)}r.d(n,{JF:function(){return s},UZ:function(){return o},jK:function(){return a}})},84733:function(e,n,r){"use strict";function i(e){return"object"==typeof e&&"id"in e&&"jsonrpc"in e&&"2.0"===e.jsonrpc}function a(e){return i(e)&&"method"in e}function o(e){return i(e)&&(s(e)||f(e))}function s(e){return"result"in e}function f(e){return"error"in e}r.d(n,{DW:function(){return a},jg:function(){return f},k4:function(){return s},u:function(){return o}})},28939:function(e,n,r){"use strict";r.d(n,{Z:function(){return u}});var i=r(17187),a=r(85094),o=r(56186);let s=()=>"u">typeof WebSocket||"u">typeof r.g&&"u">typeof r.g.WebSocket||"u">typeof window&&"u">typeof window.WebSocket||"u">typeof self&&"u">typeof self.WebSocket,f=e=>e.split("?")[0],l="u">typeof WebSocket?WebSocket:"u">typeof r.g&&"u">typeof r.g.WebSocket?r.g.WebSocket:"u">typeof window&&"u">typeof window.WebSocket?window.WebSocket:"u">typeof self&&"u">typeof self.WebSocket?self.WebSocket:r(72030);class u{constructor(e){if(this.url=e,this.events=new i.EventEmitter,this.registering=!1,!(0,o.isWsUrl)(e))throw Error(`Provided URL is not compatible with WebSocket connection: ${e}`);this.url=e}get connected(){return"u">typeof this.socket}get connecting(){return this.registering}on(e,n){this.events.on(e,n)}once(e,n){this.events.once(e,n)}off(e,n){this.events.off(e,n)}removeListener(e,n){this.events.removeListener(e,n)}async open(e=this.url){await this.register(e)}
358async close(){return new Promise((e,n)=>{if(typeof this.socket>"u"){n(Error("Connection already closed"));return}this.socket.onclose=n=>{this.onClose(n),e()},this.socket.close()})}async send(e){typeof this.socket>"u"&&(this.socket=await this.register());try{this.socket.send((0,a.u)(e))}catch(n){this.onError(e.id,n)}}register(e=this.url){if(!(0,o.isWsUrl)(e))throw Error(`Provided URL is not compatible with WebSocket connection: ${e}`);if(this.registering){let e=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=e||this.events.listenerCount("open")>=e)&&this.events.setMaxListeners(e+1),new Promise((e,n)=>{this.events.once("register_error",e=>{this.resetMaxListeners(),n(e)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.socket>"u")return n(Error("WebSocket connection is missing or invalid"));e(this.socket)})})}return this.url=e,this.registering=!0,new Promise((n,r)=>{let i=new URLSearchParams(e).get("origin"),a=(0,o.isReactNative)()?{headers:{origin:i}}:{rejectUnauthorized:!(0,o.isLocalhostUrl)(e)},f=new l(e,[],a);s()?f.onerror=e=>{r(this.emitError(e.error))}:f.on("error",e=>{r(this.emitError(e))}),f.onopen=()=>{this.onOpen(f),n(f)}})}onOpen(e){e.onmessage=e=>this.onPayload(e),e.onclose=e=>this.onClose(e),this.socket=e,this.registering=!1,this.events.emit("open")}onClose(e){this.socket=void 0,this.registering=!1,this.events.emit("close",e)}onPayload(e){if(typeof e.data>"u")return;let n="string"==typeof e.data?(0,a.D)(e.data):e.data;this.events.emit("payload",n)}onError(e,n){let r=this.parseError(n),i=r.message||r.toString(),a=(0,o.formatJsonRpcError)(e,i);this.events.emit("payload",a)}parseError(e,n=this.url){return(0,o.parseConnectionError)(e,f(n),"WS")}resetMaxListeners(){this.events.getMaxListeners()>10&&this.events.setMaxListeners(10)}emitError(e){let n=this.parseError(Error(e?.message||`WebSocket connection failed for host: ${f(this.url)}`));return this.events.emit("register_error",n),n}}},72030:function(e){"use strict";e.exports=function(){throw Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}},12044:function(e,n,r){"use strict";r.d(n,{Ep:function(){return A},Fd:function(){return M},Rt:function(){return E},gw:function(){return a.a},jI:function(){return C}});var i=r(36559),a=r.n(i),o=r(85094);let s={level:"info"},f="custom_context";class l{constructor(e){this.nodeValue=e,this.sizeInBytes=new TextEncoder().encode(this.nodeValue).length,this.next=null}get value(){return this.nodeValue}get size(){return this.sizeInBytes}}class u{constructor(e){this.head=null,this.tail=null,this.lengthInNodes=0,this.maxSizeInBytes=e,this.sizeInBytes=0}append(e){let n=new l(e);if(n.size>this.maxSizeInBytes)throw Error(`[LinkedList] Value too big to insert into list: ${e} with size ${n.size}`);for(;this.size+n.size>this.maxSizeInBytes;)this.shift();this.head?this.tail&&(this.tail.next=n):this.head=n,this.tail=n,this.lengthInNodes++,this.sizeInBytes+=n.size}shift(){if(!this.head)return;let e=this.head;this.head=this.head.next,this.head||(this.tail=null),this.lengthInNodes--,this.sizeInBytes-=e.size}toArray(){let e=[],n=this.head;for(;null!==n;)e.push(n.value),n=n.next;return e}get length(){return this.lengthInNodes}get size(){return this.sizeInBytes}toOrderedArray(){return Array.from(this)}[Symbol.iterator](){let e=this.head;return{next:()=>{if(!e)return{done:!0,value:null};let n=e.value;return e=e.next,{done:!1,value:n}}}}}class c{constructor(e,n=1024e3){this.level=e??"error",this.levelValue=i.levels.values[this.level],this.MAX_LOG_SIZE_IN_BYTES=n,this.logs=new u(this.MAX_LOG_SIZE_IN_BYTES)}forwardToConsole(e,n){n===i.levels.values.error?console.error(e):n===i.levels.values.warn?console.warn(e):n===i.levels.values.debug?console.debug(e):n===i.levels.values.trace?console.trace(e):console.log(e)}appendToLogs(e){this.logs.append((0,o.u)({timestamp:new Date().toISOString(),log:e}));let n="string"==typeof e?JSON.parse(e).level:e.level;n>=this.levelValue&&this.forwardToConsole(e,n)}getLogs(){return this.logs}clearLogs(){this.logs=new u(this.MAX_LOG_SIZE_IN_BYTES)}getLogArray(){return Array.from(this.logs)}logsToBlob(e){let n=this.getLogArray();return n.push((0,o.u)({extraMetadata:e})),new Blob(n,{type:"application/json"})}}class d{constructor(e,n=1024e3){this.baseChunkLogger=new c(e,n)}write(e){this.baseChunkLogger.appendToLogs(e)}getLogs(){return this.baseChunkLogger.getLogs()}clearLogs(){this.baseChunkLogger.clearLogs()}getLogArray(){return this.baseChunkLogger.getLogArray()}logsToBlob(e){return this.baseChunkLogger.logsToBlob(e)}downloadLogsBlobInBrowser(e){let n=URL.createObjectURL(this.logsToBlob(e)),r=document.createElement("a");r.href=n,r.download=`walletconnect-logs-${new Date().toISOString()}.txt`,document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(n)}}class p{constructor(e,n=1024e3){this.baseChunkLogger=new c(e,n)}write(e){this.baseChunkLogger.appendToLogs(e)}getLogs(){return this.baseChunkLogger.getLogs()}clearLogs(){this.baseChunkLogger.clearLogs()}getLogArray(){return this.baseChunkLogger.getLogArray()}logsToBlob(e){return this.baseChunkLogger.logsToBlob(e)}}var h=Object.defineProperty,y=Object.defineProperties,m=Object.getOwnPropertyDescriptors,g=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable,w=(e,n,r)=>n in e?h(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,x=(e,n)=>{for(var r in n||(n={}))b.call(n,r)&&w(e,r,n[r]);if(g)for(var r of g(n))v.call(n,r)&&w(e,r,n[r]);return e},T=(e,n)=>y(e,m(n));function C(e){return T(x({},e),{level:e?.level||s.level})}function M(e,n=f){return typeof e.bindings>"u"?function(e,n=f){return e[n]||""}(e,n):e.bindings().context||""}function A(e,n,r=f){let i=function(e,n,r=f){let i=M(e,r);return i.trim()?`${i}/${n}`:n}(e,n,r);return function(e,n,r=f){return e[r]=n,e}(e.child({context:i}),i,r)}function E(e){return"u">typeof e.loggerOverride&&"string"!=typeof e.loggerOverride?{logger:e.loggerOverride,chunkLoggerController:null}:"u">typeof window?function(e){var n,r;let i=new d(null==(n=e.opts)?void 0:n.level,e.maxSizeInBytes);return{logger:a()(T(x({},e.opts),{level:"trace",browser:T(x({},null==(r=e.opts)?void 0:r.browser),{write:e=>i.write(e)})})),chunkLoggerController:i}}(e):function(e){var n;let r=new p(null==(n=e.opts)?void 0:n.level,e.maxSizeInBytes);return{logger:a()(T(x({},e.opts),{level:"trace"}),r),chunkLoggerController:r}}(e)}},37968:function(e,n,r){"use strict";r.d(n,{iO:function(){return i}});let i={waku:{publish:"waku_publish",batchPublish:"waku_batchPublish",subscribe:"waku_subscribe",batchSubscribe:"waku_batchSubscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe",batchUnsubscribe:"waku_batchUnsubscribe",batchFetchMessages:"waku_batchFetchMessages"},irn:{publish:"irn_publish",batchPublish:"irn_batchPublish",subscribe:"irn_subscribe",batchSubscribe:"irn_batchSubscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe",batchUnsubscribe:"irn_batchUnsubscribe",batchFetchMessages:"irn_batchFetchMessages"},iridium:{publish:"iridium_publish",batchPublish:"iridium_batchPublish",subscribe:"iridium_subscribe",batchSubscribe:"iridium_batchSubscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe",batchUnsubscribe:"iridium_batchUnsubscribe",batchFetchMessages:"iridium_batchFetchMessages"}}},21878:function(e,n,r){"use strict";r.d(n,{encodeIss:function(){return h},generateKeyPair:function(){return y},signJWT:function(){return m}});var i=r(17265),a=r(31416),o=r(66736);let s="base64url",f="base58btc";var l=r(20605),u=r(92263),c=r(52217),d=r(85094);function p(e){return(0,u.toString)((0,c.fromString)((0,d.u)(e),"utf8"),s)}function h(e){let n=(0,c.fromString)("K36",f);return["did","key","z"+(0,u.toString)((0,l.concat)([n,e]),f)].join(":")}function y(e=(0,a.randomBytes)(32)){return i._w(e)}async function m(e,n,r,a,f=(0,o.fromMiliseconds)(Date.now())){var l,d,y;let m={alg:"EdDSA",typ:"JWT"},g={iss:h(a.publicKey),sub:e,aud:n,iat:f,exp:f+r},b=(l={header:m,payload:g},(0,c.fromString)([p(l.header),p(l.payload)].join("."),"utf8"));return[p((d={header:m,payload:g,signature:i.Xx(a.secretKey,b)}).header),p(d.payload),(y=d.signature,(0,u.toString)(y,s))].join(".")}r(43014)},43014:function(){},85094:function(e,n,r){"use strict";r.d(n,{D:function(){return o},u:function(){return s}});let i=e=>JSON.stringify(e,(e,n)=>"bigint"==typeof n?n.toString()+"n":n),a=e=>JSON.parse(e.replace(/([\[:])?(\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\}\]])/g,'$1"$2n"$3'),(e,n)=>"string"==typeof n&&n.match(/^\d+n$/)?BigInt(n.substring(0,n.length-1)):n);function o(e){if("string"!=typeof e)throw Error(`Cannot safe json parse value of type ${typeof e}`);try{return a(e)}catch(n){return e}}function s(e){return"string"==typeof e?e:i(e)||""}},36900:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});let i=r(70655);i.__exportStar(r(46869),n),i.__exportStar(r(88033),n)},46869:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ONE_THOUSAND=n.ONE_HUNDRED=void 0,n.ONE_HUNDRED=100,n.ONE_THOUSAND=1e3},88033:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ONE_YEAR=n.FOUR_WEEKS=n.THREE_WEEKS=n.TWO_WEEKS=n.ONE_WEEK=n.THIRTY_DAYS=n.SEVEN_DAYS=n.FIVE_DAYS=n.THREE_DAYS=n.ONE_DAY=n.TWENTY_FOUR_HOURS=n.TWELVE_HOURS=n.SIX_HOURS=n.THREE_HOURS=n.ONE_HOUR=n.SIXTY_MINUTES=n.THIRTY_MINUTES=n.TEN_MINUTES=n.FIVE_MINUTES=n.ONE_MINUTE=n.SIXTY_SECONDS=n.THIRTY_SECONDS=n.TEN_SECONDS=n.FIVE_SECONDS=n.ONE_SECOND=void 0,n.ONE_SECOND=1,n.FIVE_SECONDS=5,n.TEN_SECONDS=10,n.THIRTY_SECONDS=30,n.SIXTY_SECONDS=60,n.ONE_MINUTE=n.SIXTY_SECONDS,n.FIVE_MINUTES=5*n.ONE_MINUTE,n.TEN_MINUTES=10*n.ONE_MINUTE,n.THIRTY_MINUTES=30*n.ONE_MINUTE,n.SIXTY_MINUTES=60*n.ONE_MINUTE,n.ONE_HOUR=n.SIXTY_MINUTES,n.THREE_HOURS=3*n.ONE_HOUR,n.SIX_HOURS=6*n.ONE_HOUR,n.TWELVE_HOURS=12*n.ONE_HOUR,n.TWENTY_FOUR_HOURS=24*n.ONE_HOUR,n.ONE_DAY=n.TWENTY_FOUR_HOURS,n.THREE_DAYS=3*n.ONE_DAY,n.FIVE_DAYS=5*n.ONE_DAY,n.SEVEN_DAYS=7*n.ONE_DAY,n.THIRTY_DAYS=30*n.ONE_DAY,n.ONE_WEEK=n.SEVEN_DAYS,n.TWO_WEEKS=2*n.ONE_WEEK,n.THREE_WEEKS=3*n.ONE_WEEK,n.FOUR_WEEKS=4*n.ONE_WEEK,n.ONE_YEAR=365*n.ONE_DAY},66736:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});let i=r(70655);i.__exportStar(r(44273),n),i.__exportStar(r(47001),n),i.__exportStar(r(52939),n),i.__exportStar(r(36900),n)},52939:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),r(70655).__exportStar(r(88766),n)},88766:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.IWatch=void 0;class r{}n.IWatch=r},83207:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.fromMiliseconds=n.toMiliseconds=void 0;let i=r(36900);n.toMiliseconds=function(e){return e*i.ONE_THOUSAND},n.fromMiliseconds=function(e){return Math.floor(e/i.ONE_THOUSAND)}},83873:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.delay=void 0,n.delay=function(e){return new Promise(n=>{setTimeout(()=>{n(!0)},e)})}},44273:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});let i=r(70655);i.__exportStar(r(83873),n),i.__exportStar(r(83207),n)},47001:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Watch=void 0;
358class r{constructor(){this.timestamps=new Map}start(e){if(this.timestamps.has(e))throw Error(`Watch already started for label: ${e}`);this.timestamps.set(e,{started:Date.now()})}stop(e){let n=this.get(e);if(void 0!==n.elapsed)throw Error(`Watch already stopped for label: ${e}`);let r=Date.now()-n.started;this.timestamps.set(e,{started:n.started,elapsed:r})}get(e){let n=this.timestamps.get(e);if(void 0===n)throw Error(`No timestamp found for label: ${e}`);return n}elapsed(e){let n=this.get(e);return n.elapsed||Date.now()-n.started}}n.Watch=r,n.default=r},66667:function(e,n){"use strict";function r(e){let n;return"undefined"!=typeof window&&void 0!==window[e]&&(n=window[e]),n}function i(e){let n=r(e);if(!n)throw Error(`${e} is not defined in Window`);return n}Object.defineProperty(n,"__esModule",{value:!0}),n.getLocalStorage=n.getLocalStorageOrThrow=n.getCrypto=n.getCryptoOrThrow=n.getLocation=n.getLocationOrThrow=n.getNavigator=n.getNavigatorOrThrow=n.getDocument=n.getDocumentOrThrow=n.getFromWindowOrThrow=n.getFromWindow=void 0,n.getFromWindow=r,n.getFromWindowOrThrow=i,n.getDocumentOrThrow=function(){return i("document")},n.getDocument=function(){return r("document")},n.getNavigatorOrThrow=function(){return i("navigator")},n.getNavigator=function(){return r("navigator")},n.getLocationOrThrow=function(){return i("location")},n.getLocation=function(){return r("location")},n.getCryptoOrThrow=function(){return i("crypto")},n.getCrypto=function(){return r("crypto")},n.getLocalStorageOrThrow=function(){return i("localStorage")},n.getLocalStorage=function(){return r("localStorage")}},58790:function(e,n,r){"use strict";n.D=void 0;let i=r(66667);n.D=function(){let e,n,r;try{e=i.getDocumentOrThrow(),n=i.getLocationOrThrow()}catch(e){return null}function a(...n){let r=e.getElementsByTagName("meta");for(let e=0;e<r.length;e++){let i=r[e],a=["itemprop","property","name"].map(e=>i.getAttribute(e)).filter(e=>!!e&&n.includes(e));if(a.length&&a){let e=i.getAttribute("content");if(e)return e}}return""}let o=((r=a("name","og:site_name","og:title","twitter:title"))||(r=e.title),r),s=a("description","og:description","twitter:description","keywords");return{description:s,url:n.origin,icons:function(){let r=e.getElementsByTagName("link"),i=[];for(let e=0;e<r.length;e++){let a=r[e],o=a.getAttribute("rel");if(o&&o.toLowerCase().indexOf("icon")>-1){let e=a.getAttribute("href");if(e){if(-1===e.toLowerCase().indexOf("https:")&&-1===e.toLowerCase().indexOf("http:")&&0!==e.indexOf("//")){let r=n.protocol+"//"+n.host;if(0===e.indexOf("/"))r+=e;else{let i=n.pathname.split("/");i.pop(),r+=i.join("/")+"/"+e}i.push(r)}else if(0===e.indexOf("//")){let r=n.protocol+e;i.push(r)}else i.push(e)}}}return i}(),name:o}}},78826:function(e){"use strict";!function(n){function r(e){return parseInt(e)===e}function i(e){if(!r(e.length))return!1;for(var n=0;n<e.length;n++)if(!r(e[n])||e[n]<0||e[n]>255)return!1;return!0}function a(e,n){if(e.buffer&&ArrayBuffer.isView(e)&&"Uint8Array"===e.name)return n&&(e=e.slice?e.slice():Array.prototype.slice.call(e)),e;if(Array.isArray(e)){if(!i(e))throw Error("Array contains invalid value: "+e);return new Uint8Array(e)}if(r(e.length)&&i(e))return new Uint8Array(e);throw Error("unsupported array-like object")}function o(e){return new Uint8Array(e)}function s(e,n,r,i,a){(null!=i||null!=a)&&(e=e.slice?e.slice(i,a):Array.prototype.slice.call(e,i,a)),n.set(e,r)}var f,l=(f="0123456789abcdef",{toBytes:function(e){for(var n=[],r=0;r<e.length;r+=2)n.push(parseInt(e.substr(r,2),16));return n},fromBytes:function(e){for(var n=[],r=0;r<e.length;r++){var i=e[r];n.push(f[(240&i)>>4]+f[15&i])}return n.join("")}}),u={16:10,24:12,32:14},c=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],d=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,23
3581,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],p=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],h=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,16733
35813503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],y=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],m=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389
358623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],g=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],b=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,
358632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],v=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],w=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,12974
35803050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],x=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,60
3587398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],T=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],C=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,12
35801765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],M=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],A=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861
358748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function E(e){for(var n=[],r=0;r<e.length;r+=4)n.push(e[r]<<24|e[r+1]<<16|e[r+2]<<8|e[r+3]);return n}var I=function(e){if(!(this instanceof I))throw Error("AES must be instanitated with `new`");Object.defineProperty(this,"key",{value:a(e,!0)}),this._prepare()};I.prototype._prepare=function(){var e=u[this.key.length];if(null==e)throw Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var n=0;n<=e;n++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);for(var r=(e+1)*4,i=this.key.length/4,a=E(this.key),n=0;n<i;n++)o=n>>2,this._Ke[o][n%4]=a[n],this._Kd[e-o][n%4]=a[n];for(var o,s,f=0,l=i;l<r;){if(s=a[i-1],a[0]^=d[s>>16&255]<<24^d[s>>8&255]<<16^d[255&s]<<8^d[s>>24&255]^c[f]<<24,f+=1,8!=i)for(var n=1;n<i;n++)a[n]^=a[n-1];else{for(var n=1;n<i/2;n++)a[n]^=a[n-1];s=a[i/2-1],a[i/2]^=d[255&s]^d[s>>8&255]<<8^d[s>>16&255]<<16^d[s>>24&255]<<24;for(var n=i/2+1;n<i;n++)a[n]^=a[n-1]}for(var p,h,n=0;n<i&&l<r;)p=l>>2,h=l%4,this._Ke[p][h]=a[n],this._Kd[e-p][h]=a[n++],l++}for(var p=1;p<e;p++)for(var h=0;h<4;h++)s=this._Kd[p][h],this._Kd[p][h]=T[s>>24&255]^C[s>>16&255]^M[s>>8&255]^A[255&s]},I.prototype.encrypt=function(e){if(16!=e.length)throw Error("invalid plaintext size (must be 16 bytes)");for(var n=this._Ke.length-1,r=[0,0,0,0],i=E(e),a=0;a<4;a++)i[a]^=this._Ke[0][a];for(var s=1;s<n;s++){for(var a=0;a<4;a++)r[a]=h[i[a]>>24&255]^y[i[(a+1)%4]>>16&255]^m[i[(a+2)%4]>>8&255]^g[255&i[(a+3)%4]]^this._Ke[s][a];i=r.slice()}for(var f,l=o(16),a=0;a<4;a++)f=this._Ke[n][a],l[4*a]=(d[i[a]>>24&255]^f>>24)&255,l[4*a+1]=(d[i[(a+1)%4]>>16&255]^f>>16)&255,l[4*a+2]=(d[i[(a+2)%4]>>8&255]^f>>8)&255,l[4*a+3]=(d[255&i[(a+3)%4]]^f)&255;return l},I.prototype.decrypt=function(e){if(16!=e.length)throw Error("invalid ciphertext size (must be 16 bytes)");
358for(var n=this._Kd.length-1,r=[0,0,0,0],i=E(e),a=0;a<4;a++)i[a]^=this._Kd[0][a];for(var s=1;s<n;s++){for(var a=0;a<4;a++)r[a]=b[i[a]>>24&255]^v[i[(a+3)%4]>>16&255]^w[i[(a+2)%4]>>8&255]^x[255&i[(a+1)%4]]^this._Kd[s][a];i=r.slice()}for(var f,l=o(16),a=0;a<4;a++)f=this._Kd[n][a],l[4*a]=(p[i[a]>>24&255]^f>>24)&255,l[4*a+1]=(p[i[(a+3)%4]>>16&255]^f>>16)&255,l[4*a+2]=(p[i[(a+2)%4]>>8&255]^f>>8)&255,l[4*a+3]=(p[255&i[(a+1)%4]]^f)&255;return l};var S=function(e){if(!(this instanceof S))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new I(e)};S.prototype.encrypt=function(e){if((e=a(e)).length%16!=0)throw Error("invalid plaintext size (must be multiple of 16 bytes)");for(var n=o(e.length),r=o(16),i=0;i<e.length;i+=16)s(e,r,0,i,i+16),s(r=this._aes.encrypt(r),n,i);return n},S.prototype.decrypt=function(e){if((e=a(e)).length%16!=0)throw Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var n=o(e.length),r=o(16),i=0;i<e.length;i+=16)s(e,r,0,i,i+16),s(r=this._aes.decrypt(r),n,i);return n};var k=function(e,n){if(!(this instanceof k))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Block Chaining",this.name="cbc",n){if(16!=n.length)throw Error("invalid initialation vector size (must be 16 bytes)")}else n=o(16);this._lastCipherblock=a(n,!0),this._aes=new I(e)};k.prototype.encrypt=function(e){if((e=a(e)).length%16!=0)throw Error("invalid plaintext size (must be multiple of 16 bytes)");for(var n=o(e.length),r=o(16),i=0;i<e.length;i+=16){s(e,r,0,i,i+16);for(var f=0;f<16;f++)r[f]^=this._lastCipherblock[f];this._lastCipherblock=this._aes.encrypt(r),s(this._lastCipherblock,n,i)}return n},k.prototype.decrypt=function(e){if((e=a(e)).length%16!=0)throw Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var n=o(e.length),r=o(16),i=0;i<e.length;i+=16){s(e,r,0,i,i+16),r=this._aes.decrypt(r);for(var f=0;f<16;f++)n[i+f]=r[f]^this._lastCipherblock[f];s(e,this._lastCipherblock,0,i,i+16)}return n};var N=function(e,n,r){if(!(this instanceof N))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Feedback",this.name="cfb",n){if(16!=n.length)throw Error("invalid initialation vector size (must be 16 size)")}else n=o(16);r||(r=1),this.segmentSize=r,this._shiftRegister=a(n,!0),this._aes=new I(e)};N.prototype.encrypt=function(e){if(e.length%this.segmentSize!=0)throw Error("invalid plaintext size (must be segmentSize bytes)");for(var n,r=a(e,!0),i=0;i<r.length;i+=this.segmentSize){n=this._aes.encrypt(this._shiftRegister);for(var o=0;o<this.segmentSize;o++)r[i+o]^=n[o];s(this._shiftRegister,this._shiftRegister,0,this.segmentSize),s(r,this._shiftRegister,16-this.segmentSize,i,i+this.segmentSize)}return r},N.prototype.decrypt=function(e){if(e.length%this.segmentSize!=0)throw Error("invalid ciphertext size (must be segmentSize bytes)");for(var n,r=a(e,!0),i=0;i<r.length;i+=this.segmentSize){n=this._aes.encrypt(this._shiftRegister);for(var o=0;o<this.segmentSize;o++)r[i+o]^=n[o];s(this._shiftRegister,this._shiftRegister,0,this.segmentSize),s(e,this._shiftRegister,16-this.segmentSize,i,i+this.segmentSize)}return r};var j=function(e,n){if(!(this instanceof j))throw Error("AES must be instanitated with `new`");if(this.description="Output Feedback",this.name="ofb",n){if(16!=n.length)throw Error("invalid initialation vector size (must be 16 bytes)")}else n=o(16);this._lastPrecipher=a(n,!0),this._lastPrecipherIndex=16,this._aes=new I(e)};j.prototype.encrypt=function(e){for(var n=a(e,!0),r=0;r<n.length;r++)16===this._lastPrecipherIndex&&(this._lastPrecipher=this._aes.encrypt(this._lastPrecipher),this._lastPrecipherIndex=0),n[r]^=this._lastPrecipher[this._lastPrecipherIndex++];return n},j.prototype.decrypt=j.prototype.encrypt;var D=function(e){if(!(this instanceof D))throw Error("Counter must be instanitated with `new`");0===e||e||(e=1),"number"==typeof e?(this._counter=o(16),this.setValue(e)):this.setBytes(e)};D.prototype.setValue=function(e){if("number"!=typeof e||parseInt(e)!=e)throw Error("invalid counter value (must be an integer)");for(var n=15;n>=0;--n)this._counter[n]=e%256,e>>=8},D.prototype.setBytes=function(e){if(16!=(e=a(e,!0)).length)throw Error("invalid counter bytes size (must be 16 bytes)");this._counter=e},D.prototype.increment=function(){for(var e=15;e>=0;e--)if(255===this._counter[e])this._counter[e]=0;else{this._counter[e]++;break}};var _=function(e,n){if(!(this instanceof _))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",n instanceof D||(n=new D(n)),this._counter=n,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new I(e)};_.prototype.encrypt=function(e){for(var n=a(e,!0),r=0;r<n.length;r++)16===this._remainingCounterIndex&&(this._remainingCounter=this._aes.encrypt
358(this._counter._counter),this._remainingCounterIndex=0,this._counter.increment()),n[r]^=this._remainingCounter[this._remainingCounterIndex++];return n},_.prototype.decrypt=_.prototype.encrypt,e.exports={AES:I,Counter:D,ModeOfOperation:{ecb:S,cbc:k,cfb:N,ofb:j,ctr:_},utils:{hex:l,utf8:{toBytes:function(e){var n=[],r=0;for(e=encodeURI(e);r<e.length;){var i=e.charCodeAt(r++);37===i?(n.push(parseInt(e.substr(r,2),16)),r+=2):n.push(i)}return a(n)},fromBytes:function(e){for(var n=[],r=0;r<e.length;){var i=e[r];i<128?(n.push(String.fromCharCode(i)),r++):i>191&&i<224?(n.push(String.fromCharCode((31&i)<<6|63&e[r+1])),r+=2):(n.push(String.fromCharCode((15&i)<<12|(63&e[r+1])<<6|63&e[r+2])),r+=3)}return n.join("")}}},padding:{pkcs7:{pad:function(e){var n=16-(e=a(e,!0)).length%16,r=o(e.length+n);s(e,r);for(var i=e.length;i<r.length;i++)r[i]=n;return r},strip:function(e){if((e=a(e,!0)).length<16)throw Error("PKCS#7 invalid length");var n=e[e.length-1];if(n>16)throw Error("PKCS#7 padding byte out of range");for(var r=e.length-n,i=0;i<n;i++)if(e[r+i]!==n)throw Error("PKCS#7 invalid padding byte");var f=o(r);return s(e,f,0,0,r),f}}},_arrayTest:{coerceArray:a,createArray:o,copyArray:s}}}(0)},23541:function(e,n,r){"use strict";r.d(n,{Ry:function(){return u}});var i=new WeakMap,a=new WeakMap,o={},s=0,f=function(e){return e&&(e.host||f(e.parentNode))},l=function(e,n,r,l){var u=(Array.isArray(e)?e:[e]).map(function(e){if(n.contains(e))return e;var r=f(e);return r&&n.contains(r)?r:(console.error("aria-hidden",e,"in not contained inside",n,". Doing nothing"),null)}).filter(function(e){return!!e});o[r]||(o[r]=new WeakMap);var c=o[r],d=[],p=new Set,h=new Set(u),y=function(e){!e||p.has(e)||(p.add(e),y(e.parentNode))};u.forEach(y);var m=function(e){!e||h.has(e)||Array.prototype.forEach.call(e.children,function(e){if(p.has(e))m(e);else try{var n=e.getAttribute(l),o=null!==n&&"false"!==n,s=(i.get(e)||0)+1,f=(c.get(e)||0)+1;i.set(e,s),c.set(e,f),d.push(e),1===s&&o&&a.set(e,!0),1===f&&e.setAttribute(r,"true"),o||e.setAttribute(l,"true")}catch(n){console.error("aria-hidden: cannot operate on ",e,n)}})};return m(n),p.clear(),s++,function(){d.forEach(function(e){var n=i.get(e)-1,o=c.get(e)-1;i.set(e,n),c.set(e,o),n||(a.has(e)||e.removeAttribute(l),a.delete(e)),o||e.removeAttribute(r)}),--s||(i=new WeakMap,i=new WeakMap,a=new WeakMap,o={})}},u=function(e,n,r){void 0===r&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),a=n||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return a?(i.push.apply(i,Array.from(a.querySelectorAll("[aria-live]"))),l(i,a,r,"aria-hidden")):function(){return null}}},9669:function(e,n,r){e.exports=r(51609)},55448:function(e,n,r){"use strict";var i=r(64867),a=r(36026),o=r(4372),s=r(15327),f=r(94097),l=r(84109),u=r(67985),c=r(77874),d=r(82648),p=r(60644),h=r(90205);e.exports=function(e){return new Promise(function(n,r){var y,m=e.data,g=e.headers,b=e.responseType;function v(){e.cancelToken&&e.cancelToken.unsubscribe(y),e.signal&&e.signal.removeEventListener("abort",y)}i.isFormData(m)&&i.isStandardBrowserEnv()&&delete g["Content-Type"];var w=new XMLHttpRequest;if(e.auth){var x=e.auth.username||"",T=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";g.Authorization="Basic "+btoa(x+":"+T)}var C=f(e.baseURL,e.url);function M(){if(w){var i="getAllResponseHeaders"in w?l(w.getAllResponseHeaders()):null;a(function(e){n(e),v()},function(e){r(e),v()},{data:b&&"text"!==b&&"json"!==b?w.response:w.responseText,status:w.status,statusText:w.statusText,headers:i,config:e,request:w}),w=null}}if(w.open(e.method.toUpperCase(),s(C,e.params,e.paramsSerializer),!0),w.timeout=e.timeout,"onloadend"in w?w.onloadend=M:w.onreadystatechange=function(){w&&4===w.readyState&&(0!==w.status||w.responseURL&&0===w.responseURL.indexOf("file:"))&&setTimeout(M)},w.onabort=function(){w&&(r(new d("Request aborted",d.ECONNABORTED,e,w)),w=null)},w.onerror=function(){r(new d("Network Error",d.ERR_NETWORK,e,w,w)),w=null},w.ontimeout=function(){var n=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",i=e.transitional||c;e.timeoutErrorMessage&&(n=e.timeoutErrorMessage),r(new d(n,i.clarifyTimeoutError?d.ETIMEDOUT:d.ECONNABORTED,e,w)),w=null},i.isStandardBrowserEnv()){var A=(e.withCredentials||u(C))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;A&&(g[e.xsrfHeaderName]=A)}
358"setRequestHeader"in w&&i.forEach(g,function(e,n){void 0===m&&"content-type"===n.toLowerCase()?delete g[n]:w.setRequestHeader(n,e)}),i.isUndefined(e.withCredentials)||(w.withCredentials=!!e.withCredentials),b&&"json"!==b&&(w.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&w.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&w.upload&&w.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(y=function(e){w&&(r(!e||e&&e.type?new p:e),w.abort(),w=null)},e.cancelToken&&e.cancelToken.subscribe(y),e.signal&&(e.signal.aborted?y():e.signal.addEventListener("abort",y))),m||(m=null);var E=h(C);if(E&&-1===["http","https","file"].indexOf(E)){r(new d("Unsupported protocol "+E+":",d.ERR_BAD_REQUEST,e));return}w.send(m)})}},51609:function(e,n,r){"use strict";var i=r(64867),a=r(91849),o=r(30321),s=r(47185),f=function e(n){var r=new o(n),f=a(o.prototype.request,r);return i.extend(f,o.prototype,r),i.extend(f,r),f.create=function(r){return e(s(n,r))},f}(r(45546));f.Axios=o,f.CanceledError=r(60644),f.CancelToken=r(14972),f.isCancel=r(26502),f.VERSION=r(97288).version,f.toFormData=r(47675),f.AxiosError=r(82648),f.Cancel=f.CanceledError,f.all=function(e){return Promise.all(e)},f.spread=r(8713),f.isAxiosError=r(16268),e.exports=f,e.exports.default=f},14972:function(e,n,r){"use strict";var i=r(60644);function a(e){if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){n=e});var n,r=this;this.promise.then(function(e){if(r._listeners){var n,i=r._listeners.length;for(n=0;n<i;n++)r._listeners[n](e);r._listeners=null}}),this.promise.then=function(e){var n,i=new Promise(function(e){r.subscribe(e),n=e}).then(e);return i.cancel=function(){r.unsubscribe(n)},i},e(function(e){r.reason||(r.reason=new i(e),n(r.reason))})}a.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},a.prototype.subscribe=function(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]},a.prototype.unsubscribe=function(e){if(this._listeners){var n=this._listeners.indexOf(e);-1!==n&&this._listeners.splice(n,1)}},a.source=function(){var e;return{token:new a(function(n){e=n}),cancel:e}},e.exports=a},60644:function(e,n,r){"use strict";var i=r(82648);function a(e){i.call(this,null==e?"canceled":e,i.ERR_CANCELED),this.name="CanceledError"}r(64867).inherits(a,i,{__CANCEL__:!0}),e.exports=a},26502:function(e){"use strict";e.exports=function(e){return!!(e&&e.__CANCEL__)}},30321:function(e,n,r){"use strict";var i=r(64867),a=r(15327),o=r(80782),s=r(13572),f=r(47185),l=r(94097),u=r(54875),c=u.validators;function d(e){this.defaults=e,this.interceptors={request:new o,response:new o}}d.prototype.request=function(e,n){"string"==typeof e?(n=n||{}).url=e:n=e||{},(n=f(this.defaults,n)).method?n.method=n.method.toLowerCase():this.defaults.method?n.method=this.defaults.method.toLowerCase():n.method="get";var r,i=n.transitional;void 0!==i&&u.assertOptions(i,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var a=[],o=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(n))&&(o=o&&e.synchronous,a.unshift(e.fulfilled,e.rejected))});var l=[];if(this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)}),!o){var d=[s,void 0];for(Array.prototype.unshift.apply(d,a),d=d.concat(l),r=Promise.resolve(n);d.length;)r=r.then(d.shift(),d.shift());return r}for(var p=n;a.length;){var h=a.shift(),y=a.shift();try{p=h(p)}catch(e){y(e);break}}try{r=s(p)}catch(e){return Promise.reject(e)}for(;l.length;)r=r.then(l.shift(),l.shift());return r},d.prototype.getUri=function(e){return a(l((e=f(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}
vendor: 2,784 bytes, line 358
358,i.forEach(["delete","get","head","options"],function(e){d.prototype[e]=function(n,r){return this.request(f(r||{},{method:e,url:n,data:(r||{}).data}))}}),i.forEach(["post","put","patch"],function(e){function n(n){return function(r,i,a){return this.request(f(a||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:r,data:i}))}}d.prototype[e]=n(),d.prototype[e+"Form"]=n(!0)}),e.exports=d},82648:function(e,n,r){"use strict";var i=r(64867);function a(e,n,r,i,a){Error.call(this),this.message=e,this.name="AxiosError",n&&(this.code=n),r&&(this.config=r),i&&(this.request=i),a&&(this.response=a)}i.inherits(a,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var o=a.prototype,s={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(e){s[e]={value:e}}),Object.defineProperties(a,s),Object.defineProperty(o,"isAxiosError",{value:!0}),a.from=function(e,n,r,s,f,l){var u=Object.create(o);return i.toFlatObject(e,u,function(e){return e!==Error.prototype}),a.call(u,e.message,n,r,s,f),u.name=e.name,l&&Object.assign(u,l),u},e.exports=a},80782:function(e,n,r){"use strict";var i=r(64867);function a(){this.handlers=[]}a.prototype.use=function(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},a.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},a.prototype.forEach=function(e){i.forEach(this.handlers,function(n){null!==n&&e(n)})},e.exports=a},94097:function(e,n,r){"use strict";var i=r(91793),a=r(7303);e.exports=function(e,n){return e&&!i(n)?a(e,n):n}},13572:function(e,n,r){"use strict";var i=r(64867),a=r(18527),o=r(26502),s=r(45546),f=r(60644);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new f}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=a.call(e,e.data,e.headers,e.transformRequest),e.headers=i.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),i.forEach(["delete","get","head","post","put","patch","common"],function(n){delete e.headers[n]}),(e.adapter||s.adapter)(e).then(function(n){return l(e),n.data=a.call(e,n.data,n.headers,e.transformResponse),n},function(n){return!o(n)&&(l(e),n&&n.response&&(n.response.data=a.call(e,n.response.data,n.response.headers,e.transformResponse))),Promise.reject(n)})}},47185:function(e,n,r){"use strict";var i=r(64867);
358e.exports=function(e,n){n=n||{};var r={};function a(e,n){return i.isPlainObject(e)&&i.isPlainObject(n)?i.merge(e,n):i.isPlainObject(n)?i.merge({},n):i.isArray(n)?n.slice():n}function o(r){return i.isUndefined(n[r])?i.isUndefined(e[r])?void 0:a(void 0,e[r]):a(e[r],n[r])}function s(e){if(!i.isUndefined(n[e]))return a(void 0,n[e])}function f(r){return i.isUndefined(n[r])?i.isUndefined(e[r])?void 0:a(void 0,e[r]):a(void 0,n[r])}function l(r){return r in n?a(e[r],n[r]):r in e?a(void 0,e[r]):void 0}var u={url:s,method:s,data:s,baseURL:f,transformRequest:f,transformResponse:f,paramsSerializer:f,timeout:f,timeoutMessage:f,withCredentials:f,adapter:f,responseType:f,xsrfCookieName:f,xsrfHeaderName:f,onUploadProgress:f,onDownloadProgress:f,decompress:f,maxContentLength:f,maxBodyLength:f,beforeRedirect:f,transport:f,httpAgent:f,httpsAgent:f,cancelToken:f,socketPath:f,responseEncoding:f,validateStatus:l};return i.forEach(Object.keys(e).concat(Object.keys(n)),function(e){var n=u[e]||o,a=n(e);i.isUndefined(a)&&n!==l||(r[e]=a)}),r}},36026:function(e,n,r){"use strict";var i=r(82648);e.exports=function(e,n,r){var a=r.config.validateStatus;!r.status||!a||a(r.status)?e(r):n(new i("Request failed with status code "+r.status,[i.ERR_BAD_REQUEST,i.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}},18527:function(e,n,r){"use strict";var i=r(64867),a=r(45546);e.exports=function(e,n,r){var o=this||a;return i.forEach(r,function(r){e=r.call(o,e,n)}),e}},45546:function(e,n,r){"use strict";var i,a=r(34155),o=r(64867),s=r(16016),f=r(82648),l=r(77874),u=r(47675),c={"Content-Type":"application/x-www-form-urlencoded"};function d(e,n){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=n)}var p={transitional:l,adapter:("undefined"!=typeof XMLHttpRequest?i=r(55448):void 0!==a&&"[object process]"===Object.prototype.toString.call(a)&&(i=r(55448)),i),transformRequest:[function(e,n){if(s(n,"Accept"),s(n,"Content-Type"),o.isFormData(e)||o.isArrayBuffer(e)||o.isBuffer(e)||o.isStream(e)||o.isFile(e)||o.isBlob(e))return e;if(o.isArrayBufferView(e))return e.buffer;if(o.isURLSearchParams(e))return d(n,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var r,i=o.isObject(e),a=n&&n["Content-Type"];if((r=o.isFileList(e))||i&&"multipart/form-data"===a){var f=this.env&&this.env.FormData;return u(r?{"files[]":e}:e,f&&new f)}return i||"application/json"===a?(d(n,"application/json"),function(e,n,r){if(o.isString(e))try{return(0,JSON.parse)(e),o.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var n=this.transitional||p.transitional,r=n&&n.silentJSONParsing,i=n&&n.forcedJSONParsing,a=!r&&"json"===this.responseType;if(a||i&&o.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw f.from(e,f.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:r(91623)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],function(e){p.headers[e]={}}),o.forEach(["post","put","patch"],function(e){p.headers[e]=o.merge(c)}),e.exports=p},77874:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},97288:function(e){e.exports={version:"0.27.2"}},91849:function(e){"use strict";e.exports=function(e,n){return function(){for(var r=Array(arguments.length),i=0;i<r.length;i++)r[i]=arguments[i];return e.apply(n,r)}}},15327:function(e,n,r){"use strict";var i=r(64867);function a(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,n,r){if(!n)return e;if(r)o=r(n);else if(i.isURLSearchParams(n))o=n.toString();else{var o,s=[];
vendor: 2,402 bytes, line 358
358i.forEach(n,function(e,n){null!=e&&(i.isArray(e)?n+="[]":e=[e],i.forEach(e,function(e){i.isDate(e)?e=e.toISOString():i.isObject(e)&&(e=JSON.stringify(e)),s.push(a(n)+"="+a(e))}))}),o=s.join("&")}if(o){var f=e.indexOf("#");-1!==f&&(e=e.slice(0,f)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},7303:function(e){"use strict";e.exports=function(e,n){return n?e.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):e}},4372:function(e,n,r){"use strict";var i=r(64867);e.exports=i.isStandardBrowserEnv()?{write:function(e,n,r,a,o,s){var f=[];f.push(e+"="+encodeURIComponent(n)),i.isNumber(r)&&f.push("expires="+new Date(r).toGMTString()),i.isString(a)&&f.push("path="+a),i.isString(o)&&f.push("domain="+o),!0===s&&f.push("secure"),document.cookie=f.join("; ")},read:function(e){var n=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},91793:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},16268:function(e,n,r){"use strict";var i=r(64867);e.exports=function(e){return i.isObject(e)&&!0===e.isAxiosError}},67985:function(e,n,r){"use strict";var i=r(64867);e.exports=i.isStandardBrowserEnv()?function(){var e,n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function a(e){var i=e;return n&&(r.setAttribute("href",i),i=r.href),r.setAttribute("href",i),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=a(window.location.href),function(n){var r=i.isString(n)?a(n):n;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},16016:function(e,n,r){"use strict";var i=r(64867);e.exports=function(e,n){i.forEach(e,function(r,i){i!==n&&i.toUpperCase()===n.toUpperCase()&&(e[n]=r,delete e[i])})}},91623:function(e){e.exports=null},84109:function(e,n,r){"use strict";var i=r(64867),a=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var n,r,o,s={};
358return e&&i.forEach(e.split("\n"),function(e){o=e.indexOf(":"),n=i.trim(e.substr(0,o)).toLowerCase(),r=i.trim(e.substr(o+1)),n&&!(s[n]&&a.indexOf(n)>=0)&&("set-cookie"===n?s[n]=(s[n]?s[n]:[]).concat([r]):s[n]=s[n]?s[n]+", "+r:r)}),s}},90205:function(e){"use strict";e.exports=function(e){var n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return n&&n[1]||""}},8713:function(e){"use strict";e.exports=function(e){return function(n){return e.apply(null,n)}}},47675:function(e,n,r){"use strict";var i=r(48764).Buffer,a=r(64867);e.exports=function(e,n){n=n||new FormData;var r=[];function o(e){return null===e?"":a.isDate(e)?e.toISOString():a.isArrayBuffer(e)||a.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):i.from(e):e}return!function e(i,s){if(a.isPlainObject(i)||a.isArray(i)){if(-1!==r.indexOf(i))throw Error("Circular reference detected in "+s);r.push(i),a.forEach(i,function(r,i){if(!a.isUndefined(r)){var f,l=s?s+"."+i:i;if(r&&!s&&"object"==typeof r){if(a.endsWith(i,"{}"))r=JSON.stringify(r);else if(a.endsWith(i,"[]")&&(f=a.toArray(r))){f.forEach(function(e){a.isUndefined(e)||n.append(l,o(e))});return}}e(r,l)}}),r.pop()}else n.append(s,o(i))}(e),n}},54875:function(e,n,r){"use strict";var i=r(97288).version,a=r(82648),o={};["object","boolean","number","function","string","symbol"].forEach(function(e,n){o[e]=function(r){return typeof r===e||"a"+(n<1?"n ":" ")+e}});var s={};o.transitional=function(e,n,r){function o(e,n){return"[Axios v"+i+"] Transitional option '"+e+"'"+n+(r?". "+r:"")}return function(r,i,f){if(!1===e)throw new a(o(i," has been removed"+(n?" in "+n:"")),a.ERR_DEPRECATED);return n&&!s[i]&&(s[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),!e||e(r,i,f)}},e.exports={assertOptions:function(e,n,r){if("object"!=typeof e)throw new a("options must be an object",a.ERR_BAD_OPTION_VALUE);for(var i=Object.keys(e),o=i.length;o-- >0;){var s=i[o],f=n[s];if(f){var l=e[s],u=void 0===l||f(l,s,e);if(!0!==u)throw new a("option "+s+" must be "+u,a.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new a("Unknown option "+s,a.ERR_BAD_OPTION)}},validators:o}},64867:function(e,n,r){"use strict";var i,a,o=r(91849),s=Object.prototype.toString,f=(i=Object.create(null),function(e){var n=s.call(e);return i[n]||(i[n]=n.slice(8,-1).toLowerCase())});function l(e){return e=e.toLowerCase(),function(n){return f(n)===e}}function u(e){return Array.isArray(e)}function c(e){return void 0===e}var d=l("ArrayBuffer");function p(e){return null!==e&&"object"==typeof e}function h(e){if("object"!==f(e))return!1;var n=Object.getPrototypeOf(e);return null===n||n===Object.prototype}var y=l("Date"),m=l("File"),g=l("Blob"),b=l("FileList");function v(e){return"[object Function]"===s.call(e)}var w=l("URLSearchParams");function x(e,n){if(null!=e){if("object"!=typeof e&&(e=[e]),u(e))for(var r=0,i=e.length;r<i;r++)n.call(null,e[r],r,e);else for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&n.call(null,e[a],a,e)}}var T=(a="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return a&&e instanceof a});e.exports={isArray:u,isArrayBuffer:d,isBuffer:function(e){return null!==e&&!c(e)&&null!==e.constructor&&!c(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var n="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||s.call(e)===n||v(e.toString)&&e.toString()===n)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&d(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:p,isPlainObject:h,isUndefined:c,isDate:y,isFile:m,isBlob:g,isFunction:v,isStream:function(e){return p(e)&&v(e.pipe)},isURLSearchParams:w,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:x,merge:function e(){var n={};function r(r,i){h(n[i])&&h(r)?n[i]=e(n[i],r):h(r)?n[i]=e({},r):u(r)?n[i]=r.slice():n[i]=r}for(var i=0,a=arguments.length;i<a;i++)x(arguments[i],r);return n},extend:function(e,n,r){return x(n,function(n,i){r&&"function"==typeof n?e[i]=o(n,r):e[i]=n}
358),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,n,r,i){e.prototype=Object.create(n.prototype,i),e.prototype.constructor=e,r&&Object.assign(e.prototype,r)},toFlatObject:function(e,n,r){var i,a,o,s={};n=n||{};do{for(a=(i=Object.getOwnPropertyNames(e)).length;a-- >0;)s[o=i[a]]||(n[o]=e[o],s[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!r||r(e,n))&&e!==Object.prototype);return n},kindOf:f,kindOfTest:l,endsWith:function(e,n,r){e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=n.length;var i=e.indexOf(n,r);return -1!==i&&i===r},toArray:function(e){if(!e)return null;var n=e.length;if(c(n))return null;for(var r=Array(n);n-- >0;)r[n]=e[n];return r},isTypedArray:T,isFileList:b}},58162:function(e){"use strict";e.exports=function(e){if(e.length>=255)throw TypeError("Alphabet too long");for(var n=new Uint8Array(256),r=0;r<n.length;r++)n[r]=255;for(var i=0;i<e.length;i++){var a=e.charAt(i),o=a.charCodeAt(0);if(255!==n[o])throw TypeError(a+" is ambiguous");n[o]=i}var s=e.length,f=e.charAt(0),l=Math.log(s)/Math.log(256),u=Math.log(256)/Math.log(s);function c(e){if("string"!=typeof e)throw TypeError("Expected String");if(0===e.length)return new Uint8Array;for(var r=0,i=0,a=0;e[r]===f;)i++,r++;for(var o=(e.length-r)*l+1>>>0,u=new Uint8Array(o);e[r];){var c=n[e.charCodeAt(r)];if(255===c)return;for(var d=0,p=o-1;(0!==c||d<a)&&-1!==p;p--,d++)c+=s*u[p]>>>0,u[p]=c%256>>>0,c=c/256>>>0;if(0!==c)throw Error("Non-zero carry");a=d,r++}for(var h=o-a;h!==o&&0===u[h];)h++;for(var y=new Uint8Array(i+(o-h)),m=i;h!==o;)y[m++]=u[h++];return y}return{encode:function(n){if(n instanceof Uint8Array||(ArrayBuffer.isView(n)?n=new Uint8Array(n.buffer,n.byteOffset,n.byteLength):Array.isArray(n)&&(n=Uint8Array.from(n))),!(n instanceof Uint8Array))throw TypeError("Expected Uint8Array");if(0===n.length)return"";for(var r=0,i=0,a=0,o=n.length;a!==o&&0===n[a];)a++,r++;for(var l=(o-a)*u+1>>>0,c=new Uint8Array(l);a!==o;){for(var d=n[a],p=0,h=l-1;(0!==d||p<i)&&-1!==h;h--,p++)d+=256*c[h]>>>0,c[h]=d%s>>>0,d=d/s>>>0;if(0!==d)throw Error("Non-zero carry");i=p,a++}for(var y=l-i;y!==l&&0===c[y];)y++;for(var m=f.repeat(r);y<l;++y)m+=e.charAt(c[y]);return m},decodeUnsafe:c,decode:function(e){var n=c(e);if(n)return n;throw Error("Non-base"+s+" character")}}}},79742:function(e,n){"use strict";n.byteLength=function(e){var n=l(e),r=n[0],i=n[1];return(r+i)*3/4-i},n.toByteArray=function(e){var n,r,o=l(e),s=o[0],f=o[1],u=new a((s+f)*3/4-f),c=0,d=f>0?s-4:s;for(r=0;r<d;r+=4)n=i[e.charCodeAt(r)]<<18|i[e.charCodeAt(r+1)]<<12|i[e.charCodeAt(r+2)]<<6|i[e.charCodeAt(r+3)],u[c++]=n>>16&255,u[c++]=n>>8&255,u[c++]=255&n;return 2===f&&(n=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,u[c++]=255&n),1===f&&(n=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,u[c++]=n>>8&255,u[c++]=255&n),u},n.fromByteArray=function(e){for(var n,i=e.length,a=i%3,o=[],s=0,f=i-a;s<f;s+=16383)o.push(function(e,n,i){for(var a,o=[],s=n;s<i;s+=3)o.push(r[(a=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]))>>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return o.join("")}(e,s,s+16383>f?f:s+16383));return 1===a?o.push(r[(n=e[i-1])>>2]+r[n<<4&63]+"=="):2===a&&o.push(r[(n=(e[i-2]<<8)+e[i-1])>>10]+r[n>>4&63]+r[n<<2&63]+"="),o.join("")};for(var r=[],i=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,f=o.length;s<f;++s)r[s]=o[s],i[o.charCodeAt(s)]=s;function l(e){var n=e.length;if(n%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=n);var i=r===n?0:4-r%4;return[r,i]}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},92882:function(e){"use strict";for(var n="qpzry9x8gf2tvdw0s3jn54khce6mua7l",r={},i=0;i<n.length;i++){var a=n.charAt(i);if(void 0!==r[a])throw TypeError(a+" is ambiguous");r[a]=i}function o(e){var n=e>>25;return(33554431&e)<<5^996825010&-(n>>0&1)^642813549&-(n>>1&1)^513874426&-(n>>2&1)^1027748829&-(n>>3&1)^705979059&-(n>>4&1)}function s(e){for(var n=1,r=0;r<e.length;++r){var i=e.charCodeAt(r);if(i<33||i>126)return"Invalid prefix ("+e+")";n=o(n)^i>>5}for(r=0,n=o(n);r<e.length;++r){var a=e.charCodeAt(r);n=o(n)^31&a}return n}function f(e,n){if(n=n||90,e.length<8)return e+" too short";if(e.length>n)return"Exceeds length limit";var i=e.toLowerCase(),a=e.toUpperCase();if(e!==i&&e!==a)return"Mixed-case string "+e;var f=(e=i).lastIndexOf("1");if(-1===f)return"No separator character for "+e;if(0===f)return"Missing prefix for "+e;var l=e.slice(0,f),u=e.slice(f+1);if(u.length<6)return"Data too short";var c=s(l);if("string"==typeof c)return c;for(var d=[],p=0;p<u.length;++p){var h=u.charAt(p),y=r[h];if(void 0===y)return"Unknown character "+h;c=o(c)^y,p+6>=u.length||d.push(y)}return 1!==c?"Invalid checksum for "+e:{prefix:l,words:d}}function l(e,n,r,i){for(var a=0,o=0,s=(1<<r)-1,f=[],l=0;l<e.length;++l)for(a=a<<n|e[l],o+=n;o>=r;)f.push(a>>(o-=r)&s);if(i)o>0&&f.push(a<<r-o&s);else{if(o>=n)return"Excess padding";if(a<<r-o&s)return"Non-zero padding"}return f}e.exports={decodeUnsafe:function(){var e=f.apply(null,arguments);if("object"==typeof e)return e},decode:function(e){var n=f.apply(null,arguments);if("object"==typeof n)return n;throw Error(n)},encode:function(e,r,i){if(i=i||90,e.length+7+r.length>i)throw TypeError("Exceeds length limit");var a=s(e=e.toLowerCase());if("string"==typeof a)throw Error(a);for(var f=e+"1",l=0;l<r.length;++l){var u=r[l];if(u>>5!=0)throw Error("Non 5-bit word");a=o(a)^u,f+=n.charAt(u)}for(l=0;l<6;++l)a=o(a);for(a^=1,l=0;l<6;++l){var c=a>>(5-l)*5&31;f+=n.charAt(c)}return f},toWordsUnsafe:function(e){var n=l(e,8,5,!0);if(Array.isArray(n))return n},toWords:function(e){var n=l(e,8,5,!0);if(Array.isArray(n))return n;throw Error(n)},fromWordsUnsafe:function(e){var n=l(e,5,8,!1);if(Array.isArray(n))return n},fromWords:function(e){var n=l(e,5,8,!1);if(Array.isArray(n))return n;throw Error(n)}}},13550:function(e,n,r){!function(e,n){"use strict";function i(e,n){if(!e)throw Error(n||"Assertion failed")}function a(e,n){e.super_=n;var r=function(){};r.prototype=n.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,n,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&(("le"===n||"be"===n)&&(r=n,n=10),this._init(e||0,n||10,r||"be"))}
vendor: 11,079 bytes, line 358
358"object"==typeof e?e.exports=o:n.BN=o,o.BN=o,o.wordSize=26;try{d="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(46601).Buffer}catch(e){}function s(e,n){var r=e.charCodeAt(n);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void i(!1,"Invalid character in "+e)}function f(e,n,r){var i=s(e,r);return r-1>=n&&(i|=s(e,r-1)<<4),i}function l(e,n,r,a){for(var o=0,s=0,f=Math.min(e.length,r),l=n;l<f;l++){var u=e.charCodeAt(l)-48;o*=a,s=u>=49?u-49+10:u>=17?u-17+10:u,i(u>=0&&s<a,"Invalid character"),o+=s}return o}function u(e,n){e.words=n.words,e.length=n.length,e.negative=n.negative,e.red=n.red}if(o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,n){return e.cmp(n)>0?e:n},o.min=function(e,n){return 0>e.cmp(n)?e:n},o.prototype._init=function(e,n,r){if("number"==typeof e)return this._initNumber(e,n,r);if("object"==typeof e)return this._initArray(e,n,r);"hex"===n&&(n=16),i(n===(0|n)&&n>=2&&n<=36);var a=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(a++,this.negative=1),a<e.length&&(16===n?this._parseHex(e,a,r):(this._parseBase(e,n,a),"le"===r&&this._initArray(this.toArray(),n,r)))},o.prototype._initNumber=function(e,n,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(i(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),n,r)},o.prototype._initArray=function(e,n,r){if(i("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var a,o,s=0;s<this.length;s++)this.words[s]=0;var f=0;if("be"===r)for(s=e.length-1,a=0;s>=0;s-=3)o=e[s]|e[s-1]<<8|e[s-2]<<16,this.words[a]|=o<<f&67108863,this.words[a+1]=o>>>26-f&67108863,(f+=24)>=26&&(f-=26,a++);else if("le"===r)for(s=0,a=0;s<e.length;s+=3)o=e[s]|e[s+1]<<8|e[s+2]<<16,this.words[a]|=o<<f&67108863,this.words[a+1]=o>>>26-f&67108863,(f+=24)>=26&&(f-=26,a++);return this._strip()},o.prototype._parseHex=function(e,n,r){this.length=Math.ceil((e.length-n)/6),this.words=Array(this.length);for(var i,a=0;a<this.length;a++)this.words[a]=0;var o=0,s=0;if("be"===r)for(a=e.length-1;a>=n;a-=2)i=f(e,n,a)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else for(a=(e.length-n)%2==0?n+1:n;a<e.length;a+=2)i=f(e,n,a)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;this._strip()},o.prototype._parseBase=function(e,n,r){this.words=[0],this.length=1;for(var i=0,a=1;a<=67108863;a*=n)i++;i--,a=a/n|0;for(var o=e.length-r,s=o%i,f=Math.min(o,o-s)+r,u=0,c=r;c<f;c+=i)u=l(e,c,c+i,n),this.imuln(a),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==s){var d=1;for(u=l(e,c,e.length,n),c=0;c<s;c++)d*=n;this.imuln(d),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},o.prototype.copy=function(e){e.words=Array(this.length);for(var n=0;n<this.length;n++)e.words[n]=this.words[n];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype._move=function(e){u(e,this)},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=c}catch(e){o.prototype.inspect=c}else o.prototype.inspect=c;function c(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var d,p=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],y=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function m(e,n,r){r.negative=n.negative^e.negative;var i=e.length+n.length|0;r.length=i,i=i-1|0;var a=0|e.words[0],o=0|n.words[0],s=a*o,f=67108863&s,l=s/67108864|0;r.words[0]=f;for(var u=1;u<i;u++){for(var c=l>>>26,d=67108863&l,p=Math.min(u,n.length-1),h=Math.max(0,u-e.length+1);h<=p;h++){var y=u-h|0;c+=(s=(a=0|e.words[y])*(o=0|n.words[h])+d)/67108864|0,d=67108863&s}r.words[u]=0|d,l=0|c}return 0!==l?r.words[u]=0|l:r.length--,r._strip()}o.prototype.toString=function(e,n){if(n=0|n||1,16===(e=e||10)||"hex"===e){r="";for(var r,a=0,o=0,s=0;s<this.length;s++){var f=this.words[s],l=((f<<a|o)&16777215).toString(16);o=f>>>24-a&16777215,(a+=2)>=26&&(a-=26,s--),r=0!==o||s!==this.length-1?p[6-l.length]+l+r:l+r}for(0!==o&&(r=o.toString(16)+r);r.length%n!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var u=h[e],c=y[e];r="";var d=this.clone();for(d.negative=0;!d.isZero();){var m=d.modrn(c).toString(e);r=(d=d.idivn(c)).isZero()?m+r:p[u-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%n!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},d&&(o.prototype.toBuffer=function(e,n){return this.toArrayLike(d,e,n)}),o.prototype.toArray=function(e,n){return this.toArrayLike(Array,e,n)},o.prototype.toArrayLike=function(e,n,r){this._strip();var a=this.byteLength(),o=r||Math.max(1,a);i(a<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0");var s=e.allocUnsafe?e.allocUnsafe(o):new e(o);return this["_toArrayLike"+("le"===n?"LE":"BE")](s,a),s},o.prototype._toArrayLikeLE=function(e,n){for(var r=0,i=0,a=0,o=0;a<this.length;a++){var s=this.words[a]<<o|i;e[r++]=255&s,r<e.length&&(e[r++]=s>>8&255),r<e.length&&(e[r++]=s>>16&255),6===o?(r<e.length&&(e[r++]=s>>24&255),i=0,o=0):(i=s>>>24,o+=2)}if(r<e.length)for(e[r++]=i;r<e.length;)e[r++]=0},o.prototype._toArrayLikeBE=function(e,n){for(var r=e.length-1,i=0,a=0,o=0;a<this.length;a++){var s=this.words[a]<<o|i;e[r--]=255&s,r>=0&&(e[r--]=s>>8&255),r>=0&&(e[r--]=s>>16&255),6===o?(r>=0&&(e[r--]=s>>24&255),i=0,o=0):(i=s>>>24,o+=2)}if(r>=0)for(e[r--]=i;r>=0;)e[r--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var n=e,r=0;return n>=4096&&(r+=13,n>>>=13),n>=64&&(r+=7,n>>>=7),n>=8&&(r+=4,n>>>=4),n>=2&&(r+=2,n>>>=2),r+n},o.prototype._zeroBits=function(e){if(0===e)return 26;var n=e,r=0;return(8191&n)==0&&(r+=13,n>>>=13),(127&n)==0&&(r+=7,n>>>=7),(15&n)==0&&(r+=4,n>>>=4),(3&n)==0&&(r+=2,n>>>=2),(1&n)==0&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],n=this._countBits(e);return(this.length-1)*26+n},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,n=0;n<this.length;n++){var r=this._zeroBits(this.words[n]);if(e+=r,26!==r)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var n=0;n<e.length;n++)this.words[n]=this.words[n]|e.words[n];return this._strip()},o.prototype.ior=function(e){return i((this.negative|e.negative)==0),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var n;n=this.length>e.length?e:this;for(var r=0;r<n.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=n.length,this._strip()},o.prototype.iand=function(e){return i((this.negative|e.negative)==0),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){this.length>e.length?(n=this,r=e):(n=e,r=this);for(var n,r,i=0;i<r.length;i++)this.words[i]=n.words[i]^r.words[i];if(this!==n)for(;i<n.length;i++)this.words[i]=n.words[i];return this.length=n.length,this._strip()},o.prototype.ixor=function(e){return i((this.negative|e.negative)==0),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var n=0|Math.ceil(e/26),r=e%26;this._expand(n),r>0&&n--;for(var a=0;a<n;a++)this.words[a]=67108863&~this.words[a];return r>0&&(this.words[a]=~this.words[a]&67108863>>26-r),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,n){i("number"==typeof e&&e>=0);var r=e/26|0,a=e%26;return this._expand(r+1),n?this.words[r]=this.words[r]|1<<a:this.words[r]=this.words[r]&~(1<<a),this._strip()},o.prototype.iadd=function(e){if(0!==this.negative&&0===e.negative)return this.negative=0,n=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,n=this.isub(e),e.negative=1,n._normSign();this.length>e.length?(r=this,i=e):(r=e,i=this);for(var n,r,i,a=0,o=0;o<i.length;o++)n=(0|r.words[o])+(0|i.words[o])+a,this.words[o]=67108863&n,a=n>>>26;for(;0!==a&&o<r.length;o++)n=(0|r.words[o])+a,this.words[o]=67108863&n,a=n>>>26;if(this.length=r.length,0!==a)this.words[this.length]=a,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(e){var n;return 0!==e.negative&&0===this.negative?(e.negative=0,n=this.sub(e),e.negative^=1,n):0===e.negative&&0!==this.negative?(this.negative=0,n=e.sub(this),this.negative=1,n):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;
vendor: 8,915 bytes, line 358
358var n,r,i=this.iadd(e);return e.negative=1,i._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(n=this,r=e):(n=e,r=this);for(var o=0,s=0;s<r.length;s++)o=(i=(0|n.words[s])-(0|r.words[s])+o)>>26,this.words[s]=67108863&i;for(;0!==o&&s<n.length;s++)o=(i=(0|n.words[s])+o)>>26,this.words[s]=67108863&i;if(0===o&&s<n.length&&n!==this)for(;s<n.length;s++)this.words[s]=n.words[s];return this.length=Math.max(this.length,s),n!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var g=function(e,n,r){var i,a,o,s=e.words,f=n.words,l=r.words,u=0,c=0|s[0],d=8191&c,p=c>>>13,h=0|s[1],y=8191&h,m=h>>>13,g=0|s[2],b=8191&g,v=g>>>13,w=0|s[3],x=8191&w,T=w>>>13,C=0|s[4],M=8191&C,A=C>>>13,E=0|s[5],I=8191&E,S=E>>>13,k=0|s[6],N=8191&k,j=k>>>13,D=0|s[7],_=8191&D,O=D>>>13,P=0|s[8],L=8191&P,R=P>>>13,z=0|s[9],B=8191&z,U=z>>>13,F=0|f[0],Z=8191&F,W=F>>>13,H=0|f[1],G=8191&H,q=H>>>13,Y=0|f[2],V=8191&Y,Q=Y>>>13,K=0|f[3],$=8191&K,J=K>>>13,X=0|f[4],ee=8191&X,et=X>>>13,en=0|f[5],er=8191&en,ei=en>>>13,ea=0|f[6],eo=8191&ea,es=ea>>>13,ef=0|f[7],el=8191&ef,eu=ef>>>13,ec=0|f[8],ed=8191&ec,ep=ec>>>13,eh=0|f[9],ey=8191&eh,em=eh>>>13;r.negative=e.negative^n.negative,r.length=19;var eg=(u+(i=Math.imul(d,Z))|0)+((8191&(a=(a=Math.imul(d,W))+Math.imul(p,Z)|0))<<13)|0;u=((o=Math.imul(p,W))+(a>>>13)|0)+(eg>>>26)|0,eg&=67108863,i=Math.imul(y,Z),a=(a=Math.imul(y,W))+Math.imul(m,Z)|0,o=Math.imul(m,W);var eb=(u+(i=i+Math.imul(d,G)|0)|0)+((8191&(a=(a=a+Math.imul(d,q)|0)+Math.imul(p,G)|0))<<13)|0;u=((o=o+Math.imul(p,q)|0)+(a>>>13)|0)+(eb>>>26)|0,eb&=67108863,i=Math.imul(b,Z),a=(a=Math.imul(b,W))+Math.imul(v,Z)|0,o=Math.imul(v,W),i=i+Math.imul(y,G)|0,a=(a=a+Math.imul(y,q)|0)+Math.imul(m,G)|0,o=o+Math.imul(m,q)|0;var ev=(u+(i=i+Math.imul(d,V)|0)|0)+((8191&(a=(a=a+Math.imul(d,Q)|0)+Math.imul(p,V)|0))<<13)|0;u=((o=o+Math.imul(p,Q)|0)+(a>>>13)|0)+(ev>>>26)|0,ev&=67108863,i=Math.imul(x,Z),a=(a=Math.imul(x,W))+Math.imul(T,Z)|0,o=Math.imul(T,W),i=i+Math.imul(b,G)|0,a=(a=a+Math.imul(b,q)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,q)|0,i=i+Math.imul(y,V)|0,a=(a=a+Math.imul(y,Q)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,Q)|0;var ew=(u+(i=i+Math.imul(d,$)|0)|0)+((8191&(a=(a=a+Math.imul(d,J)|0)+Math.imul(p,$)|0))<<13)|0;u=((o=o+Math.imul(p,J)|0)+(a>>>13)|0)+(ew>>>26)|0,ew&=67108863,i=Math.imul(M,Z),a=(a=Math.imul(M,W))+Math.imul(A,Z)|0,o=Math.imul(A,W),i=i+Math.imul(x,G)|0,a=(a=a+Math.imul(x,q)|0)+Math.imul(T,G)|0,o=o+Math.imul(T,q)|0,i=i+Math.imul(b,V)|0,a=(a=a+Math.imul(b,Q)|0)+Math.imul(v,V)|0,o=o+Math.imul(v,Q)|0,i=i+Math.imul(y,$)|0,a=(a=a+Math.imul(y,J)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,J)|0;var ex=(u+(i=i+Math.imul(d,ee)|0)|0)+((8191&(a=(a=a+Math.imul(d,et)|0)+Math.imul(p,ee)|0))<<13)|0;u=((o=o+Math.imul(p,et)|0)+(a>>>13)|0)+(ex>>>26)|0,ex&=67108863,i=Math.imul(I,Z),a=(a=Math.imul(I,W))+Math.imul(S,Z)|0,o=Math.imul(S,W),i=i+Math.imul(M,G)|0,a=(a=a+Math.imul(M,q)|0)+Math.imul(A,G)|0,o=o+Math.imul(A,q)|0,i=i+Math.imul(x,V)|0,a=(a=a+Math.imul(x,Q)|0)+Math.imul(T,V)|0,o=o+Math.imul(T,Q)|0,i=i+Math.imul(b,$)|0,a=(a=a+Math.imul(b,J)|0)+Math.imul(v,$)|0,o=o+Math.imul(v,J)|0,i=i+Math.imul(y,ee)|0,a=(a=a+Math.imul(y,et)|0)+Math.imul(m,ee)|0,o=o+Math.imul(m,et)|0;var eT=(u+(i=i+Math.imul(d,er)|0)|0)+((8191&(a=(a=a+Math.imul(d,ei)|0)+Math.imul(p,er)|0))<<13)|0;u=((o=o+Math.imul(p,ei)|0)+(a>>>13)|0)+(eT>>>26)|0,eT&=67108863,i=Math.imul(N,Z),a=(a=Math.imul(N,W))+Math.imul(j,Z)|0,o=Math.imul(j,W),i=i+Math.imul(I,G)|0,a=(a=a+Math.imul(I,q)|0)+Math.imul(S,G)|0,o=o+Math.imul(S,q)|0,i=i+Math.imul(M,V)|0,a=(a=a+Math.imul(M,Q)|0)+Math.imul(A,V)|0,o=o+Math.imul(A,Q)|0,i=i+Math.imul(x,$)|0,a=(a=a+Math.imul(x,J)|0)+Math.imul(T,$)|0,o=o+Math.imul(T,J)|0,i=i+Math.imul(b,ee)|0,a=(a=a+Math.imul(b,et)|0)+Math.imul(v,ee)|0,o=o+Math.imul(v,et)|0,i=i+Math.imul(y,er)|0,a=(a=a+Math.imul(y,ei)|0)+Math.imul(m,er)|0,o=o+Math.imul(m,ei)|0;var eC=(u+(i=i+Math.imul(d,eo)|0)|0)+((8191&(a=(a=a+Math.imul(d,es)|0)+Math.imul(p,eo)|0))<<13)|0;u=((o=o+Math.imul(p,es)|0)+(a>>>13)|0)+(eC>>>26)|0,eC&=67108863,i=Math.imul(_,Z),a=(a=Math.imul(_,W))+Math.imul(O,Z)|0,o=Math.imul(O,W),i=i+Math.imul(N,G)|0,a=(a=a+Math.imul(N,q)|0)+Math.imul(j,G)|0,o=o+Math.imul(j,q)|0,i=i+Math.imul(I,V)|0,a=(a=a+Math.imul(I,Q)|0)+Math.imul(S,V)|0,o=o+Math.imul(S,Q)|0,i=i+Math.imul(M,$)|0,a=(a=a+Math.imul(M,J)|0)+Math.imul(A,$)|0,o=o+Math.imul(A,J)|0,i=i+Math.imul(x,ee)|0,a=(a=a+Math.imul(x,et)|0)+Math.imul(T,ee)|0,o=o+Math.imul(T,et)|0,i=i+Math.imul(b,er)|0,a=(a=a+Math.imul(b,ei)|0)+Math.imul(v,er)|0,o=o+Math.imul(v,ei)|0,i=i+Math.imul(y,eo)|0,a=(a=a+Math.imul(y,es)|0)+Math.imul(m,eo)|0,o=o+Math.imul(m,es)|0;var eM=(u+(i=i+Math.imul(d,el)|0)|0)+((8191&(a=(a=a+Math.imul(d,eu)|0)+Math.imul(p,el)|0))<<13)|0;u=((o=o+Math.imul(p,eu)|0)+(a>>>13)|0)+(eM>>>26)|0,eM&=67108863,i=Math.imul(L,Z),a=(a=Math.imul(L,W))+Math.imul(R,Z)|0,o=Math.imul(R,W),i=i+Math.imul(_,G)|0,a=(a=a+Math.imul(_,q)|0)+Math.imul(O,G)|0,o=o+Math.imul(O,q)|0,i=i+Math.imul(N,V)|0,a=(a=a+Math.imul(N,Q)|0)+Math.imul(j,V)|0,o=o+Math.imul(j,Q)|0,i=i+Math.imul(I,$)|0,a=(a=a+Math.imul(I,J)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,J)|0,i=i+Math.imul(M,ee)|0,a=(a=a+Math.imul(M,et)|0)+Math.imul(A,ee)|0,o=o+Math.imul(A,et)|0,i=i+Math.imul(x,er)|0,a=(a=a+Math.imul(x,ei)|0)+Math.imul(T,er)|0,o=o+Math.imul(T,ei)|0,i=i+Math.imul(b,eo)|0,a=(a=a+Math.imul(b,es)|0)+Math.imul(v,eo)|0,o=o+Math.imul(v,es)|0,i=i+Math.imul(y,el)|0,a=(a=a+Math.imul(y,eu)|0)+Math.imul(m,el)|0,o=o+Math.imul(m,eu)|0;var eA=(u+(i=i+Math.imul(d,ed)|0)|0)+((8191&(a=(a=a+Math.imul(d,ep)|0)+Math.imul(p,ed)|0))<<13)|0;u=((o=o+Math.imul(p,ep)|0)+(a>>>13)|0)+(eA>>>26)|0,eA&=67108863,i=Math.imul(B,Z),a=(a=Math.imul(B,W))+Math.imul(U,Z)|0,o=Math.imul(U,W),i=i+Math.imul(L,G)|0,a=(a=a+Math.imul(L,q)|0)+Math.imul(R,G)|0,o=o+Math.imul(R,q)|0,i=i+Math.imul(_,V)|0,a=(a=a+Math.imul(_,Q)|0)+Math.imul(O,V)|0,o=o+Math.imul(O,Q)|0,i=i+Math.imul(N,$)|0,a=(a=a+Math.imul(N,J)|0)+Math.imul(j,$)|0,o=o+Math.imul(j,J)|0,i=i+Math.imul(I,ee)|0,a=(a=a+Math.imul(I,et)|0)+Math.imul(S,ee)|0,o=o+Math.imul(S,et)|0,i=i+Math.imul(M,er)|0,a=(a=a+Math.imul(M,ei)|0)+Math.imul(A,er)|0,o=o+Math.imul(A,ei)|0,i=i+Math.imul(x,eo)|0,a=(a=a+Math.imul(x,es)|0)+Math.imul(T,eo)|0,o=o+Math.imul(T,es)|0,i=i+Math.imul(b,el)|0,a=(a=a+Math.imul(b,eu)|0)+Math.imul(v,el)|0,o=o+Math.imul(v,eu)|0,i=i+Math.imul(y,ed)|0,a=(a=a+Math.imul(y,ep)|0)+Math.imul(m,ed)|0,o=o+Math.imul(m,ep)|0;var eE=(u+(i=i+Math.imul(d,ey)|0)|0)+((8191&(a=(a=a+Math.imul(d,em)|0)+Math.imul(p,ey)|0))<<13)|0;u=((o=o+Math.imul(p,em)|0)+(a>>>13)|0)+(eE>>>26)|0,eE&=67108863,i=Math.imul(B,G),a=(a=Math.imul(B,q))+Math.imul(U,G)|0,o=Math.imul(U,q),i=i+Math.imul(L,V)|0,a=(a=a+Math.imul(L,Q)|0)+Math.imul(R,V)|0,o=o+Math.imul(R,Q)|0,i=i+Math.imul(_,$)|0,a=(a=a+Math.imul(_,J)|0)+Math.imul(O,$)|0,o=o+Math.imul(O,J)|0,i=i+Math.imul(N,ee)|0,a=(a=a+Math.imul(N,et)|0)+Math.imul(j,ee)|0,o=o+Math.imul(j,et)|0,i=i+Math.imul(I,er)|0,a=(a=a+Math.imul(I,ei)|0)+Math.imul(S,er)|0,o=o+Math.imul(S,ei)|0,i=i+Math.imul(M,eo)|0,a=(a=a+Math.imul(M,es)|0)+Math.imul(A,eo)|0,o=o+Math.imul(A,es)|0,i=i+Math.imul(x,el)|0,a=(a=a+Math.imul(x,eu)|0)+Math.imul(T,el)|0,o=o+Math.imul(T,eu)|0,i=i+Math.imul(b,ed)|0,a=(a=a+Math.imul(b,ep)|0)+Math.imul(v,ed)|0,o=o+Math.imul(v,ep)|0;var eI=(u+(i=i+Math.imul(y,ey)|0)|0)+((8191&(a=(a=a+Math.imul(y,em)|0)+Math.imul(m,ey)|0))<<13)|0;u=((o=o+Math.imul(m,em)|0)+(a>>>13)|0)+(eI>>>26)|0,eI&=67108863,i=Math.imul(B,V),a=(a=Math.imul(B,Q))+Math.imul(U,V)|0,o=Math.imul(U,Q),i=i+Math.imul(L,$)|0,a=(a=a+Math.imul(L,J)|0)+Math.imul(R,$)|0,o=o+Math.imul(R,J)|0,i=i+Math.imul(_,ee)|0,a=(a=a+Math.imul(_,et)|0)+Math.imul(O,ee)|0,o=o+Math.imul(O,et)|0,i=i+Math.imul(N,er)|0,a=(a=a+Math.imul(N,ei)|0)+Math.imul(j,er)|0,o=o+Math.imul(j,ei)|0,i=i+Math.imul(I,eo)|0,a=(a=a+Math.imul(I,es)|0)+Math.imul(S,eo)|0,o=o+Math.imul(S,es)|0,i=i+Math.imul(M,el)|0,a=(a=a+Math.imul(M,eu)|0)+Math.imul(A,el)|0,o=o+Math.imul(A,eu)|0,i=i+Math.imul(x,ed)|0,a=(a=a+Math.imul(x,ep)|0)+Math.imul(T,ed)|0,o=o+Math.imul(T,ep)|0;var eS=(u+(i=i+Math.imul(b,ey)|0)|0)+((8191&(a=(a=a+Math.imul(b,em)|0)+Math.imul(v,ey)|0))<<13)|0;u=((o=o+Math.imul(v,em)|0)+(a>>>13)|0)+(eS>>>26)|0,eS&=67108863,i=Math.imul(B,$),a=(a=Math.imul(B,J))+Math.imul(U,$)|0,o=Math.imul(U,J),i=i+Math.imul(L,ee)|0,a=(a=a+Math.imul(L,et)|0)+Math.imul(R,ee)|0,o=o+Math.imul(R,et)|0,i=i+Math.imul(_,er)|0,a=(a=a+Math.imul(_,ei)|0)+Math.imul(O,er)|0,o=o+Math.imul(O,ei)|0,i=i+Math.imul(N,eo)|0,a=(a=a+Math.imul(N,es)|0)+Math.imul(j,eo)|0,o=o+Math.imul(j,es)|0,i=i+Math.imul(I,el)|0,a=(a=a+Math.imul(I,eu)|0)+Math.imul(S,el)|0,o=o+Math.imul(S,eu)|0,i=i+Math.imul(M,ed)|0,a=(a=a+Math.imul(M,ep)|0)+Math.imul(A,ed)|0,o=o+Math.imul(A,ep)|0;var ek=(u+(i=i+Math.imul(x,ey)|0)|0)+((8191&(a=(a=a+Math.imul(x,em)|0)+Math.imul(T,ey)|0))<<13)|0;u=((o=o+Math.imul(T,em)|0)+(a>>>13)|0)+(ek>>>
vendor: 3,630 bytes, line 358
35826)|0,ek&=67108863,i=Math.imul(B,ee),a=(a=Math.imul(B,et))+Math.imul(U,ee)|0,o=Math.imul(U,et),i=i+Math.imul(L,er)|0,a=(a=a+Math.imul(L,ei)|0)+Math.imul(R,er)|0,o=o+Math.imul(R,ei)|0,i=i+Math.imul(_,eo)|0,a=(a=a+Math.imul(_,es)|0)+Math.imul(O,eo)|0,o=o+Math.imul(O,es)|0,i=i+Math.imul(N,el)|0,a=(a=a+Math.imul(N,eu)|0)+Math.imul(j,el)|0,o=o+Math.imul(j,eu)|0,i=i+Math.imul(I,ed)|0,a=(a=a+Math.imul(I,ep)|0)+Math.imul(S,ed)|0,o=o+Math.imul(S,ep)|0;var eN=(u+(i=i+Math.imul(M,ey)|0)|0)+((8191&(a=(a=a+Math.imul(M,em)|0)+Math.imul(A,ey)|0))<<13)|0;u=((o=o+Math.imul(A,em)|0)+(a>>>13)|0)+(eN>>>26)|0,eN&=67108863,i=Math.imul(B,er),a=(a=Math.imul(B,ei))+Math.imul(U,er)|0,o=Math.imul(U,ei),i=i+Math.imul(L,eo)|0,a=(a=a+Math.imul(L,es)|0)+Math.imul(R,eo)|0,o=o+Math.imul(R,es)|0,i=i+Math.imul(_,el)|0,a=(a=a+Math.imul(_,eu)|0)+Math.imul(O,el)|0,o=o+Math.imul(O,eu)|0,i=i+Math.imul(N,ed)|0,a=(a=a+Math.imul(N,ep)|0)+Math.imul(j,ed)|0,o=o+Math.imul(j,ep)|0;var ej=(u+(i=i+Math.imul(I,ey)|0)|0)+((8191&(a=(a=a+Math.imul(I,em)|0)+Math.imul(S,ey)|0))<<13)|0;u=((o=o+Math.imul(S,em)|0)+(a>>>13)|0)+(ej>>>26)|0,ej&=67108863,i=Math.imul(B,eo),a=(a=Math.imul(B,es))+Math.imul(U,eo)|0,o=Math.imul(U,es),i=i+Math.imul(L,el)|0,a=(a=a+Math.imul(L,eu)|0)+Math.imul(R,el)|0,o=o+Math.imul(R,eu)|0,i=i+Math.imul(_,ed)|0,a=(a=a+Math.imul(_,ep)|0)+Math.imul(O,ed)|0,o=o+Math.imul(O,ep)|0;var eD=(u+(i=i+Math.imul(N,ey)|0)|0)+((8191&(a=(a=a+Math.imul(N,em)|0)+Math.imul(j,ey)|0))<<13)|0;u=((o=o+Math.imul(j,em)|0)+(a>>>13)|0)+(eD>>>26)|0,eD&=67108863,i=Math.imul(B,el),a=(a=Math.imul(B,eu))+Math.imul(U,el)|0,o=Math.imul(U,eu),i=i+Math.imul(L,ed)|0,a=(a=a+Math.imul(L,ep)|0)+Math.imul(R,ed)|0,o=o+Math.imul(R,ep)|0;var e_=(u+(i=i+Math.imul(_,ey)|0)|0)+((8191&(a=(a=a+Math.imul(_,em)|0)+Math.imul(O,ey)|0))<<13)|0;u=((o=o+Math.imul(O,em)|0)+(a>>>13)|0)+(e_>>>26)|0,e_&=67108863,i=Math.imul(B,ed),a=(a=Math.imul(B,ep))+Math.imul(U,ed)|0,o=Math.imul(U,ep);var eO=(u+(i=i+Math.imul(L,ey)|0)|0)+((8191&(a=(a=a+Math.imul(L,em)|0)+Math.imul(R,ey)|0))<<13)|0;u=((o=o+Math.imul(R,em)|0)+(a>>>13)|0)+(eO>>>26)|0,eO&=67108863;var eP=(u+(i=Math.imul(B,ey))|0)+((8191&(a=(a=Math.imul(B,em))+Math.imul(U,ey)|0))<<13)|0;return u=((o=Math.imul(U,em))+(a>>>13)|0)+(eP>>>26)|0,eP&=67108863,l[0]=eg,l[1]=eb,l[2]=ev,l[3]=ew,l[4]=ex,l[5]=eT,l[6]=eC,l[7]=eM,l[8]=eA,l[9]=eE,l[10]=eI,l[11]=eS,l[12]=ek,l[13]=eN,l[14]=ej,l[15]=eD,l[16]=e_,l[17]=eO,l[18]=eP,0!==u&&(l[19]=u,r.length++),r};function b(e,n,r){r.negative=n.negative^e.negative,r.length=e.length+n.length;for(var i=0,a=0,o=0;o<r.length-1;o++){var s=a;a=0;for(var f=67108863&i,l=Math.min(o,n.length-1),u=Math.max(0,o-e.length+1);u<=l;u++){var c=o-u,d=(0|e.words[c])*(0|n.words[u]),p=67108863&d;s=s+(d/67108864|0)|0,f=67108863&(p=p+f|0),a+=(s=s+(p>>>26)|0)>>>26,s&=67108863}r.words[o]=f,i=s,s=a}return 0!==i?r.words[o]=i:r.length--,r._strip()}function v(e,n){this.x=e,this.y=n}Math.imul||(g=m),o.prototype.mulTo=function(e,n){var r,i=this.length+e.length;return 10===this.length&&10===e.length?g(this,e,n):i<63?m(this,e,n):b(this,e,n)},v.prototype.makeRBT=function(e){for(var n=Array(e),r=o.prototype._countBits(e)-1,i=0;i<e;i++)n[i]=this.revBin(i,r,e);return n},v.prototype.revBin=function(e,n,r){if(0===e||e===r-1)return e;for(var i=0,a=0;a<n;a++)i|=(1&e)<<n-a-1,e>>=1;return i},v.prototype.permute=function(e,n,r,i,a,o){for(var s=0;s<o;s++)i[s]=n[e[s]],a[s]=r[e[s]]},v.prototype.transform=function(e,n,r,i,a,o){this.permute(o,e,n,r,i,a);for(var s=1;s<a;s<<=1)for(var f=s<<1,l=Math.cos(2*Math.PI/f),u=Math.sin(2*Math.PI/f),c=0;c<a;c+=f)for(var d=l,p=u,h=0;h<s;h++){var y=r[c+h],m=i[c+h],g=r[c+h+s],b=i[c+h+s],v=d*g-p*b;
vendor: 20,412 bytes, lines 358-363
358b=d*b+p*g,g=v,r[c+h]=y+g,i[c+h]=m+b,r[c+h+s]=y-g,i[c+h+s]=m-b,h!==f&&(v=l*d-u*p,p=l*p+u*d,d=v)}},v.prototype.guessLen13b=function(e,n){var r=1|Math.max(n,e),i=1&r,a=0;for(r=r/2|0;r;r>>>=1)a++;return 1<<a+1+i},v.prototype.conjugate=function(e,n,r){if(!(r<=1))for(var i=0;i<r/2;i++){var a=e[i];e[i]=e[r-i-1],e[r-i-1]=a,a=n[i],n[i]=-n[r-i-1],n[r-i-1]=-a}},v.prototype.normalize13b=function(e,n){for(var r=0,i=0;i<n/2;i++){var a=8192*Math.round(e[2*i+1]/n)+Math.round(e[2*i]/n)+r;e[i]=67108863&a,r=a<67108864?0:a/67108864|0}return e},v.prototype.convert13b=function(e,n,r,a){for(var o=0,s=0;s<n;s++)o+=0|e[s],r[2*s]=8191&o,o>>>=13,r[2*s+1]=8191&o,o>>>=13;for(s=2*n;s<a;++s)r[s]=0;i(0===o),i((-8192&o)==0)},v.prototype.stub=function(e){for(var n=Array(e),r=0;r<e;r++)n[r]=0;return n},v.prototype.mulp=function(e,n,r){var i=2*this.guessLen13b(e.length,n.length),a=this.makeRBT(i),o=this.stub(i),s=Array(i),f=Array(i),l=Array(i),u=Array(i),c=Array(i),d=Array(i),p=r.words;p.length=i,this.convert13b(e.words,e.length,s,i),this.convert13b(n.words,n.length,u,i),this.transform(s,o,f,l,i,a),this.transform(u,o,c,d,i,a);for(var h=0;h<i;h++){var y=f[h]*c[h]-l[h]*d[h];l[h]=f[h]*d[h]+l[h]*c[h],f[h]=y}return this.conjugate(f,l,i),this.transform(f,l,p,o,i,a),this.conjugate(p,o,i),this.normalize13b(p,i),r.negative=e.negative^n.negative,r.length=e.length+n.length,r._strip()},o.prototype.mul=function(e){var n=new o(null);return n.words=Array(this.length+e.length),this.mulTo(e,n)},o.prototype.mulf=function(e){var n=new o(null);return n.words=Array(this.length+e.length),b(this,e,n)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){var n=e<0;n&&(e=-e),i("number"==typeof e),i(e<67108864);for(var r=0,a=0;a<this.length;a++){var o=(0|this.words[a])*e,s=(67108863&o)+(67108863&r);r>>=26,r+=(o/67108864|0)+(s>>>26),this.words[a]=67108863&s}return 0!==r&&(this.words[a]=r,this.length++),n?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var n=function(e){for(var n=Array(e.bitLength()),r=0;r<n.length;r++){var i=r/26|0,a=r%26;n[r]=e.words[i]>>>a&1}return n}(e);if(0===n.length)return new o(1);for(var r=this,i=0;i<n.length&&0===n[i];i++,r=r.sqr());if(++i<n.length)for(var a=r.sqr();i<n.length;i++,a=a.sqr())0!==n[i]&&(r=r.mul(a));return r},o.prototype.iushln=function(e){i("number"==typeof e&&e>=0);var n,r=e%26,a=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(n=0;n<this.length;n++){var f=this.words[n]&o,l=(0|this.words[n])-f<<r;this.words[n]=l|s,s=f>>>26-r}s&&(this.words[n]=s,this.length++)}if(0!==a){for(n=this.length-1;n>=0;n--)this.words[n+a]=this.words[n];for(n=0;n<a;n++)this.words[n]=0;this.length+=a}return this._strip()},o.prototype.ishln=function(e){return i(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,n,r){i("number"==typeof e&&e>=0),a=n?(n-n%26)/26:0;var a,o=e%26,s=Math.min((e-o)/26,this.length),f=67108863^67108863>>>o<<o;if(a-=s,a=Math.max(0,a),r){for(var l=0;l<s;l++)r.words[l]=this.words[l];r.length=s}if(0===s);else if(this.length>s)for(this.length-=s,l=0;l<this.length;l++)this.words[l]=this.words[l+s];else this.words[0]=0,this.length=1;var u=0;for(l=this.length-1;l>=0&&(0!==u||l>=a);l--){var c=0|this.words[l];this.words[l]=u<<26-o|c>>>o,u=c&f}return r&&0!==u&&(r.words[r.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,n,r){return i(0===this.negative),this.iushrn(e,n,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){i("number"==typeof e&&e>=0);var n=e%26,r=(e-n)/26;return!(this.length<=r)&&!!(this.words[r]&1<<n)},o.prototype.imaskn=function(e){i("number"==typeof e&&e>=0);var n=e%26,r=(e-n)/26;return(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)?this:(0!==n&&r++,this.length=Math.min(r,this.length),0!==n&&(this.words[this.length-1]&=67108863^67108863>>>n<<n),this._strip())},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return(i("number"==typeof e),i(e<67108864),e<0)?this.isubn(-e):0!==this.negative?(1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(e),this.negative=1),this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var n=0;n<this.length&&this.words[n]>=67108864;n++)this.words[n]-=67108864,n===this.length-1?this.words[n+1]=1:this.words[n+1]++;return this.length=Math.max(this.length,n+1),this},o.prototype.isubn=function(e){if(i("number"==typeof e),i(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var n=0;n<this.length&&this.words[n]<0;n++)this.words[n]+=67108864,this.words[n+1]-=1;return this._strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,n,r){var a,o,s=e.length+r;this._expand(s);var f=0;for(a=0;a<e.length;a++){o=(0|this.words[a+r])+f;var l=(0|e.words[a])*n;o-=67108863&l,f=(o>>26)-(l/67108864|0),this.words[a+r]=67108863&o}for(;a<this.length-r;a++)f=(o=(0|this.words[a+r])+f)>>26,this.words[a+r]=67108863&o;if(0===f)return this._strip();for(i(-1===f),f=0,a=0;a<this.length;a++)f=(o=-(0|this.words[a])+f)>>26,this.words[a]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,n){var r,i=this.length-e.length,a=this.clone(),s=e,f=0|s.words[s.length-1];0!=(i=26-this._countBits(f))&&(s=s.ushln(i),a.iushln(i),f=0|s.words[s.length-1]);var l=a.length-s.length;if("mod"!==n){(r=new o(null)).length=l+1,r.words=Array(r.length);for(var u=0;u<r.length;u++)r.words[u]=0}var c=a.clone()._ishlnsubmul(s,1,l);0===c.negative&&(a=c,r&&(r.words[l]=1));for(var d=l-1;d>=0;d--){var p=(0|a.words[s.length+d])*67108864+(0|a.words[s.length+d-1]);for(p=Math.min(p/f|0,67108863),a._ishlnsubmul(s,p,d);0!==a.negative;)p--,a.negative=0,a._ishlnsubmul(s,1,d),a.isZero()||(a.negative^=1);r&&(r.words[d]=p)}return r&&r._strip(),a._strip(),"div"!==n&&0!==i&&a.iushrn(i),{div:r||null,mod:a}},o.prototype.divmod=function(e,n,r){var a,s,f;return(i(!e.isZero()),this.isZero())?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(f=this.neg().divmod(e,n),"mod"!==n&&(a=f.div.neg()),"div"!==n&&(s=f.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:a,mod:s}):0===this.negative&&0!==e.negative?(f=this.divmod(e.neg(),n),"mod"!==n&&(a=f.div.neg()),{div:a,mod:f.mod}):(this.negative&e.negative)!=0?(f=this.neg().divmod(e.neg(),n),"div"!==n&&(s=f.mod.neg(),r&&0!==s.negative&&s.isub(e)),{div:f.div,mod:s}):e.length>this.length||0>this.cmp(e)?{div:new o(0),mod:this}:1===e.length?"div"===n?{div:this.divn(e.words[0]),mod:null}:"mod"===n?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,n)},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var n=this.divmod(e);if(n.mod.isZero())return n.div;var r=0!==n.div.negative?n.mod.isub(e):n.mod,i=e.ushrn(1),a=e.andln(1),o=r.cmp(i);return o<0||1===a&&0===o?n.div:0!==n.div.negative?n.div.isubn(1):n.div.iaddn(1)},o.prototype.modrn=function(e){var n=e<0;n&&(e=-e),i(e<=67108863);for(var r=67108864%e,a=0,o=this.length-1;o>=0;o--)a=(r*a+(0|this.words[o]))%e;return n?-a:a},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var n=e<0;n&&(e=-e),i(e<=67108863);for(var r=0,a=this.length-1;a>=0;a--){var o=(0|this.words[a])+67108864*r;this.words[a]=o/e|0,r=o%e}return this._strip(),n?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var n=this,r=e.clone();n=0!==n.negative?n.umod(e):n.clone();for(var a=new o(1),s=new o(0),f=new o(0),l=new o(1),u=0;n.isEven()&&r.isEven();)n.iushrn(1),r.iushrn(1),++u;for(var c=r.clone(),d=n.clone();!n.isZero();){for(var p=0,h=1;(n.words[0]&h)==0&&p<26;++p,h<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(a.isOdd()||s.isOdd())&&(a.iadd(c),s.isub(d)),a.iushrn(1),s.iushrn(1);for(var y=0,m=1;(r.words[0]&m)==0&&y<26;++y,m<<=1);if(y>0)for(r.iushrn(y);y-- >0;)(f.isOdd()||l.isOdd())&&(f.iadd(c),l.isub(d)),f.iushrn(1),l.iushrn(1);n.cmp(r)>=0?(n.isub(r),a.isub(f),s.isub(l)):(r.isub(n),f.isub(a),l.isub(s))}return{a:f,b:l,gcd:r.iushln(u)}},o.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var n,r=this,a=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var s=new o(1),f=new o(0),l=a.clone();r.cmpn(1)>0&&a.cmpn(1)>0;){for(var u=0,c=1;(r.words[0]&c)==0&&u<26;++u,c<<=1);if(u>0)for(r.iushrn(u);u-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);for(var d=0,p=1;(a.words[0]&p)==0&&d<26;++d,p<<=1);if(d>0)for(a.iushrn(d);d-- >0;)f.isOdd()&&f.iadd(l),f.iushrn(1);r.cmp(a)>=0?(r.isub(a),s.isub(f)):(a.isub(r),f.isub(s))}return 0>(n=0===r.cmpn(1)?s:f).cmpn(0)&&n.iadd(e),n},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var n=this.clone(),r=e.clone();n.negative=0,r.negative=0;for(var i=0;n.isEven()&&r.isEven();i++)n.iushrn(1),r.iushrn(1);for(;;){for(;n.isEven();)n.iushrn(1);for(;r.isEven();)r.iushrn(1);var a=n.cmp(r);if(a<0){var o=n;n=r,r=o}else if(0===a||0===r.cmpn(1))break;n.isub(r)}return r.iushln(i)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return(1&this.words[0])==0},o.prototype.isOdd=function(){return(1&this.words[0])==1},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){i("number"==typeof e);var n=e%26,r=(e-n)/26,a=1<<n;if(this.length<=r)return this._expand(r+1),this.words[r]|=a,this;for(var o=a,s=r;0!==o&&s<this.length;s++){var f=0|this.words[s];f+=o,o=f>>>26,f&=67108863,this.words[s]=f}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var n,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)n=1;else{r&&(e=-e),i(e<=67108863,"Number is too big");var a=0|this.words[0];n=a===e?0:a<e?-1:1}return 0!==this.negative?0|-n:n},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return -1;if(0===this.negative&&0!==e.negative)return 1;var n=this.ucmp(e);return 0!==this.negative?0|-n:n},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return -1;for(var n=0,r=this.length-1;r>=0;r--){var i=0|this.words[r],a=0|e.words[r];if(i!==a){i<a?n=-1:i>a&&(n=1);break}}return n},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return -1===this.cmpn(e)},o.prototype.lt=function(e){return -1===this.cmp(e)},o.prototype.lten=function(e){return 0>=this.cmpn(e)},o.prototype.lte=function(e){return 0>=this.cmp(e)},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new E(e)},o.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var w={k256:null,p224:null,p192:null,p25519:null};function x(e,n){this.name=e,this.p=new o(n,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function T(){x.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function C(){x.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){x.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){x.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var n=o._prime(e);this.m=n.p,this.prime=n}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function I(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}x.prototype._tmp=function(){var e=new o(null);return e.words=Array(Math.ceil(this.n/13)),e},x.prototype.ireduce=function(e){var n,r=e;do this.split(r,this.tmp),n=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(n>this.n);var i=n<this.n?-1:r.ucmp(this.p);return 0===i?(r.words[0]=0,r.length=1):i>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},x.prototype.split=function(e,n){e.iushrn(this.n,0,n)},x.prototype.imulK=function(e){return e.imul(this.k)},a(T,x),T.prototype.split=function(e,n){for(var r=Math.min(e.length,9),i=0;i<r;i++)n.words[i]=e.words[i];if(n.length=r,e.length<=9){e.words[0]=0,e.length=1;return}var a=e.words[9];for(i=10,n.words[n.length++]=4194303&a;i<e.length;i++){var o=0|e.words[i];e.words[i-10]=(4194303&o)<<4|a>>>22,a=o}a>>>=22,e.words[i-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},T.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var n=0,r=0;r<e.length;r++){var i=0|e.words[r];n+=977*i,e.words[r]=67108863&n,n=64*i+(n/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},a(C,x),a(M,x),a(A,x),A.prototype.imulK=function(e){for(var n=0,r=0;r<e.length;r++){var i=(0|e.words[r])*19+n,a=67108863&i;i>>>=26,e.words[r]=a,n=i}return 0!==n&&(e.words[e.length++]=n),e},o._prime=function(e){var n;if(w[e])return w[e];if("k256"===e)n=new T;else if("p224"===e)n=new C;else if("p192"===e)n=new M;else if("p25519"===e)n=new A;else throw Error("Unknown prime "+e);return w[e]=n,n},E.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,n){i((e.negative|n.negative)==0,"red works only with positives"),i(e.red&&e.red===n.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(u(e,e.umod(this.m)._forceRed(this)),e)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.prototype.add=function(e,n){this._verify2(e,n);var r=e.add(n);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},E.prototype.iadd=function(e,n){this._verify2(e,n);var r=e.iadd(n);return r.cmp(this.m)>=0&&r.isub(this.m),r},E.prototype.sub=function(e,n){this._verify2(e,n);var r=e.sub(n);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},E.prototype.isub=function(e,n){this._verify2(e,n);var r=e.isub(n);return 0>r.cmpn(0)&&r.iadd(this.m),r},E.prototype.shl=function(e,n){return this._verify1(e),this.imod(e.ushln(n))},E.prototype.imul=function(e,n){return this._verify2(e,n),this.imod(e.imul(n))},E.prototype.mul=function(e,n){return this._verify2(e,n),this.imod(e.mul(n))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var n=this.m.andln(3);if(i(n%2==1),3===n){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var a=this.m.subn(1),s=0;!a.isZero()&&0===a.andln(1);)s++,a.iushrn(1);i(!a.isZero());var f=new o(1).toRed(this),l=f.redNeg(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,u).cmp(l);)c.redIAdd(l);for(var d=this.pow(c,a),p=this.pow(e,a.addn(1).iushrn(1)),h=this.pow(e,a),y=s;0!==h.cmp(f);){for(var m=h,g=0;0!==m.cmp(f);g++)m=m.redSqr();i(g<y);var b=this.pow(d,new o(1).iushln(y-g-1));p=p.redMul(b),d=b.redSqr(),h=h.redMul(d),y=g}return p},E.prototype.invm=function(e){var n=e._invmp(this.m);return 0!==n.negative?(n.negative=0,this.imod(n).redNeg()):this.imod(n)},E.prototype.pow=function(e,n){if(n.isZero())return new o(1).toRed(this);if(0===n.cmpn(1))return e.clone();var r=Array(16);r[0]=new o(1).toRed(this),r[1]=e;for(var i=2;i<r.length;i++)r[i]=this.mul(r[i-1],e);var a=r[0],s=0,f=0,l=n.bitLength()%26;for(0===l&&(l=26),i=n.length-1;i>=0;i--){for(var u=n.words[i],c=l-1;c>=0;c--){var d=u>>c&1;if(a!==r[0]&&(a=this.sqr(a)),0===d&&0===s){f=0;continue}s<<=1,s|=d,(4==++f||0===i&&0===c)&&(a=this.mul(a,r[s]),f=0,s=0)}l=26}return a},E.prototype.convertTo=function(e){var n=e.umod(this.m);return n===e?n.clone():n},E.prototype.convertFrom=function(e){var n=e.clone();return n.red=null,n},o.mont=function(e){return new I(e)},a(I,E),I.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},I.prototype.convertFrom=function(e){var n=this.imod(e.mul(this.rinv));return n.red=null,n},I.prototype.imul=function(e,n){if(e.isZero()||n.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(n),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=r.isub(i).iushrn(this.shift),o=a;return a.cmp(this.m)>=0?o=a.isub(this.m):0>a.cmpn(0)&&(o=a.iadd(this.m)),o._forceRed(this)},I.prototype.mul=function(e,n){if(e.isZero()||n.isZero())return new o(0)._forceRed(this);var r=e.mul(n),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=r.isub(i).iushrn(this.shift),s=a;return a.cmp(this.m)>=0?s=a.isub(this.m):0>a.cmpn(0)&&(s=a.iadd(this.m)),s._forceRed(this)},I.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},77191:function(e,n,r){let i=r(58162);e.exports=i("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},48764:function(e,n,r){"use strict";/*! 359 * The buffer module from node.js, for the browser. 360 * 361 * @author Feross Aboukhadijeh <https://feross.org> 362 * @license MIT 363 */let i=r(79742),a=r(80645),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(e){if(e>
3632147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');let n=new Uint8Array(e);return Object.setPrototypeOf(n,f.prototype),n}function f(e,n,r){if("number"==typeof e){if("string"==typeof n)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,n,r)}function l(e,n,r){if("string"==typeof e)return function(e,n){if(("string"!=typeof n||""===n)&&(n="utf8"),!f.isEncoding(n))throw TypeError("Unknown encoding: "+n);let r=0|y(e,n),i=s(r),a=i.write(e,n);return a!==r&&(i=i.slice(0,a)),i}(e,n);if(ArrayBuffer.isView(e))return function(e){if(z(e,Uint8Array)){let n=new Uint8Array(e);return p(n.buffer,n.byteOffset,n.byteLength)}return d(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(z(e,ArrayBuffer)||e&&z(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(z(e,SharedArrayBuffer)||e&&z(e.buffer,SharedArrayBuffer)))return p(e,n,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');let i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return f.from(i,n,r);let a=function(e){var n;if(f.isBuffer(e)){let n=0|h(e.length),r=s(n);return 0===r.length||e.copy(r,0,0,n),r}return void 0!==e.length?"number"!=typeof e.length||(n=e.length)!=n?s(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(a)return a;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return f.from(e[Symbol.toPrimitive]("string"),n,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),s(e<0?0:0|h(e))}function d(e){let n=e.length<0?0:0|h(e.length),r=s(n);for(let i=0;i<n;i+=1)r[i]=255&e[i];return r}function p(e,n,r){let i;if(n<0||e.byteLength<n)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<n+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(i=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r),f.prototype),i}function h(e){if(e>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function y(e,n){if(f.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||z(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===r)return 0;let a=!1;for(;;)switch(n){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return P(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return L(e).length;default:if(a)return i?-1:P(e).length;n=(""+n).toLowerCase(),a=!0}}function m(e,n,r){let a=!1;if((void 0===n||n<0)&&(n=0),n>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(n>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,n,r){let i=e.length;(!n||n<0)&&(n=0),(!r||r<0||r>i)&&(r=i);let a="";for(let i=n;i<r;++i)a+=B[e[i]];return a}(this,n,r);case"utf8":case"utf-8":return w(this,n,r);case"ascii":return function(e,n,r){let i="";r=Math.min(e.length,r);for(let a=n;a<r;++a)i+=String.fromCharCode(127&e[a]);return i}(this,n,r);case"latin1":case"binary":return function(e,n,r){let i="";r=Math.min(e.length,r);for(let a=n;a<r;++a)i+=String.fromCharCode(e[a]);return i}(this,n,r);case"base64":var o,s;return o=n,s=r,0===o&&s===this.length?i.fromByteArray(this):i.fromByteArray(this.slice(o,s));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,n,r){let i=e.slice(n,r),a="";for(let e=0;e<i.length-1;e+=2)a+=String.fromCharCode(i[e]+256*i[e+1]);return a}(this,n,r);default:if(a)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}function g(e,n,r){let i=e[n];e[n]=e[r],e[r]=i}function b(e,n,r,i,a){var o;if(0===e.length)return -1;if("string"==typeof r?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(o=r=+r)!=o&&(r=a?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(a)return -1;r=e.length-1}
vendor: 5,692 bytes, line 363
363else if(r<0){if(!a)return -1;r=0}if("string"==typeof n&&(n=f.from(n,i)),f.isBuffer(n))return 0===n.length?-1:v(e,n,r,i,a);if("number"==typeof n)return(n&=255,"function"==typeof Uint8Array.prototype.indexOf)?a?Uint8Array.prototype.indexOf.call(e,n,r):Uint8Array.prototype.lastIndexOf.call(e,n,r):v(e,[n],r,i,a);throw TypeError("val must be string, number or Buffer")}function v(e,n,r,i,a){let o,s=1,f=e.length,l=n.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||n.length<2)return -1;s=2,f/=2,l/=2,r/=2}function u(e,n){return 1===s?e[n]:e.readUInt16BE(n*s)}if(a){let i=-1;for(o=r;o<f;o++)if(u(e,o)===u(n,-1===i?0:o-i)){if(-1===i&&(i=o),o-i+1===l)return i*s}else -1!==i&&(o-=o-i),i=-1}else for(r+l>f&&(r=f-l),o=r;o>=0;o--){let r=!0;for(let i=0;i<l;i++)if(u(e,o+i)!==u(n,i)){r=!1;break}if(r)return o}return -1}function w(e,n,r){r=Math.min(e.length,r);let i=[],a=n;for(;a<r;){let n=e[a],o=null,s=n>239?4:n>223?3:n>191?2:1;if(a+s<=r){let r,i,f,l;switch(s){case 1:n<128&&(o=n);break;case 2:(192&(r=e[a+1]))==128&&(l=(31&n)<<6|63&r)>127&&(o=l);break;case 3:r=e[a+1],i=e[a+2],(192&r)==128&&(192&i)==128&&(l=(15&n)<<12|(63&r)<<6|63&i)>2047&&(l<55296||l>57343)&&(o=l);break;case 4:r=e[a+1],i=e[a+2],f=e[a+3],(192&r)==128&&(192&i)==128&&(192&f)==128&&(l=(15&n)<<18|(63&r)<<12|(63&i)<<6|63&f)>65535&&l<1114112&&(o=l)}}null===o?(o=65533,s=1):o>65535&&(o-=65536,i.push(o>>>10&1023|55296),o=56320|1023&o),i.push(o),a+=s}return function(e){let n=e.length;if(n<=4096)return String.fromCharCode.apply(String,e);let r="",i=0;for(;i<n;)r+=String.fromCharCode.apply(String,e.slice(i,i+=4096));return r}(i)}function x(e,n,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+n>r)throw RangeError("Trying to access beyond buffer length")}function T(e,n,r,i,a,o){if(!f.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(n>a||n<o)throw RangeError('"value" argument is out of bounds');if(r+i>e.length)throw RangeError("Index out of range")}function C(e,n,r,i,a){j(n,i,a,e,r,7);let o=Number(n&BigInt(4294967295));e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o;let s=Number(n>>BigInt(32)&BigInt(4294967295));return e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,r}function M(e,n,r,i,a){j(n,i,a,e,r,7);let o=Number(n&BigInt(4294967295));e[r+7]=o,o>>=8,e[r+6]=o,o>>=8,e[r+5]=o,o>>=8,e[r+4]=o;let s=Number(n>>BigInt(32)&BigInt(4294967295));return e[r+3]=s,s>>=8,e[r+2]=s,s>>=8,e[r+1]=s,s>>=8,e[r]=s,r+8}function A(e,n,r,i,a,o){if(r+i>e.length||r<0)throw RangeError("Index out of range")}function E(e,n,r,i,o){return n=+n,r>>>=0,o||A(e,n,r,4,34028234663852886e22,-34028234663852886e22),a.write(e,n,r,i,23,4),r+4}function I(e,n,r,i,o){return n=+n,r>>>=0,o||A(e,n,r,8,17976931348623157e292,-17976931348623157e292),a.write(e,n,r,i,52,8),r+8}n.Buffer=f,n.SlowBuffer=function(e){return+e!=e&&(e=0),f.alloc(+e)},n.INSPECT_MAX_BYTES=50,n.kMaxLength=2147483647,f.TYPED_ARRAY_SUPPORT=function(){try{let e=new Uint8Array(1),n={foo:function(){return 42}};return Object.setPrototypeOf(n,Uint8Array.prototype),Object.setPrototypeOf(e,n),42===e.foo()}catch(e){return!1}}(),f.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(f.prototype,"parent",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.buffer}}),Object.defineProperty(f.prototype,"offset",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.byteOffset}}),f.poolSize=8192,f.from=function(e,n,r){return l(e,n,r)},Object.setPrototypeOf(f.prototype,Uint8Array.prototype),Object.setPrototypeOf(f,Uint8Array),f.alloc=function(e,n,r){return(u(e),e<=0)?s(e):void 0!==n?"string"==typeof r?s(e).fill(n,r):s(e).fill(n):s(e)},f.allocUnsafe=function(e){return c(e)},f.allocUnsafeSlow=function(e){return c(e)},f.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==f.prototype},f.compare=function(e,n){if(z(e,Uint8Array)&&(e=f.from(e,e.offset,e.byteLength)),z(n,Uint8Array)&&(n=f.from(n,n.offset,n.byteLength)),!f.isBuffer(e)||!f.isBuffer(n))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===n)return 0;let r=e.length,i=n.length;for(let a=0,o=Math.min(r,i);a<o;++a)if(e[a]!==n[a]){r=e[a],i=n[a];break}return r<i?-1:i<r?1:0},f.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(e,n){let r;if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return f.alloc(0);if(void 0===n)for(r=0,n=0;r<e.length;++r)n+=e[r].length;let i=f.allocUnsafe(n),a=0;for(r=0;r<e.length;++r){let n=e[r];if(z(n,Uint8Array))a+n.length>i.length?(f.isBuffer(n)||(n=f.from(n)),n.copy(i,a)):Uint8Array.prototype.set.call(i,n,a);else if(f.isBuffer(n))n.copy(i,a);else throw TypeError('"list" argument must be an Array of Buffers');a+=n.length}return i},f.byteLength=y,f.prototype._isBuffer=!0,f.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let n=0;n<e;n+=2)g(this,n,n+1);return this},f.prototype.swap32=function(){let e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let n=0;n<e;n+=4)g(this,n,n+3),g(this,n+1,n+2);return this},f.prototype.swap64=function(){let e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let n=0;n<e;
vendor: 10,956 bytes, line 363
363n+=8)g(this,n,n+7),g(this,n+1,n+6),g(this,n+2,n+5),g(this,n+3,n+4);return this},f.prototype.toString=function(){let e=this.length;return 0===e?"":0==arguments.length?w(this,0,e):m.apply(this,arguments)},f.prototype.toLocaleString=f.prototype.toString,f.prototype.equals=function(e){if(!f.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===f.compare(this,e)},f.prototype.inspect=function(){let e="",r=n.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},o&&(f.prototype[o]=f.prototype.inspect),f.prototype.compare=function(e,n,r,i,a){if(z(e,Uint8Array)&&(e=f.from(e,e.offset,e.byteLength)),!f.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===n&&(n=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===a&&(a=this.length),n<0||r>e.length||i<0||a>this.length)throw RangeError("out of range index");if(i>=a&&n>=r)return 0;if(i>=a)return -1;if(n>=r)return 1;if(n>>>=0,r>>>=0,i>>>=0,a>>>=0,this===e)return 0;let o=a-i,s=r-n,l=Math.min(o,s),u=this.slice(i,a),c=e.slice(n,r);for(let e=0;e<l;++e)if(u[e]!==c[e]){o=u[e],s=c[e];break}return o<s?-1:s<o?1:0},f.prototype.includes=function(e,n,r){return -1!==this.indexOf(e,n,r)},f.prototype.indexOf=function(e,n,r){return b(this,e,n,r,!0)},f.prototype.lastIndexOf=function(e,n,r){return b(this,e,n,r,!1)},f.prototype.write=function(e,n,r,i){var a,o,s,f,l,u,c,d;if(void 0===n)i="utf8",r=this.length,n=0;else if(void 0===r&&"string"==typeof n)i=n,r=this.length,n=0;else if(isFinite(n))n>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i="utf8")):(i=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let p=this.length-n;if((void 0===r||r>p)&&(r=p),e.length>0&&(r<0||n<0)||n>this.length)throw RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let h=!1;for(;;)switch(i){case"hex":return function(e,n,r,i){let a;r=Number(r)||0;let o=e.length-r;i?(i=Number(i))>o&&(i=o):i=o;let s=n.length;for(i>s/2&&(i=s/2),a=0;a<i;++a){let i=parseInt(n.substr(2*a,2),16);if(i!=i)break;e[r+a]=i}return a}(this,e,n,r);case"utf8":case"utf-8":return a=n,o=r,R(P(e,this.length-a),this,a,o);case"ascii":case"latin1":case"binary":return s=n,f=r,R(function(e){let n=[];for(let r=0;r<e.length;++r)n.push(255&e.charCodeAt(r));return n}(e),this,s,f);case"base64":return l=n,u=r,R(L(e),this,l,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c=n,d=r,R(function(e,n){let r,i;let a=[];for(let o=0;o<e.length&&!((n-=2)<0);++o)i=(r=e.charCodeAt(o))>>8,a.push(r%256),a.push(i);return a}(e,this.length-c),this,c,d);default:if(h)throw TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),h=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},f.prototype.slice=function(e,n){let r=this.length;e=~~e,n=void 0===n?r:~~n,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),n<0?(n+=r)<0&&(n=0):n>r&&(n=r),n<e&&(n=e);let i=this.subarray(e,n);return Object.setPrototypeOf(i,f.prototype),i},f.prototype.readUintLE=f.prototype.readUIntLE=function(e,n,r){e>>>=0,n>>>=0,r||x(e,n,this.length);let i=this[e],a=1,o=0;for(;++o<n&&(a*=256);)i+=this[e+o]*a;return i},f.prototype.readUintBE=f.prototype.readUIntBE=function(e,n,r){e>>>=0,n>>>=0,r||x(e,n,this.length);let i=this[e+--n],a=1;for(;n>0&&(a*=256);)i+=this[e+--n]*a;return i},f.prototype.readUint8=f.prototype.readUInt8=function(e,n){return e>>>=0,n||x(e,1,this.length),this[e]},f.prototype.readUint16LE=f.prototype.readUInt16LE=function(e,n){return e>>>=0,n||x(e,2,this.length),this[e]|this[e+1]<<8},f.prototype.readUint16BE=f.prototype.readUInt16BE=function(e,n){return e>>>=0,n||x(e,2,this.length),this[e]<<8|this[e+1]},f.prototype.readUint32LE=f.prototype.readUInt32LE=function(e,n){return e>>>=0,n||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},f.prototype.readUint32BE=f.prototype.readUInt32BE=function(e,n){return e>>>=0,n||x(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},f.prototype.readBigUInt64LE=U(function(e){D(e>>>=0,"offset");let n=this[e],r=this[e+7];(void 0===n||void 0===r)&&_(e,this.length-8);let i=n+256*this[++e]+65536*this[++e]+16777216*this[++e],a=this[++e]+256*this[++e]+65536*this[++e]+16777216*r;return BigInt(i)+(BigInt(a)<<BigInt(32))}),f.prototype.readBigUInt64BE=U(function(e){D(e>>>=0,"offset");let n=this[e],r=this[e+7];(void 0===n||void 0===r)&&_(e,this.length-8);let i=16777216*n+65536*this[++e]+256*this[++e]+this[++e],a=16777216*this[++e]+65536*this[++e]+256*this[++e]+r;return(BigInt(i)<<BigInt(32))+BigInt(a)}),f.prototype.readIntLE=function(e,n,r){e>>>=0,n>>>=0,r||x(e,n,this.length);let i=this[e],a=1,o=0;for(;++o<n&&(a*=256);)i+=this[e+o]*a;return i>=(a*=128)&&(i-=Math.pow(2,8*n)),i},f.prototype.readIntBE=function(e,n,r){e>>>=0,n>>>=0,r||x(e,n,this.length);let i=n,a=1,o=this[e+--i];for(;i>0&&(a*=256);)o+=this[e+--i]*a;return o>=(a*=128)&&(o-=Math.pow(2,8*n)),o},f.prototype.readInt8=function(e,n){return(e>>>=0,n||x(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},f.prototype.readInt16LE=function(e,n){e>>>=0,n||x(e,2,this.length);let r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},f.prototype.readInt16BE=function(e,n){e>>>=0,n||x(e,2,this.length);let r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},f.prototype.readInt32LE=function(e,n){return e>>>=0,n||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},f.prototype.readInt32BE=function(e,n){return e>>>=0,n||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},f.prototype.readBigInt64LE=U(function(e){D(e>>>=0,"offset");let n=this[e],r=this[e+7];return(void 0===n||void 0===r)&&_(e,this.length-8),(BigInt(this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24))<<BigInt(32))+BigInt(n+256*this[++e]+65536*this[++e]+16777216*this[++e])}),f.prototype.readBigInt64BE=U(function(e){D(e>>>=0,"offset");let n=this[e],r=this[e+7];return(void 0===n||void 0===r)&&_(e,this.length-8),(BigInt((n<<24)+65536*this[++e]+256*this[++e]+this[++e])<<BigInt(32))+BigInt(16777216*this[++e]+65536*this[++e]+256*this[++e]+r)}),f.prototype.readFloatLE=function(e,n){return e>>>=0,n||x(e,4,this.length),a.read(this,e,!0,23,4)},f.prototype.readFloatBE=function(e,n){return e>>>=0,n||x(e,4,this.length),a.read(this,e,!1,23,4)},f.prototype.readDoubleLE=function(e,n){return e>>>=0,n||x(e,8,this.length),a.read(this,e,!0,52,8)},f.prototype.readDoubleBE=function(e,n){return e>>>=0,n||x(e,8,this.length),a.read(this,e,!1,52,8)},f.prototype.writeUintLE=f.prototype.writeUIntLE=function(e,n,r,i){if(e=+e,n>>>=0,r>>>=0,!i){let i=Math.pow(2,8*r)-1;T(this,e,n,r,i,0)}let a=1,o=0;for(this[n]=255&e;++o<r&&(a*=256);)this[n+o]=e/a&255;return n+r},f.prototype.writeUintBE=f.prototype.writeUIntBE=function(e,n,r,i){if(e=+e,n>>>=0,r>>>=0,!i){let i=Math.pow(2,8*r)-1;T(this,e,n,r,i,0)}let a=r-1,o=1;for(this[n+a]=255&e;--a>=0&&(o*=256);)this[n+a]=e/o&255;return n+r},f.prototype.writeUint8=f.prototype.writeUInt8=function(e,n,r){return e=+e,n>>>=0,r||T(this,e,n,1,255,0),this[n]=255&e,n+1},f.prototype.writeUint16LE=f.prototype.writeUInt16LE=function(e,n,r){return e=+e,n>>>=0,r||T(this,e,n,2,65535,0),this[n]=255&e,this[n+1]=e>>>8,n+2},f.prototype.writeUint16BE=f.prototype.writeUInt16BE=function(e,n,r){return e=+e,n>>>=0,r||T(this,e,n,2,65535,0),this[n]=e>>>8,this[n+1]=255&e,n+2},f.prototype.writeUint32LE=f.prototype.writeUInt32LE=function(e,n,r){return e=+e,n>>>=0,r||T(this,e,n,4,4294967295,0),this[n+3]=e>>>24,this[n+2]=e>>>16,this[n+1]=e>>>8,this[n]=255&e,n+4},f.prototype.writeUint32BE=f.prototype.writeUInt32BE=function(e,n,r){return e=+e,n>>>=0,r||T(this,e,n,4,4294967295,0),this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e,n+4},f.prototype.writeBigUInt64LE=U(function(e,n=0){return C(this,e,n,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeBigUInt64BE=U(function(e,n=0){return M(this,e,n,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeIntLE=function(e,n,r,i){if(e=+e,n>>>=0,!i){let i=Math.pow(2,8*r-1);T(this,e,n,r,i-1,-i)}let a=0,o=1,s=0;for(this[n]=255&e;++a<r&&(o*=256);)e<0&&0===s&&0!==this[n+a-1]&&(s=1),this[n+a]=(e/o>>0)-s&255;return n+r},f.prototype.writeIntBE=function(e,n,r,i){if(e=+e,n>>>=0,!i){let i=Math.pow(2,8*r-1);T(this,e,n,r,i-1,-i)}let a=r-1,o=1,s=0;for(this[n+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[n+a+1]&&(s=1),this[n+a]=(e/o>>0)-s&255;return n+r},f.prototype.writeInt8=function(e,n,r){return e=+e,n>>>=0,r||T(this,e,n,1,127,-128),e<0&&(e=255+e+1),this[n]=255&e,n+1},f.prototype.writeInt16LE=function(e,n,r){return e=+e,n>>>=0,r||T(this,e,n,2,32767,-32768),this[n]=255&e,this[n+1]=e>>>8,n+2},f.prototype.writeInt16BE=function(e,n,r){return e=+e,n>>>=0,r||T(this,e,n,2,32767,-32768),this[n]=e>>>8,this[n+1]=255&e,n+2},f.prototype.writeInt32LE=function(e,n,r){return e=+e,n>>>=0,r||T(this,e,n,4,2147483647,-2147483648),this[n]=255&e,this[n+1]=e>>>8,this[n+2]=e>>>16,this[n+3]=e>>>24,n+4},f.prototype.writeInt32BE=function(e,n,r){return e=+e,n>>>=0,r||T(this,e,n,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e,n+4},f.prototype.writeBigInt64LE=U(function(e,n=0){return C(this,e,n,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),f.prototype.writeBigInt64BE=U(function(e,n=0){return M(this,e,n,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),f.prototype.writeFloatLE=function(e,n,r){return E(this,e,n,!0,r)},f.prototype.writeFloatBE=function(e,n,r){return E(this,e,n,!1,r)},f.prototype.writeDoubleLE=function(e,n,r){return I(this,e,n,!0,r)},f.prototype.writeDoubleBE=function(e,n,r){return I(this,e,n,!1,r)},f.prototype.copy=function(e,n,r,i){if(!f.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),i||0===i||(i=this.length),n>=e.length&&(n=e.length),n||(n=0),i>0&&i<r&&(i=r),i===r||0===e.length||0===this.length)return 0;if(n<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(i<0)throw RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-n<i-r&&(i=e.length-n+r);let a=i-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(n,r,i):Uint8Array.prototype.set.call(e,this.subarray(r,i),n),a},f.prototype.fill=function(e,n,r,i){let a;if("string"==typeof e){if("string"==typeof n?(i=n,n=0,r=this.length):"string"==typeof r&&(i=r,r=this.length),void 0!==i&&"string"!=typeof i)throw TypeError("encoding must be a string");if("string"==typeof i&&!f.isEncoding(i))throw TypeError("Unknown encoding: "+i);if(1===e.length){let n=e.charCodeAt(0);("utf8"===i&&n<128||"latin1"===i)&&(e=n)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(n<0||this.length<n||this.length<r)throw RangeError("Out of range index");if(r<=n)return this;if(n>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=n;a<r;++a)this[a]=e;
363else{let o=f.isBuffer(e)?e:f.from(e,i),s=o.length;if(0===s)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<r-n;++a)this[a+n]=o[a%s]}return this};let S={};function k(e,n,r){S[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:n.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function N(e){let n="",r=e.length,i="-"===e[0]?1:0;for(;r>=i+4;r-=3)n=`_${e.slice(r-3,r)}${n}`;return`${e.slice(0,r)}${n}`}function j(e,n,r,i,a,o){if(e>r||e<n){let i;let a="bigint"==typeof n?"n":"";throw i=o>3?0===n||n===BigInt(0)?`>= 0${a} and < 2${a} ** ${(o+1)*8}${a}`:`>= -(2${a} ** ${(o+1)*8-1}${a}) and < 2 ** ${(o+1)*8-1}${a}`:`>= ${n}${a} and <= ${r}${a}`,new S.ERR_OUT_OF_RANGE("value",i,e)}D(a,"offset"),(void 0===i[a]||void 0===i[a+o])&&_(a,i.length-(o+1))}function D(e,n){if("number"!=typeof e)throw new S.ERR_INVALID_ARG_TYPE(n,"number",e)}function _(e,n,r){if(Math.floor(e)!==e)throw D(e,r),new S.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(n<0)throw new S.ERR_BUFFER_OUT_OF_BOUNDS;throw new S.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${n}`,e)}k("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),k("ERR_INVALID_ARG_TYPE",function(e,n){return`The "${e}" argument must be of type number. Received type ${typeof n}`},TypeError),k("ERR_OUT_OF_RANGE",function(e,n,r){let i=`The value of "${e}" is out of range.`,a=r;return Number.isInteger(r)&&Math.abs(r)>4294967296?a=N(String(r)):"bigint"==typeof r&&(a=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(a=N(a)),a+="n"),i+=` It must be ${n}. Received ${a}`},RangeError);let O=/[^+/0-9A-Za-z-_]/g;function P(e,n){let r;n=n||1/0;let i=e.length,a=null,o=[];for(let s=0;s<i;++s){if((r=e.charCodeAt(s))>55295&&r<57344){if(!a){if(r>56319||s+1===i){(n-=3)>-1&&o.push(239,191,189);continue}a=r;continue}if(r<56320){(n-=3)>-1&&o.push(239,191,189),a=r;continue}r=(a-55296<<10|r-56320)+65536}else a&&(n-=3)>-1&&o.push(239,191,189);if(a=null,r<128){if((n-=1)<0)break;o.push(r)}else if(r<2048){if((n-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((n-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((n-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function L(e){return i.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(O,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function R(e,n,r,i){let a;for(a=0;a<i&&!(a+r>=n.length)&&!(a>=e.length);++a)n[a+r]=e[a];return a}function z(e,n){return e instanceof n||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===n.name}let B=function(){let e="0123456789abcdef",n=Array(256);for(let r=0;r<16;++r){let i=16*r;for(let a=0;a<16;++a)n[i+a]=e[r]+e[a]}return n}();function U(e){return"undefined"==typeof BigInt?F:e}function F(){throw Error("BigInt not supported")}},21924:function(e,n,r){"use strict";var i=r(40210),a=r(55559),o=a(i("String.prototype.indexOf"));e.exports=function(e,n){var r=i(e,!!n);return"function"==typeof r&&o(e,".prototype.")>-1?a(r):r}},55559:function(e,n,r){"use strict";var i=r(58612),a=r(40210),o=r(67771),s=r(14453),f=a("%Function.prototype.apply%"),l=a("%Function.prototype.call%"),u=a("%Reflect.apply%",!0)||i.call(l,f),c=r(24429),d=a("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new s("a function is required");var n=u(i,l,arguments);return o(n,1+d(0,e.length-(arguments.length-1)),!0)};var p=function(){return u(i,f,arguments)};c?c(e.exports,"apply",{value:p}):e.exports.apply=p},78436:function(e,n,r){"use strict";let i=r(97164);e.exports=function(e,n="utf8"){let r=i[n];if(!r)throw Error(`Unsupported encoding "${n}"`);return r.encoder.encode(e).substring(1)}},97164:function(e,n,r){"use strict";let{bases:i}=r(91835);function a(e,n,r,i){return{name:e,prefix:n,encoder:{name:e,prefix:n,encode:r},decoder:{decode:i}}}let o=a("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>new TextEncoder().encode(e.substring(1))),s=a("ascii","a",e=>{let n="a";for(let r=0;r<e.length;r++)n+=String.fromCharCode(e[r]);return n},e=>{let n=new Uint8Array((e=e.substring(1)).length);for(let r=0;r<e.length;r++)n[r]=e.charCodeAt(r);return n}),f={utf8:o,"utf-8":o,hex:i.base16,latin1:s,ascii:s,binary:s,...i};e.exports=f},5625:function(e,n,r){"use strict";let i=r(98878),a=r(9133);e.exports=function(e){try{e=new i(e)}catch(n){throw a(n,`invalid cid: ${e}`)}return 1!==e.version&&(e=e.toV1()),e.toBaseEncodedString("base32")}},66581:function(e,n,r){"use strict";let i=r(36957);e.exports=function(){let e=[];for(let n of Object.values(i.names))e.push({name:n.name,code:n.code});return e}},8916:function(e,n,r){"use strict";let i=r(98878);e.exports=function(){let e=[];
363for(let[n,r]of Object.entries(i.codecs))e.push({name:n,code:r});return e}},71834:function(e,n,r){"use strict";let i=r(98878),a=r(66581),o=r(8916),s=r(9133),f=r(36957),l=r(18370),u=r(78436);function c(e){return"[object String]"===Object.prototype.toString.call(e)}function d(e){let n=a().find(n=>n.code===e||n.name===e);if(!n)throw Error(`invalid multibase: ${e}`);return n}e.exports=function(e,n){var r,a;let p=(n=n||{}).format||"%s";if("prefix"===p&&(p="%P"),!c(p)||-1===p.indexOf("%"))throw Error(`invalid format string: ${p}`);let h=e;try{e=new i(e)}catch(n){throw s(n,`invalid cid: ${e}`)}if(null!=n.cidVersion&&e.version!==n.cidVersion){if(0===n.cidVersion)e=e.toV0();else if(1===n.cidVersion)e=e.toV1();else throw Error(`invalid cid version: ${n.cidVersion}`)}let y="base58btc";return n.base?y=d(n.base).name:c(h)&&(y=f.isEncoded(h)||y),p.replace(/%([a-zA-Z%])/g,(r=e,a=y,(e,n)=>{switch(n){case"%":return"%";case"b":return a;case"B":return d(a).code;case"v":return`cidv${r.version}`;case"V":return r.version.toString();case"c":return r.codec;case"C":return(function(e){let n=o().find(n=>n.name===e.codec);if(!n)throw Error(`invalid codec: ${e.codec}`);return n.code})(r).toString();case"h":return l.decode(r.multihash).name;case"H":return l.decode(r.multihash).code.toString();case"L":return l.decode(r.multihash).length.toString();case"m":return u(f.encode(a,r.multihash));case"M":return u(r.multihash,a);case"d":return u(f.encode(a,l.decode(r.multihash).digest));case"D":return u(l.decode(r.multihash).digest,a);case"s":return r.toString(a);case"S":return 1===r.version?r.toString(a).slice(1):u(r.bytes,a);case"P":return function(e){let{name:n,length:r}=l.decode(e.multihash);return`cidv${e.version}-${e.codec}-${n}-${r}`}(r);default:throw Error(`unrecognized specifier in format string: ${n}`)}}))}},45871:function(e,n,r){"use strict";let i=r(18370);e.exports=function(){let e=[];for(let[n,r]of Object.entries(i.names))e.push({name:n,code:r});return e}},95904:function(e,n,r){"use strict";n.base32=r(5625),n.bases=r(66581),n.codecs=r(8916),n.format=r(71834),n.hashes=r(45871)},64691:function(e,n,r){"use strict";e.exports=r(95904)},8303:function(e,n,r){"use strict";let i=r(18370);e.exports={checkCIDComponents:function(e){if(null==e)return"null values are not valid CIDs";if(!(0===e.version||1===e.version))return"Invalid version, must be a number equal to 1 or 0";if("string"!=typeof e.codec)return"codec must be string";if(0===e.version){if("dag-pb"!==e.codec)return"codec must be 'dag-pb' for CIDv0";if("base58btc"!==e.multibaseName)return"multibaseName must be 'base58btc' for CIDv0"}if(!(e.multihash instanceof Uint8Array))return"multihash must be a Uint8Array";try{i.validate(e.multihash)}catch(n){let e=n.message;return e||(e="Multihash validation failed"),e}}}},98878:function(e,n,r){"use strict";let i=r(18370),a=r(36957),o=r(76883),s=r(8303),{concat:f}=r(20605),{toString:l}=r(92263),{equals:u}=r(19588),c=o.nameToCode,d=Object.keys(c).reduce((e,n)=>(e[c[n]]=n,e),{}),p=Symbol.for("@ipld/js-cid/CID");class h{constructor(e,n,r,s){if(this.version,this.codec,this.multihash,Object.defineProperty(this,p,{value:!0}),h.isCID(e)){this.version=e.version,this.codec=e.codec,this.multihash=e.multihash,this.multibaseName=e.multibaseName||(0===e.version?"base58btc":"base32");return}if("string"==typeof e){let n=a.isEncoded(e);if(n){let r=a.decode(e);this.version=parseInt(r[0].toString(),16),this.codec=o.getCodec(r.slice(1)),this.multihash=o.rmPrefix(r.slice(1)),this.multibaseName=n}else this.version=0,this.codec="dag-pb",this.multihash=i.fromB58String(e),this.multibaseName="base58btc";h.validateCID(this),Object.defineProperty(this,"string",{value:e});return}if(e instanceof Uint8Array){let n=parseInt(e[0].toString(),16);1===n?(this.version=n,this.codec=o.getCodec(e.slice(1)),this.multihash=o.rmPrefix(e.slice(1)),this.multibaseName="base32"):(this.version=0,this.codec="dag-pb",this.multihash=e,this.multibaseName="base58btc"),h.validateCID(this);return}this.version=e,"number"==typeof n&&(n=d[n]),this.codec=n,this.multihash=r,this.multibaseName=s||(0===e?"base58btc":"base32"),h.validateCID(this)}get bytes(){let e=this._bytes;if(!e){if(0===this.version)e=this.multihash;else if(1===this.version){let n=o.getCodeVarint(this.codec);e=f([[1],n,this.multihash],1+n.byteLength+this.multihash.byteLength)}else throw Error("unsupported version");Object.defineProperty(this,"_bytes",{value:e})}return e}get prefix(){let e=o.getCodeVarint(this.codec),n=i.prefix(this.multihash);return f([[this.version],e,n],1+e.byteLength+n.byteLength)}get code(){return c[this.codec]}toV0(){if("dag-pb"!==this.codec)throw Error("Cannot convert a non dag-pb CID to CIDv0");let{name:e,length:n}=i.decode(this.multihash);if("sha2-256"!==e)throw Error("Cannot convert non sha2-256 multihash CID to CIDv0");if(32!==n)throw Error("Cannot convert non 32 byte multihash CID to CIDv0");return new h(0,this.codec,this.multihash)}toV1(){return new h(1,this.codec,this.multihash,this.multibaseName)}toBaseEncodedString(e=this.multibaseName){let n;if(this.string&&0!==this.string.length&&e===this.multibaseName)return this.string;if(0===this.version){if("base58btc"!==e)throw Error("not supported with CIDv0, to supp
363ort different bases, please migrate the instance do CIDv1, you can do that through cid.toV1()");n=i.toB58String(this.multihash)}else if(1===this.version)n=l(a.encode(e,this.bytes));else throw Error("unsupported version");return e===this.multibaseName&&Object.defineProperty(this,"string",{value:n}),n}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}toString(e){return this.toBaseEncodedString(e)}toJSON(){return{codec:this.codec,version:this.version,hash:this.multihash}}equals(e){return this.codec===e.codec&&this.version===e.version&&u(this.multihash,e.multihash)}static validateCID(e){let n=s.checkCIDComponents(e);if(n)throw Error(n)}static isCID(e){return e instanceof h||!!(e&&e[p])}}h.codecs=c,e.exports=h},20640:function(e,n,r){"use strict";var i=r(11742),a={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,n){var r,o,s,f,l,u,c,d,p=!1;n||(n={}),s=n.debug||!1;try{if(l=i(),u=document.createRange(),c=document.getSelection(),(d=document.createElement("span")).textContent=e,d.ariaHidden="true",d.style.all="unset",d.style.position="fixed",d.style.top=0,d.style.clip="rect(0, 0, 0, 0)",d.style.whiteSpace="pre",d.style.webkitUserSelect="text",d.style.MozUserSelect="text",d.style.msUserSelect="text",d.style.userSelect="text",d.addEventListener("copy",function(r){if(r.stopPropagation(),n.format){if(r.preventDefault(),void 0===r.clipboardData){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=a[n.format]||a.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(n.format,e)}n.onCopy&&(r.preventDefault(),n.onCopy(r.clipboardData))}),document.body.appendChild(d),u.selectNodeContents(d),c.addRange(u),!document.execCommand("copy"))throw Error("copy command was unsuccessful");p=!0}catch(i){s&&console.error("unable to copy using execCommand: ",i),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(n.format||"text",e),n.onCopy&&n.onCopy(window.clipboardData),p=!0}catch(i){s&&console.error("unable to copy using clipboardData: ",i),s&&console.error("falling back to prompt"),r="message"in n?n.message:"Copy to clipboard: #{key}, Enter",o=(/mac os x/i.test(navigator.userAgent)?"â":"Ctrl")+"+C",f=r.replace(/#{\s*key\s*}/g,o),window.prompt(f,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(u):c.removeAllRanges()),d&&document.body.removeChild(d),l()}return p}},44020:function(e){"use strict";var n="%[a-f0-9]{2}",r=RegExp("("+n+")|([^%]+?)","gi"),i=RegExp("("+n+")+","gi");e.exports=function(e){if("string"!=typeof e)throw TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(n){return function(e){for(var n={"%FE%FF":"��","%FF%FE":"��"},a=i.exec(e);a;){try{n[a[0]]=decodeURIComponent(a[0])}catch(e){var o=function(e){try{return decodeURIComponent(e)}catch(a){for(var n=e.match(r)||[],i=1;i<n.length;i++)n=(e=(function e(n,r){try{return[decodeURIComponent(n.join(""))]}catch(e){}if(1===n.length)return n;r=r||1;var i=n.slice(0,r),a=n.slice(r);return Array.prototype.concat.call([],e(i),e(a))})(n,i).join("")).match(r)||[];return e}}(a[0]);o!==a[0]&&(n[a[0]]=o)}a=i.exec(e)}n["%C2"]="�";for(var s=Object.keys(n),f=0;f<s.length;f++){var l=s[f];e=e.replace(RegExp(l,"g"),n[l])}return e}(e)}}},12296:function(e,n,r){"use strict";var i=r(24429),a=r(33464),o=r(14453),s=r(27296);e.exports=function(e,n,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new o("`obj` must be an object or a function`");if("string"!=typeof n&&"symbol"!=typeof n)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var f=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],d=!!s&&s(e,n);if(i)i(e,n,{configurable:null===u&&d?d.configurable:!u,enumerable:null===f&&d?d.enumerable:!f,value:r,writable:null===l&&d?d.writable:!l});else if(!c&&(f||l||u))throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");else e[n]=r}},43631:function(e,n,r){"use strict";r.d(n,{qY:function(){return h}});var i=r(34155),a=function(e,n,r){if(r||2==arguments.length)for(var i,a=0,o=n.length;a<o;a++)!i&&a in n||(i||(i=Array.prototype.slice.call(n,0,a)),i[a]=n[a]);return e.concat(i||Array.prototype.slice.call(n))},o=function(e,n,r){this.name=e,this.version=n,this.os=r,this.type="browser"},s=function(e){this.version=e,this.type="node",this.name="node",this.os=i.platform},f=function(e,n,r,i){this.name=e,this.version=n,this.os=r,this.bot=i,this.type="bot-device"},l=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},u=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},c=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,d=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;
363\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],p=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function h(e){return e?y(e):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new u:"undefined"!=typeof navigator?y(navigator.userAgent):void 0!==i&&i.version?new s(i.version.slice(1)):null}function y(e){var n=""!==e&&d.reduce(function(n,r){var i=r[0],a=r[1];if(n)return n;var o=a.exec(e);return!!o&&[i,o]},!1);if(!n)return null;var r=n[0],i=n[1];if("searchbot"===r)return new l;var s=i[1]&&i[1].split(".").join("_").split("_").slice(0,3);s?s.length<3&&(s=a(a([],s,!0),function(e){for(var n=[],r=0;r<e;r++)n.push("0");return n}(3-s.length),!0)):s=[];var u=s.join("."),h=function(e){for(var n=0,r=p.length;n<r;n++){var i=p[n],a=i[0];if(i[1].exec(e))return a}return null}(e),y=c.exec(e);return y&&y[1]?new f(r,u,h,y[1]):new o(r,u,h)}},65987:function(e){"use strict";var n={single_source_shortest_paths:function(e,r,i){var a,o,s,f,l,u,c,d={},p={};p[r]=0;var h=n.PriorityQueue.make();for(h.push(r,0);!h.empty();)for(s in o=(a=h.pop()).value,f=a.cost,l=e[o]||{})l.hasOwnProperty(s)&&(u=f+l[s],c=p[s],(void 0===p[s]||c>u)&&(p[s]=u,h.push(s,u),d[s]=o));if(void 0!==i&&void 0===p[i])throw Error(["Could not find a path from ",r," to ",i,"."].join(""));return d},extract_shortest_path_from_predecessor_list:function(e,n){for(var r=[],i=n;i;)r.push(i),e[i],i=e[i];return r.reverse(),r},find_path:function(e,r,i){var a=n.single_source_shortest_paths(e,r,i);return n.extract_shortest_path_from_predecessor_list(a,i)},PriorityQueue:{make:function(e){var r,i=n.PriorityQueue,a={};for(r in e=e||{},i)i.hasOwnProperty(r)&&(a[r]=i[r]);return a.queue=[],a.sorter=e.sorter||i.default_sorter,a},default_sorter:function(e,n){return e.cost-n.cost},push:function(e,n){this.queue.push({value:e,cost:n}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=n},62378:function(e){"use strict";e.exports=function(e){for(var n=[],r=e.length,i=0;i<r;i++){var a=e.charCodeAt(i);if(a>=55296&&a<=56319&&r>i+1){var o=e.charCodeAt(i+1);o>=56320&&o<=57343&&(a=(a-55296)*1024+o-56320+65536,i+=1)}if(a<128){n.push(a);continue}if(a<2048){n.push(a>>6|192),n.push(63&a|128);continue}if(a<55296||a>=57344&&a<65536){n.push(a>>12|224),n.push(a>>6&63|128),n.push(63&a|128);continue}if(a>=65536&&a<=1114111){n.push(a>>18|240),n.push(a>>12&63|128),n.push(a>>6&63|128),n.push(63&a|128);continue}n.push(239,191,189)}return new Uint8Array(n).buffer}},24429:function(e,n,r){"use strict";var i=r(40210)("%Object.defineProperty%",!0)||!1;if(i)try{i({},"a",{value:1})}catch(e){i=!1}e.exports=i},53981:function(e){"use strict";e.exports=EvalError},81648:function(e){"use strict";e.exports=Error},24726:function(e){"use strict";e.exports=RangeError},26712:function(e){"use strict";e.exports=ReferenceError},33464:function(e){"use strict";e.exports=SyntaxError},14453:function(e){"use strict";e.exports=TypeError},43915:function(e){"use strict";e.exports=URIError},62863:function(e,n,r){"use strict";r.d(n,{i:function(){return i}});let i="ethers/5.7.2"},91023:function(e,n,r){"use strict";r.r(n),r.d(n,{BaseContract:function(){return i.VZ},BigNumber:function(){return a.O$},Contract:function(){return i.CH},ContractFactory:function(){return i.lV},FixedNumber:function(){return o.xs},Signer:function(){return s.Signer},VoidSigner:function(){return s.VoidSigner},Wallet:function(){return f.Wallet},Wordlist:function(){return d.D},constants:function(){return l},errors:function(){return h.ErrorCode},getDefaultProvider:function(){return u.getDefaultProvider},logger:function(){return m},providers:function(){return u},utils:function(){return p},version:function(){return y.i},wordlists:function(){return c.E}});
363var i=r(64146),a=r(2593),o=r(20335),s=r(48088),f=r(79911),l=r(21815),u=r(27349),c=r(10234),d=r(48812),p=r(86494),h=r(1581),y=r(62863);let m=new h.Logger(y.i)},86623:function(e,n,r){"use strict";r.r(n),r.d(n,{BaseContract:function(){return f.VZ},BigNumber:function(){return l.O$},Contract:function(){return f.CH},ContractFactory:function(){return f.lV},FixedNumber:function(){return u.xs},Signer:function(){return a.Signer},VoidSigner:function(){return a.VoidSigner},Wallet:function(){return o.Wallet},Wordlist:function(){return m.D},constants:function(){return c},errors:function(){return d.ErrorCode},ethers:function(){return i},getDefaultProvider:function(){return s.getDefaultProvider},logger:function(){return i.logger},providers:function(){return s},utils:function(){return p},version:function(){return y.i},wordlists:function(){return h.E}});var i=r(91023),a=r(48088),o=r(79911),s=r(27349),f=r(64146),l=r(2593),u=r(20335),c=r(21815),d=r(1581),p=r(86494),h=r(10234),y=r(62863),m=r(48812);try{let e=window;null==e._ethers&&(e._ethers=i)}catch(e){}},86494:function(e,n,r){"use strict";r.r(n),r.d(n,{AbiCoder:function(){return i.R},ConstructorFragment:function(){return a.Xg},ErrorFragment:function(){return a.IC},EventFragment:function(){return a.QV},FormatTypes:function(){return a.pc},Fragment:function(){return a.HY},FunctionFragment:function(){return a.YW},HDNode:function(){return m.HDNode},Indexed:function(){return s.Hk},Interface:function(){return s.vU},LogDescription:function(){return s.CC},Logger:function(){return v.Logger},ParamType:function(){return a._R},RLP:function(){return A},SigningKey:function(){return E.SigningKey},SupportedAlgorithm:function(){return O.p},TransactionDescription:function(){return s.vk},TransactionTypes:function(){return N.TransactionTypes},UnicodeNormalizationForm:function(){return S.Uj},Utf8ErrorFuncs:function(){return S.te},Utf8ErrorReason:function(){return S.Uw},_TypedDataEncoder:function(){return y.E},_fetchData:function(){return _._fetchData},_toEscapedUtf8String:function(){return S.U$},accessListify:function(){return N.accessListify},arrayify:function(){return c.arrayify},base58:function(){return u.Base58},base64:function(){return l},checkProperties:function(){return M.checkProperties},checkResultErrors:function(){return o.BR},commify:function(){return j.commify},computeAddress:function(){return N.computeAddress},computeHmac:function(){return w.Gy},computePublicKey:function(){return E.computePublicKey},concat:function(){return c.concat},deepCopy:function(){return M.deepCopy},defaultAbiCoder:function(){return i.$},defaultPath:function(){return m.defaultPath},defineReadOnly:function(){return M.defineReadOnly},dnsEncode:function(){return d.Kn},entropyToMnemonic:function(){return m.entropyToMnemonic},fetchJson:function(){return _.fetchJson},formatBytes32String:function(){return k.s},formatEther:function(){return j.formatEther},formatUnits:function(){return j.formatUnits},getAccountPath:function(){return m.getAccountPath},getAddress:function(){return f.getAddress},getContractAddress:function(){return f.getContractAddress},getCreate2Address:function(){return f.getCreate2Address},getIcapAddress:function(){return f.getIcapAddress},getJsonWalletAddress:function(){return g.Rb},getStatic:function(){return M.getStatic},hashMessage:function(){return p.r},hexConcat:function(){return c.hexConcat},hexDataLength:function(){return c.hexDataLength},hexDataSlice:function(){return c.hexDataSlice},hexStripZeros:function(){return c.hexStripZeros},hexValue:function(){return c.hexValue},hexZeroPad:function(){return c.hexZeroPad},hexlify:function(){return c.hexlify},id:function(){return h.id},isAddress:function(){return f.isAddress},isBytes:function(){return c.isBytes},isBytesLike:function(){return c.isBytesLike},isHexString:function(){return c.isHexString},isValidMnemonic:function(){return m.isValidMnemonic},isValidName:function(){return d.r1},joinSignature:function(){return c.joinSignature},keccak256:function(){return b.keccak256},mnemonicToEntropy:function(){return m.mnemonicToEntropy},mnemonicToSeed:function(){return m.mnemonicToSeed},namehash:function(){return d.VM},nameprep:function(){return I.Ll},parseBytes32String:function(){return k.F},parseEther:function(){return j.parseEther},parseTransaction:function(){return N.parse},parseUnits:function(){return j.parseUnits},poll:function(){return _.poll},randomBytes:function(){return T.O},recoverAddress:function(){return N.recoverAddress},recoverPublicKey:function(){return E.recoverPublicKey},resolveProperties:function(){return M.resolveProperties},ripemd160:function(){return w.bP},serializeTransaction:function(){return N.serialize},sha256:function(){return w.JQ},sha512:function(){return w.o},shallowCopy:function(){return M.shallowCopy},shuffled:function(){return C.y},solidityKeccak256:function(){return x.keccak256},solidityPack:function(){return x.pack},soliditySha256:function(){return x.sha256},splitSignature:function(){return c.splitSignature},stripZeros:function(){return c.stripZeros},toUtf8Bytes:function(){return S.Y0},toUtf8CodePoints:function(){return S.XL},toUtf8String:function(){return S.ZN},verifyMessage:function(){return D.verifyMessage},verifyTypedData:function(){return D.verifyTypedData}
vendor: 9,975 bytes, line 363
363,zeroPad:function(){return c.zeroPad}});var i=r(84243),a=r(11388),o=r(61184),s=r(8198),f=r(19485),l=r(4089),u=r(57727),c=r(16441),d=r(27586),p=r(93684),h=r(32046),y=r(67827),m=r(84178),g=r(67949),b=r(38197),v=r(1581),w=r(2006),x=r(31886),T=r(5634),C=r(52472),M=r(6881),A=r(59052),E=r(67669),I=r(35637),S=r(29251),k=r(86237),N=r(83875),j=r(61744),D=r(79911),_=r(37707),O=r(21261)},56371:function(e,n,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,n,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return n[r]}})}:function(e,n,r,i){void 0===i&&(i=r),e[i]=n[r]}),a=this&&this.__setModuleDefault||(Object.create?function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}:function(e,n){e.default=n}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(n,e,r);return a(n,e),n};Object.defineProperty(n,"__esModule",{value:!0}),n.formatBytes32String=n.Utf8ErrorFuncs=n.toUtf8String=n.toUtf8CodePoints=n.toUtf8Bytes=n._toEscapedUtf8String=n.nameprep=n.hexDataSlice=n.hexDataLength=n.hexZeroPad=n.hexValue=n.hexStripZeros=n.hexConcat=n.isHexString=n.hexlify=n.base64=n.base58=n.TransactionDescription=n.LogDescription=n.Interface=n.SigningKey=n.HDNode=n.defaultPath=n.isBytesLike=n.isBytes=n.zeroPad=n.stripZeros=n.concat=n.arrayify=n.shallowCopy=n.resolveProperties=n.getStatic=n.defineReadOnly=n.deepCopy=n.checkProperties=n.poll=n.fetchJson=n._fetchData=n.RLP=n.Logger=n.checkResultErrors=n.FormatTypes=n.ParamType=n.FunctionFragment=n.EventFragment=n.ErrorFragment=n.ConstructorFragment=n.Fragment=n.defaultAbiCoder=n.AbiCoder=void 0,n.Indexed=n.Utf8ErrorReason=n.UnicodeNormalizationForm=n.SupportedAlgorithm=n.mnemonicToSeed=n.isValidMnemonic=n.entropyToMnemonic=n.mnemonicToEntropy=n.getAccountPath=n.verifyTypedData=n.verifyMessage=n.recoverPublicKey=n.computePublicKey=n.recoverAddress=n.computeAddress=n.getJsonWalletAddress=n.TransactionTypes=n.serializeTransaction=n.parseTransaction=n.accessListify=n.joinSignature=n.splitSignature=n.soliditySha256=n.solidityKeccak256=n.solidityPack=n.shuffled=n.randomBytes=n.sha512=n.sha256=n.ripemd160=n.keccak256=n.computeHmac=n.commify=n.parseUnits=n.formatUnits=n.parseEther=n.formatEther=n.isAddress=n.getCreate2Address=n.getContractAddress=n.getIcapAddress=n.getAddress=n._TypedDataEncoder=n.id=n.isValidName=n.namehash=n.hashMessage=n.dnsEncode=n.parseBytes32String=void 0;var s=r(83893);Object.defineProperty(n,"AbiCoder",{enumerable:!0,get:function(){return s.AbiCoder}}),Object.defineProperty(n,"checkResultErrors",{enumerable:!0,get:function(){return s.checkResultErrors}}),Object.defineProperty(n,"ConstructorFragment",{enumerable:!0,get:function(){return s.ConstructorFragment}}),Object.defineProperty(n,"defaultAbiCoder",{enumerable:!0,get:function(){return s.defaultAbiCoder}}),Object.defineProperty(n,"ErrorFragment",{enumerable:!0,get:function(){return s.ErrorFragment}}),Object.defineProperty(n,"EventFragment",{enumerable:!0,get:function(){return s.EventFragment}}),Object.defineProperty(n,"FormatTypes",{enumerable:!0,get:function(){return s.FormatTypes}}),Object.defineProperty(n,"Fragment",{enumerable:!0,get:function(){return s.Fragment}}),Object.defineProperty(n,"FunctionFragment",{enumerable:!0,get:function(){return s.FunctionFragment}}),Object.defineProperty(n,"Indexed",{enumerable:!0,get:function(){return s.Indexed}}),Object.defineProperty(n,"Interface",{enumerable:!0,get:function(){return s.Interface}}),Object.defineProperty(n,"LogDescription",{enumerable:!0,get:function(){return s.LogDescription}}),Object.defineProperty(n,"ParamType",{enumerable:!0,get:function(){return s.ParamType}}),Object.defineProperty(n,"TransactionDescription",{enumerable:!0,get:function(){return s.TransactionDescription}});var f=r(19485);Object.defineProperty(n,"getAddress",{enumerable:!0,get:function(){return f.getAddress}}),Object.defineProperty(n,"getCreate2Address",{enumerable:!0,get:function(){return f.getCreate2Address}}),Object.defineProperty(n,"getContractAddress",{enumerable:!0,get:function(){return f.getContractAddress}}),Object.defineProperty(n,"getIcapAddress",{enumerable:!0,get:function(){return f.getIcapAddress}}),Object.defineProperty(n,"isAddress",{enumerable:!0,get:function(){return f.isAddress}});var l=o(r(4089));n.base64=l;var u=r(57727);Object.defineProperty(n,"base58",{enumerable:!0,get:function(){return u.Base58}});var c=r(16441);Object.defineProperty(n,"arrayify",{enumerable:!0,get:function(){return c.arrayify}}),Object.defineProperty(n,"concat",{enumerable:!0,get:function(){return c.concat}}),Object.defineProperty(n,"hexConcat",{enumerable:!0,get:function(){return c.hexConcat}}),Object.defineProperty(n,"hexDataSlice",{enumerable:!0,get:function(){return c.hexDataSlice}}),Object.defineProperty(n,"hexDataLength",{enumerable:!0,get:function(){return c.hexDataLength}}),Object.defineProperty(n,"hexlify",{enumerable:!0,get:function(){return c.hexlify}}),Object.defineProperty(n,"hexStripZeros",{enumerable:!0,get:function(){return c.hexStripZeros}}),Object.defineProperty(n,"hexValue",{enumerable:!0,get:function(){return c.hexValue}}),Object.defineProperty(n,"hexZeroPad",{enumerable:!0,get:function(){return c.hexZeroPad}}),Object.defineProperty(n,"isBytes",{enumerable:!0,get:function(){return c.isBytes}}),Object.defineProperty(n,"isBytesLike",{enumerable:!0,get:function(){return c.isBytesLike}}),Object.defineProperty(n,"isHexString",{enumerable:!0,get:function(){return c.isHexString}}),Object.defineProperty(n,"joinSignature",{enumerable:!0,get:function(){return c.joinSignature}}),Object.defineProperty(n,"zeroPad",{enumerable:!0,get:function(){return c.zeroPad}}),Object.defineProperty(n,"splitSignature",{enumerable:!0,get:function(){return c.splitSignature}}),Object.defineProperty(n,"stripZeros",{enumerable:!0,get:function(){return c.stripZeros}});var d=r(75931);Object.defineProperty(n,"_TypedDataEncoder",{enumerable:!0,get:function(){return d._TypedDataEncoder}}),Object.defineProperty(n,"dnsEncode",{enumerable:!0,get:function(){return d.dnsEncode}}),Object.defineProperty(n,"hashMessage",{enumerable:!0,get:function(){return d.hashMessage}}),Object.defineProperty(n,"id",{enumerable:!0,get:function(){return d.id}}),Object.defineProperty(n,"isValidName",{enumerable:!0,get:function(){return d.isValidName}}),Object.defineProperty(n,"namehash",{enumerable:!0,get:function(){return d.namehash}});var p=r(84178);Object.defineProperty(n,"defaultPath",{enumerable:!0,get:function(){return p.defaultPath}}),Object.defineProperty(n,"entropyToMnemonic",{enumerable:!0,get:function(){return p.entropyToMnemonic}}),Object.defineProperty(n,"getAccountPath",{enumerable:!0,get:function(){return p.getAccountPath}}),Object.defineProperty(n,"HDNode",{enumerable:!0,get:function(){return p.HDNode}}),Object.defineProperty(n,"isValidMnemonic",{enumerable:!0,get:function(){return p.isValidMnemonic}}),Object.defineProperty(n,"mnemonicToEntropy",{enumerable:!0,get:function(){return p.mnemonicToEntropy}}),Object.defineProperty(n,"mnemonicToSeed",{enumerable:!0,get:function(){return p.mnemonicToSeed}});var h=r(64341);Object.defineProperty(n,"getJsonWalletAddress",{enumerable:!0,get:function(){return h.getJsonWalletAddress}});var y=r(38197);Object.defineProperty(n,"keccak256",{enumerable:!0,get:function(){return y.keccak256}});var m=r(1581);Object.defineProperty(n,"Logger",{enumerable:!0,get:function(){return m.Logger}});var g=r(91278);Object.defineProperty(n,"computeHmac",{enumerable:!0,get:function(){return g.computeHmac}}),Object.defineProperty(n,"ripemd160",{enumerable:!0,get:function(){return g.ripemd160}}),Object.defineProperty(n,"sha256",{enumerable:!0,get:function(){return g.sha256}}),Object.defineProperty(n,"sha512",{enumerable:!0,get:function(){return g.sha512}});var b=r(31886);Object.defineProperty(n,"solidityKeccak256",{enumerable:!0,get:function(){return b.keccak256}}),Object.defineProperty(n,"solidityPack",{enumerable:!0,get:function(){return b.pack}}),Object.defineProperty(n,"soliditySha256",{enumerable:!0,get:function(){return b.sha256}});var v=r(22118);Object.defineProperty(n,"randomBytes",{enumerable:!0,get:function(){return v.randomBytes}}),Object.defineProperty(n,"shuffled",{enumerable:!0,get:function(){return v.shuffled}});var w=r(6881);Object.defineProperty(n,"checkProperties",{enumerable:!0,get:function(){return w.checkProperties}}),Object.defineProperty(n,"deepCopy",{enumerable:!0,get:function(){return w.deepCopy}}),Object.defineProperty(n,"defineReadOnly",{enumerable:!0,get:function(){return w.defineReadOnly}}),Object.defineProperty(n,"getStatic",{enumerable:!0,get:function(){return w.getStatic}}),Object.defineProperty(n,"resolveProperties",{enumerable:!0,get:function(){return w.resolveProperties}}),Object.defineProperty(n,"shallowCopy",{enumerable:!0,get:function(){return w.shallowCopy}});var x=o(r(59052));n.RLP=x;var T=r(67669);Object.defineProperty(n,"computePublicKey",{enumerable:!0,get:function(){return T.computePublicKey}}),Object.defineProperty(n,"recoverPublicKey",{enumerable:!0,get:function(){return T.recoverPublicKey}}),Object.defineProperty(n,"SigningKey",{enumerable:!0,get:function(){return T.SigningKey}});var C=r(62741);Object.defineProperty(n,"formatBytes32String",{enumerable:!0,get:function(){return C.formatBytes32String}}),Object.defineProperty(n,"nameprep",{enumerable:!0,get:function(){return C.nameprep}}),Object.defineProperty(n,"parseBytes32String",{enumerable:!0,get:function(){return C.parseBytes32String}}),Object.defineProperty(n,"_toEscapedUtf8String",{enumerable:!0,get:function(){return C._toEscapedUtf8String}}),Object.defineProperty(n,"toUtf8Bytes",{enumerable:!0,get:function(){return C.toUtf8Bytes}}),Object.defineProperty(n,"toUtf8CodePoints",{enumerable:!0,get:function(){return C.toUtf8CodePoints}}),Object.defineProperty(n,"toUtf8String",{enumerable:!0,get:function(){return C.toUtf8String}}
363),Object.defineProperty(n,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return C.Utf8ErrorFuncs}});var M=r(83875);Object.defineProperty(n,"accessListify",{enumerable:!0,get:function(){return M.accessListify}}),Object.defineProperty(n,"computeAddress",{enumerable:!0,get:function(){return M.computeAddress}}),Object.defineProperty(n,"parseTransaction",{enumerable:!0,get:function(){return M.parse}}),Object.defineProperty(n,"recoverAddress",{enumerable:!0,get:function(){return M.recoverAddress}}),Object.defineProperty(n,"serializeTransaction",{enumerable:!0,get:function(){return M.serialize}}),Object.defineProperty(n,"TransactionTypes",{enumerable:!0,get:function(){return M.TransactionTypes}});var A=r(61744);Object.defineProperty(n,"commify",{enumerable:!0,get:function(){return A.commify}}),Object.defineProperty(n,"formatEther",{enumerable:!0,get:function(){return A.formatEther}}),Object.defineProperty(n,"parseEther",{enumerable:!0,get:function(){return A.parseEther}}),Object.defineProperty(n,"formatUnits",{enumerable:!0,get:function(){return A.formatUnits}}),Object.defineProperty(n,"parseUnits",{enumerable:!0,get:function(){return A.parseUnits}});var E=r(79911);Object.defineProperty(n,"verifyMessage",{enumerable:!0,get:function(){return E.verifyMessage}}),Object.defineProperty(n,"verifyTypedData",{enumerable:!0,get:function(){return E.verifyTypedData}});var I=r(37707);Object.defineProperty(n,"_fetchData",{enumerable:!0,get:function(){return I._fetchData}}),Object.defineProperty(n,"fetchJson",{enumerable:!0,get:function(){return I.fetchJson}}),Object.defineProperty(n,"poll",{enumerable:!0,get:function(){return I.poll}});var S=r(91278);Object.defineProperty(n,"SupportedAlgorithm",{enumerable:!0,get:function(){return S.SupportedAlgorithm}});var k=r(62741);Object.defineProperty(n,"UnicodeNormalizationForm",{enumerable:!0,get:function(){return k.UnicodeNormalizationForm}}),Object.defineProperty(n,"Utf8ErrorReason",{enumerable:!0,get:function(){return k.Utf8ErrorReason}})},17187:function(e){"use strict";var n,r="object"==typeof Reflect?Reflect:null,i=r&&"function"==typeof r.apply?r.apply:function(e,n,r){return Function.prototype.apply.call(e,n,r)};n=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,n){return new Promise(function(r,i){var a;function o(r){e.removeListener(n,s),i(r)}function s(){"function"==typeof e.removeListener&&e.removeListener("error",o),r([].slice.call(arguments))}m(e,n,s,{once:!0}),"error"!==n&&(a={once:!0},"function"==typeof e.on&&m(e,"error",o,a))})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function f(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function u(e,n,r,i){if(f(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",n,r.listener?r.listener:r),o=e._events),s=o[n]),void 0===s)s=o[n]=r,++e._eventsCount;else if("function"==typeof s?s=o[n]=i?[r,s]:[s,r]:i?s.unshift(r):s.push(r),(a=l(e))>0&&s.length>a&&!s.warned){s.warned=!0;var a,o,s,u=Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(n)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=n,u.count=s.length,console&&console.warn&&console.warn(u)}return e}function c(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,n,r){var i={fired:!1,wrapFn:void 0,target:e,type:n,listener:r},a=c.bind(i);return a.listener=r,i.wrapFn=a,a}function p(e,n,r){var i=e._events;if(void 0===i)return[];var a=i[n];return void 0===a?[]:"function"==typeof a?r?[a.listener||a]:[a]:r?function(e){for(var n=Array(e.length),r=0;r<n.length;++r)n[r]=e[r].listener||e[r];return n}(a):y(a,a.length)}function h(e){var n=this._events;if(void 0!==n){var r=n[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function y(e,n){for(var r=Array(n),i=0;i<n;++i)r[i]=e[i];return r}function m(e,n,r,i){if("function"==typeof e.on)i.once?e.once(n,r):e.on(n,r);else if("function"==typeof e.addEventListener)e.addEventListener(n,function a(o){i.once&&e.removeEventListener(n,a),r(o)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||a(e))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),o.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return l(this)},o.prototype.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n.push(arguments[r]);var a="error"===e,o=this._events;if(void 0!==o)a=a&&void 0===o.error;else if(!a)return!1;if(a){if(n.length>0&&(s=n[0]),s instanceof Error)throw s;var s,f=Error("Unhandled error."+(s?" ("+s.message+")":""));throw f.context=s,f}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)i(l,this,n);else for(var u=l.length,c=y(l,u),r=0;r<u;++r)i(c[r],this,n);return!0},o.prototype.addListener=function(e,n){return u(this,e,n,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,n){return u(this,e,n,!0)},o.prototype.once=function(e,n){return f(n),this.on(e,d(this,e,n)),this},o.prototype.prependOnceListener=function(e,n){return f(n),this.prependListener(e,d(this,e,n)),this},o.prototype.removeListener=function(e,n){var r,i,a,o,s;if(f(n),void 0===(i=this._events)||void 0===(r=i[e]))return this;if(r===n||r.listener===n)0==--this._eventsCount?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit
363("removeListener",e,r.listener||n));else if("function"!=typeof r){for(a=-1,o=r.length-1;o>=0;o--)if(r[o]===n||r[o].listener===n){s=r[o].listener,a=o;break}if(a<0)return this;0===a?r.shift():function(e,n){for(;n+1<e.length;n++)e[n]=e[n+1];e.pop()}(r,a),1===r.length&&(i[e]=r[0]),void 0!==i.removeListener&&this.emit("removeListener",e,s||n)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var n,r,i;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0==arguments.length){var a,o=Object.keys(r);for(i=0;i<o.length;++i)"removeListener"!==(a=o[i])&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(n=r[e]))this.removeListener(e,n);else if(void 0!==n)for(i=n.length-1;i>=0;i--)this.removeListener(e,n[i]);return this},o.prototype.listeners=function(e){return p(this,e,!0)},o.prototype.rawListeners=function(e){return p(this,e,!1)},o.listenerCount=function(e,n){return"function"==typeof e.listenerCount?e.listenerCount(n):h.call(e,n)},o.prototype.listenerCount=h,o.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},9133:function(e){function n(e){return e.stack&&e.name&&e.message?e.stack.substring(e.name.length+3+e.message.length).split("\n"):e.stack?e.stack.split("\n"):void 0}e.exports=function(e,r){if(!(e.stack&&e.name&&e.message))return console.error(Error("stackless error")),e;var i,a,o=Error(r),s=(i=n(o).slice(1),a=n(e),i.filter(function(e){return!~a.indexOf(e)})).join("\n");return o.__proto__=e,o.stack=o.name+": "+o.message+"\n"+s+"\n "+e.stack,o}},64063:function(e){"use strict";e.exports=function e(n,r){if(n===r)return!0;if(n&&r&&"object"==typeof n&&"object"==typeof r){if(n.constructor!==r.constructor)return!1;if(Array.isArray(n)){if((i=n.length)!=r.length)return!1;for(a=i;0!=a--;)if(!e(n[a],r[a]))return!1;return!0}if(n.constructor===RegExp)return n.source===r.source&&n.flags===r.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===r.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===r.toString();if((i=(o=Object.keys(n)).length)!==Object.keys(r).length)return!1;for(a=i;0!=a--;)if(!Object.prototype.hasOwnProperty.call(r,o[a]))return!1;for(a=i;0!=a--;){var i,a,o,s=o[a];if(!e(n[s],r[s]))return!1}return!0}return n!=n&&r!=r}},92806:function(e){"use strict";e.exports=function(e,n){for(var r={},i=Object.keys(e),a=Array.isArray(n),o=0;o<i.length;o++){var s=i[o],f=e[s];(a?-1!==n.indexOf(s):n(s,f,e))&&(r[s]=f)}return r}},6230:function(e){e.exports="object"==typeof self?self.FormData:window.FormData},17648:function(e){"use strict";var n=Object.prototype.toString,r=Math.max,i=function(e,n){for(var r=[],i=0;i<e.length;i+=1)r[i]=e[i];for(var a=0;a<n.length;a+=1)r[a+e.length]=n[a];return r},a=function(e,n){for(var r=[],i=n||0,a=0;i<e.length;i+=1,a+=1)r[a]=e[i];return r},o=function(e,n){for(var r="",i=0;i<e.length;i+=1)r+=e[i],i+1<e.length&&(r+=n);return r};e.exports=function(e){var s,f=this;if("function"!=typeof f||"[object Function]"!==n.apply(f))throw TypeError("Function.prototype.bind called on incompatible "+f);for(var l=a(arguments,1),u=r(0,f.length-l.length),c=[],d=0;d<u;d++)c[d]="$"+d;if(s=Function("binder","return function ("+o(c,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof s){var n=f.apply(this,i(l,arguments));return Object(n)===n?n:this}return f.apply(e,i(l,arguments))}),f.prototype){var p=function(){};p.prototype=f.prototype,s.prototype=new p,p.prototype=null}return s}},58612:function(e,n,r){"use strict";var i=r(17648);e.exports=Function.prototype.bind||i},40210:function(e,n,r){"use strict";var i,a=r(81648),o=r(53981),s=r(24726),f=r(26712),l=r(33464),u=r(14453),c=r(43915),d=Function,p=function(e){try{return d('"use strict"; return ('+e+").constructor;")()}catch(e){}},h=Object.getOwnPropertyDescriptor;if(h)try{h({},"")}catch(e){h=null}var y=function(){throw new u},m=h?function(){try{return arguments.callee,y}catch(e){try{return h(arguments,"callee").get}catch(e){return y}}}():y,g=r(41405)(),b=r(28185)(),v=Object.getPrototypeOf||(b?function(e){return e.__proto__}:null),w={},x="undefined"!=typeof Uint8Array&&v?v(Uint8Array):i,T={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?i:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?i:ArrayBuffer,"%ArrayIteratorPrototype%":g&&v?v([][Symbol.iterator]()):i,"%AsyncFromSyncIteratorPrototype%":i,"%AsyncFunction%":w,"%AsyncGenerator%":w,"%AsyncGeneratorFunction%":w,"%AsyncIteratorPrototype%":w,"%Atomics%":"undefined"==typeof Atomics?i:Atomics,"%BigInt%":"undefined"==typeof BigInt?i:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?i:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?i:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?i:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":a,"%eval%":eval,"%EvalError%":o,"%Float32Array%":"undefined"==typeof Float32Array?i:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?i:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?i:FinalizationRegistry,"%Function%":d,"%GeneratorFunction%":w,"%Int8Array%":"undefined"==typeof Int8Array?i:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?i:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?i:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
363IteratorPrototype%":g&&v?v(v([][Symbol.iterator]())):i,"%JSON%":"object"==typeof JSON?JSON:i,"%Map%":"undefined"==typeof Map?i:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&g&&v?v(new Map()[Symbol.iterator]()):i,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?i:Promise,"%Proxy%":"undefined"==typeof Proxy?i:Proxy,"%RangeError%":s,"%ReferenceError%":f,"%Reflect%":"undefined"==typeof Reflect?i:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?i:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&g&&v?v(new Set()[Symbol.iterator]()):i,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?i:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&v?v(""[Symbol.iterator]()):i,"%Symbol%":g?Symbol:i,"%SyntaxError%":l,"%ThrowTypeError%":m,"%TypedArray%":x,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?i:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?i:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?i:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?i:Uint32Array,"%URIError%":c,"%WeakMap%":"undefined"==typeof WeakMap?i:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?i:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?i:WeakSet};if(v)try{null.error}catch(e){var C=v(v(e));T["%Error.prototype%"]=C}var M=function e(n){var r;if("%AsyncFunction%"===n)r=p("async function () {}");else if("%GeneratorFunction%"===n)r=p("function* () {}");else if("%AsyncGeneratorFunction%"===n)r=p("async function* () {}");else if("%AsyncGenerator%"===n){var i=e("%AsyncGeneratorFunction%");i&&(r=i.prototype)}else if("%AsyncIteratorPrototype%"===n){var a=e("%AsyncGenerator%");a&&v&&(r=v(a.prototype))}return T[n]=r,r},A={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},E=r(58612),I=r(48824),S=E.call(Function.call,Array.prototype.concat),k=E.call(Function.apply,Array.prototype.splice),N=E.call(Function.call,String.prototype.replace),j=E.call(Function.call,String.prototype.slice),D=E.call(Function.call,RegExp.prototype.exec),_=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,O=/\\(\\)?/g,P=function(e){var n=j(e,0,1),r=j(e,-1);if("%"===n&&"%"!==r)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==n)throw new l("invalid intrinsic syntax, expected opening `%`");var i=[];return N(e,_,function(e,n,r,a){i[i.length]=r?N(a,O,"$1"):n||e}),i},L=function(e,n){var r,i=e;if(I(A,i)&&(i="%"+(r=A[i])[0]+"%"),I(T,i)){var a=T[i];if(a===w&&(a=M(i)),void 0===a&&!n)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:i,value:a}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,n){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof n)throw new u('"allowMissing" argument must be a boolean');if(null===D(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=P(e),i=r.length>0?r[0]:"",a=L("%"+i+"%",n),o=a.name,s=a.value,f=!1,c=a.alias;c&&(i=c[0],k(r,S([0,1],c)));for(var d=1,p=!0;d<r.length;d+=1){var y=r[d],m=j(y,0,1),g=j(y,-1);if(('"'===m||"'"===m||"`"===m||'"'===g||"'"===g||"`"===g)&&m!==g)throw new l("property names with quotes must have matching quotes");if("constructor"!==y&&p||(f=!0),i+="."+y,I(T,o="%"+i+"%"))s=T[o];else if(null!=s){if(!(y in s)){if(!n)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(h&&d+1>=r.length){var b=h(s,y);s=(p=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:s[y]}else p=I(s,y),s=s[y];p&&!f&&(T[o]=s)}}return s}},27296:function(e,n,r){"use strict";var i=r(40210)("%Object.getOwnPropertyDescriptor%",!0);if(i)try{i([],"length")}catch(e){i=null}e.exports=i},31044:function(e,n,r){"use strict";var i=r(24429),a=function(){return!!i};a.hasArrayLengthDefineBug=function(){if(!i)return null;try{return 1!==i([],"length",{value:1}).length}catch(e){return!0}},e.exports=a},28185:function(e){"use strict";var n={__proto__:null,foo:{}},r=Object;e.exports=function(){return({__proto__:n}).foo===n.foo&&!(n instanceof r)}},41405:function(e,n,r){"use strict";var i="undefined"!=typeof Symbol&&Symbol,a=r(55419);e.exports=function(){return"function"==typeof i&&"function"==typeof Symbol&&"symbol"==typeof i("foo")&&"symbol"==typeof Symbol("bar")&&a()}},55419:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},n=Symbol("test"),r=Object(n);if("string"==typeof n||"[object Symbol]"!==Object.prototype.toString.call(n)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(n in e[n]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(e,n))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,n);if(42!==a.value||!0!==a.enumerable)return!1}return!0}},33715:function(e,n,r){n.utils=r(26436),n.common=r(95772),n.sha=r(89041),n.ripemd=r(12949),n.hmac=r(52344),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},95772:function(e,n,r){"use strict";var i=r(26436),a=r(79746);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}n.BlockHash=o,o.prototype.update=function(e,n){if(e=i.toArray(e,n),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=i.join32(e,0,e.length-r,this.endian);for(var a=0;a<e.length;a+=this._delta32)this._update(e,a,a+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),a(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,n=this._delta8,r=n-(e+this.padLength)%n,i=Array(r+this.padLength);i[0]=128;for(var a=1;a<r;a++)i[a]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)i[a++]=0;i[a++]=0,i[a++]=0,i[a++]=0,i[a++]=0,i[a++]=e>>>24&255,i[a++]=e>>>16&255,i[a++]=e>>>8&255,i[a++]=255&e}else for(o=8,i[a++]=255&e,i[a++]=e>>>8&255,i[a++]=e>>>16&255,i[a++]=e>>>24&255,i[a++]=0,i[a++]=0,i[a++]=0,i[a++]=0;o<this.padLength;o++)i[a++]=0;return i}},52344:function(e,n,r){"use strict";var i=r(26436),a=r(79746);function o(e,n,r){if(!(this instanceof o))return new o(e,n,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(i.toArray(n,r))}e.exports=o,o.prototype._init=function(e){e.length>this.blockSize&&(e=new this.Hash().update(e).digest()),a(e.length<=this.blockSize);for(var n=e.length;n<this.blockSize;n++)e.push(0);for(n=0;n<e.length;n++)e[n]^=54;for(n=0,this.inner=new this.Hash().update(e);n<e.length;n++)e[n]^=106;this.outer=new this.Hash().update(e)},o.prototype.update=function(e,n){return this.inner.update(e,n),this},o.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},12949:function(e,n,r){"use strict";var i=r(26436),a=r(95772),o=i.rotl32,s=i.sum32,f=i.sum32_3,l=i.sum32_4,u=a.BlockHash;function c(){if(!(this instanceof c))return new c;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function d(e,n,r,i){return e<=15?n^r^i:e<=31?n&r|~n&i:e<=47?(n|~r)^i:e<=63?n&i|r&~i:n^(r|~i)}i.inherits(c,u),n.ripemd160=c,c.blockSize=512,c.outSize=160,c.hmacStrength=192,c.padLength=64,c.prototype._update=function(e,n){for(var r=this.h[0],i=this.h[1],a=this.h[2],u=this.h[3],c=this.h[4],g=r,b=i,v=a,w=u,x=c,T=0;T<80;T++){var C,M,A=s(o(l(r,d(T,i,a,u),e[p[T]+n],(C=T)<=15?0:C<=31?1518500249:C<=47?1859775393:C<=63?2400959708:2840853838),y[T]),c);r=c,c=u,u=o(a,10),a=i,i=A,A=s(o(l(g,d(79-T,b,v,w),e[h[T]+n],(M=T)<=15?1352829926:M<=31?1548603684:M<=47?1836072691:M<=63?2053994217:0),m[T]),x),g=x,x=w,w=o(v,10),v=b,b=A}A=f(this.h[1],a,w),this.h[1]=f(this.h[2],u,x),this.h[2]=f(this.h[3],c,g),this.h[3]=f(this.h[4],r,b),this.h[4]=f(this.h[0],i,v),this.h[0]=A},c.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h,"little"):i.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],h=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],y=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],m=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},89041:function(e,n,r){"use strict";n.sha1=r(84761),n.sha224=r(10799),n.sha256=r(89344),n.sha384=r(80772),n.sha512=r(45900)},84761:function(e,n,r){"use strict";var i=r(26436),a=r(95772),o=r(37038),s=i.rotl32,f=i.sum32,l=i.sum32_5,u=o.ft_1,c=a.BlockHash,d=[1518500249,1859775393,2400959708,3395469782];function p(){if(!(this instanceof p))return new p;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=Array(80)}i.inherits(p,c),e.exports=p,p.blockSize=512,p.outSize=160,p.hmacStrength=80,p.padLength=64,p.prototype._update=function(e,n){for(var r=this.W,i=0;i<16;i++)r[i]=e[n+i];for(;i<r.length;i++)r[i]=s(r[i-3]^r[i-8]^r[i-14]^r[i-16],1);var a=this.h[0],o=this.h[1],c=this.h[2],p=this.h[3],h=this.h[4];for(i=0;i<r.length;i++){var y=~~(i/20),m=l(s(a,5),u(y,o,c,p),h,r[i],d[y]);h=p,p=c,c=s(o,30),o=a,a=m}this.h[0]=f(this.h[0],a),this.h[1]=f(this.h[1],o),this.h[2]=f(this.h[2],c),this.h[3]=f(this.h[3],p),this.h[4]=f(this.h[4],h)},p.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},10799:function(e,n,r){"use strict";var i=r(26436),a=r(89344);function o(){if(!(this instanceof o))return new o;a.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}i.inherits(o,a),e.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h.slice(0,7),"big"):i.split32(this.h.slice(0,7),"big")}},89344:function(e,n,r){"use strict";var i=r(26436),a=r(95772),o=r(37038),s=r(79746),f=i.sum32,l=i.sum32_4,u=i.sum32_5,c=o.ch32,d=o.maj32,p=o.s0_256,h=o.s1_256,y=o.g0_256,m=o.g1_256,g=a.BlockHash,b=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756
vendor: 3,373 bytes, line 363
363734187,3204031479,3329325298];function v(){if(!(this instanceof v))return new v;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=b,this.W=Array(64)}i.inherits(v,g),e.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(e,n){for(var r=this.W,i=0;i<16;i++)r[i]=e[n+i];for(;i<r.length;i++)r[i]=l(m(r[i-2]),r[i-7],y(r[i-15]),r[i-16]);var a=this.h[0],o=this.h[1],g=this.h[2],b=this.h[3],v=this.h[4],w=this.h[5],x=this.h[6],T=this.h[7];for(s(this.k.length===r.length),i=0;i<r.length;i++){var C=u(T,h(v),c(v,w,x),this.k[i],r[i]),M=f(p(a),d(a,o,g));T=x,x=w,w=v,v=f(b,C),b=g,g=o,o=a,a=f(C,M)}this.h[0]=f(this.h[0],a),this.h[1]=f(this.h[1],o),this.h[2]=f(this.h[2],g),this.h[3]=f(this.h[3],b),this.h[4]=f(this.h[4],v),this.h[5]=f(this.h[5],w),this.h[6]=f(this.h[6],x),this.h[7]=f(this.h[7],T)},v.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},80772:function(e,n,r){"use strict";var i=r(26436),a=r(45900);function o(){if(!(this instanceof o))return new o;a.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}i.inherits(o,a),e.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h.slice(0,12),"big"):i.split32(this.h.slice(0,12),"big")}},45900:function(e,n,r){"use strict";var i=r(26436),a=r(95772),o=r(79746),s=i.rotr64_hi,f=i.rotr64_lo,l=i.shr64_hi,u=i.shr64_lo,c=i.sum64,d=i.sum64_hi,p=i.sum64_lo,h=i.sum64_4_hi,y=i.sum64_4_lo,m=i.sum64_5_hi,g=i.sum64_5_lo,b=a.BlockHash,v=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,
3631126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function w(){if(!(this instanceof w))return new w;b.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=v,this.W=Array(160)}i.inherits(w,b),e.exports=w,w.blockSize=1024,w.outSize=512,w.hmacStrength=192,w.padLength=128,w.prototype._prepareBlock=function(e,n){for(var r=this.W,i=0;i<32;i++)r[i]=e[n+i];for(;i<r.length;i+=2){var a=function(e,n){var r=s(e,n,19)^s(n,e,29)^l(e,n,6);return r<0&&(r+=4294967296),r}(r[i-4],r[i-3]),o=function(e,n){var r=f(e,n,19)^f(n,e,29)^u(e,n,6);return r<0&&(r+=4294967296),r}(r[i-4],r[i-3]),c=r[i-14],d=r[i-13],p=function(e,n){var r=s(e,n,1)^s(e,n,8)^l(e,n,7);return r<0&&(r+=4294967296),r}(r[i-30],r[i-29]),m=function(e,n){var r=f(e,n,1)^f(e,n,8)^u(e,n,7);return r<0&&(r+=4294967296),r}(r[i-30],r[i-29]),g=r[i-32],b=r[i-31];r[i]=h(a,o,c,d,p,m,g,b),r[i+1]=y(a,o,c,d,p,m,g,b)}},w.prototype._update=function(e,n){this._prepareBlock(e,n);var r=this.W,i=this.h[0],a=this.h[1],l=this.h[2],u=this.h[3],h=this.h[4],y=this.h[5],b=this.h[6],v=this.h[7],w=this.h[8],x=this.h[9],T=this.h[10],C=this.h[11],M=this.h[12],A=this.h[13],E=this.h[14],I=this.h[15];o(this.k.length===r.length);for(var S=0;S<r.length;S+=2){var k=E,N=I,j=function(e,n){var r=s(e,n,14)^s(e,n,18)^s(n,e,9);return r<0&&(r+=4294967296),r}(w,x),D=function(e,n){var r=f(e,n,14)^f(e,n,18)^f(n,e,9);return r<0&&(r+=4294967296),r}(w,x),_=function(e,n,r,i,a){var o=e&r^~e&a;return o<0&&(o+=4294967296),o}(w,0,T,0,M,A),O=function(e,n,r,i,a,o){var s=n&i^~n&o;return s<0&&(s+=4294967296),s}(0,x,0,C,0,A),P=this.k[S],L=this.k[S+1],R=r[S],z=r[S+1],B=m(k,N,j,D,_,O,P,L,R,z),U=g(k,N,j,D,_,O,P,L,R,z);k=function(e,n){var r=s(e,n,28)^s(n,e,2)^s(n,e,7);return r<0&&(r+=4294967296),r}(i,a);var F=d(k,N=function(e,n){var r=f(e,n,28)^f(n,e,2)^f(n,e,7);return r<0&&(r+=4294967296),r}(i,a),j=function(e,n,r,i,a){var o=e&r^e&a^r&a;return o<0&&(o+=4294967296),o}(i,0,l,0,h,y),D=function(e,n,r,i,a,o){var s=n&i^n&o^i&o;return s<0&&(s+=4294967296),s}(0,a,0,u,0,y)),Z=p(k,N,j,D);E=M,I=A,M=T,A=C,T=w,C=x,w=d(b,v,B,U),x=p(v,v,B,U),b=h,v=y,h=l,y=u,l=i,u=a,i=d(B,U,F,Z),a=p(B,U,F,Z)}c(this.h,0,i,a),c(this.h,2,l,u),c(this.h,4,h,y),c(this.h,6,b,v),c(this.h,8,w,x),c(this.h,10,T,C),c(this.h,12,M,A),c(this.h,14,E,I)},w.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},37038:function(e,n,r){"use strict";var i=r(26436).rotr32;function a(e,n,r){return e&n^e&r^n&r}n.ft_1=function(e,n,r,i){return 0===e?n&r^~n&i:1===e||3===e?n^r^i:2===e?a(n,r,i):void 0},n.ch32=function(e,n,r){return e&n^~e&r},n.maj32=a,n.p32=function(e,n,r){return e^n^r},n.s0_256=function(e){return i(e,2)^i(e,13)^i(e,22)},n.s1_256=function(e){return i(e,6)^i(e,11)^i(e,25)},n.g0_256=function(e){return i(e,7)^i(e,18)^e>>>3},n.g1_256=function(e){return i(e,17)^i(e,19)^e>>>10}},26436:function(e,n,r){"use strict";var i=r(79746),a=r(35717);function o(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function f(e){if(7===e.length)return"0"+e;if(6===e.length)return"00"+e;if(5===e.length)return"000"+e;if(4===e.length)return"0000"+e;if(3===e.length)return"00000"+e;if(2===e.length)return"000000"+e;if(1===e.length)return"0000000"+e;else return e}n.inherits=a,n.toArray=function(e,n){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e){if(n){if("hex"===n)for((e=e.replace(/[^a-z0-9]+/ig,"")).length%2!=0&&(e="0"+e),a=0;a<e.length;a+=2)r.push(parseInt(e[a]+e[a+1],16))}else for(var i=0,a=0;a<e.length;a++){var o,s,f=e.charCodeAt(a);f<128?r[i++]=f:(f<2048?r[i++]=f>>6|192:((o=e,s=a,(64512&o.charCodeAt(s))!=55296||s<0||s+1>=o.length?1:(64512&o.charCodeAt(s+1))!=56320)?r[i++]=f>>12|224:(f=65536+((1023&f)<<10)+(1023&e.charCodeAt(++a)),r[i++]=f>>18|240,r[i++]=f>>12&63|128),r[i++]=f>>6&63|128),r[i++]=63&f|128)}}else for(a=0;a<e.length;a++)r[a]=0|e[a];return r},n.toHex=function(e){for(var n="",r=0;r<e.length;r++)n+=s(e[r].toString(16));return n},n.htonl=o,n.toHex32=function(e,n){for(var r="",i=0;i<e.length;i++){var a=e[i];"little"===n&&(a=o(a)),r+=f(a.toString(16))}return r},n.zero2=s,n.zero8=f,n.join32=function(e,n,r,a){var o,s=r-n;i(s%4==0);for(var f=Array(s/4),l=0,u=n;l<f.length;l++,u+=4)o="big"===a?e[u]<<24|e[u+1]<<16|e[u+2]<<8|e[u+3]:e[u+3]<<24|e[u+2]<<16|e[u+1]<<8|e[u],f[l]=o>>>0;return f},n.split32=function(e,n){for(var r=Array(4*e.length),i=0,a=0;i<e.length;i++,a+=4){var o=e[i];"big"===n?(r[a]=o>>>24,r[a+1]=o>>>16&255,r[a+2]=o>>>8&255,r[a+3]=255&o):(r[a+3]=o>>>24,r[a+2]=o>>>16&255,r[a+1]=o>>>8&255,r[a]=255&o)}return r},n.rotr32=function(e,n){return e>>>n|e<<32-n},n.rotl32=function(e,n){return e<<n|e>>>32-n},n.sum32=function(e,n){return e+n>>>0},n.sum32_3=function(e,n,r){return e+n+r>>>0},n.sum32_4=function(e,n,r,i){return e+n+r+i>>>0},n.sum32_5=function(e,n,r,i,a){return e+n+r+i+a>>>0},n.sum64=function(e,n,r,i){var a=e[n],o=i+e[n+1]>>>0;e[n]=(o<i?1:0)+r+a>>>0,e[n+1]=o},n.sum64_hi=function(e,n,r,i){return(n+i>>>0<n?1:0)+e+r>>>0},n.sum64_lo=function(e,n,r,i){return n+i>>>0},n.sum64_4_hi=function(e,n,r,i,a,o,s,f){var l,u=n;return e+r+a+s+(0+((u=u+i>>>0)<n?1:0)+((u=u+o>>>0)<o?1:0)+((u=u+f>>>0)<f?1:0))>>>0},n.sum64_4_lo=function(e,n,r,i,a,o,s,f){return n+i+o+f>>>0},n.sum64_5_hi=function(e,n,r,i,a,o,s,f,l,u){var c,d=n;return e+r+a+s+l+(0+((d=d+i>>>0)<n?1:0)+((d=d+o>>>0)<o?1:0)+((d=d+f>>>0)<f?1:0)+((d=d+u>>>0)<u?1:0))>>>0},n.sum64_5_lo=function(e,n,r,i,a,o,s,f,l,u){return n+i+o+f+u>>>0},n.rotr64_hi=function(e,n,r){return(n<<32-r|e>>
vendor: 4,764 bytes, lines 363-370
363>r)>>>0},n.rotr64_lo=function(e,n,r){return(e<<32-r|n>>>r)>>>0},n.shr64_hi=function(e,n,r){return e>>>r},n.shr64_lo=function(e,n,r){return(e<<32-r|n>>>r)>>>0}},48824:function(e,n,r){"use strict";var i=Function.prototype.call,a=Object.prototype.hasOwnProperty,o=r(58612);e.exports=o.call(i,a)},8679:function(e,n,r){"use strict";var i=r(21296),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},f={};function l(e){return i.isMemo(e)?s:f[e.$$typeof]||a}f[i.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},f[i.Memo]=s;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,y=Object.prototype;e.exports=function e(n,r,i){if("string"!=typeof r){if(y){var a=h(r);a&&a!==y&&e(n,a,i)}var s=c(r);d&&(s=s.concat(d(r)));for(var f=l(n),m=l(r),g=0;g<s.length;++g){var b=s[g];if(!o[b]&&!(i&&i[b])&&!(m&&m[b])&&!(f&&f[b])){var v=p(r,b);try{u(n,b,v)}catch(e){}}}}return n}},96103:function(e,n){"use strict";/** @license React v16.13.1 364 * react-is.production.min.js 365 * 366 * Copyright (c) Facebook, Inc. and its affiliates. 367 * 368 * This source code is licensed under the MIT license found in the 369 * LICENSE file in the root directory of this source tree. 370 */var r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,f=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,y=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,b=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,w=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function T(e){if("object"==typeof e&&null!==e){var n=e.$$typeof;switch(n){case i:switch(e=e.type){case c:case d:case o:case f:case s:case h:return e;default:switch(e=e&&e.$$typeof){case u:case p:case g:case m:case l:return e;default:return n}}case a:return n}}}function C(e){return T(e)===d}n.AsyncMode=c,n.ConcurrentMode=d,n.ContextConsumer=u,n.ContextProvider=l,n.Element=i,n.ForwardRef=p,n.Fragment=o,n.Lazy=g,n.Memo=m,n.Portal=a,n.Profiler=f,n.StrictMode=s,n.Suspense=h,n.isAsyncMode=function(e){return C(e)||T(e)===c},n.isConcurrentMode=C,n.isContextConsumer=function(e){return T(e)===u},n.isContextProvider=function(e){return T(e)===l},n.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},n.isForwardRef=function(e){return T(e)===p},n.isFragment=function(e){return T(e)===o},n.isLazy=function(e){return T(e)===g},n.isMemo=function(e){return T(e)===m},n.isPortal=function(e){return T(e)===a},n.isProfiler=function(e){return T(e)===f},n.isStrictMode=function(e){return T(e)===s},n.isSuspense=function(e){return T(e)===h},n.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===f||e===s||e===h||e===y||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===p||e.$$typeof===v||e.$$typeof===w||e.$$typeof===x||e.$$typeof===b)},n.typeOf=T},21296:function(e,n,r){"use strict";e.exports=r(96103)},80645:function(e,n){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */n.read=function(e,n,r,i,a){var o,s,f=8*a-i-1,l=(1<<f)-1,u=l>>1,c=-7,d=r?a-1:0,p=r?-1:1,h=e[n+d];for(d+=p,o=h&(1<<-c)-1,h>>=-c,c+=f;c>0;o=256*o+e[n+d],d+=p,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=i;c>0;s=256*s+e[n+d],d+=p,c-=8);if(0===o)o=1-u;else{if(o===l)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,i),o-=u}return(h?-1:1)*s*Math.pow(2,o-i)},n.write=function(e,n,r,i,a,o){var s,f,l,u=8*o-a-1,c=(1<<u)-1,d=c>>1,p=23===a?5960464477539062e-23:0,h=i?0:o-1,y=i?1:-1,m=n<0||0===n&&1/n<0?1:0;for(isNaN(n=Math.abs(n))||n===1/0?(f=isNaN(n)?1:0,s=c):(s=Math.floor(Math.log(n)/Math.LN2),n*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+d>=1?n+=p/l:n+=p*Math.pow(2,1-d),n*l>=2&&(s++,l/=2),s+d>=c?(f=0,s=c):s+d>=1?(f=(n*l-1)*Math.pow(2,a),s+=d):(f=n*Math.pow(2,d-1)*Math.pow(2,a),s=0));a>=8;e[r+h]=255&f,h+=y,f/=256,a-=8);for(s=s<<a|f,u+=a;u>0;e[r+h]=255&s,h+=y,s/=256,u-=8);e[r+h-y]|=128*m}},35717:function(e){"function"==typeof Object.create?e.exports=function(e,n){
370n&&(e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,n){if(n){e.super_=n;var r=function(){};r.prototype=n.prototype,e.prototype=new r,e.prototype.constructor=e}}},16284:function(e,n,r){"use strict";r.d(n,{C:function(){return l}});var i=r(91014),a=r(59055),o=r(95957),s=r(61092);function f(e){return{create:function(){return{get:function(n){return e[n]},set:function(n,r){e[n]=r}}}}}var l=function(){function e(n,r,a,l){var u,c,d=this;if(void 0===r&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var n=d.formatToParts(e);if(1===n.length)return n[0].value;var r=n.reduce(function(e,n){return e.length&&n.type===s.du.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=n.value:e.push(n.value),e},[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return(0,s.FK)(d.ast,d.locales,d.formatters,d.formats,e,void 0,d.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=d.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(d.locales)[0]}},this.getAst=function(){return d.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof n){if(this.message=n,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var p=l||{},h=(p.formatters,(0,i._T)(p,["formatters"]));this.ast=e.__parse(n,(0,i.pi)((0,i.pi)({},h),{locale:this.resolvedLocale}))}else this.ast=n;if(!Array.isArray(this.ast))throw TypeError("A message must be provided as a String or AST.");this.formats=(u=e.formats,a?Object.keys(u).reduce(function(e,n){var r,o;return e[n]=(r=u[n],(o=a[n])?(0,i.pi)((0,i.pi)((0,i.pi)({},r||{}),o||{}),Object.keys(r).reduce(function(e,n){return e[n]=(0,i.pi)((0,i.pi)({},r[n]),o[n]||{}),e},{})):r),e},(0,i.pi)({},u)):u),this.formatters=l&&l.formatters||(void 0===(c=this.formatterCache)&&(c={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:(0,o.H)(function(){for(var e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,(0,i.ev)([void 0],n,!1)))},{cache:f(c.number),strategy:o.A.variadic}),getDateTimeFormat:(0,o.H)(function(){for(var e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,(0,i.ev)([void 0],n,!1)))},{cache:f(c.dateTime),strategy:o.A.variadic}),getPluralRules:(0,o.H)(function(){for(var e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,(0,i.ev)([void 0],n,!1)))},{cache:f(c.pluralRules),strategy:o.A.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(void 0!==Intl.Locale){var n=Intl.NumberFormat.supportedLocalesOf(e);return new Intl.Locale(n.length>0?n[0]:"string"==typeof e?e:e[0])}},e.__parse=a.Qc,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}()},11050:function(e,n,r){"use strict";r.d(n,{C8:function(){return f},HR:function(){return u},YR:function(){return l},jK:function(){return a},u_:function(){return s}});var i,a,o=r(91014);(i=a||(a={})).MISSING_VALUE="MISSING_VALUE",i.INVALID_VALUE="INVALID_VALUE",i.MISSING_INTL_API="MISSING_INTL_API";var s=function(e){function n(n,r,i){var a=e.call(this,n)||this;return a.code=r,a.originalMessage=i,a}return(0,o.ZT)(n,e),n.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},n}(Error),f=function(e){function n(n,r,i,o){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),a.INVALID_VALUE,o)||this}return(0,o.ZT)(n,e),n}(s),l=function(e){function n(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),a.INVALID_VALUE,i)||this}return(0,o.ZT)(n,e),n}(s),u=function(e){function n(n,r){return e.call(this,'The intl str
370ing context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),a.MISSING_VALUE,r)||this}return(0,o.ZT)(n,e),n}(s)},61092:function(e,n,r){"use strict";r.d(n,{FK:function(){return function e(n,r,i,l,u,c,d){if(1===n.length&&(0,o.O4)(n[0]))return[{type:a.literal,value:n[0].value}];for(var p=[],h=0;h<n.length;h++){var y=n[h];if((0,o.O4)(y)){p.push({type:a.literal,value:y.value});continue}if((0,o.yx)(y)){"number"==typeof c&&p.push({type:a.literal,value:i.getNumberFormat(r).format(c)});continue}var m=y.value;if(!(u&&m in u))throw new s.HR(m,d);var g=u[m];if((0,o.VG)(y)){g&&"string"!=typeof g&&"number"!=typeof g||(g="string"==typeof g||"number"==typeof g?String(g):""),p.push({type:"string"==typeof g?a.literal:a.object,value:g});continue}if((0,o.rp)(y)){var b="string"==typeof y.style?l.date[y.style]:(0,o.Ii)(y.style)?y.style.parsedOptions:void 0;p.push({type:a.literal,value:i.getDateTimeFormat(r,b).format(g)});continue}if((0,o.pe)(y)){var b="string"==typeof y.style?l.time[y.style]:(0,o.Ii)(y.style)?y.style.parsedOptions:l.time.medium;p.push({type:a.literal,value:i.getDateTimeFormat(r,b).format(g)});continue}if((0,o.uf)(y)){var b="string"==typeof y.style?l.number[y.style]:(0,o.Wh)(y.style)?y.style.parsedOptions:void 0;b&&b.scale&&(g*=b.scale||1),p.push({type:a.literal,value:i.getNumberFormat(r,b).format(g)});continue}if((0,o.HI)(y)){var v=y.children,w=y.value,x=u[w];if(!f(x))throw new s.YR(w,"function",d);var T=x(e(v,r,i,l,u,c).map(function(e){return e.value}));Array.isArray(T)||(T=[T]),p.push.apply(p,T.map(function(e){return{type:"string"==typeof e?a.literal:a.object,value:e}}))}if((0,o.Wi)(y)){var C=y.options[g]||y.options.other;if(!C)throw new s.C8(y.value,g,Object.keys(y.options),d);p.push.apply(p,e(C.value,r,i,l,u));continue}if((0,o.Jo)(y)){var C=y.options["=".concat(g)];if(!C){if(!Intl.PluralRules)throw new s.u_('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',s.jK.MISSING_INTL_API,d);var M=i.getPluralRules(r,{type:y.pluralType}).select(g-(y.offset||0));C=y.options[M]||y.options.other}if(!C)throw new s.C8(y.value,g,Object.keys(y.options),d);p.push.apply(p,e(C.value,r,i,l,u,g-(y.offset||0)));continue}}return p.length<2?p:p.reduce(function(e,n){var r=e[e.length-1];return r&&r.type===a.literal&&n.type===a.literal?r.value+=n.value:e.push(n),e},[])}},Gt:function(){return f},du:function(){return a}});var i,a,o=r(59055),s=r(11050);function f(e){return"function"==typeof e}(i=a||(a={}))[i.literal=0]="literal",i[i.object=1]="object"},59055:function(e,n,r){"use strict";
370r.d(n,{VG:function(){return h},rp:function(){return m},Ii:function(){return C},O4:function(){return p},uf:function(){return y},Wh:function(){return T},Jo:function(){return v},yx:function(){return w},Wi:function(){return b},HI:function(){return x},pe:function(){return g},Qc:function(){return ei}});var i,a,o,s,f,l,u,c,d=r(91014);function p(e){return e.type===f.literal}function h(e){return e.type===f.argument}function y(e){return e.type===f.number}function m(e){return e.type===f.date}function g(e){return e.type===f.time}function b(e){return e.type===f.select}function v(e){return e.type===f.plural}function w(e){return e.type===f.pound}function x(e){return e.type===f.tag}function T(e){return!!(e&&"object"==typeof e&&e.type===l.number)}function C(e){return!!(e&&"object"==typeof e&&e.type===l.dateTime)}(i=s||(s={}))[i.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",i[i.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",i[i.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",i[i.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",i[i.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",i[i.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",i[i.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",i[i.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",i[i.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",i[i.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",i[i.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",i[i.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",i[i.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",i[i.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",i[i.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",i[i.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",i[i.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",i[i.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",i[i.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",i[i.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",i[i.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",i[i.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",i[i.INVALID_TAG=23]="INVALID_TAG",i[i.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",i[i.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",i[i.UNCLOSED_TAG=27]="UNCLOSED_TAG",(a=f||(f={}))[a.literal=0]="literal",a[a.argument=1]="argument",a[a.number=2]="number",a[a.date=3]="date",a[a.time=4]="time",a[a.select=5]="select",a[a.plural=6]="plural",a[a.pound=7]="pound",a[a.tag=8]="tag",(o=l||(l={}))[o.number=0]="number",o[o.dateTime=1]="dateTime";var M=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,A=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g,E=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,I=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,S=/^(@+)?(\+|#+)?[rs]?$/g,k=/(\*)(0+)|(#+)(0+)|(0+)/g,N=/^(0+)$/;function j(e){var n={};return"r"===e[e.length-1]?n.roundingPriority="morePrecision":"s"===e[e.length-1]&&(n.roundingPriority="lessPrecision"),e.replace(S,function(e,r,i){return"string"!=typeof i?(n.minimumSignificantDigits=r.length,n.maximumSignificantDigits=r.length):"+"===i?n.minimumSignificantDigits=r.length:"#"===r[0]?n.maximumSignificantDigits=r.length:(n.minimumSignificantDigits=r.length,n.maximumSignificantDigits=r.length+("string"==typeof i?i.length:0)),""}),n}function D(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function _(e){return D(e)||{}}var O={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA
370:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]},P=new RegExp("^".concat(M.source,"*")),L=new RegExp("".concat(M.source,"*$"));function R(e,n){return{start:e,end:n}}var z=!!String.prototype.startsWith&&"_a".startsWith("a",1),B=!!String.fromCodePoint,U=!!Object.fromEntries,F=!!String.prototype.codePointAt,Z=!!String.prototype.trimStart,W=!!String.prototype.trimEnd,H=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&9007199254740991>=Math.abs(e)},G=!0;try{var q=X("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");G=(null===(u=q.exec("a"))||void 0===u?void 0:u[0])==="a"}catch(e){G=!1}var Y=z?function(e,n,r){return e.startsWith(n,r)}:function(e,n,r){return e.slice(r,r+n.length)===n},V=B?String.fromCodePoint:function(){for(var e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];for(var i="",a=n.length,o=0;a>o;){if((e=n[o++])>1114111)throw RangeError(e+" is not a valid code point");i+=e<65536?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10)+55296,e%1024+56320)}return i},Q=U?Object.fromEntries:function(e){for(var n={},r=0;r<e.length;r++){var i=e[r],a=i[0],o=i[1];n[a]=o}return n},K=F?function(e,n){return e.codePointAt(n)}:function(e,n){var r,i=e.length;if(!(n<0)&&!(n>=i)){var a=e.charCodeAt(n);return a<55296||a>56319||n+1===i||(r=e.charCodeAt(n+1))<56320||r>57343?a:(a-55296<<10)+(r-56320)+65536}},$=Z?function(e){return e.trimStart()}:function(e){return e.replace(P,"")},J=W?function(e){return e.trimEnd()}:function(e){return e.replace(L,"")};function X(e,n){return new RegExp(e,n)}if(G){var ee=X("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");c=function(e,n){var r;return ee.lastIndex=n,null!==(r=ee.exec(e)[1])&&void 0!==r?r:""}}else c=function(e,n){for(var r=[];;){var i,a=K(e,n);if(void 0===a||er(a)||(i=a)>=33&&i<=35||36===i||i>=37&&i<=39||40===i||41===i||42===i||43===i||44===i||45===i||i>=46&&i<=47||i>=58&&i<=59||i>=60&&i<=62||i>=63&&i<=64||91===i||92===i||93===i||94===i||96===i||123===i||124===i||125===i||126===i||161===i||i>=162&&i<=165||166===i||167===i||169===i||171===i||172===i||174===i||176===i||177===i||182===i||187===i||191===i||215===i||247===i||i>=8208&&i<=8213||i>=8214&&i<=8215||8216===i||8217===i||8218===i||i>=8219&&i<=8220||8221===i||8222===i||8223===i||i>=8224&&i<=8231||i>=8240&&i<=8248||8249===i||8250===i||i>=8251&&i<=8254||i>=8257&&i<=8259||8260===i||8261===i||8262===i||i>=8263&&i<=8273||8274===i||8275===i||i>=8277&&i<=8286||i>=8592&&i<=8596||i>=8597&&i<=8601||i>=8602&&i<=8603||i>=8604&&i<=8607||8608===i||i>=8609&&i<=8610||8611===i||i>=8612&&i<=8613||8614===i||i>=8615&&i<=8621||8622===i||i>=8623&&i<=8653||i>=8654&&i<=8655||i>=8656&&i<=8657||8658===i||8659===i||8660===i||i>=8661&&i<=8691||i>=8692&&i<=8959||i>=8960&&i<=8967||8968===i||8969===i||8970===i||8971===i||i>=8972&&i<=8991||i>=8992&&i<=8993||i>=8994&&i<=9e3||9001===i||9002===i||i>=9003&&i<=9083||9084===i||i>=9085&&i<=9114||i>=9115&&i<=9139||i>=9140&&i<=9179||i>=9180&&i<=9185||i>=9186&&i<=9254||i>=9255&&i<=9279||i>=9280&&i<=9290||i>=9291&&i<=9311||i>=9472&&i<=9654||9655===i||i>
370=9656&&i<=9664||9665===i||i>=9666&&i<=9719||i>=9720&&i<=9727||i>=9728&&i<=9838||9839===i||i>=9840&&i<=10087||10088===i||10089===i||10090===i||10091===i||10092===i||10093===i||10094===i||10095===i||10096===i||10097===i||10098===i||10099===i||10100===i||10101===i||i>=10132&&i<=10175||i>=10176&&i<=10180||10181===i||10182===i||i>=10183&&i<=10213||10214===i||10215===i||10216===i||10217===i||10218===i||10219===i||10220===i||10221===i||10222===i||10223===i||i>=10224&&i<=10239||i>=10240&&i<=10495||i>=10496&&i<=10626||10627===i||10628===i||10629===i||10630===i||10631===i||10632===i||10633===i||10634===i||10635===i||10636===i||10637===i||10638===i||10639===i||10640===i||10641===i||10642===i||10643===i||10644===i||10645===i||10646===i||10647===i||10648===i||i>=10649&&i<=10711||10712===i||10713===i||10714===i||10715===i||i>=10716&&i<=10747||10748===i||10749===i||i>=10750&&i<=11007||i>=11008&&i<=11055||i>=11056&&i<=11076||i>=11077&&i<=11078||i>=11079&&i<=11084||i>=11085&&i<=11123||i>=11124&&i<=11125||i>=11126&&i<=11157||11158===i||i>=11159&&i<=11263||i>=11776&&i<=11777||11778===i||11779===i||11780===i||11781===i||i>=11782&&i<=11784||11785===i||11786===i||11787===i||11788===i||11789===i||i>=11790&&i<=11798||11799===i||i>=11800&&i<=11801||11802===i||11803===i||11804===i||11805===i||i>=11806&&i<=11807||11808===i||11809===i||11810===i||11811===i||11812===i||11813===i||11814===i||11815===i||11816===i||11817===i||i>=11818&&i<=11822||11823===i||i>=11824&&i<=11833||i>=11834&&i<=11835||i>=11836&&i<=11839||11840===i||11841===i||11842===i||i>=11843&&i<=11855||i>=11856&&i<=11857||11858===i||i>=11859&&i<=11903||i>=12289&&i<=12291||12296===i||12297===i||12298===i||12299===i||12300===i||12301===i||12302===i||12303===i||12304===i||12305===i||i>=12306&&i<=12307||12308===i||12309===i||12310===i||12311===i||12312===i||12313===i||12314===i||12315===i||12316===i||12317===i||i>=12318&&i<=12319||12320===i||12336===i||64830===i||64831===i||i>=65093&&i<=65094)break;r.push(a),n+=a>=65536?2:1}return V.apply(void 0,r)};var et=function(){function e(e,n){void 0===n&&(n={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,n,r){for(var i=[];!this.isEOF();){var a=this.char();if(123===a){var o=this.parseArgument(e,r);if(o.err)return o;i.push(o.val)}else if(125===a&&e>0)break;else if(35===a&&("plural"===n||"selectordinal"===n)){var l=this.clonePosition();this.bump(),i.push({type:f.pound,location:R(l,this.clonePosition())})}else if(60!==a||this.ignoreTag||47!==this.peek()){if(60===a&&!this.ignoreTag&&en(this.peek()||0)){var o=this.parseTag(e,n);if(o.err)return o;i.push(o.val)}else{var o=this.parseLiteral(e,n);if(o.err)return o;i.push(o.val)}}else{if(!r)return this.error(s.UNMATCHED_CLOSING_TAG,R(this.clonePosition(),this.clonePosition()));break}}return{val:i,err:null}},e.prototype.parseTag=function(e,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:f.literal,value:"<".concat(i,"/>"),location:R(r,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(s.INVALID_TAG,R(r,this.clonePosition()));var a=this.parseMessage(e+1,n,!0);if(a.err)return a;var o=a.val,l=this.clonePosition();if(!this.bumpIf("</"))return this.error(s.UNCLOSED_TAG,R(r,this.clonePosition()));if(this.isEOF()||!en(this.char()))return this.error(s.INVALID_TAG,R(l,this.clonePosition()));var u=this.clonePosition();return i!==this.parseTagName()?this.error(s.UNMATCHED_CLOSING_TAG,R(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">"))?{val:{type:f.tag,value:i,children:o,location:R(r,this.clonePosition())},err:null}:this.error(s.INVALID_TAG,R(l,this.clonePosition()))},e.prototype.parseTagName=function(){var e,n=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(n,this.offset())},e.prototype.parseLiteral=function(e,n){for(var r=this.clonePosition(),i="";;){var a=this.tryParseQuote(n);if(a){i+=a;continue}var o=this.tryParseUnquoted(e,n);if(o){i+=o;continue}var s=this.tryParseLeftAngleBracket();if(s){i+=s;continue}break}var l=R(r,this.clonePosition());return{val:{type:f.literal,value:i,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){var e;return this.isEOF()||60!==this.char()||!this.ignoreTag&&(en(e=this.peek()||0)||47===e)?null:(this.bump(),"<")},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";
370case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39===this.peek())n.push(39),this.bump();else{this.bump();break}}else n.push(r);this.bump()}return V.apply(void 0,n)},e.prototype.tryParseUnquoted=function(e,n){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===n||"selectordinal"===n)||125===r&&e>0?null:(this.bump(),V(r))},e.prototype.parseArgument=function(e,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(s.EXPECT_ARGUMENT_CLOSING_BRACE,R(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(s.EMPTY_ARGUMENT,R(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(s.MALFORMED_ARGUMENT,R(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(s.EXPECT_ARGUMENT_CLOSING_BRACE,R(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:f.argument,value:i,location:R(r,this.clonePosition())},err:null};case 44:if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(s.EXPECT_ARGUMENT_CLOSING_BRACE,R(r,this.clonePosition()));return this.parseArgumentOptions(e,n,i,r);default:return this.error(s.MALFORMED_ARGUMENT,R(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),n=this.offset(),r=c(this.message,n),i=n+r.length;return this.bumpTo(i),{value:r,location:R(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,n,r,i){var a,o=this.clonePosition(),u=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(u){case"":return this.error(s.EXPECT_ARGUMENT_TYPE,R(o,c));case"number":case"date":case"time":this.bumpSpace();var p=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition(),y=this.parseSimpleArgStyleIfPossible();if(y.err)return y;var m=J(y.val);if(0===m.length)return this.error(s.EXPECT_ARGUMENT_STYLE,R(this.clonePosition(),this.clonePosition()));p={style:m,styleLocation:R(h,this.clonePosition())}}var g=this.tryParseArgumentClose(i);if(g.err)return g;var b=R(i,this.clonePosition());if(p&&Y(null==p?void 0:p.style,"::",0)){var v,w=$(p.style.slice(2));if("number"===u){var y=this.parseNumberSkeletonFromString(w,p.styleLocation);if(y.err)return y;return{val:{type:f.number,value:r,location:b,style:y.val},err:null}}if(0===w.length)return this.error(s.EXPECT_DATE_TIME_SKELETON,b);var x=w;this.locale&&(x=function(e,n){for(var r="",i=0;i<e.length;i++){var a=e.charAt(i);if("j"===a){for(var o=0;i+1<e.length&&e.charAt(i+1)===a;)o++,i++;var s=1+(1&o),f=o<2?1:3+(o>>1),l=function(e){var n,r=e.hourCycle;if(void 0===r&&e.hourCycles&&e.hourCycles.length&&(r=e.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw Error("Invalid hourCycle")}var i=e.language;return"root"!==i&&(n=e.maximize().region),(O[n||""]||O[i||""]||O["".concat(i,"-001")]||O["001"])[0]}(n);for(("H"==l||"k"==l)&&(f=0);f-- >0;)r+="a";for(;s-- >0;)r=l+r}else"J"===a?r+="H":r+=a}return r}(w,this.locale));var m={type:l.dateTime,pattern:x,location:p.styleLocation,parsedOptions:this.shouldParseSkeletons?(v={},x.replace(A,function(e){var n=e.length;switch(e[0]){case"G":v.era=4===n?"long":5===n?"narrow":"short";break;case"y":v.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":v.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw RangeError("`w/W` (week) patterns are not supported");case"d":v.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":v.weekday=4===n?"long":5===n?"narrow":"short";break;case"e":if(n<4)throw RangeError("`e..eee` (weekday) patterns are not supported");v.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");v.weekday=["short","long","narrow","short"][n-4];break;case"a":v.hour12=!0;break;case"b":case"B":throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":v.hourCycle="h12",v.hour=["numeric","2-digit"][n-1];break;case"H":v.hourCycle="h23",v.hour=["numeric","2-digit"][n-1];break;case"K":v.hourCycle="h11",v.hour=["numeric","2-digit"][n-1];break;case"k":v.hourCycle="h24",v.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":v.minute=["numeric","2-digit"][n-1];break;case"s":v.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":v.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),v):{}};return{val:{type:"date"===u?f.date:f.time,value:r,location:b,style:m},err:null}}return{val:{type:"number"===u?f.number:"date"===u?f.date:f.time,value:r,location:b,style:null!==(a=null==p?void 0:p.style)&&void 0!==a?a:null},err:null};
370case"plural":case"selectordinal":case"select":var T=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(s.EXPECT_SELECT_ARGUMENT_OPTIONS,R(T,(0,d.pi)({},T)));this.bumpSpace();var C=this.parseIdentifierIfPossible(),M=0;if("select"!==u&&"offset"===C.value){if(!this.bumpIf(":"))return this.error(s.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,R(this.clonePosition(),this.clonePosition()));this.bumpSpace();var y=this.tryParseDecimalInteger(s.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,s.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(y.err)return y;this.bumpSpace(),C=this.parseIdentifierIfPossible(),M=y.val}var E=this.tryParsePluralOrSelectOptions(e,u,n,C);if(E.err)return E;var g=this.tryParseArgumentClose(i);if(g.err)return g;var I=R(i,this.clonePosition());if("select"===u)return{val:{type:f.select,value:r,options:Q(E.val),location:I},err:null};return{val:{type:f.plural,value:r,options:Q(E.val),offset:M,pluralType:"plural"===u?"cardinal":"ordinal",location:I},err:null};default:return this.error(s.INVALID_ARGUMENT_TYPE,R(o,c))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(s.EXPECT_ARGUMENT_CLOSING_BRACE,R(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,n=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(s.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,R(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(n.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,n){var r=[];try{r=function(e){if(0===e.length)throw Error("Number skeleton cannot be empty");for(var n=e.split(E).filter(function(e){return e.length>0}),r=[],i=0;i<n.length;i++){var a=n[i].split("/");if(0===a.length)throw Error("Invalid number skeleton");for(var o=a[0],s=a.slice(1),f=0;f<s.length;f++)if(0===s[f].length)throw Error("Invalid number skeleton");r.push({stem:o,options:s})}return r}(e)}catch(e){return this.error(s.INVALID_NUMBER_SKELETON,n)}return{val:{type:l.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?function(e){for(var n={},r=0;r<e.length;r++){var i=e[r];switch(i.stem){case"percent":case"%":n.style="percent";continue;case"%x100":n.style="percent",n.scale=100;continue;case"currency":n.style="currency",n.currency=i.options[0];continue;case"group-off":case",_":n.useGrouping=!1;continue;case"precision-integer":case".":n.maximumFractionDigits=0;continue;case"measure-unit":case"unit":n.style="unit",n.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":n.notation="compact",n.compactDisplay="short";continue;case"compact-long":case"KK":n.notation="compact",n.compactDisplay="long";continue;case"scientific":n=(0,d.pi)((0,d.pi)((0,d.pi)({},n),{notation:"scientific"}),i.options.reduce(function(e,n){return(0,d.pi)((0,d.pi)({},e),D(n)||{})},{}));continue;case"engineering":n=(0,d.pi)((0,d.pi)((0,d.pi)({},n),{notation:"engineering"}),i.options.reduce(function(e,n){return(0,d.pi)((0,d.pi)({},e),D(n)||{})},{}));continue;case"notation-simple":n.notation="standard";continue;case"unit-width-narrow":n.currencyDisplay="narrowSymbol",n.unitDisplay="narrow";continue;case"unit-width-short":n.currencyDisplay="code",n.unitDisplay="short";continue;case"unit-width-full-name":n.currencyDisplay="name",n.unitDisplay="long";continue;case"unit-width-iso-code":n.currencyDisplay="symbol";continue;case"scale":n.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":n.roundingMode="floor";continue;case"rounding-mode-ceiling":n.roundingMode="ceil";continue;case"rounding-mode-down":n.roundingMode="trunc";continue;case"rounding-mode-up":n.roundingMode="expand";continue;case"rounding-mode-half-even":n.roundingMode="halfEven";continue;case"rounding-mode-half-down":n.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":n.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw RangeError("integer-width stems only accept a single optional option");
370i.options[0].replace(k,function(e,r,i,a,o,s){if(r)n.minimumIntegerDigits=i.length;else if(a&&o)throw Error("We currently do not support maximum integer digits");else if(s)throw Error("We currently do not support exact integer digits");return""});continue}if(N.test(i.stem)){n.minimumIntegerDigits=i.stem.length;continue}if(I.test(i.stem)){if(i.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(I,function(e,r,i,a,o,s){return"*"===i?n.minimumFractionDigits=r.length:a&&"#"===a[0]?n.maximumFractionDigits=a.length:o&&s?(n.minimumFractionDigits=o.length,n.maximumFractionDigits=o.length+s.length):(n.minimumFractionDigits=r.length,n.maximumFractionDigits=r.length),""});var a=i.options[0];"w"===a?n=(0,d.pi)((0,d.pi)({},n),{trailingZeroDisplay:"stripIfInteger"}):a&&(n=(0,d.pi)((0,d.pi)({},n),j(a)));continue}if(S.test(i.stem)){n=(0,d.pi)((0,d.pi)({},n),j(i.stem));continue}var o=D(i.stem);o&&(n=(0,d.pi)((0,d.pi)({},n),o));var s=function(e){var n;if("E"===e[0]&&"E"===e[1]?(n={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(n={notation:"scientific"},e=e.slice(1)),n){var r=e.slice(0,2);if("+!"===r?(n.signDisplay="always",e=e.slice(2)):"+?"===r&&(n.signDisplay="exceptZero",e=e.slice(2)),!N.test(e))throw Error("Malformed concise eng/scientific notation");n.minimumIntegerDigits=e.length}return n}(i.stem);s&&(n=(0,d.pi)((0,d.pi)({},n),s))}return n}(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,n,r,i){for(var a,o=!1,f=[],l=new Set,u=i.value,c=i.location;;){if(0===u.length){var d=this.clonePosition();if("select"!==n&&this.bumpIf("=")){var p=this.tryParseDecimalInteger(s.EXPECT_PLURAL_ARGUMENT_SELECTOR,s.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;c=R(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(l.has(u))return this.error("select"===n?s.DUPLICATE_SELECT_ARGUMENT_SELECTOR:s.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===u&&(o=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===n?s.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:s.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,R(this.clonePosition(),this.clonePosition()));var y=this.parseMessage(e+1,n,r);if(y.err)return y;var m=this.tryParseArgumentClose(h);if(m.err)return m;f.push([u,{value:y.val,location:R(h,this.clonePosition())}]),l.add(u),this.bumpSpace(),u=(a=this.parseIdentifierIfPossible()).value,c=a.location}return 0===f.length?this.error("select"===n?s.EXPECT_SELECT_ARGUMENT_SELECTOR:s.EXPECT_PLURAL_ARGUMENT_SELECTOR,R(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(s.MISSING_OTHER_CLAUSE,R(this.clonePosition(),this.clonePosition())):{val:f,err:null}},e.prototype.tryParseDecimalInteger=function(e,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var a=!1,o=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)a=!0,o=10*o+(s-48),this.bump();else break}var f=R(i,this.clonePosition());return a?H(o*=r)?{val:o,err:null}:this.error(n,f):this.error(e,f)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var n=K(this.message,e);if(void 0===n)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(e,n){return{val:null,err:{kind:e,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(Y(this.message,e,this.offset())){for(var n=0;n<e.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var n=this.offset(),r=this.message.indexOf(e,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var n=this.offset();if(n===e)break;if(n>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&er(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(e>=65536?2:1));return null!=r?r:null},e}();function en(e){return e>=97&&e<=122||e>=65&&e<=90}function er(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function ei(e,n){void 0===n&&(n={});var r=new et(e,n=(0,d.pi)({shouldParseSkeletons:!0,requiresOtherClause:!0},n)).parse();if(r.err){var i=SyntaxError(s[r.err.kind]);throw i.location=r.err.location,i.originalMessage=r.err.message,i}return(null==n?void 0:n.captureLocation)||function e(n){n.forEac
370h(function(n){if(delete n.location,b(n)||v(n))for(var r in n.options)delete n.options[r].location,e(n.options[r].value);else y(n)&&T(n.style)?delete n.style.location:(m(n)||g(n))&&C(n.style)?delete n.style.location:x(n)&&e(n.children)})}(r.val),r.val}},91094:function(e,n,r){var i,a=r(34155);!function(){"use strict";var o="input is invalid type",s="object"==typeof window,f=s?window:{};f.JS_SHA3_NO_WINDOW&&(s=!1);var l=!s&&"object"==typeof self;!f.JS_SHA3_NO_NODE_JS&&"object"==typeof a&&a.versions&&a.versions.node?f=r.g:l&&(f=self);var u=!f.JS_SHA3_NO_COMMON_JS&&e.exports,c=r.amdO,d=!f.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,p="0123456789abcdef".split(""),h=[4,1024,262144,67108864],y=[0,8,16,24],m=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],g=[224,256,384,512],b=[128,256],v=["hex","buffer","arrayBuffer","array","digest"],w={128:168,256:136};(f.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),d&&(f.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var x=function(e,n,r){return function(i){return new L(e,n,e).update(i)[r]()}},T=function(e,n,r){return function(i,a){return new L(e,n,a).update(i)[r]()}},C=function(e,n,r){return function(n,i,a,o){return S["cshake"+e].update(n,i,a,o)[r]()}},M=function(e,n,r){return function(n,i,a,o){return S["kmac"+e].update(n,i,a,o)[r]()}},A=function(e,n,r,i){for(var a=0;a<v.length;++a){var o=v[a];e[o]=n(r,i,o)}return e},E=function(e,n){var r=x(e,n,"hex");return r.create=function(){return new L(e,n,e)},r.update=function(e){return r.create().update(e)},A(r,x,e,n)},I=[{name:"keccak",padding:[1,256,65536,16777216],bits:g,createMethod:E},{name:"sha3",padding:[6,1536,393216,100663296],bits:g,createMethod:E},{name:"shake",padding:[31,7936,2031616,520093696],bits:b,createMethod:function(e,n){var r=T(e,n,"hex");return r.create=function(r){return new L(e,n,r)},r.update=function(e,n){return r.create(n).update(e)},A(r,T,e,n)}},{name:"cshake",padding:h,bits:b,createMethod:function(e,n){var r=w[e],i=C(e,n,"hex");return i.create=function(i,a,o){return a||o?new L(e,n,i).bytepad([a,o],r):S["shake"+e].create(i)},i.update=function(e,n,r,a){return i.create(n,r,a).update(e)},A(i,C,e,n)}},{name:"kmac",padding:h,bits:b,createMethod:function(e,n){var r=w[e],i=M(e,n,"hex");return i.create=function(i,a,o){return new R(e,n,a).bytepad(["KMAC",o],r).bytepad([i],r)},i.update=function(e,n,r,a){return i.create(e,r,a).update(n)},A(i,M,e,n)}}],S={},k=[],N=0;N<I.length;++N)for(var j=I[N],D=j.bits,_=0;_<D.length;++_){var O=j.name+"_"+D[_];if(k.push(O),S[O]=j.createMethod(D[_],j.padding),"sha3"!==j.name){var P=j.name+D[_];k.push(P),S[P]=S[O]}}function L(e,n,r){this.blocks=[],this.s=[],this.padding=n,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var i=0;i<50;++i)this.s[i]=0}function R(e,n,r){L.call(this,e,n,r)}L.prototype.update=function(e){if(this.finalized)throw Error("finalize already called");var n,r=typeof e;if("string"!==r){if("object"===r){if(null===e)throw Error(o);if(d&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!d||!ArrayBuffer.isView(e)))throw Error(o)}else throw Error(o);n=!0}for(var i,a,s=this.blocks,f=this.byteCount,l=e.length,u=this.blockCount,c=0,p=this.s;c<l;){if(this.reset)for(i=1,this.reset=!1,s[0]=this.block;i<u+1;++i)s[i]=0;if(n)for(i=this.start;c<l&&i<f;++c)s[i>>2]|=e[c]<<y[3&i++];else for(i=this.start;c<l&&i<f;++c)(a=e.charCodeAt(c))<128?s[i>>2]|=a<<y[3&i++]:(a<2048?s[i>>2]|=(192|a>>6)<<y[3&i++]:(a<55296||a>=57344?s[i>>2]|=(224|a>>12)<<y[3&i++]:(a=65536+((1023&a)<<10|1023&e.charCodeAt(++c)),s[i>>2]|=(240|a>>18)<<y[3&i++],s[i>>2]|=(128|a>>12&63)<<y[3&i++]),s[i>>2]|=(128|a>>6&63)<<y[3&i++]),s[i>>2]|=(128|63&a)<<y[3&i++]);if(this.lastByteIndex=i,i>=f){for(this.start=i-f,this.block=s[u],i=0;i<u;++i)p[i]^=s[i];z(p),this.reset=!0}else this.start=i}return this},L.prototype.encode=function(e,n){var r=255&e,i=1,a=[r];for(e>>=8,r=255&e;r>0;)a.unshift(r),e>>=8,r=255&e,++i;return n?a.push(i):a.unshift(i),this.update(a),a.length},L.prototype.encodeString=function(e){var n,r=typeof e;if("string"!==r){if("object"===r){if(null===e)throw Error(o);
370if(d&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!d||!ArrayBuffer.isView(e)))throw Error(o)}else throw Error(o);n=!0}var i=0,a=e.length;if(n)i=a;else for(var s=0;s<e.length;++s){var f=e.charCodeAt(s);f<128?i+=1:f<2048?i+=2:f<55296||f>=57344?i+=3:(f=65536+((1023&f)<<10|1023&e.charCodeAt(++s)),i+=4)}return i+=this.encode(8*i),this.update(e),i},L.prototype.bytepad=function(e,n){for(var r=this.encode(n),i=0;i<e.length;++i)r+=this.encodeString(e[i]);var a=n-r%n,o=[];return o.length=a,this.update(o),this},L.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,n=this.lastByteIndex,r=this.blockCount,i=this.s;if(e[n>>2]|=this.padding[3&n],this.lastByteIndex===this.byteCount)for(n=1,e[0]=e[r];n<r+1;++n)e[n]=0;for(e[r-1]|=2147483648,n=0;n<r;++n)i[n]^=e[n];z(i)}},L.prototype.toString=L.prototype.hex=function(){this.finalize();for(var e,n=this.blockCount,r=this.s,i=this.outputBlocks,a=this.extraBytes,o=0,s=0,f="";s<i;){for(o=0;o<n&&s<i;++o,++s)f+=p[(e=r[o])>>4&15]+p[15&e]+p[e>>12&15]+p[e>>8&15]+p[e>>20&15]+p[e>>16&15]+p[e>>28&15]+p[e>>24&15];s%n==0&&(z(r),o=0)}return a&&(f+=p[(e=r[o])>>4&15]+p[15&e],a>1&&(f+=p[e>>12&15]+p[e>>8&15]),a>2&&(f+=p[e>>20&15]+p[e>>16&15])),f},L.prototype.arrayBuffer=function(){this.finalize();for(var e,n=this.blockCount,r=this.s,i=this.outputBlocks,a=this.extraBytes,o=0,s=0,f=this.outputBits>>3,l=new Uint32Array(e=new ArrayBuffer(a?i+1<<2:f));s<i;){for(o=0;o<n&&s<i;++o,++s)l[s]=r[o];s%n==0&&z(r)}return a&&(l[o]=r[o],e=e.slice(0,f)),e},L.prototype.buffer=L.prototype.arrayBuffer,L.prototype.digest=L.prototype.array=function(){this.finalize();for(var e,n,r=this.blockCount,i=this.s,a=this.outputBlocks,o=this.extraBytes,s=0,f=0,l=[];f<a;){for(s=0;s<r&&f<a;++s,++f)e=f<<2,n=i[s],l[e]=255&n,l[e+1]=n>>8&255,l[e+2]=n>>16&255,l[e+3]=n>>24&255;f%r==0&&z(i)}return o&&(e=f<<2,n=i[s],l[e]=255&n,o>1&&(l[e+1]=n>>8&255),o>2&&(l[e+2]=n>>16&255)),l},R.prototype=new L,R.prototype.finalize=function(){return this.encode(this.outputBits,!0),L.prototype.finalize.call(this)};var z=function(e){var n,r,i,a,o,s,f,l,u,c,d,p,h,y,g,b,v,w,x,T,C,M,A,E,I,S,k,N,j,D,_,O,P,L,R,z,B,U,F,Z,W,H,G,q,Y,V,Q,K,$,J,X,ee,et,en,er,ei,ea,eo,es,ef,el,eu,ec;for(i=0;i<48;i+=2)a=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],s=e[2]^e[12]^e[22]^e[32]^e[42],f=e[3]^e[13]^e[23]^e[33]^e[43],l=e[4]^e[14]^e[24]^e[34]^e[44],u=e[5]^e[15]^e[25]^e[35]^e[45],c=e[6]^e[16]^e[26]^e[36]^e[46],d=e[7]^e[17]^e[27]^e[37]^e[47],p=e[8]^e[18]^e[28]^e[38]^e[48],h=e[9]^e[19]^e[29]^e[39]^e[49],n=p^(s<<1|f>>>31),r=h^(f<<1|s>>>31),e[0]^=n,e[1]^=r,e[10]^=n,e[11]^=r,e[20]^=n,e[21]^=r,e[30]^=n,e[31]^=r,e[40]^=n,e[41]^=r,n=a^(l<<1|u>>>31),r=o^(u<<1|l>>>31),e[2]^=n,e[3]^=r,e[12]^=n,e[13]^=r,e[22]^=n,e[23]^=r,e[32]^=n,e[33]^=r,e[42]^=n,e[43]^=r,n=s^(c<<1|d>>>31),r=f^(d<<1|c>>>31),e[4]^=n,e[5]^=r,e[14]^=n,e[15]^=r,e[24]^=n,e[25]^=r,e[34]^=n,e[35]^=r,e[44]^=n,e[45]^=r,n=l^(p<<1|h>>>31),r=u^(h<<1|p>>>31),e[6]^=n,e[7]^=r,e[16]^=n,e[17]^=r,e[26]^=n,e[27]^=r,e[36]^=n,e[37]^=r,e[46]^=n,e[47]^=r,n=c^(a<<1|o>>>31),r=d^(o<<1|a>>>31),e[8]^=n,e[9]^=r,e[18]^=n,e[19]^=r,e[28]^=n,e[29]^=r,e[38]^=n,e[39]^=r,e[48]^=n,e[49]^=r,y=e[0],g=e[1],V=e[11]<<4|e[10]>>>28,Q=e[10]<<4|e[11]>>>28,N=e[20]<<3|e[21]>>>29,j=e[21]<<3|e[20]>>>29,ef=e[31]<<9|e[30]>>>23,el=e[30]<<9|e[31]>>>23,H=e[40]<<18|e[41]>>>14,G=e[41]<<18|e[40]>>>14,L=e[2]<<1|e[3]>>>31,R=e[3]<<1|e[2]>>>31,b=e[13]<<12|e[12]>>>20,v=e[12]<<12|e[13]>>>20,K=e[22]<<10|e[23]>>>22,$=e[23]<<10|e[22]>>>22,D=e[33]<<13|e[32]>>>19,_=e[32]<<13|e[33]>>>19,eu=e[42]<<2|e[43]>>>30,ec=e[43]<<2|e[42]>>>30,en=e[5]<<30|e[4]>>>2,er=e[4]<<30|e[5]>>>2,z=e[14]<<6|e[15]>>>26,B=e[15]<<6|e[14]>>>26,w=e[25]<<11|e[24]>>>21,x=e[24]<<11|e[25]>>>21,J=e[34]<<15|e[35]>>>17,X=e[35]<<15|e[34]>>>17,O=e[45]<<29|e[44]>>>3,P=e[44]<<29|e[45]>>>3,E=e[6]<<28|e[7]>>>4,I=e[7]<<28|e[6]>>>4,ei=e[17]<<23|e[16]>>>9,ea=e[16]<<23|e[17]>>>9,U=e[26]<<25|e[27]>>>7,F=e[27]<<25|e[26]>>>7,T=e[36]<<21|e[37]>>>11,C=e[37]<<21|e[36]>>>11,ee=e[47]<<24|e[46]>>>8,et=e[46]<<24|e[47]>>>8,q=e[8]<<27|e[9]>>>5,Y=e[9]<<27|e[8]>>>5,S=e[18]<<20|e[19]>>>12,k=e[19]<<20|e[18]>>>12,eo=e[29]<<7|e[28]>>>25,es=e[28]<<7|e[29]>>>25,Z=e[38]<<8|e[39]>>>24,W=e[39]<<8|e[38]>>>24,M=e[48]<<14|e[49]>>>18,A=e[49]<<14|e[48]>>>18,e[0]=y^~b&w,e[1]=g^~v&x,e[10]=E^~S&N,e[11]=I^~k&j,e[20]=L^~z&U,e[21]=R^~B&F,e[30]=q^~V&K,e[31]=Y^~Q&$,e[40]=en^~ei&eo,e[41]=er^~ea&es,e[2]=b^~w&T,e[3]=v^~x&C,e[12]=S^~N&D,e[13]=k^~j&_,e[22]=z^~U&Z,e[23]=B^~F&W,e[32]=V^~K&J,e[33]=Q^~$&X,e[42]=ei^~eo&ef,e[43]=ea^~es&el,e[4]=w^~T&M,e[5]=x^~C&A,e[14]=N^~D&O,e[15]=j^~_&P,e[24]=U^~Z&H,e[25]=F^~W&G,e[34]=K^~J&ee,e[35]=$^~X&et,e[44]=eo^~ef&eu,e[45]=es^~el&ec,e[6]=T^~M&y,e[7]=C^~A&g,e[16]=D^~O&E,e[17]=_^~P&I,e[26]=Z^~H&L,e[27]=W^~G&R,e[36]=J^~ee&q,e[37]=X^~et&Y,e[46]=ef^~eu&en,e[47]=el^~ec&er,e[8]=M^~y&b,e[9]=A^~g&v,e[18]=O^~E&S,e[19]=P^~I&k,e[28]=H^~L&z,e[29]=G^~R&B,e[38]=ee^~q&V,e[39]=et^~Y&Q,e[48]=eu^~en&ei,e[49]=ec^~er&ea,e[0]^=m[i],e[1]^=m[i+1]};if(u)e.exports=S;else{for(N=0;N<k.length;++N)f[k[N]]=S[k[N]];c&&void 0!==(i=(function(){return S}).call(n,r,n,e))&&(e.exports=i)}}()},72307:function(e,n,r){e=r.nmd(e);var i,a,o,s="__lodash_hash_undefined__",f="[object Arguments]",l="[object Array]",u="[object Boolean]",c="[object Date]",d="[object Error]",p="[object Function]",h="[object Map]",y="[object Number]",m="[object Object]",g="[object Promise]",b="[object RegExp]",v="[object Set]",w="[object String]",x="[object WeakMap]",T="[object ArrayBuffer]",C="[object DataView]",M=/^\[object .+?Constructor\]$/,A=/^(?:0|[1-9]\d*)$/,E={};
370E["[object Float32Array]"]=E["[object Float64Array]"]=E["[object Int8Array]"]=E["[object Int16Array]"]=E["[object Int32Array]"]=E["[object Uint8Array]"]=E["[object Uint8ClampedArray]"]=E["[object Uint16Array]"]=E["[object Uint32Array]"]=!0,E[f]=E[l]=E[T]=E[u]=E[C]=E[c]=E[d]=E[p]=E[h]=E[y]=E[m]=E[b]=E[v]=E[w]=E[x]=!1;var I="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,S="object"==typeof self&&self&&self.Object===Object&&self,k=I||S||Function("return this")(),N=n&&!n.nodeType&&n,j=N&&e&&!e.nodeType&&e,D=j&&j.exports===N,_=D&&I.process,O=function(){try{return _&&_.binding&&_.binding("util")}catch(e){}}(),P=O&&O.isTypedArray;function L(e){var n=-1,r=Array(e.size);return e.forEach(function(e,i){r[++n]=[i,e]}),r}function R(e){var n=-1,r=Array(e.size);return e.forEach(function(e){r[++n]=e}),r}var z=Array.prototype,B=Function.prototype,U=Object.prototype,F=k["__core-js_shared__"],Z=B.toString,W=U.hasOwnProperty,H=(i=/[^.]+$/.exec(F&&F.keys&&F.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"",G=U.toString,q=RegExp("^"+Z.call(W).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Y=D?k.Buffer:void 0,V=k.Symbol,Q=k.Uint8Array,K=U.propertyIsEnumerable,$=z.splice,J=V?V.toStringTag:void 0,X=Object.getOwnPropertySymbols,ee=Y?Y.isBuffer:void 0,et=(a=Object.keys,o=Object,function(e){return a(o(e))}),en=eE(k,"DataView"),er=eE(k,"Map"),ei=eE(k,"Promise"),ea=eE(k,"Set"),eo=eE(k,"WeakMap"),es=eE(Object,"create"),ef=ek(en),el=ek(er),eu=ek(ei),ec=ek(ea),ed=ek(eo),ep=V?V.prototype:void 0,eh=ep?ep.valueOf:void 0;function ey(e){var n=-1,r=null==e?0:e.length;for(this.clear();++n<r;){var i=e[n];this.set(i[0],i[1])}}function em(e){var n=-1,r=null==e?0:e.length;for(this.clear();++n<r;){var i=e[n];this.set(i[0],i[1])}}function eg(e){var n=-1,r=null==e?0:e.length;for(this.clear();++n<r;){var i=e[n];this.set(i[0],i[1])}}function eb(e){var n=-1,r=null==e?0:e.length;for(this.__data__=new eg;++n<r;)this.add(e[n])}function ev(e){var n=this.__data__=new em(e);this.size=n.size}function ew(e,n){for(var r=e.length;r--;)if(eN(e[r][0],n))return r;return -1}function ex(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":J&&J in Object(e)?function(e){var n=W.call(e,J),r=e[J];try{e[J]=void 0;var i=!0}catch(e){}var a=G.call(e);return i&&(n?e[J]=r:delete e[J]),a}(e):G.call(e)}function eT(e){return eR(e)&&ex(e)==f}function eC(e,n,r,i,a,o){var s=1&r,f=e.length,l=n.length;if(f!=l&&!(s&&l>f))return!1;var u=o.get(e);if(u&&o.get(n))return u==n;var c=-1,d=!0,p=2&r?new eb:void 0;for(o.set(e,n),o.set(n,e);++c<f;){var h=e[c],y=n[c];if(i)var m=s?i(y,h,c,n,e,o):i(h,y,c,e,n,o);if(void 0!==m){if(m)continue;d=!1;break}if(p){if(!function(e,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(e[r],r,e))return!0;return!1}(n,function(e,n){if(!p.has(n)&&(h===e||a(h,e,r,i,o)))return p.push(n)})){d=!1;break}}else if(!(h===y||a(h,y,r,i,o))){d=!1;break}}return o.delete(e),o.delete(n),d}function eM(e){var n;return n=function(e){return null!=e&&eP(e.length)&&!eO(e)?function(e,n){var r,i=eD(e),a=!i&&ej(e),o=!i&&!a&&e_(e),s=!i&&!a&&!o&&ez(e),f=i||a||o||s,l=f?function(e,n){for(var r=-1,i=Array(e);++r<e;)i[r]=n(r);return i}(e.length,String):[],u=l.length;for(var c in e)W.call(e,c)&&!(f&&("length"==c||o&&("offset"==c||"parent"==c)||s&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||(r=null==(r=u)?9007199254740991:r)&&("number"==typeof c||A.test(c))&&c>-1&&c%1==0&&c<r))&&l.push(c);return l}(e):function(e){if(n=e&&e.constructor,e!==("function"==typeof n&&n.prototype||U))return et(e);var n,r=[];for(var i in Object(e))W.call(e,i)&&"constructor"!=i&&r.push(i);return r}(e)}(e),eD(e)?n:function(e,n){for(var r=-1,i=n.length,a=e.length;++r<i;)e[a+r]=n[r];return e}(n,eI(e))}function eA(e,n){var r,i=e.__data__;return("string"==(r=typeof n)||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof n?"string":"hash"]:i.map}function eE(e,n){var r=null==e?void 0:e[n];return!(!eL(r)||H&&H in r)&&(eO(r)?q:M).test(ek(r))?r:void 0}ey.prototype.clear=function(){this.__data__=es?es(null):{},this.size=0},ey.prototype.delete=function(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n},ey.prototype.get=function(e){var n=this.__data__;if(es){var r=n[e];return r===s?void 0:r}return W.call(n,e)?n[e]:void 0},ey.prototype.has=function(e){var n=this.__data__;return es?void 0!==n[e]:W.call(n,e)},ey.prototype.set=function(e,n){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=es&&void 0===n?s:n,this},em.prototype.clear=function(){this.__data__=[],this.size=0},em.prototype.delete=function(e){var n=this.__data__,r=ew(n,e);return!(r<0)&&(r==n.length-1?n.pop():$.call(n,r,1),--this.size,!0)},em.prototype.get=function(e){var n=this.__data__,r=ew(n,e);return r<0?void 0:n[r][1]},em.prototype.has=function(e){return ew(this.__data__,e)>-1},em.prototype.set=function(e,n){var r=this.__data__,i=ew(r,e);return i<0?(++this.size,r.push([e,n])):r[i][1]=n,this},eg.prototype.clear=function(){this.size=0,this.__data__={hash:new ey,map:new(er||em),string:new ey}},eg.prototype.delete=function(e){var n=eA(this,e).delete(e);return this.size-=n?1:0,n},eg.prototype.get=function(e){return eA(this,e).get(e)},eg.prototype.has=function(e){return eA(this,e).has(e)},eg.prototype.set=function(e,n){var r=eA(this,e),i=r.size;return r.set(e,n),this.size+=r.size==i?0:1,this},eb.prototype.add=eb.prototype.push=function(e){return this.__data__.set(e,s),this},eb.prototype.has=function(e){return this.__data__.has(e)},ev.prototype.clear=function(){this.__data__=new em,this.size=0},ev.prototype.delete=function(e){var n=this.__data__,r=n.delete(e);return this.size=n.size,r},ev.prototype.get=function(e){return this.__data__.get(e)},ev.prototype.has=function(e){return this.__data__.has(e)},ev.prototype.set=function(e,n){var r=this.__data__;if(r instanceof em){var i=r.__data__;if(!er||i.length<199)return i.push([e,n]),this.size=++r.size,this;r=this.__data__=new eg(i)}return r.set(e,n),this.size=r.size,this};var eI=X?function(e){return null==e?[]:function(e,n){for(var r=-1,i=null==e?0:e.length,a=0,o=[];++r<i;){var s=e[r];n(s,r,e)&&(o[a++]=s)}return o}(X(e=Object(e)),function(n){return K.call(e,n)})}:function(){return[]},eS=ex;function ek(e){if(null!=e){try{return Z.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function eN(e,n){return e===n||e!=e&&n!=n}
370(en&&eS(new en(new ArrayBuffer(1)))!=C||er&&eS(new er)!=h||ei&&eS(ei.resolve())!=g||ea&&eS(new ea)!=v||eo&&eS(new eo)!=x)&&(eS=function(e){var n=ex(e),r=n==m?e.constructor:void 0,i=r?ek(r):"";if(i)switch(i){case ef:return C;case el:return h;case eu:return g;case ec:return v;case ed:return x}return n});var ej=eT(function(){return arguments}())?eT:function(e){return eR(e)&&W.call(e,"callee")&&!K.call(e,"callee")},eD=Array.isArray,e_=ee||function(){return!1};function eO(e){if(!eL(e))return!1;var n=ex(e);return n==p||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}function eP(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function eL(e){var n=typeof e;return null!=e&&("object"==n||"function"==n)}function eR(e){return null!=e&&"object"==typeof e}var ez=P?function(e){return P(e)}:function(e){return eR(e)&&eP(e.length)&&!!E[ex(e)]};e.exports=function(e,n){return function e(n,r,i,a,o){return n===r||(null!=n&&null!=r&&(eR(n)||eR(r))?function(e,n,r,i,a,o){var s=eD(e),p=eD(n),g=s?l:eS(e),x=p?l:eS(n);g=g==f?m:g,x=x==f?m:x;var M=g==m,A=x==m,E=g==x;if(E&&e_(e)){if(!e_(n))return!1;s=!0,M=!1}if(E&&!M)return o||(o=new ev),s||ez(e)?eC(e,n,r,i,a,o):function(e,n,r,i,a,o,s){switch(r){case C:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)break;e=e.buffer,n=n.buffer;case T:if(e.byteLength!=n.byteLength||!o(new Q(e),new Q(n)))break;return!0;case u:case c:case y:return eN(+e,+n);case d:return e.name==n.name&&e.message==n.message;case b:case w:return e==n+"";case h:var f=L;case v:var l=1&i;if(f||(f=R),e.size!=n.size&&!l)break;var p=s.get(e);if(p)return p==n;i|=2,s.set(e,n);var m=eC(f(e),f(n),i,a,o,s);return s.delete(e),m;case"[object Symbol]":if(eh)return eh.call(e)==eh.call(n)}return!1}(e,n,g,r,i,a,o);if(!(1&r)){var I=M&&W.call(e,"__wrapped__"),S=A&&W.call(n,"__wrapped__");
370if(I||S){var k=I?e.value():e,N=S?n.value():n;return o||(o=new ev),a(k,N,r,i,o)}}return!!E&&(o||(o=new ev),function(e,n,r,i,a,o){var s=1&r,f=eM(e),l=f.length;if(l!=eM(n).length&&!s)return!1;for(var u=l;u--;){var c=f[u];if(!(s?c in n:W.call(n,c)))return!1}var d=o.get(e);if(d&&o.get(n))return d==n;var p=!0;o.set(e,n),o.set(n,e);for(var h=s;++u<l;){var y=e[c=f[u]],m=n[c];if(i)var g=s?i(m,y,c,n,e,o):i(y,m,c,e,n,o);if(!(void 0===g?y===m||a(y,m,r,i,o):g)){p=!1;break}h||(h="constructor"==c)}if(p&&!h){var b=e.constructor,v=n.constructor;b!=v&&"constructor"in e&&"constructor"in n&&!("function"==typeof b&&b instanceof b&&"function"==typeof v&&v instanceof v)&&(p=!1)}return o.delete(e),o.delete(n),p}(e,n,r,i,a,o))}(n,r,i,a,e,o):n!=n&&r!=r)}(e,n)}},90233:function(e,n,r){"use strict";r.d(n,{Lu:function(){return f}});var i=r(76826),a=r.n(i);/** 371 * @name match-sorter 372 * @license MIT license. 373 * @copyright (c) 2020 Kent C. Dodds 374 * @author Kent C. Dodds <[email protected]> (https://kentcdodds.com) 375 */let o={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0},s=(e,n)=>String(e.rankedValue).localeCompare(String(n.rankedValue));function f(e,n,r){void 0===r&&(r={});let{keys:i,threshold:a=o.MATCHES,baseSort:f=s,sorter:u=e=>e.sort((e,n)=>(function(e,n,r){let{rank:i,keyIndex:a}=e,{rank:o,keyIndex:s}=n;return i!==o?i>o?-1:1:a===s?r(e,n):a<s?-1:1})(e,n,f))}=r;return u(e.reduce(function(e,s,f){var u;let d=(u=r,i?(function(e,n){let r=[];for(let i=0,a=n.length;i<a;i++){let a=n[i],o="string"==typeof a?c:{...c,...a},s=function(e,n){let r;if("object"==typeof n&&(n=n.key),"function"==typeof n)r=n(e);else if(null==e)r=null;else if(Object.hasOwnProperty.call(e,n))r=e[n];else{if(n.includes("."))return function(e,n){let r=e.split("."),i=[n];for(let e=0,n=r.length;e<n;e++){let n=r[e],a=[];for(let e=0,r=i.length;e<r;e++){let r=i[e];if(null!=r){if(Object.hasOwnProperty.call(r,n)){let e=r[n];null!=e&&a.push(e)}else"*"===n&&(a=a.concat(r))}}i=a}return Array.isArray(i[0])?[].concat(...i):i}(n,e);r=null}return null==r?[]:Array.isArray(r)?r:[String(r)]}(e,a);for(let e=0,n=s.length;e<n;e++)r.push({itemValue:s[e],attributes:o})}return r})(s,i).reduce((e,r,i)=>{let{rank:a,rankedValue:s,keyIndex:f,keyThreshold:c}=e,{itemValue:d,attributes:p}=r,h=l(d,n,u),y=s,{minRanking:m,maxRanking:g,threshold:b}=p;return h<m&&h>=o.MATCHES?h=m:h>g&&(h=g),h>a&&(a=h,f=i,c=b,y=d),{rankedValue:y,rank:a,keyIndex:f,keyThreshold:c}},{rankedValue:s,rank:o.NO_MATCH,keyIndex:-1,keyThreshold:u.threshold}):{rankedValue:s,rank:l(s,n,u),keyIndex:-1,keyThreshold:u.threshold}),{rank:p,keyThreshold:h=a}=d;return p>=h&&e.push({...d,item:s,index:f}),e},[])).map(e=>{let{item:n}=e;return n})}function l(e,n,r){let i;return(e=u(e,r),(n=u(n,r)).length>e.length)?o.NO_MATCH:e===n?o.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase())===(n=n.toLowerCase())?o.EQUAL:e.startsWith(n)?o.STARTS_WITH:e.includes(` ${n}`)?o.WORD_STARTS_WITH:e.includes(n)?o.CONTAINS:1===n.length?o.NO_MATCH:(i="",e.split(" ").forEach(e=>{e.split("-").forEach(e=>{i+=e.substr(0,1)})}),i).includes(n)?o.ACRONYM:function(e,n){let r=0,i=0;function a(e,n,i){for(let a=i,o=n.length;a<o;a++)if(n[a]===e)return r+=1,a+1;return -1}let s=a(n[0],e,0);if(s<0)return o.NO_MATCH;i=s;for(let r=1,s=n.length;r<s;r++)if(!((i=a(n[r],e,i))>-1))return o.NO_MATCH;return function(e){let i=r/n.length;return o.MATCHES+1/e*i}(i-s)}(e,n)}function u(e,n){let{keepDiacritics:r}=n;return e=`${e}`,r||(e=a()(e)),e}f.rankings=o;let c={maxRanking:1/0,minRanking:-1/0}},29146:function(e){"use strict";function n(){this._types=Object.create(null),this._extensions=Object.create(null);for(let e=0;e<arguments.length;e++)this.define(arguments[e]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}n.prototype.define=function(e,n){for(let r in e){let i=e[r].map(function(e){return e.toLowerCase()});r=r.toLowerCase();for(let e=0;e<i.length;e++){let a=i[e];if("*"!==a[0]){if(!n&&a in this._types)throw Error('Attempt to change mapping for "'+a+'" extension from "'+this._types[a]+'" to "'+r+'". Pass `force=true` to allow this, otherwise remove "'+a+'" from the list of extensions for "'+r+'".');this._types[a]=r}}if(n||!this._extensions[r]){let e=i[0];this._extensions[r]="*"!==e[0]?e:e.substr(1)}}},n.prototype.getType=function(e){let n=(e=String(e)).replace(/^.*[/\\]/,"").toLowerCase(),r=n.replace(/^.*\./,"").toLowerCase(),i=n.length<e.length;return(r.length<n.length-1||!i)&&this._types[r]||null},n.prototype.getExtension=function(e){return(e=/^\s*([^;\s]*)/.test(e)&&RegExp.$1)&&this._extensions[e.toLowerCase()]||null},e.exports=n},12109:function(e,n,r){"use strict";let i=r(29146);e.exports=new i(r(94415))},94415:function(e)
vendor: 9,525 bytes, line 375
375{e.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},
37579746:function(e){function n(e,n){if(!e)throw Error(n||"Assertion failed")}e.exports=n,n.equal=function(e,n,r){if(e!=n)throw Error(r||"Assertion failed: "+e+" != "+n)}},80556:function(e,n,r){"use strict";let{encodeText:i}=r(82413);class a{constructor(e,n,r,a){this.name=e,this.code=n,this.codeBuf=i(this.code),this.alphabet=a,this.codec=r(a)}encode(e){return this.codec.encode(e)}decode(e){for(let n of e)if(this.alphabet&&0>this.alphabet.indexOf(n))throw Error(`invalid character '${n}' in '${e}'`);return this.codec.decode(e)}}e.exports=a},25077:function(e,n,r){"use strict";let i=r(28820),a=r(80556),{rfc4648:o}=r(36727),{decodeText:s,encodeText:f}=r(82413),l=[["identity","\0",()=>({encode:s,decode:f}),""],["base2","0",o(1),"01"],["base8","7",o(3),"01234567"],["base10","9",i,"0123456789"],["base16","f",o(4),"0123456789abcdef"],["base16upper","F",o(4),"0123456789ABCDEF"],["base32hex","v",o(5),"0123456789abcdefghijklmnopqrstuv"],["base32hexupper","V",o(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV"],["base32hexpad","t",o(5),"0123456789abcdefghijklmnopqrstuv="],["base32hexpadupper","T",o(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV="],["base32","b",o(5),"abcdefghijklmnopqrstuvwxyz234567"],["base32upper","B",o(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"],["base32pad","c",o(5),"abcdefghijklmnopqrstuvwxyz234567="],["base32padupper","C",o(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567="],["base32z","h",o(5),"ybndrfg8ejkmcpqxot1uwisza345h769"],["base36","k",i,"0123456789abcdefghijklmnopqrstuvwxyz"],["base36upper","K",i,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"],["base58btc","z",i,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base58flickr","Z",i,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base64","m",o(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",o(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",o(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",o(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],u=l.reduce((e,n)=>(e[n[0]]=new a(n[0],n[1],n[2],n[3]),e),{}),c=l.reduce((e,n)=>(e[n[1]]=u[n[0]],e),{});e.exports={names:u,codes:c}},36957:function(e,n,r){"use strict";let i=r(25077),{encodeText:a,decodeText:o,concat:s}=r(82413);function f(e){if(Object.prototype.hasOwnProperty.call(i.names,e))return i.names[e];if(Object.prototype.hasOwnProperty.call(i.codes,e))return i.codes[e];throw Error(`Unsupported encoding: ${e}`)}(n=e.exports=function(e,n){if(!n)throw Error("requires an encoded Uint8Array");let{name:r,codeBuf:i}=f(e);return function(e,n){f(e).decode(o(n))}(r,n),s([i,n],i.length+n.length)}).encode=function(e,n){let r=f(e),i=a(r.encode(n));return s([r.codeBuf,i],r.codeBuf.length+i.length)},n.decode=function(e){return e instanceof Uint8Array&&(e=o(e)),["f","F","v","V","t","T","b","B","c","C","h","k","K"].includes(e[0])&&(e=e.toLowerCase()),f(e[0]).decode(e.substring(1))},n.isEncoded=function(e){if(e instanceof Uint8Array&&(e=o(e)),"[object String]"!==Object.prototype.toString.call(e))return!1;try{return f(e[0]).name}catch(e){return!1}},n.encoding=f,n.encodingFromData=function(e){return e instanceof Uint8Array&&(e=o(e)),f(e[0])};let l=Object.freeze(i.names),u=Object.freeze(i.codes);n.names=l,n.codes=u},36727:function(e){"use strict";let n=(e,n,r)=>{let i={};for(let e=0;e<n.length;++e)i[n[e]]=e;let a=e.length;for(;"="===e[a-1];)--a;let o=new Uint8Array(a*r/8|0),s=0,f=0,l=0;for(let n=0;n<a;++n){let a=i[e[n]];if(void 0===a)throw SyntaxError("Invalid character "+e[n]);f=f<<r|a,(s+=r)>=8&&(s-=8,o[l++]=255&f>>s)}if(s>=r||255&f<<8-s)throw SyntaxError("Unexpected end of data");return o},r=(e,n,r)=>{let i="="===n[n.length-1],a=(1<<r)-1,o="",s=0,f=0;for(let i=0;i<e.length;++i)for(f=f<<8|e[i],s+=8;s>r;)s-=r,o+=n[a&f>>s];if(s&&(o+=n[a&f<<r-s]),i)for(;o.length*r&7;)o+="=";return o};e.exports={rfc4648:e=>i=>({encode:n=>r(n,i,e),decode:r=>n(r,i,e)})}},82413:function(e){"use strict";let n=new TextDecoder,r=new TextEncoder;e.exports={decodeText:e=>n.decode(e),encodeText:e=>r.encode(e),concat:function(e,n){let r=new Uint8Array(n),i=0;for(let n of e)r.set(n,i),i+=n.length;return r}}},58636:function(e){"use strict";let n=Object.freeze({identity:0,cidv1:1,cidv2:2,cidv3:3,ip4:4,tcp:6,sha1:17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,blake3:30,dccp:33,"murmur3-128":34,"murmur3-32":35,ip6:4
3751,ip6zone:42,path:47,multicodec:48,multihash:49,multiaddr:50,multibase:51,dns:53,dns4:54,dns6:55,dnsaddr:56,protobuf:80,cbor:81,raw:85,"dbl-sha2-256":86,rlp:96,bencode:99,"dag-pb":112,"dag-cbor":113,"libp2p-key":114,"git-raw":120,"torrent-info":123,"torrent-file":124,"leofcoin-block":129,"leofcoin-tx":130,"leofcoin-pr":131,sctp:132,"dag-jose":133,"dag-cose":134,"eth-block":144,"eth-block-list":145,"eth-tx-trie":146,"eth-tx":147,"eth-tx-receipt-trie":148,"eth-tx-receipt":149,"eth-state-trie":150,"eth-account-snapshot":151,"eth-storage-trie":152,"eth-receipt-log-trie":153,"eth-reciept-log":154,"bitcoin-block":176,"bitcoin-tx":177,"bitcoin-witness-commitment":178,"zcash-block":192,"zcash-tx":193,"caip-50":202,streamid:206,"stellar-block":208,"stellar-tx":209,md4:212,md5:213,bmt:214,"decred-block":224,"decred-tx":225,"ipld-ns":226,"ipfs-ns":227,"swarm-ns":228,"ipns-ns":229,zeronet:230,"secp256k1-pub":231,"bls12_381-g1-pub":234,"bls12_381-g2-pub":235,"x25519-pub":236,"ed25519-pub":237,"bls12_381-g1g2-pub":238,"dash-block":240,"dash-tx":241,"swarm-manifest":250,"swarm-feed":251,udp:273,"p2p-webrtc-star":275,"p2p-webrtc-direct":276,"p2p-stardust":277,"p2p-circuit":290,"dag-json":297,udt:301,utp:302,unix:400,thread:406,p2p:421,ipfs:421,https:443,onion:444,onion3:445,garlic64:446,garlic32:447,tls:448,noise:454,quic:460,ws:477,wss:478,"p2p-websocket-star":479,http:480,"swhid-1-snp":496,json:512,messagepack:513,"libp2p-peer-record":769,"libp2p-relay-rsvp":770,"car-index-sorted":1024,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,x11:4352,"p256-pub":4608,"p384-pub":4609,"p521-pub":4610,"ed448-pub":4611,"x448-pub":4612,"ed25519-priv":4864,"secp256k1-priv":4865,"x25519-priv":4866,kangarootwelve:7425,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"
375skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46e3,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082,"zeroxcert-imprint-256":52753,"fil-commitment-unsealed":61697,"fil-commitment-sealed":61698,"holochain-adr-v0":8417572,"holochain-adr-v1":8483108,"holochain-key-v0":9728292,"holochain-key-v1":9793828,"holochain-sig-v0":10645796,"holochain-sig-v1":10711332,"skynet-ns":11639056,"arweave-ns":11704592});e.exports={baseTable:n}},76883:function(e,n,r){"use strict";let i=r(94676),{concat:a}=r(20605),o=r(55945),{nameToVarint:s,constantToCode:f,nameToCode:l,codeToName:u}=r(21843);function c(e){let n=i.decode(e),r=u[n];if(void 0===r)throw Error(`Code "${n}" not found`);return r}function d(e){let n=l[e];if(void 0===n)throw Error(`Codec "${e}" not found`);return n}function p(e){return i.decode(e)}function h(e){let n=s[e];if(void 0===n)throw Error(`Codec "${e}" not found`);return n}function y(e){return o.varintEncode(e)}e.exports={addPrefix:function(e,n){let r;if(e instanceof Uint8Array)r=o.varintUint8ArrayEncode(e);else if(s[e])r=s[e];else throw Error("multicodec not recognized");return a([r,n],r.length+n.length)},rmPrefix:function(e){return i.decode(e),e.slice(i.decode.bytes)},getNameFromData:c,getNameFromCode:function(e){return u[e]},getCodeFromName:d,getCodeFromData:p,getVarintFromName:h,getVarintFromCode:y,getCodec:function(e){return c(e)},getName:function(e){return u[e]},getNumber:function(e){return d(e)},getCode:function(e){return p(e)},getCodeVarint:function(e){return h(e)},getVarint:function(e){return Array.from(y(e))},...f,nameToVarint:s,nameToCode:l,codeToName:u}},21843:function(e,n,r){"use strict";let{baseTable:i}=r(58636),a=r(55945).varintEncode,o={},s={},f={};for(let e in i){let n=i[e];
375o[e]=a(n),s[e.toUpperCase().replace(/-/g,"_")]=n,f[n]||(f[n]=e)}Object.freeze(o),Object.freeze(s),Object.freeze(f);let l=Object.freeze(i);e.exports={nameToVarint:o,constantToCode:s,nameToCode:l,codeToName:f}},55945:function(e,n,r){"use strict";let i=r(94676),{toString:a}=r(92263),{fromString:o}=r(52217);function s(e){return parseInt(a(e,"base16"),16)}e.exports={numberToUint8Array:function(e){let n=e.toString(16);return n.length%2==1&&(n="0"+n),o(n,"base16")},uint8ArrayToNumber:s,varintUint8ArrayEncode:function(e){return Uint8Array.from(i.encode(s(e)))},varintEncode:function(e){return Uint8Array.from(i.encode(e))}}},2623:function(e){e.exports=function e(n,r){var i,a=0,r=r||0,o=0,s=r,f=n.length;do{if(s>=f)throw e.bytes=0,RangeError("Could not decode varint");i=n[s++],a+=o<28?(127&i)<<o:(127&i)*Math.pow(2,o),o+=7}while(i>=128);return e.bytes=s-r,a}},13657:function(e){e.exports=function e(r,i,a){i=i||[];for(var o=a=a||0;r>=2147483648;)i[a++]=255&r|128,r/=128;for(;r&n;)i[a++]=255&r|128,r>>>=7;return i[a]=0|r,e.bytes=a-o+1,i};var n=-128},88414:function(e,n,r){e.exports={encode:r(13657),decode:r(2623),encodingLength:r(58078)}},58078:function(e){e.exports=function(e){return e<128?1:e<16384?2:e<2097152?3:e<268435456?4:e<34359738368?5:e<4398046511104?6:e<562949953421312?7:e<72057594037927940?8:e<0x7fffffffffffffff?9:10}},71291:function(e){"use strict";let n=Object.freeze({identity:0,sha1:17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,blake3:30,"murmur3-128":34,"murmur3-32":35,"dbl-sha2-256":86,md4:212,md5:213,bmt:214,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,x11:4352,kangarootwelve:7425,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"
375skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46e3,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082});e.exports={names:n}},18370:function(e,n,r){"use strict";let i=r(36957),a=r(88414),{names:o}=r(71291),{toString:s}=r(92263),{fromString:f}=r(52217),{concat:l}=r(20605),u={};for(let e in o)u[o[e]]=e;function c(e){if(!(e instanceof Uint8Array))throw Error("multihash must be a Uint8Array");if(e.length<2)throw Error("multihash too short. must be > 2 bytes.");let n=a.decode(e);if(!h(n))throw Error(`multihash unknown function code: 0x${n.toString(16)}`);e=e.slice(a.decode.bytes);let r=a.decode(e);if(r<0)throw Error(`multihash invalid length: ${r}`);if((e=e.slice(a.decode.bytes)).length!==r)throw Error(`multihash length inconsistent: 0x${s(e,"base16")}`);
375return{code:n,name:u[n],length:r,digest:e}}function d(e){let n=e;if("string"==typeof e){if(void 0===o[e])throw Error(`Unrecognized hash function named: ${e}`);n=o[e]}if("number"!=typeof n)throw Error(`Hash function code should be a number. Got: ${n}`);if(void 0===u[n]&&!p(n))throw Error(`Unrecognized function code: ${n}`);return n}function p(e){return e>0&&e<16}function h(e){return!!p(e)||!!u[e]}Object.freeze(u),e.exports={names:o,codes:u,toHexString:function(e){if(!(e instanceof Uint8Array))throw Error("must be passed a Uint8Array");return s(e,"base16")},fromHexString:function(e){return f(e,"base16")},toB58String:function(e){if(!(e instanceof Uint8Array))throw Error("must be passed a Uint8Array");return s(i.encode("base58btc",e)).slice(1)},fromB58String:function(e){let n=e instanceof Uint8Array?s(e):e;return i.decode("z"+n)},decode:c,encode:function(e,n,r){if(!e||void 0===n)throw Error("multihash encode requires at least two args: digest, code");let i=d(n);if(!(e instanceof Uint8Array))throw Error("digest should be a Uint8Array");if(null==r&&(r=e.length),r&&e.length!==r)throw Error("digest length should be equal to specified length.");let o=a.encode(i),s=a.encode(r);return l([o,s,e],o.length+s.length+e.length)},coerceCode:d,isAppCode:p,validate:function(e){c(e)},prefix:function(e){return c(e),e.subarray(0,2)},isValidCode:h}},29548:function(e,n,r){"use strict";var i=r(64836);Object.defineProperty(n,"__esModule",{value:!0}),n.BroadcastChannel=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"nextauth.message";return{receive:function(n){var r=function(r){if(r.key===e){var i,a=JSON.parse(null!==(i=r.newValue)&&void 0!==i?i:"{}");(null==a?void 0:a.event)==="session"&&null!=a&&a.data&&n(a)}};return window.addEventListener("storage",r),function(){return window.removeEventListener("storage",r)}},post:function(n){if("undefined"!=typeof window)try{localStorage.setItem(e,JSON.stringify(l(l({},n),{},{timestamp:d()})))}catch(e){}}}},n.apiBaseUrl=c,n.fetchData=function(e,n,r){return u.apply(this,arguments)},n.now=d;var a=i(r(64687)),o=i(r(38416)),s=i(r(17156));function f(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function l(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?f(Object(r),!0).forEach(function(n){(0,o.default)(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function u(){return(u=(0,s.default)(a.default.mark(function e(n,r,i){var o,s,f,u,d,p,h,y,m,g=arguments;return a.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s=(o=g.length>3&&void 0!==g[3]?g[3]:{}).ctx,u=void 0===(f=o.req)?null==s?void 0:s.req:f,d="".concat(c(r),"/").concat(n),e.prev=2,h={headers:l({"Content-Type":"application/json"},null!=u&&null!==(p=u.headers)&&void 0!==p&&p.cookie?{cookie:u.headers.cookie}:{})},null!=u&&u.body&&(h.body=JSON.stringify(u.body),h.method="POST"),e.next=7,fetch(d,h);case 7:return y=e.sent,e.next=10,y.json();case 10:if(m=e.sent,y.ok){e.next=13;break}throw m;case 13:return e.abrupt("return",Object.keys(m).length>0?m:null);case 16:return e.prev=16,e.t0=e.catch(2),i.error("CLIENT_FETCH_ERROR",{error:e.t0,url:d}),e.abrupt("return",null);case 20:case"end":return e.stop()}},e,null,[[2,16]])}))).apply(this,arguments)}function c(e){return"undefined"==typeof window?"".concat(e.baseUrlServer).concat(e.basePathServer):e.basePath}function d(){return Math.floor(Date.now()/1e3)}},36925:function(e,n,r){"use strict";var i=r(64836);Object.defineProperty(n,"__esModule",{value:!0}),n.UnsupportedStrategy=n.UnknownError=n.OAuthCallbackError=n.MissingSecret=n.MissingAuthorize=n.MissingAdapterMethods=n.MissingAdapter=n.MissingAPIRoute=n.InvalidCallbackUrl=n.AccountNotLinkedError=void 0,n.adapterErrorHandler=function(e,n){if(e)return Object.keys(e).reduce(function(r,i){return r[i]=(0,o.default)(a.default.mark(function r(){var o,s,f,l,u,c=arguments;return a.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:for(r.prev=0,s=Array(o=c.length),f=0;f<o;f++)s[f]=c[f];return n.debug("adapter_".concat(i),{args:s}),l=e[i],r.next=6,l.apply(void 0,s);case 6:return r.abrupt("return",r.sent);case 9:throw r.prev=9,r.t0=r.catch(0),n.error("adapter_error_".concat(i),r.t0),(u=new y(r.t0)).name="".concat(E(i),"Error"),u;case 15:case"end":return r.stop()}},r,null,[[0,9]])})),r},{})},n.capitalize=E,n.eventsErrorHandler=function(e,n){return Object.keys(e).reduce(function(r,i){return r[i]=(0,o.default)(a.default.mark(function r(){var o,s=arguments;return a.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,o=e[i],r.next=4,o.apply(void 0,s);case 4:return r.abrupt("return",r.sent);case 7:r.prev=7,r.t0=r.catch(0),n.error("".concat(A(i),"_EVENT_ERROR"),r.t0);case 10:case"end":return r.stop()}},r,null,[[0,7]])})),r},{})},n.upperSnake=A;var a=i(r(64687)),o=i(r(17156)),s=i(r(66115)),f=i(r(38416)),l=i(r(56690)),u=i(r(89728)),c=i(r(61655)),d=i(r(94993)),p=i(r(73808));function h(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var r,i=(0,p.default)(e);return r=n?Reflect.construct(i,arguments,(0,p.default)(this).constructor):i.apply(this,arguments),(0,d.default)(this,r)}}var y=function(e){(0,c.default)(r,e);var n=h(r);function r(e){var i,a;
375return(0,l.default)(this,r),(a=n.call(this,null!==(i=null==e?void 0:e.message)&&void 0!==i?i:e)).name="UnknownError",a.code=e.code,e instanceof Error&&(a.stack=e.stack),a}return(0,u.default)(r,[{key:"toJSON",value:function(){return{name:this.name,message:this.message,stack:this.stack}}}]),r}((0,i(r(33496)).default)(Error));n.UnknownError=y;var m=function(e){(0,c.default)(r,e);var n=h(r);function r(){var e;(0,l.default)(this,r);for(var i=arguments.length,a=Array(i),o=0;o<i;o++)a[o]=arguments[o];return e=n.call.apply(n,[this].concat(a)),(0,f.default)((0,s.default)(e),"name","OAuthCallbackError"),e}return(0,u.default)(r)}(y);n.OAuthCallbackError=m;var g=function(e){(0,c.default)(r,e);var n=h(r);function r(){var e;(0,l.default)(this,r);for(var i=arguments.length,a=Array(i),o=0;o<i;o++)a[o]=arguments[o];return e=n.call.apply(n,[this].concat(a)),(0,f.default)((0,s.default)(e),"name","AccountNotLinkedError"),e}return(0,u.default)(r)}(y);n.AccountNotLinkedError=g;var b=function(e){(0,c.default)(r,e);var n=h(r);function r(){var e;(0,l.default)(this,r);for(var i=arguments.length,a=Array(i),o=0;o<i;o++)a[o]=arguments[o];return e=n.call.apply(n,[this].concat(a)),(0,f.default)((0,s.default)(e),"name","MissingAPIRouteError"),(0,f.default)((0,s.default)(e),"code","MISSING_NEXTAUTH_API_ROUTE_ERROR"),e}return(0,u.default)(r)}(y);n.MissingAPIRoute=b;var v=function(e){(0,c.default)(r,e);var n=h(r);function r(){var e;(0,l.default)(this,r);for(var i=arguments.length,a=Array(i),o=0;o<i;o++)a[o]=arguments[o];return e=n.call.apply(n,[this].concat(a)),(0,f.default)((0,s.default)(e),"name","MissingSecretError"),(0,f.default)((0,s.default)(e),"code","NO_SECRET"),e}return(0,u.default)(r)}(y);n.MissingSecret=v;var w=function(e){(0,c.default)(r,e);var n=h(r);function r(){var e;(0,l.default)(this,r);for(var i=arguments.length,a=Array(i),o=0;o<i;o++)a[o]=arguments[o];return e=n.call.apply(n,[this].concat(a)),(0,f.default)((0,s.default)(e),"name","MissingAuthorizeError"),(0,f.default)((0,s.default)(e),"code","CALLBACK_CREDENTIALS_HANDLER_ERROR"),e}return(0,u.default)(r)}(y);n.MissingAuthorize=w;var x=function(e){(0,c.default)(r,e);var n=h(r);function r(){var e;(0,l.default)(this,r);for(var i=arguments.length,a=Array(i),o=0;o<i;o++)a[o]=arguments[o];return e=n.call.apply(n,[this].concat(a)),(0,f.default)((0,s.default)(e),"name","MissingAdapterError"),(0,f.default)((0,s.default)(e),"code","EMAIL_REQUIRES_ADAPTER_ERROR"),e}return(0,u.default)(r)}(y);n.MissingAdapter=x;var T=function(e){(0,c.default)(r,e);var n=h(r);function r(){var e;(0,l.default)(this,r);for(var i=arguments.length,a=Array(i),o=0;o<i;o++)a[o]=arguments[o];return e=n.call.apply(n,[this].concat(a)),(0,f.default)((0,s.default)(e),"name","MissingAdapterMethodsError"),(0,f.default)((0,s.default)(e),"code","MISSING_ADAPTER_METHODS_ERROR"),e}return(0,u.default)(r)}(y);n.MissingAdapterMethods=T;var C=function(e){(0,c.default)(r,e);var n=h(r);function r(){var e;(0,l.default)(this,r);for(var i=arguments.length,a=Array(i),o=0;o<i;o++)a[o]=arguments[o];return e=n.call.apply(n,[this].concat(a)),(0,f.default)((0,s.default)(e),"name","UnsupportedStrategyError"),(0,f.default)((0,s.default)(e),"code","CALLBACK_CREDENTIALS_JWT_ERROR"),e}return(0,u.default)(r)}(y);n.UnsupportedStrategy=C;var M=function(e){(0,c.default)(r,e);var n=h(r);function r(){var e;(0,l.default)(this,r);for(var i=arguments.length,a=Array(i),o=0;o<i;o++)a[o]=arguments[o];return e=n.call.apply(n,[this].concat(a)),(0,f.default)((0,s.default)(e),"name","InvalidCallbackUrl"),(0,f.default)((0,s.default)(e),"code","INVALID_CALLBACK_URL_ERROR"),e}return(0,u.default)(r)}(y);function A(e){return e.replace(/([A-Z])/g,"_$1").toUpperCase()}function E(e){return"".concat(e[0].toUpperCase()).concat(e.slice(1))}n.InvalidCallbackUrl=M},33299:function(e,n,r){"use strict";var i,a,o,s,f,l=r(34155),u=r(64836),c=r(18698);Object.defineProperty(n,"__esModule",{value:!0});var d={SessionContext:!0,useSession:!0,getSession:!0,getCsrfToken:!0,getProviders:!0,signIn:!0,signOut:!0,SessionProvider:!0};n.SessionContext=void 0,n.SessionProvider=function(e){if(!N)throw Error("React Context is unavailable in Server Components");var n,r,i,a,o,s,f=e.children,l=e.basePath,u=e.refetchInterval,c=e.refetchWhenOffline;l&&(I.basePath=l);var d=void 0!==e.session;I._lastSync=d?(0,w.now)():0;var h=g.useState(function(){return d&&(I._session=e.session),e.session}),b=(0,m.default)(h,2),v=b[0],T=b[1],C=g.useState(!d),M=(0,m.default)(C,2),A=M[0],E=M[1];g.useEffect(function(){return I._getSession=(0,y.default)(p.default.mark(function e(){var n,r,i=arguments;return p.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(i.length>0&&void 0!==i[0]?i[0]:{}).event,e.prev=1,!((r="storage"===n)||void 0===I._session)){e.next=10;break}return I._lastSync=(0,w.now)(),e.next=7,j({broadcast:!r});case 7:return I._session=e.sent,T(I._session),e.abrupt("return");case 10:if(!(!n||null===I._session||(0,w.now)()<I._lastSync)){e.next=12;break}return e.abrupt("return");case 12:return I._lastSync=(0,w.now)(),e.next=15,j();case 15:I._session=e.sent,T(I._session),e.next=22;break;case 19:e.prev=19,e.t0=e.catch(1),k.error("CLIENT_SESSION_ERROR",e.t0);case 22:return e.prev=22,E(!1),e.finish(22);case 25:case"end":return e.stop()}},e,null,[[1,19,22,25]])})),I._getSession(),function(){I._lastSync=0,I._session=void 0,I._getSession=function(){}}},[]),g.useEffect(function(){var e=S.receive(function(){return I._getSession({event:"storage"})});return function(){return e()}},[]),g.useEffect(function(){var n=e.refetchOnWindowFocus,r=void 0===n||n,i=function(){r&&"visible"===document.visibilityState&&I._getSession({event:"visibilitychange"})};return document.addEventListener("visibilitychange",i,!1),function(){return document.removeEventListener("visibilitychange",i,!1)}},[e.refetchOnWindowFocus]);var D=(n=g.useState("undefined"!=typeof navigator&&navigator.onLine),i=(r=(0,m.default)(n,2))[0],a=r[1],o=function(){return a(!0)},s=function(){return a(!1)},g.useEffect(function(){return window.addEventListener("online",o),window.addEventListener("offline",s),function(){window.removeEventListener("online",o),window.removeEventListener("offline",s)}},[]),i),O=!1!==c||D;g.useEffect(function(){if(u&&O){var e=setInterval(function(){I._session&&I._getSession({event:"poll"})},1e3*u);return function(){return clearInterval(e)}}},[u,O]);var P=g.useMemo(function(){return{data:v,status:A?"loading":v?"authenticated":"unauthenticated",update:function(e){return(0,y.default)(p.default.mark(function n(){var r;return p.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(!(A||!v)){n.next=2;break}return n.abrupt("return");case 2:return E(!0),n.t0=w.fetchData,n.t1=I,n.t2=k,n.next=8,_();case 8:return n.t3=n.sent,n.t4=e,n.t5={csrfToken:n.t3,data:n.t4},n.t6={body:n.t5},n.t7={req:n.t6},n.next=15,(0,n.t0)("session",n.t1,n.t2,n.t7);case 15:return r=n.sent,E(!1),r&&(T(r),S.post({event:"session",data:{trigger:"getSession"}})),n.abrupt("return",r);case 19:case"end":return n.stop()}},n)}))()}}},[v,A]);return(0,x.jsx)(N.Provider,{value:P,children:f})},n.getCsrfToken=_,n.getProviders=P,n.getSession=j,n.signIn=function(e,n,r){return R.apply(this,arguments)},n.signOut=function(e){return z.apply(this,arguments)},n.useSession=function(e){if(!N)throw Error("React Context is unavailable in Server Components");var n=g.useContext(N),r=null!=e?e:{},i=r.required,a=r.onUnauthenticated,o=i&&"unauthenticated"===n.status;return(g.useEffect(function(){if(o){var e="/api/auth/signin?".concat(new
375URLSearchParams({error:"SessionRequired",callbackUrl:window.location.href}));a?a():window.location.href=e}},[o,a]),o)?{data:n.data,update:n.update,status:"loading"}:n};var p=u(r(64687)),h=u(r(38416)),y=u(r(17156)),m=u(r(27424)),g=M(r(67294)),b=M(r(26553)),v=u(r(30762)),w=r(29548),x=r(85893),T=r(527);function C(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,r=new WeakMap;return(C=function(e){return e?r:n})(e)}function M(e,n){if(!n&&e&&e.__esModule)return e;if(null===e||"object"!==c(e)&&"function"!=typeof e)return{default:e};var r=C(n);if(r&&r.has(e))return r.get(e);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=a?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(i,o,s):i[o]=e[o]}return i.default=e,r&&r.set(e,i),i}function A(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function E(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?A(Object(r),!0).forEach(function(n){(0,h.default)(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}Object.keys(T).forEach(function(e){!("default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(d,e))&&(e in n&&n[e]===T[e]||Object.defineProperty(n,e,{enumerable:!0,get:function(){return T[e]}}))});var I={baseUrl:(0,v.default)(null!==(i=l.env.NEXTAUTH_URL)&&void 0!==i?i:l.env.VERCEL_URL).origin,basePath:(0,v.default)(l.env.NEXTAUTH_URL).path,baseUrlServer:(0,v.default)(null!==(a=null!==(o=l.env.NEXTAUTH_URL_INTERNAL)&&void 0!==o?o:l.env.NEXTAUTH_URL)&&void 0!==a?a:l.env.VERCEL_URL).origin,basePathServer:(0,v.default)(null!==(s=l.env.NEXTAUTH_URL_INTERNAL)&&void 0!==s?s:l.env.NEXTAUTH_URL).path,_lastSync:0,_session:void 0,_getSession:function(){}},S=(0,w.BroadcastChannel)(),k=(0,b.proxyLogger)(b.default,I.basePath),N=null===(f=g.createContext)||void 0===f?void 0:f.call(g,void 0);function j(e){return D.apply(this,arguments)}function D(){return(D=(0,y.default)(p.default.mark(function e(n){var r,i;return p.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.fetchData)("session",I,k,n);case 2:return i=e.sent,(null===(r=null==n?void 0:n.broadcast)||void 0===r||r)&&S.post({event:"session",data:{trigger:"getSession"}}),e.abrupt("return",i);case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}function _(e){return O.apply(this,arguments)}function O(){return(O=(0,y.default)(p.default.mark(function e(n){var r;return p.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.fetchData)("csrf",I,k,n);case 2:return r=e.sent,e.abrupt("return",null==r?void 0:r.csrfToken);case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function P(){return L.apply(this,arguments)}function L(){return(L=(0,y.default)(p.default.mark(function e(){return p.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.fetchData)("providers",I,k);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}function R(){return(R=(0,y.default)(p.default.mark(function e(n,r,i){var a,o,s,f,l,u,c,d,h,y,m,g,b,v,x,T,C;return p.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s=void 0===(o=(a=null!=r?r:{}).callbackUrl)?window.location.href:o,l=void 0===(f=a.redirect)||f,u=(0,w.apiBaseUrl)(I),e.next=4,P();case 4:if(c=e.sent){e.next=8;break}return window.location.href="".concat(u,"/error"),e.abrupt("return");case 8:if(!(!n||!(n in c))){e.next=11;break}return window.location.href="".concat(u,"/signin?").concat(new URLSearchParams({callbackUrl:s})),e.abrupt("return");case 11:return d="credentials"===c[n].type,h="email"===c[n].type,y=d||h,m="".concat(u,"/").concat(d?"callback":"signin","/").concat(n),g="".concat(m).concat(i?"?".concat(new
375URLSearchParams(i)):""),e.t0=fetch,e.t1=g,e.t2={"Content-Type":"application/x-www-form-urlencoded"},e.t3=URLSearchParams,e.t4=E,e.t5=E({},r),e.t6={},e.next=25,_();case 25:return e.t7=e.sent,e.t8=s,e.t9={csrfToken:e.t7,callbackUrl:e.t8,json:!0},e.t10=(0,e.t4)(e.t5,e.t6,e.t9),e.t11=new e.t3(e.t10),e.t12={method:"post",headers:e.t2,body:e.t11},e.next=33,(0,e.t0)(e.t1,e.t12);case 33:return b=e.sent,e.next=36,b.json();case 36:if(v=e.sent,!(l||!y)){e.next=42;break}return T=null!==(x=v.url)&&void 0!==x?x:s,window.location.href=T,T.includes("#")&&window.location.reload(),e.abrupt("return");case 42:if(C=new URL(v.url).searchParams.get("error"),!b.ok){e.next=46;break}return e.next=46,I._getSession({event:"storage"});case 46:return e.abrupt("return",{error:C,status:b.status,ok:b.ok,url:C?null:v.url});case 47:case"end":return e.stop()}},e)}))).apply(this,arguments)}function z(){return(z=(0,y.default)(p.default.mark(function e(n){var r,i,a,o,s,f,l,u,c;return p.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=void 0===(i=(null!=n?n:{}).callbackUrl)?window.location.href:i,o=(0,w.apiBaseUrl)(I),e.t0={"Content-Type":"application/x-www-form-urlencoded"},e.t1=URLSearchParams,e.next=6,_();case 6:return e.t2=e.sent,e.t3=a,e.t4={csrfToken:e.t2,callbackUrl:e.t3,json:!0},e.t5=new e.t1(e.t4),s={method:"post",headers:e.t0,body:e.t5},e.next=13,fetch("".concat(o,"/signout"),s);case 13:return f=e.sent,e.next=16,f.json();case 16:if(l=e.sent,S.post({event:"session",data:{trigger:"signout"}}),!(null===(r=null==n?void 0:n.redirect)||void 0===r||r)){e.next=23;break}return c=null!==(u=l.url)&&void 0!==u?u:a,window.location.href=c,c.includes("#")&&window.location.reload(),e.abrupt("return");case 23:return e.next=25,I._getSession({event:"storage"});case 25:return e.abrupt("return",l);case 26:case"end":return e.stop()}},e)}))).apply(this,arguments)}n.SessionContext=N},527:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},26553:function(e,n,r){"use strict";var i=r(64836);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.proxyLogger=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,n=arguments.length>1?arguments[1]:void 0;try{if("undefined"==typeof window)return e;var r={},i=function(e){r[e]=function(r,i){l[e](r,i),"error"===e&&(i=f(i)),i.client=!0;var o="".concat(n,"/_log"),u=new URLSearchParams(function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?s(Object(r),!0).forEach(function(n){(0,a.default)(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}({level:e,code:r},i));return navigator.sendBeacon?navigator.sendBeacon(o,u):fetch(o,{method:"POST",body:u,keepalive:!0})}};for(var o in e)i(o);return r}catch(e){return l}},n.setLogger=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;n||(l.debug=function(){}),e.error&&(l.error=e.error),e.warn&&(l.warn=e.warn),e.debug&&(l.debug=e.debug)};var a=i(r(38416)),o=r(36925);function s(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function f(e){var n;return e instanceof Error&&!(e instanceof o.UnknownError)?{message:e.message,stack:e.stack,name:e.name}:(null!=e&&e.error&&(e.error=f(e.error),e.message=null!==(n=e.message)&&void 0!==n?n:e.error.message),e)}
375var l={error:function(e,n){n=f(n),console.error("[next-auth][error][".concat(e,"]"),"\nhttps://next-auth.js.org/errors#".concat(e.toLowerCase()),n.message,n)},warn:function(e){console.warn("[next-auth][warn][".concat(e,"]"),"\nhttps://next-auth.js.org/warnings#".concat(e.toLowerCase()))},debug:function(e,n){console.log("[next-auth][debug][".concat(e,"]"),n)}};n.default=l},30762:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;let r=new URL("http://localhost:3000/api/auth");e&&!e.startsWith("http")&&(e=`https://${e}`);let i=new URL(null!==(n=e)&&void 0!==n?n:r),a=("/"===i.pathname?r.pathname:i.pathname).replace(/\/$/,""),o=`${i.origin}${a}`;return{origin:i.origin,host:i.host,path:a,base:o,toString:()=>o}}},87128:function(e,n,r){"use strict";var i=r(64836);n.Z=void 0;var a=i(r(19377)),o=r(85893);n.Z=(0,a.default)((0,o.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},79142:function(e,n,r){"use strict";var i=r(64836);n.Z=void 0;var a=i(r(19377)),o=r(85893);n.Z=(0,a.default)((0,o.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy")},25872:function(e,n,r){"use strict";var i=r(64836);n.Z=void 0;var a=i(r(19377)),o=r(85893);n.Z=(0,a.default)((0,o.jsx)("circle",{cx:"12",cy:"12",r:"8"}),"FiberManualRecord")},25952:function(e,n,r){"use strict";var i=r(64836);n.Z=void 0;var a=i(r(19377)),o=r(85893);n.Z=(0,a.default)((0,o.jsx)("path",{d:"M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h9v-2H4V8l8 5 8-5v5h2V6c0-1.1-.9-2-2-2m-8 7L4 6h16zm7 4 4 4-4 4v-3h-4v-2h4z"}),"ForwardToInbox")},59793:function(e,n,r){"use strict";var i=r(64836);n.Z=void 0;var a=i(r(19377)),o=r(85893);n.Z=(0,a.default)((0,o.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2m6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5z"}),"NotificationsNoneOutlined")},65967:function(e,n,r){"use strict";var i=r(64836);n.Z=void 0;var a=i(r(19377)),o=r(85893);n.Z=(0,a.default)((0,o.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh")},19377:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return i.createSvgIcon}});var i=r(23238)},32435:function(e,n,r){"use strict";r.d(n,{Z:function(){return O}});var i=r(59499),a=r(17674),o=r(90116),s=r(63366),f=r(87462),l=r(67294),u=r(90512),c=r(94780),d=r(2101),p=r(80179),h=r(93434),y=r(77581),m=r(79566),g=r(69900),b=r(42854),v=r(52764),w=r(46334),x=r(85893),T=(0,w.Z)((0,x.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),C=(0,w.Z)((0,x.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),M=(0,w.Z)((0,x.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),A=(0,w.Z)((0,x.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),E=r(73772),I=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],S=function(e){var n=e.variant,r=e.color,i=e.severity,a=e.classes,o={root:["root","color".concat((0,m.Z)(r||i)),"".concat(n).concat((0,m.Z)(r||i)),"".concat(n)],icon:["icon"],message:["message"],action:["action"]};return(0,c.Z)(o,b.t,a)},k=(0,p.ZP)(g.Z,{name:"MuiAlert",slot:"Root",overridesResolver:function(e,n){var r=e.ownerState;return[n.root,n[r.variant],n["".concat(r.variant).concat((0,m.Z)(r.color||r.severity)
375)]]}})(function(e){var n=e.theme,r="light"===n.palette.mode?d._j:d.$n,s="light"===n.palette.mode?d.$n:d._j;return(0,f.Z)({},n.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[].concat((0,o.Z)(Object.entries(n.palette).filter(function(e){var n=(0,a.Z)(e,2)[1];return n.main&&n.light}).map(function(e){var o=(0,a.Z)(e,1)[0];return{props:{colorSeverity:o,variant:"standard"},style:(0,i.default)({color:n.vars?n.vars.palette.Alert["".concat(o,"Color")]:r(n.palette[o].light,.6),backgroundColor:n.vars?n.vars.palette.Alert["".concat(o,"StandardBg")]:s(n.palette[o].light,.9)},"& .".concat(b.Z.icon),n.vars?{color:n.vars.palette.Alert["".concat(o,"IconColor")]}:{color:n.palette[o].main})}})),(0,o.Z)(Object.entries(n.palette).filter(function(e){var n=(0,a.Z)(e,2)[1];return n.main&&n.light}).map(function(e){var o=(0,a.Z)(e,1)[0];return{props:{colorSeverity:o,variant:"outlined"},style:(0,i.default)({color:n.vars?n.vars.palette.Alert["".concat(o,"Color")]:r(n.palette[o].light,.6),border:"1px solid ".concat((n.vars||n).palette[o].light)},"& .".concat(b.Z.icon),n.vars?{color:n.vars.palette.Alert["".concat(o,"IconColor")]}:{color:n.palette[o].main})}})),(0,o.Z)(Object.entries(n.palette).filter(function(e){var n=(0,a.Z)(e,2)[1];return n.main&&n.dark}).map(function(e){var r=(0,a.Z)(e,1)[0];return{props:{colorSeverity:r,variant:"filled"},style:(0,f.Z)({fontWeight:n.typography.fontWeightMedium},n.vars?{color:n.vars.palette.Alert["".concat(r,"FilledColor")],backgroundColor:n.vars.palette.Alert["".concat(r,"FilledBg")]}:{backgroundColor:"dark"===n.palette.mode?n.palette[r].dark:n.palette[r].main,color:n.palette.getContrastText(n.palette[r].main)})}})))})}),N=(0,p.ZP)("div",{name:"MuiAlert",slot:"Icon",overridesResolver:function(e,n){return n.icon}})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),j=(0,p.ZP)("div",{name:"MuiAlert",slot:"Message",overridesResolver:function(e,n){return n.message}})({padding:"8px 0",minWidth:0,overflow:"auto"}),D=(0,p.ZP)("div",{name:"MuiAlert",slot:"Action",overridesResolver:function(e,n){return n.action}})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),_={success:(0,x.jsx)(T,{fontSize:"inherit"}),warning:(0,x.jsx)(C,{fontSize:"inherit"}),error:(0,x.jsx)(M,{fontSize:"inherit"}),info:(0,x.jsx)(A,{fontSize:"inherit"})},O=l.forwardRef(function(e,n){var r=(0,h.i)({props:e,name:"MuiAlert"}),i=r.action,o=r.children,l=r.className,c=r.closeText,d=void 0===c?"Close":c,p=r.color,m=r.components,g=void 0===m?{}:m,b=r.componentsProps,w=r.icon,T=r.iconMapping,C=r.onClose,M=r.role,A=r.severity,O=void 0===A?"success":A,P=r.slotProps,L=r.slots,R=r.variant,z=(0,s.Z)(r,I),B=(0,f.Z)({},r,{color:p,severity:O,variant:void 0===R?"standard":R,colorSeverity:p||O}),U=S(B),F={slots:(0,f.Z)({closeButton:g.CloseButton,closeIcon:g.CloseIcon},void 0===L?{}:L),slotProps:(0,f.Z)({},void 0===b?{}:b,void 0===P?{}:P)},Z=(0,y.Z)("closeButton",{elementType:v.Z,externalForwardedProps:F,ownerState:B}),W=(0,a.Z)(Z,2),H=W[0],G=W[1],q=(0,y.Z)("closeIcon",{elementType:E.Z,externalForwardedProps:F,ownerState:B}),Y=(0,a.Z)(q,2),V=Y[0],Q=Y[1];return(0,x.jsxs)(k,(0,f.Z)({role:void 0===M?"alert":M,elevation:0,ownerState:B,className:(0,u.Z)(U.root,l),ref:n},z,{children:[!1!==w?(0,x.jsx)(N,{ownerState:B,className:U.icon,children:w||(void 0===T?_:T)[O]||_[O]}):null,(0,x.jsx)(j,{ownerState:B,className:U.message,children:o}),null!=i?(0,x.jsx)(D,{ownerState:B,className:U.action,children:i}):null,null==i&&C?(0,x.jsx)(D,{ownerState:B,className:U.action,children:(0,x.jsx)(H,(0,f.Z)({size:"small","aria-label":d,title:d,color:"inherit",onClick:C},G,{children:(0,x.jsx)(V,(0,f.Z)({fontSize:"small"},Q))}))}):null]}))})},42854:function(e,n,r){"use strict";r.d(n,{t:function(){return o}});var i=r(1588),a=r(34867);function o(e){return(0,a.ZP)("MuiAlert",e)}var s=(0,i.Z)("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);n.Z=s},66349:function(e,n,r){"use strict";
375var i=r(87462),a=r(63366),o=r(67294),s=r(90512),f=r(94780),l=r(80179),u=r(93434),c=r(86173),d=r(614),p=r(85893),h=["className"],y=function(e){var n=e.classes;return(0,f.Z)({root:["root"]},d.E,n)},m=(0,l.ZP)(c.Z,{name:"MuiAlertTitle",slot:"Root",overridesResolver:function(e,n){return n.root}})(function(e){return{fontWeight:e.theme.typography.fontWeightMedium,marginTop:-2}}),g=o.forwardRef(function(e,n){var r=(0,u.i)({props:e,name:"MuiAlertTitle"}),o=r.className,f=(0,a.Z)(r,h),l=y(r);return(0,p.jsx)(m,(0,i.Z)({gutterBottom:!0,component:"div",ownerState:r,ref:n,className:(0,s.Z)(l.root,o)},f))});n.Z=g},614:function(e,n,r){"use strict";r.d(n,{E:function(){return o}});var i=r(1588),a=r(34867);function o(e){return(0,a.ZP)("MuiAlertTitle",e)}var s=(0,i.Z)("MuiAlertTitle",["root"]);n.Z=s},29079:function(e,n,r){"use strict";r.d(n,{Z:function(){return T}});var i=r(17674),a=r(63366),o=r(87462),s=r(67294),f=r(90512),l=r(94780),u=r(80179),c=r(93434),d=r(46334),p=r(85893),h=(0,d.Z)((0,p.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person"),y=r(74744),m=r(77581),g=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],b=function(e){var n=e.classes,r=e.variant,i=e.colorDefault;return(0,l.Z)({root:["root",r,i&&"colorDefault"],img:["img"],fallback:["fallback"]},y.$,n)},v=(0,u.ZP)("div",{name:"MuiAvatar",slot:"Root",overridesResolver:function(e,n){var r=e.ownerState;return[n.root,n[r.variant],r.colorDefault&&n.colorDefault]}})(function(e){var n=e.theme;return{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:n.typography.fontFamily,fontSize:n.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(n.vars||n).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:(0,o.Z)({color:(n.vars||n).palette.background.default},n.vars?{backgroundColor:n.vars.palette.Avatar.defaultBg}:(0,o.Z)({backgroundColor:n.palette.grey[400]},n.applyStyles("dark",{backgroundColor:n.palette.grey[600]})))}]}}),w=(0,u.ZP)("img",{name:"MuiAvatar",slot:"Img",overridesResolver:function(e,n){return n.img}})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),x=(0,u.ZP)(h,{name:"MuiAvatar",slot:"Fallback",overridesResolver:function(e,n){return n.fallback}})({width:"75%",height:"75%"}),T=s.forwardRef(function(e,n){var r,l,u,d,h,y,T,C,M,A=(0,c.i)({props:e,name:"MuiAvatar"}),E=A.alt,I=A.children,S=A.className,k=A.component,N=void 0===k?"div":k,j=A.slots,D=A.slotProps,_=A.imgProps,O=A.sizes,P=A.src,L=A.srcSet,R=A.variant,z=(0,a.Z)(A,g),B=null,U=(l=(r=(0,o.Z)({},_,{src:P,srcSet:L})).crossOrigin,u=r.referrerPolicy,d=r.src,h=r.srcSet,y=s.useState(!1),C=(T=(0,i.Z)(y,2))[0],M=T[1],s.useEffect(function(){if(d||h){M(!1);var e=!0,n=new Image;return n.onload=function(){e&&M("loaded")},n.onerror=function(){e&&M("error")},n.crossOrigin=l,n.referrerPolicy=u,n.src=d,h&&(n.srcset=h),function(){e=!1}}},[l,u,d,h]),C),F=P||L,Z=F&&"error"!==U,W=(0,o.Z)({},A,{colorDefault:!Z,component:N,variant:void 0===R?"circular":R}),H=b(W),G=(0,m.Z)("img",{className:H.img,elementType:w,externalForwardedProps:{slots:void 0===j?{}:j,slotProps:{img:(0,o.Z)({},_,(void 0===D?{}:D).img)}},additionalProps:{alt:E,src:P,srcSet:L,sizes:O},ownerState:W}),q=(0,i.Z)(G,2),Y=q[0],V=q[1];
375return B=Z?(0,p.jsx)(Y,(0,o.Z)({},V)):I||0===I?I:F&&E?E[0]:(0,p.jsx)(x,{ownerState:W,className:H.fallback}),(0,p.jsx)(v,(0,o.Z)({as:N,ownerState:W,className:(0,f.Z)(H.root,S),ref:n},z,{children:B}))})},74744:function(e,n,r){"use strict";r.d(n,{$:function(){return o}});var i=r(1588),a=r(34867);function o(e){return(0,a.ZP)("MuiAvatar",e)}var s=(0,i.Z)("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);n.Z=s},35811:function(e,n,r){"use strict";var i=r(63366),a=r(87462),o=r(67294),s=r(90512),f=r(94780),l=r(80179),u=r(93434),c=r(26491),d=r(42603),p=r(85893),h=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],y=function(e){var n=e.classes,r=e.invisible;return(0,f.Z)({root:["root",r&&"invisible"]},d.s,n)},m=(0,l.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:function(e,n){var r=e.ownerState;return[n.root,r.invisible&&n.invisible]}})(function(e){var n=e.ownerState;return(0,a.Z)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},n.invisible&&{backgroundColor:"transparent"})}),g=o.forwardRef(function(e,n){var r,o,f,l=(0,u.i)({props:e,name:"MuiBackdrop"}),d=l.children,g=l.className,b=l.component,v=void 0===b?"div":b,w=l.components,x=l.componentsProps,T=l.invisible,C=l.open,M=l.slotProps,A=l.slots,E=l.TransitionComponent,I=void 0===E?c.Z:E,S=l.transitionDuration,k=(0,i.Z)(l,h),N=(0,a.Z)({},l,{component:v,invisible:void 0!==T&&T}),j=y(N),D=null!=(r=(void 0===M?{}:M).root)?r:(void 0===x?{}:x).root;return(0,p.jsx)(I,(0,a.Z)({in:C,timeout:S},k,{children:(0,p.jsx)(m,(0,a.Z)({"aria-hidden":!0},D,{as:null!=(o=null!=(f=(void 0===A?{}:A).root)?f:(void 0===w?{}:w).Root)?o:v,className:(0,s.Z)(j.root,g,null==D?void 0:D.className),ownerState:(0,a.Z)({},N,null==D?void 0:D.ownerState),classes:j,ref:n,children:d}))}))});n.Z=g},42603:function(e,n,r){"use strict";r.d(n,{s:function(){return o}});var i=r(1588),a=r(34867);function o(e){return(0,a.ZP)("MuiBackdrop",e)}var s=(0,i.Z)("MuiBackdrop",["root","invisible"]);n.Z=s},10269:function(e,n,r){"use strict";r.d(n,{Z:function(){return C}});var i=r(59499),a=r(90116),o=r(87462),s=r(63366),f=r(67294),l=r(90512),u=r(44287),c=r(94780),d=r(82963),p=function(e){var n=e.badgeContent,r=e.invisible,i=void 0!==r&&r,a=e.max,o=void 0===a?99:a,s=e.showZero,f=(0,u.Z)({badgeContent:n,max:o}),l=i;!1!==i||0!==n||void 0!==s&&s||(l=!0);var c=l?f:e,d=c.badgeContent,p=c.max,h=void 0===p?o:p,y=d&&Number(d)>h?"".concat(h,"+"):d;return{badgeContent:d,invisible:l,max:h,displayValue:y}},h=r(80179),y=r(93434),m=r(79566),g=r(27812),b=r(85893),v=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],w=function(e){var n=e.color,r=e.anchorOrigin,i=e.invisible,a=e.overlap,o=e.variant,s=e.classes,f={root:["root"],badge:["badge",o,i&&"invisible","anchorOrigin".concat((0,m.Z)(r.vertical)).concat((0,m.Z)(r.horizontal)),"anchorOrigin".concat((0,m.Z)(r.vertical)).concat((0,m.Z)(r.horizontal)).concat((0,m.Z)(a)),"overlap".concat((0,m.Z)(a)),"default"!==n&&"color".concat((0,m.Z)(n))]};return(0,c.Z)(f,g.I,void 0===s?{}:s)},x=(0,h.ZP)("span",{name:"MuiBadge",slot:"Root",overridesResolver:function(e,n){return n.root}})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),T=(0,h.ZP)("span",{name:"MuiBadge",slot:"Badge",overridesResolver:function(e,n){var r=e.ownerState;return[n.badge,n[r.variant],n["anchorOrigin".concat((0,m.Z)(r.anchorOrigin.vertical)).concat((0,m.Z)(r.anchorOrigin.horizontal)).concat((0,m.Z)(r.overlap))],"default"!==r.color&&n["color".concat((0,m.Z)(r.color))],r.invisible&&n.invisible]}})(function(e){var n,r=e.theme;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:r.typography.fontFamily,fontWeight:r.typography.fontWeightMedium,fontSize:r.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:r.transitions.create("transform",{easing:r.transitions.easing.easeInOut,duration:r.transitions.duration.enteringScreen}),variants:[].concat((0,a.Z)(Object.keys((null!=(n=r.vars)?n:r).palette).filter(function(e){var n,i;return(null!=(n=r.vars)?n:r).palette[e].main&&(null!=(i=r.vars)?i:r).palette[e].contrastText}).map(function(e){return{props:{color:e},style:{backgroundColor:(r.vars||r).palette[e].main,color:(r.vars||r).palette[e].contrastText}}})),[{props:{variant:"dot"},style:{borderRadius:4,height:8,minWidth:8,padding:0}},{props:function(e){var n=e.ownerState;return"top"===n.anchorOrigin.vertical&&"right"===n.anchorOrigin.horizontal&&"rectangular"===n.overlap},style:(0,i.default)({top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%"},"&.".concat(g.Z.invisible),{transform:"scale(0) translate(50%, -50%)"})},{props:function(e){var n=e.ownerState;return"bottom"===n.anchorOrigin.vertical&&"right"===n.anchorOrigin.horizontal&&"rectangular"===n.overlap},style:(0,i.default)({bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%"},"&.".concat(g.Z.invisible),{transform:"scale(0) translate(50%, 50%)"})},{props:function(e){var n=e.ownerState;return"top"===n.anchorOrigin.vertical&&"left"===n.anchorOrigin.horizontal&&"rectangular"===n.overlap},style:(0,i.default)({top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%"},"&.".concat(g.Z.invisible),{transform:"scale(0) translate(-50%, -50%)"})},{props:function(e){var n=e.ownerState;return"bottom"===n.anchorOrigin.vertical&&"left"===n.anchorOrigin.horizontal&&"rectangular"===n.overlap},style:(0,i.default)({bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%"},"&.".concat(g.Z.invisible),{transform:"scale(0) translate(-50%, 50%)"})},{props:function(e){var n=e.ownerState;return"top"===n.anchorOrigin.vertical&&"right"===n.anchorOrigin.horizontal&&"circular"===n.overlap},style:(0,i.default)({top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%"},"&.".concat(g.Z.invisible),{transform:"scale(0) translate(50%, -50%)"})},{props:function(e){var n=e.ownerState;return"bottom"===n.anchorOrigin.vertical&&"right"===n.anchorOrigin.horizontal&&"circular"===n.overlap},style:(0,i.default)({bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%"},"&.".concat(g.Z.invisible),{transform:"scale(0) translate(50%, 50%)"})},{props:function(e){var n=e.ownerState;return"top"===n.anchorOrigin.vertical&&"left"===n.anchorOrigin.horizontal&&"circular"===n.overlap},style:(0,i.default)({top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%"},"&.".concat(g.Z.invisible),{transform:"scale(0) translate(-50%, -50%)"})},{props:function(e){var n=e.ownerState;return"bottom"===n.anchorOrigin.vertical&&"left"===n.anchorOrigin.horizontal&&"circular"===n.overlap},style:(0,i.default)({bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%"},"&.".concat(g.Z.invisible),{transform:"scale(0) translate(-50%, 50%)"})},{props:{invisible:!0},style:{transition:r.transitions.create("transform",{easing:r.transitions.easing.easeInOut,duration:r.transitions.duration.leavingScreen})}}])}}),C=f.forwardRef(function(e,n){var r,i,a,f,c,h,m=(0,y.i)({props:e,name:"MuiBadge"}),g=m.anchorOrigin,C=void 0===g?{vertical:"top",horizontal:"right"}:g,M=m.className,A=m.component,E=m.components,I=void 0===E?{}:E,S=m.componentsProps,k=void 0===S?{}:S,N=m.children,j=m.overlap,D=void 0===j?"rectangular":j,_=m.color,O=void 0===_?"default":_,P=m.invisible,L=m.max,R=m.badgeContent,z=m.slots,B=m.slotProps,U=m.showZero,F=void 0!==U&&U,Z=m.variant,W=void 0===Z?"standard":Z,H=(0,s.Z)(m,v),G=p({max:void 0===L?99:L,inv
375isible:void 0!==P&&P,badgeContent:R,showZero:F}),q=G.badgeContent,Y=G.invisible,V=G.max,Q=G.displayValue,K=(0,u.Z)({anchorOrigin:C,color:O,overlap:D,variant:W,badgeContent:R}),$=Y||null==q&&"dot"!==W,J=$?K:m,X=J.color,ee=J.overlap,et=J.anchorOrigin,en=J.variant,er=void 0===en?W:en,ei="dot"!==er?Q:void 0,ea=(0,o.Z)({},m,{badgeContent:q,invisible:$,max:V,displayValue:ei,showZero:F,anchorOrigin:void 0===et?C:et,color:void 0===X?O:X,overlap:void 0===ee?D:ee,variant:er}),eo=w(ea),es=null!=(r=null!=(i=null==z?void 0:z.root)?i:I.Root)?r:x,ef=null!=(a=null!=(f=null==z?void 0:z.badge)?f:I.Badge)?a:T,el=null!=(c=null==B?void 0:B.root)?c:k.root,eu=null!=(h=null==B?void 0:B.badge)?h:k.badge,ec=(0,d.Z)({elementType:es,externalSlotProps:el,externalForwardedProps:H,additionalProps:{ref:n,as:A},ownerState:ea,className:(0,l.Z)(null==el?void 0:el.className,eo.root,M)}),ed=(0,d.Z)({elementType:ef,externalSlotProps:eu,ownerState:ea,className:(0,l.Z)(eo.badge,null==eu?void 0:eu.className)});return(0,b.jsxs)(es,(0,o.Z)({},ec,{children:[N,(0,b.jsx)(ef,(0,o.Z)({},ed,{children:ei}))]}))})},27812:function(e,n,r){"use strict";r.d(n,{I:function(){return o}});var i=r(1588),a=r(34867);function o(e){return(0,a.ZP)("MuiBadge",e)}var s=(0,i.Z)("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]);n.Z=s},89859:function(e,n,r){"use strict";var i=r(61354),a=r(37078),o=r(28335),s=r(39186),f=r(84562),l=(0,o.Z)(),u=(0,i.Z)({themeId:s.Z,defaultTheme:l,defaultClassName:f.Z.root,generateClassName:a.Z.generate});n.Z=u},84562:function(e,n,r){"use strict";var i=(0,r(1588).Z)("MuiBox",["root"]);n.Z=i},45542:function(e,n,r){"use strict";var i=r(59499),a=r(63366),o=r(87462),s=r(67294),f=r(90512),l=r(35971),u=r(94780),c=r(2101),d=r(80179),p=r(98425),h=r(93434),y=r(54207),m=r(79566),g=r(78874),b=r(56833),v=r(10116),w=r(85893),x=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],T=function(e){var n=e.color,r=e.disableElevation,i=e.fullWidth,a=e.size,s=e.variant,f=e.classes,l={root:["root",s,"".concat(s).concat((0,m.Z)(n)),"size".concat((0,m.Z)(a)),"".concat(s,"Size").concat((0,m.Z)(a)),"color".concat((0,m.Z)(n)),r&&"disableElevation",i&&"fullWidth"],label:["label"],startIcon:["icon","startIcon","iconSize".concat((0,m.Z)(a))],endIcon:["icon","endIcon","iconSize".concat((0,m.Z)(a))]},c=(0,u.Z)(l,g.F,f);return(0,o.Z)({},f,c)},C=function(e){return(0,o.Z)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}})},M=(0,d.ZP)(y.Z,{shouldForwardProp:function(e){return(0,p.Z)(e)||"classes"===e},name:"MuiButton",slot:"Root",overridesResolver:function(e,n){var r=e.ownerState;return[n.root,n[r.variant],n["".concat(r.variant).concat((0,m.Z)(r.color))],n["size".concat((0,m.Z)(r.size))],n["".concat(r.variant,"Size").concat((0,m.Z)(r.size))],"inherit"===r.color&&n.colorInherit,r.disableElevation&&n.disableElevation,r.fullWidth&&n.fullWidth]}})(function(e){var n,r,a,s=e.theme,f=e.ownerState,l="light"===s.palette.mode?s.palette.grey[300]:s.palette.grey[800],u="light"===s.palette.mode?s.palette.grey.A100:s.palette.grey[700];return(0,o.Z)({},s.typography.button,(n={minWidth:64,padding:"6px 16px",borderRadius:(s.vars||s).shape.borderRadius,transition:s.transitions.create(["background-color","box-shadow","border-color","color"],{duration:s.transitions.duration.short}),"&:hover":(0,o.Z)({textDecoration:"none",backgroundColor:s.vars?"rgba(".concat(s.vars.palette.text.primaryChannel," / ").concat(s.vars.palette.action.hoverOpacity,")"):(0,c.Fq)(s.palette.text.primary,s.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===f.variant&&"inherit"!==f.color&&{backgroundColor:s.vars?"rgba(".concat(s.vars.palette[f.color].mainCh
375annel," / ").concat(s.vars.palette.action.hoverOpacity,")"):(0,c.Fq)(s.palette[f.color].main,s.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===f.variant&&"inherit"!==f.color&&{border:"1px solid ".concat((s.vars||s).palette[f.color].main),backgroundColor:s.vars?"rgba(".concat(s.vars.palette[f.color].mainChannel," / ").concat(s.vars.palette.action.hoverOpacity,")"):(0,c.Fq)(s.palette[f.color].main,s.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===f.variant&&{backgroundColor:s.vars?s.vars.palette.Button.inheritContainedHoverBg:u,boxShadow:(s.vars||s).shadows[4],"@media (hover: none)":{boxShadow:(s.vars||s).shadows[2],backgroundColor:(s.vars||s).palette.grey[300]}},"contained"===f.variant&&"inherit"!==f.color&&{backgroundColor:(s.vars||s).palette[f.color].dark,"@media (hover: none)":{backgroundColor:(s.vars||s).palette[f.color].main}}),"&:active":(0,o.Z)({},"contained"===f.variant&&{boxShadow:(s.vars||s).shadows[8]})},(0,i.default)(n,"&.".concat(g.Z.focusVisible),(0,o.Z)({},"contained"===f.variant&&{boxShadow:(s.vars||s).shadows[6]})),(0,i.default)(n,"&.".concat(g.Z.disabled),(0,o.Z)({color:(s.vars||s).palette.action.disabled},"outlined"===f.variant&&{border:"1px solid ".concat((s.vars||s).palette.action.disabledBackground)},"contained"===f.variant&&{color:(s.vars||s).palette.action.disabled,boxShadow:(s.vars||s).shadows[0],backgroundColor:(s.vars||s).palette.action.disabledBackground})),n),"text"===f.variant&&{padding:"6px 8px"},"text"===f.variant&&"inherit"!==f.color&&{color:(s.vars||s).palette[f.color].main},"outlined"===f.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===f.variant&&"inherit"!==f.color&&{color:(s.vars||s).palette[f.color].main,border:s.vars?"1px solid rgba(".concat(s.vars.palette[f.color].mainChannel," / 0.5)"):"1px solid ".concat((0,c.Fq)(s.palette[f.color].main,.5))},"contained"===f.variant&&{color:s.vars?s.vars.palette.text.primary:null==(r=(a=s.palette).getContrastText)?void 0:r.call(a,s.palette.grey[300]),backgroundColor:s.vars?s.vars.palette.Button.inheritContainedBg:l,boxShadow:(s.vars||s).shadows[2]},"contained"===f.variant&&"inherit"!==f.color&&{color:(s.vars||s).palette[f.color].contrastText,backgroundColor:(s.vars||s).palette[f.color].main},"inherit"===f.color&&{color:"inherit",borderColor:"currentColor"},"small"===f.size&&"text"===f.variant&&{padding:"4px 5px",fontSize:s.typography.pxToRem(13)},"large"===f.size&&"text"===f.variant&&{padding:"8px 11px",fontSize:s.typography.pxToRem(15)},"small"===f.size&&"outlined"===f.variant&&{padding:"3px 9px",fontSize:s.typography.pxToRem(13)},"large"===f.size&&"outlined"===f.variant&&{padding:"7px 21px",fontSize:s.typography.pxToRem(15)},"small"===f.size&&"contained"===f.variant&&{padding:"4px 10px",fontSize:s.typography.pxToRem(13)},"large"===f.size&&"contained"===f.variant&&{padding:"8px 22px",fontSize:s.typography.pxToRem(15)},f.fullWidth&&{width:"100%"})},function(e){var n;return e.ownerState.disableElevation&&(n={boxShadow:"none","&:hover":{boxShadow:"none"}},(0,i.default)(n,"&.".concat(g.Z.focusVisible),{boxShadow:"none"}),(0,i.default)(n,"&:active",{boxShadow:"none"}),(0,i.default)(n,"&.".concat(g.Z.disabled),{boxShadow:"none"}),n)}),A=(0,d.ZP)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:function(e,n){var r=e.ownerState;return[n.startIcon,n["iconSize".concat((0,m.Z)(r.size))]]}})(function(e){var n=e.ownerState;return(0,o.Z)({display:"inherit",marginRight:8,marginLeft:-4},"small"===n.size&&{marginLeft:-2},C(n))}),E=(0,d.ZP)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:function(e,n){var r=e.ownerState;return[n.endIcon,n["iconSize".concat((0,m.Z)(r.size))]]}})(function(e){var n=e.ownerState;return(0,o.Z)({display:"inherit",marginRight:-4,marginLeft:8},"small"===n.size&&{marginRight:-2},C(n))}),I=s.forwardRef(function(e,n){var r=s.useContext(b.Z),i=s.useContext(v.Z),u=(0,l.Z)(r,e),c=(0,h.i)({props:u,name:"MuiButton"}),d=c.children,p=c.color,y=c.component,m=void 0===y?"button":y,g=c.className,C=c.disabled,I=void 0!==C&&C,S=c.disableElevation,k=c.disableFocusRipple,N=void 0!==k&&k,j=c.endIcon,D=c.focusVisibleClassName,_=c.fullWidth,O=c.size,P=c.startIcon,L=c.type,R=c.variant,z=(0,a.Z)(c,x),B=(0,o.Z)({},c,{color:void 0===p?"primary":p,component:m,disabled:I,disableElevation:void 0!==S&&S,disableFocusRipple:N,fullWidth:void 0!==_&&_,size:void 0===O?"medium":O,type:L,variant:void 0===R?"text":R}),U=T(B),F=P&&(0,w.jsx)(A,{className:U.startIcon,ownerState:B,children:P}),Z=j&&(0,w.jsx)(E,{className:U.endIcon,ownerState:B,children:j});return(0,w.jsxs)(M,(0,o.Z)({ownerState:B,className:(0,f.Z)(r.className,U.root,g,i||""),component:m,disabled:I,focusRipple:!N,focusVisibleClassName:(0,f.Z)(U.focusVisible,D),ref:n,type:L},z,{classes:U,children:[F,d,Z]}))});n.Z=I},78874:function(e,n,r){"use strict";r.d(n,{F:function(){return o}});var i=r(1588),a=r(34867);function o(e){return(0,a.ZP)("MuiButton",e)}var s=(0,i.Z)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);n.Z=s},54207:function(e,n,r){"use strict";r.d(n,{Z:function(){return K}});
375var i,a=r(17674),o=r(59499),s=r(87462),f=r(63366),l=r(67294),u=r(90512),c=r(94780),d=r(80179),p=r(93434),h=r(24159),y=r(11825),m=r(39564),g=r(90116),b=r(71383),v=r(97326),w=r(94578),x=r(220);function T(e,n){var r=Object.create(null);return e&&l.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=n&&(0,l.isValidElement)(e)?n(e):e}),r}function C(e,n,r){return null!=r[n]?r[n]:e.props[n]}var M=Object.values||function(e){return Object.keys(e).map(function(n){return e[n]})},A=function(e){function n(n,r){var i,a=(i=e.call(this,n,r)||this).handleExited.bind((0,v.Z)(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}(0,w.Z)(n,e);var r=n.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(e,n){var r,i,a=n.children,o=n.handleExited;return{children:n.firstRender?T(e.children,function(n){return(0,l.cloneElement)(n,{onExited:o.bind(null,n),in:!0,appear:C(n,"appear",e),enter:C(n,"enter",e),exit:C(n,"exit",e)})}):(Object.keys(i=function(e,n){function r(r){return r in n?n[r]:e[r]}e=e||{},n=n||{};var i,a=Object.create(null),o=[];for(var s in e)s in n?o.length&&(a[s]=o,o=[]):o.push(s);var f={};for(var l in n){if(a[l])for(i=0;i<a[l].length;i++){var u=a[l][i];f[a[l][i]]=r(u)}f[l]=r(l)}for(i=0;i<o.length;i++)f[o[i]]=r(o[i]);return f}(a,r=T(e.children))).forEach(function(n){var s=i[n];if((0,l.isValidElement)(s)){var f=n in a,u=n in r,c=a[n],d=(0,l.isValidElement)(c)&&!c.props.in;u&&(!f||d)?i[n]=(0,l.cloneElement)(s,{onExited:o.bind(null,s),in:!0,exit:C(s,"exit",e),enter:C(s,"enter",e)}):u||!f||d?u&&f&&(0,l.isValidElement)(c)&&(i[n]=(0,l.cloneElement)(s,{onExited:o.bind(null,s),in:c.props.in,exit:C(s,"exit",e),enter:C(s,"enter",e)})):i[n]=(0,l.cloneElement)(s,{in:!1})}}),i),firstRender:!1}},r.handleExited=function(e,n){var r=T(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(n),this.mounted&&this.setState(function(n){var r=(0,s.Z)({},n.children);return delete r[e.key],{children:r}}))},r.render=function(){var e=this.props,n=e.component,r=e.childFactory,i=(0,f.Z)(e,["component","childFactory"]),a=this.state.contextValue,o=M(this.state.children).map(r);return(delete i.appear,delete i.enter,delete i.exit,null===n)?l.createElement(x.Z.Provider,{value:a},o):l.createElement(x.Z.Provider,{value:a},l.createElement(n,i,o))},n}(l.Component);A.propTypes={},A.defaultProps={component:"div",childFactory:function(e){return e}};var E,I,S,k,N,j,D,_,O=r(70917),P=r(46271),L=r(85893),R=r(71332),z=["center","classes","className"],B=function(e){return e},U=(0,O.F4)(N||(N=B(E||(E=(0,b.Z)(["\n 0% {\n transform: scale(0);\n opacity: 0.1;\n }\n\n 100% {\n transform: scale(1);\n opacity: 0.3;\n }\n"]))))),F=(0,O.F4)(j||(j=B(I||(I=(0,b.Z)(["\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n"]))))),Z=(0,O.F4)(D||(D=B(S||(S=(0,b.Z)(["\n 0% {\n transform: scale(1);\n }\n\n 50% {\n transform: scale(0.92);\n }\n\n 100% {\n transform: scale(1);\n }\n"]))))),W=(0,d.ZP)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),H=(0,d.ZP)(function(e){var n=e.className,r=e.classes,i=e.pulsate,o=void 0!==i&&i,s=e.rippleX,f=e.rippleY,c=e.rippleSize,d=e.in,p=e.onExited,h=e.timeout,y=l.useState(!1),m=(0,a.Z)(y,2),g=m[0],b=m[1],v=(0,u.Z)(n,r.ripple,r.rippleVisible,o&&r.ripplePulsate),w=(0,u.Z)(r.child,g&&r.childLeaving,o&&r.childPulsate);return d||g||b(!0),l.useEffect(function(){if(!d&&null!=p){var e=setTimeout(p,h);return function(){clearTimeout(e)}}},[p,d,h]),(0,L.jsx)("span",{className:v,style:{width:c,height:c,top:-(c/2)+f,left:-(c/2)+s},children:(0,L.jsx)("span",{className:w})})},{name:"MuiTouchRipple",slot:"Ripple"})(_||(_=B(k||(k=(0,b.Z)(["\n opacity: 0;\n position: absolute;\n\n &."," {\n opacity: 0.3;\n transform: scale(1);\n animation-name: ",";\n animation-duration: ","ms;\n animation-timing-function: ",";\n }\n\n &."," {\n animation-duration: ","ms;\n }\n\n & ."," {\n opacity: 1;\n display: block;\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: currentColor;\n }\n\n & ."," {\n opacity: 0;\n animation-name: ",";\n animation-duration: ","ms;\n animation-timing-function: ",";\n }\n\n & ."," {\n position: absolute;\n /* @noflip */\n left: 0px;\n top: 0;\n animation-name: ",";\n animation-duration: 2500ms;\n animation-timing-function: ",";\n animation-iteration-count: infinite;\n animation-delay: 200ms;\n }\n"])),0,0,0,0,0,0,0,0,0,0,0,0,0,0)),R.Z.rippleVisible,U,550,function(e){return e.theme.transitions.easing.easeInOut},R.Z.ripplePulsate,function(e){return e.theme.transitions.duration.shorter},R.Z.child,R.Z.childLeaving,F,550,function(e){return e.theme.transitions.easing.easeInOut},R.Z.childPulsate,Z,function(e){return e.theme.transitions.easing.easeInOut}),G=l.forwardRef(function(e,n){var r=(0,p.i)({props:e,name:"MuiTouchRipple"}),i=r.center,o=void 0!==i&&i,c=r.classes,d=void 0===c?{}:c,h=r.className,y=(0,f.Z)(r,z),m=l.useState([]),b=(0,a.Z)(m,2),v=b[0],w=b[1],x=l.useRef(0),T=l.useRef(null);l.useEffect(function(){T.current&&(T.current(),T.current=null)},[v]);
375var C=l.useRef(!1),M=(0,P.Z)(),E=l.useRef(null),I=l.useRef(null),S=l.useCallback(function(e){var n=e.pulsate,r=e.rippleX,i=e.rippleY,a=e.rippleSize,o=e.cb;w(function(e){return[].concat((0,g.Z)(e),[(0,L.jsx)(H,{classes:{ripple:(0,u.Z)(d.ripple,R.Z.ripple),rippleVisible:(0,u.Z)(d.rippleVisible,R.Z.rippleVisible),ripplePulsate:(0,u.Z)(d.ripplePulsate,R.Z.ripplePulsate),child:(0,u.Z)(d.child,R.Z.child),childLeaving:(0,u.Z)(d.childLeaving,R.Z.childLeaving),childPulsate:(0,u.Z)(d.childPulsate,R.Z.childPulsate)},timeout:550,pulsate:n,rippleX:r,rippleY:i,rippleSize:a},x.current)])}),x.current+=1,T.current=o},[d]),k=l.useCallback(function(){var e,n,r,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},f=a.pulsate,l=void 0!==f&&f,u=a.center,c=void 0===u?o||a.pulsate:u,d=a.fakeElement;if((null==i?void 0:i.type)==="mousedown"&&C.current){C.current=!1;return}(null==i?void 0:i.type)==="touchstart"&&(C.current=!0);var p=void 0!==d&&d?null:I.current,h=p?p.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(!c&&void 0!==i&&(0!==i.clientX||0!==i.clientY)&&(i.clientX||i.touches)){var y=i.touches&&i.touches.length>0?i.touches[0]:i,m=y.clientX,g=y.clientY;e=Math.round(m-h.left),n=Math.round(g-h.top)}else e=Math.round(h.width/2),n=Math.round(h.height/2);c?(r=Math.sqrt((2*Math.pow(h.width,2)+Math.pow(h.height,2))/3))%2==0&&(r+=1):r=Math.sqrt(Math.pow(2*Math.max(Math.abs((p?p.clientWidth:0)-e),e)+2,2)+Math.pow(2*Math.max(Math.abs((p?p.clientHeight:0)-n),n)+2,2)),null!=i&&i.touches?null===E.current&&(E.current=function(){S({pulsate:l,rippleX:e,rippleY:n,rippleSize:r,cb:s})},M.start(80,function(){E.current&&(E.current(),E.current=null)})):S({pulsate:l,rippleX:e,rippleY:n,rippleSize:r,cb:s})},[o,S,M]),N=l.useCallback(function(){k({},{pulsate:!0})},[k]),j=l.useCallback(function(e,n){if(M.clear(),(null==e?void 0:e.type)==="touchend"&&E.current){E.current(),E.current=null,M.start(0,function(){j(e,n)});return}E.current=null,w(function(e){return e.length>0?e.slice(1):e}),T.current=n},[M]);return l.useImperativeHandle(n,function(){return{pulsate:N,start:k,stop:j}},[N,k,j]),(0,L.jsx)(W,(0,s.Z)({className:(0,u.Z)(R.Z.root,d.root,h),ref:I},y,{children:(0,L.jsx)(A,{component:null,exit:!0,children:v})}))}),q=r(41474),Y=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],V=function(e){var n=e.disabled,r=e.focusVisible,i=e.focusVisibleClassName,a=e.classes,o=(0,c.Z)({root:["root",n&&"disabled",r&&"focusVisible"]},q.$,a);return r&&i&&(o.root+=" ".concat(i)),o},Q=(0,d.ZP)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:function(e,n){return n.root}})((i={display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"}},(0,o.default)(i,"&.".concat(q.Z.disabled),{pointerEvents:"none",cursor:"default"}),(0,o.default)(i,"@media print",{colorAdjust:"exact"}),i)),K=l.forwardRef(function(e,n){var r=(0,p.i)({props:e,name:"MuiButtonBase"}),i=r.action,o=r.centerRipple,c=void 0!==o&&o,d=r.children,g=r.className,b=r.component,v=void 0===b?"button":b,w=r.disabled,x=void 0!==w&&w,T=r.disableRipple,C=void 0!==T&&T,M=r.disableTouchRipple,A=void 0!==M&&M,E=r.focusRipple,I=void 0!==E&&E,S=r.LinkComponent,k=r.onBlur,N=r.onClick,j=r.onContextMenu,D=r.onDragLeave,_=r.onFocus,O=r.onFocusVisible,P=r.onKeyDown,R=r.onKeyUp,z=r.onMouseDown,B=r.onMouseLeave,U=r.onMouseUp,F=r.onTouchEnd,Z=r.onTouchMove,W=r.onTouchStart,H=r.tabIndex,q=void 0===H?0:H,K=r.TouchRippleProps,$=r.touchRippleRef,J=r.type,X=(0,f.Z)(r,Y),ee=l.useRef(null),et=l.useRef(null),en=(0,h.Z)(et,$),er
375=(0,m.Z)(),ei=er.isFocusVisibleRef,ea=er.onFocus,eo=er.onBlur,es=er.ref,ef=l.useState(!1),el=(0,a.Z)(ef,2),eu=el[0],ec=el[1];x&&eu&&ec(!1),l.useImperativeHandle(i,function(){return{focusVisible:function(){ec(!0),ee.current.focus()}}},[]);var ed=l.useState(!1),ep=(0,a.Z)(ed,2),eh=ep[0],ey=ep[1];l.useEffect(function(){ey(!0)},[]);var em=eh&&!C&&!x;function eg(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:A;return(0,y.Z)(function(i){return n&&n(i),!r&&et.current&&et.current[e](i),!0})}l.useEffect(function(){eu&&I&&!C&&eh&&et.current.pulsate()},[C,I,eu,eh]);var eb=eg("start",z),ev=eg("stop",j),ew=eg("stop",D),ex=eg("stop",U),eT=eg("stop",function(e){eu&&e.preventDefault(),B&&B(e)}),eC=eg("start",W),eM=eg("stop",F),eA=eg("stop",Z),eE=eg("stop",function(e){eo(e),!1===ei.current&&ec(!1),k&&k(e)},!1),eI=(0,y.Z)(function(e){ee.current||(ee.current=e.currentTarget),ea(e),!0===ei.current&&(ec(!0),O&&O(e)),_&&_(e)}),eS=function(){var e=ee.current;return v&&"button"!==v&&!("A"===e.tagName&&e.href)},ek=l.useRef(!1),eN=(0,y.Z)(function(e){I&&!ek.current&&eu&&et.current&&" "===e.key&&(ek.current=!0,et.current.stop(e,function(){et.current.start(e)})),e.target===e.currentTarget&&eS()&&" "===e.key&&e.preventDefault(),P&&P(e),e.target===e.currentTarget&&eS()&&"Enter"===e.key&&!x&&(e.preventDefault(),N&&N(e))}),ej=(0,y.Z)(function(e){I&&" "===e.key&&et.current&&eu&&!e.defaultPrevented&&(ek.current=!1,et.current.stop(e,function(){et.current.pulsate(e)})),R&&R(e),N&&e.target===e.currentTarget&&eS()&&" "===e.key&&!e.defaultPrevented&&N(e)}),eD=v;"button"===eD&&(X.href||X.to)&&(eD=void 0===S?"a":S);var e_={};"button"===eD?(e_.type=void 0===J?"button":J,e_.disabled=x):(X.href||X.to||(e_.role="button"),x&&(e_["aria-disabled"]=x));var eO=(0,h.Z)(n,es,ee),eP=(0,s.Z)({},r,{centerRipple:c,component:v,disabled:x,disableRipple:C,disableTouchRipple:A,focusRipple:I,tabIndex:q,focusVisible:eu}),eL=V(eP);return(0,L.jsxs)(Q,(0,s.Z)({as:eD,className:(0,u.Z)(eL.root,g),ownerState:eP,onBlur:eE,onClick:N,onContextMenu:ev,onFocus:eI,onKeyDown:eN,onKeyUp:ej,onMouseDown:eb,onMouseLeave:eT,onMouseUp:ex,onDragLeave:ew,onTouchEnd:eM,onTouchMove:eA,onTouchStart:eC,ref:eO,tabIndex:x?-1:q,type:J},e_,X,{children:[d,em?(0,L.jsx)(G,(0,s.Z)({ref:en,center:c},K)):null]}))})},41474:function(e,n,r){"use strict";r.d(n,{$:function(){return o}});var i=r(1588),a=r(34867);function o(e){return(0,a.ZP)("MuiButtonBase",e)}var s=(0,i.Z)("MuiButtonBase",["root","disabled","focusVisible"]);n.Z=s},71332:function(e,n,r){"use strict";r.d(n,{H:function(){return o}});var i=r(1588),a=r(34867);function o(e){return(0,a.ZP)("MuiTouchRipple",e)}var s=(0,i.Z)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);n.Z=s},10116:function(e,n,r){"use strict";var i=r(67294).createContext(void 0);n.Z=i},56833:function(e,n,r){"use strict";var i=r(67294).createContext({});n.Z=i},24315:function(e,n,r){"use strict";r.d(n,{Z:function(){return A}});var i=r(59499),a=r(63366),o=r(87462),s=r(67294),f=r(90512),l=r(94780),u=r(2101),c=r(46334),d=r(85893),p=(0,c.Z)((0,d.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel"),h=r(24159),y=r(79566),m=r(54207),g=r(93434),b=r(80179),v=r(27028),w=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],x=function(e){var n=e.classes,r=e.disabled,i=e.size,a=e.color,o=e.iconColor,s=e.onDelete,f=e.clickable,u=e.variant,c={root:["root",u,r&&"disabled","size".concat((0,y.Z)(i)),"color".concat((0,y.Z)(a)
375),f&&"clickable",f&&"clickableColor".concat((0,y.Z)(a)),s&&"deletable",s&&"deletableColor".concat((0,y.Z)(a)),"".concat(u).concat((0,y.Z)(a))],label:["label","label".concat((0,y.Z)(i))],avatar:["avatar","avatar".concat((0,y.Z)(i)),"avatarColor".concat((0,y.Z)(a))],icon:["icon","icon".concat((0,y.Z)(i)),"iconColor".concat((0,y.Z)(o))],deleteIcon:["deleteIcon","deleteIcon".concat((0,y.Z)(i)),"deleteIconColor".concat((0,y.Z)(a)),"deleteIcon".concat((0,y.Z)(u),"Color").concat((0,y.Z)(a))]};return(0,l.Z)(c,v.z,n)},T=(0,b.ZP)("div",{name:"MuiChip",slot:"Root",overridesResolver:function(e,n){var r=e.ownerState,a=r.color,o=r.iconColor,s=r.clickable,f=r.onDelete,l=r.size,u=r.variant;return[(0,i.default)({},"& .".concat(v.Z.avatar),n.avatar),(0,i.default)({},"& .".concat(v.Z.avatar),n["avatar".concat((0,y.Z)(l))]),(0,i.default)({},"& .".concat(v.Z.avatar),n["avatarColor".concat((0,y.Z)(a))]),(0,i.default)({},"& .".concat(v.Z.icon),n.icon),(0,i.default)({},"& .".concat(v.Z.icon),n["icon".concat((0,y.Z)(l))]),(0,i.default)({},"& .".concat(v.Z.icon),n["iconColor".concat((0,y.Z)(o))]),(0,i.default)({},"& .".concat(v.Z.deleteIcon),n.deleteIcon),(0,i.default)({},"& .".concat(v.Z.deleteIcon),n["deleteIcon".concat((0,y.Z)(l))]),(0,i.default)({},"& .".concat(v.Z.deleteIcon),n["deleteIconColor".concat((0,y.Z)(a)
375)]),(0,i.default)({},"& .".concat(v.Z.deleteIcon),n["deleteIcon".concat((0,y.Z)(u),"Color").concat((0,y.Z)(a))]),n.root,n["size".concat((0,y.Z)(l))],n["color".concat((0,y.Z)(a))],s&&n.clickable,s&&"default"!==a&&n["clickableColor".concat((0,y.Z)(a),")")],f&&n.deletable,f&&"default"!==a&&n["deletableColor".concat((0,y.Z)(a))],n[u],n["".concat(u).concat((0,y.Z)(a))]]}})(function(e){var n,r=e.theme,a=e.ownerState,s="light"===r.palette.mode?r.palette.grey[700]:r.palette.grey[300];return(0,o.Z)((n={maxWidth:"100%",fontFamily:r.typography.fontFamily,fontSize:r.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(r.vars||r).palette.text.primary,backgroundColor:(r.vars||r).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:r.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box"},(0,i.default)(n,"&.".concat(v.Z.disabled),{opacity:(r.vars||r).palette.action.disabledOpacity,pointerEvents:"none"}),(0,i.default)(n,"& .".concat(v.Z.avatar),{marginLeft:5,marginRight:-6,width:24,height:24,color:r.vars?r.vars.palette.Chip.defaultAvatarColor:s,fontSize:r.typography.pxToRem(12)}),(0,i.default)(n,"& .".concat(v.Z.avatarColorPrimary),{color:(r.vars||r).palette.primary.contrastText,backgroundColor:(r.vars||r).palette.primary.dark}),(0,i.default)(n,"& .".concat(v.Z.avatarColorSecondary),{color:(r.vars||r).palette.secondary.contrastText,backgroundColor:(r.vars||r).palette.secondary.dark}),(0,i.default)(n,"& .".concat(v.Z.avatarSmall),{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:r.typography.pxToRem(10)}),(0,i.default)(n,"& .".concat(v.Z.icon),(0,o.Z)({marginLeft:5,marginRight:-6},"small"===a.size&&{fontSize:18,marginLeft:4,marginRight:-4},a.iconColor===a.color&&(0,o.Z)({color:r.vars?r.vars.palette.Chip.defaultIconColor:s},"default"!==a.color&&{color:"inherit"}))),(0,i.default)(n,"& .".concat(v.Z.deleteIcon),(0,o.Z)({WebkitTapHighlightColor:"transparent",color:r.vars?"rgba(".concat(r.vars.palette.text.primaryChannel," / 0.26)"):(0,u.Fq)(r.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:r.vars?"rgba(".concat(r.vars.palette.text.primaryChannel," / 0.4)"):(0,u.Fq)(r.palette.text.primary,.4)}},"small"===a.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==a.color&&{color:r.vars?"rgba(".concat(r.vars.palette[a.color].contrastTextChannel," / 0.7)"):(0,u.Fq)(r.palette[a.color].contrastText,.7),"&:hover, &:active":{color:(r.vars||r).palette[a.color].contrastText}})),n),"small"===a.size&&{height:24},"default"!==a.color&&{backgroundColor:(r.vars||r).palette[a.color].main,color:(r.vars||r).palette[a.color].contrastText},a.onDelete&&(0,i.default)({},"&.".concat(v.Z.focusVisible),{backgroundColor:r.vars?"rgba(".concat(r.vars.palette.action.selectedChannel," / calc(").concat(r.vars.palette.action.selectedOpacity," + ").concat(r.vars.palette.action.focusOpacity,"))"):(0,u.Fq)(r.palette.action.selected,r.palette.action.selectedOpacity+r.palette.action.focusOpacity)}),a.onDelete&&"default"!==a.color&&(0,i.default)({},"&.".concat(v.Z.focusVisible),{backgroundColor:(r.vars||r).palette[a.color].dark}))},function(e){var n,r=e.theme,a=e.ownerState;return(0,o.Z)({},a.clickable&&(n={userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:r.vars?"rgba(".concat(r.vars.palette.action.selectedChannel," / calc(").concat(r.vars.palette.action.selectedOpacity," + ").concat(r.vars.palette.action.hoverOpacity,"))"):(0,u.Fq)(r.palette.action.selected,r.palette.action.selectedOpacity+r.palette.action.hoverOpacity)}},(0,i.default)(n,"&.".concat(v.Z.focusVisible),{backgroundColor:r.vars?"rgba(".concat(r.vars.palette.action.selectedChannel," / calc(").concat(r.vars.palette.action.selectedOpacity," + ").concat(r.vars.palette.action.focusOpacity,"))"):(0,u.Fq)(r.palette.action.selected,r.palette.action.selectedOpacity+r.palette.action.focusOpacity)}),(0,i.default)(n,"&:active",{boxShadow:(r.vars||r).shadows[1]}),n),a.clickable&&"default"!==a.color&&(0,i.default)({},"&:hover, &.".concat(v.Z.focusVisible),{backgroundColor:(r.vars||r).palette[a.color].dark}))},function(e){var n,r,a=e.theme,s=e.ownerState;return(0,o.Z)({},"outlined"===s.variant&&(n={backgroundColor:"transparent",border:a.vars?"1px solid ".concat(a.vars.palette.Chip.defaultBorder):"1px solid ".concat("light"===a.palette.mode?a.palette.grey[400]:a.palette.grey[700])},(0,i.default)(n,"&.".concat(v.Z.clickable,":hover"),{backgroundColor:(a.vars||a).palette.action.hover}),(0,i.default)(n,"&.".concat(v.Z.focusVisible),{backgroundColor:(a.vars||a).palette.action.focus}),(0,i.default)(n,"& .".concat(v.Z.avatar),{marginLeft:4}),(0,i.default)(n,"& .".concat(v.Z.avatarSmall),{marginLeft:2}),(0,i.default)(n,"& .".concat(v.Z.icon),{marginLeft:4}),(0,i.default)(n,"& .".concat(v.Z.iconSmall),{marginLeft:2}),(0,i.default)(n,"& .".concat(v.Z.deleteIcon),{marginRight:5}),(0,i.default)(n,"& .".concat(v.Z.deleteIconSmall),{marginRight:3}),n),"outlined"===s.variant&&"default"!==s.color&&(r={color:(a.vars||a).palette[s.color].main,border:"1px solid ".concat(a.vars?"rgba(".concat(a.vars.palette[s.color].mainCh
375annel," / 0.7)"):(0,u.Fq)(a.palette[s.color].main,.7))},(0,i.default)(r,"&.".concat(v.Z.clickable,":hover"),{backgroundColor:a.vars?"rgba(".concat(a.vars.palette[s.color].mainChannel," / ").concat(a.vars.palette.action.hoverOpacity,")"):(0,u.Fq)(a.palette[s.color].main,a.palette.action.hoverOpacity)}),(0,i.default)(r,"&.".concat(v.Z.focusVisible),{backgroundColor:a.vars?"rgba(".concat(a.vars.palette[s.color].mainChannel," / ").concat(a.vars.palette.action.focusOpacity,")"):(0,u.Fq)(a.palette[s.color].main,a.palette.action.focusOpacity)}),(0,i.default)(r,"& .".concat(v.Z.deleteIcon),{color:a.vars?"rgba(".concat(a.vars.palette[s.color].mainChannel," / 0.7)"):(0,u.Fq)(a.palette[s.color].main,.7),"&:hover, &:active":{color:(a.vars||a).palette[s.color].main}}),r))}),C=(0,b.ZP)("span",{name:"MuiChip",slot:"Label",overridesResolver:function(e,n){var r=e.ownerState.size;return[n.label,n["label".concat((0,y.Z)(r))]]}})(function(e){var n=e.ownerState;return(0,o.Z)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"outlined"===n.variant&&{paddingLeft:11,paddingRight:11},"small"===n.size&&{paddingLeft:8,paddingRight:8},"small"===n.size&&"outlined"===n.variant&&{paddingLeft:7,paddingRight:7})});function M(e){return"Backspace"===e.key||"Delete"===e.key}var A=s.forwardRef(function(e,n){var r=(0,g.i)({props:e,name:"MuiChip"}),i=r.avatar,l=r.className,u=r.clickable,c=r.color,y=void 0===c?"default":c,b=r.component,v=r.deleteIcon,A=r.disabled,E=void 0!==A&&A,I=r.icon,S=r.label,k=r.onClick,N=r.onDelete,j=r.onKeyDown,D=r.onKeyUp,_=r.size,O=r.variant,P=r.tabIndex,L=r.skipFocusWhenDisabled,R=(0,a.Z)(r,w),z=s.useRef(null),B=(0,h.Z)(z,n),U=function(e){e.stopPropagation(),N&&N(e)},F=!1!==u&&!!k||u,Z=F||N?m.Z:b||"div",W=(0,o.Z)({},r,{component:Z,disabled:E,size:void 0===_?"medium":_,color:y,iconColor:s.isValidElement(I)&&I.props.color||y,onDelete:!!N,clickable:F,variant:void 0===O?"filled":O}),H=x(W),G=Z===m.Z?(0,o.Z)({component:b||"div",focusVisibleClassName:H.focusVisible},N&&{disableRipple:!0}):{},q=null;N&&(q=v&&s.isValidElement(v)?s.cloneElement(v,{className:(0,f.Z)(v.props.className,H.deleteIcon),onClick:U}):(0,d.jsx)(p,{className:(0,f.Z)(H.deleteIcon),onClick:U}));var Y=null;i&&s.isValidElement(i)&&(Y=s.cloneElement(i,{className:(0,f.Z)(H.avatar,i.props.className)}));var V=null;return I&&s.isValidElement(I)&&(V=s.cloneElement(I,{className:(0,f.Z)(H.icon,I.props.className)})),(0,d.jsxs)(T,(0,o.Z)({as:Z,className:(0,f.Z)(H.root,l),disabled:!!F&&!!E||void 0,onClick:k,onKeyDown:function(e){e.currentTarget===e.target&&M(e)&&e.preventDefault(),j&&j(e)},onKeyUp:function(e){e.currentTarget===e.target&&(N&&M(e)?N(e):"Escape"===e.key&&z.current&&z.current.blur()),D&&D(e)},ref:B,tabIndex:void 0!==L&&L&&E?-1:P,ownerState:W},G,R,{children:[Y||V,(0,d.jsx)(C,{className:(0,f.Z)(H.label),ownerState:W,children:S}),q]}))})},27028:function(e,n,r){"use strict";r.d(n,{z:function(){return o}});var i=r(1588),a=r(34867);function o(e){return(0,a.ZP)("MuiChip",e)}var s=(0,i.Z)("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]);n.Z=s},91983:function(e,n,r){"use strict";var i,a,o,s,f,l,u,c,d=r(71383),p=r(63366),h=r(87462),y=r(67294),m=r(90512),g=r(94780),b=r(70917),v=r(79566),w=r(93434),x=r(80179),T=r(7641),C=r(85893),M=["className","color","disableShrink","size","style","thickness","value","variant"],A=function(e){return e},E=(0,b.F4)(f||(f=A(i||(i=(0,d.Z)(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }
375\n"]))))),I=(0,b.F4)(l||(l=A(a||(a=(0,d.Z)(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"]))))),S=function(e){var n=e.classes,r=e.variant,i=e.color,a=e.disableShrink,o={root:["root",r,"color".concat((0,v.Z)(i))],svg:["svg"],circle:["circle","circle".concat((0,v.Z)(r)),a&&"circleDisableShrink"]};return(0,g.Z)(o,T.C,n)},k=(0,x.ZP)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:function(e,n){var r=e.ownerState;return[n.root,n[r.variant],n["color".concat((0,v.Z)(r.color))]]}})(function(e){var n=e.ownerState,r=e.theme;return(0,h.Z)({display:"inline-block"},"determinate"===n.variant&&{transition:r.transitions.create("transform")},"inherit"!==n.color&&{color:(r.vars||r).palette[n.color].main})},function(e){return"indeterminate"===e.ownerState.variant&&(0,b.iv)(u||(u=A(o||(o=(0,d.Z)(["\n animation: "," 1.4s linear infinite;\n "])),0)),E)}),N=(0,x.ZP)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:function(e,n){return n.svg}})({display:"block"}),j=(0,x.ZP)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:function(e,n){var r=e.ownerState;return[n.circle,n["circle".concat((0,v.Z)(r.variant))],r.disableShrink&&n.circleDisableShrink]}})(function(e){var n=e.ownerState,r=e.theme;return(0,h.Z)({stroke:"currentColor"},"determinate"===n.variant&&{transition:r.transitions.create("stroke-dashoffset")},"indeterminate"===n.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})},function(e){var n=e.ownerState;return"indeterminate"===n.variant&&!n.disableShrink&&(0,b.iv)(c||(c=A(s||(s=(0,d.Z)(["\n animation: "," 1.4s ease-in-out infinite;\n "])),0)),I)}),D=y.forwardRef(function(e,n){var r=(0,w.i)({props:e,name:"MuiCircularProgress"}),i=r.className,a=r.color,o=r.disableShrink,s=r.size,f=void 0===s?40:s,l=r.style,u=r.thickness,c=void 0===u?3.6:u,d=r.value,y=void 0===d?0:d,g=r.variant,b=void 0===g?"indeterminate":g,v=(0,p.Z)(r,M),x=(0,h.Z)({},r,{color:void 0===a?"primary":a,disableShrink:void 0!==o&&o,size:f,thickness:c,value:y,variant:b}),T=S(x),A={},E={},I={};if("determinate"===b){var D=2*Math.PI*((44-c)/2);A.strokeDasharray=D.toFixed(3),I["aria-valuenow"]=Math.round(y),A.strokeDashoffset="".concat(((100-y)/100*D).toFixed(3),"px"),E.transform="rotate(-90deg)"}return(0,C.jsx)(k,(0,h.Z)({className:(0,m.Z)(T.root,i),style:(0,h.Z)({width:f,height:f},E,l),ownerState:x,ref:n,role:"progressbar"},I,v,{children:(0,C.jsx)(N,{className:T.svg,ownerState:x,viewBox:"".concat(22," ").concat(22," ").concat(44," ").concat(44),children:(0,C.jsx)(j,{className:T.circle,style:A,ownerState:x,cx:44,cy:44,r:(44-c)/2,fill:"none",strokeWidth:c})})}))});n.Z=D},7641:function(e,n,r){"use strict";r.d(n,{C:function(){return o}});var i=r(1588),a=r(34867);function o(e){return(0,a.ZP)("MuiCircularProgress",e)}var s=(0,i.Z)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);n.Z=s},82749:function(e,n,r){"use strict";r.d(n,{d:function(){return u}});var i=r(67294),a=r(33703),o=r(59948),s=r(82690),f=r(85893);function l(e){return e.substring(2).toLowerCase()}function u(e){var n=e.children,r=e.disableReactTree,u=void 0!==r&&r,c=e.mouseEvent,d=void 0===c?"onClick":c,p=e.onClickAway,h=e.touchEvent,y=void 0===h?"onTouchEnd":h,m=i.useRef(!1),g=i.useRef(null),b=i.useRef(!1),v=i.useRef(!1);i.useEffect(function(){return setTimeout(function(){b.current=!0},0),function(){b.current=!1}},[]);var w=(0,a.Z)(n.ref,g),x=(0,o.Z)(function(e){var n=v.current;v.current=!1;var r=(0,s.Z)(g.current);if(b.current&&g.current&&(!("clientX"in e)||!(r.documentElement.clientWidth<e.clientX)&&!(r.documentElement.clientHeight<e.clientY))){if(m.current){m.current=!1;return}(e.composedPath?e.composedPath().indexOf(g.current)>-1:!r.documentElement.contains(e.target)||g.current.contains(e.target))||!u&&n||p(e)}}),T=function(e){return function(r){v.current=!0;var i=n.props[e];i&&i(r)}},C={ref:w};return!1!==y&&(C[y]=T(y)),i.useEffect(function(){if(!1!==y){var e=l(y),n=(0,s.Z)(g.current),r=function(){m.current=!0};return n.addEventListener(e,x),n.addEventListener("touchmove",r),function(){n.removeEventListener(e,x),n.removeEventListener("touchmove",r)}}},[x,y]),!1!==d&&(C[d]=T(d)),i.useEffect(function(){if(!1!==d){var e=l(d),n=(0,s.Z)(g.current);return n.addEventListener(e,x),function(){n.removeEventListener(e,x)}}},[x,d]),(0,f.jsx)(i.Fragment,{children:i.cloneElement(n,C)})}},86450:function(e,n,r){"use strict";r.d(n,{d1:function(){return c},dy:function(){return u}});var i=r(17674),a=r(87462),o=r(67294),s=r(93434),f=r(76731),l=r(85893),u=function(e,n){return(0,a.Z)({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},n&&!e.vars&&{colorScheme:e.palette.mode})},c=function(e){return(0,a.Z)({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}})},d=function(e){var n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={};
375r&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(function(n){var r,a=(0,i.Z)(n,2),s=a[0],f=a[1];o[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:null==(r=f.palette)?void 0:r.mode}});var s=(0,a.Z)({html:u(e,r),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:(0,a.Z)({margin:0},c(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},o),f=null==(n=e.components)||null==(n=n.MuiCssBaseline)?void 0:n.styleOverrides;return f&&(s=[s,f]),s};n.ZP=function(e){var n=(0,s.i)({props:e,name:"MuiCssBaseline"}),r=n.children,i=n.enableColorScheme,a=void 0!==i&&i;return(0,l.jsxs)(o.Fragment,{children:[(0,l.jsx)(f.Z,{styles:function(e){return d(e,a)}}),r]})}},93434:function(e,n,r){"use strict";r.d(n,{i:function(){return a}}),r(67294);var i=r(32842);function a(e){return(0,i.i)(e)}r(85893)},24383:function(e,n,r){"use strict";var i=r(59499),a=r(63366),o=r(87462),s=r(67294),f=r(90512),l=r(94780),u=r(92996),c=r(79566),d=r(30821),p=r(26491),h=r(69900),y=r(93434),m=r(80179),g=r(43273),b=r(9264),v=r(35811),w=r(66884),x=r(85893),T=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],C=(0,m.ZP)(v.Z,{name:"MuiDialog",slot:"Backdrop",overrides:function(e,n){return n.backdrop}})({zIndex:-1}),M=function(e){var n=e.classes,r=e.scroll,i=e.maxWidth,a=e.fullWidth,o=e.fullScreen,s={root:["root"],container:["container","scroll".concat((0,c.Z)(r))],paper:["paper","paperScroll".concat((0,c.Z)(r)),"paperWidth".concat((0,c.Z)(String(i))),a&&"paperFullWidth",o&&"paperFullScreen"]};return(0,l.Z)(s,g.D,n)},A=(0,m.ZP)(d.Z,{name:"MuiDialog",slot:"Root",overridesResolver:function(e,n){return n.root}})({"@media print":{position:"absolute !important"}}),E=(0,m.ZP)("div",{name:"MuiDialog",slot:"Container",overridesResolver:function(e,n){var r=e.ownerState;return[n.container,n["scroll".concat((0,c.Z)(r.scroll))]]}})(function(e){var n=e.ownerState;return(0,o.Z)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===n.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===n.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})}),I=(0,m.ZP)(h.Z,{name:"MuiDialog",slot:"Paper",overridesResolver:function(e,n){var r=e.ownerState;return[n.paper,n["scrollPaper".concat((0,c.Z)(r.scroll))],n["paperWidth".concat((0,c.Z)(String(r.maxWidth)))],r.fullWidth&&n.paperFullWidth,r.fullScreen&&n.paperFullScreen]}})(function(e){var n=e.theme,r=e.ownerState;return(0,o.Z)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===r.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===r.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!r.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===r.maxWidth&&(0,i.default)({maxWidth:"px"===n.breakpoints.unit?Math.max(n.breakpoints.values.xs,444):"max(".concat(n.breakpoints.values.xs).concat(n.breakpoints.unit,", 444px)")},"&.".concat(g.Z.paperScrollBody),(0,i.default)({},n.breakpoints.down(Math.max(n.breakpoints.values.xs,444)+64),{maxWidth:"calc(100% - 64px)"})),r.maxWidth&&"xs"!==r.maxWidth&&(0,i.default)({maxWidth:"".concat(n.breakpoints.values[r.maxWidth]).concat(n.breakpoints.unit)},"&.".concat(g.Z.paperScrollBody),(0,i.default)({},n.breakpoints.down(n.breakpoints.values[r.maxWidth]+64),{maxWidth:"calc(100% - 64px)"})),r.fullWidth&&{width:"calc(100% - 64px)"},r.fullScreen&&(0,i.default)({margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0},"&.".concat(g.Z.paperScrollBody),{margin:0,maxWidth:"100%"}))}),S=s.forwardRef(function(e,n){var r=(0,y.i)({props:e,name:"MuiDialog"}),i=(0,w.Z)(),l={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},c=r["aria-describedby"],d=r["aria-labelledby"],m=r.BackdropComponent,g=r.BackdropProps,v=r.children,S=r.className,k=r.disableEscapeKeyDown,N=void 0!==k&&k,j=r.fullScreen,D=r.fullWidth,_=r.maxWidth,O=r.onBackdropClick,P=r.onClick,L=r.onClose,R=r.open,z=r.PaperComponent,B=void 0===z?h.Z:z,U=r.PaperProps,F=void 0===U?{}:U,Z=r.scroll,W=r.TransitionComponent,H=void 0===W?p.Z:W,G=r.transitionDuration,q=void 0===G?l:G,Y=r.TransitionProps,V=(0,a.Z)(r,T),Q=(0,o.Z)({},r,{disableEscapeKeyDown:N,fullScreen:void 0!==j&&j,fullWidth:void 0!==D&&D,maxWidth:void 0===_?"sm":_,scroll:void 0===Z?"paper":Z}),K=M(Q),$=s.useRef(),J=(0,u.Z)(d),X=s.useMemo(function(){return{titleId:J}},[J]);return(0,x.jsx)(A,(0,o.Z)({className:(0,f.Z)(K.root,S),closeAfterTransition:!0,components:{Backdrop:C},componentsProps:{backdrop:(0,o.Z)({transitionDuration:q,as:m},g)},disableEscapeKeyDown:N,onClose:L,open:R,ref:n,onClick:function(e){P&&P(e),$.current&&($.current=null,O&&O(e),L&&L(e,"backdropClick"))},ownerState:Q},V,{children:(0,x.jsx)(H,(0,o.Z)({appear:!0,in:R,timeout:q,role:"presentation"},Y,{children:(0,x.jsx)(E,{className:(0,f.Z)(K.container),onMouseDown:function(e){$.current=e.target===e.currentTarget},ownerState:Q,children:(0,x.jsx)(I,(0,o.Z)({as:B,elevation:24,role:"dialog","aria-describedby":c,"aria-labelledby":J},F,{className:(0,f.Z)(K.paper,F.className),ownerState:Q,children:(0,x.jsx)(b.Z.Provider,{value:X,children:v})}))})}))}))});n.Z=S},9264:function(e,n,r){"use strict";var i=r(67294).createContext({});n.Z=i},43273:function(e,n,r){"use strict";r.d(n,{D:function(){return o}});var i=r(1588),a=r(34867);function o(e){return(0,a.ZP)("MuiDialog",e)}var s=(0,i.Z)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);n.Z=s},44629:function(e,n,r){"use strict";var i=r(63366),a=r(87462),o=r(67294),s=r(90512),f=r(94780),l=r(80179),u=r(93434),c=r(81442),d=r(85893),p=["className","disableSpacing"],h=function(e){var n=e.classes,r=e.disableSpacing;return(0,f.Z)({root:["root",!r&&"spacing"]},c.d,n)},y=(0,l.ZP)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:function(e,n){var r=e.ownerState;return[n.root,!r.disableSpacing&&n.spacing]}})(function(e){var n=e.ownerState;return(0,a.Z)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!n.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})}),m=o.forwardRef(function(e,n){var r=(0,u.i)({props:e,name:"MuiDialogActions"}),o=r.className,f=r.disableSpacing,l=(0,i.Z)(r,p),c=(0,a.Z)({},r,{disableSpacing:void 0!==f&&f}),m=h(c);return(0,d.jsx)(y,(0,a.Z)({className:(0,s.Z)(m.root,o),ownerState:c,ref:n},l))});n.Z=m},81442:function(e,n,r){"use strict";r.d(n,{d:function(){return o}});var i=r(1588),a=r(34867);function o(e){return(0,a.ZP)("MuiDialogActions",e)}var s=(0,i.Z)("MuiDialogActions",["root","spacing"]);n.Z=s},96141:function(e,n,r){"use strict";var i=r(59499),a=r(63366),o=r(87462),s=r(67294),f=r(90512),l=r(94780),u=r(80179),c=r(93434),d=r(82205),p=r(25177),h=r(85893),y=["className","dividers"],m=function(e){var n=e.classes,r=e.dividers;
375return(0,l.Z)({root:["root",r&&"dividers"]},d.G,n)},g=(0,u.ZP)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:function(e,n){var r=e.ownerState;return[n.root,r.dividers&&n.dividers]}})(function(e){var n=e.theme,r=e.ownerState;return(0,o.Z)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},r.dividers?{padding:"16px 24px",borderTop:"1px solid ".concat((n.vars||n).palette.divider),borderBottom:"1px solid ".concat((n.vars||n).palette.divider)}:(0,i.default)({},".".concat(p.Z.root," + &"),{paddingTop:0}))}),b=s.forwardRef(function(e,n){var r=(0,c.i)({props:e,name:"MuiDialogContent"}),i=r.className,s=r.dividers,l=(0,a.Z)(r,y),u=(0,o.Z)({},r,{dividers:void 0!==s&&s}),d=m(u);return(0,h.jsx)(g,(0,o.Z)({className:(0,f.Z)(d.root,i),ownerState:u,ref:n},l))});n.Z=b},82205:function(e,n,r){"use strict";r.d(n,{G:function(){return o}});var i=r(1588),a=r(34867);function o(e){return(0,a.ZP)("MuiDialogContent",e)}var s=(0,i.Z)("MuiDialogContent",["root","dividers"]);n.Z=s},80601:function(e,n,r){"use strict";var i=r(63366),a=r(87462),o=r(67294),s=r(90512),f=r(94780),l=r(80179),u=r(98425),c=r(93434),d=r(86173),p=r(85790),h=r(85893),y=["children","className"],m=function(e){var n=e.classes,r=(0,f.Z)({root:["root"]},p.i,n);return(0,a.Z)({},n,r)},g=(0,l.ZP)(d.Z,{shouldForwardProp:function(e){return(0,u.Z)(e)||"classes"===e},name:"MuiDialogContentText",slot:"Root",overridesResolver:function(e,n){return n.root}})({}),b=o.forwardRef(function(e,n){var r=(0,c.i)({props:e,name:"MuiDialogContentText"}),o=r.className,f=(0,i.Z)(r,y),l=m(f);return(0,h.jsx)(g,(0,a.Z)({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:f,className:(0,s.Z)(l.root,o)},r,{classes:l}))});n.Z=b},85790:function(e,n,r){"use strict";r.d(n,{i:function(){return o}});var i=r(1588),a=r(34867);function o(e){return(0,a.ZP)("MuiDialogContentText",e)}var s=(0,i.Z)("MuiDialogContentText",["root"]);n.Z=s},8091:function(e,n,r){"use strict";var i=r(87462),a=r(63366),o=r(67294),s=r(90512),f=r(94780),l=r(86173),u=r(80179),c=r(93434),d=r(25177),p=r(9264),h=r(85893),y=["className","id"],m=function(e){var n=e.classes;return(0,f.Z)({root:["root"]},d.a,n)},g=(0,u.ZP)(l.Z,{name:"MuiDialogTitle",slot:"Root",overridesResolver:function(e,n){return n.root}})({padding:"16px 24px",flex:"0 0 auto"}),b=o.forwardRef(function(e,n){var r=(0,c.i)({props:e,name:"MuiDialogTitle"}),f=r.className,l=r.id,u=(0,a.Z)(r,y),d=m(r),b=o.useContext(p.Z).titleId,v=void 0===b?l:b;return(0,h.jsx)(g,(0,i.Z)({component:"h2",className:(0,s.Z)(d.root,f),ownerState:r,ref:n,variant:"h6",id:null!=l?l:v},u))});n.Z=b},25177:function(e,n,r){"use strict";r.d(n,{a:function(){return o}});var i=r(1588),a=r(34867);function o(e){return(0,a.ZP)("MuiDialogTitle",e)}var s=(0,i.Z)("MuiDialogTitle",["root"]);n.Z=s},37545:function(e,n,r){"use strict";var i=r(63366),a=r(87462),o=r(67294),s=r(90512),f=r(94780),l=r(2101),u=r(80179),c=r(93434),d=r(94205),p=r(85893),h=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],y=function(e){var n=e.absolute,r=e.children,i=e.classes,a=e.flexItem,o=e.light,s=e.orientation,l=e.textAlign,u=e.variant;return(0,f.Z)({root:["root",n&&"absolute",u,o&&"light","vertical"===s&&"vertical",a&&"flexItem",r&&"withChildren",r&&"vertical"===s&&"withChildrenVertical","right"===l&&"vertical"!==s&&"textAlignRight","left"===l&&"vertical"!==s&&"textAlignLeft"],wrapper:["wrapper","vertical"===s&&"wrapperVertical"]},d.V,i)},m=(0,u.ZP)("div",{name:"MuiDivider",slot:"Root",overridesResolver:function(e,n){var r=e.ownerState;return[n.root,r.absolute&&n.absolute,n[r.variant],r.light&&n.light,"vertical"===r.orientation&&n.vertical,r.flexItem&&n.flexItem,r.children&&n.withChildren,r.children&&"vertical"===r.orientation&&n.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&n.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&n.textAlignLeft]}})(function(e){var n=e.theme,r=e.ownerState;return(0,a.Z)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(n.vars||n).palette.divider,borderBottomWidth:"thin"},r.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},r.light&&{borderColor:n.vars?"rgba(".concat(n.vars.palette.dividerChannel," / 0.08)"):(0,l.Fq)(n.palette.divider,.08)},"inset"===r.variant&&{marginLeft:72},"middle"===r.variant&&"horizontal"===r.orientation&&{marginLeft:n.spacing(2),marginRight:n.spacing(2)},"middle"===r.variant&&"vertical"===r.orientation&&{marginTop:n.spacing(1),marginBottom:n.spacing(1)},"vertical"===r.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},r.flexItem&&{alignSelf:"stretch",height:"auto"})},function(e){var n=e.ownerState;return(0,a.Z)({},n.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})},function(e){var n=e.theme,r=e.ownerState;return(0,a.Z)({},r.children&&"vertical"!==r.orientation&&{"&::before, &::after":{width:"100%",borderTop:"thin solid ".concat((n.vars||n).palette.divider)}})},function(e){var n=e.theme,r=e.ownerState;return(0,a.Z)({},r.children&&"vertical"===r.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:"thin solid ".concat((n.vars||n).palette.divider)}})},function(e){var n=e.ownerState;return(0,a.Z)({},"right"===n.textAlign&&"vertical"!==n.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===n.textAlign&&"vertical"!==n.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})}),g=(0,u.ZP)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:function(e,n){var r=e.ownerState;return[n.wrapper,"vertical"===r.orientation&&n.wrapperVertical]}})(function(e){var n=e.theme,r=e.ownerState;return(0,a.Z)({display:"inline-block",paddingLeft:"calc(".concat(n.spacing(1)," * 1.2)"),paddingRight:"calc(".concat(n.spacing(1)," * 1.2)")},"vertical"===r.orientation&&{paddingTop:"calc(".concat(n.spacing(1)," * 1.2)"),paddingBottom:"calc(".concat(n.spacing(1)," * 1.2)")})}),b=o.forwardRef(function(e,n){var r=(0,c.i)({props:e,name:"MuiDivider"}),o=r.absolute,f=r.children,l=r.className,u=r.component,d=void 0===u?f?"div":"hr":u,b=r.flexItem,v=r.light,w=r.orientation,x=r.role,T=void 0===x?"hr"!==d?"separator":void 0:x,C=r.textAlign,M=r.variant,A=(0,i.Z)(r,h),E=(0,a.Z)({},r,{absolute:void 0!==o&&o,component:d,flexItem:void 0!==b&&b,light:void 0!==v&&v,orientation:void 0===w?"horizontal":w,role:T,textAlign:void 0===C?"center":C,variant:void 0===M?"fullWidth":M}),I=y(E);return(0,p.jsx)(m,(0,a.Z)({as:d,className:(0,s.Z)(I.root,l),role:T,ref:n,ownerState:E},A,{children:f?(0,p.jsx)(g,{className:I.wrapper,ownerState:E,children:f}):null}))});b.muiSkipListHighlight=!0,n.Z=b},94205:function(e,n,r){"use strict";
375r.d(n,{V:function(){return o}});var i=r(1588),a=r(34867);function o(e){return(0,a.ZP)("MuiDivider",e)}var s=(0,i.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);n.Z=s},26491:function(e,n,r){"use strict";var i=r(87462),a=r(63366),o=r(67294),s=r(8662),f=r(66884),l=r(53853),u=r(24159),c=r(85893),d=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],p={entering:{opacity:1},entered:{opacity:1}},h=o.forwardRef(function(e,n){var r=(0,f.Z)(),h={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},y=e.addEndListener,m=e.appear,g=e.children,b=e.easing,v=e.in,w=e.onEnter,x=e.onEntered,T=e.onEntering,C=e.onExit,M=e.onExited,A=e.onExiting,E=e.style,I=e.timeout,S=void 0===I?h:I,k=e.TransitionComponent,N=void 0===k?s.ZP:k,j=(0,a.Z)(e,d),D=o.useRef(null),_=(0,u.Z)(D,g.ref,n),O=function(e){return function(n){if(e){var r=D.current;void 0===n?e(r):e(r,n)}}},P=O(T),L=O(function(e,n){(0,l.n)(e);var i=(0,l.C)({style:E,timeout:S,easing:b},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",i),e.style.transition=r.transitions.create("opacity",i),w&&w(e,n)}),R=O(x),z=O(A),B=O(function(e){var n=(0,l.C)({style:E,timeout:S,easing:b},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),C&&C(e)}),U=O(M);return(0,c.jsx)(N,(0,i.Z)({appear:void 0===m||m,in:v,nodeRef:D,onEnter:L,onEntered:R,onEntering:P,onExit:B,onExited:U,onExiting:z,addEndListener:function(e){y&&y(D.current,e)},timeout:S},j,{children:function(e,n){return o.cloneElement(g,(0,i.Z)({style:(0,i.Z)({opacity:0,visibility:"exited"!==e||v?void 0:"hidden"},p[e],E,g.props.style),ref:_},n))}}))});n.Z=h},99098:function(e,n,r){"use strict";var i=r(59499),a=r(90116),o=r(63366),s=r(87462),f=r(67294),l=r(4953),u=r(94780),c=r(41673),d=r(80179),p=r(98425),h=r(93434),y=r(33838),m=r(85893),g=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],b=function(e){var n=e.classes,r=e.disableUnderline,i=(0,u.Z)({root:["root",!r&&"underline"],input:["input"]},y._,n);return(0,s.Z)({},n,i)},v=(0,d.ZP)(c.Ej,{shouldForwardProp:function(e){return(0,p.Z)(e)||"classes"===e},name:"MuiFilledInput",slot:"Root",overridesResolver:function(e,n){var r=e.ownerState;return[].concat((0,a.Z)((0,c.Gx)(e,n)),[!r.disableUnderline&&n.underline])}})(function(e){var n,r,a,o=e.theme,f=e.ownerState,l="light"===o.palette.mode,u=l?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)";return(0,s.Z)((n={position:"relative",backgroundColor:o.vars?o.vars.palette.FilledInput.bg:u,borderTopLeftRadius:(o.vars||o).shape.borderRadius,borderTopRightRadius:(o.vars||o).shape.borderRadius,transition:o.transitions.create("background-color",{duration:o.transitions.duration.shorter,easing:o.transitions.easing.easeOut}),"&:hover":{backgroundColor:o.vars?o.vars.palette.FilledInput.hoverBg:l?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:o.vars?o.vars.palette.FilledInput.bg:u}}},(0,i.default)(n,"&.".concat(y.Z.focused),{backgroundColor:o.vars?o.vars.palette.FilledInput.bg:u}),(0,i.default)(n,"&.".concat(y.Z.disabled),{backgroundColor:o.vars?o.vars.palette.FilledInput.disabledBg:l?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}),n),!f.disableUnderline&&(r={"&::after":{borderBottom:"2px solid ".concat(null==(a=(o.vars||o).palette[f.color||"primary"])?void 0:a.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:o.transitions.create("transform",{duration:o.transitions.duration.shorter,easing:o.transitions.easing.easeOut}),pointerEvents:"none"}},(0,i.default)(r,"&.".concat(y.Z.focused,":after"),{transform:"scaleX(1) translateX(0)"}),(0,i.default)(r,"&.".concat(y.Z.error),{"&::before, &::after":{borderBottomColor:(o.vars||o).palette.error.main}}),(0,i.default)(r,"&::before",{borderBottom:"1px solid ".concat(o.vars?"rgba(".concat(o.vars.palette.common.onBackgroun
375dChannel," / ").concat(o.vars.opacity.inputUnderline,")"):l?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)"),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:o.transitions.create("border-bottom-color",{duration:o.transitions.duration.shorter}),pointerEvents:"none"}),(0,i.default)(r,"&:hover:not(.".concat(y.Z.disabled,", .").concat(y.Z.error,"):before"),{borderBottom:"1px solid ".concat((o.vars||o).palette.text.primary)}),(0,i.default)(r,"&.".concat(y.Z.disabled,":before"),{borderBottomStyle:"dotted"}),r),f.startAdornment&&{paddingLeft:12},f.endAdornment&&{paddingRight:12},f.multiline&&(0,s.Z)({padding:"25px 12px 8px"},"small"===f.size&&{paddingTop:21,paddingBottom:4},f.hiddenLabel&&{paddingTop:16,paddingBottom:17},f.hiddenLabel&&"small"===f.size&&{paddingTop:8,paddingBottom:9}))}),w=(0,d.ZP)(c.rA,{name:"MuiFilledInput",slot:"Input",overridesResolver:c._o})(function(e){var n=e.theme,r=e.ownerState;return(0,s.Z)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!n.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===n.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===n.palette.mode?null:"#fff",caretColor:"light"===n.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},n.vars&&(0,i.default)({"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},n.getColorSchemeSelector("dark"),{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}),"small"===r.size&&{paddingTop:21,paddingBottom:4},r.hiddenLabel&&{paddingTop:16,paddingBottom:17},r.startAdornment&&{paddingLeft:0},r.endAdornment&&{paddingRight:0},r.hiddenLabel&&"small"===r.size&&{paddingTop:8,paddingBottom:9},r.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})}),x=f.forwardRef(function(e,n){var r,i,a,f,u=(0,h.i)({props:e,name:"MuiFilledInput"}),d=u.components,p=void 0===d?{}:d,y=u.componentsProps,x=u.fullWidth,T=void 0!==x&&x,C=u.inputComponent,M=void 0===C?"input":C,A=u.multiline,E=void 0!==A&&A,I=u.slotProps,S=u.slots,k=void 0===S?{}:S,N=u.type,j=void 0===N?"text":N,D=(0,o.Z)(u,g),_=(0,s.Z)({},u,{fullWidth:T,inputComponent:M,multiline:E,type:j}),O=b(u),P={root:{ownerState:_},input:{ownerState:_}},L=(null!=I?I:y)?(0,l.Z)(P,null!=I?I:y):P,R=null!=(r=null!=(i=k.root)?i:p.Root)?r:v,z=null!=(a=null!=(f=k.input)?f:p.Input)?a:w;return(0,m.jsx)(c.ZP,(0,s.Z)({slots:{root:R,input:z},componentsProps:L,fullWidth:T,inputComponent:M,multiline:E,ref:n,type:j},D,{classes:O}))});x.muiName="Input",n.Z=x},33838:function(e,n,r){"use strict";r.d(n,{_:function(){return f}});var i=r(87462),a=r(1588),o=r(34867),s=r(95212);function f(e){return(0,o.ZP)("MuiFilledInput",e)}var l=(0,i.Z)({},s.Z,(0,a.Z)("MuiFilledInput",["root","underline","input"]));n.Z=l},40967:function(e,n,r){"use strict";var i=r(17674),a=r(63366),o=r(87462),s=r(67294),f=r(90512),l=r(94780),u=r(93434),c=r(80179),d=r(74322),p=r(79566),h=r(66272),y=r(62718),m=r(22258),g=r(85893),b=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],v=function(e){var n=e.classes,r=e.margin,i=e.fullWidth,a={root:["root","none"!==r&&"margin".concat((0,p.Z)(r)),i&&"fullWidth"]};return(0,l.Z)(a,m.e,n)},w=(0,c.ZP)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:function(e,n){var r=e.ownerState;return(0,o.Z)({},n.root,n["margin".concat((0,p.Z)(r.margin))],r.fullWidth&&n.fullWidth)}})(function(e){var n=e.ownerState;return(0,o.Z)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===n.margin&&{marginTop:16,marginBottom:8},"dense"===n.margin&&{marginTop:8,marginBottom:4},n.fullWidth&&{width:"100%"})}),x=s.forwardRef(function(e,n){var r,l=(0,u.i)({props:e,name:"MuiFormControl"}),c=l.children,p=l.className,m=l.color,x=void 0===m?"primary":m,T=l.component,C=void 0===T?"div":T,M=l.disabled,A=void 0!==M&&M,E=l.error,I=void 0!==E&&E,S=l.focused,k=l.fullWidth,N=void 0!==k&&k,j=l.hiddenLabel,D=void 0!==j&&j,_=l.margin,O=l.required,P=void 0!==O&&O,L=l.size,R=void 0===L?"medium":L,z=l.variant,B=void 0===z?"outlined":z,U=(0,a.Z)(l,b),F=(0,o.Z)({},l,{color:x,component:C,disabled:A,error:I,fullWidth:N,hiddenLabel:D,margin:void 0===_?"none":_,required:P,size:R,variant:B}),Z=v(F),W=s.useState(function(){var e=!1;
375return c&&s.Children.forEach(c,function(n){if((0,h.Z)(n,["Input","Select"])){var r=(0,h.Z)(n,["Select"])?n.props.input:n;r&&(0,d.B7)(r.props)&&(e=!0)}}),e}),H=(0,i.Z)(W,2),G=H[0],q=H[1],Y=s.useState(function(){var e=!1;return c&&s.Children.forEach(c,function(n){(0,h.Z)(n,["Input","Select"])&&((0,d.vd)(n.props,!0)||(0,d.vd)(n.props.inputProps,!0))&&(e=!0)}),e}),V=(0,i.Z)(Y,2),Q=V[0],K=V[1],$=s.useState(!1),J=(0,i.Z)($,2),X=J[0],ee=J[1];A&&X&&ee(!1);var et=void 0===S||A?X:S,en=s.useMemo(function(){return{adornedStart:G,setAdornedStart:q,color:x,disabled:A,error:I,filled:Q,focused:et,fullWidth:N,hiddenLabel:D,size:R,onBlur:function(){ee(!1)},onEmpty:function(){K(!1)},onFilled:function(){K(!0)},onFocus:function(){ee(!0)},registerEffect:r,required:P,variant:B}},[G,x,A,I,Q,et,N,D,r,P,R,B]);return(0,g.jsx)(y.Z.Provider,{value:en,children:(0,g.jsx)(w,(0,o.Z)({as:C,ownerState:F,className:(0,f.Z)(Z.root,p),ref:n},U,{children:c}))})});n.Z=x},62718:function(e,n,r){"use strict";var i=r(67294).createContext(void 0);n.Z=i},22258:function(e,n,r){"use strict";r.d(n,{e:function(){return o}});var i=r(1588),a=r(34867);function o(e){return(0,a.ZP)("MuiFormControl",e)}var s=(0,i.Z)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);n.Z=s},63705:function(e,n,r){"use strict";function i(e){var n=e.props,r=e.states,i=e.muiFormControl;return r.reduce(function(e,r){return e[r]=n[r],i&&void 0===n[r]&&(e[r]=i[r]),e},{})}r.d(n,{Z:function(){return i}})},38396:function(e,n,r){"use strict";r.d(n,{Z:function(){return o}});var i=r(67294),a=r(62718);function o(){return i.useContext(a.Z)}},2542:function(e,n,r){"use strict";var i,a=r(59499),o=r(63366),s=r(87462),f=r(67294),l=r(90512),u=r(94780),c=r(63705),d=r(38396),p=r(80179),h=r(79566),y=r(13606),m=r(93434),g=r(85893),b=["children","className","component","disabled","error","filled","focused","margin","required","variant"],v=function(e){var n=e.classes,r=e.contained,i=e.size,a=e.disabled,o=e.error,s=e.filled,f=e.focused,l=e.required,c={root:["root",a&&"disabled",o&&"error",i&&"size".concat((0,h.Z)(i)),r&&"contained",f&&"focused",s&&"filled",l&&"required"]};return(0,u.Z)(c,y.E,n)},w=(0,p.ZP)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:function(e,n){var r=e.ownerState;return[n.root,r.size&&n["size".concat((0,h.Z)(r.size))],r.contained&&n.contained,r.filled&&n.filled]}})(function(e){var n,r=e.theme,i=e.ownerState;return(0,s.Z)({color:(r.vars||r).palette.text.secondary},r.typography.caption,(n={textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0},(0,a.default)(n,"&.".concat(y.Z.disabled),{color:(r.vars||r).palette.text.disabled}),(0,a.default)(n,"&.".concat(y.Z.error),{color:(r.vars||r).palette.error.main}),n),"small"===i.size&&{marginTop:4},i.contained&&{marginLeft:14,marginRight:14})}),x=f.forwardRef(function(e,n){var r=(0,m.i)({props:e,name:"MuiFormHelperText"}),a=r.children,f=r.className,u=r.component,p=void 0===u?"p":u,h=(0,o.Z)(r,b),y=(0,d.Z)(),x=(0,c.Z)({props:r,muiFormControl:y,states:["variant","size","disabled","error","filled","focused","required"]}),T=(0,s.Z)({},r,{component:p,contained:"filled"===x.variant||"outlined"===x.variant,variant:x.variant,size:x.size,disabled:x.disabled,error:x.error,filled:x.filled,focused:x.focused,required:x.required}),C=v(T);return(0,g.jsx)(w,(0,s.Z)({as:p,ownerState:T,className:(0,l.Z)(C.root,f),ref:n},h,{children:" "===a?i||(i=(0,g.jsx)("span",{className:"notranslate",children:"â"})):a}))});n.Z=x},13606:function(e,n,r){"use strict";r.d(n,{E:function(){return o}});var i=r(1588),a=r(34867);function o(e){return(0,a.ZP)("MuiFormHelperText",e)}var s=(0,i.Z)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);n.Z=s},46689:function(e,n,r){"use strict";r.d(n,{D:function(){return v}});var i=r(59499),a=r(63366),o=r(87462),s=r(67294),f=r(90512),l=r(94780),u=r(63705),c=r(38396),d=r(79566),p=r(93434),h=r(80179),y=r(88474),m=r(85893),g=["children","className","color","component","disabled","error","filled","focused","required"],b=function(e){var n=e.classes,r=e.color,
375i=e.focused,a=e.disabled,o=e.error,s=e.filled,f=e.required,u={root:["root","color".concat((0,d.Z)(r)),a&&"disabled",o&&"error",s&&"filled",i&&"focused",f&&"required"],asterisk:["asterisk",o&&"error"]};return(0,l.Z)(u,y.M,n)},v=(0,h.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:function(e,n){var r=e.ownerState;return(0,o.Z)({},n.root,"secondary"===r.color&&n.colorSecondary,r.filled&&n.filled)}})(function(e){var n,r=e.theme,a=e.ownerState;return(0,o.Z)({color:(r.vars||r).palette.text.secondary},r.typography.body1,(n={lineHeight:"1.4375em",padding:0,position:"relative"},(0,i.default)(n,"&.".concat(y.Z.focused),{color:(r.vars||r).palette[a.color].main}),(0,i.default)(n,"&.".concat(y.Z.disabled),{color:(r.vars||r).palette.text.disabled}),(0,i.default)(n,"&.".concat(y.Z.error),{color:(r.vars||r).palette.error.main}),n))}),w=(0,h.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:function(e,n){return n.asterisk}})(function(e){var n=e.theme;return(0,i.default)({},"&.".concat(y.Z.error),{color:(n.vars||n).palette.error.main})}),x=s.forwardRef(function(e,n){var r=(0,p.i)({props:e,name:"MuiFormLabel"}),i=r.children,s=r.className,l=r.component,d=void 0===l?"label":l,h=(0,a.Z)(r,g),y=(0,c.Z)(),x=(0,u.Z)({props:r,muiFormControl:y,states:["color","required","focused","disabled","error","filled"]}),T=(0,o.Z)({},r,{color:x.color||"primary",component:d,disabled:x.disabled,error:x.error,filled:x.filled,focused:x.focused,required:x.required}),C=b(T);return(0,m.jsxs)(v,(0,o.Z)({as:d,ownerState:T,className:(0,f.Z)(C.root,s),ref:n},h,{children:[i,x.required&&(0,m.jsxs)(w,{ownerState:T,"aria-hidden":!0,className:C.asterisk,children:["â","*"]})]}))});n.Z=x},88474:function(e,n,r){"use strict";r.d(n,{M:function(){return o}});var i=r(1588),a=r(34867);function o(e){return(0,a.ZP)("MuiFormLabel",e)}var s=(0,i.Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]);n.Z=s},76731:function(e,n,r){"use strict";r.d(n,{Z:function(){return c}});var i=r(87462);r(67294);var a=r(41234),o=r(96682),s=r(85893),f=function({styles:e,themeId:n,defaultTheme:r={}}){let i=(0,o.Z)(r),f="function"==typeof e?e(n&&i[n]||i):e;return(0,s.jsx)(a.Z,{styles:f})},l=r(75918),u=r(39186),c=function(e){return(0,s.jsx)(f,(0,i.Z)({},e,{defaultTheme:l.Z,themeId:u.Z}))}},99856:function(e,n,r){"use strict";var i=r(87462),a=r(63366),o=r(67294),s=r(46271),f=r(8662),l=r(66884),u=r(53853),c=r(24159),d=r(85893),p=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function h(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var y={entering:{opacity:1,transform:h(1)},entered:{opacity:1,transform:"none"}},m="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),g=o.forwardRef(function(e,n){var r=e.addEndListener,g=e.appear,b=e.children,v=e.easing,w=e.in,x=e.onEnter,T=e.onEntered,C=e.onEntering,M=e.onExit,A=e.onExited,E=e.onExiting,I=e.style,S=e.timeout,k=void 0===S?"auto":S,N=e.TransitionComponent,j=void 0===N?f.ZP:N,D=(0,a.Z)(e,p),_=(0,s.Z)(),O=o.useRef(),P=(0,l.Z)(),L=o.useRef(null),R=(0,c.Z)(L,b.ref,n),z=function(e){return function(n){if(e){var r=L.current;void 0===n?e(r):e(r,n)}}},B=z(C),U=z(function(e,n){(0,u.n)(e);var r,i=(0,u.C)({style:I,timeout:k,easing:v},{mode:"enter"}),a=i.duration,o=i.delay,s=i.easing;"auto"===k?(r=P.transitions.getAutoHeightDuration(e.clientHeight),O.current=r):r=a,e.style.transition=[P.transitions.create("opacity",{duration:r,delay:o}),P.transitions.create("transform",{duration:m?r:.666*r,delay:o,easing:s})].join(","),x&&x(e,n)}),F=z(T),Z=z(E),W=z(function(e){var n,r=(0,u.C)({style:I,timeout:k,easing:v},{mode:"exit"}),i=r.duration,a=r.delay,o=r.easing;"auto"===k?(n=P.transitions.getAutoHeightDuration(e.clientHeight),O.current=n):n=i,e.style.transition=[P.transitions.create("opacity",{duration:n,delay:a}),P.transitions.create("transform",{duration:m?n:.666*n,delay:m?a:a||.333*n,easing:o})].join(","),e.style.opacity=0,e.style.transform=h(.75),M&&M(e)}),H=z(A);return(0,d.jsx)(j,(0,i.Z)({appear:void 0===g||g,in:w,nodeRef:L,onEnter:U,onEntered:F,onEntering:B,onExit:W,onExited:H,onExiting:Z,addEndListener:function(e){"auto"===k&&_.start(O.current||0,e),r&&r(L.current,e)},timeout:"auto"===k?null:k},D,{children:function(e,n){return o.cloneElement(b,(0,i.Z)({style:(0,i.Z)({opacity:0,transform:h(.75),visibility:"exited"!==e||w?void 0:"hidden"},y[e],I,b.props.style),ref:R},n))}}))});g.muiSupportAuto=!0,n.Z=g},52764:function(e,n,r){"use strict";var i=r(59499),a=r(63366),o=r(87462),s=r(67294),f=r(90512),l=r(94780),u=r(2101),c=r(80179),d=r(93434),p=r(54207),h=r(79566),y=r(61173),m=r(85893),g=["edge","children","className","color","disabled","disableFocusRipple","size"],b=function(e){var n=e.classes,r=e.disabled,i=e.color,a=e.edge,o=e.size,s={root:["root",r&&"disabled","default"!==i&&"color".concat((0,h.Z)(i)),a&&"edge".concat((0,h.Z)(a)),"size".concat((0,h.Z)(o))]};return(0,l.Z)(s,y.r,n)},v=(0,c.ZP)(p.Z,{name:"MuiIconButton",slot:"Root",overridesResolver:function(e,n){var r=e.ownerState;return[n.root,"default"!==r.color&&n["color".concat((0,h.Z)(r.color))],r.edge&&n["edge".concat((0,h.Z)(r.edge))],n["size".concat((0,h.Z)(r.size))]]}})(function(e){var n=e.theme,r=e.ownerState;return(0,o.Z)({textAlign:"center",flex:"0 0 auto",fontSize:n.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(n.vars||n).palette.action.active,transition:n.transitions.create("background-color",{duration:n.transitions.duration.shortest})},!r.disableRipple&&{"&:hover":{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.action.activeChannel," / ").concat(n.vars.palette.action.hoverOpacity,")"):(0,u.Fq)(n.palette.action.active,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===r.edge&&{marginLeft:"small"===r.size?-3:-12},"end"===r.edge&&{marginRight:"small"===r.size?-3:-12})},function(e){var n,r=e.theme,a=e.ownerState,s=null==(n=(r.vars||r).palette)?void 0:n[a.color];return(0,o.Z)({},"inherit"===a.color&&{color:"inherit"},"inherit"!==a.color&&"default"!==a.color&&(0,o.Z)({color:null==s?void 0:s.main},!a.disableRipple&&{"&:hover":(0,o.Z)({}
375,s&&{backgroundColor:r.vars?"rgba(".concat(s.mainChannel," / ").concat(r.vars.palette.action.hoverOpacity,")"):(0,u.Fq)(s.main,r.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===a.size&&{padding:5,fontSize:r.typography.pxToRem(18)},"large"===a.size&&{padding:12,fontSize:r.typography.pxToRem(28)},(0,i.default)({},"&.".concat(y.Z.disabled),{backgroundColor:"transparent",color:(r.vars||r).palette.action.disabled}))}),w=s.forwardRef(function(e,n){var r=(0,d.i)({props:e,name:"MuiIconButton"}),i=r.edge,s=r.children,l=r.className,u=r.color,c=r.disabled,p=void 0!==c&&c,h=r.disableFocusRipple,y=void 0!==h&&h,w=r.size,x=(0,a.Z)(r,g),T=(0,o.Z)({},r,{edge:void 0!==i&&i,color:void 0===u?"default":u,disabled:p,disableFocusRipple:y,size:void 0===w?"medium":w}),C=b(T);return(0,m.jsx)(v,(0,o.Z)({className:(0,f.Z)(C.root,l),centerRipple:!0,focusRipple:!y,disabled:p,ref:n},x,{ownerState:T,children:s}))});n.Z=w},61173:function(e,n,r){"use strict";r.d(n,{r:function(){return o}});var i=r(1588),a=r(34867);function o(e){return(0,a.ZP)("MuiIconButton",e)}var s=(0,i.Z)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);n.Z=s},18501:function(e,n,r){"use strict";var i=r(59499),a=r(90116),o=r(63366),s=r(87462),f=r(67294),l=r(94780),u=r(4953),c=r(41673),d=r(80179),p=r(98425),h=r(93434),y=r(75870),m=r(85893),g=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],b=function(e){var n=e.classes,r=e.disableUnderline,i=(0,l.Z)({root:["root",!r&&"underline"],input:["input"]},y.l,n);return(0,s.Z)({},n,i)},v=(0,d.ZP)(c.Ej,{shouldForwardProp:function(e){return(0,p.Z)(e)||"classes"===e},name:"MuiInput",slot:"Root",overridesResolver:function(e,n){var r=e.ownerState;return[].concat((0,a.Z)((0,c.Gx)(e,n)),[!r.disableUnderline&&n.underline])}})(function(e){var n,r=e.theme,a=e.ownerState,o="light"===r.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return r.vars&&(o="rgba(".concat(r.vars.palette.common.onBackgroundChannel," / ").concat(r.vars.opacity.inputUnderline,")")),(0,s.Z)({position:"relative"},a.formControl&&{"label + &":{marginTop:16}},!a.disableUnderline&&(n={"&::after":{borderBottom:"2px solid ".concat((r.vars||r).palette[a.color].main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:r.transitions.create("transform",{duration:r.transitions.duration.shorter,easing:r.transitions.easing.easeOut}),pointerEvents:"none"}},(0,i.default)(n,"&.".concat(y.Z.focused,":after"),{transform:"scaleX(1) translateX(0)"}),(0,i.default)(n,"&.".concat(y.Z.error),{"&::before, &::after":{borderBottomColor:(r.vars||r).palette.error.main}}),(0,i.default)(n,"&::before",{borderBottom:"1px solid ".concat(o),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:r.transitions.create("border-bottom-color",{duration:r.transitions.duration.shorter}),pointerEvents:"none"}),(0,i.default)(n,"&:hover:not(.".concat(y.Z.disabled,", .").concat(y.Z.error,"):before"),{borderBottom:"2px solid ".concat((r.vars||r).palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(o)}}),(0,i.default)(n,"&.".concat(y.Z.disabled,":before"),{borderBottomStyle:"dotted"}),n))}),w=(0,d.ZP)(c.rA,{name:"MuiInput",slot:"Input",overridesResolver:c._o})({}),x=f.forwardRef(function(e,n){var r,i,a,f,l=(0,h.i)({props:e,name:"MuiInput"}),d=l.disableUnderline,p=l.components,y=void 0===p?{}:p,x=l.componentsProps,T=l.fullWidth,C=l.inputComponent,M=l.multiline,A=l.slotProps,E=l.slots,I=void 0===E?{}:E,S=l.type,k=(0,o.Z)(l,g),N=b(l),j={root:{ownerState:{disableUnderline:d}}},D=(null!=A?A:x)?(0,u.Z)(null!=A?A:x,j):j,_=null!=(r=null!=(i=I.root)?i:y.Root)?r:v,O=null!=(a=null!=(f=I.input)?f:y.Input)?a:w;return(0,m.jsx)(c.ZP,(0,s.Z)({slots:{root:_,input:O},slotProps:D,fullWidth:void 0!==T&&T,inputComponent:void 0===C?"input":C,multiline:void 0!==M&&M,ref:n,type:void 0===S?"text":S},k,{classes:N}))});x.muiName="Input",n.Z=x},75870:function(e,n,r){"use strict";r.d(n,{l:function(){return f}});
375var i=r(87462),a=r(1588),o=r(34867),s=r(95212);function f(e){return(0,o.ZP)("MuiInput",e)}var l=(0,i.Z)({},s.Z,(0,a.Z)("MuiInput",["root","underline","input"]));n.Z=l},15005:function(e,n,r){"use strict";var i,a=r(59499),o=r(63366),s=r(87462),f=r(67294),l=r(90512),u=r(94780),c=r(79566),d=r(86173),p=r(62718),h=r(38396),y=r(80179),m=r(47483),g=r(93434),b=r(85893),v=["children","className","component","disablePointerEvents","disableTypography","position","variant"],w=function(e){var n=e.classes,r=e.disablePointerEvents,i=e.hiddenLabel,a=e.position,o=e.size,s=e.variant,f={root:["root",r&&"disablePointerEvents",a&&"position".concat((0,c.Z)(a)),s,i&&"hiddenLabel",o&&"size".concat((0,c.Z)(o))]};return(0,u.Z)(f,m.w,n)},x=(0,y.ZP)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:function(e,n){var r=e.ownerState;return[n.root,n["position".concat((0,c.Z)(r.position))],!0===r.disablePointerEvents&&n.disablePointerEvents,n[r.variant]]}})(function(e){var n=e.theme,r=e.ownerState;return(0,s.Z)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(n.vars||n).palette.action.active},"filled"===r.variant&&(0,a.default)({},"&.".concat(m.Z.positionStart,"&:not(.").concat(m.Z.hiddenLabel,")"),{marginTop:16}),"start"===r.position&&{marginRight:8},"end"===r.position&&{marginLeft:8},!0===r.disablePointerEvents&&{pointerEvents:"none"})}),T=f.forwardRef(function(e,n){var r=(0,g.i)({props:e,name:"MuiInputAdornment"}),a=r.children,u=r.className,c=r.component,y=r.disablePointerEvents,m=r.disableTypography,T=r.position,C=r.variant,M=(0,o.Z)(r,v),A=(0,h.Z)()||{},E=C;C&&A.variant,A&&!E&&(E=A.variant);var I=(0,s.Z)({},r,{hiddenLabel:A.hiddenLabel,size:A.size,disablePointerEvents:void 0!==y&&y,position:T,variant:E}),S=w(I);return(0,b.jsx)(p.Z.Provider,{value:null,children:(0,b.jsx)(x,(0,s.Z)({as:void 0===c?"div":c,ownerState:I,className:(0,l.Z)(S.root,u),ref:n},M,{children:"string"!=typeof a||void 0!==m&&m?(0,b.jsxs)(f.Fragment,{children:["start"===T?i||(i=(0,b.jsx)("span",{className:"notranslate",children:"â"})):null,a]}):(0,b.jsx)(d.Z,{color:"text.secondary",children:a})}))})});n.Z=T},47483:function(e,n,r){"use strict";r.d(n,{w:function(){return o}});var i=r(1588),a=r(34867);function o(e){return(0,a.ZP)("MuiInputAdornment",e)}var s=(0,i.Z)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);n.Z=s},41673:function(e,n,r){"use strict";r.d(n,{Ej:function(){return N},Gx:function(){return I},_o:function(){return S},rA:function(){return j}});var i=r(17674),a=r(59499),o=r(63366),s=r(87462),f=r(56535),l=r(67294),u=r(90512),c=r(94780),d=r(90712),p=r(65547),h=r(63705),y=r(62718),m=r(38396),g=r(80179),b=r(93434),v=r(79566),w=r(24159),x=r(11402),T=r(76731),C=r(74322),M=r(95212),A=r(85893),E=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],I=function(e,n){var r=e.ownerState;return[n.root,r.formControl&&n.formControl,r.startAdornment&&n.adornedStart,r.endAdornment&&n.adornedEnd,r.error&&n.error,"small"===r.size&&n.sizeSmall,r.multiline&&n.multiline,r.color&&n["color".concat((0,v.Z)(r.color))],r.fullWidth&&n.fullWidth,r.hiddenLabel&&n.hiddenLabel]},S=function(e,n){var r=e.ownerState;return[n.input,"small"===r.size&&n.inputSizeSmall,r.multiline&&n.inputMultiline,"search"===r.type&&n.inputTypeSearch,r.startAdornment&&n.inputAdornedStart,r.endAdornment&&n.inputAdornedEnd,r.hiddenLabel&&n.inputHiddenLabel]},k=function(e){var n=e.classes,r=e.color,i=e.disabled,a=e.error,o=e.endAdornment,s=e.focused,f=e.formControl,l=e.fullWidth,u=e.hiddenLabel,d=e.multiline,p=e.readOnly,h=e.size,y=e.startAdornment,m=e.type,g={root:["root","color".concat((0,v.Z)(r)),i&&"disabled",a&&"error",l&&"fullWidth",s&&"focused",f&&"formControl",h&&"medium"!==h&&"size".concat((0,v.Z)(h)),d&&"multiline",y&&"adornedStart",o&&"adornedEnd",u&&"hiddenLabel",p&&"readOnly"],input:["input",i&&"disabled","search"===m&&"inputTypeSearch",d&&"inputMultiline","small"===h&&"inputSizeSmall",u&&"inputHiddenLabel",y&&"inputAdornedStart",o&&"inputAdornedEnd",p&&"readOnly"]};return(0,c.Z)(g,M.u,n)},N=(0,g.ZP)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:I})(function(e){var n=e.theme,r=e.ownerState;return(0,s.Z)({},n.typography.body1,(0,a.default)({color:(n.vars||n).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",curs
375or:"text",display:"inline-flex",alignItems:"center"},"&.".concat(M.Z.disabled),{color:(n.vars||n).palette.text.disabled,cursor:"default"}),r.multiline&&(0,s.Z)({padding:"4px 0 5px"},"small"===r.size&&{paddingTop:1}),r.fullWidth&&{width:"100%"})}),j=(0,g.ZP)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:S})(function(e){var n,r=e.theme,i=e.ownerState,o="light"===r.palette.mode,f=(0,s.Z)({color:"currentColor"},r.vars?{opacity:r.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5},{transition:r.transitions.create("opacity",{duration:r.transitions.duration.shorter})}),l={opacity:"0 !important"},u=r.vars?{opacity:r.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5};return(0,s.Z)((n={font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":f,"&::-moz-placeholder":f,"&:-ms-input-placeholder":f,"&::-ms-input-placeholder":f,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"}},(0,a.default)(n,"label[data-shrink=false] + .".concat(M.Z.formControl," &"),{"&::-webkit-input-placeholder":l,"&::-moz-placeholder":l,"&:-ms-input-placeholder":l,"&::-ms-input-placeholder":l,"&:focus::-webkit-input-placeholder":u,"&:focus::-moz-placeholder":u,"&:focus:-ms-input-placeholder":u,"&:focus::-ms-input-placeholder":u}),(0,a.default)(n,"&.".concat(M.Z.disabled),{opacity:1,WebkitTextFillColor:(r.vars||r).palette.text.disabled}),(0,a.default)(n,"&:-webkit-autofill",{animationDuration:"5000s",animationName:"mui-auto-fill"}),n),"small"===i.size&&{paddingTop:1},i.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===i.type&&{MozAppearance:"textfield"})}),D=(0,A.jsx)(T.Z,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),_=l.forwardRef(function(e,n){var r,a=(0,b.i)({props:e,name:"MuiInputBase"}),c=a["aria-describedby"],g=a.autoComplete,v=a.autoFocus,T=a.className,M=a.components,I=void 0===M?{}:M,S=a.componentsProps,_=void 0===S?{}:S,O=a.defaultValue,P=a.disabled,L=a.disableInjectingGlobalStyles,R=a.endAdornment,z=a.fullWidth,B=a.id,U=a.inputComponent,F=a.inputProps,Z=void 0===F?{}:F,W=a.inputRef,H=a.maxRows,G=a.minRows,q=a.multiline,Y=void 0!==q&&q,V=a.name,Q=a.onBlur,K=a.onChange,$=a.onClick,J=a.onFocus,X=a.onKeyDown,ee=a.onKeyUp,et=a.placeholder,en=a.readOnly,er=a.renderSuffix,ei=a.rows,ea=a.slotProps,eo=void 0===ea?{}:ea,es=a.slots,ef=void 0===es?{}:es,el=a.startAdornment,eu=a.type,ec=void 0===eu?"text":eu,ed=a.value,ep=(0,o.Z)(a,E),eh=null!=Z.value?Z.value:ed,ey=l.useRef(null!=eh).current,em=l.useRef(),eg=l.useCallback(function(e){},[]),eb=(0,w.Z)(em,W,Z.ref,eg),ev=l.useState(!1),ew=(0,i.Z)(ev,2),ex=ew[0],eT=ew[1],eC=(0,m.Z)(),eM=(0,h.Z)({props:a,muiFormControl:eC,states:["color","disabled","error","hiddenLabel","size","required","filled"]});eM.focused=eC?eC.focused:ex,l.useEffect(function(){!eC&&P&&ex&&(eT(!1),Q&&Q())},[eC,P,ex,Q]);var eA=eC&&eC.onFilled,eE=eC&&eC.onEmpty,eI=l.useCallback(function(e){(0,C.vd)(e)?eA&&eA():eE&&eE()},[eA,eE]);(0,x.Z)(function(){ey&&eI({value:eh})},[eh,eI,ey]),l.useEffect(function(){eI(em.current)},[]);var eS=void 0===U?"input":U,ek=Z;
375Y&&"input"===eS&&(ek=ei?(0,s.Z)({type:void 0,minRows:ei,maxRows:ei},ek):(0,s.Z)({type:void 0,maxRows:H,minRows:G},ek),eS=p.Z),l.useEffect(function(){eC&&eC.setAdornedStart(!!el)},[eC,el]);var eN=(0,s.Z)({},a,{color:eM.color||"primary",disabled:eM.disabled,endAdornment:R,error:eM.error,focused:eM.focused,formControl:eC,fullWidth:void 0!==z&&z,hiddenLabel:eM.hiddenLabel,multiline:Y,size:eM.size,startAdornment:el,type:ec}),ej=k(eN),eD=ef.root||I.Root||N,e_=eo.root||_.root||{},eO=ef.input||I.Input||j;return ek=(0,s.Z)({},ek,null!=(r=eo.input)?r:_.input),(0,A.jsxs)(l.Fragment,{children:[!L&&D,(0,A.jsxs)(eD,(0,s.Z)({},e_,!(0,d.Z)(eD)&&{ownerState:(0,s.Z)({},eN,e_.ownerState)},{ref:n,onClick:function(e){em.current&&e.currentTarget===e.target&&em.current.focus(),$&&$(e)}},ep,{className:(0,u.Z)(ej.root,e_.className,T,en&&"MuiInputBase-readOnly"),children:[el,(0,A.jsx)(y.Z.Provider,{value:null,children:(0,A.jsx)(eO,(0,s.Z)({ownerState:eN,"aria-invalid":eM.error,"aria-describedby":c,autoComplete:g,autoFocus:v,defaultValue:O,disabled:eM.disabled,id:B,onAnimationStart:function(e){eI("mui-auto-fill-cancel"===e.animationName?em.current:{value:"x"})},name:V,placeholder:et,readOnly:en,required:eM.required,rows:ei,value:eh,onKeyDown:X,onKeyUp:ee,type:ec},ek,!(0,d.Z)(eO)&&{as:eS,ownerState:(0,s.Z)({},eN,ek.ownerState)},{ref:eb,className:(0,u.Z)(ej.input,ek.className,en&&"MuiInputBase-readOnly"),onBlur:function(e){Q&&Q(e),Z.onBlur&&Z.onBlur(e),eC&&eC.onBlur?eC.onBlur(e):eT(!1)},onChange:function(e){if(!ey){var n=e.target||em.current;if(null==n)throw Error((0,f.Z)(1));eI({value:n.value})}for(var r=arguments.length,i=Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];Z.onChange&&Z.onChange.apply(Z,[e].concat(i)),K&&K.apply(void 0,[e].concat(i))},onFocus:function(e){if(eM.disabled){e.stopPropagation();return}J&&J(e),Z.onFocus&&Z.onFocus(e),eC&&eC.onFocus?eC.onFocus(e):eT(!0)}}))}),R,er?er((0,s.Z)({},eM,{startAdornment:el})):null]}))]})});n.ZP=_},95212:function(e,n,r){"use strict";r.d(n,{u:function(){return o}});var i=r(1588),a=r(34867);function o(e){return(0,a.ZP)("MuiInputBase",e)}var s=(0,i.Z)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);n.Z=s},74322:function(e,n,r){"use strict";function i(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function a(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(i(e.value)&&""!==e.value||n&&i(e.defaultValue)&&""!==e.defaultValue)}function o(e){return e.startAdornment}r.d(n,{B7:function(){return o},vd:function(){return a}})},95117:function(e,n,r){"use strict";var i=r(59499),a=r(63366),o=r(87462),s=r(67294),f=r(94780),l=r(90512),u=r(63705),c=r(38396),d=r(46689),p=r(88474),h=r(93434),y=r(79566),m=r(80179),g=r(98425),b=r(56722),v=r(85893),w=["disableAnimation","margin","shrink","variant","className"],x=function(e){var n=e.classes,r=e.formControl,i=e.size,a=e.shrink,s=e.disableAnimation,l=e.variant,u=e.required,c={root:["root",r&&"formControl",!s&&"animated",a&&"shrink",i&&"normal"!==i&&"size".concat((0,y.Z)(i)),l],asterisk:[u&&"asterisk"]},d=(0,f.Z)(c,b.Y,n);return(0,o.Z)({},n,d)},T=(0,m.ZP)(d.Z,{shouldForwardProp:function(e){return(0,g.Z)(e)||"classes"===e},name:"MuiInputLabel",slot:"Root",overridesResolver:function(e,n){var r=e.ownerState;return[(0,i.default)({},"& .".concat(p.Z.asterisk),n.asterisk),n.root,r.formControl&&n.formControl,"small"===r.size&&n.sizeSmall,r.shrink&&n.shrink,!r.disableAnimation&&n.animated,r.focused&&n.focused,n[r.variant]]}})(function(e){var n=e.theme,r=e.ownerState;return(0,o.Z)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},r.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===r.size&&{transform:"translate(0, 17px) scale(1)"},r.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!r.disableAnimation&&{transition:n.transitions.create(["color","transform","max-width"],{duration:n.transitions.duration.shorter,easing:n.transitions.easing.easeOut})},"filled"===r.variant&&(0,o.Z)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===r.size&&{transform:"translate(12px, 13px) scale(1)"},r.shrink&&(0,o.Z)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7
375px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===r.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===r.variant&&(0,o.Z)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===r.size&&{transform:"translate(14px, 9px) scale(1)"},r.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))}),C=s.forwardRef(function(e,n){var r=(0,h.i)({name:"MuiInputLabel",props:e}),i=r.disableAnimation,s=r.shrink,f=r.className,d=(0,a.Z)(r,w),p=(0,c.Z)(),y=s;void 0===y&&p&&(y=p.filled||p.focused||p.adornedStart);var m=(0,u.Z)({props:r,muiFormControl:p,states:["size","variant","required","focused"]}),g=(0,o.Z)({},r,{disableAnimation:void 0!==i&&i,formControl:p,shrink:y,size:m.size,variant:m.variant,required:m.required,focused:m.focused}),b=x(g);return(0,v.jsx)(T,(0,o.Z)({"data-shrink":y,ownerState:g,ref:n,className:(0,l.Z)(b.root,f)},d,{classes:b}))});n.Z=C},56722:function(e,n,r){"use strict";r.d(n,{Y:function(){return o}});var i=r(1588),a=r(34867);function o(e){return(0,a.ZP)("MuiInputLabel",e)}var s=(0,i.Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);n.Z=s},48106:function(e,n,r){"use strict";var i=r(63366),a=r(87462),o=r(67294),s=r(90512),f=r(94780),l=r(80179),u=r(93434),c=r(42480),d=r(90899),p=r(85893),h=["children","className","component","dense","disablePadding","subheader"],y=function(e){var n=e.classes,r=e.disablePadding,i=e.dense,a=e.subheader;return(0,f.Z)({root:["root",!r&&"padding",i&&"dense",a&&"subheader"]},d.z,n)},m=(0,l.ZP)("ul",{name:"MuiList",slot:"Root",overridesResolver:function(e,n){var r=e.ownerState;return[n.root,!r.disablePadding&&n.padding,r.dense&&n.dense,r.subheader&&n.subheader]}})(function(e){var n=e.ownerState;return(0,a.Z)({listStyle:"none",margin:0,padding:0,position:"relative"},!n.disablePadding&&{paddingTop:8,paddingBottom:8},n.subheader&&{paddingTop:0})}),g=o.forwardRef(function(e,n){var r=(0,u.i)({props:e,name:"MuiList"}),f=r.children,l=r.className,d=r.component,g=void 0===d?"ul":d,b=r.dense,v=void 0!==b&&b,w=r.disablePadding,x=r.subheader,T=(0,i.Z)(r,h),C=o.useMemo(function(){return{dense:v}},[v]),M=(0,a.Z)({},r,{component:g,dense:v,disablePadding:void 0!==w&&w}),A=y(M);return(0,p.jsx)(c.Z.Provider,{value:C,children:(0,p.jsxs)(m,(0,a.Z)({as:g,className:(0,s.Z)(A.root,l),ref:n,ownerState:M},T,{children:[x,f]}))})});n.Z=g},42480:function(e,n,r){"use strict";var i=r(67294).createContext({});n.Z=i},90899:function(e,n,r){"use strict";r.d(n,{z:function(){return o}});var i=r(1588),a=r(34867);function o(e){return(0,a.ZP)("MuiList",e)}var s=(0,i.Z)("MuiList",["root","padding","dense","subheader"]);n.Z=s},86416:function(e,n,r){"use strict";r.d(n,{f:function(){return o}});var i=r(1588),a=r(34867);function o(e){return(0,a.ZP)("MuiListItemIcon",e)}var s=(0,i.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);n.Z=s},27581:function(e,n,r){"use strict";r.d(n,{L:function(){return o}});var i=r(1588),a=r(34867);function o(e){return(0,a.ZP)("MuiListItemText",e)}var s=(0,i.Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);n.Z=s},7981:function(e,n,r){"use strict";var i=r(87462),a=r(63366),o=r(67294);r(59864);var s=r(90512),f=r(94780),l=r(82056),u=r(82963),c=r(41949),d=r(94919),p=r(80179),h=r(98425),y=r(93434),m=r(65211),g=r(85893),b=["onEntering"],v=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],w={vertical:"top",horizontal:"right"},x={vertical:"top",horizontal:"left"},T=function(e){var n=e.classes;return(0,f.Z)({root:["root"],paper:["paper"],list:["list"]},m.Q,n)},C=(0,p.ZP)(d.ZP,{shouldForwardProp:function(e){return(0,h.Z)(e)||"classes"===e},name:"MuiMenu",slot:"Root",overridesResolver:function(e,n){return n.root}})({}),M=(0,p.ZP)(d.XS,{name:"MuiMenu",slot:"Paper",overridesResolver:function(e,n){return n.paper}})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),A=(0,p.ZP)(c.Z,{name:"MuiMenu",slot:"List",overridesResolver:function(e,n){return n.list}})({outline:0}),E=o.forwardRef(function(e,n){var r,f,c=(0,y.i)({props:e,name:"MuiMenu"}),d=c.autoFocus,p=void 0===d||d,h=c.children,m=c.className,E=c.disableAutoFocusItem,I=void 0!==E&&E,S=c.MenuListProps,k=void 0===S?{}:S,N=c.onClose,j=c.open,D=c.PaperProps,_=void 0===D?{}:D,O=c.PopoverClasses,P=c.transitionDuration,L=void 0===P?"auto":P,R=c.TransitionProps,z=(void 0===R?{}:R).onEntering,B=c.variant,U=void 0===B?"selectedMenu":B,F=c.slots,Z=void 0===F?{}:F,W=c.slotProps,H=void 0===W?{}:W,G=(0,a.Z)(c.TransitionProps,b),q=(0,a.Z)(c,v),Y=(0,l.V)(),V=(0,i.Z)({},c,{autoFocus:p,disableAutoFocusItem:I,MenuListProps:k,onEntering:z,PaperProps:_,transitionDuration:L,TransitionProps:G,variant:U}),Q=T(V),K=p&&!I&&j,$=o.useRef(null),J=-1;o.Children.map(h,function(e,n){o.isValidElement(e)&&(e.props.disabled||("selectedMenu"===U&&e.props.selected?J=n:-1!==J||(J=n)))});var X=null!=(r=Z.paper)?r:M,ee=null!=(f=H.paper)?f:_,et=(0,u.Z)({elementType:Z.root,externalSlotProps:H.root,ownerState:V,className:[Q.root,m]}),en=(0,u.Z)({elementType:X,externalSlotProps:ee,ownerState:V,className:Q.paper});return(0,g.jsx)(C,(0,i.Z)({onClose:N,anchorOrigin:{vertical:"bottom",horizontal:Y?"right":"left"},transformOrigin:Y?w:x,slots:{paper:X,root:Z.root},slotProps:{root:et,paper:en},open:j,ref:n,transitionDuration:L,TransitionProps:(0,i.Z)({onEntering:function(e,n){$.current&&$.current.adjustStyleForScrollbar(e,{direction:Y?"rtl":"ltr"}),z&&z(e,n)}},G),ownerState:V},q,{classes:O,children:(0,g.jsx)(A,(0,i.Z)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),N&&N(e,"tabKeyDown"))},actions:$,autoFocus:p&&(-1===J||I),autoFocusItem:K,variant:U},k,{className:(0,s.Z)(Q.list,k.className),children:h}))}))});n.Z=E},65211:function(e,n,r){"use strict";r.d(n,{Q:function(){return o}});var i=r(1588),a=r(34867);function o(e){return(0,a.ZP)("MuiMenu",e)}var s=(0,i.Z)("MuiMenu",["root","paper","list"]);n.Z=s},17916:function(e,n,r){"use strict";var i=r(59499),a=r(63366),o=r(87462),s=r(67294),f=r(90512),l=r(94780),u=r(2101),c=r(80179),d=r(98425),p=r(93434),h=r(42480),y=r(54207),m=r(11402),g=r(24159),b=r(94205),v=r(86416),w=r(27581),x=r(93948),T=r(85893),C=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],M=function(e){var n=e.disabled,r=e.dense,i=e.divider,a=e.disableGutters,s=e.selected,f=e.classes,u=(0,l.Z)({root:["root",r&&"dense",n&&"disabled",!a&&"gutters",i&&"divider",s&&"selected"]},x.K,f);return(0,o.Z)({},f,u)},A=(0,c.ZP)(y.Z,{shouldForwardProp:function(e){return(0,d.Z)(e)||"classes"===e},name:"MuiMenuItem",slot:"Root",overridesResolver:function(e,n){var r=e.ownerState;return[n.root,r.dense&&n.dense,r.divider&&n.divider,!r.disableGutters&&n.gutters]}})(function(e){var n,r=e.theme,a=e.ownerState;return(0,o.Z)({},r.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!a.disableGutters&&{paddingLeft:16,paddingRight:16},a.divider&&{borderBottom:"1px solid ".concat((r.vars||r).palette.divider),backgroundClip:"padding-box"},(n={"&:hover":{textDecoration:"none",backgroundColor:(r.vars||r).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},(0,i.default)(n,"&.".concat(x.Z.selected),(0,i.default)({backgroundColor:r.vars?"rgba(".concat(r.vars.palette.primary.mainChannel," / ").concat(r.vars.palette.action.selectedOpacity,")"):(0,u.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity)},"&.".concat(x.Z.focusVisible),{backgroundColor:r.vars?"rgba(".concat(r.vars.palette.primary.mainChannel," / calc(").concat(r.vars.palette.action.selectedOpacity," + ").concat(r.vars.palette.action.focusOpacity,"))"):(0,u.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity+r.palette.action.focusOpacity)})),(0,i.default)(n,"&.".concat(x.Z.selected,":hover"),{backgroundColor:r.vars?"rgba(".concat(r.vars.palette.primary.mainChannel," / calc(").concat(r.vars.palette.action.selectedOpacity," + ").concat(r.vars.palette.action.hoverOpacity,"))"):(0,u.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity+r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:r.vars?"rgba(".concat(r.vars.palette.primary.mainChannel," / ").concat(r.vars.palette.action.selectedOpacity,")"):(0,u.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity)}}),(0,i.default)(n,"&.".concat(x.Z.focusVisible),{backgroundColor:(r.vars||r).palette.action.focus}),(0,i.default)(n,"&.".concat(x.Z.disabled),{opacity:(r.vars||r).palette.action.disabledOpacity}),(0,i.default)(n,"& + .".concat(b.Z.root),{marginTop:r.spacing(1),marginBottom:r.spacing(1)}),(0,i.default)(n,"& + .".concat(b.Z.inset),{marginLeft:52}),(0,i.default)(n,"& .".concat(w.Z.root),{marginTop:0,marginBottom:0}),(0,i.default)(n,"& .".concat(w.Z.inset),{paddingLeft:36}),(0,i.default)(n,"& .".concat(v.Z.root),{minWidth:36}),n),!a.dense&&(0,i.default)({},r.breakpoints.up("sm"),{minHeight:"auto"}),a.dense&&(0,o.Z)({minHeight:32,paddingTop:4,paddingBottom:4},r.typography.body2,(0,i.default)({},"& .".concat(v.Z.root," svg"),{fontSize:"1.25rem"})))}),E=s.forwardRef(function(e,n){var r,i=(0,p.i)({props:e,name:"MuiMenuItem"}),l=i.autoFocus,u=void 0!==l&&l,c=i.component,d=i.dense,y=void 0!==d&&d,b=i.divider,v=i.disableGutters,w=void 0!==v&&v,x=i.focusVisibleClassName,E=i.role,I=i.tabIndex,S=i.className,k=(0,a.Z)(i,C),N=s.useContext(h.Z),j=s.useMemo(function(){return{dense:y||N.dense||!1,disableGutters:w}},[N.dense,y,w]),D=s.useRef(null);(0,m.Z)(function(){u&&D.current&&D.current.focus()},[u]);var _=(0,o.Z)({},i,{dense:j.dense,divider:void 0!==b&&b,disableGutters:w}
375),O=M(i),P=(0,g.Z)(D,n);return i.disabled||(r=void 0!==I?I:-1),(0,T.jsx)(h.Z.Provider,{value:j,children:(0,T.jsx)(A,(0,o.Z)({ref:P,role:void 0===E?"menuitem":E,tabIndex:r,component:void 0===c?"li":c,focusVisibleClassName:(0,f.Z)(O.focusVisible,x),className:(0,f.Z)(O.root,S)},k,{ownerState:_,classes:O}))})});n.Z=E},93948:function(e,n,r){"use strict";r.d(n,{K:function(){return o}});var i=r(1588),a=r(34867);function o(e){return(0,a.ZP)("MuiMenuItem",e)}var s=(0,i.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);n.Z=s},41949:function(e,n,r){"use strict";r.d(n,{Z:function(){return b}});var i=r(87462),a=r(63366),o=r(67294);r(59864);var s=r(35905),f=r(48106),l=r(29726).Z,u=r(24159),c=r(11402),d=r(85893),p=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function h(e,n,r){return e===n?e.firstChild:n&&n.nextElementSibling?n.nextElementSibling:r?null:e.firstChild}function y(e,n,r){return e===n?r?e.firstChild:e.lastChild:n&&n.previousElementSibling?n.previousElementSibling:r?null:e.lastChild}function m(e,n){if(void 0===n)return!0;var r=e.innerText;return void 0===r&&(r=e.textContent),0!==(r=r.trim().toLowerCase()).length&&(n.repeating?r[0]===n.keys[0]:0===r.indexOf(n.keys.join("")))}function g(e,n,r,i,a,o){for(var s=!1,f=a(e,n,!!n&&r);f;){if(f===e.firstChild){if(s)return!1;s=!0}var l=!i&&(f.disabled||"true"===f.getAttribute("aria-disabled"));if(f.hasAttribute("tabindex")&&m(f,o)&&!l)return f.focus(),!0;f=a(e,f,r)}return!1}var b=o.forwardRef(function(e,n){var r=e.actions,b=e.autoFocus,v=void 0!==b&&b,w=e.autoFocusItem,x=void 0!==w&&w,T=e.children,C=e.className,M=e.disabledItemsFocusable,A=void 0!==M&&M,E=e.disableListWrap,I=void 0!==E&&E,S=e.onKeyDown,k=e.variant,N=void 0===k?"selectedMenu":k,j=(0,a.Z)(e,p),D=o.useRef(null),_=o.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,c.Z)(function(){v&&D.current.focus()},[v]),o.useImperativeHandle(r,function(){return{adjustStyleForScrollbar:function(e,n){var r=n.direction,i=!D.current.style.width;if(e.clientHeight<D.current.clientHeight&&i){var a="".concat(l((0,s.Z)(e)),"px");D.current.style["rtl"===r?"paddingLeft":"paddingRight"]=a,D.current.style.width="calc(100% + ".concat(a,")")}return D.current}}},[]);var O=(0,u.Z)(D,n),P=-1;o.Children.forEach(T,function(e,n){if(!o.isValidElement(e)){P===n&&(P+=1)>=T.length&&(P=-1);return}e.props.disabled||("selectedMenu"===N&&e.props.selected?P=n:-1!==P||(P=n)),P===n&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(P+=1)>=T.length&&(P=-1)});var L=o.Children.map(T,function(e,n){if(n===P){var r={};return x&&(r.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===N&&(r.tabIndex=0),o.cloneElement(e,r)}return e});return(0,d.jsx)(f.Z,(0,i.Z)({role:"menu",ref:O,className:C,onKeyDown:function(e){var n=D.current,r=e.key,i=(0,s.Z)(n).activeElement;if("ArrowDown"===r)e.preventDefault(),g(n,i,I,A,h);else if("ArrowUp"===r)e.preventDefault(),g(n,i,I,A,y);else if("Home"===r)e.preventDefault(),g(n,null,I,A,h);else if("End"===r)e.preventDefault(),g(n,null,I,A,y);else if(1===r.length){var a=_.current,o=r.toLowerCase(),f=performance.now();a.keys.length>0&&(f-a.lastTime>500?(a.keys=[],a.repeating=!0,a.previousKeyMatched=!0):a.repeating&&o!==a.keys[0]&&(a.repeating=!1)),a.lastTime=f,a.keys.push(o);var l=i&&!a.repeating&&m(i,a);a.previousKeyMatched&&(l||g(n,i,!1,A,h,a))?e.preventDefault():a.previousKeyMatched=!1}S&&S(e)},tabIndex:v?0:-1},j,{children:L}))})},30821:function(e,n,r){"use strict";r.d(n,{Z:function(){return N}});var i=r(63366),a=r(87462),o=r(67294),s=r(90512),f=r(94780),l=r(82963),u=r(51402),c=r(98342),d=r(80179),p=r(93434),h=r(35811),y=r(17674),m=r(33703),g=r(82690),b=r(59948),v=r(91476),w=r(99113),x=r(21519),T=new x.g,C=function(e){var n=e.container,r=e.disableEscapeKeyDown,i=void 0!==r&&r,s=e.disableScrollLock,f=void 0!==s&&s,l=e.manager,u=void 0===l?T:l,c=e.closeAfterTransition,d=void 0!==c&&c,p=e.onTransitionEnter,h=e.onTransitionExited,C=e.children,M=e.onClose,A=e.open,E=e.rootRef,I=o.useRef({}),S=o.useRef(null),k=o.useRef(null),N=(0,m.Z)(k,E),j=o.useState(!A),D=(0,y.Z)(j,2),_=D[0],O
375=D[1],P=!!C&&C.props.hasOwnProperty("in"),L=!0;("false"===e["aria-hidden"]||!1===e["aria-hidden"])&&(L=!1);var R=function(){return I.current.modalRef=k.current,I.current.mount=S.current,I.current},z=function(){u.mount(R(),{disableScrollLock:f}),k.current&&(k.current.scrollTop=0)},B=(0,b.Z)(function(){var e=("function"==typeof n?n():n)||(0,g.Z)(S.current).body;u.add(R(),e),k.current&&z()}),U=o.useCallback(function(){return u.isTopModal(R())},[u]),F=(0,b.Z)(function(e){S.current=e,e&&(A&&U()?z():k.current&&(0,x.G)(k.current,L))}),Z=o.useCallback(function(){u.remove(R(),L)},[L,u]);return o.useEffect(function(){return function(){Z()}},[Z]),o.useEffect(function(){A?B():P&&d||Z()},[A,Z,P,d,B]),{getRootProps:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=(0,w.Z)(e);delete r.onTransitionEnter,delete r.onTransitionExited;var o=(0,a.Z)({},r,n);return(0,a.Z)({role:"presentation"},o,{onKeyDown:function(e){var n;null==(n=o.onKeyDown)||n.call(o,e),"Escape"===e.key&&229!==e.which&&U()&&!i&&(e.stopPropagation(),M&&M(e,"escapeKeyDown"))},ref:N})},getBackdropProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,a.Z)({"aria-hidden":!0},e,{onClick:function(n){var r;null==(r=e.onClick)||r.call(e,n),n.target===n.currentTarget&&M&&M(n,"backdropClick")},open:A})},getTransitionProps:function(){return{onEnter:(0,v.Z)(function(){O(!1),p&&p()},null==C?void 0:C.props.onEnter),onExited:(0,v.Z)(function(){O(!0),h&&h(),d&&Z()},null==C?void 0:C.props.onExited)}},rootRef:N,portalRef:F,isTopModal:U,exited:_,hasTransition:P}},M=r(73615),A=r(85893),E=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],I=function(e){var n=e.open,r=e.exited,i=e.classes;return(0,f.Z)({root:["root",!n&&r&&"hidden"],backdrop:["backdrop"]},M.x,i)},S=(0,d.ZP)("div",{name:"MuiModal",slot:"Root",overridesResolver:function(e,n){var r=e.ownerState;return[n.root,!r.open&&r.exited&&n.hidden]}})(function(e){var n=e.theme,r=e.ownerState;return(0,a.Z)({position:"fixed",zIndex:(n.vars||n).zIndex.modal,right:0,bottom:0,top:0,left:0},!r.open&&r.exited&&{visibility:"hidden"})}),k=(0,d.ZP)(h.Z,{name:"MuiModal",slot:"Backdrop",overridesResolver:function(e,n){return n.backdrop}})({zIndex:-1}),N=o.forwardRef(function(e,n){var r,f,d,h,y,m,g=(0,p.i)({name:"MuiModal",props:e}),b=g.BackdropComponent,v=void 0===b?k:b,w=g.BackdropProps,x=g.className,T=g.closeAfterTransition,M=g.children,N=g.container,j=g.component,D=g.components,_=void 0===D?{}:D,O=g.componentsProps,P=void 0===O?{}:O,L=g.disableAutoFocus,R=void 0!==L&&L,z=g.disableEnforceFocus,B=void 0!==z&&z,U=g.disableEscapeKeyDown,F=g.disablePortal,Z=void 0!==F&&F,W=g.disableRestoreFocus,H=void 0!==W&&W,G=g.disableScrollLock,q=g.hideBackdrop,Y=void 0!==q&&q,V=g.keepMounted,Q=void 0!==V&&V,K=g.onBackdropClick,$=g.open,J=g.slotProps,X=g.slots,ee=(0,i.Z)(g,E),et=(0,a.Z)({},g,{closeAfterTransition:void 0!==T&&T,disableAutoFocus:R,disableEnforceFocus:B,disableEscapeKeyDown:void 0!==U&&U,disablePortal:Z,disableRestoreFocus:H,disableScrollLock:void 0!==G&&G,hideBackdrop:Y,keepMounted:Q}),en=C((0,a.Z)({},et,{rootRef:n})),er=en.getRootProps,ei=en.getBackdropProps,ea=en.getTransitionProps,eo=en.portalRef,es=en.isTopModal,ef=en.exited,el=en.hasTransition,eu=(0,a.Z)({},et,{exited:ef}),ec=I(eu),ed={};if(void 0===M.props.tabIndex&&(ed.tabIndex="-1"),el){var ep=ea(),eh=ep.onEnter,ey=ep.onExited;ed.onEnter=eh,ed.onExited=ey}var em=null!=(r=null!=(f=null==X?void 0:X.root)?f:_.Root)?r:S,eg=null!=(d=null!=(h=null==X?void 0:X.backdrop)?h:_.Backdrop)?d:v,eb=null!=(y=null==J?void 0:J.root)?y:P.root,ev=null!=(m=null==J?void 0:J.backdrop)?m:P.backdrop,ew=(0,l.Z)({elementType:em,externalSlotProps:eb,externalForwardedProps:ee,getSlotProps:er,additionalProps:{ref:n,as:j},ownerState:eu,className:(0,s.Z)(x,null==eb?void 0:eb.className,null==ec?void 0:ec.root,!eu.open&&eu.exited&&(null==ec?void 0:ec.hidden))}),ex=(0,l.Z)({elementType:eg,externalSlotProps:ev,additionalProps:w,getSlotProps:function(e){return ei((0,a.Z)({},e,{onClick:function(n){K&&K(n),null!=e&&e.onClick&&e.onClick(n)}}))},className:(0,s.Z)(null==ev?void 0:ev.className,null==w?void 0:w.className,null==ec?void 0:ec.backdrop),ownerState:eu});return Q||$||el&&!ef?(0,A.jsx)(c.Z,{ref:eo,container:N,disablePortal:Z,children:(0,A.jsxs)(em,(0,a.Z)({},ew,{children:[!Y&&v?(0,A.jsx)(eg,(0,a.Z)({},ex)):null,(0,A.jsx)(u.Z,{disableEnforceFocus:B,disableAutoFocus:R,disableRestoreFocus:H,isEnabled:es,open:$,children:o.cloneElement(M,ed)})]}))}):null})},21519:function(e,n,r){"use strict";r.d(n,{G:function(){return u},g:function(){return h}});var i=r(92777),a=r(82262),o=r(90116),s=r(82690),f=r(74161),l=r(29726);function u(e,n){n?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function c(e){return parseInt((0,f.Z)(e).getComputedStyle(e).paddingRight,10)||0}function d(e,n,r,i,a){var s=[n,r].concat((0,o.Z)(i));[].forEach.call(e.children,function(e){var n,r,i=-1===s.indexOf(e),o=(n=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type"),!n&&!r);i&&o&&u(e,a)})}function p(e,n){var r=-1;return e.some(function(e,i){return!!n(e)&&(r=i,!0)}),r}var h=function(){function e(){(0,i.Z)(this,e),this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}return(0,a.Z)(e,[{key:"add",value:function(e,n){var r,i=this.modals.indexOf(e);if(-1!==i)return i;i=this.modals.length,this.modals.push(e),e.modalRef&&u(e.modalRef,!1);var a=(r=[],[].forEach.call(n.children,function(e){"true"===e.getAttribute("aria-hidden")&&r.push(e)}),r);d(n,e.mount,e.modalRef,a,!0);var o=p(this.containers,function(e){return e.container===n});return -1!==o?this.containers[o].modals.push(e):this.containers.push({modals:[e],container:n,restore:null,hiddenSiblings:a}),i}},{key:"mount",value:function(e,n){var r=p(this.containers,function(n){return -1!==n.modals.indexOf(e)}),i=this.containers[r];i.restore||(i.restore=function(e,n){var r=[],i=e.container;if(!n.disableScrollLock){if((a=(0,s.Z)(i)).body===i?(0,f.Z)(i).innerWidth>a.documentElement.clientWidth:i.scrollHeight>i.clientHeight){var a,o,u=(0,l.Z)((0,s.Z)(i));r.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight="".concat(c(i)+u,"px");var d=(0,s.Z)(i).querySelectorAll(".mui-fixed");[].forEach.call(d,function(e){r.push({value:e.style.paddingRight,property:"padding-right",el:e}),e.style.paddingRight="".concat(c(e)+u,"px")})}if(i.parentNode instanceof DocumentFragment)o=(0,s.Z)(i).body;else{var p=i.parentElement,h=(0,f.Z)(i);o=(null==p?void 0:p.nodeName)==="HTML"&&"scroll"===h.getComputedStyle(p).overflowY?p:i}r.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return function(){r.forEach(function(e){var n=e.value,r=e.el,i=e.property;n?r.style.setProperty(i,n):r.style.removeProperty(i)})}}(i,n))}},{key:"remove",value:function(e){var n=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=this.modals.indexOf(e);if(-1===r)return r;var i=p(this.containers,function(n){return -1!==n.modals.indexOf(e)}),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(e),1),this.modals.splice(r,1),0===a.modals.length)a.restore&&a.restore(
375),e.modalRef&&u(e.modalRef,n),d(a.container,e.mount,e.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{var o=a.modals[a.modals.length-1];o.modalRef&&u(o.modalRef,!1)}return r}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}()},73615:function(e,n,r){"use strict";r.d(n,{x:function(){return o}});var i=r(1588),a=r(34867);function o(e){return(0,a.ZP)("MuiModal",e)}var s=(0,i.Z)("MuiModal",["root","hidden","backdrop"]);n.Z=s},30035:function(e,n,r){"use strict";r.d(n,{SJ:function(){return v},wU:function(){return g}});var i=r(59499),a=r(63366),o=r(87462),s=r(67294),f=r(90512),l=r(94780),u=r(79566),c=r(95144),d=r(80179),p=r(98425),h=r(85893),y=["className","disabled","error","IconComponent","inputRef","variant"],m=function(e){var n=e.classes,r=e.variant,i=e.disabled,a=e.multiple,o=e.open,s={select:["select",r,i&&"disabled",a&&"multiple",e.error&&"error"],icon:["icon","icon".concat((0,u.Z)(r)),o&&"iconOpen",i&&"disabled"]};return(0,l.Z)(s,c.f,n)},g=function(e){var n,r=e.ownerState,a=e.theme;return(0,o.Z)((n={MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,o.Z)({},a.vars?{backgroundColor:"rgba(".concat(a.vars.palette.common.onBackgroundChannel," / 0.05)")}:{backgroundColor:"light"===a.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"}},(0,i.default)(n,"&.".concat(c.Z.disabled),{cursor:"default"}),(0,i.default)(n,"&[multiple]",{height:"auto"}),(0,i.default)(n,"&:not([multiple]) option, &:not([multiple]) optgroup",{backgroundColor:(a.vars||a).palette.background.paper}),(0,i.default)(n,"&&&",{paddingRight:24,minWidth:16}),n),"filled"===r.variant&&{"&&&":{paddingRight:32}},"outlined"===r.variant&&{borderRadius:(a.vars||a).shape.borderRadius,"&:focus":{borderRadius:(a.vars||a).shape.borderRadius},"&&&":{paddingRight:32}})},b=(0,d.ZP)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:p.Z,overridesResolver:function(e,n){var r=e.ownerState;return[n.select,n[r.variant],r.error&&n.error,(0,i.default)({},"&.".concat(c.Z.multiple),n.multiple)]}})(g),v=function(e){var n=e.ownerState,r=e.theme;return(0,o.Z)((0,i.default)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(r.vars||r).palette.action.active},"&.".concat(c.Z.disabled),{color:(r.vars||r).palette.action.disabled}),n.open&&{transform:"rotate(180deg)"},"filled"===n.variant&&{right:7},"outlined"===n.variant&&{right:7})},w=(0,d.ZP)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:function(e,n){var r=e.ownerState;return[n.icon,r.variant&&n["icon".concat((0,u.Z)(r.variant))],r.open&&n.iconOpen]}})(v),x=s.forwardRef(function(e,n){var r=e.className,i=e.disabled,l=e.error,u=e.IconComponent,c=e.inputRef,d=e.variant,p=(0,a.Z)(e,y),g=(0,o.Z)({},e,{disabled:i,variant:void 0===d?"standard":d,error:l}),v=m(g);return(0,h.jsxs)(s.Fragment,{children:[(0,h.jsx)(b,(0,o.Z)({ownerState:g,className:(0,f.Z)(v.select,r),disabled:i,ref:c||n},p)),e.multiple?null:(0,h.jsx)(w,{as:u,ownerState:g,className:v.icon})]})});n.ZP=x},95144:function(e,n,r){"use strict";r.d(n,{f:function(){return o}});var i=r(1588),a=r(34867);function o(e){return(0,a.ZP)("MuiNativeSelect",e)}var s=(0,i.Z)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);n.Z=s},68035:function(e,n,r){"use strict";r.d(n,{Z:function(){return I}});var i,a=r(59499),o=r(63366),s=r(87462),f=r(67294),l=r(94780),u=r(80179),c=r(98425),d=r(85893),p=["children","classes","className","label","notched"],h=(0,u.ZP)("fieldset",{shouldForwardProp:c.Z})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),y=(0,u.ZP)("legend",{shouldForwardProp:c.Z})(function(e){var n=e.ownerState,r=e.theme;return(0,s.Z)({float:"unset",width:"auto",overflow:"hidden"},!n.withLabel&&{padding:0,lineHeight:"11px",transition:r.transitions.create("width",{duration:150,easing:r.transitions.easing.easeOut})},n.withLabel&&(0,s.Z)({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:r.transitions.create("max-width",{duration:50,easing:r.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},n.notched&&{maxWidth:"100%",transition:r.transitions.create("max-width",{duration:100,easing:r.transitions.easing.easeOut,delay:50})}))}),m=r(38396),g=r(63705),b=r(63280),v=r(41673),w=r(93434),x=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],T=function(e){var n=e.classes,r=(0,l.Z)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},b.e,n);return(0,s.Z)({},n,r)},C=(0,u.ZP)(v.Ej,{shouldForwardProp:function(e){return(0,c.Z)(e)||"classes"===e},name:"MuiOutlinedInput",slot:"Root",overridesResolver:v.Gx})(function(e){var n,r=e.theme,i=e.ownerState,o="light"===r.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,s.Z)((n={position:"relative",borderRadius:(r.vars||r).shape.borderRadius},(0,a.default)(n,"&:hover .".concat(b.Z.notchedOutline),{borderColor:(r.vars||r).palette.text.primary}),(0,a.default)(n,"@media (hover: none)",(0,a.default)({},"&:hover .".concat(b.Z.notchedOutline),{borderColor:r.vars?"rgba(".concat(r.vars.palette.common.onBackgroun
375dChannel," / 0.23)"):o})),(0,a.default)(n,"&.".concat(b.Z.focused," .").concat(b.Z.notchedOutline),{borderColor:(r.vars||r).palette[i.color].main,borderWidth:2}),(0,a.default)(n,"&.".concat(b.Z.error," .").concat(b.Z.notchedOutline),{borderColor:(r.vars||r).palette.error.main}),(0,a.default)(n,"&.".concat(b.Z.disabled," .").concat(b.Z.notchedOutline),{borderColor:(r.vars||r).palette.action.disabled}),n),i.startAdornment&&{paddingLeft:14},i.endAdornment&&{paddingRight:14},i.multiline&&(0,s.Z)({padding:"16.5px 14px"},"small"===i.size&&{padding:"8.5px 14px"}))}),M=(0,u.ZP)(function(e){var n=e.className,r=e.label,a=e.notched,f=(0,o.Z)(e,p),l=null!=r&&""!==r,u=(0,s.Z)({},e,{notched:a,withLabel:l});return(0,d.jsx)(h,(0,s.Z)({"aria-hidden":!0,className:n,ownerState:u},f,{children:(0,d.jsx)(y,{ownerState:u,children:l?(0,d.jsx)("span",{children:r}):i||(i=(0,d.jsx)("span",{className:"notranslate",children:"â"}))})}))},{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:function(e,n){return n.notchedOutline}})(function(e){var n=e.theme,r="light"===n.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:n.vars?"rgba(".concat(n.vars.palette.common.onBackgroundChannel," / 0.23)"):r}}),A=(0,u.ZP)(v.rA,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:v._o})(function(e){var n=e.theme,r=e.ownerState;return(0,s.Z)({padding:"16.5px 14px"},!n.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===n.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===n.palette.mode?null:"#fff",caretColor:"light"===n.palette.mode?null:"#fff",borderRadius:"inherit"}},n.vars&&(0,a.default)({"&:-webkit-autofill":{borderRadius:"inherit"}},n.getColorSchemeSelector("dark"),{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}),"small"===r.size&&{padding:"8.5px 14px"},r.multiline&&{padding:0},r.startAdornment&&{paddingLeft:0},r.endAdornment&&{paddingRight:0})}),E=f.forwardRef(function(e,n){var r,i,a,l,u,c=(0,w.i)({props:e,name:"MuiOutlinedInput"}),p=c.components,h=void 0===p?{}:p,y=c.fullWidth,b=void 0!==y&&y,E=c.inputComponent,I=c.label,S=c.multiline,k=void 0!==S&&S,N=c.notched,j=c.slots,D=void 0===j?{}:j,_=c.type,O=void 0===_?"text":_,P=(0,o.Z)(c,x),L=T(c),R=(0,m.Z)(),z=(0,g.Z)({props:c,muiFormControl:R,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),B=(0,s.Z)({},c,{color:z.color||"primary",disabled:z.disabled,error:z.error,focused:z.focused,formControl:R,fullWidth:b,hiddenLabel:z.hiddenLabel,multiline:k,size:z.size,type:O}),U=null!=(r=null!=(i=D.root)?i:h.Root)?r:C,F=null!=(a=null!=(l=D.input)?l:h.Input)?a:A;return(0,d.jsx)(v.ZP,(0,s.Z)({slots:{root:U,input:F},renderSuffix:function(e){return(0,d.jsx)(M,{ownerState:B,className:L.notchedOutline,label:null!=I&&""!==I&&z.required?u||(u=(0,d.jsxs)(f.Fragment,{children:[I,"â","*"]})):I,notched:void 0!==N?N:!!(e.startAdornment||e.filled||e.focused)})},fullWidth:b,inputComponent:void 0===E?"input":E,multiline:k,ref:n,type:O},P,{classes:(0,s.Z)({},L,{notchedOutline:null})}))});E.muiName="Input";var I=E},63280:function(e,n,r){"use strict";r.d(n,{e:function(){return f}});var i=r(87462),a=r(1588),o=r(34867),s=r(95212);function f(e){return(0,o.ZP)("MuiOutlinedInput",e)}var l=(0,i.Z)({},s.Z,(0,a.Z)("MuiOutlinedInput",["root","notchedOutline","input"]));n.Z=l},69900:function(e,n,r){"use strict";var i=r(63366),a=r(87462),o=r(67294),s=r(90512),f=r(94780),l=r(2101),u=r(80179),c=r(34487),d=r(93434),p=r(97634),h=r(85893),y=["className","component","elevation","square","variant"],m=function(e){var n=e.square,r=e.elevation,i=e.variant,a=e.classes;return(0,f.Z)({root:["root",i,!n&&"rounded","elevation"===i&&"elevation".concat(r)]},p.J,a)},g=(0,u.ZP)("div",{name:"MuiPaper",slot:"Root",overridesResolver:function(e,n){var r=e.ownerState;return[n.root,n[r.variant],!r.square&&n.rounded,"elevation"===r.variant&&n["elevation".concat(r.elevation)]]}})(function(e){var n,r=e.theme,i=e.ownerState;return(0,a.Z)({backgroundColor:(r.vars||r).palette.background.paper,color:(r.vars||r).palette.text.primary,transition:r.transitions.create("box-shadow")},!i.square&&{borderRadius:r.shape.borderRadius},"outlined"===i.variant&&{border:"1px solid ".concat((r.vars||r).palette.divider)},"elevation"===i.variant&&(0,a.Z)({boxShadow:(r.vars||r).shadows[i.elevation]},!r.vars&&"dark"===r.palette.mode&&{backgroundImage:"linear-gradient(".concat((0,l.Fq)("#fff",(0,c.Z)(i.elevation)),", ").concat((0,l.Fq)("#fff",(0,c.Z)(i.elevation)),")")},r.vars&&{backgroundImage:null==(n=r.vars.overlays)?void 0:n[i.elevation]}))}),b=o.forwardRef(function(e,n){var r=(0,d.i)({props:e,name:"MuiPaper"}
375),o=r.className,f=r.component,l=void 0===f?"div":f,u=r.elevation,c=r.square,p=r.variant,b=(0,i.Z)(r,y),v=(0,a.Z)({},r,{component:l,elevation:void 0===u?1:u,square:void 0!==c&&c,variant:void 0===p?"elevation":p}),w=m(v);return(0,h.jsx)(g,(0,a.Z)({as:l,ownerState:v,className:(0,s.Z)(w.root,o),ref:n},b))});n.Z=b},97634:function(e,n,r){"use strict";r.d(n,{J:function(){return o}});var i=r(1588),a=r(34867);function o(e){return(0,a.ZP)("MuiPaper",e)}var s=(0,i.Z)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);n.Z=s},94919:function(e,n,r){"use strict";r.d(n,{Pg:function(){return j},XS:function(){return D},oJ:function(){return E},pB:function(){return I}});var i=r(17674),a=r(87462),o=r(63366),s=r(67294),f=r(90512),l=r(94780),u=r(82963),c=r(90712),d=r(80179),p=r(93434),h=r(22645),y=r(35905),m=r(94571),g=r(24159),b=r(99856),v=r(30821),w=r(69900),x=r(74610),T=r(85893),C=["onEntering"],M=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],A=["slotProps"];function E(e,n){var r=0;return"number"==typeof n?r=n:"center"===n?r=e.height/2:"bottom"===n&&(r=e.height),r}function I(e,n){var r=0;return"number"==typeof n?r=n:"center"===n?r=e.width/2:"right"===n&&(r=e.width),r}function S(e){return[e.horizontal,e.vertical].map(function(e){return"number"==typeof e?"".concat(e,"px"):e}).join(" ")}function k(e){return"function"==typeof e?e():e}var N=function(e){var n=e.classes;return(0,l.Z)({root:["root"],paper:["paper"]},x.s,n)},j=(0,d.ZP)(v.Z,{name:"MuiPopover",slot:"Root",overridesResolver:function(e,n){return n.root}})({}),D=(0,d.ZP)(w.Z,{name:"MuiPopover",slot:"Paper",overridesResolver:function(e,n){return n.paper}})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),_=s.forwardRef(function(e,n){var r,l,d,v=(0,p.i)({props:e,name:"MuiPopover"}),w=v.action,x=v.anchorEl,_=v.anchorOrigin,O=void 0===_?{vertical:"top",horizontal:"left"}:_,P=v.anchorPosition,L=v.anchorReference,R=void 0===L?"anchorEl":L,z=v.children,B=v.className,U=v.container,F=v.elevation,Z=void 0===F?8:F,W=v.marginThreshold,H=void 0===W?16:W,G=v.open,q=v.PaperProps,Y=v.slots,V=v.slotProps,Q=v.transformOrigin,K=void 0===Q?{vertical:"top",horizontal:"left"}:Q,$=v.TransitionComponent,J=void 0===$?b.Z:$,X=v.transitionDuration,ee=void 0===X?"auto":X,et=v.TransitionProps,en=(void 0===et?{}:et).onEntering,er=v.disableScrollLock,ei=void 0!==er&&er,ea=(0,o.Z)(v.TransitionProps,C),eo=(0,o.Z)(v,M),es=null!=(r=null==V?void 0:V.paper)?r:void 0===q?{}:q,ef=s.useRef(),el=(0,g.Z)(ef,es.ref),eu=(0,a.Z)({},v,{anchorOrigin:O,anchorReference:R,elevation:Z,marginThreshold:H,externalPaperSlotProps:es,transformOrigin:K,TransitionComponent:J,transitionDuration:ee,TransitionProps:ea}),ec=N(eu),ed=s.useCallback(function(){if("anchorPosition"===R)return P;var e=k(x),n=(e&&1===e.nodeType?e:(0,y.Z)(ef.current).body).getBoundingClientRect();return{top:n.top+E(n,O.vertical),left:n.left+I(n,O.horizontal)}},[x,O.horizontal,O.vertical,P,R]),ep=s.useCallback(function(e){return{vertical:E(e,K.vertical),horizontal:I(e,K.horizontal)}},[K.horizontal,K.vertical]),eh=s.useCallback(function(e){var n={width:e.offsetWidth,height:e.offsetHeight},r=ep(n);if("none"===R)return{top:null,left:null,transformOrigin:S(r)};var i=ed(),a=i.top-r.vertical,o=i.left-r.horizontal,s=a+n.height,f=o+n.width,l=(0,m.Z)(k(x)),u=l.innerHeight-H,c=l.innerWidth-H;if(null!==H&&a<H){var d=a-H;a-=d,r.vertical+=d}else if(null!==H&&s>u){var p=s-u;a-=p,r.vertical+=p}if(null!==H&&o<H){var h=o-H;o-=h,r.horizontal+=h}else if(f>c){var y=f-c;o-=y,r.horizontal+=y}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(o),"px"),transformOrigin:S(r)}},[x,R,ed,ep,H]),ey=s.useState(G),em=(0,i.Z)(ey,2),eg=em[0],eb=em[1],ev=s.useCallback(function(){var e=ef.current;if(e){var n=eh(e);null!==n.top&&(e.style.top=n.top),null!==n.left&&(e.style.left=n.left),e.style.transformOrigin=n.transformOrigin,eb(!0)}},[eh]);s.useEffect(function(){return ei&&window.addEventListener("scroll",ev),function(){return window.removeEventListener("scroll",ev)}},[x,ei,ev]),s.useEffect(function(){G&&ev()}),s.useImperativeHandle(w,function(){return G?{updatePosition:function(){ev()}}:null},[G,ev]),s.useEffect(function(){if(G){var e=(0,h.Z)(function(){ev()}),n=(0,m.Z)(x);return n.addEventListener("resize",e),function(){e.clear(),n.removeEventListener("resize",e)}}},[x,G,ev]);var ew=ee;"auto"!==ee||J.muiSupportAuto||(ew=void 0);var ex=U||(x?(0,y.Z)(k(x)).body:void 0),eT=null!=(l=null==Y?void 0:Y.root)?l:j,eC=null!=(d=null==Y?void 0:Y.paper)?d:D,eM=(0,u.Z)({elementType:eC,externalSlotProps:(0,a.Z)({},es,{style:eg?es.style:(0,a.Z)({},es.style,{opacity:0}
375)}),additionalProps:{elevation:Z,ref:el},ownerState:eu,className:(0,f.Z)(ec.paper,null==es?void 0:es.className)}),eA=(0,u.Z)({elementType:eT,externalSlotProps:(null==V?void 0:V.root)||{},externalForwardedProps:eo,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:ex,open:G},ownerState:eu,className:(0,f.Z)(ec.root,B)}),eE=eA.slotProps,eI=(0,o.Z)(eA,A);return(0,T.jsx)(eT,(0,a.Z)({},eI,!(0,c.Z)(eT)&&{slotProps:eE,disableScrollLock:ei},{children:(0,T.jsx)(J,(0,a.Z)({appear:!0,in:G,onEntering:function(e,n){en&&en(e,n),ev()},onExited:function(){eb(!1)},timeout:ew},ea,{children:(0,T.jsx)(eC,(0,a.Z)({},eM,{children:z}))}))}))});n.ZP=_},74610:function(e,n,r){"use strict";r.d(n,{s:function(){return o}});var i=r(1588),a=r(34867);function o(e){return(0,a.ZP)("MuiPopover",e)}var s=(0,i.Z)("MuiPopover",["root","paper"]);n.Z=s},26211:function(e,n,r){"use strict";r.d(n,{Z:function(){return k}});var i=r(87462),a=r(63366),o=r(91070),s=r(67294),f=r(17674),l=r(33703),u=r(73546),c=r(82690),d=r(95551),p=r(94780),h=r(82963),y=r(98342),m=r(8737),g=r(85893),b=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],v=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function w(e){return"function"==typeof e?e():e}var x=function(e){var n=e.classes;return(0,p.Z)({root:["root"]},m.i,n)},T={},C=s.forwardRef(function(e,n){var r,o=e.anchorEl,c=e.children,p=e.direction,y=e.disablePortal,m=e.modifiers,v=e.open,T=e.placement,C=e.popperOptions,M=e.popperRef,A=e.slotProps,E=e.slots,I=e.TransitionProps,S=(0,a.Z)(e,b),k=s.useRef(null),N=(0,l.Z)(k,n),j=s.useRef(null),D=(0,l.Z)(j,M),_=s.useRef(D);(0,u.Z)(function(){_.current=D},[D]),s.useImperativeHandle(M,function(){return j.current},[]);var O=function(e,n){if("ltr"===n)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(T,p),P=s.useState(O),L=(0,f.Z)(P,2),R=L[0],z=L[1],B=s.useState(w(o)),U=(0,f.Z)(B,2),F=U[0],Z=U[1];s.useEffect(function(){j.current&&j.current.forceUpdate()}),s.useEffect(function(){o&&Z(w(o))},[o]),(0,u.Z)(function(){if(F&&v){var e=function(e){z(e.placement)},n=[{name:"preventOverflow",options:{altBoundary:y}},{name:"flip",options:{altBoundary:y}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:function(n){e(n.state)}}];null!=m&&(n=n.concat(m)),C&&null!=C.modifiers&&(n=n.concat(C.modifiers));var r=(0,d.fi)(F,k.current,(0,i.Z)({placement:O},C,{modifiers:n}));return _.current(r),function(){r.destroy(),_.current(null)}}},[F,y,m,v,C,O]);var W={placement:R};null!==I&&(W.TransitionProps=I);var H=x(e),G=null!=(r=(void 0===E?{}:E).root)?r:"div",q=(0,h.Z)({elementType:G,externalSlotProps:(void 0===A?{}:A).root,externalForwardedProps:S,additionalProps:{role:"tooltip",ref:N},ownerState:e,className:H.root});return(0,g.jsx)(G,(0,i.Z)({},q,{children:"function"==typeof c?c(W):c}))}),M=s.forwardRef(function(e,n){var r,o=e.anchorEl,l=e.children,u=e.container,d=e.direction,p=e.disablePortal,h=void 0!==p&&p,m=e.keepMounted,b=void 0!==m&&m,x=e.modifiers,M=e.open,A=e.placement,E=e.popperOptions,I=e.popperRef,S=e.style,k=e.transition,N=void 0!==k&&k,j=e.slotProps,D=e.slots,_=(0,a.Z)(e,v),O=s.useState(!0),P=(0,f.Z)(O,2),L=P[0],R=P[1];if(!b&&!M&&(!N||L))return null;if(u)r=u;else if(o){var z=w(o);r=z&&void 0!==z.nodeType?(0,c.Z)(z).body:(0,c.Z)(null).body}var B=!M&&b&&(!N||L)?"none":void 0,U=N?{in:M,onEnter:function(){R(!1)},onExited:function(){R(!0)}}:void 0;return(0,g.jsx)(y.Z,{disablePortal:h,container:r,children:(0,g.jsx)(C,(0,i.Z)({anchorEl:o,direction:void 0===d?"ltr":d,disablePortal:h,modifiers:x,ref:n,open:N?!L:M,placement:void 0===A?"bottom":A,popperOptions:void 0===E?T:E,popperRef:I,slotProps:void 0===j?{}:j,slots:void 0===D?{}:D},_,{style:(0,i.Z)({position:"fixed",top:0,left:0,display:B},S),TransitionProps:U,children:l}))})}),A=r(80179),E=r(93434),I=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],S=(0,A.ZP)(M,{name:"MuiPopper",slot:"Root",overridesResolver:function(e,n){return n.root}})({}),k=s.forwardRef(function(e,n){var r,s=(0,o.Z)(),f=(0,E.i)({props:e,name:"MuiPopper"}),l=f.anchorEl,u=f.component,c=f.components,d=f.componentsProps,p=f.container,h=f.disablePortal,y=f.keepMounted,m=f.modifiers,b=f.open,v=f.placement,w=f.popperOptions,x=f.popperRef,T=f.transition,C=f.slots,M=f.slotProps,A=(0,a.Z)(f,I),k=null!=(r=null==C?void 0:C.root)?r:null==c?void 0:c.Root,N=(0,i.Z)({anchorEl:l,container:p,disablePortal:h,keepMounted:y,modifiers:m,open:b,placement:v,popperOptions:w,popperRef:x,transition:T},A);return(0,g.jsx)(S,(0,i.Z)({as:u,direction:null==s?void 0:s.direction,slots:{root:k},slotProps:null!=M?M:d},N,{ref:n}))})},8737:function(e,n,r){"use strict";r.d(n,{i:function(){return o}});var i=r(1588),a=r(34867);function o(e){return(0,a.ZP)("MuiPopper",e)}(0,i.Z)("MuiPopper",["root"])},98342:function(e,n,r){"use strict";var i=r(17674),a=r(67294),o=r(73935),s=r(33703),f=r(73546),l=r(27364),u=r(85893),c=a.forwardRef(function(e,n){var r=e.children,c=e.container,d=e.disablePortal,p=void 0!==d&&d,h=a.useState(null),y=(0,i.Z)(h,2),m=y[0],g=y[1],b=(0,s.Z)(a.isValidElement(r)?r.ref:null,n);return((0,f.Z)(function(){!p&&g(("function"==typeof c?c():c)||document.body)},[c,p]),(0,f.Z)(function(){if(m&&!p)return(0,l.Z)(n,m),function(){(0,l.Z)(n,null)}},[n,m,p]),p)?a.isValidElement(r)?a.cloneElement(r,{ref:b}):(0,u.jsx)(a.Fragment,{children:r}):(0,u.jsx)(a.Fragment,{children:m?o.createPortal(r,m):m})});n.Z=c},87100:function(e,n,r){"use strict";r.d(n,{Z:function(){return V}});var i,a=r(87462),o=r(63366),s=r(67294),f=r(90512),l=r(4953),u=r(17674),c=r(59499),d=r(56535);r(59864);var p=r(94780),h=r(92996),y=r(35905),m=r(79566),g=r(7981),b=r(30035),v=r(74322),w=r(80179),x=r(40393),T=r(24159),C=r(83839),M=r(23345),A=r(85893),E=["aria-describedby","aria-label","autoF
375ocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],I=(0,w.ZP)("div",{name:"MuiSelect",slot:"Select",overridesResolver:function(e,n){var r=e.ownerState;return[(0,c.default)({},"&.".concat(M.Z.select),n.select),(0,c.default)({},"&.".concat(M.Z.select),n[r.variant]),(0,c.default)({},"&.".concat(M.Z.error),n.error),(0,c.default)({},"&.".concat(M.Z.multiple),n.multiple)]}})(b.wU,(0,c.default)({},"&.".concat(M.Z.select),{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"})),S=(0,w.ZP)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:function(e,n){var r=e.ownerState;return[n.icon,r.variant&&n["icon".concat((0,m.Z)(r.variant))],r.open&&n.iconOpen]}})(b.SJ),k=(0,w.ZP)("input",{shouldForwardProp:function(e){return(0,x.Z)(e)&&"classes"!==e},name:"MuiSelect",slot:"NativeInput",overridesResolver:function(e,n){return n.nativeInput}})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function N(e,n){return"object"==typeof n&&null!==n?e===n:String(e)===String(n)}var j=function(e){var n=e.classes,r=e.variant,i=e.disabled,a=e.multiple,o=e.open,s={select:["select",r,i&&"disabled",a&&"multiple",e.error&&"error"],icon:["icon","icon".concat((0,m.Z)(r)),o&&"iconOpen",i&&"disabled"],nativeInput:["nativeInput"]};return(0,p.Z)(s,M.o,n)},D=s.forwardRef(function(e,n){var r,l,c,p,m,b=e["aria-describedby"],w=e["aria-label"],x=e.autoFocus,M=e.autoWidth,D=e.children,_=e.className,O=e.defaultOpen,P=e.defaultValue,L=e.disabled,R=e.displayEmpty,z=e.error,B=void 0!==z&&z,U=e.IconComponent,F=e.inputRef,Z=e.labelId,W=e.MenuProps,H=void 0===W?{}:W,G=e.multiple,q=e.name,Y=e.onBlur,V=e.onChange,Q=e.onClose,K=e.onFocus,$=e.onOpen,J=e.open,X=e.readOnly,ee=e.renderValue,et=e.SelectDisplayProps,en=void 0===et?{}:et,er=e.tabIndex,ei=e.value,ea=e.variant,eo=(0,o.Z)(e,E),es=(0,C.Z)({controlled:ei,default:P,name:"Select"}),ef=(0,u.Z)(es,2),el=ef[0],eu=ef[1],ec=(0,C.Z)({controlled:J,default:O,name:"Select"}),ed=(0,u.Z)(ec,2),ep=ed[0],eh=ed[1],ey=s.useRef(null),em=s.useRef(null),eg=s.useState(null),eb=(0,u.Z)(eg,2),ev=eb[0],ew=eb[1],ex=s.useRef(null!=J).current,eT=s.useState(),eC=(0,u.Z)(eT,2),eM=eC[0],eA=eC[1],eE=(0,T.Z)(n,F),eI=s.useCallback(function(e){em.current=e,e&&ew(e)},[]),eS=null==ev?void 0:ev.parentNode;s.useImperativeHandle(eE,function(){return{focus:function(){em.current.focus()},node:ey.current,value:el}},[el]),s.useEffect(function(){O&&ep&&ev&&!ex&&(eA(M?null:eS.clientWidth),em.current.focus())},[ev,M]),s.useEffect(function(){x&&em.current.focus()},[x]),s.useEffect(function(){if(Z){var e=(0,y.Z)(em.current).getElementById(Z);if(e){var n=function(){getSelection().isCollapsed&&em.current.focus()};return e.addEventListener("click",n),function(){e.removeEventListener("click",n)}}}},[Z]);var ek=function(e,n){e?$&&$(n):Q&&Q(n),ex||(eA(M?null:eS.clientWidth),eh(e))},eN=s.Children.toArray(D),ej=null!==ev&&ep;delete eo["aria-invalid"];var eD=[],e_=!1;((0,v.vd)({value:el})||R)&&(ee?c=ee(el):e_=!0);var eO=eN.map(function(e){var n;if(!s.isValidElement(e))return null;if(G){if(!Array.isArray(el))throw Error((0,d.Z)(2));(n=el.some(function(n){return N(n,e.props.value)}))&&e_&&eD.push(e.props.children)}else(n=N(el,e.props.value))&&e_&&(p=e.props.children);return s.cloneElement(e,{"aria-selected":n?"true":"false",onClick:function(n){var r;if(n.currentTarget.hasAttribute("tabindex")){if(G){r=Array.isArray(el)?el.slice():[];var i=el.indexOf(e.props.value);-1===i?r.push(e.props.value):r.splice(i,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(n),el!==r&&(eu(r),V)){var a=n.nativeEvent||n,o=new a.constructor(a.type,a);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:q}}),V(o,e)}G||ek(!1,n)}},onKeyUp:function(n){" "===n.key&&n.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(n)},role:"option",selected:n,value:void 0,"data-value":e.props.value})});e_&&(c=G?0===eD.length?null:eD.reduce(function(e,n,r){return e.push(n),r<eD.length-1&&e.push(", "),e},[]):p);var eP=eM;!M&&ex&&ev&&(eP=eS.clientWidth),m=void 0!==er?er:L?null:0;var eL=en.id||(q?"mui-component-select-".concat(q):void 0),eR=(0,a.Z)({},e,{variant:void 0===ea?"standard":ea,value:el,open:ej,error:B}),ez=j(eR),eB=(0,a.Z)({},H.PaperProps,null==(l=H.slotProps)?void 0:l.paper),eU=(0,h.Z)();return(0,A.jsxs)(s.Fragment,{children:[(0,A.jsx)(I,(0,a.Z)({ref:eI,tabIndex:m,role:"combobox","aria-controls":eU,"aria-disabled":L?"true":void 0,"aria-expanded":ej?"true":"false","aria-haspopup":"listbox","aria-label":w,"aria-labelledby":[Z,eL].filter(
375Boolean).join(" ")||void 0,"aria-describedby":b,onKeyDown:function(e){X||-1===[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)||(e.preventDefault(),ek(!0,e))},onMouseDown:L||X?null:function(e){0===e.button&&(e.preventDefault(),em.current.focus(),ek(!0,e))},onBlur:function(e){!ej&&Y&&(Object.defineProperty(e,"target",{writable:!0,value:{value:el,name:q}}),Y(e))},onFocus:K},en,{ownerState:eR,className:(0,f.Z)(en.className,ez.select,_),id:eL,children:null!=(r=c)&&("string"!=typeof r||r.trim())?c:i||(i=(0,A.jsx)("span",{className:"notranslate",children:"â"}))})),(0,A.jsx)(k,(0,a.Z)({"aria-invalid":B,value:Array.isArray(el)?el.join(","):el,name:q,ref:ey,"aria-hidden":!0,onChange:function(e){var n=eN.find(function(n){return n.props.value===e.target.value});void 0!==n&&(eu(n.props.value),V&&V(e,n))},tabIndex:-1,disabled:L,className:ez.nativeInput,autoFocus:x,ownerState:eR},eo)),(0,A.jsx)(S,{as:U,className:ez.icon,ownerState:eR}),(0,A.jsx)(g.Z,(0,a.Z)({id:"menu-".concat(q||""),anchorEl:eS,open:ej,onClose:function(e){ek(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},H,{MenuListProps:(0,a.Z)({"aria-labelledby":Z,role:"listbox","aria-multiselectable":G?"true":void 0,disableListWrap:!0,id:eU},H.MenuListProps),slotProps:(0,a.Z)({},H.slotProps,{paper:(0,a.Z)({},eB,{style:(0,a.Z)({minWidth:eP},null!=eB?eB.style:null)})}),children:eO}))]})}),_=r(63705),O=r(38396),P=r(75201),L=r(18501),R=r(99098),z=r(68035),B=r(93434),U=r(98425),F=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Z=["root"],W={name:"MuiSelect",overridesResolver:function(e,n){return n.root},shouldForwardProp:function(e){return(0,U.Z)(e)&&"variant"!==e},slot:"Root"},H=(0,w.ZP)(L.Z,W)(""),G=(0,w.ZP)(z.Z,W)(""),q=(0,w.ZP)(R.Z,W)(""),Y=s.forwardRef(function(e,n){var r=(0,B.i)({name:"MuiSelect",props:e}),i=r.autoWidth,u=r.children,c=r.classes,d=r.className,p=r.defaultOpen,h=r.displayEmpty,y=void 0!==h&&h,m=r.IconComponent,g=void 0===m?P.Z:m,v=r.id,w=r.input,x=r.inputProps,C=r.label,M=r.labelId,E=r.MenuProps,I=r.multiple,S=void 0!==I&&I,k=r.native,N=void 0!==k&&k,j=r.onClose,L=r.onOpen,R=r.open,z=r.renderValue,U=r.SelectDisplayProps,W=r.variant,Y=(0,o.Z)(r,F),V=N?b.ZP:D,Q=(0,O.Z)(),K=(0,_.Z)({props:r,muiFormControl:Q,states:["variant","error"]}),$=K.variant||(void 0===W?"outlined":W),J=(0,a.Z)({},r,{variant:$,classes:void 0===c?{}:c}),X=J.classes,ee=(0,o.Z)(X,Z),et=w||({standard:(0,A.jsx)(H,{ownerState:J}),outlined:(0,A.jsx)(G,{label:C,ownerState:J}),filled:(0,A.jsx)(q,{ownerState:J})})[$],en=(0,T.Z)(n,et.ref);return(0,A.jsx)(s.Fragment,{children:s.cloneElement(et,(0,a.Z)({inputComponent:V,inputProps:(0,a.Z)({children:u,error:K.error,IconComponent:g,variant:$,type:void 0,multiple:S},N?{id:v}:{autoWidth:void 0!==i&&i,defaultOpen:void 0!==p&&p,displayEmpty:y,labelId:M,MenuProps:E,onClose:j,onOpen:L,open:R,renderValue:z,SelectDisplayProps:(0,a.Z)({id:v},U)},x,{classes:x?(0,l.Z)(ee,x.classes):ee},w?w.props.inputProps:{})},(S&&N||y)&&"outlined"===$?{notched:!0}:{},{ref:en,className:(0,f.Z)(et.props.className,d,X.root)},!w&&{variant:$},Y))})});Y.muiName="Select";var V=Y},23345:function(e,n,r){"use strict";r.d(n,{o:function(){return o}});var i=r(1588),a=r(34867);function o(e){return(0,a.ZP)("MuiSelect",e)}var s=(0,i.Z)("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);n.Z=s},61574:function(e,n,r){"use strict";var i,a,o,s,f,l,u,c,d=r(71383),p=r(63366),h=r(87462),y=r(67294),m=r(90512),g=r(70917),b=r(94780),v=r(63087),w=r(41796),x=r(80179),T=r(93434),C=r(32700),M=r(85893),A=["animation","className","component","height","style","variant","width"],E=function(e){return e},I=function(e){var n=e.classes,r=e.variant,i=e.animation,a=e.hasChildren,o=e.width,s=e.height;return(0,b.Z)({root:["root",r,i,a&&"withChildren",a&&!o&&"fitContent",a&&!s&&"heightAuto"]},C.B,n)},S=(0,g.F4)(f||(f=E(i||(i=(0,d.Z)(["\n 0% {\n opacity: 1;\n }\n\n 50% {\n opacity: 0.4;\n }\n\n 100% {\n opacity: 1;\n }\n"]))))),k=(0,g.F4)(l||(l=E(a||(a=(0,d.Z)(["\n 0% {\n transform: translateX(-100%);\n }\n\n 50% {\n /* +0.5s of delay between each loop */\n transform: translateX(100%);\n }\n\n 100% {\n transform: translateX(100%);\n }\n"]))))),N=(0,x.ZP)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:function(e,n){var r=e.ownerState;
375return[n.root,n[r.variant],!1!==r.animation&&n[r.animation],r.hasChildren&&n.withChildren,r.hasChildren&&!r.width&&n.fitContent,r.hasChildren&&!r.height&&n.heightAuto]}})(function(e){var n=e.theme,r=e.ownerState,i=(0,v.Wy)(n.shape.borderRadius)||"px",a=(0,v.YL)(n.shape.borderRadius);return(0,h.Z)({display:"block",backgroundColor:n.vars?n.vars.palette.Skeleton.bg:(0,w.Fq)(n.palette.text.primary,"light"===n.palette.mode?.11:.13),height:"1.2em"},"text"===r.variant&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:"".concat(a).concat(i,"/").concat(Math.round(a/.6*10)/10).concat(i),"&:empty:before":{content:'"\\00a0"'}},"circular"===r.variant&&{borderRadius:"50%"},"rounded"===r.variant&&{borderRadius:(n.vars||n).shape.borderRadius},r.hasChildren&&{"& > *":{visibility:"hidden"}},r.hasChildren&&!r.width&&{maxWidth:"fit-content"},r.hasChildren&&!r.height&&{height:"auto"})},function(e){return"pulse"===e.ownerState.animation&&(0,g.iv)(u||(u=E(o||(o=(0,d.Z)(["\n animation: "," 2s ease-in-out 0.5s infinite;\n "])),0)),S)},function(e){var n=e.ownerState,r=e.theme;return"wave"===n.animation&&(0,g.iv)(c||(c=E(s||(s=(0,d.Z)(["\n position: relative;\n overflow: hidden;\n\n /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */\n -webkit-mask-image: -webkit-radial-gradient(white, black);\n\n &::after {\n animation: "," 2s linear 0.5s infinite;\n background: linear-gradient(\n 90deg,\n transparent,\n ",",\n transparent\n );\n content: '';\n position: absolute;\n transform: translateX(-100%); /* Avoid flash during server-side hydration */\n bottom: 0;\n left: 0;\n right: 0;\n top: 0;\n }\n "])),0,0)),k,(r.vars||r).palette.action.hover)}),j=y.forwardRef(function(e,n){var r=(0,T.i)({props:e,name:"MuiSkeleton"}),i=r.animation,a=r.className,o=r.component,s=void 0===o?"span":o,f=r.height,l=r.style,u=r.variant,c=r.width,d=(0,p.Z)(r,A),y=(0,h.Z)({},r,{animation:void 0===i?"pulse":i,component:s,variant:void 0===u?"text":u,hasChildren:!!d.children}),g=I(y);return(0,M.jsx)(N,(0,h.Z)({as:s,ref:n,className:(0,m.Z)(g.root,a),ownerState:y},d,{style:(0,h.Z)({width:c,height:f},l)}))});n.Z=j},32700:function(e,n,r){"use strict";r.d(n,{B:function(){return o}});var i=r(1588),a=r(34867);function o(e){return(0,a.ZP)("MuiSkeleton",e)}var s=(0,i.Z)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);n.Z=s},89515:function(e,n,r){"use strict";var i=r(87462),a=r(63366),o=r(67294),s=r(8662),f=r(22645),l=r(24159),u=r(66884),c=r(53853),d=r(94571),p=r(85893),h=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function y(e,n,r){var i=function(e,n,r){var i,a=n.getBoundingClientRect(),o=r&&r.getBoundingClientRect(),s=(0,d.Z)(n);if(n.fakeTransform)i=n.fakeTransform;else{var f=s.getComputedStyle(n);i=f.getPropertyValue("-webkit-transform")||f.getPropertyValue("transform")}var l=0,u=0;if(i&&"none"!==i&&"string"==typeof i){var c=i.split("(")[1].split(")")[0].split(",");l=parseInt(c[4],10),u=parseInt(c[5],10)}return"left"===e?o?"translateX(".concat(o.right+l-a.left,"px)"):"translateX(".concat(s.innerWidth+l-a.left,"px)"):"right"===e?o?"translateX(-".concat(a.right-o.left-l,"px)"):"translateX(-".concat(a.left+a.width-l,"px)"):"up"===e?o?"translateY(".concat(o.bottom+u-a.top,"px)"):"translateY(".concat(s.innerHeight+u-a.top,"px)"):o?"translateY(-".concat(a.top-o.top+a.height-u,"px)"):"translateY(-".concat(a.top+a.height-u,"px)")}(e,n,"function"==typeof r?r():r);i&&(n.style.webkitTransform=i,n.style.transform=i)}var m=o.forwardRef(function(e,n){var r=(0,u.Z)(),m={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},g={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},b=e.addEndListener,v=e.appear,w=e.children,x=e.container,T=e.direction,C=void 0===T?"down":T,M=e.easing,A=void 0===M?m:M,E=e.in,I=e.onEnter,S=e.onEntered,k=e.onEntering,N=e.onExit,j=e.onExited,D=e.onExiting,_=e.style,O=e.timeout,P=void 0===O?g:O,L=e.TransitionComponent,R=void 0===L?s.ZP:L,z=(0,a.Z)(e,h),B=o.useRef(null),U=(0,l.Z)(w.ref,B,n),F=function(e){return function(n){e&&(void 0===n?e(B.current):e(B.current,n))}},Z=F(function(e,n){y(C,e,x),(0,c.n)(e),I&&I(e,n)}),W=F(function(e,n){var a=(0,c.C)({timeout:P,style:_,easing:A},{mode:"enter"});e.style.webkitTransition=r.transitions.create("-webkit-transform",(0,i.Z)({},a)),e.style.transition=r.transitions.create("transform",(0,i.Z)({},a)),e.style.webkitTransform="none",e.style.transform="none",k&&k(e,n)}),H=F(S),G=F(D),q=F(function(e){var n=(0,c.C)({timeout:P,style:_,easing:A},{mode:"exit"});e.style.webkitTransition=r.transitions.create("-webkit-transform",n),e.style.transition=r.transitions.create("transform",n),y(C,e,x),N&&N(e)}),Y=F(function(e){e.style.webkitTransition="",e.style.transition="",j&&j(e)}),V=o.useCallback(function(){B.current&&y(C,B.current,x)},[C,x]);return o.useEffect(function(){if(!E&&"down"!==C&&"right"!==C){var e=(0,f.Z)(function(){B.current&&y(C,B.current,x)}),n=(0,d.Z)(B.current);return n.addEventListener("resize",e),function(){e.clear(),n.removeEventListener("resize",e)}}},[C,E,x]),o.useEffect(function(){E||V()},[E,V]),(0,p.jsx)(R,(0,i.Z)({nodeRef:B,onEnter:Z,onEntered:H,onEntering:W,onExit:q,onExited:Y,onExiting:G,addEndListener:function(e){b&&b(B.current,e)},appear:void 0===v||v,in:E,timeout:P},z,{children:function(e,n){return o.cloneElement(w,(0,i.Z)({ref:U,style:(0,i.Z)({visibility:"exited"!==e||E?void 0:"hidden"},_,w.props.style)},n))}}))});n.Z=m},74255:function(e,n,r){"use strict";r.d(n,{Z:function(){return S}});var i=r(17674),a=r(59499),o=r(63366),s=r(87462),f=r(67294),l=r(94780),u=r(82963),c=r(46271),d=r(59948),p=r(99113),h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.autoHideDuration,r=void 0===n?null:n,i=e.disableWindowBlurListener,a=void 0!==i&&i,o=e.onClose,l=e.open,u=e.resumeHideDuration,h=(0,c.Z)();f.useEffect(function(){if(l)return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"!==e.key&&"Esc"!==e.key||null==o||o(e,"escapeKeyDown")}},[l,o]);
375var y=(0,d.Z)(function(e,n){null==o||o(e,n)}),m=(0,d.Z)(function(e){o&&null!=e&&h.start(e,function(){y(null,"timeout")})});f.useEffect(function(){return l&&m(r),h.clear},[l,r,m,h]);var g=h.clear,b=f.useCallback(function(){null!=r&&m(null!=u?u:.5*r)},[r,u,m]);return f.useEffect(function(){if(!a&&l)return window.addEventListener("focus",b),window.addEventListener("blur",g),function(){window.removeEventListener("focus",b),window.removeEventListener("blur",g)}},[a,l,b,g]),{getRootProps:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=(0,s.Z)({},(0,p.Z)(e),(0,p.Z)(n));return(0,s.Z)({role:"presentation"},n,r,{onBlur:function(e){var n=r.onBlur;null==n||n(e),b()},onFocus:function(e){var n=r.onFocus;null==n||n(e),g()},onMouseEnter:function(e){var n=r.onMouseEnter;null==n||n(e),g()},onMouseLeave:function(e){var n=r.onMouseLeave;null==n||n(e),b()}})},onClickAway:function(e){null==o||o(e,"clickaway")}}},y=r(82749),m=r(80179),g=r(66884),b=r(93434),v=r(79566),w=r(99856),x=r(20090),T=r(65792),C=r(85893),M=["onEnter","onExited"],A=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],E=function(e){var n=e.classes,r=e.anchorOrigin,i={root:["root","anchorOrigin".concat((0,v.Z)(r.vertical)).concat((0,v.Z)(r.horizontal))]};return(0,l.Z)(i,T.h,n)},I=(0,m.ZP)("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:function(e,n){var r=e.ownerState;return[n.root,n["anchorOrigin".concat((0,v.Z)(r.anchorOrigin.vertical)).concat((0,v.Z)(r.anchorOrigin.horizontal))]]}})(function(e){var n=e.theme,r=e.ownerState;return(0,s.Z)({zIndex:(n.vars||n).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},"top"===r.anchorOrigin.vertical?{top:8}:{bottom:8},"left"===r.anchorOrigin.horizontal&&{justifyContent:"flex-start"},"right"===r.anchorOrigin.horizontal&&{justifyContent:"flex-end"},(0,a.default)({},n.breakpoints.up("sm"),(0,s.Z)({},"top"===r.anchorOrigin.vertical?{top:24}:{bottom:24},"center"===r.anchorOrigin.horizontal&&{left:"50%",right:"auto",transform:"translateX(-50%)"},"left"===r.anchorOrigin.horizontal&&{left:24,right:"auto"},"right"===r.anchorOrigin.horizontal&&{right:24,left:"auto"})))}),S=f.forwardRef(function(e,n){var r=(0,b.i)({props:e,name:"MuiSnackbar"}),a=(0,g.Z)(),l={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},c=r.action,d=r.anchorOrigin,p=void 0===d?{vertical:"bottom",horizontal:"left"}:d,m=p.vertical,v=p.horizontal,T=r.autoHideDuration,S=r.children,k=r.className,N=r.ClickAwayListenerProps,j=r.ContentProps,D=r.disableWindowBlurListener,_=r.message,O=r.open,P=r.TransitionComponent,L=void 0===P?w.Z:P,R=r.transitionDuration,z=void 0===R?l:R,B=r.TransitionProps,U=void 0===B?{}:B,F=U.onEnter,Z=U.onExited,W=(0,o.Z)(r.TransitionProps,M),H=(0,o.Z)(r,A),G=(0,s.Z)({},r,{anchorOrigin:{vertical:m,horizontal:v},autoHideDuration:void 0===T?null:T,disableWindowBlurListener:void 0!==D&&D,TransitionComponent:L,transitionDuration:z}),q=E(G),Y=h((0,s.Z)({},G)),V=Y.getRootProps,Q=Y.onClickAway,K=f.useState(!0),$=(0,i.Z)(K,2),J=$[0],X=$[1],ee=(0,u.Z)({elementType:I,getSlotProps:V,externalForwardedProps:H,ownerState:G,additionalProps:{ref:n},className:[q.root,k]});return!O&&J?null:(0,C.jsx)(y.d,(0,s.Z)({onClickAway:Q},N,{children:(0,C.jsx)(I,(0,s.Z)({},ee,{children:(0,C.jsx)(L,(0,s.Z)({appear:!0,in:O,timeout:z,direction:"top"===m?"down":"up",onEnter:function(e,n){X(!1),F&&F(e,n)},onExited:function(e){X(!0),Z&&Z(e)}},W,{children:S||(0,C.jsx)(x.Z,(0,s.Z)({message:_,action:c},j))}))}))}))})},65792:function(e,n,r){"use strict";r.d(n,{h:function(){return o}});var i=r(1588),a=r(34867);function o(e){return(0,a.ZP)("MuiSnackbar",e)}var s=(0,i.Z)("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);n.Z=s},20090:function(e,n,r){"use strict";var i=r(59499),a=r(63366),o=r(87462),s=r(67294),f=r(90512),l=r(94780),u=r(2101),c=r(80179),d=r(93434),p=r(69900),h=r(70085),y=r(85893),m=["action","className","message","role"],g=function(e){var n=e.classes;return(0,l.Z)({root:["root"],action:["action"],message:["message"]},h.A,n)},b=(0,c.ZP)(p.Z,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:function(e,n){return n.root}})(function(e){var n=e.theme,r="light"===n.palette.mode?.8:.98,a=(0,u._4)(n.palette.background.default,r);return(0,o.Z)({},n.typography.body2,(0,i.default)({color:n.vars?n.vars.palette.SnackbarContent.color:n.palette.getContrastText(a),backgroundColor:n.vars?n.vars.palette.SnackbarContent.bg:a,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(n.vars||n).shape.borderRadius,flexGrow:1},n.breakpoints.up("sm"),{flexGrow:"initial",minWidth:288}))}),v=(0,c.ZP)("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:function(e,n){return n.message}})({padding:"8px 0"}),w=(0,c.ZP)("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:function(e,n){return n.action}})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),x=s.forwardRef(function(e,n){var r=(0,d.i)({props:e,name:"MuiSnackbarContent"}),i=r.action,s=r.className,l=r.message,u=r.role,c=(0,a.Z)(r,m),p=g(r);return(0,y.jsxs)(b,(0,o.Z)({role:void 0===u?"alert":u,square:!0,elevation:6,className:(0,f.Z)(p.root,s),ownerState:r,ref:n}
375,c,{children:[(0,y.jsx)(v,{className:p.message,ownerState:r,children:l}),i?(0,y.jsx)(w,{className:p.action,ownerState:r,children:i}):null]}))});n.Z=x},70085:function(e,n,r){"use strict";r.d(n,{A:function(){return o}});var i=r(1588),a=r(34867);function o(e){return(0,a.ZP)("MuiSnackbarContent",e)}var s=(0,i.Z)("MuiSnackbarContent",["root","message","action"]);n.Z=s},70197:function(e,n,r){"use strict";var i=r(1819),a=r(80179),o=r(93434),s=(0,i.Z)({createStyledComponent:(0,a.ZP)("div",{name:"MuiStack",slot:"Root",overridesResolver:function(e,n){return n.root}}),useThemeProps:function(e){return(0,o.i)({props:e,name:"MuiStack"})}});n.Z=s},82711:function(e,n,r){"use strict";var i=r(87462),a=r(63366),o=r(67294),s=r(90512),f=r(94780),l=r(79566),u=r(93434),c=r(80179),d=r(197),p=r(85893),h=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],y=function(e){var n=e.color,r=e.fontSize,i=e.classes,a={root:["root","inherit"!==n&&"color".concat((0,l.Z)(n)),"fontSize".concat((0,l.Z)(r))]};return(0,f.Z)(a,d.h,i)},m=(0,c.ZP)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:function(e,n){var r=e.ownerState;return[n.root,"inherit"!==r.color&&n["color".concat((0,l.Z)(r.color))],n["fontSize".concat((0,l.Z)(r.fontSize))]]}})(function(e){var n,r,i,a,o,s,f,l,u,c,d,p,h,y=e.theme,m=e.ownerState;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:m.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=y.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(i=y.transitions)||null==(i=i.duration)?void 0:i.shorter}),fontSize:({inherit:"inherit",small:(null==(a=y.typography)||null==(o=a.pxToRem)?void 0:o.call(a,20))||"1.25rem",medium:(null==(s=y.typography)||null==(f=s.pxToRem)?void 0:f.call(s,24))||"1.5rem",large:(null==(l=y.typography)||null==(u=l.pxToRem)?void 0:u.call(l,35))||"2.1875rem"})[m.fontSize],color:null!=(c=null==(d=(y.vars||y).palette)||null==(d=d[m.color])?void 0:d.main)?c:({action:null==(p=(y.vars||y).palette)||null==(p=p.action)?void 0:p.active,disabled:null==(h=(y.vars||y).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0})[m.color]}}),g=o.forwardRef(function(e,n){var r=(0,u.i)({props:e,name:"MuiSvgIcon"}),f=r.children,l=r.className,c=r.color,d=r.component,g=void 0===d?"svg":d,b=r.fontSize,v=r.htmlColor,w=r.inheritViewBox,x=void 0!==w&&w,T=r.titleAccess,C=r.viewBox,M=void 0===C?"0 0 24 24":C,A=(0,a.Z)(r,h),E=o.isValidElement(f)&&"svg"===f.type,I=(0,i.Z)({},r,{color:void 0===c?"inherit":c,component:g,fontSize:void 0===b?"medium":b,instanceFontSize:e.fontSize,inheritViewBox:x,viewBox:M,hasSvgAsChild:E}),S={};x||(S.viewBox=M);var k=y(I);return(0,p.jsxs)(m,(0,i.Z)({as:g,className:(0,s.Z)(k.root,l),focusable:"false",color:v,"aria-hidden":!T||void 0,role:T?"img":void 0,ref:n},S,A,E&&f.props,{ownerState:I,children:[E?f.props.children:f,T?(0,p.jsx)("title",{children:T}):null]}))});g.muiName="SvgIcon",n.Z=g},197:function(e,n,r){"use strict";r.d(n,{h:function(){return o}});var i=r(1588),a=r(34867);function o(e){return(0,a.ZP)("MuiSvgIcon",e)}var s=(0,i.Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);n.Z=s},2971:function(e,n,r){"use strict";var i,a=r(17674),o=r(90116),s=r(59499),f=r(63366),l=r(87462),u=r(67294),c=r(90512),d=r(94780),p=r(2101),h=r(79566),y=r(52733),m=r(80179),g=r(93434),b=r(44381),v=r(85893),w=["className","color","edge","size","sx"],x=function(e){var n=e.classes,r=e.edge,i=e.size,a=e.color,o=e.checked,s=e.disabled,f={root:["root",r&&"edge".concat((0,h.Z)(r)),"size".concat((0,h.Z)(i))],switchBase:["switchBase","color".concat((0,h.Z)(a)),o&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},u=(0,d.Z)(f,b.H,n);return(0,l.Z)({},n,u)},T=(0,m.ZP)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:function(e,n){var r=e.ownerState;return[n.root,r.edge&&n["edge".concat((0,h.Z)(r.edge))],n["size".concat((0,h.Z)(r.size))]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:(i={width:40,height:24,padding:7},(0,s.default)(i,"& .".concat(b.Z.thumb),{width:16,height:16}),(0,s.default)(i,"& .".concat(b.Z.switchBase),(0,s.default)({padding:4},"&.".concat(b.Z.checked),{transform:"translateX(16px)"})),i)}]}),C=(0,m.ZP)(y.Z,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:function(e,n){var r=e.ownerState;return[n.switchBase,(0,s.default)({},"& .".concat(b.Z.input),n.input),"default"!==r.color&&n["color".concat((0,h.Z)(r.color))]]}})(function(e){var n,r=e.theme;return n={position:"absolute",top:0,left:0,zIndex:1,color:r.vars?r.vars.palette.Switch.defaultColor:"".concat("light"===r.palette.mode?r.palette.common.white:r.palette.grey[300]),transition:r.transitions.create(["left","transform"],{duration:r.transitions.duration.shortest})},(0,s.default)(n,"&.".concat(b.Z.checked),{transform:"translateX(20px)"}),(0,s.default)(n,"&.".concat(b.Z.disabled),{color:r.vars?r.vars.palette.Switch.defaultDisabledColor:"".concat("light"===r.palette.mode?r.palette.grey[100]:r.palette.grey[600])}),(0,s.default)(n,"&.".concat(b.Z.checked," + .").concat(b.Z.track),{opacity:.5}),(0,s.default)(n,"&.".concat(b.Z.disabled," + .").concat(b.Z.track),{opacity:r.vars?r.vars.opacity.switchTrackDisabled:"".concat("light"===r.palette.mode?.12:.2)}),(0,s.default)(n,"& .".concat(b.Z.input),{left:"-100%",width:"300%"}),n},function(e){var n=e.theme;return{"&:hover":{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.action.activeChannel," / ").concat(n.vars.palette.action.hoverOpacity,")"):(0,p.Fq)(n.palette.action.active,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:(0,o.Z)(Object.entries(n.palette).filter(function(e){var n=(0,a.Z)(e,2)[1];return n.main&&n.light}).map(function(e){var r,i=(0,a.Z)(e,1)[0];return{props:{color:i},style:(r={},(0,s.default)(r,"&.".concat(b.Z.checked),(0,s.default)({color:(n.vars||n).palette[i].main,"&:hover":{backgroundColor:n.vars?"rgba(".concat(n.vars.palette[i].mainChannel," / ").concat(n.vars.palette.action.hoverOpacity,")"):(0,p.Fq)(n.palette[i].main,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&.".concat(b.Z.disabled),{color:n.vars?n.vars.palette.Switch["".concat(i,"DisabledColor")]:"".concat("light"===n.palette.mode?(0,p.$n)(n.palette[i].main,.62):(0,p._j)(n.palette[i].main,.55))}
375)),(0,s.default)(r,"&.".concat(b.Z.checked," + .").concat(b.Z.track),{backgroundColor:(n.vars||n).palette[i].main}),r)}}))}}),M=(0,m.ZP)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:function(e,n){return n.track}})(function(e){var n=e.theme;return{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:n.transitions.create(["opacity","background-color"],{duration:n.transitions.duration.shortest}),backgroundColor:n.vars?n.vars.palette.common.onBackground:"".concat("light"===n.palette.mode?n.palette.common.black:n.palette.common.white),opacity:n.vars?n.vars.opacity.switchTrack:"".concat("light"===n.palette.mode?.38:.3)}}),A=(0,m.ZP)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:function(e,n){return n.thumb}})(function(e){var n=e.theme;return{boxShadow:(n.vars||n).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}}),E=u.forwardRef(function(e,n){var r=(0,g.i)({props:e,name:"MuiSwitch"}),i=r.className,a=r.color,o=r.edge,s=r.size,u=r.sx,d=(0,f.Z)(r,w),p=(0,l.Z)({},r,{color:void 0===a?"primary":a,edge:void 0!==o&&o,size:void 0===s?"medium":s}),h=x(p),y=(0,v.jsx)(A,{className:h.thumb,ownerState:p});return(0,v.jsxs)(T,{className:(0,c.Z)(h.root,i),sx:u,ownerState:p,children:[(0,v.jsx)(C,(0,l.Z)({type:"checkbox",icon:y,checkedIcon:y,ref:n,ownerState:p},d,{classes:(0,l.Z)({},h,{root:h.switchBase})})),(0,v.jsx)(M,{className:h.track,ownerState:p})]})});n.Z=E},44381:function(e,n,r){"use strict";r.d(n,{H:function(){return o}});var i=r(1588),a=r(34867);function o(e){return(0,a.ZP)("MuiSwitch",e)}var s=(0,i.Z)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);n.Z=s},55462:function(e,n,r){"use strict";var i=r(87462),a=r(63366),o=r(67294),s=r(90512),f=r(94780),l=r(92996),u=r(80179),c=r(93434),d=r(18501),p=r(99098),h=r(68035),y=r(95117),m=r(40967),g=r(2542),b=r(87100),v=r(99138),w=r(85893),x=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],T={standard:d.Z,filled:p.Z,outlined:h.Z},C=function(e){var n=e.classes;return(0,f.Z)({root:["root"]},v.I,n)},M=(0,u.ZP)(m.Z,{name:"MuiTextField",slot:"Root",overridesResolver:function(e,n){return n.root}})({}),A=o.forwardRef(function(e,n){var r=(0,c.i)({props:e,name:"MuiTextField"}),o=r.autoComplete,f=r.autoFocus,u=void 0!==f&&f,d=r.children,p=r.className,h=r.color,m=void 0===h?"primary":h,v=r.defaultValue,A=r.disabled,E=void 0!==A&&A,I=r.error,S=void 0!==I&&I,k=r.FormHelperTextProps,N=r.fullWidth,j=void 0!==N&&N,D=r.helperText,_=r.id,O=r.InputLabelProps,P=r.inputProps,L=r.InputProps,R=r.inputRef,z=r.label,B=r.maxRows,U=r.minRows,F=r.multiline,Z=void 0!==F&&F,W=r.name,H=r.onBlur,G=r.onChange,q=r.onFocus,Y=r.placeholder,V=r.required,Q=void 0!==V&&V,K=r.rows,$=r.select,J=void 0!==$&&$,X=r.SelectProps,ee=r.type,et=r.value,en=r.variant,er=void 0===en?"outlined":en,ei=(0,a.Z)(r,x),ea=(0,i.Z)({},r,{autoFocus:u,color:m,disabled:E,error:S,fullWidth:j,multiline:Z,required:Q,select:J,variant:er}),eo=C(ea),es={};"outlined"===er&&(O&&void 0!==O.shrink&&(es.notched=O.shrink),es.label=z),J&&(X&&X.native||(es.id=void 0),es["aria-describedby"]=void 0);var ef=(0,l.Z)(_),el=D&&ef?"".concat(ef,"-helper-text"):void 0,eu=z&&ef?"".concat(ef,"-label"):void 0,ec=T[er],ed=(0,w.jsx)(ec,(0,i.Z)({"aria-describedby":el,autoComplete:o,autoFocus:u,defaultValue:v,fullWidth:j,multiline:Z,name:W,rows:K,maxRows:B,minRows:U,type:ee,value:et,id:ef,inputRef:R,onBlur:H,onChange:G,onFocus:q,placeholder:Y,inputProps:P},es,L));return(0,w.jsxs)(M,(0,i.Z)({className:(0,s.Z)(eo.root,p),disabled:E,error:S,fullWidth:j,ref:n,required:Q,color:m,variant:er,ownerState:ea},ei,{children:[null!=z&&""!==z&&(0,w.jsx)(y.Z,(0,i.Z)({htmlFor:ef,id:eu},O,{children:z})),J?(0,w.jsx)(b.Z,(0,i.Z)({"aria-describedby":el,id:ef,labelId:eu,value:et,input:ed},X,{children:d})):ed,D&&(0,w.jsx)(g.Z,(0,i.Z)({id:el},k,{children:D}))]}))});n.Z=A},99138:function(e,n,r){"use strict";r.d(n,{I:function(){return o}});var i=r(1588),a=r(34867);function o(e){return(0,a.ZP)("MuiTextField",e)}var s=(0,i.Z)("MuiTextField",["root"]);n.Z=s},65547:function(e,n,r){"use strict";
375var i=r(87462),a=r(63366),o=r(67294),s=r(33703),f=r(74161),l=r(73546),u=r(39336),c=r(85893),d=["onChange","maxRows","minRows","style","value"];function p(e){return parseInt(e,10)||0}var h={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},y=o.forwardRef(function(e,n){var r=e.onChange,y=e.maxRows,m=e.minRows,g=void 0===m?1:m,b=e.style,v=e.value,w=(0,a.Z)(e,d),x=o.useRef(null!=v).current,T=o.useRef(null),C=(0,s.Z)(n,T),M=o.useRef(null),A=o.useRef(null),E=o.useCallback(function(){var n=T.current,r=(0,f.Z)(n).getComputedStyle(n);if("0px"===r.width)return{outerHeightStyle:0,overflowing:!1};var i=A.current;i.style.width=r.width,i.value=n.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");var a=r.boxSizing,o=p(r.paddingBottom)+p(r.paddingTop),s=p(r.borderBottomWidth)+p(r.borderTopWidth),l=i.scrollHeight;i.value="x";var u=i.scrollHeight,c=l;return g&&(c=Math.max(Number(g)*u,c)),y&&(c=Math.min(Number(y)*u,c)),{outerHeightStyle:(c=Math.max(c,u))+("border-box"===a?o+s:0),overflowing:1>=Math.abs(c-l)}},[y,g,e.placeholder]),I=o.useCallback(function(){var e=E();if(null!=e&&0!==Object.keys(e).length&&(0!==e.outerHeightStyle||e.overflowing)){var n=e.outerHeightStyle,r=T.current;M.current!==n&&(M.current=n,r.style.height="".concat(n,"px")),r.style.overflow=e.overflowing?"hidden":""}},[E]);return(0,l.Z)(function(){var e,n,r=function(){I()},i=(0,u.Z)(r),a=T.current,o=(0,f.Z)(a);return o.addEventListener("resize",i),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(r)).observe(a),function(){i.clear(),cancelAnimationFrame(e),o.removeEventListener("resize",i),n&&n.disconnect()}},[E,I]),(0,l.Z)(function(){I()}),(0,c.jsxs)(o.Fragment,{children:[(0,c.jsx)("textarea",(0,i.Z)({value:v,onChange:function(e){x||I(),r&&r(e)},ref:C,rows:g,style:b},w)),(0,c.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:A,tabIndex:-1,style:(0,i.Z)({},h,b,{paddingTop:0,paddingBottom:0})})]})});n.Z=y},76907:function(e,n,r){"use strict";r.d(n,{Z:function(){return M}});var i=r(59499),a=r(63366),o=r(87462),s=r(67294),f=r(90512),l=r(35971),u=r(94780),c=r(41796),d=r(54207),p=r(79566),h=r(93434),y=r(80179),m=r(75996),g=r(28265),b=r(64389),v=r(85893),w=["value"],x=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],T=function(e){var n=e.classes,r=e.fullWidth,i=e.selected,a=e.disabled,o=e.size,s=e.color,f={root:["root",i&&"selected",a&&"disabled",r&&"fullWidth","size".concat((0,p.Z)(o)),s]};return(0,u.Z)(f,m.a,n)},C=(0,y.ZP)(d.Z,{name:"MuiToggleButton",slot:"Root",overridesResolver:function(e,n){var r=e.ownerState;return[n.root,n["size".concat((0,p.Z)(r.size))]]}})(function(e){var n,r,a=e.theme,s=e.ownerState,f="standard"===s.color?a.palette.text.primary:a.palette[s.color].main;return a.vars&&(f="standard"===s.color?a.vars.palette.text.primary:a.vars.palette[s.color].main,r="standard"===s.color?a.vars.palette.text.primaryChannel:a.vars.palette[s.color].mainChannel),(0,o.Z)({},a.typography.button,{borderRadius:(a.vars||a).shape.borderRadius,padding:11,border:"1px solid ".concat((a.vars||a).palette.divider),color:(a.vars||a).palette.action.active},s.fullWidth&&{width:"100%"},(n={},(0,i.default)(n,"&.".concat(m.Z.disabled),{color:(a.vars||a).palette.action.disabled,border:"1px solid ".concat((a.vars||a).palette.action.disabledBackground)}),(0,i.default)(n,"&:hover",{textDecoration:"none",backgroundColor:a.vars?"rgba(".concat(a.vars.palette.text.primaryChannel," / ").concat(a.vars.palette.action.hoverOpacity,")"):(0,c.Fq)(a.palette.text.primary,a.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}),(0,i.default)(n,"&.".concat(m.Z.selected),{color:f,backgroundColor:a.vars?"rgba(".concat(r," / ").concat(a.vars.palette.action.selectedOpacity,")"):(0,c.Fq)(f,a.palette.action.selectedOpacity),"&:hover":{backgroundColor:a.vars?"rgba(".concat(r," / calc(").concat(a.vars.palette.action.selectedOpacity," + ").concat(a.vars.palette.action.hoverOpacity,"))"):(0,c.Fq)(f,a.palette.action.selectedOpacity+a.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:a.vars?"rgba(".concat(r," / ").concat(a.vars.palette.action.selectedOpacity,")"):(0,c.Fq)(f,a.palette.action.selectedOpacity)}}}),n),"small"===s.size&&{padding:7,fontSize:a.typography.pxToRem(13)},"large"===s.size&&{padding:15,fontSize:a.typography.pxToRem(15)})}),M=s.forwardRef(function(e,n){var r,i=s.useContext(g.Z),u=i.value,c=(0,a.Z)(i,w),d=s.useContext(b.Z),p=(0,l.Z)((0,o.Z)({},c,{selected:(r=e.value,void 0!==u&&void 0!==r&&(Array.isArray(u)?u.indexOf(r)>=0:r===u))}),e),y=(0,h.i)({props:p,name:"MuiToggleButton"}),m=y.children,M=y.className,A=y.color,E=y.disabled,I=void 0!==E&&E,S=y.disableFocusRipple,k=void 0!==S&&S,N=y.fullWidth,j=y.onChange,D=y.onClick,_=y.selected,O=y.size,P=y.value,L=(0,a.Z)(y,x),R=(0,o.Z)({},y,{color:void 0===A?"standard":A,disabled:I,disableFocusRipple:k,fullWidth:void 0!==N&&N,size:void 0===O?"medium":O}),z=T(R);return(0,v.jsx)(C,(0,o.Z)({className:(0,f.Z)(c.className,z.root,M,d||""),disabled:I,focusRipple:!k,ref:n,onClick:function(e){D&&(D(e,P),e.defaultPrevented)||!j||j(e,P)},onChange:j,value:P,ownerState:R,"aria-pressed":_},L,{children:m}))})},75996:function(e,n,r){"use strict";r.d(n,{a:function(){return o}});var i=r(1588),a=r(34867);function o(e){return(0,a.ZP)("MuiToggleButton",e)}var s=(0,i.Z)("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]);n.Z=s},33673:function(e,n,r){"use strict";var i=r(59499),a=r(63366),o=r(87462),s=r(67294);r(59864);var f=r(90512),l=r(94780),u=r(97258),c=r(80179),d=r(93434),p=r(79566),h=r(87416),y=r(28265),m=r(64389),g=r(75996),b=r(85893),v=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],w=function(e){var n=e.classes,r=e.orientation,i=e.fullWidth,a=e.disabled,o={root:["root","vertical"===r&&"vertical",i&&"fullWidth"],grouped:["grouped","grouped".concat((0,p.Z)(r)),a&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return(0,l.Z)(o,h.H,n)},x=(0,c.ZP)("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:function(e,n){var r=e.ownerState;return[(0,i.default)({},"& .".concat(h.Z.grouped),n.grouped),(0,i.default)({},"& .".concat(h.Z.grouped),n["grouped".concat((0,p.Z)(r.orientation))]),(0,i.default)({},"& .".concat(h.Z.firstButton),n.firstButton),(0,i.default)({},"& .".concat(h.Z.lastButton),n.lastButton),(0,i.default)({},"& .".concat(h.Z.middleButton),n.middleButton),n.root,"vertical"===r.orientation&&n.vertical,r.fullWidth&&n.fullWidth]}})(function(e){var n,r,a=e.ownerState,s=e.theme;return(0,o.Z)({display:"inline-flex",borderRadius:(s.vars||s).shape.borderRadius},"vertical"===a.orientation&&{flexDirection:"column"},a.fullWidth&&{width:"100%"},(0,i.default)({},"& .".concat(h.Z.grouped),(0,o.Z)({},"horizontal"===a.orientation?(0,i.default)({},"&.".concat(h.Z.selected," + .").concat(h.Z.grouped,".").concat(h.Z.selected),{borderLeft:0,marginLeft:0}):(0,i.default)({},"&.".concat(h.Z.selected," + .").concat(h.Z.grouped,".").concat(h.Z.selected),{borderTop:0,marginTop:0}))),"horizontal"===a.orientation?(n={},(0,i.default)(n,"& .".concat(h.Z.firstButton,",& .").concat(h.Z.middleButton),{borderTopRightRadius:0,borderBottomRightRadius:0}),(0,i.default)(n,"& .".concat(h.Z.lastButton,",& .").concat(h.Z.middleButton),{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}),n):(r={},(0,i.default)(r,"& .".concat(h.Z.firstButton,",& .").concat(h.Z.middleButton),{borderBottomLeftRadius:0,borderBottomRightRadius:0}),(0,i.default)(r,"& .".concat(h.Z.lastButton,",& .").concat(h.Z.middleButton),{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}),r),"horizontal"===a.orientation?(0,i.default)({},"& .".concat(h.Z.lastButton,".").concat(g.Z.disabled,",& .").concat(h.Z.middleButton,".").concat(g.Z.disabled),{borderLeft:"1px solid transparent"}):(0,i.default)({},"& .".concat(h.Z.lastButton,".").concat(g.Z.disabled,",& .").concat(h.Z.middleButton,".").concat(g.Z.disabled),{borderTop:"1px solid transparent"}))}),T=s.forwardRef(function(e,n){var r=(0,d.i)({props:e,name:"MuiToggleButtonGroup"}),i=r.children,l=r.className,c=r.color,p=void 0===c?"standard":c,h=r.disabled,g=void 0!==h&&h,T=r.exclusive,C=void 0!==T&&T,M=r.fullWidth,A=void 0!==M&&M,E=r.onChange,I=r.orientation,S=r.size,k=void 0===S?"medium":S,N=r.value,j=(0,a.Z)(r,v),D=(0,o.Z)({},r,{disabled:g,fullWidth:A,orientation:void 0===I?"horizontal":I,size:k}),_=w(D),O=s.useCallback(function(e,n){if(E){var r,i=N&&N.indexOf(n);N&&i>=0?(r=N.slice()).splice(i,1):r=N?N.concat(n):[n],E(e,r)}},[E,N]),P=s.useCallback(function(e,n){E&&E(e,N===n?null:n)},[E,N]),L=s.useMemo(function(){return{className:_.grouped,onChange:C?P:O,value:N,size:k,fullWidth:A,color:p,disabled:g}},[_.grouped,C,P,O,N,k,A,p,g]),R=(0,u.Z)(i),z=R.length,B=function(e){var n=0===e,r=e===z-1;return n&&r?"":n?_.firstButton:r?_.lastButton:_.middleButton};return(0,b.jsx)(x,(0,o.Z)({role:"group",className:(0,f.Z)(_.root,l),ref:n,ownerState:D},j,{children:(0,b.jsx)(y.Z.Provider,{value:L,children:R.map(function(e,n){return(0,b.jsx)(m.Z.Provider,{value:B(n),children:e},n)})})}))});n.Z=T},64389:function(e,n,r){"use strict";var i=r(67294).createContext(void 0);n.Z=i},28265:function(e,n,r){"use strict";var i=r(67294).createContext({});n.Z=i},87416:function(e,n,r){"use strict";r.d(n,{H:function(){return o}});var i=r(1588),a=r(34867);function o(e){return(0,a.ZP)("MuiToggleButtonGroup",e)}var s=(0,i.Z)("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]);n.Z=s},48428:function(e,n,r){"use strict";var i=r(17674),a=r(59499),o=r(63366),s=r(87462),f=r(67294),l=r(90512),u=r(46271),c=r(94780),d=r(2101),p=r(82056),h=r(86542),y=r(80179),m=r(66884),g=r(93434),b=r(79566),v=r(99856),w=r(26211),x=r
375(11825),T=r(24159),C=r(1885),M=r(39564),A=r(83839),E=r(67059),I=r(85893),S=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"],k=function(e){var n=e.classes,r=e.disableInteractive,i=e.arrow,a=e.touch,o=e.placement,s={popper:["popper",!r&&"popperInteractive",i&&"popperArrow"],tooltip:["tooltip",i&&"tooltipArrow",a&&"touch","tooltipPlacement".concat((0,b.Z)(o.split("-")[0]))],arrow:["arrow"]};return(0,c.Z)(s,E.Q,n)},N=(0,y.ZP)(w.Z,{name:"MuiTooltip",slot:"Popper",overridesResolver:function(e,n){var r=e.ownerState;return[n.popper,!r.disableInteractive&&n.popperInteractive,r.arrow&&n.popperArrow,!r.open&&n.popperClose]}})(function(e){var n,r=e.theme,i=e.ownerState,o=e.open;return(0,s.Z)({zIndex:(r.vars||r).zIndex.tooltip,pointerEvents:"none"},!i.disableInteractive&&{pointerEvents:"auto"},!o&&{pointerEvents:"none"},i.arrow&&(n={},(0,a.default)(n,'&[data-popper-placement*="bottom"] .'.concat(E.Z.arrow),{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}}),(0,a.default)(n,'&[data-popper-placement*="top"] .'.concat(E.Z.arrow),{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}}),(0,a.default)(n,'&[data-popper-placement*="right"] .'.concat(E.Z.arrow),(0,s.Z)({},i.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}})),(0,a.default)(n,'&[data-popper-placement*="left"] .'.concat(E.Z.arrow),(0,s.Z)({},i.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})),n))}),j=(0,y.ZP)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:function(e,n){var r=e.ownerState;return[n.tooltip,r.touch&&n.touch,r.arrow&&n.tooltipArrow,n["tooltipPlacement".concat((0,b.Z)(r.placement.split("-")[0]))]]}})(function(e){var n,r=e.theme,i=e.ownerState;return(0,s.Z)({backgroundColor:r.vars?r.vars.palette.Tooltip.bg:(0,d.Fq)(r.palette.grey[700],.92),borderRadius:(r.vars||r).shape.borderRadius,color:(r.vars||r).palette.common.white,fontFamily:r.typography.fontFamily,padding:"4px 8px",fontSize:r.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:r.typography.fontWeightMedium},i.arrow&&{position:"relative",margin:0},i.touch&&{padding:"8px 16px",fontSize:r.typography.pxToRem(14),lineHeight:"".concat(Math.round(16/14*1e5)/1e5,"em"),fontWeight:r.typography.fontWeightRegular},(n={},(0,a.default)(n,".".concat(E.Z.popper,'[data-popper-placement*="left"] &'),(0,s.Z)({transformOrigin:"right center"},i.isRtl?(0,s.Z)({marginLeft:"14px"},i.touch&&{marginLeft:"24px"}):(0,s.Z)({marginRight:"14px"},i.touch&&{marginRight:"24px"}))),(0,a.default)(n,".".concat(E.Z.popper,'[data-popper-placement*="right"] &'),(0,s.Z)({transformOrigin:"left center"},i.isRtl?(0,s.Z)({marginRight:"14px"},i.touch&&{marginRight:"24px"}):(0,s.Z)({marginLeft:"14px"},i.touch&&{marginLeft:"24px"}))),(0,a.default)(n,".".concat(E.Z.popper,'[data-popper-placement*="top"] &'),(0,s.Z)({transformOrigin:"center bottom",marginBottom:"14px"},i.touch&&{marginBottom:"24px"})),(0,a.default)(n,".".concat(E.Z.popper,'[data-popper-placement*="bottom"] &'),(0,s.Z)({transformOrigin:"center top",marginTop:"14px"},i.touch&&{marginTop:"24px"})),n))}),D=(0,y.ZP)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:function(e,n){return n.arrow}})(function(e){var n=e.theme;return{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:n.vars?n.vars.palette.Tooltip.bg:(0,d.Fq)(n.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}}),_=!1,O=new u.V,P={x:0,y:0};function L(e,n){return function(r){for(var i=arguments.length,a=Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];n&&n.apply(void 0,[r].concat(a)),e.apply(void 0,[r].concat(a))}}var R=f.forwardRef(function(e,n){var r,a,c,d,y,b,E,R,z,B,U,F,Z,W,H,G,q,Y,V,Q=(0,g.i)({props:e,name:"MuiTooltip"}),K=Q.arrow,$=void 0!==K&&K,J=Q.children,X=Q.components,ee=void 0===X?{}:X,et=Q.componentsProps,en=void 0===et?{}:et,er=Q.describeChild,ei=Q.disableFocusListener,ea=Q.disableHoverListener,eo=void 0!==ea&&ea,es=Q.disableInteractive,ef=Q.disableTouchListener,el=Q.enterDelay,eu=void 0===el?100:el,ec=Q.enterNextDelay,ed=void 0===ec?0:ec,ep=Q.enterTouchDelay,eh=void 0===ep?700:ep,ey=Q.followCursor,em=void 0!==ey&&ey,eg=Q.id,eb=Q.leaveDelay,ev=void 0===eb?0:eb,ew=Q.leaveTouchDelay,ex=void 0===ew?1500:ew,eT=Q.onClose,eC=
375Q.onOpen,eM=Q.open,eA=Q.placement,eE=void 0===eA?"bottom":eA,eI=Q.PopperComponent,eS=Q.PopperProps,ek=void 0===eS?{}:eS,eN=Q.slotProps,ej=void 0===eN?{}:eN,eD=Q.slots,e_=void 0===eD?{}:eD,eO=Q.title,eP=Q.TransitionComponent,eL=void 0===eP?v.Z:eP,eR=Q.TransitionProps,ez=(0,o.Z)(Q,S),eB=f.isValidElement(J)?J:(0,I.jsx)("span",{children:J}),eU=(0,m.Z)(),eF=(0,p.V)(),eZ=f.useState(),eW=(0,i.Z)(eZ,2),eH=eW[0],eG=eW[1],eq=f.useState(null),eY=(0,i.Z)(eq,2),eV=eY[0],eQ=eY[1],eK=f.useRef(!1),e$=void 0!==es&&es||em,eJ=(0,u.Z)(),eX=(0,u.Z)(),e0=(0,u.Z)(),e1=(0,u.Z)(),e6=(0,A.Z)({controlled:eM,default:!1,name:"Tooltip",state:"open"}),e5=(0,i.Z)(e6,2),e2=e5[0],e4=e5[1],e3=e2,e8=(0,C.Z)(eg),e9=f.useRef(),e7=(0,x.Z)(function(){void 0!==e9.current&&(document.body.style.WebkitUserSelect=e9.current,e9.current=void 0),e1.clear()});f.useEffect(function(){return e7},[e7]);var te=function(e){O.clear(),_=!0,e4(!0),eC&&!e3&&eC(e)},tt=(0,x.Z)(function(e){O.start(800+ev,function(){_=!1}),e4(!1),eT&&e3&&eT(e),eJ.start(eU.transitions.duration.shortest,function(){eK.current=!1})}),tn=function(e){eK.current&&"touchstart"!==e.type||(eH&&eH.removeAttribute("title"),eX.clear(),e0.clear(),eu||_&&ed?eX.start(_?ed:eu,function(){te(e)}):te(e))},tr=function(e){eX.clear(),e0.start(ev,function(){tt(e)})},ti=(0,M.Z)(),ta=ti.isFocusVisibleRef,to=ti.onBlur,ts=ti.onFocus,tf=ti.ref,tl=f.useState(!1),tu=(0,i.Z)(tl,2)[1],tc=function(e){to(e),!1===ta.current&&(tu(!1),tr(e))},td=function(e){eH||eG(e.currentTarget),ts(e),!0===ta.current&&(tu(!0),tn(e))},tp=function(e){eK.current=!0;var n=eB.props;n.onTouchStart&&n.onTouchStart(e)};f.useEffect(function(){if(e3)return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)};function e(e){("Escape"===e.key||"Esc"===e.key)&&tt(e)}},[tt,e3]);var th=(0,T.Z)(eB.ref,tf,eG,n);eO||0===eO||(e3=!1);var ty=f.useRef(),tm={},tg="string"==typeof eO;void 0!==er&&er?(tm.title=e3||!tg||eo?null:eO,tm["aria-describedby"]=e3?e8:null):(tm["aria-label"]=tg?eO:null,tm["aria-labelledby"]=e3&&!tg?e8:null);var tb=(0,s.Z)({},tm,ez,eB.props,{className:(0,l.Z)(ez.className,eB.props.className),onTouchStart:tp,ref:th},em?{onMouseMove:function(e){var n=eB.props;n.onMouseMove&&n.onMouseMove(e),P={x:e.clientX,y:e.clientY},ty.current&&ty.current.update()}}:{}),tv={};void 0!==ef&&ef||(tb.onTouchStart=function(e){tp(e),e0.clear(),eJ.clear(),e7(),e9.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",e1.start(eh,function(){document.body.style.WebkitUserSelect=e9.current,tn(e)})},tb.onTouchEnd=function(e){eB.props.onTouchEnd&&eB.props.onTouchEnd(e),e7(),e0.start(ex,function(){tt(e)})}),eo||(tb.onMouseOver=L(tn,tb.onMouseOver),tb.onMouseLeave=L(tr,tb.onMouseLeave),e$||(tv.onMouseOver=tn,tv.onMouseLeave=tr)),void 0!==ei&&ei||(tb.onFocus=L(td,tb.onFocus),tb.onBlur=L(tc,tb.onBlur),e$||(tv.onFocus=td,tv.onBlur=tc));var tw=f.useMemo(function(){var e,n=[{name:"arrow",enabled:!!eV,options:{element:eV,padding:4}}];return null!=(e=ek.popperOptions)&&e.modifiers&&(n=n.concat(ek.popperOptions.modifiers)),(0,s.Z)({},ek.popperOptions,{modifiers:n})},[eV,ek]),tx=(0,s.Z)({},Q,{isRtl:eF,arrow:$,disableInteractive:e$,placement:eE,PopperComponentProp:eI,touch:eK.current}),tT=k(tx),tC=null!=(r=null!=(a=e_.popper)?a:ee.Popper)?r:N,tM=null!=(c=null!=(d=null!=(y=e_.transition)?y:ee.Transition)?d:eL)?c:v.Z,tA=null!=(b=null!=(E=e_.tooltip)?E:ee.Tooltip)?b:j,tE=null!=(R=null!=(z=e_.arrow)?z:ee.Arrow)?R:D,tI=(0,h.Z)(tC,(0,s.Z)({},ek,null!=(B=ej.popper)?B:en.popper,{className:(0,l.Z)(tT.popper,null==ek?void 0:ek.className,null==(U=null!=(F=ej.popper)?F:en.popper)?void 0:U.className)}),tx),tS=(0,h.Z)(tM,(0,s.Z)({},eR,null!=(Z=ej.transition)?Z:en.transition),tx),tk=(0,h.Z)(tA,(0,s.Z)({},null!=(W=ej.tooltip)?W:en.tooltip,{className:(0,l.Z)(tT.tooltip,null==(H=null!=(G=ej.tooltip)?G:en.tooltip)?void 0:H.className)}),tx),tN=(0,h.Z)(tE,(0,s.Z)({},null!=(q=ej.arrow)?q:en.arrow,{className:(0,l.Z)(tT.arrow,null==(Y=null!=(V=ej.arrow)?V:en.arrow)?void 0:Y.className)}),tx);return(0,I.jsxs)(f.Fragment,{children:[f.cloneElement(eB,tb),(0,I.jsx)(tC,(0,s.Z)({as:null!=eI?eI:w.Z,placement:eE,anchorEl:em?{getBoundingClientRect:function(){return{top:P.y,left:P.x,right:P.x,bottom:P.y,width:0,height:0}}}:eH,popperRef:ty,open:!!eH&&e3,id:e8,transition:!0},tv,tI,{popperOptions:tw,children:function(e){var n=e.TransitionProps;return(0,I.jsx)(tM,(0,s.Z)({timeout:eU.transitions.duration.shorter},n,tS,{children:(0,I.jsxs)(tA,(0,s.Z)({},tk,{children:[eO,$?(0,I.jsx)(tE,(0,s.Z)({},tN,{ref:eQ})):null]}))}))}}))]})});n.Z=R},67059:function(e,n,r){"use strict";r.d(n,{Q:function(){return o}});var i=r(1588),a=r(34867);function o(e){return(0,a.ZP)("MuiTooltip",e)}var s=(0,i.Z)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);n.Z=s},86173:function(e,n,r){"use strict";var i=r(63366),a=r(87462),o=r(67294),s=r(90512),f=r(39707),l=r(94780),u=r(80179),c=r(93434),d=r(79566),p=r(40548),h=r(85893),y=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],m=function(e){var n=e.align,r=e.gutterBottom,i=e.noWrap,a=e.paragraph,o=e.variant,s=e.classes,f={root:["root",o,"inherit"!==e.align&&"align".concat((0,d.Z)(n)),r&&"gutterBottom",i&&"noWrap",a&&"paragraph"]};return(0,l.Z)(f,p.f,s)},g=(0,u.ZP)("span",{name:"MuiTypography",slot:"Root",overridesResolver:function(e,n){var r=e.ownerState;return[n.root,r.variant&&n[r.variant],"inherit"!==r.align&&n["align".concat((0,d.Z)(r.align))],r.n
375oWrap&&n.noWrap,r.gutterBottom&&n.gutterBottom,r.paragraph&&n.paragraph]}})(function(e){var n=e.theme,r=e.ownerState;return(0,a.Z)({margin:0},"inherit"===r.variant&&{font:"inherit"},"inherit"!==r.variant&&n.typography[r.variant],"inherit"!==r.align&&{textAlign:r.align},r.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r.gutterBottom&&{marginBottom:"0.35em"},r.paragraph&&{marginBottom:16})}),b={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},v={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},w=o.forwardRef(function(e,n){var r,o=(0,c.i)({props:e,name:"MuiTypography"}),l=v[r=o.color]||r,u=(0,f.Z)((0,a.Z)({},o,{color:l})),d=u.align,p=u.className,w=u.component,x=u.gutterBottom,T=u.noWrap,C=u.paragraph,M=void 0!==C&&C,A=u.variant,E=void 0===A?"body1":A,I=u.variantMapping,S=void 0===I?b:I,k=(0,i.Z)(u,y),N=(0,a.Z)({},u,{align:void 0===d?"inherit":d,color:l,className:p,component:w,gutterBottom:void 0!==x&&x,noWrap:void 0!==T&&T,paragraph:M,variant:E,variantMapping:S}),j=w||(M?"p":S[E]||b[E])||"span",D=m(N);return(0,h.jsx)(g,(0,a.Z)({as:j,ref:n,ownerState:N,className:(0,s.Z)(D.root,p)},k))});n.Z=w},40548:function(e,n,r){"use strict";r.d(n,{f:function(){return o}});var i=r(1588),a=r(34867);function o(e){return(0,a.ZP)("MuiTypography",e)}var s=(0,i.Z)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);n.Z=s},51402:function(e,n,r){"use strict";var i=r(67294),a=r(33703),o=r(82690),s=r(85893);function f(e){var n=[],r=[];return Array.from(e.querySelectorAll('input,select,textarea,a[href],button,[tabindex],audio[controls],video[controls],[contenteditable]:not([contenteditable="false"])')).forEach(function(e,i){var a,o=Number.isNaN(a=parseInt(e.getAttribute("tabindex")||"",10))?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:a;-1===o||e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type||!e.name)return!1;var n=function(n){return e.ownerDocument.querySelector('input[type="radio"]'.concat(n))},r=n('[name="'.concat(e.name,'"]:checked'));return r||(r=n('[name="'.concat(e.name,'"]'))),r!==e}(e)||(0===o?n.push(e):r.push({documentOrder:i,tabIndex:o,node:e}))}),r.sort(function(e,n){return e.tabIndex===n.tabIndex?e.documentOrder-n.documentOrder:e.tabIndex-n.tabIndex}).map(function(e){return e.node}).concat(n)}function l(){return!0}n.Z=function(e){var n=e.children,r=e.disableAutoFocus,u=void 0!==r&&r,c=e.disableEnforceFocus,d=void 0!==c&&c,p=e.disableRestoreFocus,h=void 0!==p&&p,y=e.getTabbable,m=void 0===y?f:y,g=e.isEnabled,b=void 0===g?l:g,v=e.open,w=i.useRef(!1),x=i.useRef(null),T=i.useRef(null),C=i.useRef(null),M=i.useRef(null),A=i.useRef(!1),E=i.useRef(null),I=(0,a.Z)(n.ref,E),S=i.useRef(null);i.useEffect(function(){v&&E.current&&(A.current=!u)},[u,v]),i.useEffect(function(){if(v&&E.current){var e=(0,o.Z)(E.current);return!E.current.contains(e.activeElement)&&(E.current.hasAttribute("tabIndex")||E.current.setAttribute("tabIndex","-1"),A.current&&E.current.focus()),function(){h||(C.current&&C.current.focus&&(w.current=!0,C.current.focus()),C.current=null)}}},[v]),i.useEffect(function(){if(v&&E.current){var e=(0,o.Z)(E.current),n=function(n){S.current=n,!d&&b()&&"Tab"===n.key&&e.activeElement===E.current&&n.shiftKey&&(w.current=!0,T.current&&T.current.focus())},r=function(){var n=E.current;if(null!==n){if(!e.hasFocus()||!b()||w.current){w.current=!1;return}if(!n.contains(e.activeElement)&&(!d||e.activeElement===x.current||e.activeElement===T.current)){if(e.activeElement!==M.current)M.current=null;else if(null!==M.current)return;if(A.current){var r=[];if((e.activeElement===x.current||e.activeElement===T.current)&&(r=m(E.current)),r.length>0){var i,a,o=!!((null==(i=S.current)?void 0:i.shiftKey)&&(null==(a=S.current)?void 0:a.key)==="Tab"),s=r[0],f=r[r.length-1];"string"!=typeof s&&"string"!=typeof f&&(o?f.focus():s.focus())}else n.focus()}}}};e.addEventListener("focusin",r),e.addEventListener("keydown",n,!0);var i=setInterval(function(){e.activeElement&&"BODY"===e.activeElement.tagName&&r()},50);return function(){clearInterval(i),e.removeEventListener("focusin",r),e.removeEventListener("keydown",n,!0)}}},[u,d,h,b,v,m]);var k=function(e){null===C.current&&(C.current=e.relatedTarget),A.current=!0};return(0,s.jsxs)(i.Fragment,{children:[(0,s.jsx)("div",{tabIndex:v?0:-1,onFocus:k,ref:x,"data-testid":"sentinelStart"}),i.cloneElement(n,{ref:I,onFocus:function(e){null===C.current&&(C.current=e.relatedTarget),A.current=!0,M.current=e.target;var r=n.props.onFocus;r&&r(e)}}),(0,s.jsx)("div",{tabIndex:v?0:-1,onFocus:k,ref:T,"data-testid":"sentinelEnd"})]})}},48424:function(e,n){"use strict";n.Z={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"}},44807:function(e,n){"use strict";n.Z={black:"#000",white:"#fff"}},89687:function(e,n){"use strict";n.Z={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"}},76958:function(e,n){"use strict";n.Z={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"}},44566:function(e,n){"use strict";n.Z={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"}},66257:function(e,n){"use strict";n.Z={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"}},66394:function(e,n){"use strict";n.Z={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"}},41198:function(e,n){"use strict";n.Z={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"}},52733:function(e,n,r){"use strict";r.d(n,{Z:function(){return M}});var i=r(17674),a=r(63366),o=r(87462),s=r(67294),f=r(90512),l=r(94780),u=r(79566),c=r(80179),d=r(98425),p=r(83839),h=r(38396),y=r(54207),m=r(1588),g=r(34867);function b(e){return(0,g.ZP)("PrivateSwitchBase",e)}(0,m.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var v=r(85893),w=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],x=function(e){var n=e.classes,r=e.checked,i=e.disabled,a=e.edge,o={root:["root",r&&"checked",i&&"disabled",a&&"edge".concat((0,u.Z)(a))],input:["input"]};return(0,l.Z)(o,b,n)},T=(0,c.ZP)(y.Z)(function(e){var n=e.ownerState;return(0,o.Z)({padding:9,borderRadius:"50%"},"start"===n.edge&&{marginLeft:"small"===n.size?-3:-12},"end"===n.edge&&{marginRight:"small"===n.size?-3:-12})}),C=(0,c.ZP)("input",{shouldForwardProp:d.Z}
375)({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),M=s.forwardRef(function(e,n){var r=e.autoFocus,s=e.checked,l=e.checkedIcon,u=e.className,c=e.defaultChecked,d=e.disabled,y=e.disableFocusRipple,m=void 0!==y&&y,g=e.edge,b=e.icon,M=e.id,A=e.inputProps,E=e.inputRef,I=e.name,S=e.onBlur,k=e.onChange,N=e.onFocus,j=e.readOnly,D=e.required,_=e.tabIndex,O=e.type,P=e.value,L=(0,a.Z)(e,w),R=(0,p.Z)({controlled:s,default:!!c,name:"SwitchBase",state:"checked"}),z=(0,i.Z)(R,2),B=z[0],U=z[1],F=(0,h.Z)(),Z=d;F&&void 0===Z&&(Z=F.disabled);var W="checkbox"===O||"radio"===O,H=(0,o.Z)({},e,{checked:B,disabled:Z,disableFocusRipple:m,edge:void 0!==g&&g}),G=x(H);return(0,v.jsxs)(T,(0,o.Z)({component:"span",className:(0,f.Z)(G.root,u),centerRipple:!0,focusRipple:!m,disabled:Z,tabIndex:null,role:void 0,onFocus:function(e){N&&N(e),F&&F.onFocus&&F.onFocus(e)},onBlur:function(e){S&&S(e),F&&F.onBlur&&F.onBlur(e)},ownerState:H,ref:n},L,{children:[(0,v.jsx)(C,(0,o.Z)({autoFocus:r,checked:s,defaultChecked:c,className:G.input,disabled:Z,id:W?M:void 0,name:I,onChange:function(e){if(!e.nativeEvent.defaultPrevented){var n=e.target.checked;U(n),k&&k(e,n)}},readOnly:j,ref:E,required:void 0!==D&&D,ownerState:H,tabIndex:_,type:O},"checkbox"===O&&void 0===P?{}:{value:P},A)),B?l:b]}))})},75201:function(e,n,r){"use strict";r(67294);var i=r(46334),a=r(85893);n.Z=(0,i.Z)((0,a.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown")},73772:function(e,n,r){"use strict";r(67294);var i=r(46334),a=r(85893);n.Z=(0,i.Z)((0,a.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},84152:function(e,n,r){"use strict";r.d(n,{Z:function(){return u}});var i=r(87462),a=r(63366);r(67294);var o=r(71927),s=r(39186),f=r(85893),l=["theme"];function u(e){var n=e.theme,r=(0,a.Z)(e,l),u=n[s.Z];return(0,f.jsx)(o.Z,(0,i.Z)({},r,{themeId:u?s.Z:void 0,theme:u||n}))}},64145:function(e,n,r){"use strict";r.d(n,{Z:function(){return o}});var i=r(59499),a=r(87462);function o(e,n){var r;return(0,a.Z)({toolbar:(r={minHeight:56},(0,i.default)(r,e.up("xs"),{"@media (orientation: landscape)":{minHeight:48}}),(0,i.default)(r,e.up("sm"),{minHeight:64}),r)},n)}},28335:function(e,n,r){"use strict";r.d(n,{A:function(){return D},Z:function(){return _}});var i=r(87462),a=r(63366),o=r(56535),s=r(4953),f=r(44920),l=r(86523),u=r(88647),c=r(64145),d=r(2101),p=r(44807),h=r(76958),y=r(66394),m=r(41198),g=r(66257),b=r(48424),v=r(44566),w=r(89687),x=["mode","contrastThreshold","tonalOffset"],T={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:p.Z.white,default:p.Z.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},C={text:{primary:p.Z.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:p.Z.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function M(e,n,r,i){var a=i.light||i,o=i.dark||1.5*i;e[n]||(e.hasOwnProperty(r)?e[n]=e[r]:"light"===n?e.light=(0,d.$n)(e.main,a):"dark"===n&&(e.dark=(0,d._j)(e.main,o)))}var A=r(8824);function E(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var I=["none",E(0,2,1,-1,0,1,1,0,0,1,3,0),E(0,3,1,-2,0,2,2,0,0,1,5,0),E(0,3,3,-2,0,3,4,0,0,1,8,0),E(0,2,4,-1,0,4,5,0,0,1,10,0),E(0,3,5,-1,0,5,8,0,0,1,14,0),E(0,3,5,-1,0,6,10,0,0,1,18,0),E(0,4,5,-2,0,7,10,1,0,2,16,1),E(0,5,5,-3,0,8,10,1,0,3,14,2),E(0,5,6,-3,0,9,12,1,0,3,16,2),E(0,6,6,-3,0,10,14,1,0,4,18,3),E(0,6,7,-4,0,11,15,1,0,4,20,3),E(0,7,8,-4,0,12,17,2,0,5,22,4),E(0,7,8,-4,0,13,19,2,0,5,24,4),E(0,7,9,-4,0,14,21,2,0,5,26,4),E(0,8,9,-5,0,15,22,2,0,6,28,5),E(0,8,10,-5,0,16,24,2,0,6,30,5),E(0,8,11,-5,0,17,26,2,0,6,32,5),E(0,9,11,-5,0,18,28,2,0,7,34,6),E(0,9,12,-6,0,19,29,2,0,7,36,6
375),E(0,10,13,-6,0,20,31,3,0,8,38,7),E(0,10,13,-6,0,21,33,3,0,8,40,7),E(0,10,14,-6,0,22,35,3,0,8,42,7),E(0,11,14,-7,0,23,36,3,0,9,44,8),E(0,11,15,-7,0,24,38,3,0,9,46,8)],S=r(22965),k={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},N=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function j(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.mixins,r=e.palette,E=e.transitions,j=e.typography,D=(0,a.Z)(e,N);if(e.vars)throw Error((0,o.Z)(18));var _=function(e){var n=e.mode,r=void 0===n?"light":n,f=e.contrastThreshold,l=void 0===f?3:f,u=e.tonalOffset,c=void 0===u?.2:u,A=(0,a.Z)(e,x),E=e.primary||function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:b.Z[200],light:b.Z[50],dark:b.Z[400]}:{main:b.Z[700],light:b.Z[400],dark:b.Z[800]}}(r),I=e.secondary||function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:y.Z[200],light:y.Z[50],dark:y.Z[400]}:{main:y.Z[500],light:y.Z[300],dark:y.Z[700]}}(r),S=e.error||function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:m.Z[500],light:m.Z[300],dark:m.Z[700]}:{main:m.Z[700],light:m.Z[400],dark:m.Z[800]}}(r),k=e.info||function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:v.Z[400],light:v.Z[300],dark:v.Z[700]}:{main:v.Z[700],light:v.Z[500],dark:v.Z[900]}}(r),N=e.success||function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:w.Z[400],light:w.Z[300],dark:w.Z[700]}:{main:w.Z[800],light:w.Z[500],dark:w.Z[900]}}(r),j=e.warning||function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:g.Z[400],light:g.Z[300],dark:g.Z[700]}:{main:"#ed6c02",light:g.Z[500],dark:g.Z[900]}}(r);function D(e){return(0,d.mi)(e,C.text.primary)>=l?C.text.primary:T.text.primary}var _=function(e){var n=e.color,r=e.name,a=e.mainShade,s=void 0===a?500:a,f=e.lightShade,l=e.darkShade;if(!(n=(0,i.Z)({},n)).main&&n[s]&&(n.main=n[s]),!n.hasOwnProperty("main"))throw Error((0,o.Z)(11,r?" (".concat(r,")"):"",s));if("string"!=typeof n.main)throw Error((0,o.Z)(12,r?" (".concat(r,")"):"",JSON.stringify(n.main)));return M(n,"light",void 0===f?300:f,c),M(n,"dark",void 0===l?700:l,c),n.contrastText||(n.contrastText=D(n.main)),n};return(0,s.Z)((0,i.Z)({common:(0,i.Z)({},p.Z),mode:r,primary:_({color:E,name:"primary"}),secondary:_({color:I,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:_({color:S,name:"error"}),warning:_({color:j,name:"warning"}),info:_({color:k,name:"info"}),success:_({color:N,name:"success"}),grey:h.Z,contrastThreshold:l,getContrastText:D,augmentColor:_,tonalOffset:c},{dark:C,light:T}[r]),A)}(void 0===r?{}:r),O=(0,u.Z)(e),P=(0,s.Z)(O,{mixins:(0,c.Z)(O.breakpoints,void 0===n?{}:n),palette:_,shadows:I.slice(),typography:(0,A.Z)(_,void 0===j?{}:j),transitions:(0,S.ZP)(void 0===E?{}:E),zIndex:(0,i.Z)({},k)});P=(0,s.Z)(P,D);for(var L=arguments.length,R=Array(L>1?L-1:0),z=1;z<L;z++)R[z-1]=arguments[z];return(P=R.reduce(function(e,n){return(0,s.Z)(e,n)},P)).unstable_sxConfig=(0,i.Z)({},f.Z,null==D?void 0:D.unstable_sxConfig),P.unstable_sx=function(e){return(0,l.Z)({sx:e,theme:this})},P}function D(){return j.apply(void 0,arguments)}var _=j},22965:function(e,n,r){"use strict";r.d(n,{Ui:function(){return s},ZP:function(){return c},x9:function(){return f}});var i=r(63366),a=r(87462),o=["duration","easing","delay"],s={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},f={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function l(e){return"".concat(Math.round(e),"ms")}function u(e){if(!e)return 0;var n=e/36;return Math.round((4+15*Math.pow(n,.25)+n/5)*10)}function c(e){var n=(0,a.Z)({},s,e.easing),r=(0,a.Z)({},f,e.duration);return(0,a.Z)({getAutoHeightDuration:u,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=a.duration,f=void 0===s?r.standard:s,u=a.easing,c=void 0===u?n.easeInOut:u,d=a.delay,p=void 0===d?0:d;return(0,i.Z)(a,o),(Array.isArray(e)?e:[e]).map(function(e){return"".concat(e," ").concat("string"==typeof f?f:l(f)," ").concat(c," ").concat("string"==typeof p?p:l(p))}).join(",")}},e,{easing:n,duration:r})}},8824:function(e,n,r){"use strict";r.d(n,{Z:function(){return u}});
375var i=r(87462),a=r(63366),o=r(4953),s=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"],f={textTransform:"uppercase"},l='"Roboto", "Helvetica", "Arial", sans-serif';function u(e,n){var r="function"==typeof n?n(e):n,u=r.fontFamily,c=void 0===u?l:u,d=r.fontSize,p=void 0===d?14:d,h=r.fontWeightLight,y=void 0===h?300:h,m=r.fontWeightRegular,g=void 0===m?400:m,b=r.fontWeightMedium,v=void 0===b?500:b,w=r.fontWeightBold,x=r.htmlFontSize,T=void 0===x?16:x,C=r.allVariants,M=r.pxToRem,A=(0,a.Z)(r,s),E=p/14,I=M||function(e){return"".concat(e/T*E,"rem")},S=function(e,n,r,a,o){return(0,i.Z)({fontFamily:c,fontWeight:e,fontSize:I(n),lineHeight:r},c===l?{letterSpacing:"".concat(Math.round(a/n*1e5)/1e5,"em")}:{},o,C)},k={h1:S(y,96,1.167,-1.5),h2:S(y,60,1.2,-.5),h3:S(g,48,1.167,0),h4:S(g,34,1.235,.25),h5:S(g,24,1.334,0),h6:S(v,20,1.6,.15),subtitle1:S(g,16,1.75,.15),subtitle2:S(v,14,1.57,.1),body1:S(g,16,1.5,.15),body2:S(g,14,1.43,.15),button:S(v,14,1.75,.4,f),caption:S(g,12,1.66,.4),overline:S(g,12,2.66,1,f),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,o.Z)((0,i.Z)({htmlFontSize:T,pxToRem:I,fontFamily:c,fontSize:p,fontWeightLight:y,fontWeightRegular:g,fontWeightMedium:v,fontWeightBold:void 0===w?700:w},k),A,{clone:!1})}},63087:function(e,n,r){"use strict";r.d(n,{LV:function(){return l},Wy:function(){return o},YL:function(){return s},dA:function(){return a},vY:function(){return u},vs:function(){return f},ze:function(){return c}});var i=r(59499);function a(e){return String(parseFloat(e)).length===String(e).length}function o(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function s(e){return parseFloat(e)}function f(e){return function(n,r){var i=o(n);if(i===r)return n;var a=s(n);"px"!==i&&("em"===i?a=s(n)*s(e):"rem"===i&&(a=s(n)*s(e)));var f=a;if("px"!==r){if("em"===r)f=a/s(e);else{if("rem"!==r)return n;f=a/s(e)}}return parseFloat(f.toFixed(5))+r}}function l(e){var n=e.size,r=e.grid,i=n-n%r,a=i+r;return n-i<a-n?i:a}function u(e){var n=e.lineHeight;return e.pixels/(n*e.htmlFontSize)}function c(e){var n=e.cssProperty,r=e.min,a=e.max,o=e.unit,s=void 0===o?"rem":o,f=e.breakpoints,l=void 0===f?[600,900,1200]:f,u=e.transform,c=void 0===u?null:u,d=(0,i.default)({},n,"".concat(r).concat(s)),p=(a-r)/l[l.length-1];return l.forEach(function(e){var a=r+p*e;null!==c&&(a=c(a)),d["@media (min-width:".concat(e,"px)")]=(0,i.default)({},n,"".concat(Math.round(1e4*a)/1e4).concat(s))}),d}},75918:function(e,n,r){"use strict";var i=(0,r(28335).Z)();n.Z=i},34487:function(e,n){"use strict";n.Z=function(e){return((e<1?5.11916*Math.pow(e,2):4.5*Math.log(e+1)+2)/100).toFixed(2)}},39186:function(e,n){"use strict";n.Z="$$material"},98425:function(e,n,r){"use strict";var i=r(40393);n.Z=function(e){return(0,i.Z)(e)&&"classes"!==e}},40393:function(e,n){"use strict";n.Z=function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}},80179:function(e,n,r){"use strict";var i=r(58128),a=r(75918),o=r(39186),s=r(98425),f=(0,i.ZP)({themeId:o.Z,defaultTheme:a.Z,rootShouldForwardProp:s.Z});n.ZP=f},66884:function(e,n,r){"use strict";r.d(n,{Z:function(){return s}}),r(67294);var i=r(96682),a=r(75918),o=r(39186);function s(){var e=(0,i.Z)(a.Z);return e[o.Z]||e}},53853:function(e,n,r){"use strict";r.d(n,{C:function(){return a},n:function(){return i}});var i=function(e){return e.scrollTop};function a(e,n){var r,i,a=e.timeout,o=e.easing,s=e.style,f=void 0===s?{}:s;return{duration:null!=(r=f.transitionDuration)?r:"number"==typeof a?a:a[n.mode]||0,easing:null!=(i=f.transitionTimingFunction)?i:"object"==typeof o?o[n.mode]:o,delay:f.transitionDelay}}},79566:function(e,n,r){"use strict";var i=r(14142);n.Z=i.Z},32462:function(e,n,r){"use strict";var i=r(91476);n.Z=i.Z},46334:function(e,n,r){"use strict";r.d(n,{Z:function(){return f}});var i=r(87462),a=r(67294),o=r(82711),s=r(85893);function f(e,n){function r(r,a){return(0,s.jsx)(o.Z,(0,i.Z)({"data-testid":"".concat(n,"Icon"),ref:a},r,{children:e}))}return r.muiName=o.Z.muiName,a.memo(a.forwardRef(r))}},22645:function(e,n,r){"use strict";var i=r(39336);n.Z=i.Z},23238:function(e,n,r){"use strict";r.r(n),r.d(n,{capitalize:function(){return a.Z},createChainedFunction:function(){return o.Z},createSvgIcon:function(){return s.Z},debounce:function(){return f.Z},deprecatedPropType:function(){return l},isMuiElement:function(){return u.Z},ownerDocument:function(){return c.Z},ownerWindow:function(){return d.Z},requirePropFactory:function(){return p},setRef:function(){return h},unstable_ClassNameGenerator:function(){return T},unstable_useEnhancedEffect:function(){return y.Z},unstable_useId:function(){return m.Z},unsupportedProp:function(){return g},useControlled:function(){return b.Z},useEventCallback:function(){return v.Z},useForkRef:function(){return w.Z},useIsFocusVisible:function(){return x.Z}});var i=r(37078),a=r(79566),o=r(32462),s=r(46334),f=r(22645),l=function(e,n){return()=>null},u=r(66272),c=r(35905),d=r(94571);r(87462);var p=function(e,n){return()=>null},h=r(27364).Z,y=r(11402),m=r(1885),g=function(e,n,r,i,a){return null},b=r(83839),v=r(11825),w=r(24159),x=r(39564),T={configure:function(e){i.Z.configure(e)}}},66272:function(e,n,r){"use strict";var i=r(17317);n.Z=i.Z},35905:function(e,n,r){"use strict";var i=r(82690);n.Z=i.Z},94571:function(e,n,r){"use strict";var i=r(74161);n.Z=i.Z},83839:function(e,n,r){"use strict";var i=r(19032);n.Z=i.Z},11402:function(e,n,r){"use strict";var i=r(73546);n.Z=i.Z},11825:function(e,n,r){"use strict";var i=r(59948);n.Z=i.Z},24159:function(e,n,r){"use strict";var i=r(33703);n.Z=i.Z},1885:function(e,n,r){"use strict";var i=r(92996);n.Z=i.Z},39564:function(e,n,r){"use strict";var i=r(36728);n.Z=i.Z},77581:function(e,n,r){"use strict";r.d(n,{Z:function(){return h}});var i=r(59499),a=r(87462),o=r(63366),s=r(33703),f=r(86542),l=r(65610),u=r(55120),c=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],d=["component","slots","slotProps"],p=["component"];function h(e,n){var r=n.className,h=n.elementType,y=n.ownerState,m=n.externalForwardedProps,g=n.getSlotOwnerState,b=n.internalForwardedProps,v=(0,o.Z)(n,c),w=m.component,x=m.slots,T=void 0===x?(0,i.default)({},e,void 0):x,C=m.slotProps,M=void 0===C?(0,i.default)({},e,void 0):C,A=(0,o.Z)(m,d),E=T[e]||h,I=(0,l.Z)(M[e],y),S=(0,u.Z)((0,a.Z)({className:r},v,{externalForwardedProps:"root"===e?A:void 0,externalSlotProps:I})),k=S.props.component,N=S.internalRef,j=(0,o.Z)(S.props,p),D=(0,s.Z)(N,null==I?void 0:I.ref,n.ref),_=g?g(j):{},O=(0,a.Z)({},y,_),P="root"===e?k||w:k,L=(0,f.Z)(E,(0,a.Z)({},"root"===e&&!w&&!T[e]&&b,"root"!==e&&!T[e]&&b,j,P&&{as:P},{ref:D}),O);return Object.keys(_).forEach(function(e){delete L[e]}),[E,L]}},13198:function(e,n,r){"use strict";var i=r(36798);n.Z=i.Z},32795:function(e,n,r){"use strict";r.d(n,{j:function(){return a}});var i={};function a(){return i}},9838:function(e,n,r){"use strict";function i(e){var n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),e.getTime()-n.getTime()}r.d(n,{Z:function(){return i}})},5201:function(e,n,r){"use strict";function i(e,n){if(n.length<e)throw TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+n.length+" present")}r.d(n,{Z:function(){return i}})}
375,48160:function(e,n,r){"use strict";function i(e){if(null===e||!0===e||!1===e)return NaN;var n=Number(e);return isNaN(n)?n:n<0?Math.ceil(n):Math.floor(n)}r.d(n,{Z:function(){return i}})},3114:function(e,n,r){"use strict";r.d(n,{Z:function(){return s}});var i=r(48160),a=r(75088),o=r(5201);function s(e,n){(0,o.Z)(2,arguments);var r=(0,a.Z)(e),s=(0,i.Z)(n);return isNaN(s)?new Date(NaN):(s&&r.setDate(r.getDate()+s),r)}},51043:function(e,n,r){"use strict";r.d(n,{Z:function(){return s}});var i=r(9838),a=r(14091),o=r(5201);function s(e,n){(0,o.Z)(2,arguments);var r=(0,a.Z)(e),s=(0,a.Z)(n);return Math.round((r.getTime()-(0,i.Z)(r)-(s.getTime()-(0,i.Z)(s)))/864e5)}},81424:function(e,n,r){"use strict";r.d(n,{Z:function(){return f}});var i=r(75088),a=r(51043),o=r(5201);function s(e,n){var r=e.getFullYear()-n.getFullYear()||e.getMonth()-n.getMonth()||e.getDate()-n.getDate()||e.getHours()-n.getHours()||e.getMinutes()-n.getMinutes()||e.getSeconds()-n.getSeconds()||e.getMilliseconds()-n.getMilliseconds();return r<0?-1:r>0?1:r}function f(e,n){(0,o.Z)(2,arguments);var r=(0,i.Z)(e),f=(0,i.Z)(n),l=s(r,f),u=Math.abs((0,a.Z)(r,f));r.setDate(r.getDate()-l*u);var c=Number(s(r,f)===-l),d=l*(u-c);return 0===d?0:d}},48497:function(e,n,r){"use strict";r.d(n,{Z:function(){return _}});var i=r(28057),a=r(75088),o=r(5201),s=r(48160);function f(e){(0,o.Z)(1,arguments);var n=(0,a.Z)(e),r=n.getUTCDay();return n.setUTCDate(n.getUTCDate()-((r<1?7:0)+r-1)),n.setUTCHours(0,0,0,0),n}function l(e){(0,o.Z)(1,arguments);var n=(0,a.Z)(e),r=n.getUTCFullYear(),i=new Date(0);i.setUTCFullYear(r+1,0,4),i.setUTCHours(0,0,0,0);var s=f(i),l=new Date(0);l.setUTCFullYear(r,0,4),l.setUTCHours(0,0,0,0);var u=f(l);return n.getTime()>=s.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}var u=r(32795);function c(e,n){(0,o.Z)(1,arguments);var r,i,f,l,c,d,p,h,y=(0,u.j)(),m=(0,s.Z)(null!==(r=null!==(i=null!==(f=null!==(l=null==n?void 0:n.weekStartsOn)&&void 0!==l?l:null==n?void 0:null===(c=n.locale)||void 0===c?void 0:null===(d=c.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==f?f:y.weekStartsOn)&&void 0!==i?i:null===(p=y.locale)||void 0===p?void 0:null===(h=p.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==r?r:0);if(!(m>=0&&m<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=(0,a.Z)(e),b=g.getUTCDay();return g.setUTCDate(g.getUTCDate()-((b<m?7:0)+b-m)),g.setUTCHours(0,0,0,0),g}function d(e,n){(0,o.Z)(1,arguments);var r,i,f,l,d,p,h,y,m=(0,a.Z)(e),g=m.getUTCFullYear(),b=(0,u.j)(),v=(0,s.Z)(null!==(r=null!==(i=null!==(f=null!==(l=null==n?void 0:n.firstWeekContainsDate)&&void 0!==l?l:null==n?void 0:null===(d=n.locale)||void 0===d?void 0:null===(p=d.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==f?f:b.firstWeekContainsDate)&&void 0!==i?i:null===(h=b.locale)||void 0===h?void 0:null===(y=h.options)||void 0===y?void 0:y.firstWeekContainsDate)&&void 0!==r?r:1);if(!(v>=1&&v<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var w=new Date(0);w.setUTCFullYear(g+1,0,v),w.setUTCHours(0,0,0,0);var x=c(w,n),T=new Date(0);T.setUTCFullYear(g,0,v),T.setUTCHours(0,0,0,0);var C=c(T,n);return m.getTime()>=x.getTime()?g+1:m.getTime()>=C.getTime()?g:g-1}function p(e,n){for(var r=Math.abs(e).toString();r.length<n;)r="0"+r;return(e<0?"-":"")+r}var h={y:function(e,n){var r=e.getUTCFullYear(),i=r>0?r:1-r;return p("yy"===n?i%100:i,n.length)},M:function(e,n){var r=e.getUTCMonth();return"M"===n?String(r+1):p(r+1,2)},d:function(e,n){return p(e.getUTCDate(),n.length)},h:function(e,n){return p(e.getUTCHours()%12||12,n.length)},H:function(e,n){return p(e.getUTCHours(),n.length)},m:function(e,n){return p(e.getUTCMinutes(),n.length)},s:function(e,n){return p(e.getUTCSeconds(),n.length)},S:function(e,n){var r=n.length;return p(Math.floor(e.getUTCMilliseconds()*Math.pow(10,r-3)),n.length)}},y={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};function m(e,n){var r=e>0?"-":"+",i=Math.abs(e),a=Math.floor(i/60),o=i%60;return 0===o?r+String(a):r+String(a)+(n||"")+p(o,2)}function g(e,n){return e%60==0?(e>0?"-":"+")+p(Math.abs(e)/60,2):b(e,n)}function b(e,n){var r=Math.abs(e);return(e>0?"-":"+")+p(Math.floor(r/60),2)+(n||"")+p(r%60,2)}var v={G:function(e,n,r){var i=e.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});default:return r.era(i,{width:"wide"})}},y:function(e,n,r){if("yo"===n){var i=e.getUTCFullYear();return r.ordinalNumber(i>0?i:1-i,{unit:"year"})}
375return h.y(e,n)},Y:function(e,n,r,i){var a=d(e,i),o=a>0?a:1-a;return"YY"===n?p(o%100,2):"Yo"===n?r.ordinalNumber(o,{unit:"year"}):p(o,n.length)},R:function(e,n){return p(l(e),n.length)},u:function(e,n){return p(e.getUTCFullYear(),n.length)},Q:function(e,n,r){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return p(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,n,r){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return p(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,n,r){var i=e.getUTCMonth();switch(n){case"M":case"MM":return h.M(e,n);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(e,n,r){var i=e.getUTCMonth();switch(n){case"L":return String(i+1);case"LL":return p(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(e,n,r,i){var f=function(e,n){(0,o.Z)(1,arguments);var r=(0,a.Z)(e);return Math.round((c(r,n).getTime()-(function(e,n){(0,o.Z)(1,arguments);var r,i,a,f,l,p,h,y,m=(0,u.j)(),g=(0,s.Z)(null!==(r=null!==(i=null!==(a=null!==(f=null==n?void 0:n.firstWeekContainsDate)&&void 0!==f?f:null==n?void 0:null===(l=n.locale)||void 0===l?void 0:null===(p=l.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==a?a:m.firstWeekContainsDate)&&void 0!==i?i:null===(h=m.locale)||void 0===h?void 0:null===(y=h.options)||void 0===y?void 0:y.firstWeekContainsDate)&&void 0!==r?r:1),b=d(e,n),v=new Date(0);return v.setUTCFullYear(b,0,g),v.setUTCHours(0,0,0,0),c(v,n)})(r,n).getTime())/6048e5)+1}(e,i);return"wo"===n?r.ordinalNumber(f,{unit:"week"}):p(f,n.length)},I:function(e,n,r){var i=function(e){(0,o.Z)(1,arguments);var n=(0,a.Z)(e);return Math.round((f(n).getTime()-(function(e){(0,o.Z)(1,arguments);var n=l(e),r=new Date(0);return r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0),f(r)})(n).getTime())/6048e5)+1}(e);return"Io"===n?r.ordinalNumber(i,{unit:"week"}):p(i,n.length)},d:function(e,n,r){return"do"===n?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):h.d(e,n)},D:function(e,n,r){var i=function(e){(0,o.Z)(1,arguments);var n=(0,a.Z)(e),r=n.getTime();return n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0),Math.floor((r-n.getTime())/864e5)+1}(e);return"Do"===n?r.ordinalNumber(i,{unit:"dayOfYear"}):p(i,n.length)},E:function(e,n,r){var i=e.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(e,n,r,i){var a=e.getUTCDay(),o=(a-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(o);case"ee":return p(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(e,n,r,i){var a=e.getUTCDay(),o=(a-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(o);case"cc":return p(o,n.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(e,n,r){var i=e.getUTCDay(),a=0===i?7:i;switch(n){case"i":return String(a);case"ii":return p(a,n.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(e,n,r){var i=e.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,n,r){var i,a=e.getUTCHours();switch(i=12===a?y.noon:0===a?y.midnight:a/12>
375=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,n,r){var i,a=e.getUTCHours();switch(i=a>=17?y.evening:a>=12?y.afternoon:a>=4?y.morning:y.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,n,r){if("ho"===n){var i=e.getUTCHours()%12;return 0===i&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return h.h(e,n)},H:function(e,n,r){return"Ho"===n?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):h.H(e,n)},K:function(e,n,r){var i=e.getUTCHours()%12;return"Ko"===n?r.ordinalNumber(i,{unit:"hour"}):p(i,n.length)},k:function(e,n,r){var i=e.getUTCHours();return(0===i&&(i=24),"ko"===n)?r.ordinalNumber(i,{unit:"hour"}):p(i,n.length)},m:function(e,n,r){return"mo"===n?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):h.m(e,n)},s:function(e,n,r){return"so"===n?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):h.s(e,n)},S:function(e,n){return h.S(e,n)},X:function(e,n,r,i){var a=(i._originalDate||e).getTimezoneOffset();if(0===a)return"Z";switch(n){case"X":return g(a);case"XXXX":case"XX":return b(a);default:return b(a,":")}},x:function(e,n,r,i){var a=(i._originalDate||e).getTimezoneOffset();switch(n){case"x":return g(a);case"xxxx":case"xx":return b(a);default:return b(a,":")}},O:function(e,n,r,i){var a=(i._originalDate||e).getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+m(a,":");default:return"GMT"+b(a,":")}},z:function(e,n,r,i){var a=(i._originalDate||e).getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+m(a,":");default:return"GMT"+b(a,":")}},t:function(e,n,r,i){return p(Math.floor((i._originalDate||e).getTime()/1e3),n.length)},T:function(e,n,r,i){return p((i._originalDate||e).getTime(),n.length)}},w=function(e,n){switch(e){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});default:return n.date({width:"full"})}},x=function(e,n){switch(e){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});default:return n.time({width:"full"})}},T={p:x,P:function(e,n){var r,i=e.match(/(P+)(p+)?/)||[],a=i[1],o=i[2];if(!o)return w(e,n);switch(a){case"P":r=n.dateTime({width:"short"});break;case"PP":r=n.dateTime({width:"medium"});break;case"PPP":r=n.dateTime({width:"long"});break;default:r=n.dateTime({width:"full"})}return r.replace("{{date}}",w(a,n)).replace("{{time}}",x(o,n))}},C=r(9838),M=["D","DD"],A=["YY","YYYY"];function E(e,n,r){if("YYYY"===e)throw RangeError("Use `yyyy` instead of `YYYY` (in `".concat(n,"`) for formatting years to the input `").
375concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw RangeError("Use `yy` instead of `YY` (in `".concat(n,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw RangeError("Use `d` instead of `D` (in `".concat(n,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw RangeError("Use `dd` instead of `DD` (in `".concat(n,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var I=r(13198),S=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,k=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,N=/^'([^]*?)'?$/,j=/''/g,D=/[a-zA-Z]/;function _(e,n,r){(0,o.Z)(2,arguments);var f,l,c,d,p,h,y,m,g,b,w,x,_,O,P,L,R,z,B=String(n),U=(0,u.j)(),F=null!==(f=null!==(l=null==r?void 0:r.locale)&&void 0!==l?l:U.locale)&&void 0!==f?f:I.Z,Z=(0,s.Z)(null!==(c=null!==(d=null!==(p=null!==(h=null==r?void 0:r.firstWeekContainsDate)&&void 0!==h?h:null==r?void 0:null===(y=r.locale)||void 0===y?void 0:null===(m=y.options)||void 0===m?void 0:m.firstWeekContainsDate)&&void 0!==p?p:U.firstWeekContainsDate)&&void 0!==d?d:null===(g=U.locale)||void 0===g?void 0:null===(b=g.options)||void 0===b?void 0:b.firstWeekContainsDate)&&void 0!==c?c:1);if(!(Z>=1&&Z<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var W=(0,s.Z)(null!==(w=null!==(x=null!==(_=null!==(O=null==r?void 0:r.weekStartsOn)&&void 0!==O?O:null==r?void 0:null===(P=r.locale)||void 0===P?void 0:null===(L=P.options)||void 0===L?void 0:L.weekStartsOn)&&void 0!==_?_:U.weekStartsOn)&&void 0!==x?x:null===(R=U.locale)||void 0===R?void 0:null===(z=R.options)||void 0===z?void 0:z.weekStartsOn)&&void 0!==w?w:0);if(!(W>=0&&W<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!F.localize)throw RangeError("locale must contain localize property");if(!F.formatLong)throw RangeError("locale must contain formatLong property");var H=(0,a.Z)(e);if(!function(e){return(0,o.Z)(1,arguments),(!!(0,i.Z)(e)||"number"==typeof e)&&!isNaN(Number((0,a.Z)(e)))}(H))throw RangeError("Invalid time value");var G=(0,C.Z)(H),q=function(e,n){return(0,o.Z)(2,arguments),function(e,n){return(0,o.Z)(2,arguments),new Date((0,a.Z)(e).getTime()+(0,s.Z)(n))}(e,-(0,s.Z)(n))}(H,G),Y={firstWeekContainsDate:Z,weekStartsOn:W,locale:F,_originalDate:H};return B.match(k).map(function(e){var n=e[0];return"p"===n||"P"===n?(0,T[n])(e,F.formatLong):e}).join("").match(S).map(function(i){if("''"===i)return"'";var a,o=i[0];if("'"===o)return(a=i.match(N))?a[1].replace(j,"'"):i;var s=v[o];if(s)return null!=r&&r.useAdditionalWeekYearTokens||-1===A.indexOf(i)||E(i,n,String(e)),null!=r&&r.useAdditionalDayOfYearTokens||-1===M.indexOf(i)||E(i,n,String(e)),s(q,i,F.localize,Y);if(o.match(D))throw RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return i}).join("")}},28057:function(e,n,r){"use strict";r.d(n,{Z:function(){return o}});var i=r(71002),a=r(5201);function o(e){return(0,a.Z)(1,arguments),e instanceof Date||"object"===(0,i.Z)(e)&&"[object Date]"===Object.prototype.toString.call(e)}},81369:function(e,n,r){"use strict";r.d(n,{Z:function(){return o}});var i=r(14091),a=r(5201);function o(e,n){(0,a.Z)(2,arguments);var r=(0,i.Z)(e),o=(0,i.Z)(n);return r.getTime()===o.getTime()}},36798:function(e,n,r){"use strict";r.d(n,{Z:function(){return c}});var i,a={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function o(e){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.width?String(n.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var s={date:o({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:o({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:o({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},f={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function l(e){return function(n,r){var i;if("formatting"===(null!=r&&r.context?String(r.context):"standalone")&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=null!=r&&r.width?String(r.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,f=null!=r&&r.width?String(r.width):e.defaultWidth;i=e.values[f]||e.values[s]}return i[e.argumentCallback?e.argumentCallback(n):n]}}function u(e){return function(n){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.width,o=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],s=n.match(o);if(!s)return null;var f=s[0],l=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,n){for(var r=0;r<e.length;r++)if(n(e[r]))return r}(l,function(e){return e.test(f)}):function(e,n){for(var r in e)if(e.hasOwnProperty(r)&&n(e[r]))return r}(l,function(e){return e.test(f)});return r=e.valueCallback?e.valueCallback(u):u,{value:r=i.valueCallback?i.valueCallback(r):r,rest:n.slice(f.length)}}}var c={code:"en-US",formatDistance:function(e,n,r){var i,o=a[e];return(i="string"==typeof o?o:1===n?o.one:o.other.replace("{{count}}",n.toString()),null!=r&&r.addSuffix)?r.comparison&&r.comparison>0?"in "+i:i+" ago":i},formatLong:s,formatRelative:function(e,n,r,i){return f[e]},localize:{ordinalNumber:function(e,n){var r=Number(e),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:l({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:l({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:l({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:l({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
375ay","Saturday"]},defaultWidth:"wide"}),dayPeriod:l({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(i={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.match(i.matchPattern);if(!r)return null;var a=r[0],o=e.match(i.parsePattern);if(!o)return null;var s=i.valueCallback?i.valueCallback(o[0]):o[0];return{value:s=n.valueCallback?n.valueCallback(s):s,rest:e.slice(a.length)}}),era:u({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:u({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:u({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:u({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:u({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},14091:function(e,n,r){"use strict";r.d(n,{Z:function(){return o}});var i=r(75088),a=r(5201);function o(e){(0,a.Z)(1,arguments);var n=(0,i.Z)(e);return n.setHours(0,0,0,0),n}},9858:function(e,n,r){"use strict";r.d(n,{Z:function(){return s}});var i=r(3114),a=r(5201),o=r(48160);function s(e,n){(0,a.Z)(2,arguments);var r=(0,o.Z)(n);return(0,i.Z)(e,-r)}},75088:function(e,n,r){"use strict";r.d(n,{Z:function(){return o}});var i=r(71002),a=r(5201);function o(e){(0,a.Z)(1,arguments);var n=Object.prototype.toString.call(e);return e instanceof Date||"object"===(0,i.Z)(e)&&"[object Date]"===n?new Date(e.getTime()):"number"==typeof e||"[object Number]"===n?new Date(e):(("string"==typeof e||"[object String]"===n)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(Error().stack)),new Date(NaN))}},36593:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(e,n){for(var r in n)Object.defineProperty(e,r,{enumerable:!0,get:n[r]})}(n,{ACTION_FAST_REFRESH:function(){return d},ACTION_NAVIGATE:function(){return f},ACTION_PREFETCH:function(){return c},ACTION_REFRESH:function(){return s},ACTION_RESTORE:function(){return l},ACTION_SERVER_ACTION:function(){return p},ACTION_SERVER_PATCH:function(){return u},PrefetchCacheEntryStatus:function(){return o},PrefetchKind:function(){return a},isThenable:function(){return h}});var r,i,a,o,s="refresh",f="navigate",l="restore",u="server-patch",c="prefetch",d="fast-refresh",p="server-action";function h(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(r=a||(a={})).AUTO="auto",r.FULL="full",r.TEMPORARY="temporary",(i=o||(o={})).fresh="fresh",i.reusable="reusable",i.expired="expired",i.stale="stale",("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esMo
375dule",{value:!0}),Object.assign(n.default,n),e.exports=n.default)},83617:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"getDomainLocale",{enumerable:!0,get:function(){return a}});var i=r(61063);function a(e,n,a,o){var s=r(57373).normalizeLocalePath,f=r(61139).detectDomainLocale,l=n||s(e,a).detectedLocale,u=f(o,void 0,l);if(u){var c="http"+(u.http?"":"s")+"://",d=l===u.defaultLocale?"":"/"+l;return""+c+u.domain+(0,i.normalizePathTrailingSlash)(""+d+e)}return!1}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),e.exports=n.default)},48880:function(e,n,r){"use strict";var i=r(43171),a=r(48416),o=r(47069),s=r(20968),f=["src","srcSet","sizes","height","width","decoding","className","style","fetchPriority","placeholder","loading","unoptimized","fill","onLoadRef","onLoadingCompleteRef","setBlurComplete","setShowAltText","sizesInput","onLoad","onError"];function l(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function u(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?l(Object(r),!0).forEach(function(n){s(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"Image",{enumerable:!0,get:function(){return I}});var c=r(38754),d=r(61757),p=r(85893),h=d._(r(67294)),y=c._(r(73935)),m=c._(r(49903)),g=r(56869),b=r(92296),v=r(36769);r(77668);var w=r(21770),x=c._(r(84436)),T={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function C(e,n,r,i,a,o,s){var f=null==e?void 0:e.src;e&&e["data-loaded-src"]!==f&&(e["data-loaded-src"]=f,("decode"in e?e.decode():Promise.resolve()).catch(function(){}).then(function(){if(e.parentElement&&e.isConnected){if("empty"!==n&&a(!0),null==r?void 0:r.current){var o=new Event("load");Object.defineProperty(o,"target",{writable:!1,value:e});var s=!1,f=!1;r.current(u(u({},o),{},{nativeEvent:o,currentTarget:e,target:e,isDefaultPrevented:function(){return s},isPropagationStopped:function(){return f},persist:function(){},preventDefault:function(){s=!0,o.preventDefault()},stopPropagation:function(){f=!0,o.stopPropagation()}}))}(null==i?void 0:i.current)&&i.current(e)}}))}function M(e){return h.use?{fetchPriority:e}:{fetchpriority:e}}var A=(0,h.forwardRef)(function(e,n){var r=e.src,i=e.srcSet,a=e.sizes,s=e.height,l=e.width,c=e.decoding,d=e.className,y=e.style,m=e.fetchPriority,g=e.placeholder,b=e.loading,v=e.unoptimized,w=e.fill,x=e.onLoadRef,T=e.onLoadingCompleteRef,A=e.setBlurComplete,E=e.setShowAltText,I=e.sizesInput,S=(e.onLoad,e.onError),k=o(e,f);return(0,p.jsx)("img",u(u(u({},k),M(m)),{},{loading:b,width:l,height:s,decoding:c,"data-nimg":w?"fill":"1",className:d,style:y,sizes:a,srcSet:i,src:r,ref:(0,h.useCallback)(function(e){n&&("function"==typeof n?n(e):"object"==typeof n&&(n.current=e)),e&&(S&&(e.src=e.src),e.complete&&C(e,g,x,T,A,v,I))},[r,g,x,T,A,S,v,I,n]),onLoad:function(e){C(e.currentTarget,g,x,T,A,v,I)},onError:function(e){E(!0),"empty"!==g&&A(!0),S&&S(e)}}))});function E(e){var n=e.isAppRouter,r=e.imgAttributes,i=u({as:"image",imageSrcSet:r.srcSet,imageSizes:r.sizes,crossOrigin:r.crossOrigin,referrerPolicy:r.referrerPolicy},M(r.fetchPriority));return n&&y.default.preload?(y.default.preload(r.src,i),null):(0,p.jsx)(m.default,{children:(0,p.jsx)("link",u({rel:"preload",href:r.srcSet?void 0:r.src},i),"__nimg-"+r.src+r.srcSet+r.sizes)})}var I=(0,h.forwardRef)(function(e,n){var r=(0,h.useContext)(w.RouterContext),o=(0,h.useContext)(v.ImageConfigContext),s=(0,h.useMemo)(function(){var e=T||o||b.imageConfigDefault,n=[].concat(a(e.deviceSizes),a(e.imageSizes)).sort(function(e,n){return e-n}),r=e.deviceSizes.sort(function(e,n){return e-n});return u(u({},e),{},{allSizes:n,deviceSizes:r})},[o]),f=e.onLoad,l=e.onLoadingComplete,c=(0,h.useRef)(f);(0,h.useEffect)(function(){c.current=f},[f]);var d=(0,h.useRef)(l);(0,h.useEffect)(function(){d.current=l},[l]);var y=i((0,h.useState)(!1),2),m=y[0],C=y[1],M=i((0,h.useState)(!1),2),I=M[0],S=M[1],k=(0,g.getImgProps)(e,{defaultLoader:x.default,imgConf:s,blurComplete:m,showAltText:I}),N=k.props,j=k.meta;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(A,u(u({},N),{},{unoptimized:j.unoptimized,placeholder:j.placeholder,fill:j.fill,onLoadRef:c,onLoadingCompleteRef:d,setBlurComplete:C,setShowAltText:S,sizesInput:e.sizes,ref:n})),j.priority?(0,p.jsx)(E,{isAppRouter:!r,imgAttributes:N}):null]})});("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esMo
375dule",{value:!0}),Object.assign(n.default,n),e.exports=n.default)},78065:function(e,n,r){"use strict";var i=r(20968),a=r(43171),o=r(47069),s=r(64687),f=r(67752),l=["href","as","children","prefetch","passHref","replace","shallow","scroll","locale","onClick","onMouseEnter","onTouchStart","legacyBehavior"];function u(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function c(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?u(Object(r),!0).forEach(function(n){i(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return k}});var d=r(38754),p=r(85893),h=d._(r(67294)),y=r(68364),m=r(25656),g=r(92151),b=r(9642),v=r(23443),w=r(21770),x=r(45074),T=r(1561),C=r(83617),M=r(85439),A=r(36593),E=new Set;function I(e,n,r,i,a,o){if(o||(0,m.isLocalURL)(n)){if(!i.bypassPrefetchedCheck){var l,u=n+"%"+r+"%"+(void 0!==i.locale?i.locale:"locale"in e?e.locale:void 0);if(E.has(u))return;E.add(u)}(l=f(s.mark(function f(){return s.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(!o){s.next=4;break}return s.abrupt("return",e.prefetch(n,a));case 4:return s.abrupt("return",e.prefetch(n,r,i));case 5:case"end":return s.stop()}},f)})),function(){return l.apply(this,arguments)})().catch(function(e){})}}function S(e){return"string"==typeof e?e:(0,g.formatUrl)(e)}var k=h.default.forwardRef(function(e,n){var r,i,s=e.href,f=e.as,u=e.children,d=e.prefetch,g=void 0===d?null:d,E=e.passHref,k=e.replace,N=e.shallow,j=e.scroll,D=e.locale,_=e.onClick,O=e.onMouseEnter,P=e.onTouchStart,L=e.legacyBehavior,R=void 0!==L&&L,z=o(e,l);r=u,R&&("string"==typeof r||"number"==typeof r)&&(r=(0,p.jsx)("a",{children:r}));var B=h.default.useContext(w.RouterContext),U=h.default.useContext(x.AppRouterContext),F=null!=B?B:U,Z=!B,W=!1!==g,H=null===g?A.PrefetchKind.AUTO:A.PrefetchKind.FULL,G=h.default.useMemo(function(){if(!B){var e=S(s);return{href:e,as:f?S(f):e}}var n=a((0,y.resolveHref)(B,s,!0),2),r=n[0],i=n[1];return{href:r,as:f?(0,y.resolveHref)(B,f):i||r}},[B,s,f]),q=G.href,Y=G.as,V=h.default.useRef(q),Q=h.default.useRef(Y);R&&(i=h.default.Children.only(r));var K=R?i&&"object"==typeof i&&i.ref:n,$=a((0,T.useIntersection)({rootMargin:"200px"}),3),J=$[0],X=$[1],ee=$[2],et=h.default.useCallback(function(e){(Q.current!==Y||V.current!==q)&&(ee(),Q.current=Y,V.current=q),J(e),K&&("function"==typeof K?K(e):"object"==typeof K&&(K.current=e))},[Y,K,q,ee,J]);h.default.useEffect(function(){F&&X&&W&&I(F,q,Y,{locale:D},{kind:H},Z)},[Y,q,X,D,W,null==B?void 0:B.locale,F,Z,H]);var en={ref:et,onClick:function(e){R||"function"!=typeof _||_(e),R&&i.props&&"function"==typeof i.props.onClick&&i.props.onClick(e),F&&!e.defaultPrevented&&function(e,n,r,i,a,o,s,f,l){if(!("A"===e.currentTarget.nodeName.toUpperCase()&&((u=e.currentTarget.getAttribute("target"))&&"_self"!==u||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which||!l&&!(0,m.isLocalURL)(r)))){e.preventDefault();var u,c=function(){var e=null==s||s;"beforePopState"in n?n[a?"replace":"push"](r,i,{shallow:o,locale:f,scroll:e}):n[a?"replace":"push"](i||r,{scroll:e})};l?h.default.startTransition(c):c()}}(e,F,q,Y,k,N,j,D,Z)},onMouseEnter:function(e){R||"function"!=typeof O||O(e),R&&i.props&&"function"==typeof i.props.onMouseEnter&&i.props.onMouseEnter(e),F&&(W||!Z)&&I(F,q,Y,{locale:D,priority:!0,bypassPrefetchedCheck:!0},{kind:H},Z)},onTouchStart:function(e){R||"function"!=typeof P||P(e),R&&i.props&&"function"==typeof i.props.onTouchStart&&i.props.onTouchStart(e),F&&(W||!Z)&&I(F,q,Y,{locale:D,priority:!0,bypassPrefetchedCheck:!0},{kind:H},Z)}};if((0,b.isAbsoluteUrl)(Y))en.href=Y;else if(!R||E||"a"===i.type&&!("href"in i.props)){var er=void 0!==D?D:null==B?void 0:B.locale,ei=(null==B?void 0:B.isLocaleDomain)&&(0,C.getDomainLocale)(Y,er,null==B?void 0:B.locales,null==B?void 0:B.domainLocales);en.href=ei||(0,M.addBasePath)((0,v.addLocale)(Y,er,null==B?void 0:B.defaultLocale))}return R?h.default.cloneElement(i,en):(0,p.jsx)("a",c(c(c({},z),en),{},{children:r}))});("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esMo
375dule",{value:!0}),Object.assign(n.default,n),e.exports=n.default)},57373:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"normalizeLocalePath",{enumerable:!0,get:function(){return i}});var i=function(e,n){return r(18899).normalizeLocalePath(e,n)};("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),e.exports=n.default)},1561:function(e,n,r){"use strict";var i=r(43171);Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"useIntersection",{enumerable:!0,get:function(){return u}});var a=r(67294),o=r(71650),s="function"==typeof IntersectionObserver,f=new Map,l=[];function u(e){var n=e.rootRef,r=e.rootMargin,u=e.disabled||!s,c=i((0,a.useState)(!1),2),d=c[0],p=c[1],h=(0,a.useRef)(null),y=(0,a.useCallback)(function(e){h.current=e},[]);return(0,a.useEffect)(function(){if(s){if(!u&&!d){var e,i,a,c,y,m=h.current;if(m&&m.tagName)return e=function(e){return e&&p(e)},a=(i=function(e){var n,r={root:e.root||null,margin:e.rootMargin||""},i=l.find(function(e){return e.root===r.root&&e.margin===r.margin});if(i&&(n=f.get(i)))return n;var a=new Map;return n={id:r,observer:new IntersectionObserver(function(e){e.forEach(function(e){var n=a.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;n&&r&&n(r)})},e),elements:a},l.push(r),f.set(r,n),n}({root:null==n?void 0:n.current,rootMargin:r})).id,c=i.observer,(y=i.elements).set(m,e),c.observe(m),function(){if(y.delete(m),c.unobserve(m),0===y.size){c.disconnect(),f.delete(a);var e=l.findIndex(function(e){return e.root===a.root&&e.margin===a.margin});e>-1&&l.splice(e,1)}}}}else if(!d){var g=(0,o.requestIdleCallback)(function(){return p(!0)});return function(){return(0,o.cancelIdleCallback)(g)}}},[u,r,n,d,h.current]),[y,d,(0,a.useCallback)(function(){p(!1)},[])]}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),e.exports=n.default)},31240:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"AmpStateContext",{enumerable:!0,get:function(){return i}});var i=r(38754)._(r(67294)).default.createContext({})},68911:function(e,n){"use strict";function r(e){var n=void 0===e?{}:e,r=n.ampFirst,i=n.hybrid,a=n.hasQuery;return void 0!==r&&r||void 0!==i&&i&&void 0!==a&&a}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"isInAmpMode",{enumerable:!0,get:function(){return r}})},40325:function(e,n,r){"use strict";var i=r(20968);function a(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function o(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?a(Object(r),!0).forEach(function(n){i(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}Object.defineProperty(n,"__esModule",{value:!0}),function(e,n){for(var r in n)Object.defineProperty(e,r,{enumerable:!0,get:n[r]})}(n,{default:function(){return c},noSSR:function(){return u}});var s=r(38754);r(85893),r(67294);var f=s._(r(48809));function l(e){return{default:(null==e?void 0:e.default)||e}}function u(e,n){return delete n.webpack,delete n.modules,e(n)}function c(e,n){var r=f.default,i={loading:function(e){return e.error,e.isLoading,e.pastDelay,null}};e instanceof Promise?i.loader=function(){return e}:"function"==typeof e?i.loader=e:"object"==typeof e&&(i=o(o({},i),e));var a=(i=o(o({},i),n)).loader;return(i.loadableGenerated&&(i=o(o({},i),i.loadableGenerated),delete i.loadableGenerated),"boolean"!=typeof i.ssr||i.ssr)?r(o(o({},i),{},{loader:function(){return null!=a?a().then(l):Promise.resolve(l(function(){return null}))}})):(delete i.webpack,delete i.modules,u(r,i))}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esMo
375dule",{value:!0}),Object.assign(n.default,n),e.exports=n.default)},56869:function(e,n,r){"use strict";r(43171);var i=r(20968),a=r(47069),o=r(48416),s=["src","sizes","unoptimized","priority","loading","className","quality","width","height","fill","style","overrideSrc","onLoad","onLoadingComplete","placeholder","blurDataURL","fetchPriority","layout","objectFit","objectPosition","lazyBoundary","lazyRoot"],f=["config"];function l(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function u(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?l(Object(r),!0).forEach(function(n){i(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"getImgProps",{enumerable:!0,get:function(){return y}}),r(77668);var c=r(6921),d=r(92296);function p(e){return void 0!==e.default}function h(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function y(e,n){var r,i,l,y,m=e.src,g=e.sizes,b=e.unoptimized,v=void 0!==b&&b,w=e.priority,x=void 0!==w&&w,T=e.loading,C=e.className,M=e.quality,A=e.width,E=e.he
375ight,I=e.fill,S=void 0!==I&&I,k=e.style,N=e.overrideSrc,j=(e.onLoad,e.onLoadingComplete,e.placeholder),D=void 0===j?"empty":j,_=e.blurDataURL,O=e.fetchPriority,P=e.layout,L=e.objectFit,R=e.objectPosition,z=(e.lazyBoundary,e.lazyRoot,a(e,s)),B=n.imgConf,U=n.showAltText,F=n.blurComplete,Z=n.defaultLoader,W=B||d.imageConfigDefault;if("allSizes"in W)i=W;else{var H=[].concat(o(W.deviceSizes),o(W.imageSizes)).sort(function(e,n){return e-n}),G=W.deviceSizes.sort(function(e,n){return e-n});i=u(u({},W),{},{allSizes:H,deviceSizes:G})}if(void 0===Z)throw Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config");var q=z.loader||Z;delete z.loader,delete z.srcSet;var Y="__next_img_default"in q;if(Y){if("custom"===i.loader)throw Error('Image with src "'+m+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{var V=q;q=function(e){return e.config,V(a(e,f))}}if(P){"fill"===P&&(S=!0);var Q={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[P];Q&&(k=u(u({},k),Q));var K={responsive:"100vw",fill:"100vw"}[P];K&&!g&&(g=K)}var $="",J=h(A),X=h(E);if("object"==typeof(r=m)&&(p(r)||void 0!==r.src)){var ee=p(m)?m.default:m;if(!ee.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(ee));if(!ee.height||!ee.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(ee));if(l=ee.blurWidth,y=ee.blurHeight,_=_||ee.blurDataURL,$=ee.src,!S){if(J||X){if(J&&!X){var et=J/ee.width;X=Math.round(ee.height*et)}else if(!J&&X){var en=X/ee.height;J=Math.round(ee.width*en)}}else J=ee.width,X=ee.height}}var er=!x&&("lazy"===T||void 0===T);(!(m="string"==typeof m?m:$)||m.startsWith("data:")||m.startsWith("blob:"))&&(v=!0,er=!1),i.unoptimized&&(v=!0),Y&&m.endsWith(".svg")&&!i.dangerouslyAllowSVG&&(v=!0),x&&(O="high");var ei=h(M),ea=Object.assign(S?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:L,objectPosition:R}:{},U?{}:{color:"transparent"},k),eo=F||"empty"===D?null:"blur"===D?'url("data:image/svg+xml;charset=utf-8,'+(0,c.getImageBlurSvg)({widthInt:J,heightInt:X,blurWidth:l,blurHeight:y,blurDataURL:_||"",objectFit:ea.objectFit})+'")':'url("'+D+'")',es=eo?{backgroundSize:ea.objectFit||"cover",backgroundPosition:ea.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:eo}:{},ef=function(e){var n=e.config,r=e.src,i=e.unoptimized,a=e.width,s=e.quality,f=e.sizes,l=e.loader;if(i)return{src:r,srcSet:void 0,sizes:void 0};var u=function(e,n,r){var i=e.deviceSizes,a=e.allSizes;if(r){for(var s,f=/(^|\s)(1?\d?\d)vw/g,l=[];s=f.exec(r);s)l.push(parseInt(s[2]));if(l.length){var u=.01*Math.min.apply(Math,l);return{widths:a.filter(function(e){return e>=i[0]*u}),kind:"w"}}return{widths:a,kind:"w"}}return"number"!=typeof n?{widths:i,kind:"w"}:{widths:o(new Set([n,2*n].map(function(e){return a.find(function(n){return n>=e})||a[a.length-1]}))),kind:"x"}}(n,a,f),c=u.widths,d=u.kind,p=c.length-1;return{sizes:f||"w"!==d?f:"100vw",srcSet:c.map(function(e,i){return l({config:n,src:r,quality:s,width:e})+" "+("w"===d?e:i+1)+d}).join(", "),src:l({config:n,src:r,quality:s,width:c[p]})}}({config:i,src:m,unoptimized:v,width:J,quality:ei,sizes:g,loader:q});return{props:u(u({},z),{},{loading:er?"lazy":T,fetchPriority:O,width:J,height:X,decoding:"async",className:C,style:u(u({},ea),es),sizes:ef.sizes,srcSet:ef.srcSet,src:N||ef.src}),meta:{unoptimized:v,priority:x,placeholder:D,fill:S}}}},49903:function(e,n,r){"use strict";var i=r(20968);function a(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}Object.defineProperty(n,"__esModule",{value:!0}),function(e,n){for(var r in n)Object.defineProperty(e,r,{enumerable:!0,get:n[r]})}(n,{default:function(){return b},defaultHead:function(){return h}});var o=r(38754),s=r(61757),f=r(85893),l=s._(r(67294)),u=o._(r(53367)),c=r(31240),d=r(20870),p=r(68911);function h(e){void 0===e&&(e=!1);var n=[(0,f.jsx)("meta",{charSet:"utf-8"})];return e||n.push((0,f.jsx)("meta",{name:"viewport",content:"width=device-width"})),n}function y(e,n){return"string"==typeof n||"number"==typeof n?e:n.type===l.default.Fragment?e.concat(l.default.Children.toArray(n.props.children).reduce(function(e,n){return"string"==typeof n||"number"==typeof n?e:e.concat(n)},[])):e.concat(n)}r(77668);var m=["name","httpEquiv","charSet","itemProp"];function g(e,n){var r,o,s,f,u=n.inAmpMode;return e.reduce(y,[]).reverse().concat(h(u).reverse()).filter((r=new Set,o=new Set,s=new Set,f={},function(e){var n=!0,i=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){i=!0;var a=e.key.slice(e.key.indexOf("$")+1);r.has(a)?n=!1:r.add(a)}switch(e.type){case"title":case"base":o.has(e.type)?n=!1:o.add(e.type);break;case"meta":for(var l=0,u=m.length;l<u;l++){var c=m[l];
375if(e.props.hasOwnProperty(c)){if("charSet"===c)s.has(c)?n=!1:s.add(c);else{var d=e.props[c],p=f[c]||new Set;("name"!==c||!i)&&p.has(d)?n=!1:(p.add(d),f[c]=p)}}}}return n})).reverse().map(function(e,n){var r=e.key||n;if(!u&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(function(n){return e.props.href.startsWith(n)})){var o=function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?a(Object(r),!0).forEach(function(n){i(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}({},e.props||{});return o["data-href"]=o.href,o.href=void 0,o["data-optimized-fonts"]=!0,l.default.cloneElement(e,o)}return l.default.cloneElement(e,{key:r})})}var b=function(e){var n=e.children,r=(0,l.useContext)(c.AmpStateContext),i=(0,l.useContext)(d.HeadManagerContext);return(0,f.jsx)(u.default,{reduceComponentsToState:g,headManager:i,inAmpMode:(0,p.isInAmpMode)(r),children:n})};("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),e.exports=n.default)},6921:function(e,n){"use strict";function r(e){var n=e.widthInt,r=e.heightInt,i=e.blurWidth,a=e.blurHeight,o=e.blurDataURL,s=e.objectFit,f=i?40*i:n,l=a?40*a:r,u=f&&l?"viewBox='0 0 "+f+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===s?"xMidYMid":"cover"===s?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},3122:function(e,n,r){"use strict";var i=r(43171);Object.defineProperty(n,"__esModule",{value:!0}),function(e,n){for(var r in n)Object.defineProperty(e,r,{enumerable:!0,get:n[r]})}(n,{default:function(){return u},getImageProps:function(){return l}});
375var a=r(38754),o=r(56869),s=r(48880),f=a._(r(84436));function l(e){for(var n=(0,o.getImgProps)(e,{defaultLoader:f.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}}).props,r=0,a=Object.entries(n);r<a.length;r++){var s=i(a[r],2),l=s[0];void 0===s[1]&&delete n[l]}return{props:n}}var u=s.Image},84436:function(e,n){"use strict";function r(e){var n=e.config,r=e.src,i=e.width,a=e.quality;return n.path+"?url="+encodeURIComponent(r)+"&w="+i+"&q="+(a||75)}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return i}}),r.__next_img_default=!0;var i=r},22362:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"LoadableContext",{enumerable:!0,get:function(){return i}});var i=r(38754)._(r(67294)).default.createContext(null)},48809:function(e,n,r){"use strict";/** 376@copyright (c) 2017-present James Kyle <[email protected]> 377 MIT License 378 Permission is hereby granted, free of charge, to any person obtaining 379a copy of this software and associated documentation files (the 380"Software"), to deal in the Software without restriction, including 381without limitation the rights to use, copy, modify, merge, publish, 382distribute, sublicense, and/or sell copies of the Software, and to 383permit persons to whom the Software is furnished to do so, subject to 384the following conditions: 385 The above copyright notice and this permission notice shall be 386included in all copies or substantial portions of the Software. 387 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 388EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 389MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 390NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 391LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 392OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 393WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE 394*/var i=r(20968),a=r(23322),o=r(16089);function s(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function f(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?s(Object(r),!0).forEach(function(n){i(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function l(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,i=Array(n);r<n;r++)i[r]=e[r];return i}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return v}});var u=r(38754)._(r(67294)),c=r(22362),d=[],p=[],h=!1;function y(e){var n=e(),r={loading:!0,loaded:null,error:null};return r.promise=n.then(function(e){return r.loading=!1,r.loaded=e,e}).catch(function(e){throw r.loading=!1,r.error=e,e}),r}var m=function(){function e(n,r){a(this,e),this._loadFn=n,this._opts=r,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}return o(e,[{key:"promise",value:function(){return this._res.promise}},{key:"retry",value:function(){var e=this;this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};var n=this._res,r=this._opts;n.loading&&("number"==typeof r.delay&&(0===r.delay?this._state.pastDelay=!0:this._delay=setTimeout(function(){e._update({pastDelay:!0})},r.delay)),"number"==typeof r.timeout&&(this._timeout=setTimeout(function(){e._update({timedOut:!0})},r.timeout))),this._res.promise.then(function(){e._update({}),e._clearTimeouts()}).catch(function(n){e._update({}),e._clearTimeouts()}),this._update({})}},{key:"_update",value:function(e){this._state=f(f({},this._state),{},{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading},e),this._callbacks.forEach(function(e){return e()})}},{key:"_clearTimeouts",value:function(){clearTimeout(this._delay),clearTimeout(this._timeout)}},{key:"getCurrentValue",value:function(){return this._state}},{key:"subscribe",value:function(e){var n=this;return this._callbacks.add(e),function(){n._callbacks.delete(e)}}}]),e}();function g(e){return function(e,n){var r=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},n),i=null;function a(){if(!i){var n=new m(e,r);i={getCurrentValue:n.getCurrentValue.bind(n),subscribe:n.subscribe.bind(n),retry:n.retry.bind(n),promise:n.promise.bind(n)}}return i.promise()}if(!h){var o=r.webpack?r.webpack():r.modules;o&&p.push(function(e){var n,r=function(e,n){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,n){if(e){if("string"==typeof e)return l(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(e,void 0)}}(e))){r&&(e=r);var i=0,a=function(){};return{s:a,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:a}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,f=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){f=!0,o=e}
394,f:function(){try{s||null==r.return||r.return()}finally{if(f)throw o}}}}(o);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(e.includes(i))return a()}}catch(e){r.e(e)}finally{r.f()}})}function s(e,n){a(),(o=u.default.useContext(c.LoadableContext))&&Array.isArray(r.modules)&&r.modules.forEach(function(e){o(e)});var o,s=u.default.useSyncExternalStore(i.subscribe,i.getCurrentValue,i.getCurrentValue);return u.default.useImperativeHandle(n,function(){return{retry:i.retry}},[]),u.default.useMemo(function(){var n;return s.loading||s.error?u.default.createElement(r.loading,{isLoading:s.loading,pastDelay:s.pastDelay,timedOut:s.timedOut,error:s.error,retry:i.retry}):s.loaded?u.default.createElement((n=s.loaded)&&n.default?n.default:n,e):null},[e,s])}return s.preload=function(){return a()},s.displayName="LoadableComponent",u.default.forwardRef(s)}(y,e)}function b(e,n){for(var r=[];e.length;){var i=e.pop();r.push(i(n))}return Promise.all(r).then(function(){if(e.length)return b(e,n)})}g.preloadAll=function(){return new Promise(function(e,n){b(d).then(e,n)})},g.preloadReady=function(e){return void 0===e&&(e=[]),new Promise(function(n){var r=function(){return h=!0,n()};b(p,e).then(r,r)})},window.__NEXT_PRELOADREADY=g.preloadReady;var v=g},53367:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return s}});var i=r(67294),a=i.useLayoutEffect,o=i.useEffect;function s(e){var n=e.headManager,r=e.reduceComponentsToState;function s(){if(n&&n.mountedInstances){var a=i.Children.toArray(Array.from(n.mountedInstances).filter(Boolean));n.updateHead(r(a,e))}}return a(function(){var r;return null==n||null==(r=n.mountedInstances)||r.add(e.children),function(){var r;null==n||null==(r=n.mountedInstances)||r.delete(e.children)}}),a(function(){return n&&(n._pendingUpdate=s),function(){n&&(n._pendingUpdate=s)}}),o(function(){return n&&n._pendingUpdate&&(n._pendingUpdate(),n._pendingUpdate=null),function(){n&&n._pendingUpdate&&(n._pendingUpdate(),n._pendingUpdate=null)}}),null}},77668:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"warnOnce",{enumerable:!0,get:function(){return r}});var r=function(e){}},76283:function(e,n,r){var i=r(34155);r(91479);var a=r(67294),o=a&&"object"==typeof a&&"default"in a?a:{default:a},s=void 0!==i&&i.env&&!0,f=function(e){return"[object String]"===Object.prototype.toString.call(e)},l=function(){function e(e){var n=void 0===e?{}:e,r=n.name,i=void 0===r?"stylesheet":r,a=n.optimizeForSpeed,o=void 0===a?s:a;u(f(i),"`name` must be a string"),this._name=i,this._deletedRulePlaceholder="#"+i+"-deleted-rule____{}",u("boolean"==typeof o,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=o,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var l=document.querySelector('meta[property="csp-nonce"]');this._nonce=l?l.getAttribute("content"):null}var n=e.prototype;return n.setOptimizeForSpeed=function(e){u("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),u(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},n.isOptimizeForSpeed=function(){return this._optimizeForSpeed},n.inject=function(){var e=this;if(u(!this._injected,"sheet already injected"),this._injected=!0,this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(s||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(n,r){return"number"==typeof r?e._serverSheet.cssRules[r]={cssText:n}:e._serverSheet.cssRules.push({cssText:n}),r},deleteRule:function(n){e._serverSheet.cssRules[n]=null}}},n.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var n=0;n<document.styleSheets.length;n++)if(document.styleSheets[n].ownerNode===e)return document.styleSheets[n]}
394,n.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},n.insertRule=function(e,n){if(u(f(e),"`insertRule` accepts only strings"),this._optimizeForSpeed){var r=this.getSheet();"number"!=typeof n&&(n=r.cssRules.length);try{r.insertRule(e,n)}catch(n){return s||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var i=this._tags[n];this._tags.push(this.makeStyleTag(this._name,e,i))}return this._rulesCount++},n.replaceRule=function(e,n){if(this._optimizeForSpeed){var r=this.getSheet();if(n.trim()||(n=this._deletedRulePlaceholder),!r.cssRules[e])return e;r.deleteRule(e);try{r.insertRule(n,e)}catch(i){s||console.warn("StyleSheet: illegal rule: \n\n"+n+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),r.insertRule(this._deletedRulePlaceholder,e)}}else{var i=this._tags[e];u(i,"old rule at index `"+e+"` not found"),i.textContent=n}return e},n.deleteRule=function(e){if(this._optimizeForSpeed)this.replaceRule(e,"");else{var n=this._tags[e];u(n,"rule at index `"+e+"` not found"),n.parentNode.removeChild(n),this._tags[e]=null}},n.flush=function(){this._injected=!1,this._rulesCount=0,this._tags.forEac
394h(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]},n.cssRules=function(){var e=this;return this._tags.reduce(function(n,r){return r?n=n.concat(Array.prototype.map.call(e.getSheetForTag(r).cssRules,function(n){return n.cssText===e._deletedRulePlaceholder?null:n})):n.push(null),n},[])},n.makeStyleTag=function(e,n,r){n&&u(f(n),"makeStyleTag accepts only strings as second parameter");var i=document.createElement("style");this._nonce&&i.setAttribute("nonce",this._nonce),i.type="text/css",i.setAttribute("data-"+e,""),n&&i.appendChild(document.createTextNode(n));var a=document.head||document.getElementsByTagName("head")[0];return r?a.insertBefore(i,r):a.appendChild(i),i},function(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(e.prototype,[{key:"length",get:function(){return this._rulesCount}}]),e}();function u(e,n){if(!e)throw Error("StyleSheet: "+n+".")}var c=function(e){for(var n=5381,r=e.length;r;)n=33*n^e.charCodeAt(--r);return n>>>0},d={};function p(e,n){if(!n)return"jsx-"+e;var r=String(n),i=e+r;return d[i]||(d[i]="jsx-"+c(e+"-"+r)),d[i]}function h(e,n){var r=e+n;return d[r]||(d[r]=n.replace(/__jsx-style-dynamic-selector/g,e)),d[r]}var y=function(){function e(e){var n=void 0===e?{}:e,r=n.styleSheet,i=void 0===r?null:r,a=n.optimizeForSpeed,o=void 0!==a&&a;this._sheet=i||new l({name:"styled-jsx",optimizeForSpeed:o}),this._sheet.inject(),i&&"boolean"==typeof o&&(this._sheet.setOptimizeForSpeed(o),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var n=e.prototype;return n.add=function(e){var n=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,n){return e[n]=0,e},{}));var r=this.getIdAndRules(e),i=r.styleId,a=r.rules;if(i in this._instancesCounts){this._instancesCounts[i]+=1;return}var o=a.map(function(e){return n._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[i]=o,this._instancesCounts[i]=1},n.remove=function(e){var n=this,r=this.getIdAndRules(e).styleId;if(function(e,n){if(!e)throw Error("StyleSheetRegistry: "+n+".")}(r in this._instancesCounts,"styleId: `"+r+"` not found"),this._instancesCounts[r]-=1,this._instancesCounts[r]<1){var i=this._fromServer&&this._fromServer[r];i?(i.parentNode.removeChild(i),delete this._fromServer[r]):(this._indices[r].forEach(function(e){return n._sheet.deleteRule(e)}),delete this._indices[r]),delete this._instancesCounts[r]}},n.update=function(e,n){this.add(n),this.remove(e)},n.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},n.cssRules=function(){var e=this,n=this._fromServer?Object.keys(this._fromServer).map(function(n){return[n,e._fromServer[n]]}):[],r=this._sheet.cssRules();return n.concat(Object.keys(this._indices).map(function(n){return[n,e._indices[n].map(function(e){return r[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},n.styles=function(e){var n,r;return n=this.cssRules(),void 0===(r=e)&&(r={}),n.map(function(e){var n=e[0],i=e[1];return o.default.createElement("style",{id:"__"+n,key:"__"+n,nonce:r.nonce?r.nonce:void 0,dangerouslySetInnerHTML:{__html:i}})})},n.getIdAndRules=function(e){var n=e.children,r=e.dynamic,i=e.id;if(r){var a=p(i,r);return{styleId:a,rules:Array.isArray(n)?n.map(function(e){return h(a,e)}):[h(a,n)]}}return{styleId:p(i),rules:Array.isArray(n)?n:[n]}},n.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,n){return e[n.id.slice(2)]=n,e},{})},e}(),m=a.createContext(null);m.displayName="StyleSheetContext";var g=o.default.useInsertionEffect||o.default.useLayoutEffect,b=new y;function v(e){var n=b||a.useContext(m);return n&&g(function(){return n.add(e),function(){n.remove(e)}},[e.id,String(e.dynamic)]),null}v.dynamic=function(e){return e.map(function(e){return p(e[0],e[1])}).join(" ")},n.style=v},53967:function(e,n,r){e.exports=r(76283).style},5460:function(e,n,r){"use strict";r.d(n,{L:function(){return o}});var i=r(9195),a="121f929ca3a6f294473bb2d47947c372";if(!a)throw Error("No client ID provided");var o=(0,i.P)({clientId:a})},83804:function(e,n,r){"use strict";r.r(n),r.d(n,{apiClient:function(){return c},get:function(){return b},post:function(){return d},put:function(){return h},remove:function(){return m},send:function(){return w}});var i,a=r(50029),o=r(64687),s=r.n(o),f=r(9669),l=r.n(f),u=r(6410),c=l().create({baseURL:"https://backend.guildtogether.com"});function d(e,n){return p.apply(this,arguments)}function p(){return(p=(0,a.default)(s().mark(function e(n,r){return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,w("POST",n,r);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}function h(e,n){return y.apply(this,arguments)}function y(){return(y=(0,a.default)(s().mark(function e(n,r){return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,w("PUT",n,r);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}function m(e,n){return g.apply(this,arguments)}function g(){return(g=(0,a.default)(s().mark(function e(n,r){return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,w("DELETE",n,r);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}function b(e,n){return v.apply(this,arguments)}function v(){return(v=(0,a.default)(s().mark(function e(n,r){var i,a=arguments;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=a.length>2&&void 0!==a[2]?a[2]:"json",e.next=3,w("GET",n,null,r,i);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function w(e,n,r,i){return x.apply(this,arguments)}function x(){return(x=(0,a.default)(s().mark(function e(n,r,i,a){var o,f,l,u,d=arguments;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return f=d.length>4&&void 0!==d[4]?d[4]:"json",l={},!i||i instanceof FormData||(l["Content-Type"]="application/json"),a&&(l.Authorization="Bearer ".concat(a)),e.next=6,c.request({method:n,url:r,headers:l,data:i,responseType:f});case 6:return u=e.sent,e.abrupt("return",{status:"ok",data:null===(o=u.data)||void 0===o?void 0:o.data});case 8:case"end":return e.stop()}},e)}))).apply(this,arguments)}c.interceptors.request.use((i=(0,a.default)(s().mark(function e(n){var r;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(r=(0,u.ej)("accessToken"))&&(n.headers.Authorization="Bearer ".concat(r)),e.abrupt("return",n);case 3:case"end":return e.stop()}},e)})),function(e){return i.apply(this,arguments)}))},7623:function(e,n,r){"use strict";r.d(n,{Br:function(){return b},ES:function(){return c},F7:function(){return i},IU:function(){return l},Oz:function(){return h},Yo:function(){return x},ZZ:function(){return v},Zy:function(){return o},bl:function(){return s},dC:function(){return y},gw:function(){return w},n6:function(){return f},oA:function(){return p},rA:function(){return a},r_:function(){return u},tA:function(){return g},tS:function(){return d},y6:function(){return m}});var i={waveColor:"#E6E6E6",progressColor:"#0575E6",cursorColor:"#0575E6",barHeight:5,minPxPerSec:200,responsive:!0,height:100,normalize:!0,peakCache:!0,partialRender:!0,hideScrollbar:!0},a=[".bmp",".jpeg",".jpg",".png"],o="image/bmp,image/jpeg,image/png,image/jpg",s=[".wav",".mp3",".m4a"],f="audio/wav,audio/wave,audio/x-wav,audio/mpeg,audio/mpeg3,audio/x-mpeg-3,audio/mp4,audio/x-m4a,audio/m4a",l=[".band",".zip",".ptx"],u="application/zip,application/x-zip-compressed,inode/directory,application/octet-stream",c=[".mp4"],d="video/mp4,video/x-msvideo",p=["band","zip"],h=["ptx"],y={ADDED_FILES_TO_RELEASE:"ADDED_FILES_TO_RELEASE",REMOVED_FILES_FROM_RELEASE:"REMOVED_FILES_FROM_RELEASE",ADDED_FILES_TO_MAIN_FOLDER:"ADDED_FILES_TO_MAIN_FOLDER",UNLINKED_FILES_FROM_MAIN_FOLDER:"UNLINKED_FILES_FROM_MAIN_FOLDER",REMOVED_FILES_FROM_FINAL_VERSION:"REMOVED_FILES_FROM_FINAL_VERSION",ADDED_FILES_TO_FINAL_VERSION:"ADDED_FILES_TO_FINAL_VERSION",CREATED_RELEASE:"CREATED_RELEASE",RENAMED_RELEASE:"RENAMED_RELEASE",PUBLISHED_RELEASE:"PUBLISHED_RELEASE",COMMENT:"COMMENT",CREATED_PROJECT:"CREATED_PROJECT",RENAMED_PROJECT:"RENAMED_PROJECT"},m={CREATED_PUBLIC_PROJECT:"CREATED_PUBLIC_PROJECT",CREATED_NFT:"CREATED_NFT",PUBLISHED_A_PROJECT:"PUBLISHED_A_PROJECT",CREATED_COLLABORATION_OPPORTUNITY:"CREATED_COLLABORATION_OPPORTUNITY",ADDED_TRACKS_TO_PROJECT:"ADDED_TRACKS_TO_PROJECT",ADDED_TRACKS_TO_RELEASE:"ADDED_TRACKS_TO_RELEASE",ADDED_TRACKS_TO_FINAL_VERSION:"ADDED_TRACKS_TO_FINAL_VERSION",ADDED_A_COMMENT_ON_A_PROJECT:"ADDED_A_COMMENT_ON_A_PROJECT",INVITED_USER_JOINED:"INVITED_USER_JOINED"},g=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,b={ALL:"all",PUBLIC:"public",PRIVATE:"private"},v={A:[{label:"A",value:"A"},{label:"Am",value:"Am"},{label:"A7",value:"A7"},{label:"A5",value:"A5"},{label:"Adim",value:"Adim"},{label:"Adim7",value:"Adim7"},{label:"Aaug",value:"Aaug"},{label:"Asus2",value:"Asus2"},{label:"Asus",value:"Asus"},{label:"Amaj7",value:"Amaj7"},{label:"Am7",value:"Am7"},{label:"A7sus4",value:"A7sus4"},{label:"Amaj9",value:"Amaj9"},{label:"Amaj11",value:"Amaj11"},{label:"Amaj13",value:"Amaj13"},{label:"Amaj9(#11)",value:"Amaj9(#11)"},{label:"Amaj13(#11)",value:"Amaj13(#11)"},{label:"Aadd9",value:"Aadd9"},{label:"A6add9",value:"A6add9"},{label:"Amaj7(b5)",value:"Amaj7(b5)"},{label:"Amaj7(#5)",value:"Amaj7(#5)"},{label:"Am6",value:"Am6"},{label:"Am9",value:"Am9"},{label:"Am11",value:"Am11"},{label:"Am13",value:"Am13"}
394,{label:"Am(add9)",value:"Am(add9)"},{label:"Am6add9",value:"Am6add9"},{label:"Ammaj7",value:"Ammaj7"},{label:"Ammaj9",value:"Ammaj9"},{label:"Am7b5",value:"Am7b5"},{label:"Am7#5",value:"Am7#5"},{label:"A6",value:"A6"},{label:"A9",value:"A9"},{label:"A11",value:"A11"},{label:"A13",value:"A13"},{label:"A7b5",value:"A7b5"},{label:"A7#5",value:"A7#5"},{label:"A7b9",value:"A7b9"},{label:"A7#9",value:"A7#9"},{label:"A7(b5",value:"A7(b5"},{label:"A7(#5",value:"A7(#5"},{label:"A9b5",value:"A9b5"},{label:"A9#5",value:"A9#5"},{label:"A13#11",value:"A13#11"},{label:"A13b9",value:"A13b9"},{label:"A11b9",value:"A11b9"},{label:"Asus2sus4",value:"Asus2sus4"},{label:"A-5",value:"A-5"},{label:"A#",value:"A#"},{label:"A#m",value:"A#m"},{label:"A#7",value:"A#7"},{label:"A#5",value:"A#5"},{label:"A#dim",value:"A#dim"},{label:"A#dim7",value:"A#dim7"},{label:"A#aug",value:"A#aug"},{label:"A#sus2",value:"A#sus2"},{label:"A#sus",value:"A#sus"},{label:"A#maj7",value:"A#maj7"},{label:"A#m7",value:"A#m7"},{label:"A#7sus4",value:"A#7sus4"},{label:"A#maj9",value:"A#maj9"},{label:"A#maj11",value:"A#maj11"},{label:"A#maj13",value:"A#maj13"},{label:"A#maj9(#11)",value:"A#maj9(#11)"},{label:"A#maj13(#11)",value:"A#maj13(#11)"},{label:"A#add9",value:"A#add9"},{label:"A#6add9",value:"A#6add9"},{label:"A#maj7(b5)",value:"A#maj7(b5)"},{label:"A#maj7(#5)",value:"A#maj7(#5)"},{label:"A#m6",value:"A#m6"},{label:"A#m9",value:"A#m9"},{label:"A#m11",value:"A#m11"},{label:"A#m13",value:"A#m13"},{label:"A#m(add9)",value:"A#m(add9)"},{label:"A#m6add9",value:"A#m6add9"},{label:"A#mmaj7",value:"A#mmaj7"},{label:"A#mmaj9",value:"A#mmaj9"},{label:"A#m7b5",value:"A#m7b5"},{label:"A#m7#5",value:"A#m7#5"},{label:"A#6",value:"A#6"},{label:"A#9",value:"A#9"},{label:"A#11",value:"A#11"},{label:"A#13",value:"A#13"},{label:"A#7b5",value:"A#7b5"},{label:"A#7#5",value:"A#7#5"},{label:"A#7b9",value:"A#7b9"},{label:"A#7#9",value:"A#7#9"},{label:"A#7(b5",value:"A#7(b5"},{label:"A#7(#5",value:"A#7(#5"},{label:"A#9b5",value:"A#9b5"},{label:"A#9#5",value:"A#9#5"},{label:"A#13#11",value:"A#13#11"},{label:"A#13b9",value:"A#13b9"},{label:"A#11b9",value:"A#11b9"},{label:"A#sus2sus4",value:"A#sus2sus4"},{label:"A#-5",value:"A#-5"}],B:[{label:"B",value:"B"},{label:"Bm",value:"Bm"},{label:"B7",value:"B7"},{label:"B5",value:"B5"},{label:"Bdim",value:"Bdim"},{label:"Bdim7",value:"Bdim7"},{label:"Baug",value:"Baug"},{label:"Bsus2",value:"Bsus2"},{label:"Bsus",value:"Bsus"},{label:"Bmaj7",value:"Bmaj7"},{label:"Bm7",value:"Bm7"},{label:"B7sus4",value:"B7sus4"},{label:"Bmaj9",value:"Bmaj9"},{label:"Bmaj11",value:"Bmaj11"},{label:"Bmaj13",value:"Bmaj13"},{label:"Bmaj9(#11)",value:"Bmaj9(#11)"},{label:"Bmaj13(#11)",value:"Bmaj13(#11)"},{label:"Badd9",value:"Badd9"},{label:"B6add9",value:"B6add9"},{label:"Bmaj7(b5)",value:"Bmaj7(b5)"},{label:"Bmaj7(#5)",value:"Bmaj7(#5)"},{label:"Bm6",value:"Bm6"},{label:"Bm9",value:"Bm9"},{label:"Bm11",value:"Bm11"},{label:"Bm13",value:"Bm13"},{label:"Bm(add9)",value:"Bm(add9)"},{label:"Bm6add9",value:"Bm6add9"},{label:"Bmmaj7",value:"Bmmaj7"},{label:"Bmmaj9",value:"Bmmaj9"},{label:"Bm7b5",value:"Bm7b5"},{label:"Bm7#5",value:"Bm7#5"},{label:"B6",value:"B6"},{label:"B9",value:"B9"},{label:"B11",value:"B11"},{label:"B13",value:"B13"},{label:"B7b5",value:"B7b5"},{label:"B7#5",value:"B7#5"},{label:"B7b9",value:"B7b9"},{label:"B7#9",value:"B7#9"},{label:"B7(b5",value:"B7(b5"},{label:"B7(#5",value:"B7(#5"},{label:"B9b5",value:"B9b5"},{label:"B9#5",value:"B9#5"},{label:"B13#11",value:"B13#11"},{label:"B13b9",value:"B13b9"},{label:"B11b9",value:"B11b9"},{label:"Bsus2sus4",value:"Bsus2sus4"},{label:"B-5",value:"B-5"}],C:[{label:"C",value:"C"},{label:"Cm",value:"Cm"},{label:"C7",value:"C7"},{label:"C5",value:"C5"},{label:"Cdim",value:"Cdim"},{label:"Cdim7",value:"Cdim7"},{label:"Caug",value:"Caug"},{label:"Csus2",value:"Csus2"},{label:"Csus",value:"Csus"},{label:"Cmaj7",value:"Cmaj7"},{label:"Cm7",value:"Cm7"},{label:"C7sus4",value:"C7sus4"},{label:"Cmaj9",value:"Cmaj9"},{label:"Cmaj11",value:"Cmaj11"},{label:"Cmaj13",value:"Cmaj13"},{label:"Cmaj9(#11)",value:"Cmaj9(#11)"},{label:"Cmaj13(#11)",value:"Cmaj13(#11)"},{label:"Cadd9",value:"Cadd9"},{label:"C6add9",value:"C6add9"},{label:"Cmaj7(b5)",value:"Cmaj7(b5)"},{label:"Cmaj7(#5)",value:"Cmaj7(#5)"},{label:"Cm6",value:"Cm6"},{label:"Cm9",value:"Cm9"},{label:"Cm11",value:"Cm11"},{label:"Cm13",value:"Cm13"},{label:"Cm(add9)",value:"Cm(add9)"},{label:"Cm6add9",value:"Cm6add9"},{label:"Cmmaj7",value:"Cmmaj7"},{label:"Cmmaj9",value:"Cmmaj9"},{label:"Cm7b5",value:"Cm7b5"},{label:"Cm7#5",value:"Cm7#5"},{label:"C6",value:"C6"},{label:"C9",value:"C9"},{label:"C11",value:"C11"},{label:"C13",value:"C13"},{label:"C7b5",value:"C7b5"},{label:"C7#5",value:"C7#5"},{label:"C7b9",value:"C7b9"},{label:"C7#9",value:"C7#9"},{label:"C7(b5",value:"C7(b5"},{label:"C7(#5",value:"C7(#5"},{label:"C9b5",value:"C9b5"},{label:"C9#5",value:"C9#5"},{label:"C13#11",value:"C13#11"},{label:"C13b9",value:"C13b9"},{label:"C11b9",value:"C11b9"},{label:"Csus2sus4",value:"Csus2sus4"},{label:"C-5",value:"C-5"},{label:"C#",value:"C#"},{label:"C#m",value:"C#m"},{label:"C#7",value:"C#7"},{label:"C#5",value:"C#5"},{label:"C#dim",value:"C#dim"},{label:"C#dim7",value:"C#dim7"},{label:"C#aug",value:"C#aug"},{label:"C#sus2",value:"C#sus2"},{label:"C#sus",value:"C#sus"},{label:"C#maj7",value:"C#maj7"},{label:"C#m7",value:"C#m7"},{label:"C#7sus4",value:"C#7sus4"},{label:"C#maj9",value:"C#maj9"},{label:"C#maj11",value:"C#maj11"},{label:"C#maj13",value:"C#maj13"},{label:"C#maj9(#11)",value:"C#maj9(#11)"},{label:"C#maj13(#11)",value:"C#maj13(#11)"},{label:"C#add9",value:"C#add9"},{label:"C#6add9",value:"C#6add9"},{label:"C#maj7(b5)",value:"C#maj7(b5)"},{label:"C#maj7(#5)",value:"C#maj7(#5)"},{label:"C#m6",value:"C#m6"},{label:"C#m9",value:"C#m9"},{label:"C#m11",value:"C#m11"},{label:"C#m13",value:"C#m13"},{label:"C#m(add9)",value:"C#m(add9)"}
394,{label:"C#m6add9",value:"C#m6add9"},{label:"C#mmaj7",value:"C#mmaj7"},{label:"C#mmaj9",value:"C#mmaj9"},{label:"C#m7b5",value:"C#m7b5"},{label:"C#m7#5",value:"C#m7#5"},{label:"C#6",value:"C#6"},{label:"C#9",value:"C#9"},{label:"C#11",value:"C#11"},{label:"C#13",value:"C#13"},{label:"C#7b5",value:"C#7b5"},{label:"C#7#5",value:"C#7#5"},{label:"C#7b9",value:"C#7b9"},{label:"C#7#9",value:"C#7#9"},{label:"C#7(b5",value:"C#7(b5"},{label:"C#7(#5",value:"C#7(#5"},{label:"C#9b5",value:"C#9b5"},{label:"C#9#5",value:"C#9#5"},{label:"C#13#11",value:"C#13#11"},{label:"C#13b9",value:"C#13b9"},{label:"C#11b9",value:"C#11b9"},{label:"C#sus2sus4",value:"C#sus2sus4"},{label:"C#-5",value:"C#-5"}],D:[{label:"D",value:"D"},{label:"Dm",value:"Dm"},{label:"D7",value:"D7"},{label:"D5",value:"D5"},{label:"Ddim",value:"Ddim"},{label:"Ddim7",value:"Ddim7"},{label:"Daug",value:"Daug"},{label:"Dsus2",value:"Dsus2"},{label:"Dsus",value:"Dsus"},{label:"Dmaj7",value:"Dmaj7"},{label:"Dm7",value:"Dm7"},{label:"D7sus4",value:"D7sus4"},{label:"Dmaj9",value:"Dmaj9"},{label:"Dmaj11",value:"Dmaj11"},{label:"Dmaj13",value:"Dmaj13"},{label:"Dmaj9(#11)",value:"Dmaj9(#11)"},{label:"Dmaj13(#11)",value:"Dmaj13(#11)"},{label:"Dadd9",value:"Dadd9"},{label:"D6add9",value:"D6add9"},{label:"Dmaj7(b5)",value:"Dmaj7(b5)"},{label:"Dmaj7(#5)",value:"Dmaj7(#5)"},{label:"Dm6",value:"Dm6"},{label:"Dm9",value:"Dm9"},{label:"Dm11",value:"Dm11"},{label:"Dm13",value:"Dm13"},{label:"Dm(add9)",value:"Dm(add9)"},{label:"Dm6add9",value:"Dm6add9"},{label:"Dmmaj7",value:"Dmmaj7"},{label:"Dmmaj9",value:"Dmmaj9"},{label:"Dm7b5",value:"Dm7b5"},{label:"Dm7#5",value:"Dm7#5"},{label:"D6",value:"D6"},{label:"D9",value:"D9"},{label:"D11",value:"D11"},{label:"D13",value:"D13"},{label:"D7b5",value:"D7b5"},{label:"D7#5",value:"D7#5"},{label:"D7b9",value:"D7b9"},{label:"D7#9",value:"D7#9"},{label:"D7(b5",value:"D7(b5"},{label:"D7(#5",value:"D7(#5"},{label:"D9b5",value:"D9b5"},{label:"D9#5",value:"D9#5"},{label:"D13#11",value:"D13#11"},{label:"D13b9",value:"D13b9"},{label:"D11b9",value:"D11b9"},{label:"Dsus2sus4",value:"Dsus2sus4"},{label:"D-5",value:"D-5"},{label:"D#",value:"D#"},{label:"D#m",value:"D#m"},{label:"D#7",value:"D#7"},{label:"D#5",value:"D#5"},{label:"D#dim",value:"D#dim"},{label:"D#dim7",value:"D#dim7"},{label:"D#aug",value:"D#aug"},{label:"D#sus2",value:"D#sus2"},{label:"D#sus",value:"D#sus"},{label:"D#maj7",value:"D#maj7"},{label:"D#m7",value:"D#m7"},{label:"D#7sus4",value:"D#7sus4"},{label:"D#maj9",value:"D#maj9"},{label:"D#maj11",value:"D#maj11"},{label:"D#maj13",value:"D#maj13"},{label:"D#maj9(#11)",value:"D#maj9(#11)"},{label:"D#maj13(#11)",value:"D#maj13(#11)"},{label:"D#add9",value:"D#add9"},{label:"D#6add9",value:"D#6add9"},{label:"D#maj7(b5)",value:"D#maj7(b5)"},{label:"D#maj7(#5)",value:"D#maj7(#5)"},{label:"D#m6",value:"D#m6"},{label:"D#m9",value:"D#m9"},{label:"D#m11",value:"D#m11"},{label:"D#m13",value:"D#m13"},{label:"D#m(add9)",value:"D#m(add9)"},{label:"D#m6add9",value:"D#m6add9"},{label:"D#mmaj7",value:"D#mmaj7"},{label:"D#mmaj9",value:"D#mmaj9"},{label:"D#m7b5",value:"D#m7b5"},{label:"D#m7#5",value:"D#m7#5"},{label:"D#6",value:"D#6"},{label:"D#9",value:"D#9"},{label:"D#11",value:"D#11"},{label:"D#13",value:"D#13"},{label:"D#7b5",value:"D#7b5"},{label:"D#7#5",value:"D#7#5"},{label:"D#7b9",value:"D#7b9"},{label:"D#7#9",value:"D#7#9"},{label:"D#7(b5",value:"D#7(b5"},{label:"D#7(#5",value:"D#7(#5"},{label:"D#9b5",value:"D#9b5"},{label:"D#9#5",value:"D#9#5"},{label:"D#13#11",value:"D#13#11"},{label:"D#13b9",value:"D#13b9"},{label:"D#11b9",value:"D#11b9"},{label:"D#sus2sus4",value:"D#sus2sus4"},{label:"D#-5",value:"D#-5"}],E:[{label:"E",value:"E"},{label:"Em",value:"Em"},{label:"E7",value:"E7"},{label:"E5",value:"E5"},{label:"Edim",value:"Edim"},{label:"Edim7",value:"Edim7"},{label:"Eaug",value:"Eaug"},{label:"Esus2",value:"Esus2"},{label:"Esus",value:"Esus"},{label:"Emaj7",value:"Emaj7"},{label:"Em7",value:"Em7"},{label:"E7sus4",value:"E7sus4"},{label:"Emaj9",value:"Emaj9"},{label:"Emaj11",value:"Emaj11"},{label:"Emaj13",value:"Emaj13"},{label:"Emaj9(#11)",value:"Emaj9(#11)"},{label:"Emaj13(#11)",value:"Emaj13(#11)"},{label:"Eadd9",value:"Eadd9"},{label:"E6add9",value:"E6add9"},{label:"Emaj7(b5)",value:"Emaj7(b5)"},{label:"Emaj7(#5)",value:"Emaj7(#5)"},{label:"Em6",value:"Em6"},{label:"Em9",value:"Em9"},{label:"Em11",value:"Em11"},{label:"Em13",value:"Em13"}
394,{label:"Em(add9)",value:"Em(add9)"},{label:"Em6add9",value:"Em6add9"},{label:"Emmaj7",value:"Emmaj7"},{label:"Emmaj9",value:"Emmaj9"},{label:"Em7b5",value:"Em7b5"},{label:"Em7#5",value:"Em7#5"},{label:"E6",value:"E6"},{label:"E9",value:"E9"},{label:"E11",value:"E11"},{label:"E13",value:"E13"},{label:"E7b5",value:"E7b5"},{label:"E7#5",value:"E7#5"},{label:"E7b9",value:"E7b9"},{label:"E7#9",value:"E7#9"},{label:"E7(b5",value:"E7(b5"},{label:"E7(#5",value:"E7(#5"},{label:"E9b5",value:"E9b5"},{label:"E9#5",value:"E9#5"},{label:"E13#11",value:"E13#11"},{label:"E13b9",value:"E13b9"},{label:"E11b9",value:"E11b9"},{label:"Esus2sus4",value:"Esus2sus4"},{label:"E-5",value:"E-5"}],F:[{label:"F",value:"F"},{label:"Fm",value:"Fm"},{label:"F7",value:"F7"},{label:"F5",value:"F5"},{label:"Fdim",value:"Fdim"},{label:"Fdim7",value:"Fdim7"},{label:"Faug",value:"Faug"},{label:"Fsus2",value:"Fsus2"},{label:"Fsus",value:"Fsus"},{label:"Fmaj7",value:"Fmaj7"},{label:"Fm7",value:"Fm7"},{label:"F7sus4",value:"F7sus4"},{label:"Fmaj9",value:"Fmaj9"},{label:"Fmaj11",value:"Fmaj11"},{label:"Fmaj13",value:"Fmaj13"},{label:"Fmaj9(#11)",value:"Fmaj9(#11)"},{label:"Fmaj13(#11)",value:"Fmaj13(#11)"},{label:"Fadd9",value:"Fadd9"},{label:"F6add9",value:"F6add9"},{label:"Fmaj7(b5)",value:"Fmaj7(b5)"},{label:"Fmaj7(#5)",value:"Fmaj7(#5)"},{label:"Fm6",value:"Fm6"},{label:"Fm9",value:"Fm9"},{label:"Fm11",value:"Fm11"},{label:"Fm13",value:"Fm13"},{label:"Fm(add9)",value:"Fm(add9)"},{label:"Fm6add9",value:"Fm6add9"},{label:"Fmmaj7",value:"Fmmaj7"},{label:"Fmmaj9",value:"Fmmaj9"},{label:"Fm7b5",value:"Fm7b5"},{label:"Fm7#5",value:"Fm7#5"},{label:"F6",value:"F6"},{label:"F9",value:"F9"},{label:"F11",value:"F11"},{label:"F13",value:"F13"},{label:"F7b5",value:"F7b5"},{label:"F7#5",value:"F7#5"},{label:"F7b9",value:"F7b9"},{label:"F7#9",value:"F7#9"},{label:"F7(b5",value:"F7(b5"},{label:"F7(#5",value:"F7(#5"},{label:"F9b5",value:"F9b5"},{label:"F9#5",value:"F9#5"},{label:"F13#11",value:"F13#11"},{label:"F13b9",value:"F13b9"},{label:"F11b9",value:"F11b9"},{label:"Fsus2sus4",value:"Fsus2sus4"},{label:"F-5",value:"F-5"},{label:"F#",value:"F#"},{label:"F#m",value:"F#m"},{label:"F#7",value:"F#7"},{label:"F#5",value:"F#5"},{label:"F#dim",value:"F#dim"},{label:"F#dim7",value:"F#dim7"},{label:"F#aug",value:"F#aug"},{label:"F#sus2",value:"F#sus2"},{label:"F#sus",value:"F#sus"},{label:"F#maj7",value:"F#maj7"},{label:"F#m7",value:"F#m7"},{label:"F#7sus4",value:"F#7sus4"},{label:"F#maj9",value:"F#maj9"},{label:"F#maj11",value:"F#maj11"},{label:"F#maj13",value:"F#maj13"},{label:"F#maj9(#11)",value:"F#maj9(#11)"},{label:"F#maj13(#11)",value:"F#maj13(#11)"},{label:"F#add9",value:"F#add9"},{label:"F#6add9",value:"F#6add9"},{label:"F#maj7(b5)",value:"F#maj7(b5)"},{label:"F#maj7(#5)",value:"F#maj7(#5)"},{label:"F#m6",value:"F#m6"},{label:"F#m9",value:"F#m9"},{label:"F#m11",value:"F#m11"},{label:"F#m13",value:"F#m13"},{label:"F#m(add9)",value:"F#m(add9)"},{label:"F#m6add9",value:"F#m6add9"},{label:"F#mmaj7",value:"F#mmaj7"},{label:"F#mmaj9",value:"F#mmaj9"},{label:"F#m7b5",value:"F#m7b5"},{label:"F#m7#5",value:"F#m7#5"},{label:"F#6",value:"F#6"},{label:"F#9",value:"F#9"},{label:"F#11",value:"F#11"},{label:"F#13",value:"F#13"},{label:"F#7b5",value:"F#7b5"},{label:"F#7#5",value:"F#7#5"},{label:"F#7b9",value:"F#7b9"},{label:"F#7#9",value:"F#7#9"},{label:"F#7(b5",value:"F#7(b5"},{label:"F#7(#5",value:"F#7(#5"},{label:"F#9b5",value:"F#9b5"},{label:"F#9#5",value:"F#9#5"},{label:"F#13#11",value:"F#13#11"},{label:"F#13b9",value:"F#13b9"},{label:"F#11b9",value:"F#11b9"},{label:"F#sus2sus4",value:"F#sus2sus4"},{label:"F#-5",value:"F#-5"}],G:[{label:"G",value:"G"},{label:"Gm",value:"Gm"},{label:"G7",value:"G7"},{label:"G5",value:"G5"},{label:"Gdim",value:"Gdim"},{label:"Gdim7",value:"Gdim7"},{label:"Gaug",value:"Gaug"},{label:"Gsus2",value:"Gsus2"},{label:"Gsus",value:"Gsus"},{label:"Gmaj7",value:"Gmaj7"},{label:"Gm7",value:"Gm7"},{label:"G7sus4",value:"G7sus4"},{label:"Gmaj9",value:"Gmaj9"},{label:"Gmaj11",value:"Gmaj11"},{label:"Gmaj13",value:"Gmaj13"},{label:"Gmaj9(#11)",value:"Gmaj9(#11)"},{label:"Gmaj13(#11)",value:"Gmaj13(#11)"},{label:"Gadd9",value:"Gadd9"},{label:"G6add9",value:"G6add9"},{label:"Gmaj7(b5)",value:"Gmaj7(b5)"},{label:"Gmaj7(#5)",value:"Gmaj7(#5)"},{label:"Gm6",value:"Gm6"},{label:"Gm9",value:"Gm9"},{label:"Gm11",value:"Gm11"},{label:"Gm13",value:"Gm13"},{label:"Gm(add9)",value:"Gm(add9)"},{label:"Gm6add9",value:"Gm6add9"},{label:"Gmmaj7",value:"Gmmaj7"},{label:"Gmmaj9",value:"Gmmaj9"},{label:"Gm7b5",value:"Gm7b5"},{label:"Gm7#5",value:"Gm7#5"},{label:"G6",value:"G6"},{label:"G9",value:"G9"},{label:"G11",value:"G11"},{label:"G13",value:"G13"},{label:"G7b5",value:"G7b5"},{label:"G7#5",value:"G7#5"},{label:"G7b9",value:"G7b9"},{label:"G7#9",value:"G7#9"},{label:"G7(b5",value:"G7(b5"},{label:"G7(#5",value:"G7(#5"},{label:"G9b5",value:"G9b5"},{label:"G9#5",value:"G9#5"},{label:"G13#11",value:"G13#11"},{label:"G13b9",value:"G13b9"},{label:"G11b9",value:"G11b9"},{label:"Gsus2sus4",value:"Gsus2sus4"},{label:"G-5",value:"G-5"},{label:"G#",value:"G#"},{label:"G#m",value:"G#m"},{label:"G#7",value:"G#7"},{label:"G#5",value:"G#5"},{label:"G#dim",value:"G#dim"},{label:"G#dim7",value:"G#dim7"},{label:"G#aug",value:"G#aug"},{label:"G#sus2",value:"G#sus2"},{label:"G#sus",value:"G#sus"},{label:"G#maj7",value:"G#maj7"},{label:"G#m7",value:"G#m7"},{label:"G#7sus4",value:"G#7sus4"},{label:"G#maj9",value:"G#maj9"},{label:"G#maj11",value:"G#maj11"},{label:"G#maj13",value:"G#maj13"},{label:"G#maj9(#11)",value:"G#maj9(#11)"},{label:"G#maj13(#11)",value:"G#maj13(#11)"},{label:"G#add9",value:"G#add9"},{label:"G#6add9",value:"G#6add9"},{label:"G#maj7(b5)",value:"G#maj7(b5)"},{label:"G#maj7(#5)",value:"G#maj7(#5)"},{label:"G#m6",value:"G#m6"},{label:"G#m9",value:"G#m9"},{label:"G#m11",value:"G#m11"},{label:"G#m13",value:"G#m13"},{label:"G#m(add9)",value:"G#m(add9)"},{label:"G#m6add9",value:"G#m6add9"},{label:"G#mmaj7",value:"G#mmaj7"},{label:"G#mmaj9",value:"G#mmaj9"},{label:"G#m7b5",value:"G#m7b5"},{label:"G#m7#5",value:"G#m7#5"},{label:"G#6",value:"G#6"},{label:"G#9",value:"G#9"},{label:"G#11",value:"G#11"},{label:"G#13",value:"G#13"},{label:"G#7b5",value:"G#7b5"},{label:"G#7#5",value:"G#7#5"},{label:"G#7b9",value:"G#7b9"},{label:"G#7#9",value:"G#7#9"},{label:"G#7(b5",value:"G#7(b5"},{label:"G#7(#5",value:"G#7(#5"},{label:"G#9b5",value:"G#9b5"},{label:"G#9#5",value:"G#9#5"},{label:"G#13#11",value:"G#13#11"},{label:"G#13b9",value:"G#13b9"},{label:"G#11b9",value:"G#11b9"},{label:"G#sus2sus4",value:"G#sus2sus4"},{label:"G#-5",value:"G#-5"}]},w={like:{symbol:"\uD83D\uDC4D",label:"Like"}
394,wow:{symbol:"\uD83D\uDE2E",label:"Wow"},loved:{symbol:"â¤ï¸",label:"Loved"},sad:{symbol:"\uD83D\uDE22",label:"Sad"}},x={WAITLIST:"waitlist",BECOME_PARTNER:"become-partner",BATTLE_OF_BANDS:"battle-of-bands"}},6410:function(e,n,r){"use strict";function i(e,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"Lax",a="";if(r){var o=new Date;o.setTime(o.getTime()+864e5*r),a="; expires=".concat(o.toUTCString(),"; SameSite=").concat(i)}document.cookie="".concat(e,"=").concat(n||"").concat(a,"; path=/")}function a(e){var n,r="".concat(e,"=");if("undefined"==typeof document)return null;for(var i=null===(n=document)||void 0===n||null===(n=n.cookie)||void 0===n?void 0:n.split(";"),a=0;a<i.length;a++){for(var o=i[a];" "==o.charAt(0);)o=o.substring(1,o.length);if(0==o.indexOf(r))return o.substring(r.length,o.length)}return null}function o(e){document.cookie="".concat(e,"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;")}r.d(n,{Mz:function(){return o},d8:function(){return i},ej:function(){return a}})},28858:function(e){var n="/artist-library",r="/battle-of-bands",i="/blog",a="/blog/[blogId]",o="/contact",s="/creators",f="/producer-mastery",l="/producer-momentum",u="/manager-mastery",c="/manager-mission",d="/artist-mission",p="/artist-momentum",h="/auth",y="/fan-token/[...slug]",m="/for-fans",g="/home",b="/login",v="/marketplace-fans",w="/marketplace/collection",x="/marketplace",T="/marketplace/[marketplaceId]",C="/new-home",M="/partners",A="/platform",E="/whitepaper",I="/privacy",S="/projects",k="/reset-password",N="/profileSelection",j="/signup-invitation/[inviteCode]",D="/signup",_="/terms",O="/what-are-nfts",P="/who-we-are";e.exports={fanViewMarketplace:v,initialFansRoute:v,initialRoute:g,loginRoute:b,libraryRoute:"/library",artistLibraryRoute:n,mobileMediaQuery:"only screen and (max-width:480px) and (orientation: portrait) and (pointer: coarse),\nonly screen and (max-width:600px) and (orientation: portrait) and (pointer: coarse),\nonly screen and (max-height:800px) and (orientation: landscape) and (pointer: coarse)",noNavbarRoutes:[n,r,i,a,o,s,h,m,y,b,w,x,T,C,M,A,E,I,k,N,j,D,"/",_,O,P,f,l,u,c,d,p],noRequiredInvite:[h],onlyCreatorsRoutes:[g,S,"/nfts/create","/market"],onlyFansRoutes:[v,"/experiences"],projectsRoute:S,resetPasswordRoute:k,selectProfile:N,signupRoute:D,subscribeRoute:"/",unprotectedRoutes:[n,r,i,a,o,s,h,y,m,b,w,x,T,C,M,A,E,I,"/projects/[projectId]",k,j,D,"/",_,O,P,f,l,u,c,d,p],producerMasteryRoute:f,producerMomentumRoute:l,managerMasteryRoute:u,managerMissionRoute:c,artistMissionRoute:d,artistMomentumRoute:p}},14951:function(e,n,r){"use strict";var i,a=r(34155),o=r(46440),s=o(r(64687)),f=o(r(59499)),l=o(r(50029)),u=o(r(80129)),c=o(r(32388)),d=o(r(40821)),p=r(83804),h=r(79278),y=r(67294);function m(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}var g=(i=(0,l.default)(s.default.mark(function e(n,r,i){var a,o,f,l=arguments;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=l.length>3&&void 0!==l[3]?l[3]:"json",o="".concat(n).concat(i?"?".concat(new URLSearchParams(i)):""),e.next=4,(0,p.get)(o,r,a);case 4:return f=e.sent,e.abrupt("return",f);case 6:case"end":return e.stop()}},e)})),function(e,n,r){return i.apply(this,arguments)}),b=function(e,n,r){var i,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"json",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};try{return g(e,n,r,a,o)}catch(e){return{status:"error",message:(null===(i=e.response)||void 0===i||null===(i=i.data)||void 0===i?void 0:i.message)||e.message}}};function v(e,n,r,i){var a,o=(0,d.default)(e?[e,n,r]:null,g,{shouldRetryOnError:!1}),s=o.data,f=o.error,l=o.mutate,u=(0,h.useSwrContext)().updateSwrKey;return(0,y.useEffect)(function(){null!=i&&u(i,o)},[s,o]),(f||s)&&(a=s)&&(a=a.error||"error"===a.status?null:a.data||a),{data:a,isLoading:!f&&!s,mutate:l,isError:f}}function w(){return(w=(0,l.default)(s.default.mark(function e(){var n,r,i,o=arguments;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=o.length>0&&void 0!==o[0]?o[0]:"en",r=o.length>1&&void 0!==o[1]?o[1]:null,i=b("".concat(a.env.BACK_PRIVATE_URL,"/skills/types/").concat(n),r),e.abrupt("return",i);case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function x(){return(x=(0,l.default)(s.default.mark(function e(){var n;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=b("".concat(a.env.BACK_PRIVATE_URL,"/users/list/languages/")),e.abrupt("return",n);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function T(){return(T=(0,l.default)(s.default.mark(function e(){var n;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=b("".concat(a.env.BACK_PRIVATE_URL,"/users/list/designs/")),e.abrupt("return",n);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function C(){return(C=(0,l.default)(s.default.mark(function e(n){var r,i,a=arguments;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:null,i=b("https://www.googleapis.com/drive/v2/files/".concat(n,"?alt=media&source=downloadUrl&key=").concat("AIzaSyC-vYr9Md5eNYlY_52V7GKku1de7HwXUlE"),r,null,"blob"),e.abrupt("return",i);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}function M(){return(M=(0,l.default)(s.default.mark(function e(n){var r;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(n);case 2:return r=e.sent,e.next=5,r.blob();case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}},e)}))).apply(this,arguments)}function A(){return(A=(0,l.default)(s.default.mark(function e(){var n,r,i,o=arguments;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=o.length>0&&void 0!==o[0]?o[0]:"en",r=o.length>1&&void 0!==o[1]?o[1]:null,i=b("".concat(a.env.BACK_PRIVATE_URL,"/styles/").concat(n),r),e.abrupt("return",i);case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function E(){return(E=(0,l.default)(s.default.mark(function e(){var n,r,i,o=arguments;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=o.length>0&&void 0!==o[0]?o[0]:"en",r=o.length>1&&void 0!==o[1]?o[1]:null,i=b("".concat(a.env.BACK_PRIVATE_URL,"/tags/").concat(n),r),e.abrupt("return",i);case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function I(){return(I=(0,l.default)(s.default.mark(function e(n){var r;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=b("".concat(a.env.BACK_PRIVATE_URL,"/tracks"),null==n?void 0:n.token),e.abrupt("return",r);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function S(){return(S=(0,l.default)(s.default.mark(function e(n){var r,i,a,o,f,l,u,c,d,p,h,y,m,g,v,w,x;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.id,i=n.projectId,a=n.collaborationId,o=n.session,f=n.tokenVerification,l=n.releaseId,u=n.previewOnly,c="".concat("https://backend.guildtogether.com","/tracks/").concat(r),h=void 0===(p=(d=f||{}).nftId)?"":p,m=void 0===(y=d.signature)?"":y,v=void 0===(g=d.message)?"":g,w="",h&&m&&v&&(w="?nftId=".concat(h,"&signature=").concat(m,"&message=").concat(encodeURIComponent(v))),i&&(c="".concat("https://backend.guildtogether.com","/tracks/").concat(r,"/projects/").concat(i).c
394oncat(w)),a&&(c="".concat("https://backend.guildtogether.com","/tracks/").concat(r,"/collaborations/").concat(a)),w&&(c="".concat("https://backend.guildtogether.com","/tracks/").concat(r).concat(w)),l&&(c="".concat("https://backend.guildtogether.com","/tracks/preview/").concat(r,"?releaseId=").concat(l,"&previewOnly=").concat(u)),x=b(c,null==o?void 0:o.token),e.abrupt("return",x);case 11:case"end":return e.stop()}},e)}))).apply(this,arguments)}function k(){return(k=(0,l.default)(s.default.mark(function e(n){var r;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=b("".concat("https://backend.guildtogether.com","/tracks/getTrack/").concat(n)),e.abrupt("return",r);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}e.exports={useFetchUserProfile:function(e,n){return v("".concat("https://backend.guildtogether.com","/users/").concat(e),null==n?void 0:n.token)},useFetchUsersProfile:function(){return v("".concat("https://backend.guildtogether.com","/users?skills=true"))},useFetchUserSkills:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en";return v("".concat("https://backend.guildtogether.com","/users/skills/").concat(e,"/").concat(r),null==n?void 0:n.token)},useFetchUserStyles:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en";return v("".concat("https://backend.guildtogether.com","/users/styles/").concat(e,"/").concat(r),null==n?void 0:n.token)},useFetchUserCollaboration:function(e,n){return v("".concat("https://backend.guildtogether.com","/users/").concat(e,"/collaborations/availability"),null==n?void 0:n.token)}
394,useFetchUserOpportunities:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en";return v("".concat("https://backend.guildtogether.com","/users/").concat(e,"/collaborations/opportunities/").concat(r),null==n?void 0:n.token)},useFetchUserFollowings:function(e,n){return v("".concat("https://backend.guildtogether.com","/follow/").concat(e,"/followings"),null==n?void 0:n.token)},useFetchUserFollowers:function(e,n){return v("".concat("https://backend.guildtogether.com","/follow/").concat(e,"/followers"),null==n?void 0:n.token)},useSearchArtists:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.limit||10,r=e.page||1,i=u.default.stringify(function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?m(Object(r),!0).forEach(function(n){(0,f.default)(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}({query:"",page:r,limit:n,offset:(r-1)*n,skills:[],styles:[]},e),{arrayFormat:"brackets"});return v("".concat("https://backend.guildtogether.com","/users/artists/search?").concat(i))},useFetchUserTracks:function e(n,r){return v(!1!==r?"".concat("https://backend.guildtogether.com","/tracks"):null,null==n?void 0:n.token,{},e.name)},useFetcherRootFolders:function(e,n){return v("".concat("https://backend.guildtogether.com","/folders/roots"),e,{},n)},useFetcherFolderContent:function(e,n,r){return v("".concat("https://backend.guildtogether.com","/folders"),e,n,r)},useFetchUserProjects:function(e,n,r){return e?v("".concat("https://backend.guildtogether.com","/projects/users/").concat(e,"?visibility=").concat(n),r):null},userFetchLocation:function(e){return v("".concat("https://backend.guildtogether.com","/users/").concat(e,"/localization"))},useFetchUserTracksProject:function(e,n){var r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];return v(e&&r?"".concat("https://backend.guildtogether.com","/tracks/projects/").concat(e):null,n)},userFetchRoom:function(e,n){return v("".concat("https://backend.guildtogether.com","/chat/room/").concat(e),n)},userFetchFollowingRooms:function(e){return v("".concat("https://backend.guildtogether.com","/follow/").concat(e,"/rooms"))},userFetchCalls:function(e){return v("".concat("https://backend.guildtogether.com","/chat/call"),e)},userFetchRequestsAccesses:function(e){return v("".concat("https://backend.guildtogether.com","/chat/requests"),e)},userFetchTrackProjects:function(e,n){return v("".concat("https://backend.guildtogether.com","/tracks/").concat(e,"/projects"),n)},userFetchCollaborations:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styles:[],seeking:[],skillsOffered:[]};return v("".concat("https://backend.guildtogether.com","/users/collaborations/opportunities/").concat(e,"/"),null,n)},userRequestCollaborations:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styles:[],seeking:[],skillsOffered:[]};return b("".concat("https://backend.guildtogether.com","/users/collaborations/opportunities/").concat(e,"/"),null,n)},useFetchCheckNftCollection:function(e){return v("".concat("https://backend.guildtogether.com","/nfts/checkNftCollection/").concat(e))},useFetchNftsByProject:function(e){return v(e?"".concat("https://backend.guildtogether.com","/projects/getProjectNfts/").concat(e):null)},useFetchNfts:function(e){var n=e.userId,r=void 0===n?"":n,i=e.includeUsdPrices,a=e.limit,o=void 0===a?10:a,s=e.page,f=void 0===s?1:s,l={limit:o,offset:(f-1)*o,includeUsdPrices:void 0!==i&&i,page:f};return r&&(l.userId=r),v("".concat("https://backend.guildtogether.com","/nfts"),null,l)},useFetchGuildedNfts:function(e){var n=e.userId,r=e.limit,i=e.page,a=e.isListed;return v("".concat("https://backend.guildtogether.com","/guilded-nft"),null,{page:void 0===i?1:i,limit:void 0===r?8:r,isListed:void 0===a||a,userId:void 0===n?"":n})},useFetchUserProject:function(e){return v(e?"".concat("https://backend.guildtogether.com","/projects/").concat(e):null)},useFetchPublicProjects:function(e){var n=e.genreIds,r=void 0===n?[]:n,i=e.instrumentIds,a=void 0===i?[]:i,o=new URLSearchParams;return(null==r?void 0:r.length)&&r.forEach(function(e){return o.append("genreIds[]",e)}),(null==a?void 0:a.length)&&a.forEach(function(e){return o.append("instrumentIds[]",e)}),v("".concat("https://backend.guildtogether.com","/projects/public?").concat(o.toString()))},useFetchProjectDetail:function(e){var n=e.projectId,r=e.tokenVerification,i=e.includeReleases,a=e.includeTracks,o=r||{},s=o.nftId,f=o.message,l=o.signature,u=o.chainId;return v(n?"".concat("https://backend.guildtogether.com","/projects/getProjectDetail/").concat(n,"?nftId=").concat(s,"&message=").concat(f,"&signature=").concat(l,"&includeReleases=").concat(i,"&includeTracks=").concat(a,"&chainId=").concat(u):null)},useFetchReleasesProject:function(e,n){var r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];return v(e&&r?"".concat("https://backend.guildtogether.com","/projects/").concat(e,"/releases"):null,n)},useFetchRelease:function(e,n){return v(e?"".concat("https://backend.guildtogether.com","/projects/releases/").concat(e):null,n)},useFetchInvites:function(e){return v("".concat("https://backend.guildtogether.com","/users/list/invites"),null==e?void 0:e.token)},userFetchTokenChat:function(e){return v("".concat("https://backend.guildtogether.com","/chat/token"),e)},useFetchUserNotifies:function(e,n){return v("".concat("https://backend.guildtogether.com","/notifies/users"),null==n?void 0:n.token,e)},useFetchFeed:function(e){var n=e.types;return(0,c.default)(function(e,r){var i=n?u.default.stringify({types:n},{encodeValuesOnly:!0,arrayFormat:"brackets"}):"";return r&&!r.data.nextPage?null:0===e?"".concat("https://backend.guildtogether.com","/feeds/activities?").concat(i):"".concat("https://backend.guildtogether.com","/feeds/activities?afterId=").concat(r.data.nextPage,"&").concat(i)},g)},useFetchActivity:function(e){return v("".concat("https://backend.guildtogether.com","/feeds/activities/").concat(e))},useFetchReactions:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:15,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return(0,c.default)(function(a,o){return!o||o.data.nextPage||i?0===a?"".concat("https://backend.guildtogether.com","/feeds/activities/").concat(e,"/reactions?type=").concat(n,"&limit=").concat(r):"".concat("https://backend.guildtogether.com","/feeds/activities/").concat(e,"/reactions?type=").concat(n,"&limit=").concat(r,"&afterId=").concat(o.data.nextPage):null},g,{shouldRetryOnError:!1})},useCountries:function(){return v("".concat("https://backend.guildtogether.com","/users/list/countries"))},useStates:function(e){return v(""===e?e:"".concat("https://backend.guildtogether.com","/users/countries/").concat(e,"/states"))},useCities:function(e){return v(""==e?e:"".concat("https://backend.guildtogether.com","/users/states/").concat(e,"/cities"))},skillsLevelList:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en";return v("".concat("https://backend.guildtogether.com","/skills/levels/").concat(e))},useFetchSkillsTypeList:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en";return v("".concat("https://backend.guildtogether.com","/skills/types/").concat(e))},stylesList:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en";return v("".concat("https://backend.guildtogether.com","/styles/").concat(e))},SSRSkillsTypeList:function(){return w.apply(this,arguments)},SSRStylesList:function(){return A.apply(this,arguments)},SSRTagsList:function(){return E.apply(this,arguments)},SSRUserTracks:function(e){return I.apply(this,arguments)},SSRTracksById:function(e){return S.apply(this,arguments)},SSRLanguagesList:function(){return x.apply(this,arguments)},SSRDesignsList:function(){return T.apply(this,arguments)},SSRPlayOrDownloadTrack:function(e){return k.apply(this,arguments)},GoogleDriveDownloadFile:function(e){return C.apply(this,arguments)},DropboxDownloadFile:function(e){return M.apply(this,arguments)},userFetchApplicationsByProject:function(e,n){return v(e?"".concat("https://backend.guildtogether.com","/song-contest/get-applications-by-project-id/").concat(e):null,n)}}},79278:function(e,n,r){"use strict";let i;r.r(n),r.d(n,{optimizeImage:function(){return en},useDynamicRender:function(){return et},useErrorMessage:function(){return J},useFileMemoization:function(){return er},useFileMemoizationCache:function(){return ei},useFuture:function(){return K},useSnackBarMessages:function(){return X},useSwrContext:function(){return ea},useTimeOutEvent:function(){return ee},useUniquePromise:function(){return $}});var a,o,s,f,l=r(17674),u=r(50029),c=r(59499),d=r(64687),p=r.n(d),h=r(67294),y=r(9473),m=r(43280),g=r(12529);function b(e,n){return new Promise(function(r,i){let a;return v(e).then(function(e){try{return a=e,r(new Blob([n.slice(0,2),a,n.slice(2)],{type:"image/jpeg"}))}catch(e){return i(e)}},i)})}let v=e=>new Promise((n,r)=>{let i=new FileReader;i.addEventListener("load",({target:{result:e}})=>{let i=new DataView(e),a=0;if(65496!==i.getUint16(a))return r("not a valid JPEG");for(a+=2;;){let o=i.getUint16(a);if(65498===o)break;let s=i.getUint16(a+2);if(65505===o&&1165519206===i.getUint32(a+4)){let o;let f=a+10;switch(i.getUint16(f)){case 18761:o=!0;break;case 19789:o=!1;break;
394default:return r("TIFF header contains invalid endian")}if(42!==i.getUint16(f+2,o))return r("TIFF header contains invalid version");let l=i.getUint32(f+4,o),u=f+l+2+12*i.getUint16(f+l,o);for(let e=f+l+2;e<u;e+=12)if(274==i.getUint16(e,o)){if(3!==i.getUint16(e+2,o))return r("Orientation data type is invalid");if(1!==i.getUint32(e+4,o))return r("Orientation data count is invalid");i.setUint16(e+8,1,o);break}return n(e.slice(a,a+2+s))}a+=2+s}return n(new Blob)}),i.readAsArrayBuffer(e)});var w={};s={},({get exports(){return w},set exports(t){w=t}}).exports=s,s.parse=function(e,n){for(var r=s.bin.readUshort,i=s.bin.readUint,a=0,o={},f=new Uint8Array(e),l=f.length-4;101010256!=i(f,l);)l--;var u=r(f,a=l+4+4);r(f,a+=2);var c=i(f,a+=2),d=i(f,a+=4);a+=4,a=d;for(var p=0;p<u;p++){i(f,a),i(f,a+=16),c=i(f,a+=4);var h=i(f,a+=4),y=r(f,a+=4),m=r(f,a+2),g=r(f,a+4),b=i(f,a+=14);a+=4+(y+m+g),s._readLocal(f,b,o,c,h,n)}return o},s._readLocal=function(e,n,r,i,a,o){var f=s.bin.readUshort,l=s.bin.readUint;l(e,n),f(e,n+=4),f(e,n+=2);var u=f(e,n+=2);l(e,n+=2),l(e,n+=4);var c=f(e,n+=12),d=f(e,n+=2);n+=2;var p=s.bin.readUTF8(e,n,c);if(n+=c+d,o)r[p]={size:a,csize:i};else{var h=new Uint8Array(e.buffer,n);if(0==u)r[p]=new Uint8Array(h.buffer.slice(n,n+i));else{if(8!=u)throw"unknown compression method: "+u;var y=new Uint8Array(a);s.inflateRaw(h,y),r[p]=y}}},s.inflateRaw=function(e,n){return s.F.inflate(e,n)},s.inflate=function(e,n){return e[0],e[1],s.inflateRaw(new Uint8Array(e.buffer,e.byteOffset+2,e.length-6),n)}
vendor: 13,422 bytes, line 394
394,s.deflate=function(e,n){null==n&&(n={level:6});var r=0,i=new Uint8Array(50+Math.floor(1.1*e.length));i[r]=120,i[r+1]=156,r+=2,r=s.F.deflateRaw(e,i,r,n.level);var a=s.adler(e,0,e.length);return i[r+0]=a>>>24&255,i[r+1]=a>>>16&255,i[r+2]=a>>>8&255,i[r+3]=a>>>0&255,new Uint8Array(i.buffer,0,r+4)},s.deflateRaw=function(e,n){null==n&&(n={level:6});var r=new Uint8Array(50+Math.floor(1.1*e.length)),i=s.F.deflateRaw(e,r,i,n.level);return new Uint8Array(r.buffer,0,i)},s.encode=function(e,n){null==n&&(n=!1);var r=0,i=s.bin.writeUint,a=s.bin.writeUshort,o={};for(var f in e){var l=!s._noNeed(f)&&!n,u=e[f],c=s.crc.crc(u,0,u.length);o[f]={cpr:l,usize:u.length,crc:c,file:l?s.deflateRaw(u):u}}for(var f in o)r+=o[f].file.length+30+46+2*s.bin.sizeUTF8(f);var d=new Uint8Array(r+=22),p=0,h=[];for(var f in o){var y=o[f];h.push(p),p=s._writeHeader(d,p,f,y,0)}var m=0,g=p;for(var f in o)y=o[f],h.push(p),p=s._writeHeader(d,p,f,y,1,h[m++]);var b=p-g;return i(d,p,101010256),a(d,p+=8,m),a(d,p+=2,m),i(d,p+=2,b),i(d,p+=4,g),p+=6,d.buffer},s._noNeed=function(e){var n=e.split(".").pop().toLowerCase();return -1!="png,jpg,jpeg,zip".indexOf(n)},s._writeHeader=function(e,n,r,i,a,o){var f=s.bin.writeUint,l=s.bin.writeUshort,u=i.file;return f(e,n,0==a?67324752:33639248),n+=4,1==a&&(n+=2),l(e,n,20),l(e,n+=2,0),l(e,n+=2,i.cpr?8:0),f(e,n+=2,0),f(e,n+=4,i.crc),f(e,n+=4,u.length),f(e,n+=4,i.usize),l(e,n+=4,s.bin.sizeUTF8(r)),l(e,n+=2,0),n+=2,1==a&&(f(e,n+=10,o),n+=4),n+=s.bin.writeUTF8(e,n,r),0==a&&(e.set(u,n),n+=u.length),n},s.crc={table:function(){for(var e=new Uint32Array(256),n=0;n<256;n++){for(var r=n,i=0;i<8;i++)1&r?r=3988292384^r>>>1:r>>>=1;e[n]=r}return e}(),update:function(e,n,r,i){for(var a=0;a<i;a++)e=s.crc.table[255&(e^n[r+a])]^e>>>8;return e},crc:function(e,n,r){return 4294967295^s.crc.update(4294967295,e,n,r)}},s.adler=function(e,n,r){for(var i=1,a=0,o=n,s=n+r;o<s;){for(var f=Math.min(o+5552,s);o<f;)a+=i+=e[o++];i%=65521,a%=65521}return a<<16|i},s.bin={readUshort:function(e,n){return e[n]|e[n+1]<<8},writeUshort:function(e,n,r){e[n]=255&r,e[n+1]=r>>8&255},readUint:function(e,n){return 16777216*e[n+3]+(e[n+2]<<16|e[n+1]<<8|e[n])},writeUint:function(e,n,r){e[n]=255&r,e[n+1]=r>>8&255,e[n+2]=r>>16&255,e[n+3]=r>>24&255},readASCII:function(e,n,r){for(var i="",a=0;a<r;a++)i+=String.fromCharCode(e[n+a]);return i},writeASCII:function(e,n,r){for(var i=0;i<r.length;i++)e[n+i]=r.charCodeAt(i)},pad:function(e){return e.length<2?"0"+e:e},readUTF8:function(e,n,r){for(var i,a="",o=0;o<r;o++)a+="%"+s.bin.pad(e[n+o].toString(16));try{i=decodeURIComponent(a)}catch(i){return s.bin.readASCII(e,n,r)}return i},writeUTF8:function(e,n,r){for(var i=r.length,a=0,o=0;o<i;o++){var s=r.charCodeAt(o);if(0==(4294967168&s))e[n+a]=s,a++;else if(0==(4294965248&s))e[n+a]=192|s>>6,e[n+a+1]=128|s>>0&63,a+=2;else if(0==(4294901760&s))e[n+a]=224|s>>12,e[n+a+1]=128|s>>6&63,e[n+a+2]=128|s>>0&63,a+=3;else{if(0!=(4292870144&s))throw"e";e[n+a]=240|s>>18,e[n+a+1]=128|s>>12&63,e[n+a+2]=128|s>>6&63,e[n+a+3]=128|s>>0&63,a+=4}}return a},sizeUTF8:function(e){for(var n=e.length,r=0,i=0;i<n;i++){var a=e.charCodeAt(i);if(0==(4294967168&a))r++;else if(0==(4294965248&a))r+=2;else if(0==(4294901760&a))r+=3;else{if(0!=(4292870144&a))throw"e";r+=4}}return r}},s.F={},s.F.deflateRaw=function(e,n,r,i){var a=[[0,0,0,0,0],[4,4,8,4,0],[4,5,16,8,0],[4,6,16,16,0],[4,10,16,32,0],[8,16,32,32,0],[8,16,128,128,0],[8,32,128,256,0],[32,128,258,1024,1],[32,258,258,4096,1]][i],o=s.F.U,f=s.F._goodIndex;s.F._hash;var l=s.F._putsE,u=0,c=r<<3,d=0,p=e.length;if(0==i){for(;u<p;)l(n,c,u+(A=Math.min(65535,p-u))==p?1:0),c=s.F._copyExact(e,u,A,n,c+8),u+=A;return c>>>3}var h=o.lits,y=o.strt,m=o.prev,g=0,b=0,v=0,w=0,x=0,T=0;for(p>2&&(y[T=s.F._hash(e,0)]=0),u=0;u<p;u++){if(x=T,u+1<p-2){T=s.F._hash(e,u+1);var C=u+1&32767;m[C]=y[T],y[T]=C}if(d<=u){(g>14e3||b>26697)&&p-u>100&&(d<u&&(h[g]=u-d,g+=2,d=u),c=s.F._writeBlock(u==p-1||d==p?1:0,h,g,w,e,v,u-v,n,c),g=b=w=0,v=u);var M=0;u<p-2&&(M=s.F._bestMatch(e,u,m,x,Math.min(a[2],p-u),a[3]));var A=M>>>16,E=65535&M;if(0!=M){E=65535&M;var I=f(A=M>>>16,o.of0);o.lhst[257+I]++;var S=f(E,o.df0);o.dhst[S]++,w+=o.exb[I]+o.dxb[S],h[g]=A<<23|u-d,h[g+1]=E<<16|I<<8|S,g+=2,d=u+A}else o.lhst[e[u]]++;b++}}for(v==u&&0!=e.length||(d<u&&(h[g]=u-d,g+=2,d=u),c=s.F._writeBlock(1,h,g,w,e,v,u-v,n,c),g=0,b=0,g=b=w=0,v=u);0!=(7&c);)c++;return c>>>3},s.F._bestMatch=function(e,n,r,i,a,o){var f=32767&n,l=r[f],u=f-l+32768&32767;if(l==f||i!=s.F._hash(e,n-u))return 0;for(var c=0,d=0,p=Math.min(32767,n);u<=p&&0!=--o&&l!=f;){if(0==c||e[n+c]==e[n+c-u]){var h=s.F._howLong(e,n,u);if(h>c){if(d=u,(c=h)>=a)break;u+2<h&&(h=u+2);for(var y=0,m=0;m<h-2;m++){var g=n-u+m+32768&32767,b=g-r[g]+32768&32767;b>y&&(y=b,l=g)}}}u+=(f=l)-(l=r[f])+32768&32767}return c<<16|d},s.F._howLong=function(e,n,r){if(e[n]!=e[n-r]||e[n+1]!=e[n+1-r]||e[n+2]!=e[n+2-r])return 0;var i=n,a=Math.min(e.length,n+258);for(n+=3;n<a&&e[n]==e[n-r];)n++;return n-i},s.F._hash=function(e,n){return(e[n]<<8|e[n+1])+(e[n+2]<<4)&65535},s.saved=0,s.F._writeBlock=function(e,n,r,i,a,o,f,l,u){var c,d,p,h,y,m,g,b,v,w,x,T=s.F.U,C=s.F._putsF,M=s.F._putsE;T.lhst[256]++,h=(p=s.F.getTrees())[0],y=p[1],m=p[2],g=p[3],b=p[4],v=p[5],w=p[6],x=p[7];var A=32+(0==(u+3&7)?0:8-(u+3&7))+(f<<3),E=i+s.F.contSize(T.fltree,T.lhst)+s.F.contSize(T.fdtree,T.dhst),I=i+s.F.contSize(T.ltree,T.lhst)+s.F.contSize(T.dtree,T.dhst);I+=14+3*v+s.F.contSize(T.itree,T.ihst)+(2*T.ihst[16]+3*T.ihst[17]+7*T.ihst[18]);for(var S=0;S<286;S++)T.lhst[S]=0;for(S=0;S<30;S++)T.dhst[S]=0;for(S=0;S<19;S++)T.ihst[S]=0;var k=A<E&&A<I?0:E<I?1:2;if(C(l,u,e),C(l,u+1,k),u+=3,0==k){for(;0!=(7&u);)u++;u=s.F._copyExact(a,o,f,l,u)}else{if(1==k&&(c=T.fltree,d=T.fdtree),2==k){s.F.makeCodes(T.ltree,h),s.F.revCodes(T.ltree,h),s.F.makeCodes(T.dtree,y),s.F.revCodes(T.dtree,y),s.F.makeCodes(T.itree,m),s.F.revCodes(T.itree,m),c=T.ltree,d=T.dtree,M(l,u,g-257),M(l,u+=5,b-1),M(l,u+=5,v-4),u+=4;for(var N=0;N<v;N++)M(l,u+3*N,T.itree[1+(T.ordr[N]<<1)]);u+=3*v,u=s.F._codeTiny(w,T.itree,l,u),u=s.F._codeTiny(x,T.itree,l,u)}for(var j=o,D=0;D<r;D+=2){for(var _=n[D],O=_>>>23,P=j+(8388607&_);j<P;)u=s.F._writeLit(a[j++],c,l,u);if(0!=O){var L=n[D+1],R=L>>16,z=L>>8&255,B=255&L;M(l,u=s.F._writeLit(257+z,c,l,u),O-T.of0[z]),u+=T.exb[z],C(l,u=s.F._writeLit(B,d,l,u),R-T.df0[B]),u+=T.dxb[B],j+=O}}u=s.F._writeLit(256,c,l,u)}return u},s.F._copyExact=function(e,n,r,i,a){var o=a>>>3;return i[o]=r,i[o+1]=r>>>8,i[o+2]=255-i[o],i[o+3]=255-i[o+1],o+=4,i.set(new Uint8Array(e.buffer,n,r),o),a+(r+4<<3)},s.F.getTrees=function(){for(var e=s.F.U,n=s.F._hufTree(e.lhst,e.ltree,15),r=s.F._hufTree(e.dhst,e.dtree,15),i=[],a=s.F._lenCodes(e.ltree,i),o=[],f=s.F._lenCodes(e.dtree,o),l=0;l<i.length;l+=2)e.ihst[i[l]]++;for(l=0;l<o.length;l+=2)e.ihst[o[l]]++;for(var u=s.F._hufTree(e.ihst,e.itree,7),c=19;c>4&&0==e.itree[1+(e.ordr[c-1]<<1)];)c--;return[n,r,u,a,f,c,i,o]},s.F.getSecond=function(e){for(var n=[],r=0;r<e.length;r+=2)n.push(e[r+1]);return n},s.F.nonZero=function(e){for(var n="",r=0;r<e.length;r+=2)0!=e[r+1]&&(n+=(r>>1)+",");return n},s.F.contSize=function(e,n){for(var r=0,i=0;i<n.length;i++)r+=n[i]*e[1+(i<<1)];return r},s.F._codeTiny=function(e,n,r,i){for(var a=0;a<e.length;a+=2){var o=e[a],f=e[a+1];i=s.F._writeLit(o,n,r,i);var l=16==o?2:17==o?3:7;o>15&&(s.F._putsE(r,i,f,l),i+=l)}return i},s.F._lenCodes=function(e,n){for(var r=e.length;2!=r&&0==e[r-1];)r-=2;for(var i=0;i<r;i+=2){var a=e[i+1],o=i+3<r?e[i+3]:-1,s=i+5<r?e[i+5]:-1,f=0==i?-1:e[i-1];if(0==a&&o==a&&s==a){for(var l=i+5;l+2<r&&e[l+2]==a;)l+=2;(u=Math.min(l+1-i>>>1,138))<11?n.push(17,u-3):n.push(18,u-11),i+=2*u-2}else if(a==f&&o==a&&s==a){for(l=i+5;l+2<r&&e[l+2]==a;)l+=2;var u=Math.min(l+1-i>>>1,6);n.push(16,u-3),i+=2*u-2}else n.push(a,0)}return r>>>1},s.F._hufTree=function(e,n,r){var i=[],a=e.length,o=n.length,f=0;for(f=0;f<o;f+=2)n[f]=0,n[f+1]=0;for(f=0;f<a;f++)0!=e[f]&&i.push({lit:f,f:e[f]});var l=i.length,u=i.slice(0);if(0==l)return 0;if(1==l){var c=i[0].lit;return u=0==c?1:0,n[1+(c<<1)]=1,n[1+(u<<1)]=1,1}i.sort(function(e,n){return e.f-n.f});var d=i[0],p=i[1],h=0,y=1,m=2;for(i[0]={lit:-1,f:d.f+p.f,l:d,r:p,d:0};y!=l-1;)d=h!=y&&(m==l||i[h].f<i[m].f)?i[h++]:i[m++],p=h!=y&&(m==l||i[h].f<i[m].f)?i[h++]:i[m++],i[y++]={lit:-1,f:d.f+p.f,l:d,r:p};var g=s.F.setDepth(i[y-1],0);for(g>r&&(s.F.restrictDepth(u,r,g),g=r),f=0;f<l;f++)n[1+(u[f].lit<<1)]=u[f].d;return g},s.F.setDepth=function(e,n){return -1!=e.lit?(e.d=n,n):Math.max(s.F.setDepth(e.l,n+1),s.F.setDepth(e.r,n+1))},s.F.restrictDepth=function(e,n,r){var i=0,a=1<<r-n,o=0;for(e.sort(function(e,n){return n.d==e.d?e.f-n.f:n.d-e.d}),i=0;i<e.length&&e[i].d>n;i++){var s=e[i].d;e[i].d=n,o+=a-(1<<r-s)}for(o>>>=r-n;o>0;)(s=e[i].d)<n?(e[i].d++,o-=1<<n-s-1):i++;for(;i>=0;i--)e[i].d==n&&o<0&&(e[i].d--,o++);0!=o&&console.log("debt left")},s.F._goodIndex=function(e,n){var r=0;return n[16]<=e&&(r|=16),n[8|r]<=e&&(r|=8),n[4|r]<=e&&(r|=4),n[2|r]<=e&&(r|=2),n[1|r]<=e&&(r|=1),r},s.F._writeLit=function(e,n,r,i){return s.F._putsF(r,i,n[e<<1]),i+n[1+(e<<1)]},s.F.inflate=function(e,n){var r=Uint8Array;if(3==e[0]&&0==e[1])return n||new r(0);var i=s.F,a=i._bitsF,o=i._bitsE,f=i._decodeTiny,l=i.makeCodes,u=i.codes2map,c=i._get17,d=i.U,p=null==n;p&&(n=new r(e.length>>>2<<3));for(var h,y,m=0,g=0,b=0,v=0,w=0,x=0,T=0,C=0,M=0;0==m;)if(m=a(e,M,1),g=a(e,M+1,2),M+=3,0!=g){if(p&&(n=s.F._check(n,C+131072)),1==g&&(h=d.flmap,y=d.fdmap,x=511,T=31),2==g){b=o(e,M,5)+257,v=o(e,M+5,5)+1,w=o(e,M+10,4)+4,M+=14;for(var A=0;A<38;A+=2)d.itree[A]=0,d.itree[A+1]=0;var E=1;for(A=0;A<w;A++){var I=o(e,M+3*A,3);d.itree[1+(d.ordr[A]<<1)]=I,I>E&&(E=I)}M+=3*w,l(d.itree,E),u(d.itree,E,d.imap),h=d.lmap,y=d.dmap,M=f(d.imap,(1<<E)-1,b+v,e,M,d.ttree);var S=i._copyOut(d.ttree,0,b,d.ltree);x=(1<<S)-1;var k=i._copyOut(d.ttree,b,v,d.dtree);T=(1<<k)-1,l(d.ltree,S),u(d.ltree,S,h),l(d.dtree,k),u(d.dtree,k,y)}for(;;){var N=h[c(e,M)&x];M+=15&N;var j=N>>>4;if(j>>>8==0)n[C++]=j;else{if(256==j)break;var D=C+j-254;if(j>264){var _=d.ldef[j-257];D=C+(_>>>3)+o(e,M,7&_),M+=7&_}var O=y[c(e,M)&T];M+=15&O;var P=O>>>4,L=d.ddef[P],R=(L>>>4)+a(e,M,15&L);for(M+=15&L,p&&(n=s.F._check(n,C+131072));C<D;)n[C]=n[C++-R],n[C]=n[C++-R],n[C]=n[C++-R],n[C]=n[C++-R];C=D}}}else{0!=(7&M)&&(M+=8-(7&M));var z=4+(M>>>3),B=e[z-4]|e[z-3]<<8;p&&(n=s.F._check(n,C+B)),n.set(new r(e.buffer,e.byteOffset+z,B),C),M=z+B<<3,C+=B}return n.length==C?n:n.slice(0,C)},s.F._check=function(e,n){var r=e.length;if(n<=r)return e;var i=new Uint8Array(Math.max(r<<1,n));return i.set(e,0),i},s.F._decodeTiny=function(e,n,r,i,a,o){for(var f=s.F._bitsE,l=s.F._get17,u=0;u<r;){var c=e[l(i,a)&n];a+=15&c;var d=c>>>4;if(d<=15)o[u]=d,u++;else{var p=0,h=0;16==d?(h=3+f(i,a,2),a+=2,p=o[u-1]):17==d?(h=3+f(i,a,3),a+=3):18==d&&(h=11+f(i,a,7),a+=7);for(var y=u+h;u<y;)o[u]=p,u++}}return a},s.F._copyOut=function(e,n,r,i){for(var a=0,o=0,s=i.length>>>1;o<r;){var f=e[o+n];i[o<<1]=0,i[1+(o<<1)]=f,f>a&&(a=f),o++}for(;o<s;)i[o<<1]=0,i[1+(o<<1)]=0,o++;return a},s.F.makeCodes=function(e,n){for(var r,i,a,o,f=s.F.U,l=e.length,u=f.bl_count,c=0;c<=n;c++)u[c]=0;for(c=1;c<l;c+=2)u[e[c]]++;var d=f.next_code;for(r=0,u[0]=0,i=1;i<=n;i++)r=r+u[i-1]<<1,d[i]=r;for(a=0;a<l;a+=2)0!=(o=e[a+1])&&(e[a]=d[o],d[o]++)},s.F.codes2map=function(e,n,r){for(var i=e.length,a=s.F.U.rev15,o=0;o<i;o+=2)if(0!=e[o+1])for(var f=o>>1,l=e[o+1],u=f<<4|l,c=n-l,d=e[o]<<c,p=d+(1<<c);d!=p;)r[a[d]>>>15-n]=u,d++},s.F.revCodes=function(e,n){for(var r=s.F.U.rev15,i=15-n,a=0;a<e.length;a+=2){var o=e[a]<<n-e[a+1];e[a]=r[o]>>>i}},s.F._putsE=function(e,n,r){r<<=7&n;var i=n>>>3;e[i]|=r,e[i+1]|=r>>>8},s.F._putsF=function(e,n,r){r<<=7&n;var i=n>>>3;e[i]|=r,e[i+1]|=r>>>8,e[i+2]|=r>>>16},s.F._bitsE=function(e,n,r){return(e[n>>>3]|e[1+(n>>>3)]<<8)>>>(7&n)&(1<<r)-1},s.F._bitsF=function(e,n,r){return(e[n>>>3]|e[1+(n>>>3)]<<8|e[2+(n>>>3)]<<16)>>>(7&n)&(1<<r)-1},s.F._get17=function(e,n){return(e[n>>>3]|e[1+(n>>>3)]<<8|e[2+(n>>>3)]<<16)>>>(7&n)},s.F._get25=function(e,n){return(e[n>>>3]|e[1+(n>>>3)]<<8|e[2+(n>>>3)]<<16|e[3+(n>>>3)]<<24)>>>(7&n)},s.F.U=(a=Uint16Array,o=Uint32Array,{next_code:new a(16),bl_count:new a(16),ordr:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],of0:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],exb:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],ldef:new a(32),df0:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],dxb:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],ddef:new o(32),flmap:new a(512),fltree:[],fdmap:new a(32),fdtree:[],lmap:new a(32768),ltree:[],ttree:[],dmap:new a(32768),dtree:[],imap:new a(512),itree:[],rev15:new a(32768),lhst:new o(286),dhst:new o(30),ihst:new o(19),lits:new o(15e3),strt:new a(65536),prev:new a(32768)}),function(){for(var e=s.F.U,n=0;n<32768;n++){var r=n;r=(4278255360&(r=(4042322160&(r=(3435973836&(r=(2863311530&r)>>>1|(1431655765&r)<<1))>>>2|(858993459&r)<<2))>>>4|(252645135&r)<<4))>>>8|(16711935&r)<<8,e.rev15[n]=(r>>>16|r<<16)>>>17}function i(e,n,r){for(;0!=n--;)e.push(0,r)}for(n=0;n<32;n++)e.ldef[n]=e.of0[n]<<3|e.exb[n],e.ddef[n]=e.df0[n]<<4|e.dxb[n];i(e.fltree,144,8),i(e.fltree,112,9),i(e.fltree,24,7),i(e.fltree,8,8),s.F.makeCodes(e.fltree,9),s.F.codes2map(e.fltree,9,e.flmap),s.F.revCodes(e.fltree,9),i(e.fdtree,32,5),s.F.makeCodes(e.fdtree,5),s.F.codes2map(e.fdtree,5,e.fdmap),s.F.revCodes(e.fdtree,5),i(e.itree,19,0),i(e.ltree,286,0),i(e.dtree,30,0),i(e.ttree,320,0)}();var x=(f={__proto__:null,default:w}
394,[w].forEach(function(e){e&&"string"!=typeof e&&!Array.isArray(e)&&Object.keys(e).forEach(function(n){if("default"!==n&&!(n in f)){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(f,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})}),Object.freeze(f));let T=function(){var e={nextZero(e,n){for(;0!=e[n];)n++;return n},readUshort:(e,n)=>e[n]<<8|e[n+1],writeUshort(e,n,r){e[n]=r>>8&255,e[n+1]=255&r},readUint:(e,n)=>16777216*e[n]+(e[n+1]<<16|e[n+2]<<8|e[n+3]),writeUint(e,n,r){e[n]=r>>24&255,e[n+1]=r>>16&255,e[n+2]=r>>8&255,e[n+3]=255&r},readASCII(e,n,r){let i="";for(let a=0;a<r;a++)i+=String.fromCharCode(e[n+a]);return i},writeASCII(e,n,r){for(let i=0;i<r.length;i++)e[n+i]=r.charCodeAt(i)},readBytes(e,n,r){let i=[];for(let a=0;a<r;a++)i.push(e[n+a]);return i},pad:e=>e.length<2?`0${e}`:e,readUTF8(n,r,i){let a,o="";for(let a=0;a<i;a++)o+=`%${e.pad(n[r+a].toString(16))}`;try{a=decodeURIComponent(o)}catch(a){return e.readASCII(n,r,i)}return a}};function n(n,r,i,a){let s=r*i,f=Math.ceil(r*o(a)/8),l=new Uint8Array(4*s),u=new Uint32Array(l.buffer),{ctype:c}=a,{depth:d}=a,p=e.readUshort;if(6==c){let e=s<<2;if(8==d)for(var h=0;h<e;h+=4)l[h]=n[h],l[h+1]=n[h+1],l[h+2]=n[h+2],l[h+3]=n[h+3];if(16==d)for(h=0;h<e;h++)l[h]=n[h<<1]}else if(2==c){let e=a.tabs.tRNS;if(null==e){if(8==d)for(h=0;h<s;h++){var y=3*h;u[h]=-16777216|n[y+2]<<16|n[y+1]<<8|n[y]}if(16==d)for(h=0;h<s;h++)y=6*h,u[h]=-16777216|n[y+4]<<16|n[y+2]<<8|n[y]}else{var m=e[0];let r=e[1],i=e[2];if(8==d)for(h=0;h<s;h++){var g=h<<2;y=3*h,u[h]=-16777216|n[y+2]<<16|n[y+1]<<8|n[y],n[y]==m&&n[y+1]==r&&n[y+2]==i&&(l[g+3]=0)}if(16==d)for(h=0;h<s;h++)g=h<<2,y=6*h,u[h]=-16777216|n[y+4]<<16|n[y+2]<<8|n[y],p(n,y)==m&&p(n,y+2)==r&&p(n,y+4)==i&&(l[g+3]=0)}}else if(3==c){let e=a.tabs.PLTE,o=a.tabs.tRNS,u=o?o.length:0;if(1==d)for(var b,v=0;v<i;v++){var w=v*f,x=v*r;for(h=0;h<r;h++){g=x+h<<2;var T=3*(b=n[w+(h>>3)]>>7-((7&h)<<0)&1);l[g]=e[T],l[g+1]=e[T+1],l[g+2]=e[T+2],l[g+3]=b<u?o[b]:255}}if(2==d)for(v=0;v<i;v++)for(w=v*f,x=v*r,h=0;h<r;h++)g=x+h<<2,T=3*(b=n[w+(h>>2)]>>6-((3&h)<<1)&3),l[g]=e[T],l[g+1]=e[T+1],l[g+2]=e[T+2],l[g+3]=b<u?o[b]:255;if(4==d)for(v=0;v<i;v++)for(w=v*f,x=v*r,h=0;h<r;h++)g=x+h<<2,T=3*(b=n[w+(h>>1)]>>4-((1&h)<<2)&15),l[g]=e[T],l[g+1]=e[T+1],l[g+2]=e[T+2],l[g+3]=b<u?o[b]:255;if(8==d)for(h=0;h<s;h++)g=h<<2,T=3*(b=n[h]),l[g]=e[T],l[g+1]=e[T+1],l[g+2]=e[T+2],l[g+3]=b<u?o[b]:255}else if(4==c){if(8==d)for(h=0;h<s;h++){g=h<<2;var C,M=n[C=h<<1];l[g]=M,l[g+1]=M,l[g+2]=M,l[g+3]=n[C+1]}if(16==d)for(h=0;h<s;h++)g=h<<2,M=n[C=h<<2],l[g]=M,l[g+1]=M,l[g+2]=M,l[g+3]=n[C+2]}else if(0==c)for(m=a.tabs.tRNS?a.tabs.tRNS:-1,v=0;v<i;v++){let e=v*f,i=v*r;if(1==d)for(var A=0;A<r;A++){var E=(M=255*(n[e+(A>>>3)]>>>7-(7&A)&1))==255*m?0:255;u[i+A]=E<<24|M<<16|M<<8|M}else if(2==d)for(A=0;A<r;A++)E=(M=85*(n[e+(A>>>2)]>>>6-((3&A)<<1)&3))==85*m?0:255,u[i+A]=E<<24|M<<16|M<<8|M;else if(4==d)for(A=0;A<r;A++)E=(M=17*(n[e+(A>>>1)]>>>4-((1&A)<<2)&15))==17*m?0:255,u[i+A]=E<<24|M<<16|M<<8|M;else if(8==d)for(A=0;A<r;A++)E=(M=n[e+A])==m?0:255,u[i+A]=E<<24|M<<16|M<<8|M;else if(16==d)for(A=0;A<r;A++)M=n[e+(A<<1)],E=p(n,e+(A<<1))==m?0:255,u[i+A]=E<<24|M<<16|M<<8|M}return l}function r(e,n,r,f){let l=new Uint8Array((Math.ceil(r*o(e)/8)+1+e.interlace)*f);return n=e.tabs.CgBI?a(n,l):i(n,l),0==e.interlace?n=s(n,e,0,r,f):1==e.interlace&&(n=function(e,n){let r=n.width,i=n.height,a=o(n),f=a>>3,l=Math.ceil(r*a/8),u=new Uint8Array(i*l),c=0,d=[0,0,4,0,2,0,1],p=[0,4,0,2,0,1,0],h=[8,8,8,4,4,2,2],y=[8,8,4,4,2,2,1],m=0;for(;m<7;){let o=h[m],b=y[m],v=0,w=0,x=d[m];for(;x<i;)x+=o,w++;let T=p[m];for(;T<r;)T+=b,v++;let C=Math.ceil(v*a/8);s(e,n,c,v,w);let M=0,A=d[m];for(;A<i;){let n=p[m],i=c+M*C<<3;for(;n<r;){var g;if(1==a&&(g=(g=e[i>>3])>>7-(7&i)&1,u[A*l+(n>>3)]|=g<<7-((7&n)<<0)),2==a&&(g=(g=e[i>>3])>>6-(7&i)&3,u[A*l+(n>>2)]|=g<<6-((3&n)<<1)),4==a&&(g=(g=e[i>>3])>>4-(7&i)&15,u[A*l+(n>>1)]|=g<<4-((1&n)<<2)),a>=8){let r=A*l+n*f;for(let n=0;n<f;n++)u[r+n]=e[(i>>3)+n]}i+=a,n+=b}M++,A+=o}v*w!=0&&(c+=w*(1+C)),m+=1}return u}(n,e)),n}function i(e,n){return a(new Uint8Array(e.buffer,2,e.length-6),n)}var a=function(){let e={H:{}};return e.H.N=function(n,r){let i=Uint8Array,a,o,s=0,f=0,l=0,u=0,c=0,d=0,p=0,h=0,y=0;if(3==n[0]&&0==n[1])return r||new i(0);let m=e.H,g=m.b,b=m.e,v=m.R,w=m.n,x=m.A,T=m.Z,C=m.m,M=null==r;for(M&&(r=new i(n.length>>>2<<5));0==s;)if(s=g(n,y,1),f=g(n,y+1,2),y+=3,0!=f){if(M&&(r=e.H.W(r,h+131072)),1==f&&(a=C.J,o=C.h,d=511,p=31),2==f){l=b(n,y,5)+257,u=b(n,y+5,5)+1,c=b(n,y+10,4)+4,y+=14;let e=1;for(var A=0;A<38;A+=2)C.Q[A]=0,C.Q[A+1]=0;for(A=0;A<c;
394A++){let r=b(n,y+3*A,3);C.Q[1+(C.X[A]<<1)]=r,r>e&&(e=r)}y+=3*c,w(C.Q,e),x(C.Q,e,C.u),a=C.w,o=C.d,y=v(C.u,(1<<e)-1,l+u,n,y,C.v);let r=m.V(C.v,0,l,C.C);d=(1<<r)-1;let i=m.V(C.v,l,u,C.D);p=(1<<i)-1,w(C.C,r),x(C.C,r,a),w(C.D,i),x(C.D,i,o)}for(;;){let e=a[T(n,y)&d];y+=15&e;let i=e>>>4;if(i>>>8==0)r[h++]=i;else{if(256==i)break;{let e=h+i-254;if(i>264){let r=C.q[i-257];e=h+(r>>>3)+b(n,y,7&r),y+=7&r}let a=o[T(n,y)&p];y+=15&a;let s=a>>>4,f=C.c[s],l=(f>>>4)+g(n,y,15&f);for(y+=15&f;h<e;)r[h]=r[h++-l],r[h]=r[h++-l],r[h]=r[h++-l],r[h]=r[h++-l];h=e}}}}else{0!=(7&y)&&(y+=8-(7&y));let a=4+(y>>>3),o=n[a-4]|n[a-3]<<8;M&&(r=e.H.W(r,h+o)),r.set(new i(n.buffer,n.byteOffset+a,o),h),y=a+o<<3,h+=o}return r.length==h?r:r.slice(0,h)},e.H.W=function(e,n){let r=e.length;if(n<=r)return e;let i=new Uint8Array(r<<1);return i.set(e,0),i},e.H.R=function(n,r,i,a,o,s){let f=e.H.e,l=e.H.Z,u=0;for(;u<i;){let e=n[l(a,o)&r];o+=15&e;let i=e>>>4;if(i<=15)s[u]=i,u++;else{let e=0,n=0;16==i?(n=3+f(a,o,2),o+=2,e=s[u-1]):17==i?(n=3+f(a,o,3),o+=3):18==i&&(n=11+f(a,o,7),o+=7);let r=u+n;for(;u<r;)s[u]=e,u++}}return o},e.H.V=function(e,n,r,i){let a=0,o=0,s=i.length>>>1;for(;o<r;){let r=e[o+n];i[o<<1]=0,i[1+(o<<1)]=r,r>a&&(a=r),o++}for(;o<s;)i[o<<1]=0,i[1+(o<<1)]=0,o++;return a},e.H.n=function(n,r){let i,a,o,s;let f=e.H.m,l=n.length,u=f.j;for(var c=0;c<=r;c++)u[c]=0;for(c=1;c<l;c+=2)u[n[c]]++;let d=f.K;for(i=0,u[0]=0,a=1;a<=r;a++)i=i+u[a-1]<<1,d[a]=i;for(o=0;o<l;o+=2)0!=(s=n[o+1])&&(n[o]=d[s],d[s]++)},e.H.A=function(n,r,i){let a=n.length,o=e.H.m.r;for(let e=0;e<a;e+=2)if(0!=n[e+1]){let a=e>>1,s=n[e+1],f=a<<4|s,l=r-s,u=n[e]<<l,c=u+(1<<l);for(;u!=c;)i[o[u]>>>15-r]=f,u++}},e.H.l=function(n,r){let i=e.H.m.r,a=15-r;for(let e=0;e<n.length;e+=2){let o=n[e]<<r-n[e+1];n[e]=i[o]>>>a}},e.H.M=function(e,n,r){r<<=7&n;let i=n>>>3;e[i]|=r,e[i+1]|=r>>>8},e.H.I=function(e,n,r){r<<=7&n;let i=n>>>3;e[i]|=r,e[i+1]|=r>>>8,e[i+2]|=r>>>16},e.H.e=function(e,n,r){return(e[n>>>3]|e[1+(n>>>3)]<<8)>>>(7&n)&(1<<r)-1},e.H.b=function(e,n,r){return(e[n>>>3]|e[1+(n>>>3)]<<8|e[2+(n>>>3)]<<16)>>>(7&n)&(1<<r)-1},e.H.Z=function(e,n){return(e[n>>>3]|e[1+(n>>>3)]<<8|e[2+(n>>>3)]<<16)>>>(7&n)},e.H.i=function(e,n){return(e[n>>>3]|e[1+(n>>>3)]<<8|e[2+(n>>>3)]<<16|e[3+(n>>>3)]<<24)>>>(7&n)},e.H.m=function(){let e=Uint16Array,n=Uint32Array;return{K:new e(16),j:new e(16),X:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],T:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],q:new e(32),p:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],z:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],c:new n(32),J:new e(512),_:[],h:new e(32),$:[],w:new e(32768),C:[],v:[],d:new e(32768),D:[],u:new e(512),Q:[],r:new e(32768),s:new n(286),Y:new n(30),a:new n(19),t:new n(15e3),k:new e(65536),g:new e(32768)}}(),function(){let n=e.H.m;for(var r=0;r<32768;r++){let e=r;e=(4278255360&(e=(4042322160&(e=(3435973836&(e=(2863311530&e)>>>1|(1431655765&e)<<1))>>>2|(858993459&e)<<2))>>>4|(252645135&e)<<4))>>>8|(16711935&e)<<8,n.r[r]=(e>>>16|e<<16)>>>17}function i(e,n,r){for(;0!=n--;)e.push(0,r)}for(r=0;r<32;r++)n.q[r]=n.S[r]<<3|n.T[r],n.c[r]=n.p[r]<<4|n.z[r];i(n._,144,8),i(n._,112,9),i(n._,24,7),i(n._,8,8),e.H.n(n._,9),e.H.A(n._,9,n.J),e.H.l(n._,9),i(n.$,32,5),e.H.n(n.$,5),e.H.A(n.$,5,n.h),e.H.l(n.$,5),i(n.Q,19,0),i(n.C,286,0),i(n.D,30,0),i(n.v,320,0)}(),e.H.N}();function o(e){return[1,null,3,1,2,null,4][e.ctype]*e.depth}function s(e,n,r,i,a){let s,l,u=o(n),c=Math.ceil(i*u/8);u=Math.ceil(u/8);let d=e[r],p=0;if(d>1&&(e[r]=[0,0,1][d-2]),3==d)for(p=u;p<c;p++)e[p+1]=e[p+1]+(e[p+1-u]>>>1)&255;for(let n=0;n<a;n++)if(d=e[(l=(s=r+n*c)+n+1)-1],p=0,0==d)for(;p<c;p++)e[s+p]=e[l+p];else if(1==d){for(;p<u;p++)e[s+p]=e[l+p];for(;p<c;p++)e[s+p]=e[l+p]+e[s+p-u]}else if(2==d)for(;p<c;p++)e[s+p]=e[l+p]+e[s+p-c];else if(3==d){for(;p<u;p++)e[s+p]=e[l+p]+(e[s+p-c]>>>1);for(;p<c;p++)e[s+p]=e[l+p]+(e[s+p-c]+e[s+p-u]>>>1)}else{for(;p<u;p++)e[s+p]=e[l+p]+f(0,e[s+p-c],0);for(;p<c;p++)e[s+p]=e[l+p]+f(e[s+p-u],e[s+p-c],e[s+p-u-c])}return e}function f(e,n,r){let i=e+n-r,a=i-e,o=i-n,s=i-r;return a*a<=o*o&&a*a<=s*s?e:o*o<=s*s?n:r}function l(e,n,r,i,a,o,s,f,l){let u=Math.min(n,a),c=Math.min(r,o),d=0,p=0;for(let r=0;r<c;r++)for(let o=0;o<u;o++)if(s>=0&&f>=0?(d=r*n+o<<2,p=(f+r)*a+s+o<<2):(d=(-f+r)*n-s+o<<2,p=r*a+o<<2),0==l)i[p]=e[d],i[p+1]=e[d+1],i[p+2]=e[d+2],i[p+3]=e[d+3];else if(1==l){var h=e[d+3]*(1/255),y=e[d]*h,m=e[d+1]*h,g=e[d+2]*h,b=i[p+3]*(1/255),v=i[p]*b,w=i[p+1]*b,x=i[p+2]*b;let n=1-h,r=h+b*n,a=0==r?0:1/r;i[p+3]=255*r,i[p+0]=(y+v*n)*a,i[p+1]=(m+w*n)*a,i[p+2]=(g+x*n)*a}else if(2==l)h=e[d+3],y=e[d],m=e[d+1],g=e[d+2],b=i[p+3],v=i[p],w=i[p+1],x=i[p+2],h==b&&y==v&&m==w&&g==x?(i[p]=0,i[p+1]=0,i[p+2]=0,i[p+3]=0):(i[p]=y,i[p+1]=m,i[p+2]=g,i[p+3]=h);else if(3==l){if(h=e[d+3],y=e[d],m=e[d+1],g=e[d+2],b=i[p+3],v=i[p],w=i[p+1],x=i[p+2],h==b&&y==v&&m==w&&g==x)continue;if(h<220&&b>20)return!1}return!0}return{decode:function(n){let o=new Uint8Array(n),s=8,f=e.readUshort,l=e.readUint,u={tabs:{},frames:[]},c=new Uint8Array(o.length),d,p=0,h=0,y=[137,80,78,71,13,10,26,10];for(var m,g=0;g<8;g++)if(o[g]!=y[g])throw"The input is not a PNG file!";for(;s<o.length;){let n=e.readUint(o,s);s+=4;let y=e.readASCII(o,s,4);
394if(s+=4,"IHDR"==y)b=s,u.width=e.readUint(o,b),b+=4,u.height=e.readUint(o,b),b+=4,u.depth=o[b],b++,u.ctype=o[b],b++,u.compress=o[b],b++,u.filter=o[b],b++,u.interlace=o[b],b++;else if("iCCP"==y){for(var b,v,w=s;0!=o[w];)w++;e.readASCII(o,s,w-s),o[w+1];let r=o.slice(w+2,s+n),f=null;try{f=i(r)}catch(e){f=a(r)}u.tabs[y]=f}else if("CgBI"==y)u.tabs[y]=o.slice(s,s+4);else if("IDAT"==y){for(g=0;g<n;g++)c[p+g]=o[s+g];p+=n}else if("acTL"==y)u.tabs[y]={num_frames:l(o,s),num_plays:l(o,s+4)},d=new Uint8Array(o.length);else if("fcTL"==y){0!=h&&((m=u.frames[u.frames.length-1]).data=r(u,d.slice(0,h),m.rect.width,m.rect.height),h=0);let e={x:l(o,s+12),y:l(o,s+16),width:l(o,s+4),height:l(o,s+8)},n=f(o,s+22),i={rect:e,delay:Math.round(1e3*(n=f(o,s+20)/(0==n?100:n))),dispose:o[s+24],blend:o[s+25]};u.frames.push(i)}else if("fdAT"==y){for(g=0;g<n-4;g++)d[h+g]=o[s+g+4];h+=n-4}else if("pHYs"==y)u.tabs[y]=[e.readUint(o,s),e.readUint(o,s+4),o[s+8]];else if("cHRM"==y)for(g=0,u.tabs[y]=[];g<8;g++)u.tabs[y].push(e.readUint(o,s+4*g));else if("tEXt"==y||"zTXt"==y){null==u.tabs[y]&&(u.tabs[y]={});var x=e.nextZero(o,s),T=e.readASCII(o,s,x-s),C=s+n-x-1;if("tEXt"==y)v=e.readASCII(o,x+1,C);else{var M=i(o.slice(x+2,x+2+C));v=e.readUTF8(M,0,M.length)}u.tabs[y][T]=v}else if("iTXt"==y){null==u.tabs[y]&&(u.tabs[y]={}),x=0,w=s,x=e.nextZero(o,w),T=e.readASCII(o,w,x-w);let r=o[w=x+1];o[w+1],w+=2,x=e.nextZero(o,w),e.readASCII(o,w,x-w),w=x+1,x=e.nextZero(o,w),e.readUTF8(o,w,x-w),C=n-((w=x+1)-s),0==r?v=e.readUTF8(o,w,C):(M=i(o.slice(w,w+C)),v=e.readUTF8(M,0,M.length)),u.tabs[y][T]=v}else if("PLTE"==y)u.tabs[y]=e.readBytes(o,s,n);else if("hIST"==y){let e=u.tabs.PLTE.length/3;for(g=0,u.tabs[y]=[];g<e;g++)u.tabs[y].push(f(o,s+2*g))}else if("tRNS"==y)3==u.ctype?u.tabs[y]=e.readBytes(o,s,n):0==u.ctype?u.tabs[y]=f(o,s):2==u.ctype&&(u.tabs[y]=[f(o,s),f(o,s+2),f(o,s+4)]);else if("gAMA"==y)u.tabs[y]=e.readUint(o,s)/1e5;else if("sRGB"==y)u.tabs[y]=o[s];else if("bKGD"==y)0==u.ctype||4==u.ctype?u.tabs[y]=[f(o,s)]:2==u.ctype||6==u.ctype?u.tabs[y]=[f(o,s),f(o,s+2),f(o,s+4)]:3==u.ctype&&(u.tabs[y]=o[s]);else if("IEND"==y)break;s+=n,e.readUint(o,s),s+=4}return 0!=h&&((m=u.frames[u.frames.length-1]).data=r(u,d.slice(0,h),m.rect.width,m.rect.height)),u.data=r(u,c,u.width,u.height),delete u.compress,delete u.interlace,delete u.filter,u},toRGBA8:function(e){let r=e.width,i=e.height;if(null==e.tabs.acTL)return[n(e.data,r,i,e).buffer];let a=[];null==e.frames[0].data&&(e.frames[0].data=e.data);let o=r*i*4,s=new Uint8Array(o),f=new Uint8Array(o),u=new Uint8Array(o);for(let d=0;d<e.frames.length;d++){let p=e.frames[d],h=p.rect.x,y=p.rect.y,m=p.rect.width,g=p.rect.height,b=n(p.data,m,g,e);if(0!=d)for(var c=0;c<o;c++)u[c]=s[c];if(0==p.blend?l(b,m,g,s,r,i,h,y,0):1==p.blend&&l(b,m,g,s,r,i,h,y,1),a.push(s.buffer.slice(0)),0==p.dispose);else if(1==p.dispose)l(f,m,g,s,r,i,h,y,0);else if(2==p.dispose)for(c=0;c<o;c++)s[c]=u[c]}return a},_paeth:f,_copyTile:l,_bin:e}}();!function(){let{_copyTile:e}=T,{_bin:n}=T,r=T._paeth;var i={table:function(){let e=new Uint32Array(256);for(let n=0;n<256;n++){let r=n;for(let e=0;e<8;e++)1&r?r=3988292384^r>>>1:r>>>=1;e[n]=r}return e}(),update(e,n,r,a){for(let o=0;o<a;o++)e=i.table[255&(e^n[r+o])]^e>>>8;return e},crc:(e,n,r)=>4294967295^i.update(4294967295,e,n,r)};function a(e,n,r,i){n[r]+=e[0]*i>>4,n[r+1]+=e[1]*i>>4,n[r+2]+=e[2]*i>>4,n[r+3]+=e[3]*i>>4}function o(e){return Math.max(0,Math.min(255,e))}function s(e,n){let r=e[0]-n[0],i=e[1]-n[1],a=e[2]-n[2],o=e[3]-n[3];return r*r+i*i+a*a+o*o}function f(e,n,r,i,f,l,u){null==u&&(u=1);let c=i.length,d=[];for(var p,h=0;h<c;h++){let e=i[h];d.push([e>>>0&255,e>>>8&255,e>>>16&255,e>>>24&255])}for(h=0;h<c;h++){let e=4294967295;for(var y=0,m=0;m<c;m++){var g=s(d[h],d[m]);m!=h&&g<e&&(e=g,y=m)}}let b=new Uint32Array(f.buffer),v=new Int16Array(n*r*4),w=[0,8,2,10,12,4,14,6,3,11,1,9,15,7,13,5];for(h=0;h<w.length;h++)w[h]=255*((w[h]+.5)/16-.5);for(let f=0;f<r;f++)for(let x=0;x<n;x++){h=4*(f*n+x),2!=u?p=[o(e[h]+v[h]),o(e[h+1]+v[h+1]),o(e[h+2]+v[h+2]),o(e[h+3]+v[h+3])]:(g=w[4*(3&f)+(3&x)],p=[o(e[h]+g),o(e[h+1]+g),o(e[h+2]+g),o(e[h+3]+g)]),y=0;let T=16777215;for(m=0;m<c;m++){let e=s(p,d[m]);e<T&&(T=e,y=m)}let C=d[y],M=[p[0]-C[0],p[1]-C[1],p[2]-C[2],p[3]-C[3]];1==u&&(x!=n-1&&a(M,v,h+4,7),f!=r-1&&(0!=x&&a(M,v,h+4*n-4,3),a(M,v,h+4*n,5),x!=n-1&&a(M,v,h+4*n+4,1))),l[h>>2]=y,b[h>>2]=i[y]}}function l(e,r,a,o,s){null==s&&(s={});let{crc:f}=i,l=n.writeUint,u=n.writeUshort,c=n.writeASCII,d=8,p=e.frames.length>1,h,y=!1,m=33+(p?20:0);if(null!=s.sRGB&&(m+=13),null!=s.pHYs&&(m+=21),null!=s.iCCP&&(m+=21+(h=pako.deflate(s.iCCP)).length+4),3==e.ctype){for(var g=e.plte.length,b=0;b<g;b++)e.plte[b]>>>24!=255&&(y=!0);m+=8+3*g+4+(y?8+1*g+4:0)}for(var v=0;v<e.frames.length;v++)p&&(m+=38),m+=(C=e.frames[v]).cimg.length+12,0!=v&&(m+=4);let w=new Uint8Array(m+=12),x=[137,80,78,71,13,10,26,10];for(b=0;b<8;b++)w[b]=x[b];if(l(w,d,13),c(w,d+=4,"IHDR"),l(w,d+=4,r),l(w,d+=4,a),w[d+=4]=e.depth,w[++d]=e.ctype,w[++d]=0,w[++d]=0,w[++d]=0,l(w,++d,f(w,d-17,17)),d+=4,null!=s.sRGB&&(l(w,d,1),c(w,d+=4,"sRGB"),w[d+=4]=s.sRGB,l(w,++d,f(w,d-5,5)),d+=4),null!=s.iCCP){let e=13+h.length;
394l(w,d,e),c(w,d+=4,"iCCP"),c(w,d+=4,"ICC profile"),d+=13,w.set(h,d),l(w,d+=h.length,f(w,d-(e+4),e+4)),d+=4}if(null!=s.pHYs&&(l(w,d,9),c(w,d+=4,"pHYs"),l(w,d+=4,s.pHYs[0]),l(w,d+=4,s.pHYs[1]),w[d+=4]=s.pHYs[2],l(w,++d,f(w,d-13,13)),d+=4),p&&(l(w,d,8),c(w,d+=4,"acTL"),l(w,d+=4,e.frames.length),l(w,d+=4,null!=s.loop?s.loop:0),l(w,d+=4,f(w,d-12,12)),d+=4),3==e.ctype){for(l(w,d,3*(g=e.plte.length)),c(w,d+=4,"PLTE"),d+=4,b=0;b<g;b++){let n=3*b,r=e.plte[b],i=255&r,a=r>>>8&255,o=r>>>16&255;w[d+n+0]=i,w[d+n+1]=a,w[d+n+2]=o}if(l(w,d+=3*g,f(w,d-3*g-4,3*g+4)),d+=4,y){for(l(w,d,g),c(w,d+=4,"tRNS"),d+=4,b=0;b<g;b++)w[d+b]=e.plte[b]>>>24&255;l(w,d+=g,f(w,d-g-4,g+4)),d+=4}}let T=0;for(v=0;v<e.frames.length;v++){var C=e.frames[v];p&&(l(w,d,26),c(w,d+=4,"fcTL"),l(w,d+=4,T++),l(w,d+=4,C.rect.width),l(w,d+=4,C.rect.height),l(w,d+=4,C.rect.x),l(w,d+=4,C.rect.y),u(w,d+=4,o[v]),u(w,d+=2,1e3),w[d+=2]=C.dispose,w[++d]=C.blend,l(w,++d,f(w,d-30,30)),d+=4);let n=C.cimg;l(w,d,(g=n.length)+(0==v?0:4));let r=d+=4;c(w,d,0==v?"IDAT":"fdAT"),d+=4,0!=v&&(l(w,d,T++),d+=4),w.set(n,d),l(w,d+=g,f(w,r,d-r)),d+=4}return l(w,d,0),c(w,d+=4,"IEND"),l(w,d+=4,f(w,d-4,4)),d+=4,w.buffer}function u(e,n,i){for(let a=0;a<e.frames.length;a++){let o=e.frames[a];o.rect.width;let s=o.rect.height,f=new Uint8Array(s*o.bpl+s);o.cimg=function(e,n,i,a,o,s,f){let l=[],u,c=[0,1,2,3,4];-1!=s?c=[s]:(n*a>5e5||1==i)&&(c=[0]),f&&(u={level:0});for(var d=0;d<c.length;d++){for(let s=0;s<n;s++)!function(e,n,i,a,o,s){let f=i*a,l=f+i;if(e[l]=s,l++,0==s){if(a<500)for(var u=0;u<a;u++)e[l+u]=n[f+u];else e.set(new Uint8Array(n.buffer,f,a),l)}else if(1==s){for(u=0;u<o;u++)e[l+u]=n[f+u];for(u=o;u<a;u++)e[l+u]=n[f+u]-n[f+u-o]+256&255}else if(0==i){for(u=0;u<o;u++)e[l+u]=n[f+u];if(2==s)for(u=o;u<a;u++)e[l+u]=n[f+u];if(3==s)for(u=o;u<a;u++)e[l+u]=n[f+u]-(n[f+u-o]>>1)+256&255;if(4==s)for(u=o;u<a;u++)e[l+u]=n[f+u]-r(n[f+u-o],0,0)+256&255}else{if(2==s)for(u=0;u<a;u++)e[l+u]=n[f+u]+256-n[f+u-a]&255;if(3==s){for(u=0;u<o;u++)e[l+u]=n[f+u]+256-(n[f+u-a]>>1)&255;for(u=o;u<a;u++)e[l+u]=n[f+u]+256-(n[f+u-a]+n[f+u-o]>>1)&255}if(4==s){for(u=0;u<o;u++)e[l+u]=n[f+u]+256-r(0,n[f+u-a],0)&255;for(u=o;u<a;u++)e[l+u]=n[f+u]+256-r(n[f+u-o],n[f+u-a],n[f+u-o-a])&255}}}(o,e,s,a,i,c[d]);l.push(x.deflate(o,u))}let p,h=1e9;for(d=0;d<l.length;d++)l[d].length<h&&(p=d,h=l[d].length);return l[p]}(o.img,s,o.bpp,o.bpl,f,n,i)}}function c(n,r,i,a,o){let s=o[0],l=o[1],u=o[2],c=o[3],y=o[4],m=o[5],g=6,b=8,v=255;for(var w=0;w<n.length;w++){let e=new Uint8Array(n[w]);for(var x=e.length,T=0;T<x;T+=4)v&=e[T+3]}let C=255!=v,M=function(n,r,i,a,o,s){let f=[];for(var l,u=0;u<n.length;u++){let l=new Uint8Array(n[u]),d=new Uint32Array(l.buffer),m=0,g=0,b=r,v=i,w=a?1:0;if(0!=u){let x=s||a||1==u||0!=f[u-2].dispose?1:2,T=0,C=1e9;for(let e=0;e<x;e++){var c,h=new Uint8Array(n[u-1-e]);let a=new Uint32Array(n[u-1-e]),s=r,f=i,l=-1,p=-1;for(let e=0;e<i;e++)for(let n=0;n<r;n++)d[y=e*r+n]!=a[y]&&(n<s&&(s=n),n>l&&(l=n),e<f&&(f=e),e>p&&(p=e));-1==l&&(s=f=l=p=0),o&&(1==(1&s)&&s--,1==(1&f)&&f--);let w=(l-s+1)*(p-f+1);w<C&&(C=w,T=e,m=s,g=f,b=l-s+1,v=p-f+1)}h=new Uint8Array(n[u-1-T]),1==T&&(f[u-1].dispose=2),e(h,r,i,c=new Uint8Array(b*v*4),b,v,-m,-g,0),1==(w=e(l,r,i,c,b,v,-m,-g,3)?1:0)?p(l,r,i,c,{x:m,y:g,width:b,height:v}):e(l,r,i,c,b,v,-m,-g,0)}else c=l.slice(0);f.push({rect:{x:m,y:g,width:b,height:v},img:c,blend:w,dispose:0})}if(a)for(u=0;u<f.length;u++){if(1==(l=f[u]).blend)continue;let e=l.rect,a=f[u-1].rect,s=Math.min(e.x,a.x),c=Math.min(e.y,a.y),p={x:s,y:c,width:Math.max(e.x+e.width,a.x+a.width)-s,height:Math.max(e.y+e.height,a.y+a.height)-c};f[u-1].dispose=1,u-1!=0&&d(n,r,i,f,u-1,p,o),d(n,r,i,f,u,p,o)}if(1!=n.length)for(var y=0;y<f.length;y++)(l=f[y]).rect.width,l.rect.height;return f}(n,r,i,s,l,u),A={},E=[],I=[];if(0!=a){let e=[];for(T=0;T<M.length;T++)e.push(M[T].img.buffer);let n=h(function(e){let n=0;for(var r=0;r<e.length;r++)n+=e[r].byteLength;let i=new Uint8Array(n),a=0;for(r=0;r<e.length;r++){let n=new Uint8Array(e[r]),o=n.length;for(let e=0;e<o;e+=4){let r=n[e],o=n[e+1],s=n[e+2],f=n[e+3];0==f&&(r=o=s=0),i[a+e]=r,i[a+e+1]=o,i[a+e+2]=s,i[a+e+3]=f}a+=o}return i.buffer}(e),a);for(T=0;T<n.plte.length;T++)E.push(n.plte[T].est.rgba);let r=0;for(T=0;T<M.length;T++){let e=(k=M[T]).img.length;var S=new Uint8Array(n.inds.buffer,r>>2,e>>2);I.push(S);let i=new Uint8Array(n.abuf,r,e);m&&f(k.img,k.rect.width,k.rect.height,E,i,S),k.img.set(i),r+=e}}else for(w=0;w<M.length;w++){var k=M[w];let e=new Uint32Array(k.img.buffer);var N=k.rect.width;for(S=new Uint8Array(x=e.length),I.push(S),T=0;T<x;T++){let n=e[T];if(0!=T&&n==e[T-1])S[T]=S[T-1];else if(T>N&&n==e[T-N])S[T]=S[T-N];else{let e=A[n];if(null==e&&(A[n]=e=E.length,E.push(n),E.length>=300))break;S[T]=e}}}let j=E.length;for(j<=256&&0==y&&(b=Math.max(b=j<=2?1:j<=4?2:j<=16?4:8,c)),w=0;w<M.length;w++){(k=M[w]).rect.x,k.rect.y,N=k.rect.width;let e=k.rect.height,n=k.img;new Uint32Array(n.buffer);let r=4*N,i=4;if(j<=256&&0==y){var D=new Uint8Array((r=Math.ceil(b*N/8))*e);let a=I[w];for(let n=0;n<e;n++){T=n*r;let e=n*N;if(8==b)for(var _=0;_<N;_++)D[T+_]=a[e+_];else if(4==b)for(_=0;_<N;_++)D[T+(_>>1)]|=a[e+_]<<4-4*(1&_);else if(2==b)for(_=0;_<N;_++)D[T+(_>>2)]|=a[e+_]<<6-2*(3&_);else if(1==b)for(_=0;_<N;_++)D[T+(_>>3)]|=a[e+_]<<7-1*(7&_)}n=D,g=3,i=1}else if(0==C&&1==M.length){D=new Uint8Array(N*e*3);let a=N*e;for(T=0;T<a;T++){let e=3*T,r=4*T;D[e]=n[r],D[e+1]=n[r+1],D[e+2]=n[r+2]}n=D,g=2,i=3,r=3*N}k.img=n,k.bpl=r,k.bpp=i}return{ctype:g,depth:b,plte:E,frames:M}}function d(n,r,i,a,o,s,f){let l=Uint8Array,u=Uint32Array,c=new l(n[o-1]),d=new u(n[o-1]),h=o+1<n.length?new l(n[o+1]):null,y=new l(n[o]),m=new u(y.buffer),g=r,b=i,v=-1,w=-1;for(let e=0;e<s.height;e++)for(let n=0;n<s.width;n++){let i=s.x+n,f=s.y+e,l=f*r+i,u=m[l];0==u||0==a[o-1].dispose&&d[l]==u&&(null==h||0!=h[4*l+3])||(i<g&&(g=i),i>v&&(v=i),f<b&&(b=f),f>w&&(w=f))}-1==v&&(g=b=v=w=0),f&&(1==(1&g)&&g--,1==(1&b)&&b--),s={x:g,y:b,width:v-g+1,height:w-b+1};let x=a[o];x.rect=s,x.blend=1,x.img=new Uint8Array(s.width*s.height*4),0==a[o-1].dispose?(e(c,r,i,x.img,s.width,s.height,-s.x,-s.y,0
394),p(y,r,i,x.img,s)):e(y,r,i,x.img,s.width,s.height,-s.x,-s.y,0)}function p(n,r,i,a,o){e(n,r,i,a,o.width,o.height,-o.x,-o.y,2)}function h(e,n){let r;let i=new Uint8Array(e),a=i.slice(0),o=new Uint32Array(a.buffer),s=y(a,n),f=s[0],l=s[1],u=i.length,c=new Uint8Array(u>>2);if(i.length<2e7)for(var d=0;d<u;d+=4)r=m(f,p=i[d]*(1/255),h=i[d+1]*(1/255),b=i[d+2]*(1/255),v=i[d+3]*(1/255)),c[d>>2]=r.ind,o[d>>2]=r.est.rgba;else for(d=0;d<u;d+=4){var p=i[d]*(1/255),h=i[d+1]*(1/255),b=i[d+2]*(1/255),v=i[d+3]*(1/255);for(r=f;r.left;)r=0>=g(r.est,p,h,b,v)?r.left:r.right;c[d>>2]=r.ind,o[d>>2]=r.est.rgba}return{abuf:a.buffer,inds:c,plte:l}}function y(e,n,r){null==r&&(r=1e-4);let i=new Uint32Array(e.buffer),a={i0:0,i1:e.length,bst:null,est:null,tdst:0,left:null,right:null};a.bst=v(e,a.i0,a.i1),a.est=w(a.bst);let o=[a];for(;o.length<n;){let n=0,a=0;for(var s=0;s<o.length;s++)o[s].est.L>n&&(n=o[s].est.L,a=s);if(n<r)break;let f=o[a],l=function(e,n,r,i,a,o){for(i-=4;r<i;){for(;b(e,r,a)<=o;)r+=4;for(;b(e,i,a)>o;)i-=4;if(r>=i)break;let s=n[r>>2];n[r>>2]=n[i>>2],n[i>>2]=s,r+=4,i-=4}for(;b(e,r,a)>o;)r-=4;return r+4}(e,i,f.i0,f.i1,f.est.e,f.est.eMq255);if(f.i0>=l||f.i1<=l){f.est.L=0;continue}let u={i0:f.i0,i1:l,bst:null,est:null,tdst:0,left:null,right:null};u.bst=v(e,u.i0,u.i1),u.est=w(u.bst);let c={i0:l,i1:f.i1,bst:null,est:null,tdst:0,left:null,right:null};for(s=0,c.bst={R:[],m:[],N:f.bst.N-u.bst.N};s<16;s++)c.bst.R[s]=f.bst.R[s]-u.bst.R[s];for(s=0;s<4;s++)c.bst.m[s]=f.bst.m[s]-u.bst.m[s];c.est=w(c.bst),f.left=u,f.right=c,o[a]=u,o.push(c)}for(o.sort((e,n)=>n.bst.N-e.bst.N),s=0;s<o.length;s++)o[s].ind=s;return[a,o]}function m(e,n,r,i,a){if(null==e.left)return e.tdst=function(e,n,r,i,a){let o=n-e[0],s=r-e[1],f=i-e[2],l=a-e[3];return o*o+s*s+f*f+l*l}(e.est.q,n,r,i,a),e;let o=g(e.est,n,r,i,a),s=e.left,f=e.right;o>0&&(s=e.right,f=e.left);let l=m(s,n,r,i,a);if(l.tdst<=o*o)return l;let u=m(f,n,r,i,a);return u.tdst<l.tdst?u:l}function g(e,n,r,i,a){let{e:o}=e;return o[0]*n+o[1]*r+o[2]*i+o[3]*a-e.eMq}function b(e,n,r){return e[n]*r[0]+e[n+1]*r[1]+e[n+2]*r[2]+e[n+3]*r[3]}function v(e,n,r){let i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],a=[0,0,0,0];for(let o=n;o<r;o+=4){let n=e[o]*(1/255),r=e[o+1]*(1/255),s=e[o+2]*(1/255),f=e[o+3]*(1/255);a[0]+=n,a[1]+=r,a[2]+=s,a[3]+=f,i[0]+=n*n,i[1]+=n*r,i[2]+=n*s,i[3]+=n*f,i[5]+=r*r,i[6]+=r*s,i[7]+=r*f,i[10]+=s*s,i[11]+=s*f,i[15]+=f*f}return i[4]=i[1],i[8]=i[2],i[9]=i[6],i[12]=i[3],i[13]=i[7],i[14]=i[11],{R:i,m:a,N:r-n>>2}}function w(e){let{R:n}=e,{m:r}=e,{N:i}=e,a=r[0],o=r[1],s=r[2],f=r[3],l=0==i?0:1/i,u=[n[0]-a*a*l,n[1]-a*o*l,n[2]-a*s*l,n[3]-a*f*l,n[4]-o*a*l,n[5]-o*o*l,n[6]-o*s*l,n[7]-o*f*l,n[8]-s*a*l,n[9]-s*o*l,n[10]-s*s*l,n[11]-s*f*l,n[12]-f*a*l,n[13]-f*o*l,n[14]-f*s*l,n[15]-f*f*l],c=[Math.random(),Math.random(),Math.random(),Math.random()],d=0,p=0;if(0!=i)for(let e=0;e<16&&(c=C.multVec(u,c),p=Math.sqrt(C.dot(c,c)),c=C.sml(1/p,c),!(0!=e&&1e-9>Math.abs(p-d)));e++)d=p;let h=[a*l,o*l,s*l,f*l];return{Cov:u,q:h,e:c,L:d,eMq255:C.dot(C.sml(255,h),c),eMq:C.dot(c,h),rgba:(Math.round(255*h[3])<<24|Math.round(255*h[2])<<16|Math.round(255*h[1])<<8|Math.round(255*h[0])<<0)>>>0}}var C={multVec:(e,n)=>[e[0]*n[0]+e[1]*n[1]+e[2]*n[2]+e[3]*n[3],e[4]*n[0]+e[5]*n[1]+e[6]*n[2]+e[7]*n[3],e[8]*n[0]+e[9]*n[1]+e[10]*n[2]+e[11]*n[3],e[12]*n[0]+e[13]*n[1]+e[14]*n[2]+e[15]*n[3]],dot:(e,n)=>e[0]*n[0]+e[1]*n[1]+e[2]*n[2]+e[3]*n[3],sml:(e,n)=>[e*n[0],e*n[1],e*n[2],e*n[3]]};T.encode=function(e,n,r,i,a,o,s){null==i&&(i=0),null==s&&(s=!1);let f=c(e,n,r,i,[!1,!1,!1,0,s,!1]);return u(f,-1),l(f,n,r,a,o)},T.encodeLL=function(e,n,r,i,a,o,s,f){let c={ctype:0+(1==i?0:2)+(0==a?0:4),depth:o,frames:[]},d=(i+a)*o,p=d*n;for(let i=0;i<e.length;i++)c.frames.push({rect:{x:0,y:0,width:n,height:r},img:new Uint8Array(e[i]),blend:0,dispose:1,bpp:Math.ceil(d/8),bpl:Math.ceil(p/8)});return u(c,0,!0),l(c,n,r,s,f)},T.encode.compress=c,T.encode.dither=f,T.quantize=h,T.quantize.getKDtree=y,T.quantize.getNearest=m}();let C={toArrayBuffer(e,n){let r=e.width,i=e.height,a=r<<2,o=new Uint32Array(e.getContext("2d").getImageData(0,0,r,i).data.buffer),s=(32*r+31)/32<<2,f=s*i,l=122+f,u=new ArrayBuffer(l),c=new DataView(u),d,p,h,y,m=1048576,g=0,b=0,v=0;function w(e){c.setUint16(b,e,!0),b+=2}function x(e){c.setUint32(b,e,!0),b+=4}w(19778),x(l),b+=4,x(122),x(108),x(r),x(-i>>>0),w(1),w(32),x(3),x(f),x(2835),x(2835),b+=8,x(16711680),x(65280),x(255),x(4278190080),x(1466527264),function e(){for(;g<i&&m>0;){for(y=122+g*s,d=0;d<a;)m--,h=(p=o[v++])>>>24,c.setUint32(y+d,p<<8|h),d+=4;g++}v<o.length?(m=1048576,setTimeout(e,C._dly)):n(u)}()},toBlob(e,n){this.toArrayBuffer(e,e=>{n(new Blob([e],{type:"image/bmp"}))})},_dly:9};var M={CHROME:"CHROME",FIREFOX:"FIREFOX",DESKTOP_SAFARI:"DESKTOP_SAFARI",IE:"IE",IOS:"IOS",ETC:"ETC"},A={[M.CHROME]:16384,[M.FIREFOX]:11180,[M.DESKTOP_SAFARI]:16384,[M.IE]:8192,[M.IOS]:4096,[M.ETC]:8192};let E="undefined"!=typeof window,I="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,S=E&&window.cordova&&window.cordova.require&&window.cordova.require("cordova/modulemapper"),k=(E||I)&&(S&&S.getOriginalSymbol(window,"File")||"undefined"!=typeof File&&File),N=(E||I)&&(S&&S.getOriginalSymbol(window,"FileReader")||"undefined"!=typeof FileReader&&FileReader);function j(e,n,r=Date.now()){return new Promise(i=>{let a=e.split(","),o=a[0].match(/:(.*?);/)[1],s=globalThis.atob(a[1]),f=s.length,l=new Uint8Array(f);for(;f--;)l[f]=s.charCodeAt(f);let u=new Blob([l],{type:o});u.name=n,u.lastModified=r,i(u)})}function D(e){return new Promise((n,r)=>{let i=new N;i.onload=()=>n(i.result),i.onerror=e=>r(e),i.readAsDataURL(e)})}function _(e){return new Promise((n,r)=>{let i=new Image;i.onload=()=>n(i),i.onerror=e=>r(e),i.src=e})}function O(){if(void 0!==O.cachedResult)return O.cachedResult;let e=M.ETC,{userAgent:n}=navigator;return/Chrom(e|ium)/i.test(n)?e=M.CHROME:/iP(ad|od|hone)/i.test(n)&&/WebKit/i.test(n)?e=M.IOS:/Safari/i.test(n)?e=M.DESKTOP_SAFARI:/Firefox/i.test(n)?e=M.FIREFOX:(/MSIE/i.test(n)||!0==!!document.documentMode)&&(e=M.IE),O.cachedResult=e,O.cachedResult}function P(e,n){let r=A[O()],i=e,a=n,o=i*a,s=i>a?a/i:i/a;for(;o>r*r;){let e=(r+i)/2,n=(r+a)/2;e<n?(a=n,i=n*s):(a=e*s,i=e),o=i*a}return{width:i,height:a}}function L(e,n){let r,i;try{if(i=(r=new OffscreenCanvas(e,n)).getContext("2d"),null===i)throw Error("getContext of OffscreenCanvas returns null")}catch(e){i=(r=document.createElement("canvas")).getContext("2d")}return r.width=e,r.height=n,[r,i]}function R(e,n){let{width:r,height:i}=P(e.width,e.height),[a,o]=L(r,i);return n&&/jpe?g/.test(n)&&(o.fillStyle="white",o.fillRect(0,0,a.width,a.height)),o.drawImage(e,0,0,a.width,a.height),a}function z(e,n={}){return new Promise(function(r,i){let a,o;var s=function(){try{return o=R(a,n.fileType||e.type),r([a,o])}catch(e){return i(e)}},f=function(n){try{var r=function(e){try{throw e}catch(e){return i(e)}};try{let n;return D(e).then(function(e){try{return n=e,_(n).then(function(e){try{return a=e,function(){try{return s()}catch(e){return i(e)}}()}catch(e){return r(e)}},r)}catch(e){return r(e)}},r)}catch(e){r(e)}}catch(e){return i(e)}};try{if(function e(){return void 0!==e.cachedResult||(e.cachedResult=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"undefined"!=typeof document&&"ontouchend"in document),e.cachedResult}()||[M.DESKTOP_SAFARI,M.MOBILE_SAFARI].includes(O()))throw Error("Skip createImageBitmap on IOS and Safari");return createImageBitmap(e).then(function(e){try{return a=e,s()}catch(e){return f()}},f)}catch(e){f()}})}function B(e,n,r,i,a=1){return new Promise(function(o,s){let f;if("image/png"===n){let o,s;return o=e.getContext("2d"),{data:s}=o.getImageData(0,0,e.width,e.height),(f=new Blob([T.encode([s.buffer],e.width,e.height,4096*a)],{type:n})).name=r,f.lastModified=i,c.call(this)}if("image/bmp"===n)return new Promise(n=>C.toBlob(e,n)).then((function(e){try{return(f=e).name=r,f.lastModified=i,u.call(this)}catch(e){return s(e)}}).bind(this),s);if("function"==typeof OffscreenCanvas&&e instanceof OffscreenCanvas)return e.convertToBlob({type:n,qual
394ity:a}).then((function(e){try{return(f=e).name=r,f.lastModified=i,l.call(this)}catch(e){return s(e)}}).bind(this),s);return j(e.toDataURL(n,a),r,i).then((function(e){try{return f=e,l.call(this)}catch(e){return s(e)}}).bind(this),s);function l(){return u.call(this)}function u(){return c.call(this)}function c(){return o(f)}})}function U(e){e.width=0,e.height=0}function F(){return new Promise(function(e,n){let r,i,a,o;return void 0!==F.cachedResult?e(F.cachedResult):j("data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q==","test.jpg",Date.now()).then(function(s){try{return r=s,z(r).then(function(s){try{return i=s[1],B(i,r.type,r.name,r.lastModified).then(function(r){try{return a=r,U(i),z(a).then(function(r){try{return o=r[0],F.cachedResult=1===o.width&&2===o.height,e(F.cachedResult)}catch(e){return n(e)}},n)}catch(e){return n(e)}},n)}catch(e){return n(e)}},n)}catch(e){return n(e)}},n)})}function Z(e){return new Promise((n,r)=>{let i=new N;i.onload=e=>{let r=new DataView(e.target.result);if(65496!=r.getUint16(0,!1))return n(-2);let i=r.byteLength,a=2;for(;a<i&&!(8>=r.getUint16(a+2,!1));){let e=r.getUint16(a,!1);if(a+=2,65505==e){if(1165519206!=r.getUint32(a+=2,!1))return n(-1);let e=18761==r.getUint16(a+=6,!1);a+=r.getUint32(a+4,e);let i=r.getUint16(a,e);a+=2;for(let o=0;o<i;o++)if(274==r.getUint16(a+12*o,e))return n(r.getUint16(a+12*o+8,e))}else{if(65280!=(65280&e))break;a+=r.getUint16(a,!1)}}return n(-1)},i.onerror=e=>r(e),i.readAsArrayBuffer(e)})}function W(e,n){let{width:r}=e,{height:i}=e,{maxWidthOrHeight:a}=n,o,s=e;return isFinite(a)&&(r>a||i>a)&&([s,o]=L(r,i),r>i?(s.width=a,s.height=i/r*a):(s.width=r/i*a,s.height=a),o.drawImage(e,0,0,s.width,s.height),U(e)),s}function H(e,n){let{width:r}=e,{height:i}=e,[a,o]=L(r,i);switch(n>4&&n<9?(a.width=i,a.height=r):(a.width=r,a.height=i),n){case 2:o.transform(-1,0,0,1,r,0);break;case 3:o.transform(-1,0,0,-1,r,i);break;case 4:o.transform(1,0,0,-1,0,i);break;case 5:o.transform(0,1,1,0,0,0);break;case 6:o.transform(0,1,-1,0,i,0);break;case 7:o.transform(0,-1,-1,0,i,r);break;case 8:o.transform(0,-1,1,0,0,r)}return o.drawImage(e,0,0,r,i),U(e),a}function G(e,n,r=0){return new Promise(function(i,a){let o,s,f,l,u,c,d,p,h,y,m,g,b,v,w,x,T,C,M,A;function E(e=5){if(n.signal&&n.signal.aborted)throw n.signal.reason;o+=e,n.onProgress(Math.min(o,100))}function I(e){if(n.signal&&n.signal.aborted)throw n.signal.reason;o=Math.min(Math.max(e,o),100),n.onProgress(o)}return o=r,s=n.maxIteration||10,f=1024*n.maxSizeMB*1024,E(),z(e,n).then((function(r){try{return[,l]=r,E(),u=W(l,n),E(),new Promise(function(r,i){var a;if(!(a=n.exifOrientation))return Z(e).then((function(e){try{return a=e,o.call(this)}catch(e){return i(e)}}).bind(this),i);function o(){return r(a)}return o.call(this)}).then((function(r){try{return c=r,E(),F().then((function(r){try{return d=r?u:H(u,c),E(),p=n.initialQuality||1,h=n.fileType||e.type,B(d,h,e.name,e.lastModified,p).then((function(r){try{var o;if(y=r,E(),m=y.size>f,g=y.size>e.size,!m&&!g)return I(100),i(y);function c(){if(s--&&(w>f||w>b)){let n,r;return n=A?.95*M.width:M.width,r=A?.95*M.height:M.height,[T,C]=L(n,r),C.drawImage(M,0,0,n,r),p*="image/png"===h?.85:.95,B(T,h,e.name,e.lastModified,p).then(function(e){try{return x=e,U(M),M=T,w=x.size,I(Math.min(99,Math.floor((v-w)/(v-f)*100))),c}catch(e){return a(e)}},a)}return[1]}return b=e.size,w=v=y.size,M=d,A=!n.alwaysKeepResolution&&m,(o=(function(e){for(;e;){if(e.then)return void e.then(o,a);try{if(e.pop){if(e.length)return e.pop()?S.call(this):e;e=c}else e=e.call(this)}catch(e){return a(e)}}}).bind(this))(c);function S(){return U(M),U(T),U(u),U(d),U(l),I(100),i(x)}}catch(e){return a(e)}}).bind(this),a)}catch(e){return a(e)}}).bind(this),a)}catch(e){return a(e)}}).bind(this),a)}catch(e){return a(e)}}).bind(this),a)})}function q(e,n){return new Promise(function(r,a){let o,s,f,l,u,c;if(o={...n},f=0,{onProgress:l}=o,o.maxSizeMB=o.maxSizeMB||Number.POSITIVE_INFINITY,u="boolean"!=typeof o.useWebWorker||o.useWebWorker,delete o.useWebWorker,o.onProgress=e=>{f=e,"function"==typeof l&&l(f)},!(e instanceof Blob||e instanceof k))return a(Error("The file given is not an instance of Blob or File"));if(!/^image/.test(e.type))return a(Error("The file given is not an image"));if(c="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,!u||"function"!=typeof Worker||c)return G(e,o).then((function(e){try{return s=e,h.call(this)}catch(e){return a(e)}}).bind(this),a);var d=(function(){try{return h.call(this)}catch(e){return a(e)}}).bind(this),p=function(n){try{return G(e,o).then(function(e){try{return s=e,d()}catch(e){return a(e)}},a)}catch(e){return a(e)}};try{return o.libURL=o.libURL||"https://cdn.jsdelivr.net/npm/[email protected]/dist/browser-image-compression.js",new Promise((n,r)=>{i||(i=function(e){let n=[];return"function"==typeof e?n.push(`(${e})()`):n.push(e),URL.createObjectURL(new Blob(n))}("\nlet scriptImported = false\nself.addEventListener('message', async (e) => {\n const { file, id, imageCompressionLibUrl, options } = e.data\n options.onProgress = (progress) => self.postMessage({ progress, id })\n try {\n if (!scriptImported) {\n // console.log('[worker]
394importScripts', imageCompressionLibUrl)\n self.importScripts(imageCompressionLibUrl)\n scriptImported = true\n }\n // console.log('[worker] self', self)\n const compressedFile = await imageCompression(file, options)\n self.postMessage({ file: compressedFile, id })\n } catch (e) {\n // console.error('[worker] error', e)\n self.postMessage({ error: e.message + '\\n' + e.stack, id })\n }\n})\n"));let a=new Worker(i);a.addEventListener("message",function(e){if(o.signal&&o.signal.aborted)a.terminate();else if(void 0===e.data.progress){if(e.data.error)return r(Error(e.data.error)),void a.terminate();n(e.data.file),a.terminate()}else o.onProgress(e.data.progress)}),a.addEventListener("error",r),o.signal&&o.signal.addEventListener("abort",()=>{r(o.signal.reason),a.terminate()}),a.postMessage({file:e,imageCompressionLibUrl:o.libURL,options:{...o,onProgress:void 0,signal:void 0}})}).then(function(e){try{return s=e,d()}catch(e){return p()}},p)}catch(e){p()}function h(){try{s.name=e.name,s.lastModified=e.lastModified}catch(e){}try{o.preserveExif&&"image/jpeg"===e.type&&(!o.fileType||o.fileType&&o.fileType===e.type)&&(s=b(e,s))}catch(e){}return r(s)}})}q.getDataUrlFromFile=D,q.getFilefromDataUrl=j,q.loadImage=_,q.drawImageInCanvas=R,q.drawFileInCanvas=z,q.canvasToFile=B,q.getExifOrientation=Z,q.handleMaxWidthOrHeight=W,q.followExifOrientation=H,q.cleanupCanvasMemory=U,q.isAutoOrientationInBrowser=F,q.approximateBelowMaximumCanvasSizeOfBrowser=P,q.copyExifWithoutOrientation=b,q.getBrowserName=O,q.version="2.0.2";var Y=r(82615);function V(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function Q(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?V(Object(r),!0).forEach(function(n){(0,c.default)(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):V(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function K(e){var n=(0,h.useRef)({});return function(r,i){if(!n.current[e]){n.current[e]={goal:Date.now()+r,call:i,promise:new Promise(function(r){setTimeout(function i(){var a=n.current[e];return a?a.goal<=Date.now()?(a.call(),n.current[e]=null,r()):void setTimeout(i,Date.now()-Date.goal):r()},Date.now()-Date.goal)})};return}n.current[e]=Q(Q({},n.current[e]),{},{goal:Date.now()+r,call:i})}}function $(){var e=(0,h.useRef)();return function(n){if(null==e.current){var r;e.current=new Promise((r=(0,u.default)(p().mark(function r(i){var a;return p().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,n();case 2:a=r.sent,e.current=null,i(a);case 5:case"end":return r.stop()}},r)})),function(e){return r.apply(this,arguments)}))}return e.current}}function J(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=(0,y.I0)(),a=(0,h.useRef)(!1);(0,h.useEffect)(function(){var o;null!=r&&r.includes(null==e||null===(o=e.response)||void 0===o?void 0:o.status)||!e||a.current||(a.current=!0,i((0,m.Mm)({message:n})))},[e])}function X(){var e=(0,y.I0)();return{showError:function(n){return e((0,m.Mm)({message:n}))},showSuccess:function(n){return e((0,m.Zq)({message:n}))}}}function ee(e){var n=(0,h.useState)(!0),r=n[0],i=n[1];return(0,h.useEffect)(function(){setTimeout(function(){i(!1)},e)},[]),r}function et(e){var n=(0,h.useRef)(e.reduce(function(e,n){return Q(Q({},e),{},(0,c.default)({},n,h.createRef()))},{})),r=(0,h.useState)({}),i=r[0],a=r[1],o=(0,h.useState)({firstRender:!0,data:{}}),s=o[0],f=o[1];return(0,h.useLayoutEffect)(function(){a(n.current),s.firstRender&&f({firstRender:!1,data:Object.entries(n.current).reduce(function(e,n){var r,i,a=(0,l.Z)(n,2),o=a[0],s=a[1];return Q(Q({},e),{},(0,c.default)({},o,{width:null==s||null===(r=s.current)||void 0===r?void 0:r.offsetWidth,height:null==s||null===(i=s.current)||void 0===i?void 0:i.offsetHeight}))},{})})},[]),{link:function(e){return{ref:n.current[e]}},getInternalProps:function(e){return e?i[e].current:i},getDimensions:function(e){return e?s.data[e]:s.data},dynamicWidth:function(e){var n;return(null===(n=s.data[e])||void 0===n?void 0:n.width)||"auto"},dynamicHeight:function(e){var n;return(null===(n=s.data[e])||void 0===n?void 0:n.height)||"auto"},isInDynamicRender:function(e){var n;return(null===(n=i[e])||void 0===n?void 0:n.current)!=null}}}function en(e){return q(e,{maxSizeMB:1,maxWidthOrHeight:800,useWebWorker:!0})}function er(e,n){var r=(0,h.useState)({original:!0,content:e}
394),i=r[0],a=r[1],o=(0,h.useContext)(g.t),s=o.queue,f=o.cache;return(0,h.useEffect)(function(){function r(){return(r=(0,u.default)(p().mark(function r(){return p().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,!f.current[n]){r.next=7;break}return r.next=4,f.current[n];case 4:r.t0=r.sent,r.next=10;break;case 7:return r.next=9,s.addRun((0,u.default)(p().mark(function n(){var r,i;return p().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,fetch(e,{method:"GET"});case 2:return r=n.sent,n.t0=en,n.next=6,r.blob();case 6:return n.t1=n.sent,n.next=9,(0,n.t0)(n.t1);case 9:return i=n.sent,n.abrupt("return",URL.createObjectURL(i));case 11:case"end":return n.stop()}},n)})));case 9:r.t0=r.sent;case 10:a({content:r.t0,original:!1}),r.next=17;break;case 14:r.prev=14,r.t1=r.catch(0),a({content:e,original:!0});case 17:case"end":return r.stop()}},r,null,[[0,14]])}))).apply(this,arguments)}return i.original&&function(){r.apply(this,arguments)}(),function(){null!=s&&s.clean()}},[e]),i.content}function ei(){var e=(0,h.useContext)(g.t),n=e.queue,r=e.cache;return{addCache:function(e,i){r.current[e]=n.addRun((0,u.default)(p().mark(function e(){var n,r;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch(i,{method:"GET"});case 3:return n=e.sent,e.t0=en,e.next=7,n.blob();case 7:return e.t1=e.sent,e.next=10,(0,e.t0)(e.t1);case 10:return r=e.sent,e.abrupt("return",URL.createObjectURL(r));case 14:return e.prev=14,e.t2=e.catch(0),e.abrupt("return",i);case 17:case"end":return e.stop()}},e,null,[[0,14]])})))},deleteCache:function(e){delete r.current[e]},setMinimumTime:function(e){return n.addRun(function(){return new Promise(function(n){return setTimeout(function(){return n()},e)})})}}}function ea(){var e,n=(0,h.useContext)(Y.b).swrMutations;return{mutateByKey:function(e,r){var i,a=n.current[e];return null!=a&&null==r?a.mutate():null==a||(null==a||null===(i=a.data)||void 0===i?void 0:i.data)==null||a.isError?null:r?a.mutate(r(a.data)):a.mutate()},getData:(e=(0,u.default)(p().mark(function e(r){var i;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(null!=(i=n.current[r])&&(null==i?void 0:i.data)!=null)){e.next=3;break}return e.abrupt("return",i.data);case 3:return e.next=5,i.mutate();case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}},e)})),function(n){return e.apply(this,arguments)}),updateSwrKey:function(e,r){n.current=Q(Q({},n.current),{},(0,c.default)({},e,r))}}}},75214:function(e,n,r){"use strict";r.d(n,{CU:function(){return y},D3:function(){return s},N9:function(){return g},Nq:function(){return b},Nt:function(){return w},PO:function(){return E},P_:function(){return p},RL:function(){return A},SN:function(){return S},U$:function(){return k},WQ:function(){return T},YF:function(){return j},YV:function(){return M},c0:function(){return d},cu:function(){return x},dB:function(){return f},do:function(){return l},f8:function(){return c},gR:function(){return u},mi:function(){return m},o1:function(){return I},pr:function(){return o},q7:function(){return N},v7:function(){return v},wQ:function(){return h},xp:function(){return C}});var i=r(83804),a=function(e,n){return function(r){return(0,i.send)(n,e,r)}};a("users/collaborations/opportunities","POST");var o=function(e){return a("users/collaborations/opportunities/".concat(e),"DELETE")},s=function(e){return a("projects/".concat(e,"/comment"),"POST")},f=a("chat/room","POST"),l=a("chat/room","Put"),u=a("chat/room","DELETE"),c=a("users/password/reset","POST"),d=a("users/password/reset","PATCH");a("users/search","POST");var p=function(e){return a("follow/".concat(e),"POST")},h=function(e){return a("follow/".concat(e),"DELETE")},y=a("register/","POST"),m=a("chat/channel","POST");a("chat/call","POST"),a("chat/answer","POST");var g=a("chat/access","POST"),b=a("users","PUT"),v=function(){return a("users/skills","PUT")},w=function(e){return a("users/skills/".concat(e),"DELETE")},x=function(){return a("users/styles","PUT")},T=function(e){return a("users/styles/".concat(e),"DELETE")},C=function(){return a("users/localization","PUT")},M=function(){return a("users/collaborations/availability/","PUT")};a("storage/uploadImage","POST");var A=a("users/image/profile","PUT"),E=a("users/image/cover","PUT"),I=a("users","POST"),S=function(e){return a("tracks/".concat(e),"PUT")},k=function(e){return a("feeds/activities/".concat(e,"/react"),"POST")},N=function(e){return a("feeds/activities/".concat(e,"/comments"),"POST")},j=function(e){return a("feeds/comments/".concat(e),"DELETE")}},78258:function(e,n,r){"use strict";r.d(n,{Z:function(){return o}});var i=r(68474),a=r(67294);function o(e){var n=(0,a.useContext)(i.J).internalSocket,r=function(e,r){return n.current.emit(e,r)};return null!=e?function(n){return r(e,n)}:function(e,n){return r(e,n)}}},68108:function(e,n,r){"use strict";r.d(n,{D:function(){return o}});var i=r(68474),a=r(67294);function o(e){var n=(0,a.useContext)(i.J).internalSocket;return function(r){return n.current.on(e,r),function(){n.current.off(e,r)}}}},13562:function(e,n,r){"use strict";r.d(n,{bo:function(){return j},o:function(){return w},SW:function(){return I},N2:function(){return N},qH:function(){return g},LU:function(){return b},cj:function(){return v},Q$:function(){return E},wl:function(){return k},O6:function(){return S},O2:function(){return M},vV:function(){return C},HH:function(){return A},YC:function(){return x},$G:function(){return T}});var i=r(92777),a=r(82262),o=r(50029),s=r(17674),f=r(64687),l=r.n(f),u=r(81424),c=r(48497),d=r(81369),p=r(5201),h=r(9858),y=r(7623),m=r(48764).Buffer;function g(e,n){return Object.fromEntries(Object.entries(n).filter(function(n){var r=(0,s.Z)(n,2),i=r[0],a=r[1];return e[i]!=a}))}function b(e){if(null==e)return"";var n=parseInt(e/3600),r=parseInt((e-3600*n)/60),i=parseInt(e-3600*n-60*r);return"".concat((n||"")+r,":").concat(i<10?"0".concat(i):i)}function v(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"dec",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"B";if(null==e)return"";var i="dec"==n?1e3:1024,a=Math.floor(Math.log(e)/Math.log(i));return"".concat(1*(e/Math.pow(i,a)).toFixed(2)," ").concat([r,"k".concat(r),"M".concat(r),"G".concat(r),"T".concat(r),"P".concat(r),"E".concat(r),"Z".concat(r),"Y".concat(r)][a])}function w(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"image.png";if(!e)return null;var r=e.split(","),i=r[0].match(/:(.*?);/)[1];return new File([m.from(r[1],"base64")],n,{type:i})}function x(e,n){return e.sort(function(e,r){return n(e)<n(r)?-1:n(r)<n(e)?1:0})}function T(e,n,r){if(!e)return"";if((null==e?void 0:e.length)<=n)return e;var i=n-(r=r||"...").length,a=Math.floor(i/2);return e.substr(0,Math.ceil(i/2))+r+e.substr(e.length-a)}function C(e){return"string"==typeof e&&y.tA.test(e)}function M(e,n){return JSON.stringify(e)===JSON.stringify(n)}function A(e){var n;try{n=new URL(e)}catch(e){return!1}return["http:","https:"].includes(n.protocol)}function E(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"https";return e.includes("://")?e:"".concat(n,"://").concat(e)}function I(e){var n=new Date,r=(0,u.Z)(n,e);return 0===r?"today":1===r?"yesterday":r<7?"".concat(r," days ago"):(0,c.Z)(e,"MM/dd/yyyy")}function S(e){return e.reduce(function(e,n){var r=new Date(n.createdAt).toDateString();return e[r]||(e[r]=[]),e[r].push(n),e},{})}function k(e){return e.reduce(function(e,n){var r=new Date(n.createdAt),i="OLDER";return function(e){return(0,p.Z)(1,arguments),(0,d.Z)(e,Date.now())}(r)&&(i="TODAY"),function(e){return(0,p.Z)(1,arguments),(0,d.Z)(e,(0,h.Z)(Date.now(),1))}
394(r)&&(i="YESTERDAY"),e[i]||(e[i]=[]),e[i].push(n),e},{})}function N(e,n){return n.some(function(n){return e.name.endsWith(n)})}var j=function(){function e(){(0,i.Z)(this,e),this.list=[],this.promise=Promise.resolve(),this.running=!1}return(0,a.Z)(e,[{key:"addRun",value:function(e){var n=this,r=new Promise(function(r){n.list.push((0,o.default)(l().mark(function n(){return l().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.t0=r,n.next=3,e();case 3:return n.t1=n.sent,n.abrupt("return",(0,n.t0)(n.t1));case 5:case"end":return n.stop()}},n)})))});return this.getAllProcs(),r}},{key:"getAllProcs",value:function(){var e,n=this,r=function e(){var r;return n.list.length<1?Promise.resolve():new Promise((r=(0,o.default)(l().mark(function r(i){var a;return l().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return a=n.list.shift(),r.next=3,a();case 3:return r.next=5,e();case 5:i(r.sent);case 7:case"end":return r.stop()}},r)})),function(e){return r.apply(this,arguments)}))};return this.list.length<1?Promise.resolve():(this.running||(this.running=!0,this.promise=new Promise((e=(0,o.default)(l().mark(function e(i){return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r();case 2:n.running=!1,i(n.getAllProcs());case 4:case"end":return e.stop()}},e)})),function(n){return e.apply(this,arguments)}))),this.promise)}},{key:"clean",value:function(){this.list=[],this.promise=Promise.resolve(),this.running=!1}}]),e}()},63925:function(e,n,r){"use strict";r.d(n,{Gr:function(){return b},Gu:function(){return f},Jr:function(){return p},Kz:function(){return l},Lg:function(){return h},OL:function(){return g},Uk:function(){return d},WU:function(){return m},cr:function(){return y},d8:function(){return u},gC:function(){return o},k:function(){return v},k8:function(){return s},mc:function(){return a},w5:function(){return c},yB:function(){return w}});var i=r(85893),a=function(e){var n=e.size,r=void 0===n?"1em":n,a=e.color,o=void 0===a?"#676767":a,s=e.secundaryColor,f=void 0===s?"#7C7C7C":s,l=e.thirdColor;return(0,i.jsxs)("svg",{width:r,height:r,viewBox:"0 0 10 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{d:"M4.998 0l-.11.367v10.638l.11.108 4.998-2.92L4.998 0z",fill:o}),(0,i.jsx)("path",{d:"M4.999 0L0 8.194l4.999 2.919V0z",fill:f}),(0,i.jsx)("path",{d:"M4.999 12.047l-.061.074v3.79l.061.178 5.002-6.96-5.002 2.918z",fill:o}),(0,i.jsx)("path",{d:"M4.999 16.089v-4.042L0 9.13l4.999 6.959z",fill:f}),(0,i.jsx)("path",{d:"M4.998 11.113l4.998-2.92L4.998 5.95v5.164z",fill:void 0===l?"#484848":l}),(0,i.jsx)("path",{d:"M0 8.194l4.998 2.919V5.949L0 8.194z",fill:o})]})},o=function(e){var n=e.size,r=void 0===n?"1em":n,a=e.color;return(0,i.jsx)("svg",{width:r,height:r,viewBox:"0 0 8 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M4 0.75H7.5V3.07422H5.17578V8.92578C5.17578 9.5638 4.9388 10.1107 4.46484 10.5664C4.00911 11.0221 3.46224 11.25 2.82422 11.25C2.1862 11.25 1.63932 11.0221 1.18359 10.5664C0.727865 10.1107 0.5 9.5638 0.5 8.92578C0.5 8.28776 0.727865 7.74089 1.18359 7.28516C1.63932 6.8112 2.1862 6.57422 2.82422
3946.57422C3.20703 6.57422 3.59896 6.68359 4 6.90234V0.75Z",fill:void 0===a?"#08101C":a})})},s=function(){return(0,i.jsxs)("svg",{width:"20",height:"18",viewBox:"0 0 16 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{d:"M14.3633 8.51172C14.3633 8.72266 14.293 8.89844 14.1523 9.03906C14.0117 9.17969 13.8359 9.25 13.625 9.25H10.6367C10.4258 9.25 10.2148 9.17969 10.0742 9.03906C9.93359 8.89844 9.86328 8.72266 9.86328 8.51172V4.75H10.8125V8.125H11.6562V5.48828H12.6055V8.125H13.4492V4.75H14.3633V8.51172ZM9.125 5.69922H7.26172V6.54297H9.125V7.49219H7.26172V8.30078H9.125V9.25H6.13672V4.75H9.125V5.69922ZM5.36328 9.25H4.48438L2.55078 6.61328V9.25H1.63672V4.75H2.55078L4.44922 7.38672V4.75H5.36328V9.25ZM14.0117 0.988281H1.98828C1.56641 0.988281 1.21484 1.16406 0.933594 1.44531C0.652344 1.72656 0.511719 2.07812 0.511719 2.5V11.5C0.511719 11.9219 0.652344 12.3086 0.933594 12.5898C1.21484 12.8711 1.56641 13.0117 1.98828 13.0117H14.0117C14.4336 13.0117 14.7852 12.8711 15.0664 12.5898C15.3477 12.3086 15.4883 11.9219 15.4883 11.5V2.5C15.4883 2.07812 15.3477 1.72656 15.0664 1.44531C14.7852 1.16406 14.4336 0.988281 14.0117 0.988281Z",fill:"url(#paint0_linear_3409_1863)"}),(0,i.jsx)("defs",{children:(0,i.jsxs)("linearGradient",{id:"paint0_linear_3409_1863",x1:"-3.025",y1:"-3.78393",x2:"18.4304",y2:"17.4143",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#0575E6"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#00F260"})]})})]})},f=function(e){var n=e.size,r=void 0===n?"1em":n,a=e.color;return(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",height:r,width:r,viewBox:"0 0 24 24",fill:void 0===a?"#08101C":a,children:[(0,i.jsx)("path",{d:"M0 0h24v24H0V0z",fill:"none"}),(0,i.jsx)("path",{d:"M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55l
394-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z"})]})},l=function(e){var n=e.size,r=void 0===n?"1em":n,a=e.color;return(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",height:r,width:r,viewBox:"0 0 24 24",fill:void 0===a?"#08101C":a,children:[(0,i.jsx)("path",{d:"M0 0h24v24H0V0z",fill:"none"}),(0,i.jsx)("path",{d:"M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"})]})},u=function(e){var n=e.size,r=void 0===n?"1em":n,a=e.color;return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 43 40",version:"1.1",height:r,width:r,children:(0,i.jsx)("path",{d:"m12.5 0l-12.5 8.1 8.7 7 12.5-7.8-8.7-7.3zm-12.5 21.9l12.5 8.2 8.7-7.3-12.5-7.7-8.7 6.8zm21.2 0.9l8.8 7.3 12.4-8.1-8.6-6.9-12.6 7.7zm21.2-14.7l-12.4-8.1-8.8 7.3 12.6 7.8 8.6-7zm-21.1 16.3l-8.8 7.3-3.7-2.5v2.8l12.5 7.5 12.5-7.5v-2.8l-3.8 2.5-8.7-7.3z",fill:void 0===a?"#007EE5":a})})},c=function(e){var n=e.size,r=void 0===n?"2em":n,a=e.color,o=void 0===a?"black":a;return(0,i.jsx)("svg",{width:r,height:r,viewBox:"0 0 195.983 196.796",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsxs)("g",{transform:"matrix(1, 0, 0, 1, -109.252747, -50.92725)",children:[(0,i.jsx)("path",{d:"M 299.437 101.788 C 303.123 105.474 305.203 110.464 305.236 115.668 L 305.236 228.055 C 305.203 233.259 303.123 238.249 299.437 241.935 C 295.751 245.61 290.772 247.689 285.569 247.723 L 128.226 247.723 C 123.147 247.498 118.37 245.318 114.852 241.665 C 111.335 238.001 109.368 233.135 109.345 228.055 L 109.345 115.668 C 109.222 114.398 109.222 113.117 109.345 111.847 C 109.39 111.442 109.39 111.026 109.345 110.611 C 109.548 109.768 109.817 108.947 110.132 108.138 L 110.806 106.902 C 111.132 106.205 111.503 105.531 111.93 104.879 C 112.155 104.463 112.47 104.081 112.829 103.755 L 114.178 102.069 L 115.414 100.945 L 116.745 99.805 L 132.301 94.102 L 260.394 51.045 C 261.282 50.888 262.192 50.888 263.091 51.045 C 268.295 51.079 273.273 53.158 276.96 56.833 C 280.646 60.52 282.725 65.51 282.759 70.713 L 282.759 96 L 285.569 96 C 290.772 96.034 295.751 98.113 299.437 101.788 Z M 180.149 96 L 265.901 96 L 265.901 70.713 C 265.89 70.129 265.698 69.555 265.361 69.072 C 265.013 68.589 264.541 68.218 263.99 68.016 L 180.149 96 Z M 288.378 115.668 C 288.378 114.926 288.075 114.207 287.547 113.679 C 287.018 113.15 286.31 112.858 285.569 112.858 L 128.226 112.858 C 127.473 112.858 126.765 113.15 126.237 113.679 C 125.709 114.207 125.417 114.926 125.417 115.668 L 125.417 228.055 C 125.417 228.797 125.709 229.516 126.237 230.044 C 126.765 230.573 127.473 230.865 128.226 230.865 L 285.569 230.865 C 286.31 230.865 287.018 230.573 287.547 230.044 C 288.075 229.516 288.378 228.797 288.378 228.055 L 288.378 115.668 Z",fill:o}),(0,i.jsx)("path",{d:"M 257.472 185.91 C 265.226 185.91 271.52 179.616 271.52 171.862 C 271.52 164.107 265.226 157.813 257.472 157.813 C 249.706 157.813 243.423 164.107 243.423 171.862 C 243.423 179.616 249.706 185.91 257.472 185.91 Z",fill:o})]})})},d=function(e){var n=e.size,r=e.color;return(0,i.jsx)("svg",{height:void 0===n?"1em":n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M3 16V4C3 2.89543 3.89543 2 5 2H15M9 22H18C19.1046 22 20 21.1046 20 20V8C20 6.89543 19.1046 6 18 6H9C7.89543 6 7 6.89543 7 8V20C7 21.1046 7.89543 22 9 22Z",stroke:void 0===r?"black":r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},p=function(e){var n=e.size,r=e.color;return(0,i.jsx)("svg",{height:void 0===n?"1em":n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("g",{id:"Interface / Check",children:(0,i.jsx)("path",{id:"Vector",d:"M6 12L10.2426 16.2426L18.727 7.75732",stroke:void 0===r?"black":r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})},h=function(e){var n=e.size,r=void 0===n?"1em":n;return(0,i.jsxs)("svg",{viewBox:"0 0 45 45",style:{enableBackgroun
394d:"new 0 0 45 45"},version:"1.1",id:"svg2",height:r,width:r,children:[(0,i.jsx)("defs",{id:"defs6",children:(0,i.jsx)("clipPath",{id:"clipPath16",clipPathUnits:"userSpaceOnUse",children:(0,i.jsx)("path",{id:"path18",d:"M 0,36 36,36 36,0 0,0 0,36 Z"})})}),(0,i.jsx)("g",{transform:"matrix(1.25,0,0,-1.25,0,45)",id:"g10",children:(0,i.jsx)("g",{id:"g12",children:(0,i.jsxs)("g",{"clip-path":"url(#clipPath16)",id:"g14",children:[(0,i.jsx)("g",{transform:"translate(2,20)",id:"g20",children:(0,i.jsx)("path",{id:"path22",style:{fill:"#ffcc4d",fillOpacity:1,fillRule:"nonzero",stroke:"none"},d:"m 0,0 c 0,-8.837 7.164,-16 16,-16 8.837,0 16,7.163 16,16 C 32,8.836 24.837,16 16,16 7.164,16 0,8.836 0,0"})}),(0,i.jsx)("g",{transform:"translate(15.4063,25.5)",id:"g24",children:(0,i.jsx)("path",{id:"path26",style:{fill:"#664500",fillOpacity:1,fillRule:"nonzero",stroke:"none"},d:"m 0,0 c 0,-1.381 -0.896,-2.5 -2,-2.5 -1.104,0 -2,1.119 -2,2.5 0,1.38 0.896,2.5 2,2.5 1.104,0 2,-1.12 2,-2.5"})}),(0,i.jsx)("g",{transform:"translate(26,24.5)",id:"g28",children:(0,i.jsx)("path",{id:"path30",style:{fill:"#664500",fillOpacity:1,fillRule:"nonzero",stroke:"none"},d:"m 0,0 c 0,-1.381 -0.895,-2.5 -2,-2.5 -1.104,0 -2,1.119 -2,2.5 0,1.38 0.896,2.5 2,2.5 1.105,0 2,-1.12 2,-2.5"})}),(0,i.jsx)("g",{transform:"translate(9.6709,29.667)",id:"g32",children:(0,i.jsx)("path",{id:"path34",style:{fill:"#664500",fillOpacity:1,fillRule:"nonzero",stroke:"none"},d:"M 0,0 C -0.164,0.087 -0.303,0.223 -0.391,0.398 -0.607,0.827 -0.431,1.325 0.002,1.511 4.268,3.341 7.701,1.554 7.845,1.477 8.278,1.246 8.453,0.729 8.236,0.323 8.02,-0.082 7.496,-0.223 7.063,0.005 6.94,0.069 4.231,1.437 0.785,-0.042 0.528,-0.151 0.238,-0.127 0,0"})}),(0,i.jsx)("g",{transform:"translate(14.7427,16.4277)",id:"g36",children:(0,i.jsx)("path",{id:"path38",style:{fill:"#664500",fillOpacity:1,fillRule:"nonzero",stroke:"none"},d:"M 0,0 C -0.136,0.127 -0.236,0.293 -0.276,0.486 -0.375,0.955 -0.078,1.392 0.389,1.46 4.981,2.138 7.841,-0.469 7.962,-0.58 8.322,-0.914 8.357,-1.457 8.044,-1.795 7.732,-2.131 7.189,-2.133 6.83,-1.801 6.726,-1.709 4.458,0.307 0.748,-0.24 0.471,-0.281 0.197,-0.184 0,0"})}),(0,i.jsx)("g",{transform:"translate(20.4307,25.917)",id:"g40",children:(0,i.jsx)("path",{id:"path42",style:{fill:"#664500",fillOpacity:1,fillRule:"nonzero",stroke:"none"},d:"M 0,0 C -0.156,0.098 -0.286,0.243 -0.362,0.424 -0.549,0.866 -0.339,1.352 0.105,1.508 4.486,3.044 7.79,1.028 7.929,0.941 8.344,0.681 8.483,0.154 8.24,-0.237 7.998,-0.627 7.464,-0.732 7.049,-0.475 6.929,-0.402 4.321,1.146 0.782,-0.095 0.518,-0.187 0.23,-0.143 0,0"})}),(0,i.jsx)("g",{transform:"translate(17.2764,0.8682)",id:"g44",children:(0,i.jsx)("path",{id:"path46",style:{fill:"#f4900c",fillOpacity:1,fillRule:"nonzero",stroke:"none"},d:"m 0,0 c 0,0 1.265,0.411 1.429,1.352 0.173,0.971 -0.624,1.167 -0.624,1.167 0,0 1.041,0.208 1.172,1.376 0.123,1.1 -0.862,1.363 -0.862,1.363 0,0 0.97,0.4 1.016,1.539 0.038,0.959 -0.995,1.428 -0.995,1.428 0,0 5.038,1.22 5.555,1.34 0.516,0.121 1.321,0.616 1.07,1.695 -0.249,1.08 -1.204,1.118 -1.698,1.003 -0.494,-0.116 -6.744,-1.567 -8.9,-2.069 -0.23,-0.053 -1.308,-0.302 -1.439,-0.334 -0.54,-0.127 -0.785,0.111 -0.405,0.512 0.509,0.536 0.833,1.129 0.947,2.113 0.119,1.036 -0.232,2.314 -0.433,2.809 -0.374,0.921 -1.005,1.649 -1.734,1.899 -1.138,0.39 -1.946,-0.321 -1.542,-1.561 0.604,-1.855 0.209,-3.375 -0.833,-4.293 -2.449,-2.157 -3.589,-3.695 -2.83,-6.973 0.827,-3.575 4.377,-5.876 7.952,-5.048 C -2.965,-0.64 0,0 0,0"})})]})})})]})},y=function(e){var n=e.size,r=void 0===n?"1em":n,a=e.color;return(0,i.jsx)("svg",{viewBox:"0.0002 0 880.3998 800",height:r,width:r,children:(0,i.jsx)("path",{fill:void 0===a?"rgba(0, 0, 0, 0.6)":a,transform:"matrix(0.9999999999999999, 0, 0, 0.9999999999999999, 0, 0)",d:"M 435.4 720 C 438.067 720 440.733 719.333 443.4 718 C 446.067 716.667 448.067 715.333 449.4 714 L 777.4 386 C 785.4 378 791.233 369 794.9 359 C 798.567 349 800.4 339 800.4 329 C 800.4 318.333 798.567 308.167 794.9 298.5 C 791.233 288.833 785.4 280.333 7
39477.4 273 L 607.4 103 C 600.067 95 591.567 89.167 581.9 85.5 C 572.233 81.833 562.067 80 551.4 80 C 541.4 80 531.4 81.833 521.4 85.5 C 511.4 89.167 502.4 95 494.4 103 L 483.4 114 L 557.4 189 C 567.4 198.333 574.733 209 579.4 221 C 584.067 233 586.4 245.667 586.4 259 C 586.4 287 576.9 310.5 557.9 329.5 C 538.9 348.5 515.4 358 487.4 358 C 474.067 358 461.233 355.667 448.9 351 C 436.567 346.333 425.733 339.333 416.4 330 L 341.4 256 L 166.4 431 C 164.4 433 162.9 435.167 161.9 437.5 C 160.9 439.833 160.4 442.333 160.4 445 C 160.4 450.333 162.4 455.167 166.4 459.5 C 170.4 463.833 175.067 466 180.4 466 C 183.067 466 185.733 465.333 188.4 464 C 191.067 462.667 193.067 461.333 194.4 460 L 330.4 324 L 386.4 380 L 251.4 516 C 249.4 518 247.9 520.167 246.9 522.5 C 245.9 524.833 245.4 527.333 245.4 530 C 245.4 535.333 247.4 540 251.4 544 C 255.4 548 260.067 550 265.4 550 C 268.067 550 270.733 549.333 273.4 548 C 276.067 546.667 278.067 545.333 279.4 544 L 415.4 409 L 471.4 465 L 336.4 601 C 334.4 602.333 332.9 604.333 331.9 607 C 330.9 609.667 330.4 612.333 330.4 615 C 330.4 620.333 332.4 625 336.4 629 C 340.4 633 345.067 635 350.4 635 C 353.067 635 355.567 634.5 357.9 633.5 C 360.233 632.5 362.4 631 364.4 629 L 500.4 494 L 556.4 550 L 420.4 686 C 418.4 688 416.9 690.167 415.9 692.5 C 414.9 694.833 414.4 697.333 414.4 700 C 414.4 705.333 416.567 710 420.9 714 C 425.233 718 430.067 720 435.4 720 Z M 434.4 800 C 409.733 800 387.9 791.833 368.9 775.5 C 349.9 759.167 338.733 738.667 335.4 714 C 312.733 710.667 293.733 701.333 278.4 686 C 263.067 670.667 253.733 651.667 250.4 629 C 227.733 625.667 208.9 616.167 193.9 600.5 C 178.9 584.833 169.733 566 166.4 544 C 141.067 540.667 120.4 529.667 104.4 511 C 88.4 492.333 80.4 470.333 80.4 445 C 80.4 431.667 82.9 418.833 87.9 406.5 C 92.9 394.167 100.067 383.333 109.4 374 L 341.4 143 L 472.4 274 C 473.733 276 475.733 277.5 478.4 278.5 C 481.067 279.5 483.733 280 486.4 280 C 492.4 280 497.4 278.167 501.4 274.5 C 505.4 270.833 507.4 266 507.4 260 C 507.4 257.333 506.9 254.667 505.9 252 C 504.9 249.333 503.4 247.333 501.4 246 L 358.4 103 C 351.067 95 342.567 89.167 332.9 85.5 C 323.233 81.833 313.067 80 302.4 80 C 292.4 80 282.4 81.833 272.4 85.5 C 262.4 89.167 253.4 95 245.4 103 L 104.4 245 C 98.4 251 93.4 258 89.4 266 C 85.4 274 82.733 282 81.4 290 C 80.067 298 80.067 306.167 81.4 314.5 C 82.733 322.833 85.4 330.667 89.4 338 L 31.4 396 C 20.067 380.667 11.733 363.833 6.4 345.5 C 1.067 327.167 -0.933 308.667 0.4 290 C 1.733 271.333 6.4 253.167 14.4 235.5 C 22.4 217.833 33.4 202 47.4 188 L 188.4 47 C 204.4 31.667 222.233 20 241.9 12 C 261.567 4 281.733 0 302.4 0 C 323.067 0 343.233 4 362.9 12 C 382.567 20 400.067 31.667 415.4 47 L 426.4 58 L 437.4 47 C 453.4 31.667 471.233 20 490.9 12 C 510.567 4 530.733 0 551.4 0 C 572.067 0 592.233 4 611.9 12 C 631.567 20 649.067 31.667 664.4 47 L 833.4 216 C 848.733 231.333 860.4 249 868.4 269 C 876.4 289 880.4 309.333 880.4 330 C 880.4 350.667 876.4 370.833 868.4 390.5 C 860.4 410.167 848.733 427.667 833.4 443 L 505.4 770 C 496.067 779.333 485.233 786.667 472.9 792 C 460.567 797.333 447.733 800 434.4 800 Z M 335.4 240 Z"})})},m=function(e){var n=e.size,r=void 0===n?"1em":n,a=e.color;return(0,i.jsx)("svg",{viewBox:"0 0 720 800",xmlns:"http://www.w3.org/2000/svg",height:r,width:r,children:(0,i.jsx)("path",{fill:void 0===a?"rgba(0, 0, 0, 0.6)":a,d:"M 360 800 L 0 600 L 0 200 L 360 0 L 720 200 L 720 600 L 360 800 Z M 244 290 C 259.333 274 277 261.667 297 253 C 317 244.333 338 240 360 240 C 382 240 403 244.333 423 253 C 443 261.667 460.667 274 476 290 L 596 223 L 360 92 L 124 223 L 244 290 Z M 320 686 L 320 555 C 284 545.667 255 526.667 233 498 C 211 469.333 200 436.667 200 400 C 200 392.667 200.333 385.833 201 379.5 C 201.667 373.167 203 366.667 205 360 L 80 290 L 80 553 L 320 686 Z M 360 480 C 382 480 400.833 472.167 416.5 456.5 C 432.167 440.833 440 422 440 400 C 440 378 432.167 359.167 416.5 343.5 C 400.833 327.833 382 320 360 320 C 338 320 319.167 327.833 303.5 343.5 C 287.833 359.167 280 378 280 400 C 280 422 287.833 440.833 303.5 456.5 C 319.167 472.167 338 480 360 480 Z M 400 686 L 640 553 L 640 290 L 515 360 C 517 366.667 518.333 373.167 519 379.5 C 519.667 385.833 520 392.667 520 400 C 520 436.667 509 469.333 487 498 C 465 526.667 436 545.667 400 555 L 400 686 Z",transform:"matrix(0.9999999999999999, 0, 0, 0.9999999999999999, 0, 0)"})})},g=function(e){var n=e.size,r=void 0===n?"1em":n,a=e.color;return(0,i.jsx)("svg",{viewBox:"0 0 299.924 239.939",xmlns:"http://www.w3.org/2000/svg",height:r,width:r,children:(0,i.jsx)("path",{fill:void 0===a?"rgba(0, 0, 0, 0.6)":a,d:"M 149.962 194.95 C 154.211 194.95 157.772 193.513 160.647 190.639 C 163.521 187.765 164.958 184.203 164.958 179.954 C 164.958 175.705 163.521 172.144 160.647 169.269 C 157.772 166.395 154.211 164.958 149.962 164.958 C 145.713 164.958 142.152 166.395 139.277 169.269 C 136.403 172.144 134.966 175.705 134.966 179.954 C 134.966 184.203 136.403 187.765 139.277 190.639 C 142.152 193.513 145.713 194.95 149.962 194.95 Z M 149.962 134.966 C 154.211 134.966 157.772 133.529 160.647 130.654 C 163.521 127.78 164.958 124.218 164.958 119.969 C 164.958 115.721 163.521 112.159 160.647 109.285 C 157.772 106.41 154.211 104.973 149.962 104.973 C 145.713 104.973 142.152 106.41 139.277 109.285 C 136.403 112.159 134.966 115.721 134.966 119.969 C 134.966 124.218 136.403 127.78 139.277 130.654 C 142.152 133.529 145.713 134.966 149.962 134.966 Z M 149.962 74.981 C 154.211 74.981 157.772 73.544 160.647 70.669 C 163.521 67.795 164.958 64.233 164.958 59.985 C 164.958 55.736 163.521 52.174 160.647 49.3 C 157.772 46.425 154.211 44.988 149.962 44.988 C 145.713 44.988 142.152 46.425 139.277 49.3 C 136.403 52.174 134.966 55.736 134.966 59.985 C 134.966 64.233 136.403 67.795 139.277 70.669 C 142.152 73.544 145.713 74.981 149.962 74.981 Z M 269.932 239.939 L 29.992 239.939 C 21.745 239.939 14.684 237.002 8.81 231.129 C 2.937 225.255 0 218.195 0 209.947 L 0 149.962 C 8.248 149.962 15.309 147.
394025 21.182 141.151 C 27.056 135.278 29.992 128.217 29.992 119.969 C 29.992 111.721 27.056 104.661 21.182 98.787 C 15.309 92.914 8.248 89.977 0 89.977 L 0 29.992 C 0 21.744 2.937 14.684 8.81 8.81 C 14.684 2.936 21.745 0 29.992 0 L 269.932 0 C 278.18 0 285.24 2.936 291.114 8.81 C 296.988 14.684 299.924 21.744 299.924 29.992 L 299.924 89.977 C 291.676 89.977 284.616 92.914 278.742 98.787 C 272.868 104.661 269.932 111.721 269.932 119.969 C 269.932 128.217 272.868 135.278 278.742 141.151 C 284.616 147.025 291.676 149.962 299.924 149.962 L 299.924 209.947 C 299.924 218.195 296.988 225.255 291.114 231.129 C 285.24 237.002 278.18 239.939 269.932 239.939 Z M 269.932 209.947 L 269.932 171.706 C 260.684 166.208 253.373 158.897 248 149.774 C 242.626 140.652 239.939 130.717 239.939 119.969 C 239.939 109.222 242.626 99.287 248 90.164 C 253.373 81.042 260.684 73.731 269.932 68.232 L 269.932 29.992 L 29.992 29.992 L 29.992 68.232 C 39.24 73.731 46.551 81.042 51.924 90.164 C 57.298 99.287 59.985 109.222 59.985 119.969 C 59.985 130.717 57.298 140.652 51.924 149.774 C 46.551 158.897 39.24 166.208 29.992 171.706 L 29.992 209.947 L 269.932 209.947 Z M 149.962 119.969 Z",transform:"matrix(0.9999999999999999, 0, 0, 0.9999999999999999, 0, 0)"})})},b=function(e){var n=e.size,r=void 0===n?"1em":n,a=e.color;return(0,i.jsx)("svg",{viewBox:"0 0 720 720",xmlns:"http://www.w3.org/2000/svg",height:r,width:r,fill:void 0===a?"black":a,children:(0,i.jsx)("path",{d:"M 80 720 C 58 720 39.167 712.167 23.5 696.5 C 7.833 680.833 0 662 0 640 L 0 80 C 0 58 7.833 39.167 23.5 23.5 C 39.167 7.833 58 0 80 0 L 320 0 L 320 80 L 80 80 L 80 640 L 640 640 L 640 400 L 720 400 L 720 640 C 720 662 712.167 680.833 696.5 696.5 C 680.833 712.167 662 720 640 720 L 80 720 Z M 520 320 L 520 200 L 400 200 L 400 120 L 520 120 L 520 0 L 600 0 L 600 120 L 720 120 L 720 200 L 600 200 L 600 320 L 520 320 Z",transform:"matrix(0.9999999999999999, 0, 0, 0.9999999999999999, 0, 0)"})})},v=function(e){var n=e.size;return(0,i.jsxs)("svg",{width:void 0===n?"1em":n,viewBox:"0 0 535 123",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsxs)("g",{"clip-path":"url(#clip0_3340_1163)",children:[(0,i.jsx)("mask",{id:"mask0_3340_1163",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"535",height:"123",children:(0,i.jsx)("path",{d:"M534.515 0H0V122.14H534.515V0Z",fill:"white"})}),(0,i.jsxs)("g",{mask:"url(#mask0_3340_1163)",children:[(0,i.jsx)("path",{d:"M157.747 39.9481V56.7421H178.147V63.6481H157.747V80.8351H180.506V88.1351H148.801V32.7351H180.501V39.9551L157.747 39.9481ZM210.955 80.3601V88.1291H205.461C200.857 88.1291 197.365 87.0174 194.984 84.7941C192.603 82.5707 191.413 78.8704 191.414 73.6931V52.5041H185.214V44.8921H191.414V34.1411H200.439V44.8921H210.876V52.5041H200.439V73.8501C200.439 76.3087 200.897 78.0087 201.812 78.9501C202.727 79.8914 204.336 80.3614 206.638 80.3601H210.955ZM243.523 44.1861C248.546 44.1861 252.574 45.8081 255.608 49.0521C258.642 52.2961 260.159 56.9261 260.16 62.9421V88.1331H251.214V63.8841C251.214 60.0127 250.22 57.0174 248.232 54.8981C247.175 53.8199 245.9 52.979 244.493 52.4311C243.086 51.8831 241.578 51.6408 240.07 51.7201C238.484 51.6502 236.901 51.9185 235.426 52.5071C233.951 53.0957 232.618 53.9911 231.516 55.1341C229.371 57.4101 228.298 60.7454 228.298 65.1401V88.1331H219.352V30.0601H228.298V54.3881C229.332 51.2955 231.378 48.6414 234.105 46.8541C236.91 45.0506 240.189 44.1219 243.523 44.1861ZM310.778 64.4331C310.793 65.7217 310.688 67.0089 310.464 68.2781H277.189C277.346 72.7254 278.575 76.0214 280.877 78.1661C283.196 80.3184 286.268 81.474 289.431 81.3841C292.136 81.4689 294.794 80.6699 297.004 79.1081C299.018 77.6729 300.386 75.5017 300.81 73.0651H310.384C309.848 76.0105 308.61 78.7833 306.774 81.1481C304.883 83.5495 302.431 85.4495 299.633 86.6811C296.546 88.0477 293.199 88.7299 289.823 88.6811C285.956 88.7575 282.133 87.8388 278.723 86.0131C275.507 84.2364 272.877 81.5647 271.15 78.3221C269.246 74.6684 268.301 70.5909 268.403 66.4721C268.306 62.3787 269.252 58.3279 271.15 54.7001C272.877 51.4575 275.507 48.7857 278.723 47.0091C282.133 45.1833 285.956 44.2646 289.823 44.3411C293.687 44.252 297.509 45.1573 300.923 46.9701C303.996 48.6303 306.529 51.1357 308.223 54.1901C309.944 57.3268 310.824 60.8555 310.777 64.4331H310.778ZM301.753 64.1981C301.936 61.7426 301.433 59.2847 300.301 57.0981C299.309 55.2655 297.773 53.7851 295.906 52.8601C294.013 51.9364 291.93 51.4663 289.824 51.4871C286.589 51.3873 283.441 52.5401 281.035 54.7051C278.681 56.8504 277.399 60.0171 277.19 64.2051L301.753 64.1981ZM328.353 53.3681C329.776 50.5876 331.951 48.2627 334.631 46.6581C337.48 44.9757 340.74 44.1197 344.048 44.1861V53.9171H341.38C337.456 53.9171 334.304 54.8717 331.924 56.7811C329.544 58.6904 328.356 61.8427 328.361 66.2381V88.1381H319.415V44.8921H328.361L328.353 53.3681ZM364.923 44.3431C369.998 44.3431 374.064 45.6381 377.123 48.228
3941C380.218 50.8792 382.218 54.5857 382.734 58.6281H374.261C373.977 56.4278 372.904 54.4056 371.24 52.9381C369.398 51.4322 367.063 50.6633 364.687 50.7801C362.809 50.6599 360.952 51.2323 359.468 52.3891C358.855 52.9314 358.372 53.604 358.052 54.3576C357.733 55.1111 357.587 55.9266 357.624 56.7441C357.599 57.3573 357.705 57.9689 357.935 58.5379C358.165 59.107 358.514 59.6205 358.958 60.0441C359.92 60.9244 361.056 61.5928 362.293 62.0061C364.162 62.6266 366.061 63.1506 367.983 63.5761C371.227 64.3081 375.87 65.8521 375.87 65.8521C375.87 65.8521 379.611 67.8791 381.049 69.5801C382.58 71.5603 383.346 74.0259 383.207 76.5251C383.252 78.2096 382.903 79.8814 382.187 81.4073C381.472 82.9331 380.411 84.2709 379.087 85.3141C376.34 87.5641 372.64 88.6891 367.987 88.6891C362.598 88.6891 358.243 87.4334 354.921 84.9221C353.267 83.6612 351.883 82.0805 350.852 80.2739C349.821 78.4673 349.165 76.4717 348.921 74.4061H357.632C357.736 75.5248 358.068 76.6103 358.608 77.5956C359.148 78.5809 359.884 79.4452 360.771 80.1351C362.851 81.6808 365.402 82.4582 367.991 82.3351C369.832 82.4402 371.643 81.8366 373.053 80.6481C373.653 80.11 374.128 79.4476 374.446 78.707C374.764 77.9665 374.916 77.1656 374.893 76.3601C374.926 75.6927 374.817 75.0258 374.574 74.4036C374.33 73.7813 373.957 73.2178 373.48 72.7501C372.463 71.8156 371.259 71.1068 369.949 70.6701C368.046 70.042 366.107 69.531 364.142 69.1401C361.549 68.5654 358.994 67.8306 356.491 66.9401C354.533 66.2104 352.801 64.9789 351.468 63.3691C349.994 61.4536 349.255 59.0726 349.388 56.6591C349.34 54.957 349.687 53.2669 350.401 51.7214C351.116 50.176 352.18 48.8173 353.508 47.7521C356.255 45.4794 360.061 44.3431 364.926 44.3431H364.923ZM411.381 44.3431C416.981 44.3431 421.611 45.8211 425.271 48.7771C428.971 51.7987 431.407 56.0959 432.098 60.8231H422.598C422.186 58.2847 420.826 55.9973 418.792 54.4231C416.599 52.8229 413.932 52.0075 411.219 52.1081C409.604 52.0694 407.999 52.3747 406.51 53.0038C405.022 53.633 403.685 54.5715 402.587 55.7571C400.285 58.1897 399.134 61.7604 399.134 66.4691C399.134 71.1777 400.285 74.7614 402.587 77.2201C403.679 78.4157 405.014 79.3635 406.503 79.9997C407.992 80.6358 409.6 80.9456 411.219 80.9081C413.94 81.0122 416.615 80.1838 418.801 78.5601C420.83 76.9666 422.188 74.6706 422.607 72.1251H432.107C431.41 76.8611 428.977 81.1687 425.28 84.2101C421.618 87.1921 416.988 88.6831 411.39 88.6831C407.523 88.7595 403.7 87.8408 400.29 86.0151C397.074 84.2384 394.444 81.5667 392.717 78.3241C390.809 74.6709 389.861 70.5931 389.961 66.4731C389.864 62.3797 390.81 58.3289 392.708 54.7011C394.435 51.4585 397.065 48.7867 400.281 47.0101C403.693 45.184 407.516 44.2656 411.385 44.3431H411.381ZM458.075 44.3431C461.644 44.2377 465.156 45.2518 468.12 47.2431C470.847 49.1187 472.908 51.8118 474.006 54.9341V44.8921H482.952V88.1331H474.006V78.0881C472.908 81.2104 470.847 83.9034 468.12 85.7791C465.156 87.7704 461.644 88.7844 458.075 88.6791C454.532 88.7387 451.041 87.8152 447.991 86.0111C444.981 84.173 442.569 81.5014 441.046 78.3201C439.295 74.6204 438.435 70.562 438.535 66.4701C438.44 62.4037 439.3 58.3718 441.046 54.6981C442.569 51.5167 444.981 48.8452 447.991 47.0071C451.043 45.2036 454.535 44.2814 458.079 44.3431H458.075ZM460.822 52.1911C459.053 52.1113 457.288 52.4094 455.644 53.0657C454 53.722 452.514 54.7214 451.287 55.9971C448.906 58.5344 447.716 62.0267 447.716 66.4741C447.716 70.9214 448.907 74.4134 451.29 76.9501C452.517 78.2265 454.002 79.2266 455.647 79.8835C457.291 80.5405 459.056 80.8394 460.825 80.7601C463.194 80.7976 465.527 80.187 467.574 78.9941C469.576 77.8026 471.207 76.0771 472.283 74.0111C473.478 71.6829 474.071 69.0931 474.01 66.4771C474.062 63.8744 473.469 61.2994 472.283 58.9821C471.215 56.8993 469.584 55.1588 467.574 53.9591C465.528 52.7651 463.194 52.1534 460.825 52.1901L460.822 52.1911ZM517.875 44.1911C522.898 44.1911 526.926 45.8131 529.96 49.0571C532.994 52.3011 534.511 56.9311 534.512 62.9471V88.1331H525.566V63.8841C525.566 60.0127 524.572 57.0174 522.584 54.8981C521.527 53.82 520.252 52.9791 518.845 52.4311C517.438 51.8832 515.93 51.6408 514.422 51.7201C512.836 51.6502 511.253 51.9185 509.778 52.5071C508.303 53.0957 506.97 53.9911 505.868 55.1341C503.723 57.4101 502.65 60.7454 502.65 65.1401V88.1331H493.704V44.8921H502.65V54.3921C503.684 51.2995 505.73 48.6454 508.457 46.8581C511.263 45.0526 514.542 44.1225 517.878 44.1861L517.875 44.1911Z",fill:"#21325B"}),(0,i.jsx)("path",{d:"M25.79 58.4149C25.7901 57.7357 25.9244 57.0633 26.1851 56.4361C26.4458 55.809 26.8278 55.2396 27.3092 54.7605C27.7907 54.2814 28.3619 53.9021 28.9903 53.6444C29.6187 53.3867 30.2918 53.2557 30.971 53.2589L39.561 53.2869C40.9305 53.2869 42.244 53.831 43.2124 54.7994C44.1809 55.7678 44.725 57.0813 44.725 58.4509V90.9309C45.692 90.6439 46.934 90.3379 48.293 90.0179C49.237 89.7962 50.0783 89.262 50.6805 88.5019C51.2826 87.7418 51.6102 86.8006 51.61 85.8309V45.5409C51.61 44.1712 52.154 42.8576 53.1224 41.889C54.0908 40.9204 55.4043 40.3762 56.774 40.3759H65.381C66.7506 40.3762 68.0641 40.9204 69.0325 41.889C70.0009 42.8576 70.545 44.1712 70.545 45.5409V82.9339C70.545 82.9339 72.7 82.0619 74.799 81.1759C75.5787 80.8462 76.2441 80.2941 76.7122 79.5886C77.1803 78.8832 77.4302 78.0555 77.431 77.2089V32.6309C77.431 31.2615 77.9749 29.9481 78.9431 28.9797C79.9113 28.0113 81.2245 27.4672 82.5939 27.4669H91.201C92.5706 27.4669 93.884 28.0109 94.8525 28.9794C95.8209 29.9478 96.365 31.2613 96.365 32.6309V69.3399C103.827 63.9319 111.389 57.4279 117.39 49.6069C118.261 48.4717 118.837 47.1386 119.067 45.7267C119.297 44.3148 119.174 42.8678 118.709 41.5149C115.931 33.5227 111.516 26.1983 105.745 20.0105C99.974 13.8228 92.9749 8.90785 85.1955 5.58032C77.4161 2.2528 69.0277 0.585938 60.5671 0.686416C52.1065 0.786893 43.7601 2.6525 36.062 6.16383C28.3638 9.67517 21.4834 14.7549 15.8611 21.078C10.2388 27.401 5.99842 34.8282 3.41131 42.8842C0.824207 50.9401 -0.0526487 59.4474 0.836851 67.8617C1.72635 76.276 4.36263 84.4119 8.57696 91.7489C9.31111 93.0145 10.3912 94.0444 11.6903 94.7175C12.9894 95.3906 14.4536 95.679 15.911 95.5489C17.539 95.4059 19.566 95.2029 21.976 94.9199C23.0251 94.8008 23.9937 94.2999 24.6972 93.5126C25.4008 92.7253 25.7901 91.7067 25.791 90.6509L25.79 58.4149Z",fill:"#21325B"}),(0,i.jsx)("path",{d:"M25.6021 110.51C34.6744 117.11 45.3959 121.072 56.5802 121.957C67.7646 122.841 78.9757 120.615 88.9731 115.523C98.9705 110.431 107.364 102.673 113.226 93.1068C119.087 83.5405 122.188 72.539 122.185 61.3197C122.185 59.9197 122.12 58.5347 122.027 57.1577C99.808 90.2957 58.7831 105.788 25.604 110.505",fill:"#979695"})]})]}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"clip0_3340_1163",children:(0,i.jsx)("rect",{width:"535",height:"123",fill:"white"})})})]})},w=function(e){var n=e.size,r=void 0===n?"1em":n;return(0,i.jsx)("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",height:r,width:r,
394widt:!0,viewBox:"0 0 38.4 33.5",style:{enableBackground:"new 0 0 38.4 33.5"},children:(0,i.jsx)("g",{children:(0,i.jsx)("path",{style:{fill:"#8247E5"},d:"M29,10.2c-0.7-0.4-1.6-0.4-2.4,0L21,13.5l-3.8,2.1l-5.5,3.3c-0.7,0.4-1.6,0.4-2.4,0L5,16.3 c-0.7-0.4-1.2-1.2-1.2-2.1v-5c0-0.8,0.4-1.6,1.2-2.1l4.3-2.5c0.7-0.4,1.6-0.4,2.4,0L16,7.2c0.7,0.4,1.2,1.2,1.2,2.1v3.3l3.8-2.2V7 c0-0.8-0.4-1.6-1.2-2.1l-8-4.7c-0.7-0.4-1.6-0.4-2.4,0L1.2,5C0.4,5.4,0,6.2,0,7v9.4c0,0.8,0.4,1.6,1.2,2.1l8.1,4.7 c0.7,0.4,1.6,0.4,2.4,0l5.5-3.2l3.8-2.2l5.5-3.2c0.7-0.4,1.6-0.4,2.4,0l4.3,2.5c0.7,0.4,1.2,1.2,1.2,2.1v5c0,0.8-0.4,1.6-1.2,2.1 L29,28.8c-0.7,0.4-1.6,0.4-2.4,0l-4.3-2.5c-0.7-0.4-1.2-1.2-1.2-2.1V21l-3.8,2.2v3.3c0,0.8,0.4,1.6,1.2,2.1l8.1,4.7 c0.7,0.4,1.6,0.4,2.4,0l8.1-4.7c0.7-0.4,1.2-1.2,1.2-2.1V17c0-0.8-0.4-1.6-1.2-2.1L29,10.2z"})})})}},54960:function(e,n,r){"use strict";r.d(n,{Z:function(){return P}});var i=r(59499),a=r(50029),o=r(17674),s=r(64687),f=r.n(s),l=r(67294),u=r(79142),c=r(25952),d=r(89859),p=r(24383),h=r(44629),y=r(96141),m=r(80601),g=r(8091),b=r(70197),v=r(86173),w=r(55462),x=r(48428),T=r(61760),C=r(33299),M=r(86896),A=r(9473),E=r(7623),I=r(83804),S=r(14951),k=r(79278),N=r(43280),j=r(85893);function D(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function _(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?D(Object(r),!0).forEach(function(n){(0,i.default)(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var O=function(e){return E.tA.test(e)};function P(e){var n,r=e.email,i=e.open,s=e.onClose,E=e.onSend,D=e.isValidSplits,P=(0,M.Z)(),L=(0,A.I0)(),R=l.useState(null),z=(0,o.Z)(R,2),B=z[0],U=z[1],F=l.useState(!1),Z=(0,o.Z)(F,2),W=Z[0],H=Z[1],G=(0,C.useSession)().data,q=(0,S.useFetchInvites)(G),Y=q.data,V=q.isError,Q=q.mutate;(0,k.useErrorMessage)(V,P.formatMessage({id:"N2ICFP",defaultMessage:[{type:0,value:"Error fetching invites"}]}));var K=function(e){return"USED"!==e.status?{":hover":{color:"var(--blue700Color)",cursor:"pointer"}}:{color:"var(--gray400Color)"}},$={USED:"var(--error)",AVAILABLE:"var(--green900Color)",SEND:"var(--blue400Color)",COPY:"var(--blue900Color)"},J={USED:P.formatMessage({id:"XYkq4n",defaultMessage:[{type:0,value:"Used"}]}),AVAILABLE:P.formatMessage({id:"PgJGHT",defaultMessage:[{type:0,value:"Available"}]}),SEND:P.formatMessage({id:"gcuDcH",defaultMessage:[{type:0,value:"Sent"}]}),COPY:P.formatMessage({id:"p556q3",defaultMessage:[{type:0,value:"Copied"}]})},X=(n=(0,a.default)(f().mark(function e(n){return f().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,navigator.clipboard.writeText(n);case 2:return e.next=4,(0,I.post)("users/invites/".concat(n,"/copy"));case 4:Q(),L((0,N.Zq)({message:P.formatMessage({id:"Z/6Hx+",defaultMessage:[{type:0,value:"Invite copied"}]})}));case 6:case"end":return e.stop()}},e)})),function(e){return n.apply(this,arguments)});return(0,j.jsxs)(p.Z,{open:i,onClose:s,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",maxWidth:"xl",children:[(0,j.jsx)(function(e){var n,r=e.email,i=e.open,s=e.onClose,u=e.onSend,c=e.isValidSplits,d=l.useState(r||""),h=(0,o.Z)(d,2),x=h[0],C=h[1],M=(n=(0,a.default)(f().mark(function e(){return f().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,c){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,(0,I.post)("users/invites/".concat(B._id,"/send"),{email:null!=r?r:x});case 5:L((0,N.Zq)({message:P.formatMessage({id:"RfkE6I",defaultMessage:[{type:0,value:"Invite code sent"}]})})),u&&u(null!=r?r:x),Q(),s(),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(0),L((0,N.Mm)({message:P.formatMessage({id:"/mNjT1",defaultMessage:[{type:0,value:"An unknown error has occurred please try again later."}]})}));case 14:case"end":return e.stop()}},e,null,[[0,11]])})),function(){return n.apply(this,arguments)});return(0,j.jsxs)(p.Z,{open:i,onClose:s,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",maxWidth:"xl",children:[(0,j.jsx)(g.Z,{id:"alert-dialog-title",children:P.formatMessage({id:"LYAMe8",defaultMessage:[{type:0,value:"Send "},{type:1,value:"invite"},{type:0,value:" to an email"}]},{invite:null==B?void 0:B.name})}),(0,j.jsx)(y.Z,{children:(0,j.jsx)(m.Z,{width:400,id:"alert-dialog-description",children:(0,j.jsxs)(b.Z,{direction:"column",spacing:4,children:[(null==B?void 0:B.status)==="SEND"&&(0,j.jsx)(v.Z,{variant:"p",component:"p",className:"txtBody1",
394sx:{fontStyle:"italic",color:"red"},children:P.formatMessage({id:"6z8q0Q",defaultMessage:[{type:0,value:"This invite already send to an email, but not used yet!"}]})}),(0,j.jsx)(w.Z,{size:"small",fullWidth:!0,value:x,onChange:function(e){return C(e.target.value)},error:!O(x),disabled:!!r,placeholder:P.formatMessage({id:"HLDmJE",defaultMessage:[{type:0,value:"Email to send"}]}),inputProps:{style:{fontFamily:"Roboto",fontStyle:"normal",fontWeight:300,fontSize:14,color:"#08101c",lineHeight:2}}}),(0,j.jsx)(T.S,{text:"Send",disabled:!O(x)||!c,onClick:M}),(0,j.jsx)(v.Z,{sx:{display:c?"none":"block",marginRight:"5px",color:"var(--orange700Color)"},children:P.formatMessage({id:"4+DRN7",defaultMessage:[{type:0,value:"Invalid splits. Fix to Send Invite."}]})})]})})})]})},{email:r,open:W,onClose:function(){return H(!1)},onSend:E,isValidSplits:D}),(0,j.jsx)(g.Z,{id:"alert-dialog-title",children:P.formatMessage({id:"Wy+Idb",defaultMessage:[{type:0,value:"Invites"}]})}),(0,j.jsx)(y.Z,{children:(0,j.jsx)(m.Z,{width:340,id:"alert-dialog-description",children:(0,j.jsx)(b.Z,{direction:"row",flexWrap:"wrap",gap:2,children:null==Y?void 0:Y.map(function(e,n){return(0,j.jsxs)(b.Z,{direction:"row",alignItems:"center",justifyContent:"space-between",spacing:3,padding:1,borderRadius:2,backgroundColor:"var(--gray100Color)",sx:{":hover":{backgroundColor:"var(--gray200Color)"}},children:[(0,j.jsxs)(b.Z,{direction:"row",alignItems:"center",spacing:1,children:[(0,j.jsx)(x.Z,{title:J[e.status],children:(0,j.jsx)(d.Z,{width:15,height:15,borderRadius:"50%",backgroundColor:$[e.status]})}),(0,j.jsx)(v.Z,{as:"span",width:"50px",whiteSpace:"nowrap",fontSize:"16px",fontWeight:"bold",sx:"USED"!==e.status?{textDecoration:"none"}:{textDecoration:"line-through",color:"var(--gray400Color)"},children:"".concat(P.formatMessage({id:"hYOE+U",defaultMessage:[{type:0,value:"Invite"}]})," ").concat(n+1)})]}),(0,j.jsxs)(b.Z,{direction:"row",alignItems:"center",spacing:1,children:[(0,j.jsx)(x.Z,{title:P.formatMessage({id:"W2Y8Ay",defaultMessage:[{type:0,value:"Send to email"}]}),children:(0,j.jsx)(c.Z,{fontSize:"small",sx:K(e),onClick:function(){U(_(_({},e),{},{name:"Invite ".concat(n+1)})),H(!0)}})}),(0,j.jsx)(x.Z,{title:P.formatMessage({id:"CNXQN5",defaultMessage:[{type:0,value:"Copy code"}]}),children:(0,j.jsx)(u.Z,{fontSize:"small",sx:K(e),onClick:function(){return"USED"!==e.status&&X(e._id)}})})]})]},e._id)})})})}),(0,j.jsx)(h.Z,{children:(0,j.jsx)(T.S,{onClick:s,text:P.formatMessage({id:"jwimQJ",defaultMessage:[{type:0,value:"Ok"}]})})})]})}},12529:function(e,n,r){"use strict";r.d(n,{Z:function(){return f},t:function(){return s}});var i=r(13562),a=r(67294),o=r(85893),s=(0,a.createContext)("memofile");function f(e){var n,r=e.children,f=e.startUpTime,l=(0,a.useRef)({});return(0,o.jsx)(s.Provider,{value:{queue:(n=new i.bo,null!=f&&n.addRun(function(){return new Promise(function(e){return setTimeout(function(){return e()},f)})}),n),cache:l},children:r})}},61760:function(e,n,r){"use strict";r.d(n,{S:function(){return d}});var i=r(59499),a=r(4730),o=r(45542),s=r(91983),f=r(85893),l=["width","height","text","type","color","hasBoxShadow","onClick","className","isLoading","disabled","borderRadius","href","marginLeft","fontWeight","sx"];function u(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function c(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?u(Object(r),!0).forEach(function(n){(0,i.default)(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var d=function(e){var n=e.width,r=e.height,i=e.text,u=e.type,d=e.color,p=e.hasBoxShadow,h=e.onClick,y=e.className,m=e.isLoading,g=e.disabled,b=e.borderRadius,v=e.href,w=e.marginLeft,x=e.fontWeight,T=e.sx,C=(0,a.Z)(e,l);return(0,f.jsxs)(o.Z,c(c({href:v,className:y,variant:"contained",type:u,sx:c(c({width:n,height:r,marginLeft:w,alignItems:"center",justifyContent:"center",boxShadow:void 0===p||p?"1px 4px 8px rgba(0, 0, 0, 0.1)":"unset",fontSize:14,color:"var(--whiteColor)",fontFamily:"Montserrat",fontWeight:void 0===x?500:x,borderRadius:b,"&:disabled":{backgroundColor:"var(--blue700Color)",opacity:.5,color:"var(--whiteColor)"}},(void 0===T?{}:T)||{}),{blue:{background:"var(--blue700Color)",border:"1px solid",borderColor:"var(--blue700Color)"},white:{background:"var(--whiteColor)",border:"1px solid",borderColor:"var(--blue700Color)",color:"var(--blue700Color)","&:hover":{background:"var(--whiteColor)"},"&:disabled":{background:"var(--whiteColor)",opacity:.5,color:"var(--blue500Color)"}},gradient:{background:"linear-gradient(134.65deg, var(--blue700Color) -10.58%, var(--green400Color) 107.9%)",height:r||39},goldGradient:{background:"linear-gradient(90deg, rgba(126,66,19,1) 0%, rgba(188,89,10,1) 50%, rgba(255,220,0,1) 100%);",height:r||39},error:{background:"var(--error)","&:hover":{background:"var(--error)"},"&:disabled":{opacity:.5,background:"var(--error)",color:"var(--white)"}}}[void 0===d?"blue":d]),onClick:h,disabled:m||g},C),{},{children:[m?(0,f.jsx)(s.Z,{size:25,sx:{color:"var(--whiteColor)"}}):i,C.children]}))}},68474:function(e,n,r){"use strict";let i,a;r.d(n,{J:function(){return eN},Z:function(){return ej}});var o,s,f={};r.r(f),r.d(f,{Decoder:function(){return ew},Encoder:function(){return eb},PacketType:function(){return s},protocol:function(){return eg}});var l=r(33299),u=r(67294);let c=Object.create(null);c.open="0",c.close="1",c.ping="2",c.pong="3",c.message="4",c.upgrade="5",c.noop="6";let d=Object.create(null);
394Object.keys(c).forEach(e=>{d[c[e]]=e});let p={type:"error",data:"parser error"},h="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),y="function"==typeof ArrayBuffer,m=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,g=({type:e,data:n},r,i)=>h&&n instanceof Blob?r?i(n):b(n,i):y&&(n instanceof ArrayBuffer||m(n))?r?i(n):b(new Blob([n]),i):i(c[e]+(n||"")),b=(e,n)=>{let r=new FileReader;return r.onload=function(){n("b"+(r.result.split(",")[1]||""))},r.readAsDataURL(e)};function v(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",x="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<w.length;e++)x[w.charCodeAt(e)]=e;let T=e=>{let n=.75*e.length,r=e.length,i,a=0,o,s,f,l;"="===e[e.length-1]&&(n--,"="===e[e.length-2]&&n--);let u=new ArrayBuffer(n),c=new Uint8Array(u);for(i=0;i<r;i+=4)o=x[e.charCodeAt(i)],s=x[e.charCodeAt(i+1)],f=x[e.charCodeAt(i+2)],l=x[e.charCodeAt(i+3)],c[a++]=o<<2|s>>4,c[a++]=(15&s)<<4|f>>2,c[a++]=(3&f)<<6|63&l;return u},C="function"==typeof ArrayBuffer,M=(e,n)=>{if("string"!=typeof e)return{type:"message",data:E(e,n)};let r=e.charAt(0);return"b"===r?{type:"message",data:A(e.substring(1),n)}:d[r]?e.length>1?{type:d[r],data:e.substring(1)}:{type:d[r]}:p}
394,A=(e,n)=>C?E(T(e),n):{base64:!0,data:e},E=(e,n)=>"blob"===n?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,I=(e,n)=>{let r=e.length,i=Array(r),a=0;e.forEach((e,o)=>{g(e,!1,e=>{i[o]=e,++a===r&&n(i.join("\x1e"))})})},S=(e,n)=>{let r=e.split("\x1e"),i=[];for(let e=0;e<r.length;e++){let a=M(r[e],n);if(i.push(a),"error"===a.type)break}return i};function k(e){return e.reduce((e,n)=>e+n.length,0)}function N(e,n){if(e[0].length===n)return e.shift();let r=new Uint8Array(n),i=0;for(let a=0;a<n;a++)r[a]=e[0][i++],i===e[0].length&&(e.shift(),i=0);return e.length&&i<e[0].length&&(e[0]=e[0].slice(i)),r}function j(e){if(e)return function(e){for(var n in j.prototype)e[n]=j.prototype[n];return e}(e)}j.prototype.on=j.prototype.addEventListener=function(e,n){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(n),this},j.prototype.once=function(e,n){function r(){this.off(e,r),n.apply(this,arguments)}return r.fn=n,this.on(e,r),this},j.prototype.off=j.prototype.removeListener=j.prototype.removeAllListeners=j.prototype.removeEventListener=function(e,n){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,i=this._callbacks["$"+e];if(!i)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var a=0;a<i.length;a++)if((r=i[a])===n||r.fn===n){i.splice(a,1);break}return 0===i.length&&delete this._callbacks["$"+e],this},j.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var n=Array(arguments.length-1),r=this._callbacks["$"+e],i=1;i<arguments.length;i++)n[i-1]=arguments[i];if(r){r=r.slice(0);for(var i=0,a=r.length;i<a;++i)r[i].apply(this,n)}return this},j.prototype.emitReserved=j.prototype.emit,j.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},j.prototype.hasListeners=function(e){return!!this.listeners(e).length};let D="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function _(e,...n){return n.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}let O=D.setTimeout,P=D.clearTimeout;function L(e,n){n.useNativeTimers?(e.setTimeoutFn=O.bind(D),e.clearTimeoutFn=P.bind(D)):(e.setTimeoutFn=D.setTimeout.bind(D),e.clearTimeoutFn=D.clearTimeout.bind(D))}class R extends Error{constructor(e,n,r){super(e),this.description=n,this.context=r,this.type="TransportError"}}class z extends j{constructor(e){super(),this.writable=!1,L(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,n,r){return super.emitReserved("error",new R(e,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return("opening"===this.readyState||"open"===this.readyState)&&(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let n=M(e,this.socket.binaryType);this.onPacket(n)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,n={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){let e=this.opts.hostname;return -1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){let n=function(e){let n="";for(let r in e)e.hasOwnProperty(r)&&(n.length&&(n+="&"),n+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return n}(e);return n.length?"?"+n:""}}let B="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),U={},F=0,Z=0,W;function H(e){let n="";do n=B[e%64]+n,e=Math.floor(e/64);while(e>0);return n}function G(){let e=H(+new Date);return e!==W?(F=0,W=e):e+"."+H(F++)}for(;Z<64;Z++)U[B[Z]]=Z;let q=!1;try{q="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}let Y=q;function V(e){let n=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!n||Y))return new XMLHttpRequest}catch(e){}if(!n)try{return new D[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(e){}}function Q(){}let K=null!=new V({xdomain:!1}).responseType;class $ extends z{constructor(e){if(super(e),this.polling=!1,"undefined"!=typeof location){let n="https:"===location.protocol,r=location.port;r||(r=n?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||r!==e.port}let n=e&&e.forceBase64;this.supportsBinary=K&&!n,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}
394doOpen(){this.poll()}pause(e){this.readyState="pausing";let n=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let e=0;this.polling&&(e++,this.once("pollComplete",function(){--e||n()})),this.writable||(e++,this.once("drain",function(){--e||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){S(e,this.socket.binaryType).forEach(e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)}),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}doClose(){let e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,I(e,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",n=this.query||{};return!1!==this.opts.timestampRequests&&(n[this.opts.timestampParam]=G()),this.supportsBinary||n.sid||(n.b64=1),this.createUri(e,n)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new J(this.uri(),e)}doWrite(e,n){let r=this.request({method:"POST",data:e});r.on("success",n),r.on("error",(e,n)=>{this.onError("xhr post error",e,n)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(e,n)=>{this.onError("xhr poll error",e,n)}),this.pollXhr=e}}class J extends j{constructor(e,n){super(),L(this,n),this.opts=n,this.method=n.method||"GET",this.uri=e,this.data=void 0!==n.data?n.data:null,this.create()}create(){var e;let n=_(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd;let r=this.xhr=new V(n);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders)for(let e in r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0),this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(e)&&r.setRequestHeader(e,this.opts.extraHeaders[e])}catch(e){}if("POST"===this.method)try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{r.setRequestHeader("Accept","*/*")}catch(e){}null===(e=this.opts.cookieJar)||void 0===e||e.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var e;3===r.readyState&&(null===(e=this.opts.cookieJar)||void 0===e||e.parseCookies(r)),4===r.readyState&&(200===r.status||1223===r.status?this.onLoad():this.setTimeoutFn(()=>{this.onError("number"==typeof r.status?r.status:0)},0))},r.send(this.data)}catch(e){this.setTimeoutFn(()=>{this.onError(e)},0);return}"undefined"!=typeof document&&(this.index=J.requestsCount++,J.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=Q,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete J.requests[this.index],this.xhr=null}}onLoad(){let e=this.xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}function X(){for(let e in J.requests)J.requests.hasOwnProperty(e)&&J.requests[e].abort()}J.requestsCount=0,J.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",X):"function"==typeof addEventListener&&addEventListener("onpagehide"in D?"pagehide":"unload",X,!1));let ee="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,n)=>n(e,0),et=D.WebSocket||D.MozWebSocket;r(48764).Buffer;let en="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class er extends z{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;let e=this.uri(),n=this.opts.protocols,r=en?{}:_(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=en?new et(e,n,r):n?new et(e,n):new et(e)}catch(e){return this.emitReserved("error",e)}
394this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let n=0;n<e.length;n++){let r=e[n],i=n===e.length-1;g(r,this.supportsBinary,e=>{try{this.ws.send(e)}catch(e){}i&&ee(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=G()),this.supportsBinary||(n.b64=1),this.createUri(e,n)}check(){return!!et}}class ei extends z{get name(){return"webtransport"}doOpen(){"function"==typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(e=>{let n=function(e,n){a||(a=new TextDecoder);let r=[],i=0,o=-1,s=!1;return new TransformStream({transform(f,l){for(r.push(f);;){if(0===i){if(1>k(r))break;let e=N(r,1);s=(128&e[0])==128,i=(o=127&e[0])<126?3:126===o?1:2}else if(1===i){if(2>k(r))break;let e=N(r,2);o=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),i=3}else if(2===i){if(8>k(r))break;let e=N(r,8),n=new DataView(e.buffer,e.byteOffset,e.length),a=n.getUint32(0);if(a>2097151){l.enqueue(p);break}o=4294967296*a+n.getUint32(4),i=3}else{if(k(r)<o)break;let e=N(r,o);l.enqueue(M(s?e:a.decode(e),n)),i=0}if(0===o||o>e){l.enqueue(p);break}}}})}(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(n).getReader(),o=new TransformStream({transform(e,n){var r;r=r=>{let i;let a=r.length;if(a<126)new DataView((i=new Uint8Array(1)).buffer).setUint8(0,a);else if(a<65536){let e=new DataView((i=new Uint8Array(3)).buffer);e.setUint8(0,126),e.setUint16(1,a)}else{let e=new DataView((i=new Uint8Array(9)).buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(a))}e.data&&"string"!=typeof e.data&&(i[0]|=128),n.enqueue(i),n.enqueue(r)},h&&e.data instanceof Blob?e.data.arrayBuffer().then(v).then(r):y&&(e.data instanceof ArrayBuffer||m(e.data))?r(v(e.data)):g(e,!1,e=>{i||(i=new TextEncoder),r(i.encode(e))})}});o.readable.pipeTo(e.writable),this.writer=o.writable.getWriter();let s=()=>{r.read().then(({done:e,value:n})=>{e||(this.onPacket(n),s())}).catch(e=>{})};s();let f={type:"open"};this.query.sid&&(f.data=`{"sid":"${this.query.sid}"}`),this.writer.write(f).then(()=>this.onOpen())})}))}write(e){this.writable=!1;for(let n=0;n<e.length;n++){let r=e[n],i=n===e.length-1;this.writer.write(r).then(()=>{i&&ee(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;null===(e=this.transport)||void 0===e||e.close()}}let ea={websocket:er,webtransport:ei,polling:$},eo=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,es=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function ef(e){if(e.length>2e3)throw"URI too long";let n=e,r=e.indexOf("["),i=e.indexOf("]");-1!=r&&-1!=i&&(e=e.substring(0,r)+e.substring(r,i).replace(/:/g,";")+e.substring(i,e.length));let a=eo.exec(e||""),o={},s=14;for(;s--;)o[es[s]]=a[s]||"";return -1!=r&&-1!=i&&(o.source=n,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=function(e,n){let r=n.replace(/\/{2,9}/g,"/").split("/");return("/"==n.slice(0,1)||0===n.length)&&r.splice(0,1),"/"==n.slice(-1)&&r.splice(r.length-1,1),r}(0,o.path),o.queryKey=function(e,n){let r={};return n.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,n,i){n&&(r[n]=i)}),r}(0,o.query),o}class el extends j{constructor(e,n={}){super(),this.binaryType="arraybuffer",this.writeBuffer=[],e&&"object"==typeof e&&(n=e,e=null),e?(e=ef(e),n.hostname=e.host,n.secure="https"===e.protocol||"wss"===e.protocol,n.port=e.port,e.query&&(n.query=e.query)):n.host&&(n.hostname=ef(n.host).host),L(this,n),this.secure=null!=n.secure?n.secure:"undefined"!=typeof location&&"https:"===location.protocol,n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=n.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=function(e){let n={},r=e.split("&");for(let e=0,i=r.length;e<i;e++){let i=r[e].split("=");n[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return n}(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"==typeof addEventListener&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})}
394,addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){let n=Object.assign({},this.opts.query);n.EIO=4,n.transport=e,this.id&&(n.sid=this.id);let r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new ea[e](r)}open(){let e;if(this.opts.rememberUpgrade&&el.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else if(0===this.transports.length){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch(e){this.transports.shift(),this.open();return}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",e=>this.onClose("transport close",e))}probe(e){let n=this.createTransport(e),r=!1;el.priorWebsocketSuccess=!1;let i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",e=>{if(!r){if("pong"===e.type&&"probe"===e.data)this.upgrading=!0,this.emitReserved("upgrading",n),n&&(el.priorWebsocketSuccess="websocket"===n.name,this.transport.pause(()=>{r||"closed"===this.readyState||(u(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())}));else{let e=Error("probe error");e.transport=n.name,this.emitReserved("upgradeError",e)}}}))};function a(){r||(r=!0,u(),n.close(),n=null)}let o=e=>{let r=Error("probe error: "+e);r.transport=n.name,a(),this.emitReserved("upgradeError",r)};function s(){o("transport closed")}function f(){o("socket closed")}function l(e){n&&e.name!==n.name&&a()}let u=()=>{n.removeListener("open",i),n.removeListener("error",o),n.removeListener("close",s
394),this.off("close",f),this.off("upgrading",l)};n.once("open",i),n.once("error",o),n.once("close",s),this.once("close",f),this.once("upgrading",l),-1!==this.upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onOpen(){if(this.readyState="open",el.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){let e=0,n=this.upgrades.length;for(;e<n;e++)this.probe(this.upgrades[e])}}onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),this.resetPingTimeout(),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":let n=Error("server error");n.code=e.data,this.onError(n);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let n=0;n<this.writeBuffer.length;n++){let r=this.writeBuffer[n].data;if(r&&(e+="string"==typeof r?function(e){let n=0,r=0;for(let i=0,a=e.length;i<a;i++)(n=e.charCodeAt(i))<128?r+=1:n<2048?r+=2:n<55296||n>=57344?r+=3:(i++,r+=4);return r}(r):Math.ceil(1.33*(r.byteLength||r.size))),n>0&&e>this.maxPayload)return this.writeBuffer.slice(0,n);e+=2}return this.writeBuffer}write(e,n,r){return this.sendPacket("message",e,n,r),this}send(e,n,r){return this.sendPacket("message",e,n,r),this}sendPacket(e,n,r,i){if("function"==typeof n&&(i=n,n=void 0),"function"==typeof r&&(i=r,r=null),"closing"===this.readyState||"closed"===this.readyState)return;(r=r||{}).compress=!1!==r.compress;let a={type:e,data:n,options:r};this.emitReserved("packetCreate",a),this.writeBuffer.push(a),i&&this.once("flush",i),this.flush()}close(){let e=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),e()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return("opening"===this.readyState||"open"===this.readyState)&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():e()}):this.upgrading?r():e()),this}onError(e){el.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,n){("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){let n=[],r=0,i=e.length;for(;r<i;r++)~this.transports.indexOf(e[r])&&n.push(e[r]);return n}}el.protocol=4,el.protocol;let eu="function"==typeof ArrayBuffer,ec=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,ed=Object.prototype.toString,ep="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===ed.call(Blob),eh="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===ed.call(File);function ey(e){return eu&&(e instanceof ArrayBuffer||ec(e))||ep&&e instanceof Blob||eh&&e instanceof File}let em=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],eg=5;(o=s||(s={}))[o.CONNECT=0]="CONNECT",o[o.DISCONNECT=1]="DISCONNECT",o[o.EVENT=2]="EVENT",o[o.ACK=3]="ACK",o[o.CONNECT_ERROR=4]="CONNECT_ERROR",o[o.BINARY_EVENT=5]="BINARY_EVENT",o[o.BINARY_ACK=6]="BINARY_ACK";class eb{constructor(e){this.replacer=e}encode(e){return(e.type===s.EVENT||e.type===s.ACK)&&function e(n,r){if(!n||"object"!=typeof n)return!1;if(Array.isArray(n)){for(let r=0,i=n.length;r<i;r++)if(e(n[r]))return!0;return!1}if(ey(n))return!0;
394if(n.toJSON&&"function"==typeof n.toJSON&&1==arguments.length)return e(n.toJSON(),!0);for(let r in n)if(Object.prototype.hasOwnProperty.call(n,r)&&e(n[r]))return!0;return!1}(e)?this.encodeAsBinary({type:e.type===s.EVENT?s.BINARY_EVENT:s.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let n=""+e.type;return(e.type===s.BINARY_EVENT||e.type===s.BINARY_ACK)&&(n+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(n+=e.nsp+","),null!=e.id&&(n+=e.id),null!=e.data&&(n+=JSON.stringify(e.data,this.replacer)),n}encodeAsBinary(e){let n=function(e){let n=[],r=e.data;return e.data=function e(n,r){if(!n)return n;if(ey(n)){let e={_placeholder:!0,num:r.length};return r.push(n),e}if(Array.isArray(n)){let i=Array(n.length);for(let a=0;a<n.length;a++)i[a]=e(n[a],r);return i}if("object"==typeof n&&!(n instanceof Date)){let i={};for(let a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[a]=e(n[a],r));return i}return n}(r,n),e.attachments=n.length,{packet:e,buffers:n}}(e),r=this.encodeAsString(n.packet),i=n.buffers;return i.unshift(r),i}}function ev(e){return"[object Object]"===Object.prototype.toString.call(e)}class ew extends j{constructor(e){super(),this.reviver=e}add(e){let n;if("string"==typeof e){if(this.reconstructor)throw Error("got plaintext data when reconstructing a packet");let r=(n=this.decodeString(e)).type===s.BINARY_EVENT;r||n.type===s.BINARY_ACK?(n.type=r?s.EVENT:s.ACK,this.reconstructor=new ex(n),0===n.attachments&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(ey(e)||e.base64){if(this.reconstructor)(n=this.reconstructor.takeBinaryData(e))&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw Error("got binary data when not reconstructing a packet")}else throw Error("Unknown type: "+e)}decodeString(e){let n=0,r={type:Number(e.charAt(0))};if(void 0===s[r.type])throw Error("unknown packet type "+r.type);if(r.type===s.BINARY_EVENT||r.type===s.BINARY_ACK){let i=n+1;for(;"-"!==e.charAt(++n)&&n!=e.length;);let a=e.substring(i,n);if(a!=Number(a)||"-"!==e.charAt(n))throw Error("Illegal attachments");r.attachments=Number(a)}if("/"===e.charAt(n+1)){let i=n+1;for(;++n&&","!==e.charAt(n)&&n!==e.length;);r.nsp=e.substring(i,n)}else r.nsp="/";let i=e.charAt(n+1);if(""!==i&&Number(i)==i){let i=n+1;for(;++n;){let r=e.charAt(n);if(null==r||Number(r)!=r){--n;break}if(n===e.length)break}r.id=Number(e.substring(i,n+1))}if(e.charAt(++n)){let i=this.tryParse(e.substr(n));if(ew.isPayloadValid(r.type,i))r.data=i;else throw Error("invalid payload")}return r}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(e){return!1}}static isPayloadValid(e,n){switch(e){case s.CONNECT:return ev(n);case s.DISCONNECT:return void 0===n;case s.CONNECT_ERROR:return"string"==typeof n||ev(n);case s.EVENT:case s.BINARY_EVENT:return Array.isArray(n)&&("number"==typeof n[0]||"string"==typeof n[0]&&-1===em.indexOf(n[0]));case s.ACK:case s.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class ex{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){var n,r;let e=(n=this.reconPack,r=this.buffers,n.data=function e(n,r){if(!n)return n;if(n&&!0===n._placeholder){if("number"==typeof n.num&&n.num>=0&&n.num<r.length)return r[n.num];throw Error("illegal attachments")}if(Array.isArray(n))for(let i=0;i<n.length;i++)n[i]=e(n[i],r);else if("object"==typeof n)for(let i in n)Object.prototype.hasOwnProperty.call(n,i)&&(n[i]=e(n[i],r));return n}(n.data,r),delete n.attachments,n);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function eT(e,n,r){return e.on(n,r),function(){e.off(n,r)}}let eC=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class eM extends j{constructor(e,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[eT(e,"open",this.onopen.bind(this)),eT(e,"packet",this.onpacket.b
394ind(this)),eT(e,"error",this.onerror.bind(this)),eT(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...n){if(eC.hasOwnProperty(e))throw Error('"'+e.toString()+'" is a reserved event name');if(n.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;let r={type:s.EVENT,data:n};if(r.options={},r.options.compress=!1!==this.flags.compress,"function"==typeof n[n.length-1]){let e=this.ids++,i=n.pop();this._registerAckCallback(e,i),r.id=e}let i=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return(!this.flags.volatile||i&&this.connected)&&(this.connected?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}_registerAckCallback(e,n){var r;let i=null!==(r=this.flags.timeout)&&void 0!==r?r:this._opts.ackTimeout;if(void 0===i){this.acks[e]=n;return}let a=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let n=0;n<this.sendBuffer.length;n++)this.sendBuffer[n].id===e&&this.sendBuffer.splice(n,1);n.call(this,Error("operation has timed out"))},i),o=(...e)=>{this.io.clearTimeoutFn(a),n.apply(this,e)};o.withError=!0,this.acks[e]=o}emitWithAck(e,...n){return new Promise((r,i)=>{let a=(e,n)=>e?i(e):r(n);a.withError=!0,n.push(a),this.emit(e,...n)})}_addToQueue(e){let n;"function"==typeof e[e.length-1]&&(n=e.pop());let r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((e,...i)=>{if(r===this._queue[0])return null!==e?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(e)):(this._queue.shift(),n&&n(null,...i)),r.pending=!1,this._drainQueue()}),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;let n=this._queue[0];(!n.pending||e)&&(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:s.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,n),this._clearAcks()}
394_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(n=>String(n.id)===e)){let n=this.acks[e];delete this.acks[e],n.withError&&n.call(this,Error("socket has been disconnected"))}})}onpacket(e){if(!(e.nsp!==this.nsp))switch(e.type){case s.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case s.EVENT:case s.BINARY_EVENT:this.onevent(e);break;case s.ACK:case s.BINARY_ACK:this.onack(e);break;case s.DISCONNECT:this.ondisconnect();break;case s.CONNECT_ERROR:this.destroy();let n=Error(e.data.message);n.data=e.data.data,this.emitReserved("connect_error",n)}}onevent(e){let n=e.data||[];null!=e.id&&n.push(this.ack(e.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length)for(let n of this._anyListeners.slice())n.apply(this,e);super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){let n=this,r=!1;return function(...i){r||(r=!0,n.packet({type:s.ACK,id:e,data:i}))}}onack(e){let n=this.acks[e.id];"function"==typeof n&&(delete this.acks[e.id],n.withError&&e.data.unshift(null),n.apply(this,e.data))}onconnect(e,n){this.id=e,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:s.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let n=this._anyListeners;for(let r=0;r<n.length;r++)if(e===n[r]){n.splice(r,1);break}}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(e===n[r]){n.splice(r,1);break}}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length)for(let n of this._anyOutgoingListeners.slice())n.apply(this,e.data)}}function eA(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}eA.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var n=Math.random(),r=Math.floor(n*this.jitter*e);e=(1&Math.floor(10*n))==0?e-r:e+r}return 0|Math.min(e,this.max)},eA.prototype.reset=function(){this.attempts=0},eA.prototype.setMin=function(e){this.ms=e},eA.prototype.setMax=function(e){this.max=e},eA.prototype.setJitter=function(e){this.jitter=e};class eE extends j{constructor(e,n){var r;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(n=e,e=void 0),(n=n||{}).path=n.path||"/socket.io",this.opts=n,L(this,n),this.reconnection(!1!==n.reconnection),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(r=n.randomizationFactor)&&void 0!==r?r:.5),this.backoff=new eA({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==n.timeout?2e4:n.timeout),this._readyState="closed",this.uri=e;let i=n.parser||f;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=!1!==n.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var n;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(n=this.backoff)||void 0===n||n.setMin(e),this)}randomizationFactor(e){var n;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(n=this.backoff)||void 0===n||n.setJitter(e),this)}reconnectionDelayMax(e){var n;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(n=this.backoff)||void 0===n||n.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new el(this.uri,this.opts);let n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;let i=eT(n,"open",function(){r.onopen(),e&&e()}),a=n=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",n),e?e(n):this.maybeReconnectOnOpen()},o=eT(n,"error",a);if(!1!==this._timeout){let e=this._timeout,r=this.setTimeoutFn(()=>{i(),a(Error("timeout")),n.close()},e);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}return this.subs.push(i),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(eT(e,"ping",this.onping.bind(this)),eT(e,"data",this.ondata.bind(this)),eT(e,"error",this.onerror.bind(this)),eT(e,"close",this.onclose.bind(this)),eT(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){ee(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,n){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new eM(this,e,n),this.nsps[e]=r),r}_destroy(e){for(let e of Object.keys(this.nsps))if(this.nsps[e].active)return;this._close()}_packet(e){let n=this.encoder.encode(e);for(let r=0;r<n.length;r++)this.engine.write(n[r],e.options)}
394cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let n=this.backoff.duration();this._reconnecting=!0;let r=this.setTimeoutFn(()=>{!e.skipReconnect&&(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open(n=>{n?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",n)):e.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}let eI={};function eS(e,n){let r;"object"==typeof e&&(n=e,e=void 0);let i=function(e,n="",r){let i=e;r=r||"undefined"!=typeof location&&location,null==e&&(e=r.protocol+"//"+r.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?r.protocol+e:r.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==r?r.protocol+"//"+e:"https://"+e),i=ef(e)),!i.port&&(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";let a=-1!==i.host.indexOf(":")?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+a+":"+i.port+n,i.href=i.protocol+"://"+a+(r&&r.port===i.port?"":":"+i.port),i}(e,(n=n||{}).path||"/socket.io"),a=i.source,o=i.id,s=i.path,f=eI[o]&&s in eI[o].nsps;return n.forceNew||n["force new connection"]||!1===n.multiplex||f?r=new eE(a,n):(eI[o]||(eI[o]=new eE(a,n)),r=eI[o]),i.query&&!n.query&&(n.query=i.queryKey),r.socket(i.path,n)}Object.assign(eS,{Manager:eE,Socket:eM,io:eS,connect:eS});var ek=r(85893),eN=(0,u.createContext)("SocketSocket"),ej=(0,u.memo)(function(e){var n=e.children,r=(0,l.useSession)().data,i=(0,u.useRef)(eS("https://backend.guildtogether.com",{reconnectionDelayMax:1e4,auth:{token:null==r?void 0:r.token}}));return(0,u.useEffect)(function(){return function(){return function(){i.current.disconnect()}}},[]),(0,ek.jsx)(eN.Provider,{value:{internalSocket:i},children:n})})},82615:function(e,n,r){"use strict";r.d(n,{Z:function(){return s},b:function(){return o}});var i=r(67294),a=r(85893),o=(0,i.createContext)("swrContext");function s(e){var n=e.children,r=(0,i.useRef)({});return(0,a.jsx)(o.Provider,{value:{swrMutations:r},children:n})}},87288:function(e,n,r){"use strict";var i=r(59499),a=r(67294),o=r(89859),s=r(7981),f=r(17916),l=r(25675),u=r.n(l),c=r(41664),d=r.n(c),p=r(97213),h=r.n(p),y=r(85893);function m(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function g(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?m(Object(r),!0).forEach(function(n){(0,i.default)(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function b(e){var n=e.children,r=e.path;return r?(0,y.jsx)(d(),{legacyBehavior:!0,href:r,passHref:!0,children:n}):n}function v(e){var n=e.item,r=e.handleClose;if(a.isValidElement(n))return n;var i=n.title,o=n.path,s=n.onClick;return(0,y.jsx)(b,{path:o,children:(0,y.jsx)(f.Z,{onClick:function(e){o&&e.stopPropagation(),r(),s&&s()},children:i})})}function w(e){var n=e.userid,r=e.src,i=e.height,f=e.width,l=e.gender,c=e.clickable,p=void 0===c||c,m=e.menu,b=e.internal,w=void 0===b?{}:b,x=e.isActive,T=e.alt,C={0:"/default_profile_picture_male.jpg",1:"/default_profile_picture_female.jpg",2:"/default_profile_picture.svg"},M=a.useMemo(function(){return r&&"null"!==r?r:C[null==l?2:l]},[r]),A=(0,a.useState)(null),E=A[0],I=A[1],S=function(){I(null)},k=(0,y.jsx)(o.Z,{border:"2.6px solid",borderColor:x?"#0575e6":"transparent",borderRadius:"50%",backgroundColor:x?"#0575e6":"transparent",children:(0,y.jsx)(o.Z,{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",width:f,height:i,children:(0,y.jsx)(u(),g(g({
394src:M,alt:void 0===T?"profile image":T,layout:"fill",className:p?h().profileImageCursor:h().profileImage,unoptimized:!0},w),{},{id:"image-avatar",onClick:m?function(e){I(e.currentTarget)}:function(e){p&&e.stopPropagation()}},w))})});return m?(0,y.jsxs)(o.Z,{children:[k,(0,y.jsx)(s.Z,{id:"basic-menu",anchorEl:E,open:!!E,onClose:S,MenuListProps:{"aria-labelledby":"basic-button"},PaperProps:{sx:{width:"220px"}},children:m(n).map(function(e,n){return(0,y.jsx)(v,{item:e,handleClose:S},n)})})]}):(0,y.jsx)(o.Z,{children:p?(0,y.jsx)(d(),{legacyBehavior:!0,href:{pathname:"/profile/[userid]/view",query:{userid:n}},passHref:!0,children:(0,y.jsx)("a",{children:k})}):k})}w.defaultProps={height:40,width:40,isActive:!1,alt:"profile image"},n.Z=w},79149:function(e,n,r){"use strict";r.d(n,{B:function(){return s},g:function(){return o}});var i=r(67294),a=r(85893),o=(0,i.createContext)([]);function s(e){var n=e.menus,r=e.footer,i=e.header,s=e.children;return(0,a.jsx)(o.Provider,{value:{menus:n,footer:r,header:i},children:s})}},7496:function(e,n,r){"use strict";r.r(n),r.d(n,{ChainContext:function(){return r_},default:function(){return rL}});var i,a,o,s,f,l,u,c,d=r(59499),p=r(17674),h=r(67294),y=r(5152),m=r.n(y),g=r(61730),b=(0,r(28335).Z)({palette:{primary:{main:"#0575E6"},secondary:{main:"#00F260"},error:{main:"#FF8552"}},typography:{txtH6:{fontFamily:"Montserrat",fontStyle:"normal",fontWeight:600,fontSize:"20px",lineHeight:"24px",color:"var(--blueishGray900Color)"}}}),v=r(48711),w=r(50029),x=r(64687),T=r.n(x),C=r(24383),M=r(44629),A=r(96141),E=r(80601),I=r(8091),S=r(68035),k=r(45542),N=r(86896),j=r(83804),D=r(9473),_=r(43280),O=r(61760),P=r(33299),L=r(6410),R=r(85893);function z(){var e,n,r=(0,N.Z)(),i=(0,D.I0)(),a=(0,P.useSession)().data,o=h.useState(!1),s=(0,p.Z)(o,2),f=s[0];s[1];var l=h.useState(!1),u=(0,p.Z)(l,2),c=u[0],d=u[1],y=h.useState(""),m=(0,p.Z)(y,2),g=m[0],b=m[1],v=h.useState(!1),x=(0,p.Z)(v,2),z=x[0],B=x[1];h.useEffect(function(){var e;null==a||null===(e=a.user)||void 0===e||e.invited},[null==a||null===(n=a.user)||void 0===n?void 0:n.invited]);var U=function(){i((0,_.Zq)({message:r.formatMessage({id:"83yoDI",defaultMessage:[{type:0,value:"Invitation code validated, please login again!"}]})}))},F=function(){i((0,_.Mm)({message:r.formatMessage({id:"Rk/1dT",defaultMessage:[{type:0,value:"Invalid invite code!"}]})}))},Z=(e=(0,w.default)(T().mark(function e(n){return T().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,d(!0),e.next=4,(0,j.put)("users/invites/".concat(n,"/validate"),{});case 4:U(),B(!0),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),F();case 11:return e.prev=11,(0,L.Mz)("inviteCode"),d(!1),e.finish(11);case 15:case"end":return e.stop()}},e,null,[[0,8,11,15]])})),function(n){return e.apply(this,arguments)});return(0,R.jsx)("div",{children:(0,R.jsx)(C.Z,{open:f,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:z?(0,R.jsx)(function(){return(0,R.jsxs)(A.Z,{children:[(0,R.jsxs)(E.Z,{width:450,mb:2,id:"alert-dialog-description",children:[(0,R.jsx)("h2",{children:r.formatMessage({id:"xkupJq",defaultMessage:[{type:0,value:"Code validated, congratulations!"}]})}),(0,R.jsx)("p",{children:r.formatMessage({id:"os+J7r",defaultMessage:[{type:0,value:"Please make login again to complete configurations."}]})})]}),(0,R.jsx)(M.Z,{children:(0,R.jsx)(O.S,{width:"100",height:"35",onClick:function(){return(0,P.signOut)()},text:r.formatMessage({id:"AyGauy",defaultMessage:[{type:0,value:"Login"}]})})})]})},{}):(0,R.jsx)(function(){return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(I.Z,{id:"alert-dialog-title",children:"Invite validate"}),(0,R.jsxs)(A.Z,{children:[(0,R.jsx)(E.Z,{width:450,mb:2,id:"alert-dialog-description",children:r.formatMessage({id:"WE7BMg",defaultMessage:[{type:0,value:"Please, we need a valid invite code to allow full access."}]})}),(0,R.jsx)(S.Z,{fullWidth:!0,size:"small",value:g,placeholder:"Invite code",onChange:function(e){return b(e.target.value)}})]}),(0,R.jsxs)(M.Z,{children:[(0,R.jsx)(k.Z,{onClick:function(){return(0,P.signOut)()},children:"Logout"}),(0,R.jsx)(O.S,{width:"100",height:"35",onClick:function(){return Z(g)},isLoading:c,text:r.formatMessage({id:"EXb8Fu",defaultMessage:[{type:0,value:"Validate"}]}),disabled:!g})]})]})},{})})})}var B=r(86450),U=r(9008),F=r.n(U),Z=JSON.parse('{"09PUgc":[{"type":0,"value":"NFT Platform"}],"2f0md6":[{"type":0,"value":"Collaborate with artists and producers"}],"2vGWvG":[{"type":0,"value":"The label of the people"}],"5JcXdV":[{"type":0,"value":"Create Account"}],"5sg7KC":[{"type":0,"value":"Password"}],"6qF/vN":[{"type":0,"value":"Terms and Conditions"}],"A6sL8J":[{"type":0,"value":"Remember me"}],"CFo5Xr":[{"type":0,"value":"Organize your audio files"}],"DlAEDc":[{"type":0,"value":"Transparent royalties split model"}],"EQPD2Z":[{"type":0,"value":"Have a single source of truth for your projects"}],"Ejhdi4":[{"type":0,"value":"Feedback"}],"G6KdEC":[{"type":0,"value":"Mint your own NFTs and explore the new economy"}],"GCY0dr":[{"type":0,"value":"Market"}],"HNyIU0":[{"type":0,"value":"Sealed contributions"}],"J2+OCe":[{"type":0,"value":"View all your projects and tracks in a single place"}],"JulcNr":[{"type":0,"value":"Recover password"}],"StcK67":[{"type":0,"value":"Library"}],"Ub+AGc":[{"type":0,"value":"Sign In"}],"Uvz2GS":[{"type":0,"value":"Or sign in with"}],"UxTJRa":[{"type":0,"value":"Projects"}],"Z8jR7i":[{"type":0,"value":"Monetize with NFTs and Coins"}],"cg1VJ2":[{"type":0,"value":"Connect Wallet"}],"g5D0Z4":[{"type":0,"value":"OKAY"}],"hMzcSq":[{"type":0,"value":"Messages"}],"hZOGLS":[{"type":0,"value":"Contact Us"}],"mz5hH7":[{"type":0,"value":"GOT IT"}],"qvDj/E":[{"type":0,"value":"LET\'S START"}],"sy+pv5":[{"type":0,"value":"Email"}
394],"vbTD+g":[{"type":0,"value":"Simple collaboration workflow"}],"vx0nkZ":[{"type":0,"value":"Privacy Policy"}]}'),W=JSON.parse('{"09PUgc":[{"type":0,"value":"Plataforma NFT"}],"2f0md6":[{"type":0,"value":"Colabore com artistas e produtores"}],"2vGWvG":[{"type":0,"value":"A gravadora do povo"}],"5JcXdV":[{"type":0,"value":"Criar Conta"}],"5sg7KC":[{"type":0,"value":"Senha"}],"6qF/vN":[{"type":0,"value":"Termos de Servi\xe7o"}],"A6sL8J":[{"type":0,"value":"Lembrar-me"}],"CFo5Xr":[{"type":0,"value":"Organize seus arquivos de \xe1udio"}],"DlAEDc":[{"type":0,"value":"Modelo de distribui\xe7\xe3o transparente"}],"EQPD2Z":[{"type":0,"value":"Tenha uma \xfanica fonte de verdade para seus projetos"}],"Ejhdi4":[{"type":0,"value":"Feedback"}],"G6KdEC":[{"type":0,"value":"Mint seus pr\xf3prios NFTs e explore a nova economia"}],"GCY0dr":[{"type":0,"value":"Mercado"}],"HNyIU0":[{"type":0,"value":"Contribui\xe7\xf5es com contrato"}],"J2+OCe":[{"type":0,"value":"Veja todos os seus projetos e trilhas em um \xfanico lugar"}],"JulcNr":[{"type":0,"value":"Recuperar senha"}],"StcK67":[{"type":0,"value":"Biblioteca"}],"Ub+AGc":[{"type":0,"value":"Logar"}],"Uvz2GS":[{"type":0,"value":"Ou logar com"}],"UxTJRa":[{"type":0,"value":"Projetos"}],"Z8jR7i":[{"type":0,"value":"Monetizar com NFTs e moedas"}],"cg1VJ2":[{"type":0,"value":"Conectar Carteira"}],"g5D0Z4":[{"type":0,"value":"BELEZA!"}],"hMzcSq":[{"type":0,"value":"Mensagens"}],"hZOGLS":[{"type":0,"value":"Falhe Conosco"}],"mz5hH7":[{"type":0,"value":"ENTENDI"}],"qvDj/E":[{"type":0,"value":"BORA COME\xc7AR"}],"sy+pv5":[{"type":0,"value":"E-mail"}],"vbTD+g":[{"type":0,"value":"Fluxo de colabora\xe7\xe3o simples"}],"vx0nkZ":[{"type":0,"value":"Politica de Privacidade"}]}'),H=r(32435),G=r(66349),q=r(89515),Y=r(74255);function V(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function Q(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?V(Object(r),!0).forEach(function(n){(0,d.default)(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):V(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var K=h.forwardRef(function(e,n){return(0,R.jsxs)(H.Z,Q(Q({elevation:6,ref:n},e),{},{children:[(0,R.jsxs)(G.Z,{children:["success"===e.severity&&"Success","error"===e.severity&&"Error","info"===e.severity&&"Info","warning"===e.severity&&"Warning"]}),e.children]}))}),$=function(){var e=(0,D.v9)(function(e){return e.feedback}),n=e.message,r=e.open,i=e.severity,a=(0,D.I0)(),o=function(){a((0,_.jM)())};return(0,h.useEffect)(function(){r&&setTimeout(function(){o()},5e3)},[r]),(0,R.jsx)(Y.Z,{open:r,TransitionComponent:function(e){return(0,R.jsx)(q.Z,Q(Q({},e),{},{direction:"up"}))},children:(0,R.jsx)(K,{onClose:o,severity:i,color:i,children:n})})},J=r(4298),X=r.n(J),ee=function(){return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(X(),{id:"google_gta",strategy:"afterInteractive",src:"https://www.googletagmanager.com/gtag/js?id=".concat("G-VQYRS7CK9C")}),(0,R.jsx)(X(),{id:"google_analytics",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:"\n window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n gtag('config', '".concat("G-VQYRS7CK9C","', {\n page_path: window.location.pathname,\n });\n ")}})]})},et=function(){return(0,R.jsx)(R.Fragment,{children:(0,R.jsx)(X(),{id:"tiktok",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:'\n !function (w, d, t) {\n w.TiktokAnalyticsObject=t;\n var ttq=w[t]=w[t]||[];\n ttq.methods=["page","track","identify","instances","debug","on","off","once","ready","alias","group","enableCookie","disableCookie"],ttq.setAndDefer=function(t,e){t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}};\n for(var i=0;i<ttq.methods.length;i++)ttq.setAndDefer(ttq,ttq.methods[i]);\n ttq.instance=function(t){for(var e=ttq._i[t]||[],n=0;n<ttq.methods.length;n++)ttq.setAndDefer(e,ttq.methods[n]);return e},ttq.load=function(e,n){var i="https://analytics.tiktok.com/i18n/pixel/events.js";ttq._i=ttq._i||{},ttq._i[e]=[],ttq._i[e]._u=i,ttq._t=ttq._t||{},ttq._t[e]=+new Date,ttq._o=ttq._o||{},ttq._o[e]=n||{};var o=document.createElement("script");o.type="text/javascript",o.async=!0,o.src=i+"?sdkid="+e+"&lib="+t;var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(o,a)};\n ttq.load(\''.concat("C9OIRIJDOFIJOJFILBU0","');\n ttq.page();\n }(window, document, 'ttq');\n ")}})})},en=function(){return(0,R.jsx)(X(),{id:"hs-script-loader",src:"https://js.hs-scripts.com/".concat("22251342",".js"),async:!0,defer:!0})},er=r(90116),ei=r(80179),ea=r(10269),eo=r(29079),es=r(70197),ef=r(11163),el=r(68108),eu=r(78258),ec=r(77236),ed=(0,ec.oM)({name:"draggable",initialState:{callers:[]},reducers:{setCallers:function(e,n){e.callers=n.payload}}}),ep=ed.actions.setCallers,eh=ed.reducer;
394function ey(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function em(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?ey(Object(r),!0).forEach(function(n){(0,d.default)(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ey(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var eg=(0,ei.ZP)(ea.Z)(function(e){var n=e.theme;return{"& .MuiBadge-badge":{backgroundColor:"#44b700",color:"#44b700",boxShadow:"0 0 0 2px ".concat(n.palette.background.paper),"&::after":{position:"absolute",top:0,left:0,width:"100%",height:"100%",borderRadius:"50%",animation:"ripple 1.2s infinite ease-in-out",border:"1px solid currentColor",content:'""'}},"@keyframes ripple":{"0%":{transform:"scale(.8)",opacity:1},"100%":{transform:"scale(2.4)",opacity:0}
394}}});function eb(e){return(0,R.jsx)(q.Z,em(em({},e),{},{direction:"left"}))}function ev(){var e=(0,el.D)("call"),n=(0,eu.Z)(),r=h.useState([]),i=(0,p.Z)(r,2),a=i[0],o=i[1],s=(0,ef.useRouter)(),f=(0,N.Z)(),l=(0,D.I0)();h.useEffect(function(){e(function(e){o(function(n){return e.cancel?n.filter(function(n){return n.user_id!=e.user_id}):n.some(function(n){return n.room_name==e.room_name})?n:[].concat((0,er.Z)(n),[e])})})},[]),h.useEffect(function(){l(ep(a))},[a]);var u=a.length>0,c=a[0]||{},d=c.user,y=c.user_id,m=c.room_name,g=c.room_url;return(0,R.jsx)("div",{children:(0,R.jsx)(Y.Z,{open:u,anchorOrigin:{vertical:"bottom",horizontal:"right"},TransitionComponent:eb,message:u?"".concat(d.name.split(" ")[0]," is calling you!"):null,action:u?(0,R.jsxs)(es.Z,{direction:"row",spacing:2,children:[(0,R.jsx)(k.Z,{color:"info",size:"small",onClick:(0,w.default)(T().mark(function e(){return T().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n("answerCall",{user_target:y}),s.push({pathname:"/chat",query:{room_name:m,room_url:g}});case 2:case"end":return e.stop()}},e)})),children:f.formatMessage({id:"sjzLbX",defaultMessage:[{type:0,value:"Accept"}]})}),(0,R.jsx)(k.Z,{color:"info",size:"small",onClick:(0,w.default)(T().mark(function e(){return T().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n("answerCall",{user_target:y});case 1:case"end":return e.stop()}},e)})),children:f.formatMessage({id:"paBpxN",defaultMessage:[{type:0,value:"Ignore"}]})}),(0,R.jsx)(eg,{overlap:"circular",anchorOrigin:{vertical:"bottom",horizontal:"right"},variant:"dot",children:(0,R.jsx)(eo.Z,{src:d.profile_img})})]}):null})})}var ew=r(82615),ex=r(68474),eT=r(79149),eC=r(56580),eM=r(38741),eA=r(84152),eE=r(50841),eI=r(82644),eS=r(27898),ek=r(74806),eN=r(80361),ej=r(16284),eD=r(88222);(i=s||(s={}))[i.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",i[i.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",i[i.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",i[i.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",i[i.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",i[i.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",i[i.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",i[i.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",i[i.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",i[i.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",i[i.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",i[i.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",i[i.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",i[i.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",i[i.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",i[i.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",i[i.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",i[i.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",i[i.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",i[i.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",i[i.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",i[i.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",i[i.INVALID_TAG=23]="INVALID_TAG",i[i.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",i[i.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",i[i.UNCLOSED_TAG=27]="UNCLOSED_TAG",(a=f||(f={}))[a.literal=0]="literal",a[a.argument=1]="argument",a[a.number=2]="number",a[a.date=3]="date",a[a.time=4]="time",a[a.select=5]="select",a[a.plural=6]="plural",a[a.pound=7]="pound",a[a.tag=8]="tag",(o=l||(l={}))[o.number=0]="number",o[o.dateTime=1]="dateTime";var e_=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,eO=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g,eP=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,eL=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,eR=/^(@+)?(\+|#+)?[rs]?$/g,ez=/(\*)(0+)|(#+)(0+)|(0+)/g,eB=/^(0+)$/;function eU(e){var n={};return"r"===e[e.length-1]?n.roundingPriority="morePrecision":"s"===e[e.length-1]&&(n.roundingPriority="lessPrecision"),e.replace(eR,function(e,r,i){return"string"!=typeof i?(n.minimumSignificantDigits=r.length,n.maximumSignificantDigits=r.length):"+"===i?n.minimumSignificantDigits=r.length:"#"===r[0]?n.maximumSignificantDigits=r.length:(n.minimumSignificantDigits=r.length,n.maximumSignificantDigits=r.length+("string"==typeof i?i.length:0)),""}),n}function eF(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function eZ(e){return eF(e)||{}}var eW={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA
394:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]},eH=new RegExp("^".concat(e_.source,"*")),eG=new RegExp("".concat(e_.source,"*$"));function eq(e,n){return{start:e,end:n}}var eY=!!String.prototype.startsWith&&"_a".startsWith("a",1),eV=!!String.fromCodePoint,eQ=!!Object.fromEntries,eK=!!String.prototype.codePointAt,e$=!!String.prototype.trimStart,eJ=!!String.prototype.trimEnd,eX=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&9007199254740991>=Math.abs(e)},e0=!0;try{var e1=e9("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");e0=(null===(u=e1.exec("a"))||void 0===u?void 0:u[0])==="a"}catch(e){e0=!1}var e6=eY?function(e,n,r){return e.startsWith(n,r)}:function(e,n,r){return e.slice(r,r+n.length)===n},e5=eV?String.fromCodePoint:function(){for(var e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];for(var i="",a=n.length,o=0;a>o;){if((e=n[o++])>1114111)throw RangeError(e+" is not a valid code point");i+=e<65536?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10)+55296,e%1024+56320)}return i},e2=eQ?Object.fromEntries:function(e){for(var n={},r=0;r<e.length;r++){var i=e[r],a=i[0],o=i[1];n[a]=o}return n},e4=eK?function(e,n){return e.codePointAt(n)}:function(e,n){var r,i=e.length;if(!(n<0)&&!(n>=i)){var a=e.charCodeAt(n);return a<55296||a>56319||n+1===i||(r=e.charCodeAt(n+1))<56320||r>57343?a:(a-55296<<10)+(r-56320)+65536}},e3=e$?function(e){return e.trimStart()}:function(e){return e.replace(eH,"")},e8=eJ?function(e){return e.trimEnd()}:function(e){return e.replace(eG,"")};function e9(e,n){return new RegExp(e,n)}if(e0){var e7=e9("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");c=function(e,n){var r;return e7.lastIndex=n,null!==(r=e7.exec(e)[1])&&void 0!==r?r:""}}else c=function(e,n){for(var r=[];;){var i,a=e4(e,n);if(void 0===a||tt(a)||(i=a)>=33&&i<=35||36===i||i>=37&&i<=39||40===i||41===i||42===i||43===i||44===i||45===i||i>=46&&i<=47||i>=58&&i<=59||i>=60&&i<=62||i>=63&&i<=64||91===i||92===i||93===i||94===i||96===i||123===i||124===i||125===i||126===i||161===i||i>=162&&i<=165||166===i||167===i||169===i||171===i||172===i||174===i||176===i||177===i||182===i||187===i||191===i||215===i||247===i||i>=8208&&i<=8213||i>=8214&&i<=8215||8216===i||8217===i||8218===i||i>=8219&&i<=8220||8221===i||8222===i||8223===i||i>=8224&&i<=8231||i>=8240&&i<=8248||8249===i||8250===i||i>=8251&&i<=8254||i>=8257&&i<=8259||8260===i||8261===i||8262===i||i>=8263&&i<=8273||8274===i||8275===i||i>=8277&&i<=8286||i>=8592&&i<=8596||i>=8597&&i<=8601||i>=8602&&i<=8603||i>=8604&&i<=8607||8608===i||i>=8609&&i<=8610||8611===i||i>=8612&&i<=8613||8614===i||i>=8615&&i<=8621||8622===i||i>=8623&&i<=8653||i>=8654&&i<=8655||i>=8656&&i<=8657||8658===i||8659===i||8660===i||i>=8661&&i<=8691||i>=8692&&i<=8959||i>=8960&&i<=8967||8968===i||8969===i||8970===i||8971===i||i>=8972&&i<=8991||i>=8992&&i<=8993||i>=8994&&i<=9e3||9001===i||9002===i||i>=9003&&i<=9083||9084===i||i>=9085&&i<=9114||i>=9115&&i<=9139||i>=9140&&i<=9179||i>=9180&&i<=9185||i>=9186&&i<=9254||i>=9255&&i<=9279||i>=9280&&i<=9290||i>=9291&&i<=9311||i>=9472&&i<=9654||9655===i||i>
394=9656&&i<=9664||9665===i||i>=9666&&i<=9719||i>=9720&&i<=9727||i>=9728&&i<=9838||9839===i||i>=9840&&i<=10087||10088===i||10089===i||10090===i||10091===i||10092===i||10093===i||10094===i||10095===i||10096===i||10097===i||10098===i||10099===i||10100===i||10101===i||i>=10132&&i<=10175||i>=10176&&i<=10180||10181===i||10182===i||i>=10183&&i<=10213||10214===i||10215===i||10216===i||10217===i||10218===i||10219===i||10220===i||10221===i||10222===i||10223===i||i>=10224&&i<=10239||i>=10240&&i<=10495||i>=10496&&i<=10626||10627===i||10628===i||10629===i||10630===i||10631===i||10632===i||10633===i||10634===i||10635===i||10636===i||10637===i||10638===i||10639===i||10640===i||10641===i||10642===i||10643===i||10644===i||10645===i||10646===i||10647===i||10648===i||i>=10649&&i<=10711||10712===i||10713===i||10714===i||10715===i||i>=10716&&i<=10747||10748===i||10749===i||i>=10750&&i<=11007||i>=11008&&i<=11055||i>=11056&&i<=11076||i>=11077&&i<=11078||i>=11079&&i<=11084||i>=11085&&i<=11123||i>=11124&&i<=11125||i>=11126&&i<=11157||11158===i||i>=11159&&i<=11263||i>=11776&&i<=11777||11778===i||11779===i||11780===i||11781===i||i>=11782&&i<=11784||11785===i||11786===i||11787===i||11788===i||11789===i||i>=11790&&i<=11798||11799===i||i>=11800&&i<=11801||11802===i||11803===i||11804===i||11805===i||i>=11806&&i<=11807||11808===i||11809===i||11810===i||11811===i||11812===i||11813===i||11814===i||11815===i||11816===i||11817===i||i>=11818&&i<=11822||11823===i||i>=11824&&i<=11833||i>=11834&&i<=11835||i>=11836&&i<=11839||11840===i||11841===i||11842===i||i>=11843&&i<=11855||i>=11856&&i<=11857||11858===i||i>=11859&&i<=11903||i>=12289&&i<=12291||12296===i||12297===i||12298===i||12299===i||12300===i||12301===i||12302===i||12303===i||12304===i||12305===i||i>=12306&&i<=12307||12308===i||12309===i||12310===i||12311===i||12312===i||12313===i||12314===i||12315===i||12316===i||12317===i||i>=12318&&i<=12319||12320===i||12336===i||64830===i||64831===i||i>=65093&&i<=65094)break;r.push(a),n+=a>=65536?2:1}return e5.apply(void 0,r)};function te(e){return e>=97&&e<=122||e>=65&&e<=90}function tt(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function tn(e,n){return Object.keys(e).reduce(function(r,i){return r[i]=(0,eN.pi)({timeZone:n},e[i]),r},{})}function tr(e,n){return Object.keys((0,eN.pi)((0,eN.pi)({},e),n)).reduce(function(r,i){return r[i]=(0,eN.pi)((0,eN.pi)({},e[i]||{}),n[i]||{}),r},{})}function ti(e,n){if(!n)return e;var r=ej.C.formats;return(0,eN.pi)((0,eN.pi)((0,eN.pi)({},r),e),{date:tr(tn(r.date,n),tn(e.date||{},n)),time:tr(tn(r.time,n),tn(e.time||{},n))})}!function(){function e(e,n){void 0===n&&(n={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,n,r){for(var i=[];!this.isEOF();){var a=this.char();if(123===a){var o=this.parseArgument(e,r);if(o.err)return o;i.push(o.val)}else if(125===a&&e>0)break;else if(35===a&&("plural"===n||"selectordinal"===n)){var l=this.clonePosition();this.bump(),i.push({type:f.pound,location:eq(l,this.clonePosition())})}else if(60!==a||this.ignoreTag||47!==this.peek()){if(60===a&&!this.ignoreTag&&te(this.peek()||0)){var o=this.parseTag(e,n);if(o.err)return o;i.push(o.val)}else{var o=this.parseLiteral(e,n);if(o.err)return o;i.push(o.val)}}else{if(!r)return this.error(s.UNMATCHED_CLOSING_TAG,eq(this.clonePosition(),this.clonePosition()));break}}return{val:i,err:null}},e.prototype.parseTag=function(e,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:f.literal,value:"<".concat(i,"/>"),location:eq(r,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(s.INVALID_TAG,eq(r,this.clonePosition()));var a=this.parseMessage(e+1,n,!0);if(a.err)return a;var o=a.val,l=this.clonePosition();if(!this.bumpIf("</"))return this.error(s.UNCLOSED_TAG,eq(r,this.clonePosition()));if(this.isEOF()||!te(this.char()))return this.error(s.INVALID_TAG,eq(l,this.clonePosition()));var u=this.clonePosition();return i!==this.parseTagName()?this.error(s.UNMATCHED_CLOSING_TAG,eq(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">"))?{val:{type:f.tag,value:i,children:o,location:eq(r,this.clonePosition())},err:null}:this.error(s.INVALID_TAG,eq(l,this.clonePosition()))},e.prototype.parseTagName=function(){var e,n=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(n,this.offset())},e.prototype.parseLiteral=function(e,n){for(var r=this.clonePosition(),i="";;){var a=this.tryParseQuote(n);if(a){i+=a;continue}var o=this.tryParseUnquoted(e,n);if(o){i+=o;continue}var s=this.tryParseLeftAngleBracket();if(s){i+=s;continue}break}var l=eq(r,this.clonePosition());return{val:{type:f.literal,value:i,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){var e;return this.isEOF()||60!==this.char()||!this.ignoreTag&&(te(e=this.peek()||0)||47===e)?null:(this.bump(),"<")},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";
394case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39===this.peek())n.push(39),this.bump();else{this.bump();break}}else n.push(r);this.bump()}return e5.apply(void 0,n)},e.prototype.tryParseUnquoted=function(e,n){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===n||"selectordinal"===n)||125===r&&e>0?null:(this.bump(),e5(r))},e.prototype.parseArgument=function(e,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(s.EXPECT_ARGUMENT_CLOSING_BRACE,eq(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(s.EMPTY_ARGUMENT,eq(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(s.MALFORMED_ARGUMENT,eq(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(s.EXPECT_ARGUMENT_CLOSING_BRACE,eq(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:f.argument,value:i,location:eq(r,this.clonePosition())},err:null};case 44:if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(s.EXPECT_ARGUMENT_CLOSING_BRACE,eq(r,this.clonePosition()));return this.parseArgumentOptions(e,n,i,r);default:return this.error(s.MALFORMED_ARGUMENT,eq(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),n=this.offset(),r=c(this.message,n),i=n+r.length;return this.bumpTo(i),{value:r,location:eq(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,n,r,i){var a,o=this.clonePosition(),u=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(u){case"":return this.error(s.EXPECT_ARGUMENT_TYPE,eq(o,c));case"number":case"date":case"time":this.bumpSpace();var d=null;if(this.bumpIf(",")){this.bumpSpace();var p=this.clonePosition(),h=this.parseSimpleArgStyleIfPossible();if(h.err)return h;var y=e8(h.val);if(0===y.length)return this.error(s.EXPECT_ARGUMENT_STYLE,eq(this.clonePosition(),this.clonePosition()));d={style:y,styleLocation:eq(p,this.clonePosition())}}var m=this.tryParseArgumentClose(i);if(m.err)return m;var g=eq(i,this.clonePosition());if(d&&e6(null==d?void 0:d.style,"::",0)){var b,v=e3(d.style.slice(2));if("number"===u){var h=this.parseNumberSkeletonFromString(v,d.styleLocation);if(h.err)return h;return{val:{type:f.number,value:r,location:g,style:h.val},err:null}}if(0===v.length)return this.error(s.EXPECT_DATE_TIME_SKELETON,g);var w=v;this.locale&&(w=function(e,n){for(var r="",i=0;i<e.length;i++){var a=e.charAt(i);if("j"===a){for(var o=0;i+1<e.length&&e.charAt(i+1)===a;)o++,i++;var s=1+(1&o),f=o<2?1:3+(o>>1),l=function(e){var n,r=e.hourCycle;if(void 0===r&&e.hourCycles&&e.hourCycles.length&&(r=e.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw Error("Invalid hourCycle")}var i=e.language;return"root"!==i&&(n=e.maximize().region),(eW[n||""]||eW[i||""]||eW["".concat(i,"-001")]||eW["001"])[0]}(n);for(("H"==l||"k"==l)&&(f=0);f-- >0;)r+="a";for(;s-- >0;)r=l+r}else"J"===a?r+="H":r+=a}return r}(v,this.locale));var y={type:l.dateTime,pattern:w,location:d.styleLocation,parsedOptions:this.shouldParseSkeletons?(b={},w.replace(eO,function(e){var n=e.length;switch(e[0]){case"G":b.era=4===n?"long":5===n?"narrow":"short";break;case"y":b.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":b.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw RangeError("`w/W` (week) patterns are not supported");case"d":b.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":b.weekday=4===n?"long":5===n?"narrow":"short";break;case"e":if(n<4)throw RangeError("`e..eee` (weekday) patterns are not supported");b.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");b.weekday=["short","long","narrow","short"][n-4];break;case"a":b.hour12=!0;break;case"b":case"B":throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":b.hourCycle="h12",b.hour=["numeric","2-digit"][n-1];break;case"H":b.hourCycle="h23",b.hour=["numeric","2-digit"][n-1];break;case"K":b.hourCycle="h11",b.hour=["numeric","2-digit"][n-1];break;case"k":b.hourCycle="h24",b.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":b.minute=["numeric","2-digit"][n-1];break;case"s":b.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":b.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),b):{}};return{val:{type:"date"===u?f.date:f.time,value:r,location:g,style:y},err:null}}return{val:{type:"number"===u?f.number:"date"===u?f.date:f.time,value:r,location:g,style:null!==(a=null==d?void 0:d.style)&&void 0!==a?a:null},err:null};
394case"plural":case"selectordinal":case"select":var x=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(s.EXPECT_SELECT_ARGUMENT_OPTIONS,eq(x,(0,eN.pi)({},x)));this.bumpSpace();var T=this.parseIdentifierIfPossible(),C=0;if("select"!==u&&"offset"===T.value){if(!this.bumpIf(":"))return this.error(s.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,eq(this.clonePosition(),this.clonePosition()));this.bumpSpace();var h=this.tryParseDecimalInteger(s.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,s.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(h.err)return h;this.bumpSpace(),T=this.parseIdentifierIfPossible(),C=h.val}var M=this.tryParsePluralOrSelectOptions(e,u,n,T);if(M.err)return M;var m=this.tryParseArgumentClose(i);if(m.err)return m;var A=eq(i,this.clonePosition());if("select"===u)return{val:{type:f.select,value:r,options:e2(M.val),location:A},err:null};return{val:{type:f.plural,value:r,options:e2(M.val),offset:C,pluralType:"plural"===u?"cardinal":"ordinal",location:A},err:null};default:return this.error(s.INVALID_ARGUMENT_TYPE,eq(o,c))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(s.EXPECT_ARGUMENT_CLOSING_BRACE,eq(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,n=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(s.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,eq(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(n.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,n){var r=[];try{r=function(e){if(0===e.length)throw Error("Number skeleton cannot be empty");for(var n=e.split(eP).filter(function(e){return e.length>0}),r=[],i=0;i<n.length;i++){var a=n[i].split("/");if(0===a.length)throw Error("Invalid number skeleton");for(var o=a[0],s=a.slice(1),f=0;f<s.length;f++)if(0===s[f].length)throw Error("Invalid number skeleton");r.push({stem:o,options:s})}return r}(e)}catch(e){return this.error(s.INVALID_NUMBER_SKELETON,n)}return{val:{type:l.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?function(e){for(var n={},r=0;r<e.length;r++){var i=e[r];switch(i.stem){case"percent":case"%":n.style="percent";continue;case"%x100":n.style="percent",n.scale=100;continue;case"currency":n.style="currency",n.currency=i.options[0];continue;case"group-off":case",_":n.useGrouping=!1;continue;case"precision-integer":case".":n.maximumFractionDigits=0;continue;case"measure-unit":case"unit":n.style="unit",n.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":n.notation="compact",n.compactDisplay="short";continue;case"compact-long":case"KK":n.notation="compact",n.compactDisplay="long";continue;case"scientific":n=(0,eN.pi)((0,eN.pi)((0,eN.pi)({},n),{notation:"scientific"}),i.options.reduce(function(e,n){return(0,eN.pi)((0,eN.pi)({},e),eF(n)||{})},{}));continue;case"engineering":n=(0,eN.pi)((0,eN.pi)((0,eN.pi)({},n),{notation:"engineering"}),i.options.reduce(function(e,n){return(0,eN.pi)((0,eN.pi)({},e),eF(n)||{})},{}));continue;case"notation-simple":n.notation="standard";continue;case"unit-width-narrow":n.currencyDisplay="narrowSymbol",n.unitDisplay="narrow";continue;case"unit-width-short":n.currencyDisplay="code",n.unitDisplay="short";continue;case"unit-width-full-name":n.currencyDisplay="name",n.unitDisplay="long";continue;case"unit-width-iso-code":n.currencyDisplay="symbol";continue;case"scale":n.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":n.roundingMode="floor";continue;case"rounding-mode-ceiling":n.roundingMode="ceil";continue;case"rounding-mode-down":n.roundingMode="trunc";continue;case"rounding-mode-up":n.roundingMode="expand";continue;case"rounding-mode-half-even":n.roundingMode="halfEven";continue;case"rounding-mode-half-down":n.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":n.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw RangeError("integer-width stems only accept a single optional option");
394i.options[0].replace(ez,function(e,r,i,a,o,s){if(r)n.minimumIntegerDigits=i.length;else if(a&&o)throw Error("We currently do not support maximum integer digits");else if(s)throw Error("We currently do not support exact integer digits");return""});continue}if(eB.test(i.stem)){n.minimumIntegerDigits=i.stem.length;continue}if(eL.test(i.stem)){if(i.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(eL,function(e,r,i,a,o,s){return"*"===i?n.minimumFractionDigits=r.length:a&&"#"===a[0]?n.maximumFractionDigits=a.length:o&&s?(n.minimumFractionDigits=o.length,n.maximumFractionDigits=o.length+s.length):(n.minimumFractionDigits=r.length,n.maximumFractionDigits=r.length),""});var a=i.options[0];"w"===a?n=(0,eN.pi)((0,eN.pi)({},n),{trailingZeroDisplay:"stripIfInteger"}):a&&(n=(0,eN.pi)((0,eN.pi)({},n),eU(a)));continue}if(eR.test(i.stem)){n=(0,eN.pi)((0,eN.pi)({},n),eU(i.stem));continue}var o=eF(i.stem);o&&(n=(0,eN.pi)((0,eN.pi)({},n),o));var s=function(e){var n;if("E"===e[0]&&"E"===e[1]?(n={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(n={notation:"scientific"},e=e.slice(1)),n){var r=e.slice(0,2);if("+!"===r?(n.signDisplay="always",e=e.slice(2)):"+?"===r&&(n.signDisplay="exceptZero",e=e.slice(2)),!eB.test(e))throw Error("Malformed concise eng/scientific notation");n.minimumIntegerDigits=e.length}return n}(i.stem);s&&(n=(0,eN.pi)((0,eN.pi)({},n),s))}return n}(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,n,r,i){for(var a,o=!1,f=[],l=new Set,u=i.value,c=i.location;;){if(0===u.length){var d=this.clonePosition();if("select"!==n&&this.bumpIf("=")){var p=this.tryParseDecimalInteger(s.EXPECT_PLURAL_ARGUMENT_SELECTOR,s.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;c=eq(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(l.has(u))return this.error("select"===n?s.DUPLICATE_SELECT_ARGUMENT_SELECTOR:s.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===u&&(o=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===n?s.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:s.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,eq(this.clonePosition(),this.clonePosition()));var y=this.parseMessage(e+1,n,r);if(y.err)return y;var m=this.tryParseArgumentClose(h);if(m.err)return m;f.push([u,{value:y.val,location:eq(h,this.clonePosition())}]),l.add(u),this.bumpSpace(),u=(a=this.parseIdentifierIfPossible()).value,c=a.location}return 0===f.length?this.error("select"===n?s.EXPECT_SELECT_ARGUMENT_SELECTOR:s.EXPECT_PLURAL_ARGUMENT_SELECTOR,eq(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(s.MISSING_OTHER_CLAUSE,eq(this.clonePosition(),this.clonePosition())):{val:f,err:null}},e.prototype.tryParseDecimalInteger=function(e,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var a=!1,o=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)a=!0,o=10*o+(s-48),this.bump();else break}var f=eq(i,this.clonePosition());return a?eX(o*=r)?{val:o,err:null}:this.error(n,f):this.error(e,f)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var n=e4(this.message,e);if(void 0===n)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(e,n){return{val:null,err:{kind:e,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(e6(this.message,e,this.offset())){for(var n=0;n<e.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var n=this.offset(),r=this.message.indexOf(e,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var n=this.offset();if(n===e)break;if(n>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&tt(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(e>=65536?2:1));return null!=r?r:null}}();var ta=function(e,n,r,i,a){var o=e.locale,s=e.formats,l=e.messages,u=e.defaultLocale,c=e.defaultFormats,d=e.fallbackOnEmptyString,p=e.onError,h=e.timeZone,y=e.defaultRichTextElements;void 0===r&&(r={id:""});var m=r.id,g=r.defaultMessage;!function(e,n,r){if(void 0===r&&(r=Error),!e)throw new r(n)}(!!m,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var b=String(m),v=l&&Object.prototype.hasOwnProperty.call(l,b)&&l[b];if(Array.isArray(v)&&1===v.length&&v[0].type===f.literal)return v[0].value;if(!i&&v&&"string"==typeof v&&!y)return v.replace(/'\{(.*?)\}'/gi,"{$1}");if(i=(0,eN.pi)((0,eN.pi)({},y),i||{}),s=ti(s,h),c=ti(c,h),!v){if(!1===d&&""===v)return v;if((!g||o&&o.toLowerCase()!==u.toLowerCase())&&p(new eD.$6(r,o)),g)try{var w=n.getMessageFormat(g,u,c,a);return w.format(i)}catch(e){return p(new eD.X9('Error formatting default message for: "'.concat(b,'", rendering default message verbatim'),o,r,e)),"string"==typeof g?g:b}return b}try{var w=n.getMessageFormat(v,o,s,(0,eN.pi)({formatters:n},a||{}));return w.format(i)}catch(e){p(new eD.X9('Error formatting message: "'.concat(b,'", using ').concat(g?"default message":"id"," as fallback."),o,r,e))}if(g)try{var w=n.getMessageFormat(g,u,c,a);return w.format(i)}catch(e){p(new eD.X9('Error formatting the default message for: "'.concat(b,'", rendering message verbatim'),o,r,e))}return"string"==typeof v?v:"string"==typeof g?g:b},to=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function ts(e,n,r){var i=e.locale,a=e.formats,o=e.onError;void 0===r&&(r={});var s=r.format,f=s&&(0,eI.TB)(a,"number",s,o)||{};return n(i,(0,eI.L6)(r,to,f))}function tf(e,n,r,i){void 0===i&&(i={});try{return ts(e,n,i).format(r)}catch(n){e.onError(new eD.Qe("Error formatting number.",e.locale,n))}return String(r)}function tl(e,n,r,i){void 0===i&&(i={});try{return ts(e,n,i).formatToParts(r)}catch(n){e.onError(new eD.Qe("Error formatting number.",e.locale,n))}return[]}var tu=r(11050),tc=["numeric","style"];function td(e,n,r,i,a){void 0===a&&(a={}),i||(i="second"),Intl.RelativeTimeFormat||e.onError(new tu.u_('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',tu.jK.MISSING_INTL_API));try{var o,s,f,l,u,c;return(o=a,s=e.locale,f=e.formats,l=e.onError,void 0===o&&(o={}),c=!!(u=o.format)&&(0,eI.TB)(f,"relative",u,l)||{},n(s,(0,eI.L6)(o,tc,c))).format(r,i)}catch(n){e.onError(new eD.Qe("Error formatting relative time.",e.locale,n))}return String(r)}var tp=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function th(e,n,r,i){var a=e.locale,o=e.formats,s=e.onError,f=e.timeZone;void 0===i&&(i={});var l=i.format,u=(0,eN.pi)((0,eN.pi)({},f&&{timeZone:f}),l&&(0,eI.TB)(o,n,l,s)),c=(0,eI.L6)(i,tp,u);return"time"!==n||c.hour||c.minute||c.second||c.timeStyle||c.dateStyle||(c=(0,eN.pi)((0,eN.pi)({},c),{hour:"numeric",minute:"numeric"})),r(a,c)}function ty(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var a=r[0],o=r[1],s="string"==typeof a?new Date(a||0):a;try{return th(e,"date",n,void 0===o?{}:o).format(s)}catch(n){e.onError(new eD.Qe("Error formatting date.",e.locale,n))}return String(s)}function tm(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var a=r[0],o=r[1],s="string"==typeof a?new Date(a||0):a;try{return th(e,"time",n,void 0===o?{}:o).format(s)}catch(n){e.onError(new eD.Qe("Error formatting time.",e.locale,n))}return String(s)}function tg(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var a=r[0],o=r[1],s=r[2],f=e.timeZone,l=e.locale,u=e.onError,c=(0,eI.L6)(void 0===s?{}:s,tp,f?{timeZone:f}:{});try{return n(l,c).formatRange(a,o)}catch(n){u(new eD.Qe("Error formatting date time range.",e.locale,n))}return String(a)}function tb(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var a=r[0],o=r[1],s="string"==typeof a?new Date(a||0):a;try{return th(e,"date",n,void 0===o?{}:o).formatToParts(s)}catch(n){e.onError(new eD.Qe("Error formatting date.",e.locale,n))}return[]}function tv(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var a=r[0],o=r[1],s="string"==typeof a?new Date(a||0):a;try{return th(e,"time",n,void 0===o?{}:o).formatToParts(s)}catch(n){e.onError(new eD.Qe("Error formatting time.",e.locale,n))}return[]}var tw=["type"];function tx(e,n,r,i){var a=e.locale,o=e.onError;void 0===i&&(i={}),Intl.PluralRules||o(new tu.u_('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',tu.jK.MISSING_INTL_API));var s=(0,eI.L6)(i,tw);try{return n(a,s).select(r)}catch(e){o(new eD.Qe("Error formatting plural.",a,e))}return"other"}var tT=["type","style"],tC=Date.now();function tM(e,n,r,i){void 0===i&&(i={});var a=tA(e,n,r,i).reduce(function(e,n){var r=n.value;return"string"!=typeof r?e.push(r):"string"==typeof e[e.length-1]?e[e.length-1]+=r:e.pu
394sh(r),e},[]);return 1===a.length?a[0]:0===a.length?"":a}function tA(e,n,r,i){var a=e.locale,o=e.onError;void 0===i&&(i={}),Intl.ListFormat||o(new tu.u_('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',tu.jK.MISSING_INTL_API));var s=(0,eI.L6)(i,tT);try{var f={},l=r.map(function(e,n){if("object"==typeof e){var r="".concat(tC,"_").concat(n,"_").concat(tC);return f[r]=e,r}return String(e)});return n(a,s).formatToParts(l).map(function(e){return"literal"===e.type?e:(0,eN.pi)((0,eN.pi)({},e),{value:f[e.value]||e.value})})}catch(e){o(new eD.Qe("Error formatting list.",a,e))}return r}var tE=["style","type","fallback","languageDisplay"];function tI(e,n,r,i){var a=e.locale,o=e.onError;Intl.DisplayNames||o(new tu.u_('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',tu.jK.MISSING_INTL_API));var s=(0,eI.L6)(i,tE);try{return n(a,s).of(r)}catch(e){o(new eD.Qe("Error formatting display name.",a,e))}}var tS=r(61092);function tk(e){return e?Object.keys(e).reduce(function(n,r){var i=e[r];return n[r]=(0,tS.Gt)(i)?(0,eS.dt)(i):i,n},{}):e}var tN=function(e,n,r,i){for(var a=[],o=4;o<arguments.length;o++)a[o-4]=arguments[o];var s=tk(i),f=ta.apply(void 0,(0,eE.ev)([e,n,r,s],a,!1));return Array.isArray(f)?h.Children.toArray(f):f},tj=function(e,n){var r,i,a,o,s,f,l,u=e.defaultRichTextElements,c=(0,eE._T)(e,["defaultRichTextElements"]),d=tk(u),p=(i=(0,eE.pi)((0,eE.pi)((0,eE.pi)({},eS.Z0),c),{defaultRichTextElements:d}),a=(0,eI.ax)(n),s=(o=(0,eN.pi)((0,eN.pi)({},eI.Z0),i)).locale,f=o.defaultLocale,l=o.onError,s?!Intl.NumberFormat.supportedLocalesOf(s).length&&l?l(new eD.gb('Missing locale data for locale: "'.concat(s,'" in Intl.NumberFormat. Using default locale: "').concat(f,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(s).length&&l&&l(new eD.gb('Missing locale data for locale: "'.concat(s,'" in Intl.DateTimeFormat. Using default locale: "').concat(f,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(l&&l(new eD.OV('"locale" was not configured, using "'.concat(f,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),o.locale=o.defaultLocale||"en"),o.onWarn&&o.defaultRichTextElements&&"string"==typeof(r=o.messages||{})[Object.keys(r)[0]]&&o.onWarn('[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. \nPlease consider using "@formatjs/cli" to pre-compile your messages for performance.\nFor more details see https://formatjs.io/docs/getting-started/message-distribution'),(0,eN.pi)((0,eN.pi)({},o),{formatters:a,formatNumber:tf.bind(null,o,a.getNumberFormat),formatNumberToParts:tl.bind(null,o,a.getNumberFormat),formatRelativeTime:td.bind(null,o,a.getRelativeTimeFormat),formatDate:ty.bind(null,o,a.getDateTimeFormat),formatDateToParts:tb.bind(null,o,a.getDateTimeFormat),formatTime:tm.bind(null,o,a.getDateTimeFormat),formatDateTimeRange:tg.bind(null,o,a.getDateTimeFormat),formatTimeToParts:tv.bind(null,o,a.getDateTimeFormat),formatPlural:tx.bind(null,o,a.getPluralRules),formatMessage:ta.bind(null,o,a),$t:ta.bind(null,o,a),formatList:tM.bind(null,o,a.getListFormat),formatListToParts:tA.bind(null,o,a.getListFormat),formatDisplayName:tI.bind(null,o,a.getDisplayNames)})),h={locale:p.locale,timeZone:p.timeZone,fallbackOnEmptyString:p.fallbackOnEmptyString,formats:p.formats,defaultLocale:p.defaultLocale,defaultFormats:p.defaultFormats,messages:p.messages,onError:p.onError,defaultRichTextElements:d};return(0,eE.pi)((0,eE.pi)({},p),{formatMessage:tN.bind(null,h,p.formatters),$t:tN.bind(null,h,p.formatters)})};function tD(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}var t_=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.cache=(0,eI.Sn)(),n.state={cache:n.cache,intl:tj(tD(n.props),n.cache),prevConfig:tD(n.props)},n}return(0,eE.ZT)(n,e),n.getDerivedStateFromProps=function(e,n){var r=n.prevConfig,i=n.cache,a=tD(e);
394return(0,eS.wU)(r,a)?null:{intl:tj(a,i),prevConfig:a}},n.prototype.render=function(){return(0,eS.lq)(this.state.intl),h.createElement(ek.zt,{value:this.state.intl},this.props.children)},n.displayName="IntlProvider",n.defaultProps=eS.Z0,n}(h.PureComponent),tO=r(7213),tP=r(90975),tL=r(61541),tR=r(43536),tz=r(60037),tB=class extends tz.l{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,n,r){let i=n.queryKey,a=n.queryHash??(0,tP.Rm)(i,n),o=this.get(a);return o||(o=new tL.A({cache:this,queryKey:i,queryHash:a,options:e.defaultQueryOptions(n),state:r,defaultOptions:e.getQueryDefaults(i)}),this.add(o)),o}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let n=this.#e.get(e.queryHash);n&&(e.destroy(),n===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){tR.V.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let n={exact:!0,...e};return this.getAll().find(e=>(0,tP._x)(n,e))}findAll(e={}){let n=this.getAll();return Object.keys(e).length>0?n.filter(n=>(0,tP._x)(e,n)):n}notify(e){tR.V.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){tR.V.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){tR.V.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},tU=r(56643),tF=class extends tz.l{constructor(e={}){super(),this.config=e,this.#t=[],this.#n=0}#t;#n;#r;build(e,n,r){let i=new tU.m({mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(n),state:r});return this.add(i),i}add(e){this.#t.push(e),this.notify({type:"added",mutation:e})}remove(e){this.#t=this.#t.filter(n=>n!==e),this.notify({type:"removed",mutation:e})}clear(){tR.V.batch(()=>{this.#t.forEach(e=>{this.remove(e)})})}getAll(){return this.#t}find(e){let n={exact:!0,...e};return this.#t.find(e=>(0,tP.X7)(n,e))}findAll(e={}){return this.#t.filter(n=>(0,tP.X7)(e,n))}notify(e){tR.V.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){return this.#r=(this.#r??Promise.resolve()).then(()=>{let e=this.#t.filter(e=>
394e.state.isPaused);return tR.V.batch(()=>e.reduce((e,n)=>e.then(()=>n.continue().catch(tP.ZT)),Promise.resolve()))}).then(()=>{this.#r=void 0}),this.#r}},tZ=r(27533),tW=r(90377);function tH(e,{pages:n,pageParams:r}){let i=n.length-1;return e.getNextPageParam(n[i],n,r[i],r)}var tG=class{#i;#a;#o;#s;#f;#l;#u;#c;constructor(e={}){this.#i=e.queryCache||new tB,this.#a=e.mutationCache||new tF,this.#o=e.defaultOptions||{},this.#s=new Map,this.#f=new Map,this.#l=0}mount(){this.#l++,1===this.#l&&(this.#u=tZ.j.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#i.onFocus())}),this.#c=tW.N.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#i.onOnline())}))}unmount(){this.#l--,0===this.#l&&(this.#u?.(),this.#u=void 0,this.#c?.(),this.#c=void 0)}isFetching(e){return this.#i.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#a.findAll({...e,status:"pending"}).length}getQueryData(e){let n=this.defaultQueryOptions({queryKey:e});return this.#i.get(n.queryHash)?.state.data}ensureQueryData(e){let n=this.getQueryData(e.queryKey);if(void 0===n)return this.fetchQuery(e);{let r=this.defaultQueryOptions(e),i=this.#i.build(this,r);return e.revalidateIfStale&&i.isStaleByTime(r.staleTime)&&this.prefetchQuery(r),Promise.resolve(n)}}getQueriesData(e){return this.#i.findAll(e).map(({queryKey:e,state:n})=>[e,n.data])}setQueryData(e,n,r){let i=this.defaultQueryOptions({queryKey:e}),a=this.#i.get(i.queryHash),o=a?.state.data,s=(0,tP.SE)(n,o);if(void 0!==s)return this.#i.build(this,i).setData(s,{...r,manual:!0})}setQueriesData(e,n,r){return tR.V.batch(()=>this.#i.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,n,r)]))}getQueryState(e){let n=this.defaultQueryOptions({queryKey:e});return this.#i.get(n.queryHash)?.state}removeQueries(e){let n=this.#i;tR.V.batch(()=>{n.findAll(e).forEach(e=>{n.remove(e)})})}resetQueries(e,n){let r=this.#i,i={type:"active",...e};return tR.V.batch(()=>(r.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries(i,n)))}cancelQueries(e={},n={}){let r={revert:!0,...n};return Promise.all(tR.V.batch(()=>this.#i.findAll(e).map(e=>e.cancel(r)))).then(tP.ZT).catch(tP.ZT)}invalidateQueries(e={},n={}){return tR.V.batch(()=>{if(this.#i.findAll(e).forEach(e=>{e.invalidate()}),"none"===e.refetchType)return Promise.resolve();let r={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(r,n)})}refetchQueries(e={},n){let r={...n,cancelRefetch:n?.cancelRefetch??!0};return Promise.all(tR.V.batch(()=>this.#i.findAll(e).filter(e=>!e.isDisabled()).map(e=>{let n=e.fetch(void 0,r);return r.throwOnError||(n=n.catch(tP.ZT)),"paused"===e.state.fetchStatus?Promise.resolve():n}))).then(tP.ZT)}fetchQuery(e){let n=this.defaultQueryOptions(e);void 0===n.retry&&(n.retry=!1);let r=this.#i.build(this,n);return r.isStaleByTime(n.staleTime)?r.fetch(n):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(tP.ZT).catch(tP.ZT)}fetchInfiniteQuery(e){var n;return e.behavior=(n=e.pages,{onFetch:(e,r)=>{let i=async()=>{let r;let i=e.options,a=e.fetchOptions?.meta?.fetchMore?.direction,o=e.state.data?.pages||[],s=e.state.data?.pageParams||[],f=!1,l=n=>{Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(e.signal.aborted?f=!0:e.signal.addEventListener("abort",()=>{f=!0}),e.signal)})},u=e.options.queryFn&&e.options.queryFn!==tP.CN?e.options.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.options.queryHash}'`)),c=async(n,r,i)=>{if(f)return Promise.reject();if(null==r&&n.pages.length)return Promise.resolve(n);let a={queryKey:e.queryKey,pageParam:r,direction:i?"backward":"forward",meta:e.options.meta};l(a);let o=await u(a),{maxPages:s}=e.options,c=i?tP.Ht:tP.VX;return{pages:c(n.pages,o,s),pageParams:c(n.pageParams,r,s)}};if(a&&o.length){let e="backward"===a,n={pages:o,pageParams:s},f=(e?function(e,{pages:n,pageParams:r}){return e.getPreviousPageParam?.(n[0],n,r[0],r)}:tH)(i,n);r=await c(n,f,e)}else{r=await c({pages:[],pageParams:[]},s[0]??i.initialPageParam);let e=n??o.length;for(let n=1;n<e;n++){let e=tH(i,r);r=await c(r,e)}}return r};e.options.persister?e.fetchFn=()=>e.options.persister?.(i,{queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},r):e.fetchFn=i}}),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(tP.ZT).catch(tP.ZT)}resumePausedMutations(){return tW.N.isOnline()?this.#a.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#i}getMutationCache(){return this.#a}getDefaultOptions(){return this.#o}setDefaultOptions(e){this.#o=e}setQueryDefaults(e,n){this.#s.set((0,tP.Ym)(e),{queryKey:e,defaultOptions:n})}getQueryDefaults(e){let n=[...this.#s.values()],r={};
394return n.forEach(n=>{(0,tP.to)(e,n.queryKey)&&(r={...r,...n.defaultOptions})}),r}setMutationDefaults(e,n){this.#f.set((0,tP.Ym)(e),{mutationKey:e,defaultOptions:n})}getMutationDefaults(e){let n=[...this.#f.values()],r={};return n.forEach(n=>{(0,tP.to)(e,n.mutationKey)&&(r={...r,...n.defaultOptions})}),r}defaultQueryOptions(e){if(e._defaulted)return e;let n={...this.#o.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return n.queryHash||(n.queryHash=(0,tP.Rm)(n.queryKey,n)),void 0===n.refetchOnReconnect&&(n.refetchOnReconnect="always"!==n.networkMode),void 0===n.throwOnError&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),!0!==n.enabled&&n.queryFn===tP.CN&&(n.enabled=!1),n}defaultMutationOptions(e){return e?._defaulted?e:{...this.#o.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#i.clear(),this.#a.clear()}},tq=r(48454),tY=r(41872),tV=r(96033),tQ=r(11168),tK=r(10378);function t$(e){let[n,r]=(0,h.useState)(null),[i]=(0,h.useState)(()=>new tG({defaultOptions:{mutations:{onSettled:(e,n,r)=>{(0,tV.L)(r,["__contract"])&&(0,tV.L)(r.__contract,["address","chain"])&&"string"==typeof r.__contract.address&&(0,tV.L)(e,["transactionHash"])&&(0,tV.L)(r,["client","chain"])&&(0,tY.h)({transactionHash:e.transactionHash,client:r.client,chain:r.chain}).catch(e=>{console.error("[Transaction Error]",e)}).then(()=>Promise.all([i.invalidateQueries({queryKey:["readContract",r.__contract?.chain.id,r.__contract?.address]}),(0,tK.K)(i,r.__contract?.chain.id)]))}},queries:{staleTime:6e4}}}));return(0,R.jsxs)(tq.aH,{client:i,children:[(0,R.jsx)(tQ.E.Provider,{value:r,children:e.children}),n]})}var tJ=r(22555),tX=r(28858),t0=r(25675),t1=r.n(t0),t6=r(30821),t5=r(87128),t2=r(38910),t4=r.n(t2),t3=r(73167),t8=function(){var e=(0,D.I0)(),n=(0,P.useSession)().data,r=(0,N.Z)(),i=(0,h.useState)(!localStorage.getItem("modalTour_".concat(null==n?void 0:n.user.id))),a=i[0],o=i[1],s=(0,h.useState)(0),f=s[0],l=s[1],u=(0,g.Z)(tX.mobileMediaQuery),c=function(){localStorage.setItem("modalTour_".concat(null==n?void 0:n.user.id),!0),o(!1),e((0,t3.cL)(!0))},d=[{id:1,title:r.formatMessage({id:"CFo5Xr",defaultMessage:[{type:0,value:"Organize your audio files"}]}),description:r.formatMessage({id:"J2+OCe",defaultMessage:[{type:0,value:"View all your projects and tracks in a single place"}]}),image:"/organize_files_tour.svg",button:{text:r.formatMessage({id:"mz5hH7",defaultMessage:[{type:0,value:"GOT IT"}]}),action:"next"}},{id:2,title:r.formatMessage({id:"2f0md6",defaultMessage:[{type:0,value:"Collaborate with artists and producers"}]}),description:r.formatMessage({id:"EQPD2Z",defaultMessage:[{type:0,value:"Have a single source of truth for your projects"}]}),image:"/collaborate_tour.svg",button:{text:r.formatMessage({id:"g5D0Z4",defaultMessage:[{type:0,value:"OKAY"}]}),action:"next"}},{id:3,title:r.formatMessage({id:"Z8jR7i",defaultMessage:[{type:0,value:"Monetize with NFTs and Coins"}]}),description:r.formatMessage({id:"G6KdEC",defaultMessage:[{type:0,value:"Mint your own NFTs and explore the new economy"}]}),image:"/monetize_tour.svg",button:{text:r.formatMessage({id:"qvDj/E",defaultMessage:[{type:0,value:"LET'S START"}]}),action:"exit"}}];return(0,R.jsx)(t6.Z,{disableEnforceFocus:!0,open:a,onClose:c,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:(0,R.jsxs)("div",{className:u?t4().mobileModalContainer:t4().modalContainer,children:[(0,R.jsx)("button",{className:t4().btnClose,onClick:c,children:(0,R.jsx)(t5.Z,{sx:{fontSize:28,color:"#7C7C7C"}})}),(0,R.jsx)(t9,{activeIndex:f,slides:d,isMobile:u}),(0,R.jsx)(t7,{isMobile:u,activeIndex:f,setActiveIndex:l,slides:d}),(0,R.jsx)(k.Z,{variant:"contained",sx:{maxWidth:"100px",maxHeight:"40px",minWidth:"100px",minHeight:"40px",backgroundColor:"#0575E6",alignItems:"center",justifyContent:"center","&:hover":{backgroundColor:"#057df7"}},className:u?t4().mobileBtnGotItActive:t4().btnGotItActive,onClick:function(){return f!==d.length-1?l(f+1):c()},children:(0,R.jsx)("span",{className:"txtButton ".concat(t4().btnGotItText),children:d[f].button.text})})]})})},t9=function(e){var n=e.activeIndex,r=e.slides,i=e.isMobile;return(0,R.jsx)("div",{className:t4().wrapper,children:r.map(function(e,r){return(0,R.jsxs)("div",{className:[r===n?t4().slideActive:t4().slideInactive],children:[(0,R.jsx)(t1(),{src:e.image||"/empty_placeholder.png",height:i?290:315,width:400,alt:""}),(0,R.jsxs)("div",{className:t4().descriptionSlide,children:[(0,R.jsx)("h1",{className:"txtH5",children:e.title}),(0,R.jsx)("p",{className:"txtBody1",children:e.description})]})]},"slide_".concat(e.id))})})},t7=function(e){var n=e.activeIndex,r=e.setActiveIndex,i=e.slides,a=e.isMobile;return(0,R.jsx)("div",{className:a?t4().mobileDotsContainer:t4().dotsContainer,children:i.map(function(e,i){return(0,R.jsx)("span",{className:[i===n?t4().activeDot:t4().inactiveDot],onClick:function(){return r(i)}},"dot_".concat(e.id))})})},ne=r(97909),nt=r.n(ne),nn=r(89859),nr=r(15005),ni=r(24315),na=r(55462),no=r(46334),ns=(0,no.Z)((0,R.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search"),nf=r(75214),nl=r(90233),nu=function(){var e=(0,N.Z)(),n=(0,D.I0)(),r=(0,P.useSession)().data,i=(0,D.v9)(function(e){return e.library.allGenres}),a=(0,h.useState)(!localStorage.getItem("modalTour_".concat(null==r?void 0:r.user.id))),o=a[0],s=a[1],f=(0,h.useState)(0),l=f[0],u=f[1],c=(0,h.useState)([]),d=c[0],p=c[1],y=(0,h.useState)([]),m=y[0],b=y[1],v=(0,g.Z)(tX.mobileMediaQuery),w=function(){localStorage.setItem("modalTour_".concat(null==r?void 0:r.user.id),!0),d.length>0&&(0,nf.Nq)({preferredStyles:d}),s(!1),n((0,t3.cL)(!0))},x=[{id:1,title:e.formatMessage({id:"DR4UeE",defaultMessage:[{type:0,value:"Welcome to the music Token metaverse"}]}),description:e.formatMessage({id:"vBZUhH",defaultMessage:[{type:0,value:"Musical connects top artists production to NFT enthusiasts"}]}),image:"/welcome_music_nft.svg",button:{text:e.formatMessage({id:"mz5hH7",defaultMessage:[{type:0,value:"GOT IT"}]}),action:"next"}},{id:2,title:e.formatMessage({id:"8OGkCH",defaultMessage:[{type:0,value:"Bid for your favorite creators NFTs"}]}),description:e.formatMessage({id:"myYLcX",defaultMessage:[{type:0,value:"Make sure to connect your crypto wallet to be able start biding"}]}),image:"/favorite_musicians_nft.svg",button:{text:e.formatMessage({id:"OvsnuS",defaultMessage:[{type:0,value:"THAT'S OK"}]}),action:"next"}},{id:3,title:e.formatMessage({id:"lr7/Li",defaultMessage:[{type:0,value:"What are your favorite music styles?"}]}),button:{text:e.formatMessage({id:"qvDj/E",defaultMessage:[{type:0,value:"LET'S START"}]}),action:"exit"}}];return(0,h.useEffect)(function(){var e=[];for(var n in i){var r=i[n];e.push({id:n,label:r.title})}e.sort(function(){return Math.random()-.5}),b(e)},[i]),(0,R.jsx)(t6.Z,{disableEnforceFocus:!0,open:o,onClose:w,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:(0,R.jsxs)("div",{className:v?nt().mobileModalContainer:nt().modalContainer,children:[(0,R.jsx)("button",{className:nt().btnClose,onClick:w,children:(0,R.jsx)(t5.Z,{sx:{fontSize:28,color:"#7C7C7C"}}
394)}),(0,R.jsx)(nc,{activeIndex:l,slides:x,isMobile:v,genres:m,genresSelectList:d,onSelectGenre:p}),(0,R.jsx)(nd,{isMobile:v,activeIndex:l,setActiveIndex:u,slides:x}),(0,R.jsx)(k.Z,{variant:"contained",sx:{maxWidth:"132px",maxHeight:"40px",minWidth:"100px",minHeight:"40px",backgroundColor:"#0575E6",alignItems:"center",justifyContent:"center","&:hover":{backgroundColor:"#057df7"},whiteSpace:"nowrap"},className:v?nt().mobileBtnGotItActive:nt().btnGotItActive,onClick:function(){return l!==x.length-1?u(l+1):w()},children:(0,R.jsx)("span",{className:"txtButton ".concat(nt().btnGotItText),children:x[l].button.text})})]})})},nc=function(e){var n=e.activeIndex,r=e.slides,i=e.isMobile,a=e.genres,o=e.genresSelectList,s=e.onSelectGenre,f=(0,N.Z)(),l=(0,h.useState)([]),u=l[0],c=l[1],d=function(e){c((0,nl.Lu)(a,e.target.value,{threshold:nl.Lu.rankings.CONTAINS,keys:["label"]}))};return(0,h.useEffect)(function(){c(a)},[a]),(0,R.jsx)("div",{className:nt().wrapper,children:r.map(function(e,a){return(0,R.jsx)("div",{className:[a===n?nt().slideActive:nt().slideInactive],children:n!==r.length-1?(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(nn.Z,{className:nt().imageContainer,children:(0,R.jsx)(t1(),{src:e.image||"/empty_placeholder.png",height:i?290:315,width:400,alt:""})}),(0,R.jsxs)("div",{className:nt().descriptionSlide,children:[(0,R.jsx)("h1",{className:"txtH5",children:e.title}),(0,R.jsx)("p",{className:"txtBody1",children:e.description})]})]}):(0,R.jsxs)(nn.Z,{style:{height:"100%",padding:36,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:[(0,R.jsx)("h1",{className:"txtH5",children:e.title}),(0,R.jsx)(na.Z,{className:nt().input,variant:"outlined",onChange:d,InputProps:{endAdornment:(0,R.jsx)(nr.Z,{position:"end",children:(0,R.jsx)(ns,{})})},placeholder:f.formatMessage({id:"j5K/kK",defaultMessage:[{type:0,value:"Find a style"}]}),style:{marginTop:24}}),(0,R.jsx)(np,{genres:u,genresSelectList:o,onSelectGenre:s})]})},"slide_".concat(e.id))})})},nd=function(e){var n=e.activeIndex,r=e.setActiveIndex,i=e.slides,a=e.isMobile;return(0,R.jsx)("div",{className:a?nt().mobileDotsContainer:nt().dotsContainer,children:i.map(function(e,i){return(0,R.jsx)("span",{className:[i===n?nt().activeDot:nt().inactiveDot],onClick:function(){return r(i)}},"dot_".concat(e.id))})})},np=function(e){var n=e.genres,r=e.genresSelectList,i=e.onSelectGenre,a=function(e){if(r.includes(e.id)){i(function(n){return n.filter(function(n){return n!==e.id})});return}i(function(n){return[].concat((0,er.Z)(n),[e.id])})};return(0,R.jsx)("div",{className:nt().wrapperGenre,children:n.map(function(e){return(0,R.jsx)(ni.Z,{label:e.label,size:"large",onClick:function(){return a(e)},classes:{label:r.includes(e.id)?"txtBody2 ".concat(nt().txtOverlineWhite):"txtBody2 ".concat(nt().txtOverlineBlack)},color:r.includes(e.id)?"primary":"default",style:{marginRight:8,marginBottom:8}},e.id)})})},nh=r(53967),ny=r.n(nh),nm=r(36632),ng=r.n(nm),nb=r(54960),nv=r(59793),nw=r(7981),nx=r(17916),nT=r(41664),nC=r.n(nT),nM=r(87288),nA=r(25872),nE=r(7623),nI=r(86173),nS=r(48428),nk=r(52764),nN=r(2971),nj=r(37545),nD=r(61574),n_=r(14951),nO=r(13562);function nP(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function nL(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?nP(Object(r),!0).forEach(function(n){(0,d.default)(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var nR=(0,ei.ZP)(ea.Z)(function(e){var n=e.theme;return{"& .MuiBadge-badge":{top:8,border:"2px solid ".concat(n.palette.background.paper),padding:"0 4px",color:"white",backgroundColor:"#e3581c"}}}),nz=(0,ei.ZP)(nI.Z)({color:"var(--gray600Color)",fontSize:14,fontWeight:700,position:"sticky",top:0,zIndex:1,backgroundColor:"var(--white)",padding:"8px 0"}),nB=(0,ei.ZP)(function(e){return(0,R.jsx)("div",nL({},e))})({textAlign:"center",fontFamily:"Montserrat",paddingTop:"8px"});function nU(e){var n=e.children;return(0,R.jsx)(nn.Z,{sx:{maxWidth:"300px",textOverflow:"ellipsis"},children:(0,R.jsx)(nI.Z,{as:"h4",fontWeight:600,sx:{whiteSpace:"nowrap",maxWidth:"300px",overflow:"hidden",textOverflow:"ellipsis"},children:n})})}function nF(e){var n=e.children;return(0,R.jsx)(nn.Z,{sx:{maxWidth:"300px"},children:(0,R.jsx)(nI.Z,{as:"p",fontSize:15,sx:{whiteSpace:"normal"},children:n})})}var nZ=function(e){var n=e.viewed,r=e.onToggleReadUnread,i=(0,N.Z)(),a=(0,h.useState)(n),o=a[0],s=a[1],f={true:i.formatMessage({id:"aGlMQV",defaultMessage:[{type:0,value:"Mark read"}]}),false:i.formatMessage({id:"lqoX+4",defaultMessage:[{type:0,value:"Mark unread"}]})},l=(0,h.useCallback)(function(e){e.stopPropagation(),s(function(e){return!e}),r(e)},[r]);return(0,R.jsx)(nS.Z,{title:f[o],children:(0,R.jsx)(nk.Z,{onClick:l,children:(0,R.jsx)(nA.Z,{sx:{fontSize:10,
394color:o?"var(--gray400Color)":"var(--error)"}})})})};function nW(e){var n=e.notify,r=e.header,i=e.body,a=e.onToggleReadUnread,o=e.href,s=e.onClick;return(0,R.jsx)(nC(),{legacyBehavior:!0,href:o,passHref:!0,children:(0,R.jsxs)(es.Z,{component:function(e){return(0,R.jsx)("a",nL(nL({},e),{},{onClick:function(n){s(),e.onClick&&e.onClick(n)}}))},direction:"row",spacing:1,width:"100%",children:[(0,R.jsx)(nM.Z,{src:n.from.profile_img,height:32,width:32}),(0,R.jsxs)(es.Z,{direction:"column",width:"100%",children:[(0,R.jsxs)(es.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[r,(0,R.jsx)(nZ,{viewed:n.viewed,onToggleReadUnread:a})]}),i]})]})})}function nH(e){var n,r,i=e.notify,a=e.onSelectNotification,o=e.onToggleReadUnread,s=e.type,f=void 0===s?"add":s,l=(0,N.Z)();return(0,R.jsx)(nW,{notify:i,onToggleReadUnread:o,href:"/projects/".concat(null==i||null===(n=i.resource)||void 0===n||null===(n=n._id)||void 0===n?void 0:n.toString()),onClick:function(){return a(i)},header:(0,R.jsx)(nU,{children:null===(r=i.resource)||void 0===r?void 0:r.name}),body:(0,R.jsxs)(nF,{children:["add"===f&&(0,R.jsx)(R.Fragment,{children:l.formatMessage({id:"XuI4+s",defaultMessage:[{type:1,value:"collaboratorName"},{type:0,value:" was added to the project"}]},{collaboratorName:i.data.collaboratorName})}),"remove"==f&&(0,R.jsx)(R.Fragment,{children:l.formatMessage({id:"dShZWf",defaultMessage:[{type:1,value:"collaboratorName"},{type:0,value:" was removed from the project"}]},{collaboratorName:i.data.collaboratorName})})]})})}function nG(e){var n=e.notify,r=e.onSelectNotification,i=e.onToggleReadUnread,a=(0,N.Z)();return(0,R.jsx)(nW,{notify:n,onToggleReadUnread:i,href:{pathname:"/chat",query:{_channel:n.identifier,type:n.data.channel_type}},onClick:function(){return r(n)},header:(0,R.jsx)(nU,{children:a.formatMessage({id:"WTrOy3",defaultMessage:[{type:0,value:"Chat"}]})}),body:(0,R.jsx)(nF,{children:a.formatMessage({id:"o4SQo/",defaultMessage:[{type:1,value:"name"},{type:0,value:" sent a message to you"}]},{name:n.from.name})})})}function nq(e){var n,r,i=e.notify,a=e.onSelectNotification,o=e.onToggleReadUnread,s=(0,N.Z)();return(0,R.jsx)(nW,{notify:i,onToggleReadUnread:o,href:"/projects/".concat(null===(n=i.resource)||void 0===n?void 0:n._id),onClick:function(){return a(i)},header:(0,R.jsxs)(nU,{children:[s.formatMessage({id:"k36uSw",defaultMessage:[{type:0,value:"Project"}]})," ",null===(r=i.resource)||void 0===r?void 0:r.name]}),body:(0,R.jsx)(nF,{children:s.formatMessage({id:"K/V4Gb",defaultMessage:[{type:0,value:"Project was renamed from "},{type:1,value:"oldName"},{type:0,value:" to "},{type:1,value:"newName"},{type:0,value:" by "},{type:1,value:"name"}]},{name:i.from.name,oldName:i.data.oldName,newName:i.data.newName})})})}function nY(e){var n,r,i,a=e.notify,o=e.onSelectNotification,s=e.onToggleReadUnread,f=(0,N.Z)();return(0,R.jsx)(nW,{notify:a,onToggleReadUnread:s,href:"/projects/".concat(null===(n=a.resource)||void 0===n?void 0:n._id),onClick:function(){return o(a)},header:(0,R.jsxs)(nU,{children:[f.formatMessage({id:"k36uSw",defaultMessage:[{type:0,value:"Project"}]})," ",null===(r=a.resource)||void 0===r?void 0:r.name]}),body:(0,R.jsx)(nF,{children:f.formatMessage({id:"XyjaEf",defaultMessage:[{type:0,value:"Release "},{type:1,value:"releaseName"},{type:0,value:" was renamed from "},{type:1,value:"oldName"},{type:0,value:" to "},{type:1,value:"newName"},{type:0,value:" by "},{type:1,value:"name"}]},{releaseName:null===(i=a.data)||void 0===i||null===(i=i.release)||void 0===i?void 0:i.name,name:a.from.name,oldName:a.data.oldName,newName:a.data.newName})})})}function nV(e){var n,r,i,a=e.notify,o=e.onSelectNotification,s=e.onToggleReadUnread,f=(0,N.Z)();return(0,R.jsx)(nW,{notify:a,onToggleReadUnread:s,href:"/projects/".concat(null===(n=a.resource)||void 0===n?void 0:n._id),onClick:function(){return o(a)},header:(0,R.jsxs)(nU,{children:[f.formatMessage({id:"k36uSw",defaultMessage:[{type:0,value:"Project"}]})," ",null===(r=a.resource)||void 0===r?void 0:r.name]}),body:(0,R.jsx)(nF,{children:f.formatMessage({id:"2S7pjH",defaultMessage:[{type:1,value:"tracks"},{type:0,value:" "},{type:1,value:"tracksWord"},{type:0,value:" were added to release "},{type:1,value:"releaseName"},{type:0,value:" by "},{type:1,value:"name"}]},{tracks:a.data.tracks.length,tracksWord:1===a.data.tracks.length?f.formatMessage({id:"u+Ozkw",defaultMessage:[{type:0,value:"track"}]}):f.formatMessage({id:"UItDoT",defaultMessage:[{type:0,value:"tracks"}]}),releaseName:null===(i=a.data)||void 0===i||null===(i=i.release)||void 0===i?void 0:i.name,name:a.from.name})})})}
394function nQ(e){var n,r,i,a=e.notify,o=e.onSelectNotification,s=e.onToggleReadUnread,f=(0,N.Z)();return(0,R.jsx)(nW,{notify:a,onToggleReadUnread:s,href:"/projects/".concat(null===(n=a.resource)||void 0===n?void 0:n._id),onClick:function(){return o(a)},header:(0,R.jsxs)(nU,{children:[f.formatMessage({id:"k36uSw",defaultMessage:[{type:0,value:"Project"}]})," ",null===(r=a.resource)||void 0===r?void 0:r.name]}),body:(0,R.jsx)(nF,{children:f.formatMessage({id:"LADh8T",defaultMessage:[{type:1,value:"tracks"},{type:0,value:" "},{type:1,value:"tracksWord"},{type:0,value:" were removed from release "},{type:1,value:"releaseName"},{type:0,value:" by "},{type:1,value:"name"}]},{tracks:a.data.tracks.length,tracksWord:1===a.data.tracks.length?f.formatMessage({id:"u+Ozkw",defaultMessage:[{type:0,value:"track"}]}):f.formatMessage({id:"UItDoT",defaultMessage:[{type:0,value:"tracks"}]}),releaseName:null===(i=a.data)||void 0===i||null===(i=i.release)||void 0===i?void 0:i.name,name:a.from.name})})})}function nK(e){var n,r,i,a=e.notify,o=e.onSelectNotification,s=e.onToggleReadUnread,f=(0,N.Z)();return(0,R.jsx)(nW,{notify:a,onToggleReadUnread:s,href:"/projects/".concat(null===(n=a.resource)||void 0===n?void 0:n._id),onClick:function(){return o(a)},header:(0,R.jsxs)(nU,{children:[f.formatMessage({id:"k36uSw",defaultMessage:[{type:0,value:"Project"}]})," ",null===(r=a.resource)||void 0===r?void 0:r.name]}),body:(0,R.jsx)(nF,{children:f.formatMessage({id:"uU8j03",defaultMessage:[{type:1,value:"tracks"},{type:0,value:" "},{type:1,value:"tracksWord"},{type:0,value:" were added to final version of release "},{type:1,value:"releaseName"},{type:0,value:" by "},{type:1,value:"name"}]},{tracks:a.data.tracks.length,tracksWord:1===a.data.tracks.length?f.formatMessage({id:"u+Ozkw",defaultMessage:[{type:0,value:"track"}]}):f.formatMessage({id:"UItDoT",defaultMessage:[{type:0,value:"tracks"}]}),releaseName:null===(i=a.data)||void 0===i||null===(i=i.release)||void 0===i?void 0:i.name,name:a.from.name})})})}function n$(e){var n,r,i,a=e.notify,o=e.onSelectNotification,s=e.onToggleReadUnread,f=(0,N.Z)();return(0,R.jsx)(nW,{notify:a,onToggleReadUnread:s,href:"/projects/".concat(null===(n=a.resource)||void 0===n?void 0:n._id),onClick:function(){return o(a)},header:(0,R.jsxs)(nU,{children:[f.formatMessage({id:"k36uSw",defaultMessage:[{type:0,value:"Project"}]})," ",null===(r=a.resource)||void 0===r?void 0:r.name]}),body:(0,R.jsx)(nF,{children:f.formatMessage({id:"cKWpOG",defaultMessage:[{type:1,value:"tracks"},{type:0,value:" "},{type:1,value:"tracksWord"},{type:0,value:" were removed from the final version of release "},{type:1,value:"releaseName"},{type:0,value:" by "},{type:1,value:"name"}]},{tracks:a.data.tracks.length,tracksWord:1===a.data.tracks.length?f.formatMessage({id:"u+Ozkw",defaultMessage:[{type:0,value:"track"}]}):f.formatMessage({id:"UItDoT",defaultMessage:[{type:0,value:"tracks"}]}),releaseName:null===(i=a.data)||void 0===i||null===(i=i.release)||void 0===i?void 0:i.name,name:a.from.name})})})}function nJ(e){var n,r,i,a=e.notify,o=e.onSelectNotification,s=e.onToggleReadUnread,f=(0,N.Z)();return(0,R.jsx)(nW,{notify:a,onToggleReadUnread:s,href:"/projects/".concat(null===(n=a.resource)||void 0===n?void 0:n._id),onClick:function(){return o(a)},header:(0,R.jsxs)(nU,{children:[f.formatMessage({id:"k36uSw",defaultMessage:[{type:0,value:"Project"}]})," ",null===(r=a.resource)||void 0===r?void 0:r.name]}),body:(0,R.jsx)(nF,{children:f.formatMessage({id:"B2Lzsp",defaultMessage:[{type:0,value:"Added a new track "},{type:1,value:"name"},{type:0,value:" to the project"}]},{name:(null==a||null===(i=a.resource)||void 0===i?void 0:i.name)||""})})})}function nX(e){var n,r,i=e.notify,a=e.onSelectNotification,o=e.onToggleReadUnread,s=(0,N.Z)();return(0,R.jsx)(nW,{notify:i,onToggleReadUnread:o,href:"/projects/".concat(null===(n=i.resource)||void 0===n?void 0:n._id),onClick:function(){return a(i)},header:(0,R.jsxs)(nU,{children:[s.formatMessage({id:"k36uSw",defaultMessage:[{type:0,value:"Project"}]})," ",null===(r=i.resource)||void 0===r?void 0:r.name]}),body:(0,R.jsx)(nF,{children:s.formatMessage({id:"rPpsKu",defaultMessage:[{type:1,value:"name"},{type:0,value:" commented on project"}]},{name:i.from.name})})})}function n0(e){var n,r=e.notify,i=e.onSelectNotification,a=e.onToggleReadUnread,o=(0,N.Z)();return(0,R.jsx)(nW,{notify:r,onToggleReadUnread:a,href:"/profile/".concat(null===(n=r.from)||void 0===n?void 0:n._id),onClick:function(){return i(r)},header:(0,R.jsx)(nU,{children:r.from.name}),body:(0,R.jsx)(nF,{children:o.formatMessage({id:"bLtRq2",defaultMessage:[{type:0,value:"Followed you"}]})})})}
394function n1(e){var n,r,i,a=e.notify,o=e.onSelectNotification,s=e.onToggleReadUnread,f=(0,N.Z)();return(0,R.jsx)(nW,{notify:a,onToggleReadUnread:s,href:"/projects/".concat(null===(n=a.resource)||void 0===n?void 0:n._id),onClick:function(){return o(a)},header:(0,R.jsx)(nU,{children:null==a||null===(r=a.resource)||void 0===r?void 0:r.name}),body:(0,R.jsx)(nF,{children:f.formatMessage({id:"9OiZBt",defaultMessage:[{type:1,value:"name"},{type:0,value:" updated the contract split of release "},{type:1,value:"release"}]},{release:null===(i=a.data)||void 0===i||null===(i=i.release)||void 0===i?void 0:i.name,name:a.from.name})})})}function n6(e){var n,r,i,a=e.notify,o=e.onSelectNotification,s=e.onToggleReadUnread,f=(0,N.Z)();return(0,R.jsx)(nW,{notify:a,onToggleReadUnread:s,href:"/projects/".concat(null===(n=a.resource)||void 0===n?void 0:n._id),onClick:function(){return o(a)},header:(0,R.jsx)(nU,{children:null===(r=a.resource)||void 0===r?void 0:r.name}),body:(0,R.jsx)(nF,{children:f.formatMessage({id:"yPvIO/",defaultMessage:[{type:1,value:"name"},{type:0,value:" "},{type:1,value:"answer"},{type:0,value:" the contract split of release "},{type:1,value:"release"}]},{name:a.from.name,answer:a.data.accepted?f.formatMessage({id:"byU331",defaultMessage:[{type:0,value:"accepted"}]}):f.formatMessage({id:"C1ezJL",defaultMessage:[{type:0,value:"rejected"}]}),release:null===(i=a.data)||void 0===i||null===(i=i.release)||void 0===i?void 0:i.name})})})}function n5(e){var n,r,i=e.notify,a=e.onSelectNotification,o=e.onToggleReadUnread,s=(0,N.Z)();return(0,R.jsx)(nW,{notify:i,onToggleReadUnread:o,href:"/explore?id=".concat(null===(n=i.data)||void 0===n?void 0:n.activityId),onClick:function(){return a(i)},header:(0,R.jsx)(nU,{children:null===(r=i.resource)||void 0===r?void 0:r.name}),body:(0,R.jsx)(nF,{children:s.formatMessage({id:"r4wToO",defaultMessage:[{type:1,value:"name"},{type:0,value:" reacted with "},{type:1,value:"reaction"},{type:0,value:" to your activity"}]},{name:i.from.name,reaction:nE.gw[i.data.reactionType].symbol})})})}function n2(e){var n,r=e.notify,i=e.onSelectNotification,a=e.onToggleReadUnread,o=(0,N.Z)();return(0,R.jsx)(nW,{notify:r,onToggleReadUnread:a,href:"/explore?id=".concat(null===(n=r.data)||void 0===n?void 0:n.activityId),onClick:function(){return i(r)},header:(0,R.jsx)(nU,{children:r.from.name}),body:(0,R.jsx)(nF,{children:o.formatMessage({id:"L73rkg",defaultMessage:[{type:1,value:"name"},{type:0,value:" commented on your activity: "},{type:1,value:"comment"}]},{name:r.from.name,comment:r.data.comment})})})}function n4(e){var n,r=e.notify,i=e.onSelectNotification,a=e.onToggleReadUnread,o=(0,N.Z)(),s=(0,D.v9)(function(e){return e.callers}).callers,f=(0,eu.Z)(),l=s.find(function(e){return e.user_id==r.from._id});return(0,R.jsx)(nW,{notify:r,onToggleReadUnread:a,href:null!=l?"/chat?room_name=".concat(l.room_name,"&room_url=").concat(l.room_url):"/chat",onClick:function(){i(r),null!=l&&f("answerCall",{user_target:r.from._id})},header:(0,R.jsx)(nU,{children:null===(n=r.resource)||void 0===n?void 0:n.name}),body:(0,R.jsx)(nF,{children:o.formatMessage({id:"eQLZAf",defaultMessage:[{type:1,value:"name"},{type:0,value:" "},{type:1,value:"active"},{type:0,value:" you"}]},{name:r.from.name,active:null!=l?o.formatMessage({id:"Wyc16A",defaultMessage:[{type:0,value:"is calling"}]}):o.formatMessage({id:"1SyKYf",defaultMessage:[{type:0,value:"called"}]})})})})}function n3(e){var n,r=e.isOnlyUnread,i=e.onToggleOnlyUnread,a=e.refetchNotifications,o=e.areAllNotificationsRead,s=(0,N.Z)(),f=(0,h.useState)(!1),l=f[0],u=f[1],c=(n=(0,w.default)(T().mark(function e(){return T().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,u(!0),e.next=4,(0,j.post)("notifies/markAllAsRead");case 4:if(e.t0=a,!e.t0){e.next=8;break}return e.next=8,a();case 8:u(!1),e.next=14;break;case 11:e.prev=11,e.t1=e.catch(0),u(!1);case 14:case"end":return e.stop()}},e,null,[[0,11]])})),function(){return n.apply(this,arguments)});return(0,R.jsxs)(es.Z,{spacing:1,children:[(0,R.jsxs)(es.Z,{direction:"column",alignItems:"flex-start",justifyContent:"space-between",children:[(0,R.jsx)(nI.Z,{variant:"h3",fontFamily:"Montserrat",fontSize:24,fontWeight:700,children:s.formatMessage({id:"NAidKb",defaultMessage:[{type:0,value:"Notifications"}]})}),(0,R.jsxs)(nn.Z,{sx:{alignItems:"center",display:"flex",width:"100%",marginTop:"5px"},children:[(0,R.jsx)(k.Z,{disabled:l||void 0!==o&&o,onClick:c,size:"small",sx:{borderRadius:"50px"},variant:"outlined",children:s.formatMessage({id:"CbWcYt",defaultMessage:[{type:0,value:"Mark all as Read"}]})}),(0,R.jsxs)(nn.Z,{sx:{display:"flex",alignItems:"center",marginLeft:"auto",flex:1,justifyContent:"flex-end"},children:[(0,R.jsx)(nI.Z,{noWrap:!0,color:"var(--gray600Color)",children:s.formatMessage({id:"NJy/mn",defaultMessage:[{type:0,value:"Only show unread"}]})}),(0,R.jsx)(nN.Z,{checked:r,onChange:i})]})]})]}),(0,R.jsx)(nj.Z,{})]})}var n8=function(){var e,n,r=(0,N.Z)(),i=(0,D.I0)(),a=h.useState(null),o=(0,p.Z)(a,2),s=o[0],f=
394o[1],l=h.useState(!1),u=(0,p.Z)(l,2),c=u[0],d=u[1],y=h.useState({viewed:"ALL"}),m=(0,p.Z)(y,2),g=m[0],b=m[1],v={TODAY:r.formatMessage({id:"Ele57J",defaultMessage:[{type:0,value:"TODAY"}]}),YESTERDAY:r.formatMessage({id:"P7o0Vh",defaultMessage:[{type:0,value:"YESTERDAY"}]}),OLDER:r.formatMessage({id:"sgfUXu",defaultMessage:[{type:0,value:"OLDER"}]})},x=(0,n_.useFetchUserNotifies)(g),C=x.data,M=x.isLoading,A=x.mutate,E=x.isError?[]:C,I=(e=(0,w.default)(T().mark(function e(){return T().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:f(null);case 1:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)}),S=function(e){var n;return n=(0,w.default)(T().mark(function n(a){return T().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return null==a||a.stopPropagation(),null==a||a.preventDefault(),n.prev=2,n.next=5,(0,j.put)("notifies/".concat(e._id),{viewed:!e.viewed});case 5:A(),n.next=11;break;case 8:n.prev=8,n.t0=n.catch(2),i((0,_.Mm)({message:r.formatMessage({id:"heFt9M",defaultMessage:[{type:0,value:"Failed to update notification"}]})}));case 11:case"end":return n.stop()}},n,null,[[2,8]])})),function(e){return n.apply(this,arguments)}},k=(n=(0,w.default)(T().mark(function e(n){return T().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:S(n)(),I();case 2:case"end":return e.stop()}},e)})),function(e){return n.apply(this,arguments)}),O=h.useMemo(function(){return E?(0,nO.wl)(E):[]},[E]),P=h.useMemo(function(){var e=(null==E?void 0:E.filter(function(e){return!e.viewed}))||[];return e?e.length<100?e.length:"99+":null},[E]),L=h.useMemo(function(){return!!(null!=E&&E.length)},[E]),z=function(e){return e.notifies.map(function(e){return(0,R.jsxs)(nx.Z,{sx:{cursor:"unset",marginBottom:2},children:["ADD_COLLABORATOR"===e.type&&(0,R.jsx)(nH,{notify:e,onSelectNotification:k,onToggleReadUnread:S(e),type:"add"}),"REMOVE_COLLABORATOR"===e.type&&(0,R.jsx)(nH,{notify:e,onSelectNotification:k,onToggleReadUnread:S(e),type:"remove"}),"CHAT_MESSAGE"===e.type&&(0,R.jsx)(nG,{notify:e,onSelectNotification:k,onToggleReadUnread:S(e)}),"RENAMED_PROJECT"===e.type&&(0,R.jsx)(nq,{notify:e,onSelectNotification:k,onToggleReadUnread:S(e)}),"RENAMED_RELEASE"===e.type&&(0,R.jsx)(nY,{notify:e,onSelectNotification:k,onToggleReadUnread:S(e)}),"ADDED_TRACKS_TO_RELEASE"===e.type&&(0,R.jsx)(nV,{notify:e,onSelectNotification:k,onToggleReadUnread:S(e)}),"REMOVED_TRACKS_FROM_RELEASE"===e.type&&(0,R.jsx)(nQ,{notify:e,onSelectNotification:k,onToggleReadUnread:S(e)}),"ADDED_TRACKS_TO_FINAL_VERSION"===e.type&&(0,R.jsx)(nK,{notify:e,onSelectNotification:k,onToggleReadUnread:S(e)}),"REMOVED_TRACKS_FROM_FINAL_VERSION"===e.type&&(0,R.jsx)(n$,{notify:e,onSelectNotification:k,onToggleReadUnread:S(e)}),"COMMENTED_ON_PROJECT"===e.type&&(0,R.jsx)(nX,{notify:e,onSelectNotification:k,onToggleReadUnread:S(e)}),"ADDED_TRACKS_TO_PROJECT"===e.type&&(0,R.jsx)(nJ,{notify:e,onSelectNotification:k,onToggleReadUnread:S(e)}),"USER_FOLLOWED_YOU"===e.type&&(0,R.jsx)(n0,{notify:e,onSelectNotification:k,onToggleReadUnread:S(e)}),"UPDATED_RELEASE_SPLITS"===e.type&&(0,R.jsx)(n1,{notify:e,onSelectNotification:k,onToggleReadUnread:S(e)}),"USER_ANSWERED_CONTRACT_SPLIT"===e.type&&(0,R.jsx)(n6,{notify:e,onSelectNotification:k,onToggleReadUnread:S(e)}),"USER_REACTED_TO_ACTIVITY"===e.type&&(0,R.jsx)(n5,{notify:e,onSelectNotification:k,onToggleReadUnread:S(e)}),"USER_COMMENTED_ON_ACTIVITY"===e.type&&(0,R.jsx)(n2,{notify:e,onSelectNotification:k,onToggleReadUnread:S(e)}),"CALL_REQUEST"===e.type&&(0,R.jsx)(n4,{notify:e,onSelectNotification:k,onToggleReadUnread:S(e)})]},e._id)})};return(0,R.jsxs)(nn.Z,{children:[(0,R.jsx)(nk.Z,{"aria-label":"cart",onClick:function(e){f(e.currentTarget)},children:(0,R.jsx)(nR,{badgeContent:P,children:(0,R.jsx)(nv.Z,{sx:{fontSize:28}})})}),(0,R.jsx)(nw.Z,{id:"basic-menu",anchorEl:s,open:!!s,onClose:I,MenuListProps:{"aria-labelledby":"basic-button"},PaperProps:{sx:{minHeight:"600px",maxHeight:"600px",maxWidth:"500px"}},children:(0,R.jsxs)(es.Z,{direction:"column",padding:2,children:[(0,R.jsx)(n3,{isOnlyUnread:c,onToggleOnlyUnread:function(){var e=!c;d(e),b({viewed:e?"NOT_SEEN":"ALL"})},refetchNotifications:A,areAllNotificationsRead:!P}),M&&(0,R.jsxs)(nn.Z,{children:[(0,R.jsx)(nD.Z,{variant:"rectangular",sx:{height:"37px",marginY:"8px"}}),(0,R.jsx)(nD.Z,{variant:"rectangular",sx:{height:"60.5px"}})]}),!M&&(0,R.jsxs)(R.Fragment,{children:[L&&Object.keys(O).map(function(e){return(0,R.jsxs)("div",{children:[(0,R.jsx)(nz,{children:v[e]}),(0,R.jsx)(z,{notifies:O[e]})]},e)}),!L&&(0,R.jsx)(nB,{children:c?r.formatMessage({id:"ThsWwe",defaultMessage:[{type:0,value:"You have no unread notifications"}]}):r.formatMessage({id:"vxfDAp",defaultMessage:[{type:0,value:"You have no notifications"}]})})]})]})})]})}
394,n9=r(33673),n7=r(76907),re=r(53639),rt=(0,no.Z)((0,R.jsx)("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star"),rn=(0,no.Z)((0,R.jsx)("path",{d:"m2 22 14-5-9-9zm12.53-9.47 5.59-5.59c.49-.49 1.28-.49 1.77 0l.59.59 1.06-1.06-.59-.59c-1.07-1.07-2.82-1.07-3.89 0l-5.59 5.59zm-4.47-5.65-.59.59 1.06 1.06.59-.59c1.07-1.07 1.07-2.82 0-3.89l-.59-.59-1.06 1.07.59.59c.48.48.48 1.28 0 1.76m7 5-1.59 1.59 1.06 1.06 1.59-1.59c.49-.49 1.28-.49 1.77 0l1.61 1.61 1.06-1.06-1.61-1.61c-1.08-1.07-2.82-1.07-3.89 0m-2-6-3.59 3.59 1.06 1.06 3.59-3.59c1.07-1.07 1.07-2.82 0-3.89l-1.59-1.59-1.06 1.06 1.59 1.59c.48.49.48 1.29 0 1.77"}),"Celebration"),rr={bgcolor:"background.paper",borderRadius:"4px",boxShadow:24,left:"50%",maxHeight:"95%",outline:"none",overflowY:"auto",padding:"20px",position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:620},ri={display:"flex",border:"1px solid var(--blueishGray300Color)",borderRadius:"10px",padding:"10px",overflowY:"scroll",maxHeight:"450px",gap:"10px",width:"100%",flexWrap:"wrap",overflow:"visible"},ra={fontWeight:"bold",marginTop:"20px"},ro={width:"40px",height:"40px",borderRadius:9999,"&:hover":{backgroundColor:"var(--blueishGray200Color)"},backgroundColor:"transparent",minHeight:"40px",minWidth:"40px",fontSize:"25px",marginLeft:"auto"},rs={padding:"10px 15px 10px 15px",backgroundColor:"rgb(224, 218, 197)",borderRadius:"9999px"},rf=r(63925),rl=function(e){var n=e.n,r=void 0===n?8:n;return(0,R.jsx)(R.Fragment,{children:Array.from(Array("number"==typeof r?r:3)).map(function(){return(0,R.jsx)(nD.Z,{variant:"rectangular",sx:{borderRadius:"8px",overflow:"hidden",width:"100px",height:"100px",minHeight:"100px",minWidth:"100px",backgroundColor:"var(--blueishGray400Color)"}})})})};function ru(e){var n=e.img,r=e.title,i=e.editionContractAddress;return(0,R.jsx)(nn.Z,{sx:{cursor:"pointer","&:hover":{boxShadow:"0px 0px 36px 4px rgba(0,0,0,0.52)"},borderRadius:"8px",overflow:"hidden",width:"100px",height:"100px",minHeight:"100px",minWidth:"100px"},children:(0,R.jsx)(nC(),{legacyBehavior:!0,href:"/fan-token/".concat(i,"/").concat((r||"").replace(/\s+/g,"-").toLowerCase()),children:(0,R.jsx)("a",{target:"_blank",rel:"noopener noreferrer",children:(0,R.jsx)(t1(),{src:n,width:100,height:100})})})})}var rc=r(65967),rd=function(e){var n=e.isOpen,r=e.setIsOpen,i=(0,tO.SFn)(),a=(0,h.useState)({tokensCreatedByWallet:[],tokensPurchasedByWallet:[]}),o=a[0],s=a[1],f=(0,h.useState)(!0),l=f[0],u=f[1],c=(0,N.Z)(),d=(0,P.useSession)().data,p=(0,h.useCallback)((0,w.default)(T().mark(function e(){var n;return T().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return u(!0),s({tokensCreatedByWallet:[],tokensPurchasedByWallet:[]}),e.prev=2,e.next=5,(0,j.get)("nfts/getNftsByWallet/".concat(i),null==d?void 0:d.token);case 5:n=e.sent.data,u(!1),s(n),e.next=15;break;case 11:return e.prev=11,e.t0=e.catch(2),u(!1),e.abrupt("return",s({tokensCreatedByWallet:[],tokensPurchasedByWallet:[]}));case 15:case"end":return e.stop()}},e,null,[[2,11]])})),[i]);return(0,h.useEffect)(function(){i&&p()},[i]),(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(t6.Z,{open:n,onClose:function(){return r(!1)},disableEnforceFocus:!0,children:(0,R.jsxs)(nn.Z,{sx:rr,children:[(0,R.jsxs)(nn.Z,{sx:{display:"flex",width:"100%",alignItems:"center"},children:[(0,R.jsx)(I.Z,{children:c.formatMessage({id:"4W8BnK",defaultMessage:[{type:0,value:"This Wallet's Tokens"}]})}),(0,R.jsx)(nI.Z,{sx:rs,children:"".concat(i.substring(0,6),"...").concat(i.substring(i.length-4))}),(0,R.jsx)(k.Z,{sx:ro,onClick:function(){return p()},children:(0,R.jsx)(rc.Z,{})})]}),(0,R.jsxs)(A.Z,{children:[(0,R.jsx)(nI.Z,{sx:ra,children:c.formatMessage({id:"4WGp4G",defaultMessage:[{type:0,value:"Purchased with This Wallet"}]})}),(0,R.jsx)(nn.Z,{sx:ri,children:l?(0,R.jsx)(rl,{}):(0,R.jsx)(R.Fragment,{children:o.tokensPurchasedByWallet.map(function(e){return(0,R.jsx)(ru,{title:e.title,img:e.artworkUrl,editionContractAddress:e.editionContractAddress},e._id)})})}),(0,R.jsx)(nI.Z,{sx:ra,children:c.formatMessage({id:"zJ7hQ2",defaultMessage:[{type:0,value:"Created with This Wallet"}]})}),(0,R.jsx)(nn.Z,{sx:ri,children:l?(0,R.jsx)(rl,{}):(0,R.jsx)(R.Fragment,{children:o.tokensCreatedByWallet.map(function(e){return(0,R.jsx)(ru,{title:e.title,editionContractAddress:e.editionContractAddress,img:e.artworkUrl},e._id)})})})]})]})}),(0,R.jsx)(k.Z,{variant:"outlined",onClick:function(){return r(!0)},sx:{display:"flex",justifyContent:"center",alignItems:"center",borderRadius:"12px",height:"62px",width:"62px",minWidth:"62px",marginRight:"10px"},children:(0,R.jsx)(rf.WU,{size:"40px"})})]})},rp=function(e){var n=e.page,r=(0,N.Z)(),i=h.useState(!1),a=(0,p.Z)(i,2),o=a[0],s=a[1],f=(0,g.Z)(tX.mobileMediaQuery),l=0===(0,D.v9)(function(e){return e.profile.userMode})?[{label:r.formatMessage({id:"GCY0dr",defaultMessage:[{type:0,value:"Market"}]}),path:"/marketplace-fans"},{label:r.formatMessage({id:"z6QqQm",defaultMessage:[{type:0,value:"Experiences"}]}),path:"/experiences"}]:[{label:r.formatMessage({id:"ejEGdx",defaultMessage:[{type:0,value:"Home"}]}),path:"/home"},{label:r.formatMessage({id:"StcK67",defaultMessage:[{type:0,value:"Library"}]}),path:"/library"},{label:r.formatMessage({id:"UxTJRa",defaultMessage:[{type:0,value:"Projects"}]}),path:"/projects"},{label:r.formatMessage({id:"7JlauX",defaultMessage:[{type:0,value:"Explore"}]}),path:"/explore-collaborations"},{label:r.formatMessage({id:"WTrOy3",defaultMessage:[{type:0,value:"Chat"}]}),path:"/chat"}];return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(nb.Z,{open:o,onClose:function(){return s(!1)}}),f?(0,R.jsx)(ry,{page:n,navOptions:l}):(0,R.jsx)(rh,{page:n,navOptions:l,onShowInvites:function(){s(!0)}})]})},rh=function(e){var n,r,i=e.page,a=e.navOptions,o=e.onShowInvites,s=(0,N.Z)(),f=(0,ef.useRouter)(),l=(0,D.I0)(),u=(0,D.v9)(function(e){return e.profile.userMode}),c=(0,h.useState)(!1),d=c[0],p=c[1],y=(0,tO.pX8)(),m=(0,P.useSession)().data,g=(0,n_.useFetchUserProfile)(null==m||null===(n=m.user)||void 0===n?void 0:n.id,f.locale).data,b=null==g?void 0:g.profile_img,v=null==g?void 0:g.gender,w=null==g?void 0:g._id,x=null==m||null===(r=m.user)||void 0===r||null===(r=r.name)||void 0===r||null===(r=r.substring(0,1))||void 0===r?void 0:r.toUpperCase(),T=a.map(function(e){return(0,R.jsx)(rg,{label:e.label,path:e.path,isSelected:i.startsWith(e.path)},"menuOption".concat(e.label))}),C=function(e){l((0,re._K)(e)),f.push(e?"/home":"/marketplace-fans")};return(0,R.jsx)(R.Fragment,{children:(0,R.jsxs)("nav",{className:ng().container,children:[(0,R.jsx)("a",{className:ng().logoContainer,children:(0,R.jsx)(t1(),{src:"/verse_blacktext.svg",height:170,width:193,alt:""})}),T,(0,R.jsxs)("div",{className:ng().userInfoContainer,children:["connected"===y&&(0,R.jsx)(rd,{isOpen:d,setIsOpen:p}),(0,R.jsx)(tO.RZ8,{theme:"light",hideTestnetFaucet:!0,className:ng().customConnectWallet}),1===u&&(0,R.jsx)(n8,{}),m?(0,R.jsx)("button",{type:"button",className:"".concat(ng().btnIconProfile," guide_profile"),children:(0,R.jsx)(nM.Z,{id:"test",src:b,gender:v,userid:w,height:34,width:34,alt:x,unoptimized:!0,menu:function(e){return[(0,R.jsxs)(n9.Z,{sx:{width:"100%",padding:"5px",display:"flex"},color:"primary",children:[(0,R.jsxs)(n7.Z,{selected:!!u,onClick:function(){return C(1)},sx:{flex:1},children:[(0,R.jsx)(rt,{sx:{marginRight:"5px"}}),s.formatMessage({id:"STGKH9",defaultMessage:[{type:0,value:"Creator"}]})]}),(0,R.jsxs)(n7.Z,{selected:!u,onClick:function(){return C(0)},sx:{flex:1},children:[s.formatMessage({id:"Hwl7IS",defaultMessage:[{type:0,value:"Fan"}]}),(0,R.jsx)(rn,{sx:{marginLeft:"5px"}})]})]}),(0,R.jsx)(nj.Z,{}),{title:s.formatMessage({id:"itPgxd",defaultMessage:[{type:0,value:"Profile"}]}),path:{pathname:"/profile/[userid]/view",query:{userid:e}}},{title:s.formatMessage({id:"usAvMr",defaultMessage:[{type:0,value:"Edit Profile"}]}),path:{pathname:"/profile/edit/"}},{title:s.formatMessage({id:"Wy+Idb",defaultMessage:[{type:0,value:"Invites"}]}),onClick:o},{title:s.formatMessage({id:"cJ7ClB",defaultMessage:[{type:0,value:"Take tour"}]}),onClick:function(){l((0,t3.j9)(!0)),f.push("/home")}},{title:s.formatMessage({id:"C81/uG",defaultMessage:[{type:0,value:"Logout"}]}),onClick:function(){return(0,P.signOut)()}}]}})}):(0,R.jsx)(k.Z,{onClick:function(){f.push("/login")},children:s.formatMessage({id:"Ub+AGc",defaultMessage:[{type:0,value:"Sign In"}]})})]})]})})},ry=function(e){var n=e.page,r=e.navOptions,i=(0,N.Z)(),a="",o=(0,P.useSession)().data,s=(0,ef.useRouter)();if("/profile"==n)a=i.formatMessage({id:"itPgxd",defaultMessage:[{type:0,value:"Profile"}]});else for(var f=0;f<r.length;f++)r[f].path==n&&(a=r[f].label);return(0,R.jsx)(R.Fragment,{children:(0,R.jsxs)("nav",{className:ng().container,children:[(0,R.jsx)("a",{className:ng().iconContainer,children:(0,R.jsx)(t1(),{src:"/verse_blacktext.svg",height:40,width:40,alt:""})}),(0,R.jsx)("div",{className:ng().pathLabel,children:(0,R.jsx)("a",{className:"txtH4 txtBlueishGray",children:a})}),o?(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("div",{className:ng().menuBtn,children:(0,R.jsx)(k.Z,{variant:"contained",sx:{maxWidth:"30px",maxHeight:"30px",minWidth:"30px",minHeight:"30px",backgroundColor:"#fff",alignItems:"center",justifyContent:"center",borderRadius:"50%",boxShadow:"unset","&:hover":{backgroundColor:"#cccccc"}},children:(0,R.jsx)(nv.Z,{sx:{fontSize:28,color:"#7C7C7C"}}
394)})}),(0,R.jsx)("div",{className:ng().menuBtn,children:(0,R.jsx)(rm,{navOptions:r})})]}):(0,R.jsx)(k.Z,{onClick:function(){s.push("/login")},children:i.formatMessage({id:"Ub+AGc",defaultMessage:[{type:0,value:"Sign In"}]})})]})})},rm=function(e){var n=e.navOptions,r=(0,N.Z)(),i=(0,h.useState)(null),a=i[0],o=i[1],s=!!a,f=function(){o(null)},l=n.map(function(e){return(0,R.jsx)(nC(),{legacyBehavior:!0,href:e.path,passHref:!0,children:(0,R.jsx)(nx.Z,{onClick:f,children:e.label})},"menuItem".concat(e.label))});return l.unshift((0,R.jsx)(nC(),{legacyBehavior:!0,href:"/profile",passHref:!0,children:(0,R.jsx)(nx.Z,{onClick:f,children:r.formatMessage({id:"itPgxd",defaultMessage:[{type:0,value:"Profile"}]})})},"menuItemProfile")),l.push((0,R.jsx)(nx.Z,{onClick:function(){(0,P.signOut)(),f()},children:r.formatMessage({id:"F62y+K",defaultMessage:[{type:0,value:"Sign Out"}]})},"menuItemLogout")),(0,R.jsxs)("div",{children:[(0,R.jsx)(k.Z,{id:"web_mobile_menu_btn","aria-controls":"web_mobile_menu","aria-haspopup":"true","aria-expanded":s?"true":void 0,onClick:function(e){o(e.currentTarget)},children:(0,R.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"35px",viewBox:"0 0 24 24",width:"35px",fill:"#000000",children:[(0,R.jsx)("path",{d:"M0 0h24v24H0V0z",fill:"none"}),(0,R.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"})]})}),(0,R.jsx)(nw.Z,{id:"web_mobile_menu","aria-labelledby":"web_mobile_menu_btn",anchorEl:a,open:s,onClose:f,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:l})]})},rg=function(e){var n=e.label,r=e.path,i=e.isSelected,a={"/home":"guide_library","/projects":"guide_projects","/explore":"guide_explore"},o=a[r]?"".concat(a[r]," ").concat(ng().menuOption):ng().menuOption,s=(0,h.useCallback)(function(e){i&&"/projects"!=r&&(e.preventDefault(),e.stopPropagation(),window.scrollTo({top:0,behavior:"smooth"}),"/explore"===r&&document.querySelector("#collaborations-list").scrollTo({top:0,behavior:"smooth"}))},[i]);return(0,R.jsx)(nC(),{legacyBehavior:!0,href:r,passHref:!0,children:(0,R.jsxs)("a",{className:o,onClick:s,children:[(0,R.jsx)("div",{className:ng().optionLabel,children:(0,R.jsx)("span",{className:"txtH6 ".concat(i?"txtBlue":"txtBlueishGray"),children:n})}),(0,R.jsx)("div",{className:ny().dynamic([["95589249",[i?"var(--blue700Color)":"var(--whiteColor)"]]])+" "+(ng().selectedFeedback||""),children:(0,R.jsx)(ny(),{id:"95589249",dynamic:[i?"var(--blue700Color)":"var(--whiteColor)"],children:["div.__jsx-style-dynamic-selector{background-color:".concat(i?"var(--blue700Color)":"var(--whiteColor)",";}")]})})]})})},rb=r(91983),rv=r(65375),rw=r.n(rv),rx=function(){return!0},rT=function(e){return -1===tX.unprotectedRoutes.indexOf(e)},rC=function(e){var n,r=e.router,i=e.children,a=(0,P.useSession)(),o=a.data,s=a.status,f=(0,D.v9)(function(e){return e.profile.userMode}),l=(0,L.ej)("next-auth-redirect-error");if((0,h.useEffect)(function(){var e=(0,L.ej)("next-auth-redirect-error");switch(s){case"unauthenticated":rx()&&rT(r.pathname)&&r.push(tX.loginRoute);break;case"authenticated":if(rx()){!localStorage.getItem("profileType_".concat(o.user.id))&&o.user.profileType&&localStorage.setItem("profileType_".concat(o.user.id),o.user.profileType);var n=0===f?tX.initialFansRoute:tX.initialRoute;1===f&&tX.onlyFansRoutes.includes(r.pathname)&&r.push(n),[tX.signupRoute,tX.loginRoute].includes(r.pathname)&&r.push(e||n)}}},[s,r,o,f]),"authenticated"===s&&[tX.signupRoute,tX.loginRoute,tX.subscribeRoute].includes(r.pathname)){var u=0===f?tX.initialFansRoute:tX.initialRoute;r.push(l||u)}return(n=r.pathname,"loading"==s||"unauthenticated"==s&&rT(n)||"authenticated"==s&&[tX.signupRoute,tX.loginRoute,tX.subscribeRoute].includes(n))?(0,R.jsxs)("div",{className:rw().container,children:[(0,R.jsx)(t1(),{src:"/verse_blacktext.svg",height:226,width:342,alt:""}),(0,R.jsx)(rb.Z,{className:rw().circularProgress})]}):i},rM=r(38544),rA=r(82324),rE=(0,ec.oM)({name:"thirdweb",initialState:{wallet:{addr:"",provider:""}},reducers:{setWallet:function(e,n){e.wallet=n.payload}}});rE.actions.setWallet;var rI=rE.reducer,rS=(0,ec.xC)({reducer:{profile:re.ZP,feedback:_.ZP,library:rM.ZP,project:rA.ZP,thirdweb:rI,tracks:eC.ZP,callers:eh,guideTour:t3.ZP}});r(18675),r(25272),r(20363),r(42446);var rk=r(5460),rN=function(){return(0,R.jsx)(R.Fragment,{children:(0,R.jsx)(X(),{id:"vtag-ai-js",src:"https://r2.leadsy.ai/tag.js",
394strategy:"afterInteractive","data-pid":"JvVYog3dGBIQmNH1","data-version":"062024"})})};function rj(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}var rD=m()(function(){return Promise.all([r.e(93496),r.e(14537)]).then(r.bind(r,14537))},{ssr:!1,loadableGenerated:{webpack:function(){return[14537]}}}),r_=h.createContext(),rO=(0,v.Z)({key:"css"});function rP(e){var n=e.Component,r=e.router,i=e.pageProps,a=(0,D.I0)(),o=(0,P.useSession)().data,s=-1===tX.noNavbarRoutes.indexOf(r.pathname),f=-1===tX.noRequiredInvite.indexOf(r.pathname),l=(0,D.v9)(function(e){return e.profile.userMode}),u=(0,g.Z)(tX.mobileMediaQuery);return h.useEffect(function(){if(o){(0,L.d8)("accessToken",o.token,o.expires);var e,n=(0,L.ej)("musicalUserMode"),r=n?parseInt(n):null===(e=o.user)||void 0===e?void 0:e.profile_type;a((0,re._K)(r))}else(0,L.Mz)("accessToken")},[o]),(0,h.useEffect)(function(){var e=function(){a((0,eC.Hi)(null))};return r.events.on("routeChangeStart",e),function(){r.events.off("routeChangeStart",e)}},[]),(0,R.jsx)(R.Fragment,{children:(0,R.jsxs)("div",{className:"rootContainer",children:[(0,R.jsx)($,{}),(0,R.jsxs)(ew.Z,{children:[(0,R.jsx)(rC,{router:r,children:(0,R.jsxs)(ex.Z,{children:[(0,R.jsx)(ev,{}),s&&(0,R.jsxs)("div",{className:"navContainer",children:[(0,R.jsx)(rp,{page:r.pathname}),0===l?(0,R.jsx)(nu,{}):(0,R.jsx)(t8,{})]}),(0,R.jsxs)("div",{className:s?"contentContainer":"fullContainer",children:[f&&(0,R.jsx)(z,{open:!0}),(0,R.jsx)(n,function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?rj(Object(r),!0).forEach(function(n){(0,d.default)(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}({},i))]})]})}),u&&(0,R.jsx)("style",{jsx:!0,children:"\n .rootContainer {\n min-height: unset;\n height: ".concat("".concat(Math.max(window.innerHeight,window.innerWidth),"px"),";\n }\n ")})]})]})})}var rL=function(e){var n=e.Component,r=e.emotionCache,i=e.session,a=e.router,o=e.pageProps,s=["development","staging"].includes("development"),f=h.useState(s?tJ.u6G:tJ.mgq),l=(0,p.Z)(f,2),u=l[0],c=l[1],d=a.locale,y=(0,h.useMemo)(function(){switch(d){case"en":default:return Z;case"pt":return W}},[d]);return(0,R.jsx)(eT.B,{menus:(null==o?void 0:o.menus)||[],footer:null==o?void 0:o.footer,header:null==o?void 0:o.header,children:(0,R.jsx)(eM.C,{value:void 0===r?rO:r,children:(0,R.jsx)(P.SessionProvider,{session:i,children:(0,R.jsx)(r_.Provider,{value:{activeChain:u,setActiveChain:c},children:(0,R.jsx)(tO.wyl,{clientId:"121f929ca3a6f294473bb2d47947c372",activeChain:u,authConfig:{domain:"https://api-gateway.musicalapp.com"},supportedWallets:[(0,tO.k9e)({recommended:!0}),(0,tO.Dq5)({recommended:!1}),(0,tO.J_R)({auth:{options:["email","google","apple","facebook"]}})],children:(0,R.jsx)(t$,{client:rk.L,children:(0,R.jsx)(D.zt,{store:rS,children:(0,R.jsxs)(t_,{locale:d,defaultLocale:"en",messages:y,onError:function(){},children:[(0,R.jsxs)(F(),{children:[(0,R.jsx)("meta",{name:"facebook-domain-verification",content:"o9ic8tamtfrmlafrajqtmg445bgm8v"}),(0,R.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=0.86, maximum-scale=5.0, minimum-scale=0.86"})]}),(0,R.jsxs)(eA.Z,{theme:b,children:[(0,R.jsx)(B.ZP,{}),(0,R.jsx)(rD,{}),(0,R.jsx)(rP,{Component:n,router:a,pageProps:o}),(0,R.jsx)(ee,{}),(0,R.jsx)(et,{}),(0,R.jsx)(en,{}),(0,R.jsx)(rN,{})]})]})})})})})})})})}},43280:function(e,n,r){"use strict";r.d(n,{Mm:function(){return s},Zq:function(){return o},jM:function(){return f}});var i=(0,r(77236).oM)({name:"feedback",initialState:{open:!1,severity:"",message:""},reducers:{setSuccessSnackbar:function(e,n){e.open=!0,e.severity="success",e.message=n.payload.message},setInfoSnackbar:function(e,n){e.open=!0,e.severity="info",e.message=n.payload.message},setErrorSnackbar:function(e,n){e.open=!0,e.severity="error",e.message=n.payload.message},setWarningSnackbar:function(e,n){e.open=!0,e.severity="warning",e.message=n.payload.message},setClearSnackbar:function(e){e.open=!1,e.severity="success",e.message=""}}}),a=i.actions,o=a.setSuccessSnackbar,s=a.setErrorSnackbar,f=(a.setInfoSnackbar,a.setClearSnackbar);n.ZP=i.reducer},73167:function(e,n,r){"use strict";r.d(n,{Fc:function(){return l},QT:function(){return f},cL:function(){return o},j9:function(){return s}});var i=(0,r(77236).oM)({name:"guideTour",initialState:{run:!1,tourActive:!1,stepIndex:0},reducers:{setGuideRun:function(e,n){e.run=n.payload,n.payload&&(e.tourActive=!0)},setGuideActive:function(e,n){e.tourActive=n.payload},setStepIndex:function(e,n){e.stepIndex=n.payload},setStopGuide:function(e){e.run=!1,e.stepIndex=0,e.tourActive=!1}}}),a=i.actions,o=a.setGuideRun,s=a.setGuideActive,f=a.setStepIndex,l=a.setStopGuide;n.ZP=i.reducer},38544:function(e,n,r){"use strict";r.d(n,{LX:function(){return s},On:function(){return d},We:function(){return y},ZL:function(){return l},cC:function(){return h},ky:function(){return o},nJ:function(){return f},vZ:function(){return u},x4:function(){return c},z$:function(){return p}});var i=(0,r(77236).oM)({name:"library",initialState:{trackNameFilter:"",viewType:"date",dateOrder:"desc",allInstruments:[],allGenres:[],allTags:[],allTracks:[],allLanguages:[],allDesigns:[],trackUpdated:{}},reducers:{setViewType:function(e,n){e.viewType=n.payload},setDateOrder:function(e,n){e.dateOrder=n.payload},setTrackNameFilter:function(e,n){e.trackNameFilter=n.payload},setAllInstruments:function(e,n){e.allInstruments=n.payload},setAllGenres:function(e,n){e.allGenres=n.payload},setAllTags:function(e,n){e.allTags=n.payload},setAllTracks:function(e,n){e.allTracks=n.payload},setTrackUpdated:function(e,n){e.trackUpdated=n.payload}
394,setLanguages:function(e,n){e.allLanguages=n.payload},setDesigns:function(e,n){e.allDesigns=n.payload}}}),a=i.actions,o=a.setViewType,s=a.setDateOrder,f=a.setTrackNameFilter,l=a.setAllInstruments,u=a.setAllGenres,c=a.setAllTags,d=a.setAllTracks,p=a.setTrackUpdated,h=a.setLanguages,y=a.setDesigns;n.ZP=i.reducer},53639:function(e,n,r){"use strict";r.d(n,{M:function(){return s},_K:function(){return f}});var i=r(6410),a=(0,r(77236).oM)({name:"profile",initialState:{userData:null,userIsLoading:null,userIsError:null,userMode:null},reducers:{setUserData:function(e,n){e.userData=n.payload.userData,e.userIsLoading=n.payload.userIsLoading,e.userIsError=n.payload.userIsError,e.mode=n.payload.mode},setUserMode:function(e,n){var r;(0,i.d8)("musicalUserMode",null===(r=n.payload)||void 0===r?void 0:r.toString()),e.userMode=n.payload}}}),o=a.actions,s=o.setUserData,f=o.setUserMode;n.ZP=a.reducer},82324:function(e,n,r){"use strict";r.d(n,{a0:function(){return o},qs:function(){return s}});var i=(0,r(77236).oM)({name:"project",initialState:{project:{},releaseSelected:{}},reducers:{setProject:function(e,n){e.project=n.payload},setReleaseSelected:function(e,n){e.releaseSelected=n.payload}}}),a=i.actions,o=a.setProject,s=a.setReleaseSelected;n.ZP=i.reducer},56580:function(e,n,r){"use strict";r.d(n,{Hi:function(){return a}});var i=(0,r(77236).oM)({name:"tracks",initialState:{playingTrack:null},reducers:{setPlayingTrack:function(e,n){e.playingTrack=n.payload}}}),a=i.actions.setPlayingTrack;n.ZP=i.reducer},63144:function(e){"use strict";let n=self.fetch.bind(self);e.exports=n,e.exports.default=e.exports},91118:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(7496)}])},91479:function(){},25272:function(){},42446:function(){},18675:function(){},20363:function(){},97909:function(e){e.exports={container:"ModalFansTour_container__tM3kr",mobileModalContainer:"ModalFansTour_mobileModalContainer__s72qI",modalContainer:"ModalFansTour_modalContainer__E8ZJY",btnClose:"ModalFansTour_btnClose___813D",btnGotItActive:"ModalFansTour_btnGotItActive___x0yu",mobileBtnGotItActive:"ModalFansTour_mobileBtnGotItActive__hmn_7",btnGotItInactive:"ModalFansTour_btnGotItInactive__M_RKH",btnGotItText:"ModalFansTour_btnGotItText__28rrE",wrapper:"ModalFansTour_wrapper__ZL5h_",slideActive:"ModalFansTour_slideActive__Z4x_h",slideInactive:"ModalFansTour_slideInactive__QywfW",imageContainer:"ModalFansTour_imageContainer__XgWdC",descriptionSlide:"ModalFansTour_descriptionSlide__lJgTB",dotsContainer:"ModalFansTour_dotsContainer__Hd_kI",mobileDotsContainer:"ModalFansTour_mobileDotsContainer__NbOBI",activeDot:"ModalFansTour_activeDot__rR_ko",inactiveDot:"ModalFansTour_inactiveDot__1JAVZ",input:"ModalFansTour_input__iYgQ8",wrapperGenre:"ModalFansTour_wrapperGenre__enuFX",txtOverlineWhite:"ModalFansTour_txtOverlineWhite__5LkkH",txtOverlineBlack:"ModalFansTour_txtOverlineBlack__rlarn"}},38910:function(e){e.exports={container:"ModalTour_container__BoGXj",mobileModalContainer:"ModalTour_mobileModalContainer__dWLWu",modalContainer:"ModalTour_modalContainer__To5vU",btnClose:"ModalTour_btnClose__A0LLI",btnGotItActive:"ModalTour_btnGotItActive__SVqyJ",mobileBtnGotItActive:"ModalTour_mobileBtnGotItActive__zEjtb",btnGotItInactive:"ModalTour_btnGotItInactive__8bV7Q",btnGotItText:"ModalTour_btnGotItText__lgIJL",wrapper:"ModalTour_wrapper__n4LgY",slideActive:"ModalTour_slideActive__RY7_T",slideInactive:"ModalTour_slideInactive__kAFEc",descriptionSlide:"ModalTour_descriptionSlide__wHH3F",dotsContainer:"ModalTour_dotsContainer__9jMRg",mobileDotsContainer:"ModalTour_mobileDotsContainer__u1A22",activeDot:"ModalTour_activeDot__bJ4r1",inactiveDot:"ModalTour_inactiveDot__DGMDT"}},36632:function(e){e.exports={container:"Navbar_container__zauSF",logoContainer:"Navbar_logoContainer__FRG8N",iconContainer:"Navbar_iconContainer__meSKC",menuOption:"Navbar_menuOption__7wx5L",optionLabel:"Navbar_optionLabel__XAtK7",selectedFeedback:"Navbar_selectedFeedback__pcruE",userInfoContainer:"Navbar_userInfoContainer__RCE9O",btnIconProfile:"Navbar_btnIconProfile__JZZ8P",pathLabel:"Navbar_pathLabel__z_ZjZ",menuBtn:"Navbar_menuBtn__77xYa",customConnectWallet:"Navbar_customConnectWallet__Xxgja"}},65375:function(e){e.exports={container:"ProtectedRoutes_container__9jlcC",circularProgress:"ProtectedRoutes_circularProgress___i_VT"}},97213:function(e){e.exports={profileImage:"styles_profileImage__aw7LC",profileImageCursor:"styles_profileImageCursor__hk4af"}},5152:function(e,n,r){e.exports=r(40325)},9008:function(e,n,r){e.exports=r(49903)},25675:function(e,n,r){e.exports=r(3122)},41664:function(e,n,r){e.exports=r(78065)},11163:function(e,n,r){e.exports=r(58194)},4298:function(e,n,r){e.exports=r(45125)},70631:function(e,n,r){var i="function"==typeof Map&&Map.prototype,a=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=i&&a&&"function"==typeof a.get?a.get:null,s=i&&Map.prototype.forEach,f="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&f?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=f&&l&&"function"==typeof l.get?l.get:null,c=f&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,p="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,h="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,y=Boolean.prototype.valueOf,m=Object.prototype.toString,g=Function.prototype.toString,b=String.prototype.match,v=String.prototype.slice,w=String.prototype.replace,x=String.prototype.toUpperCase,T=String.prototype.toLowerCase,C=RegExp.prototype.test,M=Array.prototype.concat,A=Array.prototype.join,E=Array.prototype.slice,I=Math.floor,S="function"==typeof BigInt?BigInt.prototype.valueOf:null,k=Object.getOwnPropertySymbols,N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,j="function"==typeof Symbol&&"object"==typeof Symbol.iterator,D="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===j?"object":"symbol")?Symbol.toStringTag:null,_=Object.prototype.propertyIsEnumerable,O=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function P(e,n){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||C.call(/e/,n))return n;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var i=e<0?-I(-e):I(e);if(i!==e){var a=String(i),o=v.call(n,a.length+1);return w.call(a,r,"$&_")+"."+w.call(w.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return w.call(n,r,"$&_")}var L=r(24654),R=L.custom,z=Z(R)?R:null;function B(e,n,r){var i="double"===(r.quoteStyle||n)?'"':"'";return i+e+i}function U(e){return"[object Array]"===G(e)&&(!D||!("object"==typeof e&&D in e))}function F(e){return"[object RegExp]"===G(e)&&(!D||!("object"==typeof e&&D in e))}function Z(e){if(j)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;
394if(!e||"object"!=typeof e||!N)return!1;try{return N.call(e),!0}catch(e){}return!1}e.exports=function e(n,i,a,f){var l=i||{};if(H(l,"quoteStyle")&&"single"!==l.quoteStyle&&"double"!==l.quoteStyle)throw TypeError('option "quoteStyle" must be "single" or "double"');if(H(l,"maxStringLength")&&("number"==typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!H(l,"customInspect")||l.customInspect;if("boolean"!=typeof m&&"symbol"!==m)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(H(l,"indent")&&null!==l.indent&&" "!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(H(l,"numericSeparator")&&"boolean"!=typeof l.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var x=l.numericSeparator;if(void 0===n)return"undefined";if(null===n)return"null";if("boolean"==typeof n)return n?"true":"false";if("string"==typeof n)return function e(n,r){if(n.length>r.maxStringLength){var i=n.length-r.maxStringLength;return e(v.call(n,0,r.maxStringLength),r)+"... "+i+" more character"+(i>1?"s":"")}return B(w.call(w.call(n,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Y),"single",r)}(n,l);if("number"==typeof n){if(0===n)return 1/0/n>0?"0":"-0";var C=String(n);return x?P(n,C):C}if("bigint"==typeof n){var I=String(n)+"n";return x?P(n,I):I}var k=void 0===l.depth?5:l.depth;if(void 0===a&&(a=0),a>=k&&k>0&&"object"==typeof n)return U(n)?"[Array]":"[Object]";var R=function(e,n){var r;if(" "===e.indent)r=" ";else{if("number"!=typeof e.indent||!(e.indent>0))return null;r=A.call(Array(e.indent+1)," ")}return{base:r,prev:A.call(Array(n+1),r)}}(l,a);if(void 0===f)f=[];else if(q(f,n)>=0)return"[Circular]";function W(n,r,i){if(r&&(f=E.call(f)).push(r),i){var o={depth:l.depth};return H(l,"quoteStyle")&&(o.quoteStyle=l.quoteStyle),e(n,o,a+1,f)}return e(n,l,a+1,f)}if("function"==typeof n&&!F(n)){var X=function(e){if(e.name)return e.name;var n=b.call(g.call(e),/^function\s*([\w$]+)/);return n?n[1]:null}(n),ee=J(n,W);return"[Function"+(X?": "+X:" (anonymous)")+"]"+(ee.length>0?" { "+A.call(ee,", ")+" }":"")}if(Z(n)){var et=j?w.call(String(n),/^(Symbol\(.*\))_[^)]*$/,"$1"):N.call(n);return"object"!=typeof n||j?et:V(et)}if(n&&"object"==typeof n&&("undefined"!=typeof HTMLElement&&n instanceof HTMLElement||"string"==typeof n.nodeName&&"function"==typeof n.getAttribute)){for(var en,er="<"+T.call(String(n.nodeName)),ei=n.attributes||[],ea=0;ea<ei.length;ea++)er+=" "+ei[ea].name+"="+B((en=ei[ea].value,w.call(String(en),/"/g,""")),"double",l);return er+=">",n.childNodes&&n.childNodes.length&&(er+="..."),er+="</"+T.call(String(n.nodeName))+">"}if(U(n)){if(0===n.length)return"[]";var eo=J(n,W);return R&&!function(e){for(var n=0;n<e.length;n++)if(q(e[n],"\n")>=0)return!1;return!0}(eo)?"["+$(eo,R)+"]":"[ "+A.call(eo,", ")+" ]"}if("[object Error]"===G(n)&&(!D||!("object"==typeof n&&D in n))){var es=J(n,W);return"cause"in Error.prototype||!("cause"in n)||_.call(n,"cause")?0===es.length?"["+String(n)+"]":"{ ["+String(n)+"] "+A.call(es,", ")+" }":"{ ["+String(n)+"] "+A.call(M.call("[cause]: "+W(n.cause),es),", ")+" }"}if("object"==typeof n&&m){if(z&&"function"==typeof n[z]&&L)return L(n,{depth:k-a});if("symbol"!==m&&"function"==typeof n.inspect)return n.inspect()}if(function(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(n)){var ef=[];return s&&s.call(n,function(e,r){ef.push(W(r,n,!0)+" => "+W(e,n))}),K("Map",o.call(n),ef,R)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{o.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(n)){var el=[];return c&&c.call(n,function(e){el.push(W(e,n))}),K("Set",u.call(n),el,R)}if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(n))return Q("WeakMap");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(n))return Q("WeakSet");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{return h.call(e),!0}catch(e){}return!1}(n))return Q("WeakRef");if("[object Number]"===G(n)&&(!D||!("object"==typeof n&&D in n)))return V(W(Number(n)));if(function(e){if(!e||"object"!=typeof e||!S)return!1;try{return S.call(e),!0}catch(e){}return!1}(n))return V(W(S.call(n)));if("[object Boolean]"===G(n)&&(!D||!("object"==typeof n&&D in n)))return V(y.call(n));if("[object String]"===G(n)&&(!D||!("object"==typeof n&&D in n)))return V(W(String(n)));if("undefined"!=typeof window&&n===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&n===globalThis||void 0!==r.g&&n===r.g)return"{ [object globalThis] }";if(!("[object Date]"===G(n)&&(!D||!("object"==typeof n&&D in n)))&&!F(n)){var eu=J(n,W),ec=O?O(n)===Object.prototype:n instanceof Object||n.constructor===Object,ed=n instanceof Object?"":"null prototype",ep=!ec&&D&&Object(n)===n&&D in n?v.call(G(n),8,-1):ed?"Object":"",eh=(ec||"function"!=typeof n.constructor?"":n.constructor.name?n.constructor.name+" ":"")+(ep||ed?"["+A.call(M.call([],ep||[],ed||[]),": ")+"] ":"");return 0===eu.length?eh+"{}":R?eh+"{"+$(eu,R)+"}":eh+"{ "+A.call(eu,", ")+" }"}return String(n)};var W=Object.prototype.hasOwnProperty||function(e){return e in this};function H(e,n){return W.call(e,n)}function G(e){return m.call(e)}function q(e,n){if(e.indexOf)return e.indexOf(n);for(var r=0,i=e.length;r<i;r++)if(e[r]===n)return r;return -1}function Y(e){var n=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[n];return r?"\\"+r:"\\x"+(n<16?"0":"")+x.call(n.toString(16))}function V(e){return"Object("+e+")"}function Q(e){return e+" { ? }"}function K(e,n,r,i){return e+" ("+n+") {"+(i?$(r,i):A.call(r,", "))+"}"}function $(e,n){if(0===e.length)return"";var r="\n"+n.prev+n.base;return r+A.call(e,","+r)+"\n"+n.prev}function J(e,n){var r,i=U(e),a=[];if(i){a.length=e.length;for(var o=0;o<e.length;o++)a[o]=H(e,o)?n(e[o],e):""}var s="function"==typeof k?k(e):[];if(j){r={};for(var f=0;f<s.length;f++)r["$"+s[f]]=s[f]}for(var l in e)H(e,l)&&(!i||String(Number(l))!==l||!(l<e.length))&&(j&&r["$"+l]instanceof Symbol||(C.call(/[^\w$]/,l)?a.push(n(l,e)+": "+n(e[l],e)):a.push(l+": "+n(e[l],e))));if("function"==typeof k)for(var u=0;u<s.length;u++)_.call(e,s[u])&&a.push("["+n(s[u])+"]: "+n(e[s[u]],e));return a}},34155:function(e){var n,r,i,a=e.exports={};function o(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}function f(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(r){try{return n.call(null,e,0)}catch(r){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:s}
394catch(e){r=s}}();var l=[],u=!1,c=-1;function d(){u&&i&&(u=!1,i.length?l=i.concat(l):c=-1,l.length&&p())}function p(){if(!u){var e=f(d);u=!0;for(var n=l.length;n;){for(i=l,l=[];++c<n;)i&&i[c].run();c=-1,n=l.length}i=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(n){try{return r.call(null,e)}catch(n){return r.call(this,e)}}}(e)}}function h(e,n){this.fun=e,this.array=n}function y(){}a.nextTick=function(e){var n=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)n[r-1]=arguments[r];l.push(new h(e,n)),1!==l.length||u||f(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=y,a.addListener=y,a.once=y,a.off=y,a.removeListener=y,a.removeAllListeners=y,a.emit=y,a.prependListener=y,a.prependOnceListener=y,a.listeners=function(e){return[]},a.binding=function(e){throw Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw Error("process.chdir is not supported")},a.umask=function(){return 0}},92592:function(e,n,r){let i=r(47138),a=r(95115),o=r(6907),s=r(93776);function f(e,n,r,o,s){let f=[].slice.call(arguments,1),l=f.length,u="function"==typeof f[l-1];if(!u&&!i())throw Error("Callback required as last argument");if(u){if(l<2)throw Error("Too few arguments provided");2===l?(s=r,r=n,n=o=void 0):3===l&&(n.getContext&&void 0===s?(s=o,o=void 0):(s=o,o=r,r=n,n=void 0))}else{if(l<1)throw Error("Too few arguments provided");return 1===l?(r=n,n=o=void 0):2!==l||n.getContext||(o=r,r=n,n=void 0),new Promise(function(i,s){try{let s=a.create(r,o);i(e(s,n,o))}catch(e){s(e)}})}try{let i=a.create(r,o);s(null,e(i,n,o))}catch(e){s(e)}}n.create=a.create,n.toCanvas=f.bind(null,o.render),n.toDataURL=f.bind(null,o.renderToDataURL),n.toString=f.bind(null,function(e,n,r){return s.render(e,r)})},47138:function(e){e.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},21845:function(e,n,r){let i=r(10242).getSymbolSize;n.getRowColCoords=function(e){if(1===e)return[];let n=Math.floor(e/7)+2,r=i(e),a=145===r?26:2*Math.ceil((r-13)/(2*n-2)),o=[r-7];for(let e=1;e<n-1;e++)o[e]=o[e-1]-a;return o.push(6),o.reverse()},n.getPositions=function(e){let r=[],i=n.getRowColCoords(e),a=i.length;for(let e=0;e<a;e++)for(let n=0;n<a;n++)(0!==e||0!==n)&&(0!==e||n!==a-1)&&(e!==a-1||0!==n)&&r.push([i[e],i[n]]);return r}},8260:function(e,n,r){let i=r(76910),a=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function o(e){this.mode=i.ALPHANUMERIC,this.data=e}o.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let n;for(n=0;n+2<=this.data.length;n+=2){let r=45*a.indexOf(this.data[n]);r+=a.indexOf(this.data[n+1]),e.put(r,11)}this.data.length%2&&e.put(a.indexOf(this.data[n]),6)},e.exports=o},97245:function(e){function n(){this.buffer=[],this.length=0}n.prototype={get:function(e){let n=Math.floor(e/8);return(this.buffer[n]>>>7-e%8&1)==1},put:function(e,n){for(let r=0;r<n;r++)this.putBit((e>>>n-r-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){let n=Math.floor(this.length/8);this.buffer.length<=n&&this.buffer.push(0),e&&(this.buffer[n]|=128>>>this.length%8),this.length++}},e.exports=n},73280:function(e){function n(e){if(!e||e<1)throw Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}n.prototype.set=function(e,n,r,i){let a=e*this.size+n;this.data[a]=r,i&&(this.reservedBit[a]=!0)},n.prototype.get=function(e,n){return this.data[e*this.size+n]},n.prototype.xor=function(e,n,r){this.data[e*this.size+n]^=r},n.prototype.isReserved=function(e,n){return this.reservedBit[e*this.size+n]},e.exports=n},43424:function(e,n,r){let i=r(62378),a=r(76910);function o(e){this.mode=a.BYTE,"string"==typeof e&&(e=i(e)),this.data=new Uint8Array(e)}o.getBitsLength=function(e){return 8*e},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){for(let n=0,r=this.data.length;n<r;n++)e.put(this.data[n],8)},e.exports=o},35393:function(e,n,r){let i=r(64908),a=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],o=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,
394192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];n.getBlocksCount=function(e,n){switch(n){case i.L:return a[(e-1)*4+0];case i.M:return a[(e-1)*4+1];case i.Q:return a[(e-1)*4+2];case i.H:return a[(e-1)*4+3];default:return}},n.getTotalCodewordsCount=function(e,n){switch(n){case i.L:return o[(e-1)*4+0];case i.M:return o[(e-1)*4+1];case i.Q:return o[(e-1)*4+2];case i.H:return o[(e-1)*4+3];default:return}}},64908:function(e,n){n.L={bit:1},n.M={bit:0},n.Q={bit:3},n.H={bit:2},n.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},n.from=function(e,r){if(n.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return n.L;case"m":case"medium":return n.M;case"q":case"quartile":return n.Q;case"h":case"high":return n.H;default:throw Error("Unknown EC Level: "+e)}}(e)}catch(e){return r}}},76526:function(e,n,r){let i=r(10242).getSymbolSize;n.getPositions=function(e){let n=i(e);return[[0,0],[n-7,0],[0,n-7]]}},61642:function(e,n,r){let i=r(10242),a=i.getBCHDigit(1335);n.getEncodedBits=function(e,n){let r=e.bit<<3|n,o=r<<10;for(;i.getBCHDigit(o)-a>=0;)o^=1335<<i.getBCHDigit(o)-a;return(r<<10|o)^21522}},69729:function(e,n){let r=new Uint8Array(512),i=new Uint8Array(256);!function(){let e=1;for(let n=0;n<255;n++)r[n]=e,i[e]=n,256&(e<<=1)&&(e^=285);for(let e=255;e<512;e++)r[e]=r[e-255]}(),n.log=function(e){if(e<1)throw Error("log("+e+")");return i[e]},n.exp=function(e){return r[e]},n.mul=function(e,n){return 0===e||0===n?0:r[i[e]+i[n]]}},35442:function(e,n,r){let i=r(76910),a=r(10242);function o(e){this.mode=i.KANJI,this.data=e}o.getBitsLength=function(e){return 13*e},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let n;for(n=0;n<this.data.length;n++){let r=a.toSJIS(this.data[n]);if(r>=33088&&r<=40956)r-=33088;else if(r>=57408&&r<=60351)r-=49472;else throw Error("Invalid SJIS character: "+this.data[n]+"\nMake sure your charset is UTF-8");r=(r>>>8&255)*192+(255&r),e.put(r,13)}},e.exports=o}
394,27126:function(e,n){n.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};let r={N1:3,N2:3,N3:40,N4:10};n.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},n.from=function(e){return n.isValid(e)?parseInt(e,10):void 0},n.getPenaltyN1=function(e){let n=e.size,i=0,a=0,o=0,s=null,f=null;for(let l=0;l<n;l++){a=o=0,s=f=null;for(let u=0;u<n;u++){let n=e.get(l,u);n===s?a++:(a>=5&&(i+=r.N1+(a-5)),s=n,a=1),(n=e.get(u,l))===f?o++:(o>=5&&(i+=r.N1+(o-5)),f=n,o=1)}a>=5&&(i+=r.N1+(a-5)),o>=5&&(i+=r.N1+(o-5))}return i},n.getPenaltyN2=function(e){let n=e.size,i=0;for(let r=0;r<n-1;r++)for(let a=0;a<n-1;a++){let n=e.get(r,a)+e.get(r,a+1)+e.get(r+1,a)+e.get(r+1,a+1);(4===n||0===n)&&i++}return i*r.N2},n.getPenaltyN3=function(e){let n=e.size,i=0,a=0,o=0;for(let r=0;r<n;r++){a=o=0;for(let s=0;s<n;s++)a=a<<1&2047|e.get(r,s),s>=10&&(1488===a||93===a)&&i++,o=o<<1&2047|e.get(s,r),s>=10&&(1488===o||93===o)&&i++}return i*r.N3},n.getPenaltyN4=function(e){let n=0,i=e.data.length;for(let r=0;r<i;r++)n+=e.data[r];return Math.abs(Math.ceil(100*n/i/5)-10)*r.N4},n.applyMask=function(e,r){let i=r.size;for(let a=0;a<i;a++)for(let o=0;o<i;o++)r.isReserved(o,a)||r.xor(o,a,function(e,r,i){switch(e){case n.Patterns.PATTERN000:return(r+i)%2==0;case n.Patterns.PATTERN001:return r%2==0;case n.Patterns.PATTERN010:return i%3==0;case n.Patterns.PATTERN011:return(r+i)%3==0;case n.Patterns.PATTERN100:return(Math.floor(r/2)+Math.floor(i/3))%2==0;case n.Patterns.PATTERN101:return r*i%2+r*i%3==0;case n.Patterns.PATTERN110:return(r*i%2+r*i%3)%2==0;case n.Patterns.PATTERN111:return(r*i%3+(r+i)%2)%2==0;default:throw Error("bad maskPattern:"+e)}}(e,o,a))},n.getBestMask=function(e,r){let i=Object.keys(n.Patterns).length,a=0,o=1/0;for(let s=0;s<i;s++){r(s),n.applyMask(s,e);let i=n.getPenaltyN1(e)+n.getPenaltyN2(e)+n.getPenaltyN3(e)+n.getPenaltyN4(e);n.applyMask(s,e),i<o&&(o=i,a=s)}return a}},76910:function(e,n,r){let i=r(43114),a=r(7007);n.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},n.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},n.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},n.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},n.MIXED={bit:-1},n.getCharCountIndicator=function(e,n){if(!e.ccBits)throw Error("Invalid mode: "+e);if(!i.isValid(n))throw Error("Invalid version: "+n);return n>=1&&n<10?e.ccBits[0]:n<27?e.ccBits[1]:e.ccBits[2]},n.getBestModeForData=function(e){return a.testNumeric(e)?n.NUMERIC:a.testAlphanumeric(e)?n.ALPHANUMERIC:a.testKanji(e)?n.KANJI:n.BYTE},n.toString=function(e){if(e&&e.id)return e.id;throw Error("Invalid mode")},n.isValid=function(e){return e&&e.bit&&e.ccBits},n.from=function(e,r){if(n.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return n.NUMERIC;case"alphanumeric":return n.ALPHANUMERIC;case"kanji":return n.KANJI;case"byte":return n.BYTE;default:throw Error("Unknown mode: "+e)}}(e)}catch(e){return r}}},41085:function(e,n,r){let i=r(76910);function a(e){this.mode=i.NUMERIC,this.data=e.toString()}a.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(e){let n,r;for(n=0;n+3<=this.data.length;n+=3)r=parseInt(this.data.substr(n,3),10),e.put(r,10);let i=this.data.length-n;i>0&&(r=parseInt(this.data.substr(n),10),e.put(r,3*i+1))},e.exports=a},26143:function(e,n,r){let i=r(69729);n.mul=function(e,n){let r=new Uint8Array(e.length+n.length-1);for(let a=0;a<e.length;a++)for(let o=0;o<n.length;o++)r[a+o]^=i.mul(e[a],n[o]);return r},n.mod=function(e,n){let r=new Uint8Array(e);for(;r.length-n.length>=0;){let e=r[0];for(let a=0;a<n.length;a++)r[a]^=i.mul(n[a],e);let a=0;for(;a<r.length&&0===r[a];)a++;r=r.slice(a)}return r},n.generateECPolynomial=function(e){let r=new Uint8Array([1]);for(let a=0;a<e;a++)r=n.mul(r,new Uint8Array([1,i.exp(a)]));return r}},95115:function(e,n,r){let i=r(10242),a=r(64908),o=r(97245),s=r(73280),f=r(21845),l=r(76526),u=r(27126),c=r(35393),d=r(52882),p=r(23103),h=r(61642),y=r(76910),m=r(16130);function g(e,n,r){let i,a;let o=e.size,s=h.getEncodedBits(n,r);for(i=0;i<15;i++)a=(s>>
vendor: 11,949 bytes, line 394
394i&1)==1,i<6?e.set(i,8,a,!0):i<8?e.set(i+1,8,a,!0):e.set(o-15+i,8,a,!0),i<8?e.set(8,o-i-1,a,!0):i<9?e.set(8,15-i-1+1,a,!0):e.set(8,15-i-1,a,!0);e.set(o-8,8,1,!0)}n.create=function(e,n){let r,h;if(void 0===e||""===e)throw Error("No input text");let b=a.M;return void 0!==n&&(b=a.from(n.errorCorrectionLevel,a.M),r=p.from(n.version),h=u.from(n.maskPattern),n.toSJISFunc&&i.setToSJISFunction(n.toSJISFunc)),function(e,n,r,a){let h;if(Array.isArray(e))h=m.fromArray(e);else if("string"==typeof e){let i=n;if(!i){let n=m.rawSplit(e);i=p.getBestVersionForData(n,r)}h=m.fromString(e,i||40)}else throw Error("Invalid data");let b=p.getBestVersionForData(h,r);if(!b)throw Error("The amount of data is too big to be stored in a QR Code");if(n){if(n<b)throw Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+b+".\n")}else n=b;let v=function(e,n,r){let a=new o;r.forEach(function(n){a.put(n.mode.bit,4),a.put(n.getLength(),y.getCharCountIndicator(n.mode,e)),n.write(a)});let s=(i.getSymbolTotalCodewords(e)-c.getTotalCodewordsCount(e,n))*8;for(a.getLengthInBits()+4<=s&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(0);let f=(s-a.getLengthInBits())/8;for(let e=0;e<f;e++)a.put(e%2?17:236,8);return function(e,n,r){let a,o;let s=i.getSymbolTotalCodewords(n),f=s-c.getTotalCodewordsCount(n,r),l=c.getBlocksCount(n,r),u=s%l,p=l-u,h=Math.floor(s/l),y=Math.floor(f/l),m=y+1,g=h-y,b=new d(g),v=0,w=Array(l),x=Array(l),T=0,C=new Uint8Array(e.buffer);for(let e=0;e<l;e++){let n=e<p?y:m;w[e]=C.slice(v,v+n),x[e]=b.encode(w[e]),v+=n,T=Math.max(T,n)}let M=new Uint8Array(s),A=0;for(a=0;a<T;a++)for(o=0;o<l;o++)a<w[o].length&&(M[A++]=w[o][a]);for(a=0;a<g;a++)for(o=0;o<l;o++)M[A++]=x[o][a];return M}(a,e,n)}(n,r,h),w=new s(i.getSymbolSize(n));return function(e,n){let r=e.size,i=l.getPositions(n);for(let n=0;n<i.length;n++){let a=i[n][0],o=i[n][1];for(let n=-1;n<=7;n++)if(!(a+n<=-1)&&!(r<=a+n))for(let i=-1;i<=7;i++)o+i<=-1||r<=o+i||(n>=0&&n<=6&&(0===i||6===i)||i>=0&&i<=6&&(0===n||6===n)||n>=2&&n<=4&&i>=2&&i<=4?e.set(a+n,o+i,!0,!0):e.set(a+n,o+i,!1,!0))}}(w,n),function(e){let n=e.size;for(let r=8;r<n-8;r++){let n=r%2==0;e.set(r,6,n,!0),e.set(6,r,n,!0)}}(w),function(e,n){let r=f.getPositions(n);for(let n=0;n<r.length;n++){let i=r[n][0],a=r[n][1];for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)-2===n||2===n||-2===r||2===r||0===n&&0===r?e.set(i+n,a+r,!0,!0):e.set(i+n,a+r,!1,!0)}}(w,n),g(w,r,0),n>=7&&function(e,n){let r,i,a;let o=e.size,s=p.getEncodedBits(n);for(let n=0;n<18;n++)r=Math.floor(n/3),i=n%3+o-8-3,a=(s>>n&1)==1,e.set(r,i,a,!0),e.set(i,r,a,!0)}(w,n),function(e,n){let r=e.size,i=-1,a=r-1,o=7,s=0;for(let f=r-1;f>0;f-=2)for(6===f&&f--;;){for(let r=0;r<2;r++)if(!e.isReserved(a,f-r)){let i=!1;s<n.length&&(i=(n[s]>>>o&1)==1),e.set(a,f-r,i),-1==--o&&(s++,o=7)}if((a+=i)<0||r<=a){a-=i,i=-i;break}}}(w,v),isNaN(a)&&(a=u.getBestMask(w,g.bind(null,w,r))),u.applyMask(a,w),g(w,r,a),{modules:w,version:n,errorCorrectionLevel:r,maskPattern:a,segments:h}}(e,r,b,h)}},52882:function(e,n,r){let i=r(26143);function a(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}a.prototype.initialize=function(e){this.degree=e,this.genPoly=i.generateECPolynomial(this.degree)},a.prototype.encode=function(e){if(!this.genPoly)throw Error("Encoder not initialized");let n=new Uint8Array(e.length+this.degree);n.set(e);let r=i.mod(n,this.genPoly),a=this.degree-r.length;if(a>0){let e=new Uint8Array(this.degree);return e.set(r,a),e}return r},e.exports=a},7007:function(e,n){let r="[0-9]+",i="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",a="(?:(?![A-Z0-9 $%*+\\-./:]|"+(i=i.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";n.KANJI=RegExp(i,"g"),n.BYTE_KANJI=RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),n.BYTE=RegExp(a,"g"),n.NUMERIC=RegExp(r,"g"),n.ALPHANUMERIC=RegExp("[A-Z $%*+\\-./:]+","g");let o=RegExp("^"+i+"$"),s=RegExp("^"+r+"$"),f=RegExp("^[A-Z0-9 $%*+\\-./:]+$");n.testKanji=function(e){return o.test(e)},n.testNumeric=function(e){return s.test(e)},n.testAlphanumeric=function(e){return f.test(e)}},16130:function(e,n,r){let i=r(76910),a=r(41085),o=r(8260),s=r(43424),f=r(35442),l=r(7007),u=r(10242),c=r(65987);function d(e){return unescape(encodeURIComponent(e)).length}function p(e,n,r){let i;let a=[];for(;null!==(i=e.exec(r));)a.push({data:i[0],index:i.index,mode:n,length:i[0].length});return a}function h(e){let n,r;let a=p(l.NUMERIC,i.NUMERIC,e),o=p(l.ALPHANUMERIC,i.ALPHANUMERIC,e);return u.isKanjiModeEnabled()?(n=p(l.BYTE,i.BYTE,e),r=p(l.KANJI,i.KANJI,e)):(n=p(l.BYTE_KANJI,i.BYTE,e),r=[]),a.concat(o,n,r).sort(function(e,n){return e.index-n.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function y(e,n){switch(n){case i.NUMERIC:return a.getBitsLength(e);case i.ALPHANUMERIC:return o.getBitsLength(e);case i.KANJI:return f.getBitsLength(e);case i.BYTE:return s.getBitsLength(e)}}function m(e,n){let r;let l=i.getBestModeForData(e);if((r=i.from(n,l))!==i.BYTE&&r.bit<l.bit)throw Error('"'+e+'" cannot be encoded with mode '+i.toString(r)+".\n Suggested mode is: "+i.toString(l));switch(r!==i.KANJI||u.isKanjiModeEnabled()||(r=i.BYTE),r){case i.NUMERIC:return new a(e);case i.ALPHANUMERIC:return new o(e);case i.KANJI:return new f(e);case i.BYTE:return new s(e)}}n.fromArray=function(e){return e.reduce(function(e,n){return"string"==typeof n?e.push(m(n,null)):n.data&&e.push(m(n.data,n.mode)),e},[])},n.fromString=function(e,r){let a=function(e,n){let r={},a={start:{}},o=["start"];for(let s=0;s<e.length;s++){let f=e[s],l=[];for(let e=0;e<f.length;e++){let u=f[e],c=""+s+e;l.push(c),r[c]={node:u,lastCount:0},a[c]={};for(let e=0;e<o.length;e++){let s=o[e];r[s]&&r[s].node.mode===u.mode?(a[s][c]=y(r[s].lastCount+u.length,u.mode)-y(r[s].lastCount,u.mode),r[s].lastCount+=u.length):(r[s]&&(r[s].lastCount=u.length),a[s][c]=y(u.length,u.mode)+4+i.getCharCountIndicator(u.mode,n))}}o=l}for(let e=0;e<o.length;e++)a[o[e]].end=0;return{map:a,table:r}}(function(e){let n=[];for(let r=0;r<e.length;r++){let a=e[r];switch(a.mode){case i.NUMERIC:n.push([a,{data:a.data,mode:i.ALPHANUMERIC,length:a.length},{data:a.data,mode:i.BYTE,length:a.length}]);break;case i.ALPHANUMERIC:n.push([a,{data:a.data,mode:i.BYTE,length:a.length}]);break;case i.KANJI:n.push([a,{data:a.data,mode:i.BYTE,length:d(a.data)}]);break;case i.BYTE:n.push([{data:a.data,mode:i.BYTE,length:d(a.data)}])}}return n}(h(e,u.isKanjiModeEnabled())),r),o=c.find_path(a.map,"start","end"),s=[];for(let e=1;e<o.length-1;e++)s.push(a.table[o[e]].node);return n.fromArray(s.reduce(function(e,n){let r=e.length-1>=0?e[e.length-1]:null;return r&&r.mode===n.mode?e[e.length-1].data+=n.data:e.push(n),e},[]))},n.rawSplit=function(e){return n.fromArray(h(e,u.isKanjiModeEnabled()))}},10242:function(e,n){let r;let i=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];n.getSymbolSize=function(e){if(!e)throw Error('"version" cannot be null or undefined');if(e<1||e>40)throw Error('"version" should be in range from 1 to 40');return 4*e+17},n.getSymbolTotalCodewords=function(e){return i[e]},n.getBCHDigit=function(e){let n=0;for(;0!==e;)n++,e>>>=1;return n},n.setToSJISFunction=function(e){if("function"!=typeof e)throw Error('"toSJISFunc" is not a valid function.');r=e},n.isKanjiModeEnabled=function(){return void 0!==r},n.toSJIS=function(e){return r(e)}},43114:function(e,n){n.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},23103:function(e,n,r){let i=r(10242),a=r(35393),o=r(64908),s=r(76910),f=r(43114),l=i.getBCHDigit(7973);function u(e,n){return s.getCharCountIndicator(e,n)+4}n.from=function(e,n){return f.isValid(e)?parseInt(e,10):n},n.getCapacity=function(e,n,r){if(!f.isValid(e))throw Error("Invalid QR Code version");void 0===r&&(r=s.BYTE);let o=(i.getSymbolTotalCodewords(e)-a.getTotalCodewordsCount(e,n))*8;if(r===s.MIXED)return o;let l=o-u(r,e);switch(r){case s.NUMERIC:return Math.floor(l/10*3);case s.ALPHANUMERIC:return Math.floor(l/11*2);case s.KANJI:return Math.floor(l/13);case s.BYTE:default:return Math.floor(l/8)}},n.getBestVersionForData=function(e,r){let i;let a=o.from(r,o.M);if(Array.isArray(e)){if(e.length>1)return function(e,r){for(let i=1;i<=40;i++)if(function(e,n){let r=0;return e.forEach(function(e){let i=u(e.mode,n);r+=i+e.getBitsLength()}),r}(e,i)<=n.getCapacity(i,r,s.MIXED))return i}(e,a);if(0===e.length)return 1;i=e[0]}else i=e;return function(e,r,i){for(let a=1;a<=40;a++)if(r<=n.getCapacity(a,i,e))return a}(i.mode,i.getLength(),a)},n.getEncodedBits=function(e){if(!f.isValid(e)||e<7)throw Error("Invalid QR Code version");let n=e<<12;for(;i.getBCHDigit(n)-l>=0;)n^=7973<<i.getBCHDigit(n)-l;return e<<12|n}},6907:function(e,n,r){let i=r(89653);n.render=function(e,n,r){var a;let o=r,s=n;void 0!==o||n&&n.getContext||(o=n,n=void 0),n||(s=function(){try{return document.createElement("canvas")}catch(e){throw Error("You need to specify a canvas element")}}()),o=i.getOptions(o);let f=i.getImageWidth(e.modules.size,o),l=s.getContext("2d"),u=l.createImageData(f,f);return i.qrToImageData(u.data,e,o),a=s,l.clearRect(0,0,a.width,a.height),a.style||(a.style={}),a.height=f,a.width=f,a.style.height=f+"px",a.style.width=f+"px",l.putImageData(u,0,0),s},n.renderToDataURL=function(e,r,i){let a=i;void 0!==a||r&&r.getContext||(a=r,r=void 0),a||(a={});let o=n.render(e,r,a),s=a.type||"image/png",f=a.rendererOpts||{};return o.toDataURL(s,f.quality)}},93776:function(e,n,r){let i=r(89653);function a(e,n){let r=e.a/255,i=n+'="'+e.hex+'"';return r<1?i+" "+n+'-opacity="'+r.toFixed(2).slice(1)+'"':i}function o(e,n,r){let i=e+n;return void 0!==r&&(i+=" "+r),i}n.render=function(e,n,r){let s=i.getOptions(n),f=e.modules.size,l=e.modules.data,u=f+2*s.margin,c=s.color.light.a?"<path "+a(s.color.light,"fill")+' d="M0 0h'+u+"v"+u+'H0z"/>':"",d="<path "+a(s.color.dark,"stroke")+' d="'+function(e,n,r){let i="",a=0,s=!1,f=0;for(let l=0;l<e.length;l++){let u=Math.floor(l%n),c=Math.floor(l/n);u||s||(s=!0),e[l]?(f++,l>0&&u>0&&e[l-1]||(i+=s?o("M",u+r,.5+c+r):o("m",a,0),a=0,s=!1),u+1<n&&e[l+1]||(i+=o("h",f),f=0)):a++}return i}(l,f,s.margin)+'"/>',p='<svg xmlns="http://www.w3.org/2000/svg" '+(s.width?'width="'+s.width+'" height="'+s.width+'" ':"")+('viewBox="0 0 '+u)+" "+u+'" shape-rendering="crispEdges">'+c+d+"</svg>\n";return"function"==typeof r&&r(null,p),p}},89653:function(e,n){function r(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw Error("Color should be defined as hex string");let n=e.slice().replace("#","").split("");if(n.length<3||5===n.length||n.length>8)throw Error("Invalid hex color: "+e);(3===n.length||4===n.length)&&(n=Array.prototype.concat.apply([],n.map(function(e){return[e,e]}))),6===n.length&&n.push("F","F");let r=parseInt(n.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:255&r,hex:"#"+n.slice(0,6).join("")}}n.getOptions=function(e){e||(e={}),e.color||(e.color={});let n=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,i=e.width&&e.width>=21?e.width:void 0,a=e.scale||4;return{width:i,scale:i?4:a,margin:n,color:{dark:r(e.color.dark||"#000000ff"),light:r(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},n.getScale=function(e,n){return n.width&&n.width>=e+2*n.margin?n.width/(e+2*n.margin):n.scale},n.getImageWidth=function(e,r){let i=n.getScale(e,r);return Math.floor((e+2*r.margin)*i)},n.qrToImageData=function(e,r,i){let a=r.modules.size,o=r.modules.data,s=n.getScale(a,i),f=Math.floor((a+2*i.margin)*s),l=i.margin*s,u=[i.color.light,i.color.dark];for(let n=0;n<f;n++)for(let r=0;r<f;r++){let c=(n*f+r)*4,d=i.color.light;n>=l&&r>=l&&n<f-l&&r<f-l&&(d=u[o[Math.floor((n-l)/s)*a+Math.floor((r-l)/s)]?1:0]),e[c++]=d.r,e[c++]=d.g,e[c++]=d.b,e[c]=d.a}}},55798:function(e){"use strict";
394var n=String.prototype.replace,r=/%20/g,i="RFC3986";e.exports={default:i,formatters:{RFC1738:function(e){return n.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:i}},80129:function(e,n,r){"use strict";var i=r(58261),a=r(55235),o=r(55798);e.exports={formats:o,parse:a,stringify:i}},55235:function(e,n,r){"use strict";var i=r(12769),a=Object.prototype.hasOwnProperty,o=Array.isArray,s={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:i.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},f=function(e,n){return e&&"string"==typeof e&&n.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,n){var r={__proto__:null},l=n.ignoreQueryPrefix?e.replace(/^\?/,""):e;l=l.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u=n.parameterLimit===1/0?void 0:n.parameterLimit,c=l.split(n.delimiter,u),d=-1,p=n.charset;if(n.charsetSentinel)for(h=0;h<c.length;++h)0===c[h].indexOf("utf8=")&&("utf8=%E2%9C%93"===c[h]?p="utf-8":"utf8=%26%2310003%3B"===c[h]&&(p="iso-8859-1"),d=h,h=c.length);for(h=0;h<c.length;++h)if(h!==d){var h,y,m,g=c[h],b=g.indexOf("]="),v=-1===b?g.indexOf("="):b+1;-1===v?(y=n.decoder(g,s.decoder,p,"key"),m=n.strictNullHandling?null:""):(y=n.decoder(g.slice(0,v),s.decoder,p,"key"),m=i.maybeMap(f(g.slice(v+1),n),function(e){return n.decoder(e,s.decoder,p,"value")})),m&&n.interpretNumericEntities&&"iso-8859-1"===p&&(m=m.replace(/&#(\d+);/g,function(e,n){return String.fromCharCode(parseInt(n,10))})),g.indexOf("[]=")>-1&&(m=o(m)?[m]:m);var w=a.call(r,y);w&&"combine"===n.duplicates?r[y]=i.combine(r[y],m):w&&"last"!==n.duplicates||(r[y]=m)}return r},u=function(e,n,r,i){for(var a=i?n:f(n,r),o=e.length-1;o>=0;--o){var s,l=e[o];if("[]"===l&&r.parseArrays)s=r.allowEmptyArrays&&(""===a||r.strictNullHandling&&null===a)?[]:[].concat(a);else{s=r.plainObjects?Object.create(null):{};var u="["===l.charAt(0)&&"]"===l.charAt(l.length-1)?l.slice(1,-1):l,c=r.decodeDotInKeys?u.replace(/%2E/g,"."):u,d=parseInt(c,10);r.parseArrays||""!==c?!isNaN(d)&&l!==c&&String(d)===c&&d>=0&&r.parseArrays&&d<=r.arrayLimit?(s=[])[d]=a:"__proto__"!==c&&(s[c]=a):s={0:a}}a=s}return a},c=function(e,n,r,i){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/g,f=r.depth>0&&/(\[[^[\]]*])/.exec(o),l=f?o.slice(0,f.index):o,c=[];if(l){if(!r.plainObjects&&a.call(Object.prototype,l)&&!r.allowPrototypes)return;c.push(l)}for(var d=0;r.depth>0&&null!==(f=s.exec(o))&&d<r.depth;){if(d+=1,!r.plainObjects&&a.call(Object.prototype,f[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(f[1])}return f&&c.push("["+o.slice(f.index)+"]"),u(c,n,r,i)}},d=function(e){if(!e)return s;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=void 0===e.charset?s.charset:e.charset,r=void 0===e.duplicates?s.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||s.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:s.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:s.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:s.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:s.arrayLimit,charset:n,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:s.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:s.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:s.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:s.decoder,delimiter:"string"==typeof e.delimiter||i.isRegExp(e.delimiter)?e.delimiter:s.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:s.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:s.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:s.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:s.strictNullHandling}};e.exports=function(e,n){var r=d(n);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var a="string"==typeof e?l(e,r):e,o=r.plainObjects?Object.create(null):{},s=Object.keys(a),f=0;f<s.length;++f){var u=s[f],p=c(u,a[u],r,"string"==typeof e);
394o=i.merge(o,p,r)}return!0===r.allowSparse?o:i.compact(o)}},58261:function(e,n,r){"use strict";var i=r(37478),a=r(12769),o=r(55798),s=Object.prototype.hasOwnProperty,f={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,n){return e+"["+n+"]"},repeat:function(e){return e}},l=Array.isArray,u=Array.prototype.push,c=function(e,n){u.apply(e,l(n)?n:[n])},d=Date.prototype.toISOString,p=o.default,h={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:a.encode,encodeValuesOnly:!1,format:p,formatter:o.formatters[p],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},y={},m=function e(n,r,o,s,f,u,d,p,m,g,b,v,w,x,T,C,M,A){for(var E,I,S=n,k=A,N=0,j=!1;void 0!==(k=k.get(y))&&!j;){var D=k.get(n);if(N+=1,void 0!==D){if(D===N)throw RangeError("Cyclic object value");j=!0}void 0===k.get(y)&&(N=0)}if("function"==typeof g?S=g(r,S):S instanceof Date?S=w(S):"comma"===o&&l(S)&&(S=a.maybeMap(S,function(e){return e instanceof Date?w(e):e})),null===S){if(u)return m&&!C?m(r,h.encoder,M,"key",x):r;S=""}if("string"==typeof(E=S)||"number"==typeof E||"boolean"==typeof E||"symbol"==typeof E||"bigint"==typeof E||a.isBuffer(S))return m?[T(C?r:m(r,h.encoder,M,"key",x))+"="+T(m(S,h.encoder,M,"value",x))]:[T(r)+"="+T(String(S))];var _=[];if(void 0===S)return _;if("comma"===o&&l(S))C&&m&&(S=a.maybeMap(S,m)),I=[{value:S.length>0?S.join(",")||null:void 0}];else if(l(g))I=g;else{var O=Object.keys(S);I=b?O.sort(b):O}var P=p?r.replace(/\./g,"%2E"):r,L=s&&l(S)&&1===S.length?P+"[]":P;if(f&&l(S)&&0===S.length)return L+"[]";for(var R=0;R<I.length;++R){var z=I[R],B="object"==typeof z&&void 0!==z.value?z.value:S[z];if(!d||null!==B){var U=v&&p?z.replace(/\./g,"%2E"):z,F=l(S)?"function"==typeof o?o(L,U):L:L+(v?"."+U:"["+U+"]");A.set(n,N);var Z=i();Z.set(y,A),c(_,e(B,F,o,s,f,u,d,p,"comma"===o&&C&&l(S)?null:m,g,b,v,w,x,T,C,M,Z))}}return _},g=function(e){if(!e)return h;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw TypeError("Encoder has to be a function.");var n,r=e.charset||h.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var i=o.default;if(void 0!==e.format){if(!s.call(o.formatters,e.format))throw TypeError("Unknown format option provided.");i=e.format}var a=o.formatters[i],u=h.filter;if(("function"==typeof e.filter||l(e.filter))&&(u=e.filter),n=e.arrayFormat in f?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":h.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var c=void 0===e.allowDots?!0===e.encodeDotInKeys||h.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:h.addQueryPrefix,allowDots:c,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:
394h.allowEmptyArrays,arrayFormat:n,charset:r,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:h.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?h.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:h.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:h.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:h.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:h.encodeValuesOnly,filter:u,format:i,formatter:a,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:h.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:h.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:h.strictNullHandling}};e.exports=function(e,n){var r,a=e,o=g(n);"function"==typeof o.filter?a=(0,o.filter)("",a):l(o.filter)&&(r=o.filter);var s=[];if("object"!=typeof a||null===a)return"";var u=f[o.arrayFormat],d="comma"===u&&o.commaRoundTrip;r||(r=Object.keys(a)),o.sort&&r.sort(o.sort);for(var p=i(),h=0;h<r.length;++h){var y=r[h];o.skipNulls&&null===a[y]||c(s,m(a[y],y,u,d,o.allowEmptyArrays,o.strictNullHandling,o.skipNulls,o.encodeDotInKeys,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,p))}var b=s.join(o.delimiter),v=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),b.length>0?v+b:""}},12769:function(e,n,r){"use strict";var i=r(55798),a=Object.prototype.hasOwnProperty,o=Array.isArray,s=function(){for(var e=[],n=0;n<256;++n)e.push("%"+((n<16?"0":"")+n.toString(16)).toUpperCase());return e}(),f=function(e){for(;e.length>1;){var n=e.pop(),r=n.obj[n.prop];if(o(r)){for(var i=[],a=0;a<r.length;++a)void 0!==r[a]&&i.push(r[a]);n.obj[n.prop]=i}}},l=function(e,n){for(var r=n&&n.plainObjects?Object.create(null):{},i=0;i<e.length;++i)void 0!==e[i]&&(r[i]=e[i]);return r};e.exports={arrayToObject:l,assign:function(e,n){return Object.keys(n).reduce(function(e,r){return e[r]=n[r],e},e)},combine:function(e,n){return[].concat(e,n)},compact:function(e){for(var n=[{obj:{o:e},prop:"o"}],r=[],i=0;i<n.length;++i)for(var a=n[i],o=a.obj[a.prop],s=Object.keys(o),l=0;l<s.length;++l){var u=s[l],c=o[u];"object"==typeof c&&null!==c&&-1===r.indexOf(c)&&(n.push({obj:o,prop:u}),r.push(c))}return f(n),e},decode:function(e,n,r){var i=e.replace(/\+/g," ");if("iso-8859-1"===r)return i.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(i)}catch(e){return i}},encode:function(e,n,r,a,o){if(0===e.length)return e;var f=e;if("symbol"==typeof e?f=Symbol.prototype.toString.call(e):"string"!=typeof e&&(f=String(e)),"iso-8859-1"===r)return escape(f).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var l="",u=0;u<f.length;u+=1024){for(var c=f.length>=1024?f.slice(u,u+1024):f,d=[],p=0;p<c.length;++p){var h=c.charCodeAt(p);if(45===h||46===h||95===h||126===h||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||o===i.RFC1738&&(40===h||41===h)){d[d.length]=c.charAt(p);continue}if(h<128){d[d.length]=s[h];continue}if(h<2048){d[d.length]=s[192|h>>6]+s[128|63&h];continue}if(h<55296||h>=57344){d[d.length]=s[224|h>>12]+s[128|h>>6&63]+s[128|63&h];continue}p+=1,h=65536+((1023&h)<<10|1023&c.charCodeAt(p)),d[d.length]=s[240|h>>18]+s[128|h>>12&63]+s[128|h>>6&63]+s[128|63&h]}l+=d.join("")}return l},isBuffer:function(e){return!!e&&"object"==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,n){if(o(e)){for(var r=[],i=0;i<e.length;i+=1)r.push(n(e[i]));return r}return n(e)},merge:function e(n,r,i){if(!r)return n;if("object"!=typeof r){if(o(n))n.push(r);else{if(!n||"object"!=typeof n)return[n,r];(i&&(i.plainObjects||i.allowPrototypes)||!a.call(Object.prototype,r))&&(n[r]=!0)}return n}if(!n||"object"!=typeof n)return[n].concat(r);var s=n;return(o(n)&&!o(r)&&(s=l(n,i)),o(n)&&o(r))?(r.forEach(function(r,o){if(a.call(n,o)){var s=n[o];s&&"object"==typeof s&&r&&"object"==typeof r?n[o]=e(s,r,i):n.push(r)}else n[o]=r}),n):Object.keys(r).reduce(function(n,o){var s=r[o];return a.call(n,o)?n[o]=e(n[o],s,i):n[o]=s,n},s)}}},17563:function(e,n,r){"use strict";let i=r(70610),a=r(44020),o=r(80500),s=r(92806),f=e=>null==e,l=Symbol("encodeFragmentIdentifier");function u(e){if("string"!=typeof e||1!==e.length)throw TypeError("arrayFormatSeparator must be single character string")}function c(e,n){return n.encode?n.strict?i(e):encodeURIComponent(e):e}function d(e,n){return n.decode?a(e):e}function p(e){let n=e.indexOf("#");return -1!==n&&(e=e.slice(0,n)),e}function h(e){let n=(e=p(e)).indexOf("?");return -1===n?"":e.slice(n+1)}function y(e,n){return n.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):n.parseBooleans&&null!==e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())&&(e="true"===e.toLowerCase()),e}function m(e,n){u((n=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},n)).arrayFormatSeparator);let r=function(e){let n;
394switch(e.arrayFormat){case"index":return(e,r,i)=>{if(n=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),!n){i[e]=r;return}void 0===i[e]&&(i[e]={}),i[e][n[1]]=r};case"bracket":return(e,r,i)=>{if(n=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),!n){i[e]=r;return}if(void 0===i[e]){i[e]=[r];return}i[e]=[].concat(i[e],r)};case"colon-list-separator":return(e,r,i)=>{if(n=/(:list)$/.exec(e),e=e.replace(/:list$/,""),!n){i[e]=r;return}if(void 0===i[e]){i[e]=[r];return}i[e]=[].concat(i[e],r)};case"comma":case"separator":return(n,r,i)=>{let a="string"==typeof r&&r.includes(e.arrayFormatSeparator),o="string"==typeof r&&!a&&d(r,e).includes(e.arrayFormatSeparator);r=o?d(r,e):r;let s=a||o?r.split(e.arrayFormatSeparator).map(n=>d(n,e)):null===r?r:d(r,e);i[n]=s};case"bracket-separator":return(n,r,i)=>{let a=/(\[\])$/.test(n);if(n=n.replace(/\[\]$/,""),!a){i[n]=r?d(r,e):r;return}let o=null===r?[]:r.split(e.arrayFormatSeparator).map(n=>d(n,e));if(void 0===i[n]){i[n]=o;return}i[n]=[].concat(i[n],o)};default:return(e,n,r)=>{if(void 0===r[e]){r[e]=n;return}r[e]=[].concat(r[e],n)}}}(n),i=Object.create(null);if("string"!=typeof e||!(e=e.trim().replace(/^[?#&]/,"")))return i;for(let a of e.split("&")){if(""===a)continue;let[e,s]=o(n.decode?a.replace(/\+/g," "):a,"=");s=void 0===s?null:["comma","separator","bracket-separator"].includes(n.arrayFormat)?s:d(s,n),r(d(e,n),s,i)}for(let e of Object.keys(i)){let r=i[e];if("object"==typeof r&&null!==r)for(let e of Object.keys(r))r[e]=y(r[e],n);else i[e]=y(r,n)}return!1===n.sort?i:(!0===n.sort?Object.keys(i).sort():Object.keys(i).sort(n.sort)).reduce((e,n)=>{let r=i[n];return r&&"object"==typeof r&&!Array.isArray(r)?e[n]=function e(n){return Array.isArray(n)?n.sort():"object"==typeof n?e(Object.keys(n)).sort((e,n)=>Number(e)-Number(n)).map(e=>n[e]):n}(r):e[n]=r,e},Object.create(null))}n.extract=h,n.parse=m,n.stringify=(e,n)=>{if(!e)return"";u((n=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},n)).arrayFormatSeparator);let r=r=>n.skipNull&&f(e[r])||n.skipEmptyString&&""===e[r],i=function(e){switch(e.arrayFormat){case"index":return n=>(r,i)=>{let a=r.length;return void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:null===i?[...r,[c(n,e),"[",a,"]"].join("")]:[...r,[c(n,e),"[",c(a,e),"]=",c(i,e)].join("")]};case"bracket":return n=>(r,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:null===i?[...r,[c(n,e),"[]"].join("")]:[...r,[c(n,e),"[]=",c(i,e)].join("")];case"colon-list-separator":return n=>(r,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:null===i?[...r,[c(n,e),":list="].join("")]:[...r,[c(n,e),":list=",c(i,e)].join("")];case"comma":case"separator":case"bracket-separator":{let n="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(i,a)=>void 0===a||e.skipNull&&null===a||e.skipEmptyString&&""===a?i:(a=null===a?"":a,0===i.length)?[[c(r,e),n,c(a,e)].join("")]:[[i,c(a,e)].join(e.arrayFormatSeparator)]}default:return n=>(r,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:null===i?[...r,c(n,e)]:[...r,[c(n,e),"=",c(i,e)].join("")]}}(n),a={};for(let n of Object.keys(e))r(n)||(a[n]=e[n]);let o=Object.keys(a);return!1!==n.sort&&o.sort(n.sort),o.map(r=>{let a=e[r];return void 0===a?"":null===a?c(r,n):Array.isArray(a)?0===a.length&&"bracket-separator"===n.arrayFormat?c(r,n)+"[]":a.reduce(i(r),[]).join("&"):c(r,n)+"="+c(a,n)}).filter(e=>e.length>0).join("&")},n.parseUrl=(e,n)=>{n=Object.assign({decode:!0},n);let[r,i]=o(e,"#");return Object.assign({url:r.split("?")[0]||"",query:m(h(e),n)},n&&n.parseFragmentIdentifier&&i?{fragmentIdentifier:d(i,n)}:{})},n.stringifyUrl=(e,r)=>{r=Object.assign({encode:!0,strict:!0,[l]:!0},r);let i=p(e.url).split("?")[0]||"",a=n.extract(e.url),o=Object.assign(n.parse(a,{sort:!1}),e.query),s=n.stringify(o,r);s&&(s=`?${s}`);let f=function(e){let n="",r=e.indexOf("#");return -1!==r&&(n=e.slice(r)),n}(e.url);return e.fragmentIdentifier&&(f=`#${r[l]?c(e.fragmentIdentifier,r):e.fragmentIdentifier}`),`${i}${s}${f}`},n.pick=(e,r,i)=>{i=Object.assign({parseFragmentIdentifier:!0,[l]:!1},i);let{url:a,query:o,fragmentIdentifier:f}=n.parseUrl(e,i);return n.stringifyUrl({url:a,query:s(o,r),fragmentIdentifier:f},i)}
394,n.exclude=(e,r,i)=>{let a=Array.isArray(r)?e=>!r.includes(e):(e,n)=>!r(e,n);return n.pick(e,a,i)}},85346:function(e){"use strict";function n(e){try{return JSON.stringify(e)}catch(e){return'"[Circular]"'}}e.exports=function(e,r,i){var a=i&&i.stringify||n;if("object"==typeof e&&null!==e){var o=r.length+1;if(1===o)return e;var s=Array(o);s[0]=a(e);for(var f=1;f<o;f++)s[f]=a(r[f]);return s.join(" ")}if("string"!=typeof e)return e;var l=r.length;if(0===l)return e;for(var u="",c=0,d=-1,p=e&&e.length||0,h=0;h<p;){if(37===e.charCodeAt(h)&&h+1<p){switch(d=d>-1?d:0,e.charCodeAt(h+1)){case 100:case 102:if(c>=l||null==r[c])break;d<h&&(u+=e.slice(d,h)),u+=Number(r[c]),d=h+2,h++;break;case 105:if(c>=l||null==r[c])break;d<h&&(u+=e.slice(d,h)),u+=Math.floor(Number(r[c])),d=h+2,h++;break;case 79:case 111:case 106:if(c>=l||void 0===r[c])break;d<h&&(u+=e.slice(d,h));var y=typeof r[c];if("string"===y){u+="'"+r[c]+"'",d=h+2,h++;break}if("function"===y){u+=r[c].name||"<anonymous>",d=h+2,h++;break}u+=a(r[c]),d=h+2,h++;break;case 115:if(c>=l)break;d<h&&(u+=e.slice(d,h)),u+=String(r[c]),d=h+2,h++;break;case 37:d<h&&(u+=e.slice(d,h)),u+="%",d=h+2,h++,c--}++c}++h}return -1===d?e:(d<p&&(u+=e.slice(d)),u)}},74806:function(e,n,r){"use strict";r.d(n,{_y:function(){return s},zt:function(){return o}});var i=r(67294);r(8679);var a="undefined"==typeof window||window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?i.createContext(null):window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=i.createContext(null));a.Consumer;var o=a.Provider,s=a},86896:function(e,n,r){"use strict";r.d(n,{Z:function(){return s}});var i=r(67294),a=r(74806),o=r(27898);function s(){var e=i.useContext(a._y);return(0,o.lq)(e),e}},27898:function(e,n,r){"use strict";r.d(n,{Z0:function(){return f},dt:function(){return l},lq:function(){return s},wU:function(){return u}});var i=r(50841),a=r(67294),o=r(82644);function s(e){!function(e,n,r){if(void 0===r&&(r=Error),!e)throw new r(n)}(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var f=(0,i.pi)((0,i.pi)({},o.Z0),{textComponent:a.Fragment});function l(e){return function(n){return e(a.Children.toArray(n))}}function u(e,n){if(e===n)return!0;if(!e||!n)return!1;var r=Object.keys(e),i=Object.keys(n),a=r.length;if(i.length!==a)return!1;for(var o=0;o<a;o++){var s=r[o];if(e[s]!==n[s]||!Object.prototype.hasOwnProperty.call(n,s))return!1}return!0}},69921:function(e,n){"use strict";/** 395 * @license React 396 * react-is.production.min.js 397 * 398 * Copyright (c) Facebook, Inc. and its affiliates. 399 * 400 * This source code is licensed under the MIT license found in the 401 * LICENSE file in the root directory of this source tree. 402 */var r,i=Symbol.for("react.element"),a=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function b(e){if("object"==typeof e&&null!==e){var n=e.$$typeof;switch(n){case i:switch(e=e.type){case o:case f:case s:case p:case h:return e;default:switch(e=e&&e.$$typeof){case c:case u:case d:case m:case y:case l:return e;default:return n}}case a:return n}}}r=Symbol.for("react.module.reference"),n.ContextConsumer=u,n.ContextProvider=l,n.Element=i,n.ForwardRef=d,n.Fragment=o,n.Lazy=m,n.Memo=y,n.Portal=a,n.Profiler=f,n.StrictMode=s,n.Suspense=p,n.SuspenseList=h,n.isAsyncMode=function(){return!1},n.isConcurrentMode=function(){return!1},n.isContextConsumer=function(e){return b(e)===u},n.isContextProvider=function(e){return b(e)===l},n.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},n.isForwardRef=function(e){return b(e)===d},n.isFragment=function(e){return b(e)===o},n.isLazy=function(e){return b(e)===m},n.isMemo=function(e){return b(e)===y},n.isPortal=function(e){return b(e)===a},n.isProfiler=function(e){return b(e)===f},n.isStrictMode=function(e){return b(e)===s},n.isSuspense=function(e){return b(e)===p},n.isSuspenseList=function(e){return b(e)===h},n.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===f||e===s||e===p||e===h||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===y||e.$$typeof===l||e.$$typeof===u||e.$$typeof===d||e.$$typeof===r||void 0!==e.getModuleId)},n.typeOf=b},59864:function(e,n,r){"use strict";e.exports=r(69921)},9473:function(e,n,r){"use strict";r.d(n,{zt:function(){return w},I0:function(){return C},v9:function(){return g}});
402var i=r(61688),a=r(52798),o=r(73935);let s=function(e){e()},f=()=>s;var l=r(67294);let u=Symbol.for("react-redux-context"),c="undefined"!=typeof globalThis?globalThis:{},d=function(){var e;if(!l.createContext)return{};let n=null!=(e=c[u])?e:c[u]=new Map,r=n.get(l.createContext);return r||(r=l.createContext(null),n.set(l.createContext,r)),r}();function p(e=d){return function(){return(0,l.useContext)(e)}}let h=p(),y=()=>{throw Error("uSES not initialized!")},m=(e,n)=>e===n,g=function(e=d){let n=e===d?h:p(e);return function(e,r={}){let{equalityFn:i=m,stabilityCheck:a,noopCheck:o}="function"==typeof r?{equalityFn:r}:r,{store:s,subscription:f,getServerState:u,stabilityCheck:c,noopCheck:d}=n();(0,l.useRef)(!0);let p=(0,l.useCallback)({[e.name]:n=>e(n)}[e.name],[e,c,a]),h=y(f.addNestedSub,s.getState,u||s.getState,p,i);return(0,l.useDebugValue)(h),h}}();r(8679),r(59864);let b={notify(){},get:()=>[]},v="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?l.useLayoutEffect:l.useEffect;var w=function({store:e,context:n,children:r,serverState:i,stabilityCheck:a="once",noopCheck:o="once"}){let s=l.useMemo(()=>{let n=function(e,n){let r;let i=b,a=0,o=!1;function s(){c.onStateChange&&c.onStateChange()}function l(){a++,r||(r=e.subscribe(s),i=function(){let e=f(),n=null,r=null;return{clear(){n=null,r=null},notify(){e(()=>{let e=n;for(;e;)e.callback(),e=e.next})},get(){let e=[],r=n;for(;r;)e.push(r),r=r.next;return e},subscribe(e){let i=!0,a=r={callback:e,next:null,prev:r};return a.prev?a.prev.next=a:n=a,function(){i&&null!==n&&(i=!1,a.next?a.next.prev=a.prev:r=a.prev,a.prev?a.prev.next=a.next:n=a.next)}}}}())}function u(){a--,r&&0===a&&(r(),r=void 0,i.clear(),i=b)}let c={addNestedSub:function(e){l();let n=i.subscribe(e),r=!1;return()=>{r||(r=!0,n(),u())}},notifyNestedSubs:function(){i.notify()},handleChangeWrapper:s,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,l())},tryUnsubscribe:function(){o&&(o=!1,u())},getListeners:()=>i};return c}(e);return{store:e,subscription:n,getServerState:i?()=>i:void 0,stabilityCheck:a,noopCheck:o}},[e,i,a,o]),u=l.useMemo(()=>e.getState(),[e]);return v(()=>{let{subscription:n}=s;return n.onStateChange=n.notifyNestedSubs,n.trySubscribe(),u!==e.getState()&&n.notifyNestedSubs(),()=>{n.tryUnsubscribe(),n.onStateChange=void 0}},[s,u]),l.createElement((n||d).Provider,{value:s},r)};function x(e=d){let n=e===d?h:p(e);return function(){let{store:e}=n();return e}}let T=x(),C=function(e=d){let n=e===d?T:x(e);return function(){return n().dispatch}}();y=a.useSyncExternalStoreWithSelector,i.useSyncExternalStore,s=o.unstable_batchedUpdates},71642:function(e,n,r){"use strict";r.d(n,{Av:function(){return s},pF:function(){return i},xv:function(){return o},zi:function(){return a}});var i="right-scroll-bar-position",a="width-before-scroll-bar",o="with-scroll-bars-hidden",s="--removed-body-scroll-bar-size"},37087:function(e,n,r){"use strict";r.d(n,{jp:function(){return m}});var i=r(67294),a=r(6525),o=r(71642),s={left:0,top:0,right:0,gap:0},f=function(e){return parseInt(e||"",10)||0},l=function(e){var n=window.getComputedStyle(document.body),r=n["padding"===e?"paddingLeft":"marginLeft"],i=n["padding"===e?"paddingTop":"marginTop"],a=n["padding"===e?"paddingRight":"marginRight"];return[f(r),f(i),f(a)]},u=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return s;var n=l(e),r=document.documentElement.clientWidth,i=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,i-r+n[2]-n[0])}},c=(0,a.Ws)(),d="data-scroll-locked",p=function(e,n,r,i){var a=e.left,s=e.top,f=e.right,l=e.gap;return void 0===r&&(r="margin"),"\n .".concat(o.xv," {\n overflow: hidden ").concat(i,";\n padding-right: ").concat(l,"px ").concat(i,";\n }\n body[").concat(d,"] {\n overflow: hidden ").concat(i,";\n overscroll-behavior: contain;\n ").concat([n&&"position: relative ".concat(i,";"),"margin"===r&&"\n padding-left: ".concat(a,"px;\n padding-top: ").concat(s,"px;\n padding-right: ").concat(f,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(i,";\n "),"padding"===r&&"padding-right: ".concat(l,"px ").concat(i,";
402")].filter(Boolean).join(""),"\n }\n \n .").concat(o.pF," {\n right: ").concat(l,"px ").concat(i,";\n }\n \n .").concat(o.zi," {\n margin-right: ").concat(l,"px ").concat(i,";\n }\n \n .").concat(o.pF," .").concat(o.pF," {\n right: 0 ").concat(i,";\n }\n \n .").concat(o.zi," .").concat(o.zi," {\n margin-right: 0 ").concat(i,";\n }\n \n body[").concat(d,"] {\n ").concat(o.Av,": ").concat(l,"px;\n }\n")},h=function(){var e=parseInt(document.body.getAttribute(d)||"0",10);return isFinite(e)?e:0},y=function(){i.useEffect(function(){return document.body.setAttribute(d,(h()+1).toString()),function(){var e=h()-1;e<=0?document.body.removeAttribute(d):document.body.setAttribute(d,e.toString())}},[])},m=function(e){var n=e.noRelative,r=e.noImportant,a=e.gapMode,o=void 0===a?"margin":a;y();var s=i.useMemo(function(){return u(o)},[o]);return i.createElement(c,{styles:p(s,!n,o,r?"":"!important")})}},6525:function(e,n,r){"use strict";r.d(n,{Ws:function(){return f}});var i,a=r(67294),o=function(){var e=0,n=null;return{add:function(a){if(0==e&&(n=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var n=i||r.nc;return n&&e.setAttribute("nonce",n),e}())){var o,s;(o=n).styleSheet?o.styleSheet.cssText=a:o.appendChild(document.createTextNode(a)),s=n,(document.head||document.getElementsByTagName("head")[0]).appendChild(s)}e++},remove:function(){--e||!n||(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},s=function(){var e=o();return function(n,r){a.useEffect(function(){return e.add(n),function(){e.remove()}},[n&&r])}},f=function(){var e=s();return function(n){return e(n.styles,n.dynamic),null}}},8662:function(e,n,r){"use strict";r.d(n,{ZP:function(){return g}});var i=r(63366),a=r(94578),o=r(67294),s=r(73935),f={disabled:!1},l=r(220),u="unmounted",c="exited",d="entering",p="entered",h="exiting",y=function(e){function n(n,r){i=e.call(this,n,r)||this;var i,a,o=r&&!r.isMounting?n.enter:n.appear;return i.appearStatus=null,n.in?o?(a=c,i.appearStatus=d):a=p:a=n.unmountOnExit||n.mountOnEnter?u:c,i.state={status:a},i.nextCallback=null,i}(0,a.Z)(n,e),n.getDerivedStateFromProps=function(e,n){return e.in&&n.status===u?{status:c}:null};var r=n.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var n=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==d&&r!==p&&(n=d):(r===d||r===p)&&(n=h)}this.updateStatus(!1,n)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,n,r,i=this.props.timeout;return e=n=r=i,null!=i&&"number"!=typeof i&&(e=i.exit,n=i.enter,r=void 0!==i.appear?i.appear:n),{exit:e,enter:n,appear:r}},r.updateStatus=function(e,n){if(void 0===e&&(e=!1),null!==n){if(this.cancelNextCallback(),n===d){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:s.findDOMNode(this);r&&r.scrollTop}this.performEnter(e)}else this.performExit()}else this.props.unmountOnExit&&this.state.status===c&&this.setState({status:u})},r.performEnter=function(e){var n=this,r=this.props.enter,i=this.context?this.context.isMounting:e,a=this.props.nodeRef?[i]:[s.findDOMNode(this),i],o=a[0],l=a[1],u=this.getTimeouts(),c=i?u.appear:u.enter;if(!e&&!r||f.disabled){this.safeSetState({status:p},function(){n.props.onEntered(o)});return}this.props.onEnter(o,l),this.safeSetState({status:d},function(){n.props.onEntering(o,l),n.onTransitionEnd(c,function(){n.safeSetState({status:p},function(){n.props.onEntered(o,l)})})})},r.performExit=function(){var e=this,n=this.props.exit,r=this.getTimeouts(),i=this.props.nodeRef?void 0:s.findDOMNode(this);if(!n||f.disabled){this.safeSetState({status:c},function(){e.props.onExited(i)});return}this.props.onExit(i),this.safeSetState({status:h},function(){e.props.onExiting(i),e.onTransitionEnd(r.exit,function(){e.safeSetState({status:c},function(){e.props.onExited(i)})})})},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)}
402,r.safeSetState=function(e,n){n=this.setNextCallback(n),this.setState(e,n)},r.setNextCallback=function(e){var n=this,r=!0;return this.nextCallback=function(i){r&&(r=!1,n.nextCallback=null,e(i))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,n){this.setNextCallback(n);var r=this.props.nodeRef?this.props.nodeRef.current:s.findDOMNode(this),i=null==e&&!this.props.addEndListener;if(!r||i){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],o=a[0],f=a[1];this.props.addEndListener(o,f)}null!=e&&setTimeout(this.nextCallback,e)},r.render=function(){var e=this.state.status;if(e===u)return null;var n=this.props,r=n.children,a=(n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef,(0,i.Z)(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return o.createElement(l.Z.Provider,{value:null},"function"==typeof r?r(e,a):o.cloneElement(o.Children.only(r),a))},n}(o.Component);function m(){}y.contextType=l.Z,y.propTypes={},y.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:m,onEntering:m,onEntered:m,onExit:m,onExiting:m,onExited:m},y.UNMOUNTED=u,y.EXITED=c,y.ENTERING=d,y.ENTERED=p,y.EXITING=h;var g=y},220:function(e,n,r){"use strict";var i=r(67294);n.Z=i.createContext(null)},45217:function(e,n,r){"use strict";r.r(n),r.d(n,{__DO_NOT_USE__ActionTypes:function(){return u},applyMiddleware:function(){return g},bindActionCreators:function(){return y},combineReducers:function(){return p},compose:function(){return m},createStore:function(){return c},legacy_createStore:function(){return d}});var i=r(4942);function a(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function o(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?a(Object(r),!0).forEach(function(n){(0,i.Z)(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function s(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var f="function"==typeof Symbol&&Symbol.observable||"@@observable",l=function(){return Math.random().toString(36).substring(7).split("").join(".")},u={INIT:"@@redux/INIT"+l(),REPLACE:"@@redux/REPLACE"+l(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+l()}};function c(e,n,r){if("function"==typeof n&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw Error(s(0));if("function"==typeof n&&void 0===r&&(r=n,n=void 0),void 0!==r){if("function"!=typeof r)throw Error(s(1));return r(c)(e,n)}if("function"!=typeof e)throw Error(s(2));var i,a=e,o=n,l=[],d=l,p=!1;function h(){d===l&&(d=l.slice())}function y(){if(p)throw Error(s(3));return o}function m(e){if("function"!=typeof e)throw Error(s(4));if(p)throw Error(s(5));var n=!0;return h(),d.push(e),function(){if(n){if(p)throw Error(s(6));n=!1,h();var r=d.indexOf(e);d.splice(r,1),l=null}}}function g(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var n=e;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n}(e))throw Error(s(7));if(void 0===e.type)throw Error(s(8));if(p)throw Error(s(9));try{p=!0,o=a(o,e)}finally{p=!1}for(var n=l=d,r=0;r<n.length;r++)(0,n[r])();return e}return g({type:u.INIT}),(i={dispatch:g,subscribe:m,getState:y,replaceReducer:function(e){if("function"!=typeof e)throw Error(s(10));a=e,g({type:u.REPLACE})}})[f]=function(){var e;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw Error(s(11));function n(){e.next&&e.next(y())}return n(),{unsubscribe:m(n)}}})[f]=function(){return this},e},i}var d=c;function p(e){for(var n,r=Object.keys(e),i={},a=0;a<r.length;a++){var o=r[a];"function"==typeof e[o]&&(i[o]=e[o])}var f=Object.keys(i);try{!function(e){Object.keys(e).forEach(function(n){var r=e[n];if(void 0===r(void 0,{type:u.INIT}))throw Error(s(12));if(void 0===r(void 0,{type:u.PROBE_UNKNOWN_ACTION()}))throw Error(s(13))})}(i)}catch(e){n=e}return function(e,r){if(void 0===e&&(e={}),n)throw n;for(var a=!1,o={},l=0;l<f.length;l++){var u=f[l],c=i[u],d=e[u],p=c(d,r);if(void 0===p)throw r&&r.type,Error(s(14));o[u]=p,a=a||p!==d}return(a=a||f.length!==Object.keys(e).length)?o:e}}function h(e,n){return function(){return n(e.apply(this,arguments))}}function y(e,n){if("function"==typeof e)return h(e,n);if("object"!=typeof e||null===e)throw Error(s(16));var r={};for(var i in e){var a=e[i];"function"==typeof a&&(r[i]=h(a,n))}return r}function m(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?function(e){return e}:1===n.length?n[0]:n.reduce(function(e,n){return function(){return e(n.apply(void 0,arguments))}})}function g(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return function(e){return function(){var r=e.apply(void 0,arguments),i=function(){throw Error(s(15))},a={getState:r.getState,dispatch:function(){return i.apply(void 0,arguments)}},f=n.map(function(e){return e(a)});return i=m.apply(void 0,f)(r.dispatch),o(o({},r),{},{dispatch:i})}}}},76826:function(e){var n={Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã
:"A",Ấ:"A",Ắ:"A",Ẳ:"A",á
402º´:"A",Ặ:"A",Ã:"AE",Ầ:"A",Ằ:"A",È:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ã:"C",á¸:"C",Ã:"E",Ã:"E",Ã:"E",Ã:"E",Ế:"E",á¸:"E",á»:"E",á¸:"E",á¸:"E",È:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",á»:"E",á»:"E",á»:"E",Ã:"I",Ã:"I",Ã:"I",Ã:"I",Ḯ:"I",È:"I",á»:"I",á»:"I",Ã:"D",Ã:"N",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",á»:"O",á¹:"O",á¹:"O",È:"O",á»:"O",á»:"O",á»:"O",á»:"O",á»:"O",á»:"O",á»:"O",á» :"O",á»:"O",Ợ:"O",Ã:"U",Ã:"U",Ã:"U",Ã:"U",Ủ:"U",Ụ:"U",Ử:"U",á»®:"U",á»°:"U",Ã:"Y",à :"a",á:"a",â:"a",ã:"a",ä:"a",Ã¥:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",È:"a",ả:"a",ạ:"a",ẩ:"a",ẫ:"a",áº:"a",ç:"c",á¸:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",á¸:"e",á»:"e",á¸:"e",á¸:"e",È:"e",ẻ:"e",ẽ:"e",ẹ:"e",á»:"e",á»
:"e",á»:"e",ì:"i",Ã:"i",î:"i",ï:"i",ḯ:"i",È:"i",á»:"i",á»:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",á»:"o",á¹:"o",á¹:"o",È:"o",á»:"o",á»:"o",á»:"o",á»:"o",á»:"o",á»:"o",á»:"o",ỡ:"o",á»:"o",ợ:"o",ù:"u",ú:"u",û:"u",ü:"u",á»§:"u",ụ:"u",á»:"u",ữ:"u",á»±:"u",ý:"y",ÿ:"y",Ä:"A",Ä:"a",Ä:"A",Ä:"a",Ä:"A",Ä
:"a",Ä:"C",Ä:"c",Ä:"C",Ä:"c",Ä:"C",Ä:"c",Ä:"C",Ä:"c",CÌ:"C",cÌ:"c",Ä:"D",Ä:"d",Ä:"D",Ä:"d",Ä:"E",Ä:"e",Ä:"E",Ä:"e",Ä:"E",Ä:"e",Ä:"E",Ä:"e",Ä:"E",Ä:"e",Ä:"G",Ç´:"G",Ä:"g",ǵ:"g",Ä:"G",Ä:"g",Ä :"G",Ä¡:"g",Ä¢:"G",Ä£:"g",Ĥ:"H",Ä¥:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",Ä©:"i",Ī:"I",Ä«:"i",Ĭ:"I",Ä:"i",Ä®:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ä´:"J",ĵ:"j",Ķ:"K",Ä·:"k",Ḱ:"K",ḱ:"k",KÌ:"K",kÌ:"k",Ĺ:"L",ĺ:"l",Ä»:"L",ļ:"l",Ľ:"L",ľ:"l",Ä¿:"L",Å:"l",Å:"l",Å:"l",Ḿ:"M",ḿ:"m",MÌ:"M",mÌ:"m",Å:"N",Å:"n",Å
:"N",Å:"n",Å:"N",Å:"n",Å:"n",NÌ:"N",nÌ:"n",Å:"O",Å:"o",Å:"O",Å:"o",Å:"O",Å:"o",Å:"OE",Å:"oe",PÌ:"P",pÌ:"p",Å:"R",Å:"r",Å:"R",Å:"r",Å:"R",Å:"r",RÌ:"R",rÌ:"r",È:"R",È:"r",Å:"S",Å:"s",Å:"S",Å:"s",Å:"S",È:"S",È:"s",Å:"s",Å :"S",Å¡:"s",Å¢:"T",Å£:"t",È:"t",È:"T",Ť:"T",Å¥:"t",Ŧ:"T",ŧ:"t",TÌ:"T",tÌ:"t",Ũ:"U",Å©:"u",Ū:"U",Å«:"u",Ŭ:"U",Å:"u",Å®:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",È:"U",È:"u",VÌ:"V",vÌ:"v",Å´:"W",ŵ:"w",áº:"W",áº:"w",XÌ:"X",xÌ:"x",Ŷ:"Y",Å·:"y",Ÿ:"Y",YÌ:"Y",yÌ:"y",Ź:"Z",ź:"z",Å»:"Z",ż:"z",Ž:"Z",ž:"z",Å¿:"s",Æ:"f",Æ :"O",Æ¡:"o",Ư:"U",ư:"u",Ç:"A",Ç:"a",Ç:"I",Ç:"i",Ç:"O",Ç:"o",Ç:"U",Ç:"u",Ç:"U",Ç:"u",Ç:"U",Ç:"u",Ç:"U",Ç:"u",Ç:"U",Ç:"u",Ứ:"U",ứ:"u",Ṹ:"U",á¹¹:"u",Ǻ:"A",Ç»:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",Ç¿:"o",Ã:"TH",þ:"th",á¹:"P",á¹:"p",Ṥ:"S",á¹¥:"s",XÌ:"X",xÌ:"x",Ð:"Ð",Ñ:"г",Ð:"Ð",Ñ:"к",AÌ:"A",aÌ:"a",EÌ:"E",eÌ:"e",IÌ:"I",iÌ:"i",Ǹ:"N",ǹ:"n",á»:"O",á»:"o",á¹:"O",á¹:"o",Ừ:"U",ừ:"u",áº:"W",áº:"w",Ỳ:"Y",ỳ:"y",È:"A",È:"a",È:"E",È
:"e",È:"I",È:"i",È:"O",È:"o",È:"R",È:"r",È:"U",È:"u",BÌ:"B",bÌ:"b",ÄÌ£:"C",ÄÌ£:"c",ÃÌ:"E",êÌ:"e",FÌ:"F",fÌ:"f",Ǧ:"G",ǧ:"g",È:"H",È:"h",JÌ:"J",ǰ:"j",Ǩ:"K",Ç©:"k",MÌ:"M",mÌ:"m",PÌ:"P",pÌ:"p",QÌ:"Q",qÌ:"q",ÅÌ©:"R",ÅÌ©:"r",Ṧ:"S",á¹§:"s",VÌ:"V",vÌ:"v",WÌ:"W",wÌ:"w",XÌ:"X",xÌ:"x",YÌ:"Y",yÌ:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",á¸:"D",á¸:"d",Ȩ:"E",È©:"e",ÆÌ§:"E",Ȩ́:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",ÆÌ§:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Ð:"Ð",Ñ:"е",Ð:"Ð"},r=Object.keys(n).join("|"),i=RegExp(r,"g"),a=RegExp(r,"");function o(e){return n[e]}var s=function(e){return e.replace(i,o)};e.exports=s,e.exports.has=function(e){return!!e.match(a)},e.exports.remove=s},17635:function(e){"use strict";!function(n){function r(e){let n=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756
402734187,3204031479,3329325298]),r=1779033703,i=3144134277,a=1013904242,o=2773480762,s=1359893119,f=2600822924,l=528734635,u=1541459225,c=new Uint32Array(64);function d(e){let d=0,p=e.length;for(;p>=64;){let h=r,y=i,m=a,g=o,b=s,v=f,w=l,x=u,T,C,M,A,E;for(C=0;C<16;C++)M=d+4*C,c[C]=(255&e[M])<<24|(255&e[M+1])<<16|(255&e[M+2])<<8|255&e[M+3];for(C=16;C<64;C++)A=((T=c[C-2])>>>17|T<<15)^(T>>>19|T<<13)^T>>>10,E=((T=c[C-15])>>>7|T<<25)^(T>>>18|T<<14)^T>>>3,c[C]=(A+c[C-7]|0)+(E+c[C-16]|0)|0;for(C=0;C<64;C++)A=(((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+(b&v^~b&w)|0)+(x+(n[C]+c[C]|0)|0)|0,E=((h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+(h&y^h&m^y&m)|0,x=w,w=v,v=b,b=g+A|0,g=m,m=y,y=h,h=A+E|0;r=r+h|0,i=i+y|0,a=a+m|0,o=o+g|0,s=s+b|0,f=f+v|0,l=l+w|0,u=u+x|0,d+=64,p-=64}}d(e);let p,h=e.length%64,y=e.length/536870912|0,m=e.length<<3,g=h<56?56:120,b=e.slice(e.length-h,e.length);for(b.push(128),p=h+1;p<g;p++)b.push(0);return b.push(y>>>24&255),b.push(y>>>16&255),b.push(y>>>8&255),b.push(y>>>0&255),b.push(m>>>24&255),b.push(m>>>16&255),b.push(m>>>8&255),b.push(m>>>0&255),d(b),[r>>>24&255,r>>>16&255,r>>>8&255,r>>>0&255,i>>>24&255,i>>>16&255,i>>>8&255,i>>>0&255,a>>>24&255,a>>>16&255,a>>>8&255,a>>>0&255,o>>>24&255,o>>>16&255,o>>>8&255,o>>>0&255,s>>>24&255,s>>>16&255,s>>>8&255,s>>>0&255,f>>>24&255,f>>>16&255,f>>>8&255,f>>>0&255,l>>>24&255,l>>>16&255,l>>>8&255,l>>>0&255,u>>>24&255,u>>>16&255,u>>>8&255,u>>>0&255]}function i(e,n,i){let a;e=e.length<=64?e:r(e);let o=64+n.length+4,s=Array(o),f=Array(64),l=[];for(a=0;a<64;a++)s[a]=54;for(a=0;a<e.length;a++)s[a]^=e[a];for(a=0;a<n.length;a++)s[64+a]=n[a];for(a=o-4;a<o;a++)s[a]=0;for(a=0;a<64;a++)f[a]=92;for(a=0;a<e.length;a++)f[a]^=e[a];function u(){for(let e=o-1;e>=o-4;e--){if(s[e]++,s[e]<=255)return;s[e]=0}}for(;i>=32;)u(),l=l.concat(r(f.concat(r(s)))),i-=32;return i>0&&(u(),l=l.concat(r(f.concat(r(s))).slice(0,i))),l}function a(e,n,r,i,a){let l;for(f(e,(2*r-1)*16,a,0,16),l=0;l<2*r;l++)s(e,16*l,a,16),function(e,n){f(e,0,n,0,16);for(let e=8;e>0;e-=2)n[4]^=o(n[0]+n[12],7),n[8]^=o(n[4]+n[0],9),n[12]^=o(n[8]+n[4],13),n[0]^=o(n[12]+n[8],18),n[9]^=o(n[5]+n[1],7),n[13]^=o(n[9]+n[5],9),n[1]^=o(n[13]+n[9],13),n[5]^=o(n[1]+n[13],18),n[14]^=o(n[10]+n[6],7),n[2]^=o(n[14]+n[10],9),n[6]^=o(n[2]+n[14],13),n[10]^=o(n[6]+n[2],18),n[3]^=o(n[15]+n[11],7),n[7]^=o(n[3]+n[15],9),n[11]^=o(n[7]+n[3],13),n[15]^=o(n[11]+n[7],18),n[1]^=o(n[0]+n[3],7),n[2]^=o(n[1]+n[0],9),n[3]^=o(n[2]+n[1],13),n[0]^=o(n[3]+n[2],18),n[6]^=o(n[5]+n[4],7),n[7]^=o(n[6]+n[5],9),n[4]^=o(n[7]+n[6],13),n[5]^=o(n[4]+n[7],18),n[11]^=o(n[10]+n[9],7),n[8]^=o(n[11]+n[10],9),n[9]^=o(n[8]+n[11],13),n[10]^=o(n[9]+n[8],18),n[12]^=o(n[15]+n[14],7),n[13]^=o(n[12]+n[15],9),n[14]^=o(n[13]+n[12],13),n[15]^=o(n[14]+n[13],18);for(let r=0;r<16;++r)e[r]+=n[r]}(a,i),f(a,0,e,n+16*l,16);for(l=0;l<r;l++)f(e,n+32*l,e,16*l,16);for(l=0;l<r;l++)f(e,n+(2*l+1)*16,e,(l+r)*16,16)}function o(e,n){return e<<n|e>>>32-n}function s(e,n,r,i){for(let a=0;a<i;a++)r[a]^=e[n+a]}function f(e,n,r,i,a){for(;a--;)r[i++]=e[n++]}function l(e){if(!e||"number"!=typeof e.length)return!1;for(let n=0;n<e.length;n++){let r=e[n];if("number"!=typeof r||r%1||r<0||r>=256)return!1}return!0}function u(e,n){if("number"!=typeof e||e%1)throw Error("invalid "+n);return e}function c(e,n,r,o,c,d,p){let h;if(r=u(r,"N"),o=u(o,"r"),c=u(c,"p"),d=u(d,"dkLen"),0===r||(r&r-1)!=0)throw Error("N must be power of 2");if(r>2147483647/128/o)throw Error("N too large");if(o>2147483647/128/c)throw Error("r too large");if(!l(e))throw Error("password must be an array or buffer");if(e=Array.prototype.slice.call(e),!l(n))throw Error("salt must be an array or buffer");n=Array.prototype.slice.call(n);let y=i(e,n,128*c*o),m=new Uint32Array(32*c*o);for(let e=0;e<m.length;e++){let n=4*e;m[e]=(255&y[n+3])<<24|(255&y[n+2])<<16|(255&y[n+1])<<8|(255&y[n+0])<<0}let g=new Uint32Array(64*o),b=new Uint32Array(32*o*r),v=32*o,w=new Uint32Array(16),x=new Uint32Array(16),T=c*r*2,C=0,M=null,A=!1,E=0,I=0,S,k=p?parseInt(1e3/o):4294967295,N="undefined"!=typeof setImmediate?setImmediate:setTimeout,j=function(){let n;if(A)return p(Error("cancelled"),C/T);switch(E){case 0:f(m,h=32*I*o,g,0,v),E=1,S=0;case 1:(n=r-S)>k&&(n=k);for(let e=0;e<n;e++)f(g,0,b,(S+e)*v,v),a(g,v,o,w,x);if(S+=n,C+=n,p){let e=parseInt(1e3*C/T);
402if(e!==M){if(A=p(null,C/T))break;M=e}}if(S<r)break;S=0,E=2;case 2:(n=r-S)>k&&(n=k);for(let e=0;e<n;e++)s(b,(g[(2*o-1)*16]&r-1)*v,g,v),a(g,v,o,w,x);if(S+=n,C+=n,p){let e=parseInt(1e3*C/T);if(e!==M){if(A=p(null,C/T))break;M=e}}if(S<r)break;if(f(g,0,m,h,v),++I<c){E=0;break}y=[];for(let e=0;e<m.length;e++)y.push(m[e]>>0&255),y.push(m[e]>>8&255),y.push(m[e]>>16&255),y.push(m[e]>>24&255);let l=i(e,y,d);return p&&p(null,1,l),l}p&&N(j)};if(!p)for(;;){let e=j();if(void 0!=e)return e}j()}e.exports={scrypt:function(e,n,r,i,a,o,s){return new Promise(function(f,l){let u=0;s&&s(0),c(e,n,r,i,a,o,function(e,n,r){if(e)l(e);else if(r)s&&1!==u&&s(1),f(new Uint8Array(r));else if(s&&n!==u)return u=n,s(n)})})},syncScrypt:function(e,n,r,i,a,o){return new Uint8Array(c(e,n,r,i,a,o))}}}(0)},67771:function(e,n,r){"use strict";var i=r(40210),a=r(12296),o=r(31044)(),s=r(27296),f=r(14453),l=i("%Math.floor%");e.exports=function(e,n){if("function"!=typeof e)throw new f("`fn` is not a function");if("number"!=typeof n||n<0||n>4294967295||l(n)!==n)throw new f("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],i=!0,u=!0;if("length"in e&&s){var c=s(e,"length");c&&!c.configurable&&(i=!1),c&&!c.writable&&(u=!1)}return(i||u||!r)&&(o?a(e,"length",n,!0,!0):a(e,"length",n)),e}},37478:function(e,n,r){"use strict";var i=r(40210),a=r(21924),o=r(70631),s=r(14453),f=i("%WeakMap%",!0),l=i("%Map%",!0),u=a("WeakMap.prototype.get",!0),c=a("WeakMap.prototype.set",!0),d=a("WeakMap.prototype.has",!0),p=a("Map.prototype.get",!0),h=a("Map.prototype.set",!0),y=a("Map.prototype.has",!0),m=function(e,n){for(var r,i=e;null!==(r=i.next);i=r)if(r.key===n)return i.next=r.next,r.next=e.next,e.next=r,r},g=function(e,n){var r=m(e,n);return r&&r.value},b=function(e,n,r){var i=m(e,n);i?i.value=r:e.next={key:n,next:e.next,value:r}};e.exports=function(){var e,n,r,i={assert:function(e){if(!i.has(e))throw new s("Side channel does not contain "+o(e))},get:function(i){if(f&&i&&("object"==typeof i||"function"==typeof i)){if(e)return u(e,i)}else if(l){if(n)return p(n,i)}else if(r)return g(r,i)},has:function(i){if(f&&i&&("object"==typeof i||"function"==typeof i)){if(e)return d(e,i)}else if(l){if(n)return y(n,i)}else if(r)return!!m(r,i);return!1},set:function(i,a){f&&i&&("object"==typeof i||"function"==typeof i)?(e||(e=new f),c(e,i,a)):l?(n||(n=new l),h(n,i,a)):(r||(r={key:{},next:null}),b(r,i,a))}};return i}},80500:function(e){"use strict";e.exports=(e,n)=>{if(!("string"==typeof e&&"string"==typeof n))throw TypeError("Expected the arguments to be of type `string`");if(""===n)return[e];let r=e.indexOf(n);return -1===r?[e]:[e.slice(0,r),e.slice(r+n.length)]}},70610:function(e){"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)},40821:function(e,n,r){"use strict";r.r(n),r.d(n,{SWRConfig:function(){return Q},default:function(){return $},mutate:function(){return F},unstable_serialize:function(){return K},useSWRConfig:function(){return q}});var i,a=r(67294);/*! ***************************************************************************** 403Copyright (c) Microsoft Corporation. 404 405Permission to use, copy, modify, and/or distribute this software for any 406purpose with or without fee is hereby granted. 407 408THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 409REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 410AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 411INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 412LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 413OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 414PERFORMANCE OF THIS SOFTWARE. 415***************************************************************************** */function o(e,n,r,i){return new(r||(r=Promise))(function(a,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function f(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var n;e.done?a(e.value):((n=e.value)instanceof r?n:new r(function(e){e(n)})).then(s,f)}l((i=i.apply(e,n||[])).next())})}function s(e,n){var r,i,a,o,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:f(0),throw:f(1),return:f(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;
415function f(o){return function(f){return function(o){if(r)throw TypeError("Generator is already executing.");for(;s;)try{if(r=1,i&&(a=2&o[0]?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(a=(a=s.trys).length>0&&a[a.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){s.label=o[1];break}if(6===o[0]&&s.label<a[1]){s.label=a[1],a=o;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(o);break}a[2]&&s.ops.pop(),s.trys.pop();continue}o=n.call(e,s)}catch(e){o=[6,e],i=0}finally{r=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,f])}}}var f=function(){},l=f(),u=Object,c=function(e){return e===l},d=function(e){return"function"==typeof e},p=function(e,n){return u.assign({},e,n)},h="undefined",y=function(){return typeof window!=h},m=new WeakMap,g=0,b=function(e){var n,r,i=typeof e,a=e&&e.constructor,o=a==Date;if(u(e)!==e||o||a==RegExp)n=o?e.toJSON():"symbol"==i?e.toString():"string"==i?JSON.stringify(e):""+e;else{if(n=m.get(e))return n;if(n=++g+"~",m.set(e,n),a==Array){for(r=0,n="@";r<e.length;r++)n+=b(e[r])+",";m.set(e,n)}if(a==u){n="#";for(var s=u.keys(e).sort();!c(r=s.pop());)c(e[r])||(n+=r+":"+b(e[r])+",");m.set(e,n)}}return n},v=!0,w=y(),x=typeof document!=h,T=w&&window.addEventListener?window.addEventListener.bind(window):f,C=x?document.addEventListener.bind(document):f,M=w&&window.removeEventListener?window.removeEventListener.bind(window):f,A=x?document.removeEventListener.bind(document):f,E={initFocus:function(e){return C("visibilitychange",e),T("focus",e),function(){A("visibilitychange",e),M("focus",e)}},initReconnect:function(e){var n=function(){v=!0,e()},r=function(){v=!1};return T("online",n),T("offline",r),function(){M("online",n),M("offline",r)}}},I=!y()||"Deno"in window,S=I?a.useEffect:a.useLayoutEffect,k="undefined"!=typeof navigator&&navigator.connection,N=!I&&k&&(["slow-2g","2g"].includes(k.effectiveType)||k.saveData),j=function(e){if(d(e))try{e=e()}catch(n){e=""}var n=[].concat(e),r=(e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?b(e):"")?"$swr$"+e:"";return[e,n,r]},D=new WeakMap,_=function(e,n,r,i,a,o,s){void 0===s&&(s=!0);var f=D.get(e),l=f[0],u=f[1],c=f[3],d=l[n],p=u[n];if(s&&p)for(var h=0;h<p.length;++h)p[h](r,i,a);return o&&(delete c[n],d&&d[0])?d[0](2).then(function(){return e.get(n)}):e.get(n)},O=0,P=function(){return++O},L=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return o(void 0,void 0,void 0,function(){var n,r,i,a,o,f,u,h,y,m,g,b,v,w,x,T,C,M,A,E;return s(this,function(s){switch(s.label){case 0:if(n=e[0],r=e[1],i=e[2],f=!!c((o="boolean"==typeof(a=e[3])?{revalidate:a}:a||{}).populateCache)||o.populateCache,u=!1!==o.revalidate,h=!1!==o.rollbackOnError,y=o.optimisticData,g=(m=j(r))[0],b=m[2],!g)return[2];if(v=D.get(n)[2],e.length<3)return[2,_(n,g,n.get(g),l,l,u,!0)];if(w=i,T=P(),v[g]=[T,0],C=!c(y),M=n.get(g),C&&(A=d(y)?y(M):y,n.set(g,A),_(n,g,A)),d(w))try{w=w(n.get(g))}catch(e){x=e}if(!(w&&d(w.then)))return[3,2];return[4,w.catch(function(e){x=e})];case 1:if(w=s.sent(),T!==v[g][0]){if(x)throw x;return[2,w]}x&&C&&h&&(f=!0,w=M,n.set(g,M)),s.label=2;case 2:return f&&(x||(d(f)&&(w=f(w,M)),n.set(g,w)),n.set(b,p(n.get(b),{error:x}))),v[g][1]=P(),[4,_(n,g,w,x,l,u,!!f)];case 3:if(E=s.sent(),x)throw x;return[2,f?E:w]}})})},R=function(e,n){for(var r in e)e[r][0]&&e[r][0](n)},z=function(e,n){if(!D.has(e)){var r=p(E,n),i={},a=L.bind(l,e),o=f;if(D.set(e,[i,{},{},{},a]),!I){var s=r.initFocus(setTimeout.bind(l,R.bind(l,i,0))),u=r.initReconnect(setTimeout.bind(l,R.bind(l,i,1)));o=function(){s&&s(),u&&u(),D.delete(e)}}return[e,a,o]}return[e,D.get(e)[4]]},B=z(new Map),U=B[0],F=B[1],Z=p({onLoadingSlow:f,onSuccess:f,onError:f,onErrorRetry:function(e,n,r,i,a){var o=r.errorRetryCount,s=a.retryCount,f=~~((Math.random()+.5)*(1<<(s<8?s:8)))*r.errorRetryInterval;(c(o)||!(s>o))&&setTimeout(i,f,a)},onDiscarded:f,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:N?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:N?5e3:3e3,compare:function(e,n){return b(e)==b(n)},isPaused:function(){return!1},cache:U,mutate:F,fallback:{}},{isOnline:function(){return v},isVisible:function(){var e=x&&document.visibilityState;
415return c(e)||"hidden"!==e}}),W=function(e,n){var r=p(e,n);if(n){var i=e.use,a=e.fallback,o=n.use,s=n.fallback;i&&o&&(r.use=i.concat(o)),a&&s&&(r.fallback=p(a,s))}return r},H=(0,a.createContext)({}),G=function(e,n){var r=(0,a.useState)({})[1],i=(0,a.useRef)(e),o=(0,a.useRef)({data:!1,error:!1,isValidating:!1}),s=(0,a.useCallback)(function(e){var a=!1,s=i.current;for(var f in e)s[f]!==e[f]&&(s[f]=e[f],o.current[f]&&(a=!0));a&&!n.current&&r({})},[]);return S(function(){i.current=e}),[i,o.current,s]},q=function(){return p(Z,(0,a.useContext)(H))},Y=function(e,n,r){var i=n[e]||(n[e]=[]);return i.push(r),function(){var e=i.indexOf(r);e>=0&&(i[e]=i[i.length-1],i.pop())}},V={dedupe:!0},Q=u.defineProperty(function(e){var n=e.value,r=W((0,a.useContext)(H),n),i=n&&n.provider,o=(0,a.useState)(function(){return i?z(i(r.cache||U),n):l})[0];return o&&(r.cache=o[0],r.mutate=o[1]),S(function(){return o?o[2]:l},[]),(0,a.createElement)(H.Provider,p(e,{value:r}))},"default",{value:Z}),K=function(e){return j(e)[0]},$=(i=function(e,n,r){var i=r.cache,f=r.compare,u=r.fallbackData,m=r.suspense,g=r.revalidateOnMount,b=r.refreshInterval,v=r.refreshWhenHidden,w=r.refreshWhenOffline,x=D.get(i),T=x[0],C=x[1],M=x[2],A=x[3],E=j(e),k=E[0],N=E[1],O=E[2],R=(0,a.useRef)(!1),z=(0,a.useRef)(!1),B=(0,a.useRef)(k),U=(0,a.useRef)(n),F=(0,a.useRef)(r),Z=function(){return F.current},W=function(){return Z().isVisible()&&Z().isOnline()},H=function(e){return i.set(O,p(i.get(O),e))},q=i.get(k),Q=c(u)?r.fallback[k]:u,K=c(q)?Q:q,$=i.get(O)||{},J=$.error,X=!R.current,ee=function(){return X&&!c(g)?g:!Z().isPaused()&&(m?!c(K)&&r.revalidateIfStale:c(K)||r.revalidateIfStale)},et=!!k&&!!n&&(!!$.isValidating||X&&ee()),en=G({data:K,error:J,isValidating:et},z),er=en[0],ei=en[1],ea=en[2],eo=(0,a.useCallback)(function(e){return o(void 0,void 0,void 0,function(){var n,a,o,u,p,h,y,m,g,b,v,w,x;return s(this,function(s){switch(s.label){case 0:if(n=U.current,!k||!n||z.current||Z().isPaused())return[2,!1];u=!0,p=e||{},h=!A[k]||!p.dedupe,y=function(){return!z.current&&k===B.current&&R.current},m=function(){var e=A[k];e&&e[1]===o&&delete A[k]},g={isValidating:!1},b=function(){H({isValidating:!1}),y()&&ea(g)},H({isValidating:!0}),ea({isValidating:!0}),s.label=1;case 1:return s.trys.push([1,3,,4]),h&&(_(i,k,er.current.data,er.current.error,!0),r.loadingTimeout&&!i.get(k)&&setTimeout(function(){u&&y()&&Z().onLoadingSlow(k,r)},r.loadingTimeout),A[k]=[n.apply(void 0,N),P()]),a=(x=A[k])[0],o=x[1],[4,a];case 2:if(a=s.sent(),h&&setTimeout(m,r.dedupingInterval),!A[k]||A[k][1]!==o)return h&&y()&&Z().onDiscarded(k),[2,!1];if(H({error:l}),g.error=l,!c(v=M[k])&&(o<=v[0]||o<=v[1]||0===v[1]))return b(),h&&y()&&Z().onDiscarded(k),[2,!1];return f(er.current.data,a)?g.data=er.current.data:g.data=a,f(i.get(k),a)||i.set(k,a),h&&y()&&Z().onSuccess(a,k,r),[3,4];case 3:return w=s.sent(),m(),!Z().isPaused()&&(H({error:w}),g.error=w,h&&y()&&(Z().onError(w,k,r),("boolean"==typeof r.shouldRetryOnError&&r.shouldRetryOnError||d(r.shouldRetryOnError)&&r.shouldRetryOnError(w))&&W()&&Z().onErrorRetry(w,k,r,eo,{retryCount:(p.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return u=!1,b(),y()&&h&&_(i,k,g.data,g.error,!1),[2,!0]}})})},[k]),es=(0,a.useCallback)(L.bind(l,i,function(){return B.current}),[]);if(S(function(){U.current=n,F.current=r}),S(function(){if(k){var e=k!==B.current,n=eo.bind(l,V),r=0,i=Y(k,C,function(e,n,r){ea(p({error:n,isValidating:r},f(er.current.data,e)?l:{data:e}))}),a=Y(k,T,function(e){if(0==e){var i=Date.now();Z().revalidateOnFocus&&i>r&&W()&&(r=i+Z().focusThrottleInterval,n())}else if(1==e)Z().revalidateOnReconnect&&W()&&n();else if(2==e)return eo()});return z.current=!1,B.current=k,R.current=!0,e&&ea({data:K,error:J,isValidating:et}),ee()&&(c(K)||I?n():y()&&typeof window.requestAnimationFrame!=h?window.requestAnimationFrame(n):setTimeout(n,1)),function(){z.current=!0,i(),a()}}},[k,eo]),S(function(){var e;function n(){var n=d(b)?b(K):b;n&&-1!==e&&(e=setTimeout(r,n))}function r(){!er.current.error&&(v||Z().isVisible())&&(w||Z().isOnline())?eo(V).then(n):n()}return n(),function(){e&&(clearTimeout(e),e=-1)}},[b,v,w,eo]),(0,a.useDebugValue)(K),m&&c(K)&&k)throw U.current=n,F.current=r,z.current=!1,c(J)?eo(V):J;return{mutate:es,get data(){return ei.data=!0,K},get error(){return ei.error=!0,J},get isValidating(){return ei.isValidating=!0,et}}},function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=q(),a=d(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],o=a[0],s=a[1],f=W(r,a[2]),l=i,u=f.use;if(u)for(var c=u.length;c-- >0;)l=u[c](l);return l(o,s||f.fetcher,f)})},32388:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return el},infinite:function(){return ef},unstable_serialize:function(){return es}});var i,a=r(67294);/*! ***************************************************************************** 416Copyright (c) Microsoft Corporation. 417 418Permission to use, copy, modify, and/or distribute this software for any 419purpose with or without fee is hereby granted. 420 421THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 422REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 423AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 424INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 425LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 426OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 427PERFORMANCE OF THIS SOFTWARE. 428***************************************************************************** */function o(e,n,r,i){return new(r||(r=Promise))(function(a,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function f(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var n;e.done?a(e.value):((n=e.value)instanceof r?n:new r(function(e){e(n)})).then(s,f)}l((i=i.apply(e,n||[])).next())})}function s(e,n){var r,i,a,o,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:f(0),throw:f(1),return:f(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;
428function f(o){return function(f){return function(o){if(r)throw TypeError("Generator is already executing.");for(;s;)try{if(r=1,i&&(a=2&o[0]?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(a=(a=s.trys).length>0&&a[a.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){s.label=o[1];break}if(6===o[0]&&s.label<a[1]){s.label=a[1],a=o;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(o);break}a[2]&&s.ops.pop(),s.trys.pop();continue}o=n.call(e,s)}catch(e){o=[6,e],i=0}finally{r=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,f])}}}var f=function(){},l=f(),u=Object,c=function(e){return e===l},d=function(e){return"function"==typeof e},p=function(e,n){return u.assign({},e,n)},h="undefined",y=function(){return typeof window!=h},m=new WeakMap,g=0,b=function(e){var n,r,i=typeof e,a=e&&e.constructor,o=a==Date;if(u(e)!==e||o||a==RegExp)n=o?e.toJSON():"symbol"==i?e.toString():"string"==i?JSON.stringify(e):""+e;else{if(n=m.get(e))return n;if(n=++g+"~",m.set(e,n),a==Array){for(r=0,n="@";r<e.length;r++)n+=b(e[r])+",";m.set(e,n)}if(a==u){n="#";for(var s=u.keys(e).sort();!c(r=s.pop());)c(e[r])||(n+=r+":"+b(e[r])+",");m.set(e,n)}}return n},v=!0,w=y(),x=typeof document!=h,T=w&&window.addEventListener?window.addEventListener.bind(window):f,C=x?document.addEventListener.bind(document):f,M=w&&window.removeEventListener?window.removeEventListener.bind(window):f,A=x?document.removeEventListener.bind(document):f,E={initFocus:function(e){return C("visibilitychange",e),T("focus",e),function(){A("visibilitychange",e),M("focus",e)}},initReconnect:function(e){var n=function(){v=!0,e()},r=function(){v=!1};return T("online",n),T("offline",r),function(){M("online",n),M("offline",r)}}},I=!y()||"Deno"in window,S=I?a.useEffect:a.useLayoutEffect,k="undefined"!=typeof navigator&&navigator.connection,N=!I&&k&&(["slow-2g","2g"].includes(k.effectiveType)||k.saveData),j=function(e){if(d(e))try{e=e()}catch(n){e=""}var n=[].concat(e),r=(e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?b(e):"")?"$swr$"+e:"";return[e,n,r]},D=new WeakMap,_=function(e,n,r,i,a,o,s){void 0===s&&(s=!0);var f=D.get(e),l=f[0],u=f[1],c=f[3],d=l[n],p=u[n];if(s&&p)for(var h=0;h<p.length;++h)p[h](r,i,a);return o&&(delete c[n],d&&d[0])?d[0](2).then(function(){return e.get(n)}):e.get(n)},O=0,P=function(){return++O},L=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return o(void 0,void 0,void 0,function(){var n,r,i,a,o,f,u,h,y,m,g,b,v,w,x,T,C,M,A,E;return s(this,function(s){switch(s.label){case 0:if(n=e[0],r=e[1],i=e[2],f=!!c((o="boolean"==typeof(a=e[3])?{revalidate:a}:a||{}).populateCache)||o.populateCache,u=!1!==o.revalidate,h=!1!==o.rollbackOnError,y=o.optimisticData,g=(m=j(r))[0],b=m[2],!g)return[2];if(v=D.get(n)[2],e.length<3)return[2,_(n,g,n.get(g),l,l,u,!0)];if(w=i,T=P(),v[g]=[T,0],C=!c(y),M=n.get(g),C&&(A=d(y)?y(M):y,n.set(g,A),_(n,g,A)),d(w))try{w=w(n.get(g))}catch(e){x=e}if(!(w&&d(w.then)))return[3,2];return[4,w.catch(function(e){x=e})];case 1:if(w=s.sent(),T!==v[g][0]){if(x)throw x;return[2,w]}x&&C&&h&&(f=!0,w=M,n.set(g,M)),s.label=2;case 2:return f&&(x||(d(f)&&(w=f(w,M)),n.set(g,w)),n.set(b,p(n.get(b),{error:x}))),v[g][1]=P(),[4,_(n,g,w,x,l,u,!!f)];case 3:if(E=s.sent(),x)throw x;return[2,f?E:w]}})})},R=function(e,n){for(var r in e)e[r][0]&&e[r][0](n)},z=function(e,n){if(!D.has(e)){var r=p(E,n),i={},a=L.bind(l,e),o=f;if(D.set(e,[i,{},{},{},a]),!I){var s=r.initFocus(setTimeout.bind(l,R.bind(l,i,0))),u=r.initReconnect(setTimeout.bind(l,R.bind(l,i,1)));o=function(){s&&s(),u&&u(),D.delete(e)}}return[e,a,o]}return[e,D.get(e)[4]]},B=z(new Map),U=B[0],F=p({onLoadingSlow:f,onSuccess:f,onError:f,onErrorRetry:function(e,n,r,i,a){var o=r.errorRetryCount,s=a.retryCount,f=~~((Math.random()+.5)*(1<<(s<8?s:8)))*r.errorRetryInterval;(c(o)||!(s>o))&&setTimeout(i,f,a)},onDiscarded:f,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:N?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:N?5e3:3e3,compare:function(e,n){return b(e)==b(n)},isPaused:function(){return!1},cache:U,mutate:B[1],fallback:{}},{isOnline:function(){return v},isVisible:function(){var e=x&&document.visibilityState;
428return c(e)||"hidden"!==e}}),Z=function(e,n){var r=p(e,n);if(n){var i=e.use,a=e.fallback,o=n.use,s=n.fallback;i&&o&&(r.use=i.concat(o)),a&&s&&(r.fallback=p(a,s))}return r},W=(0,a.createContext)({}),H=function(e,n){var r=(0,a.useState)({})[1],i=(0,a.useRef)(e),o=(0,a.useRef)({data:!1,error:!1,isValidating:!1}),s=(0,a.useCallback)(function(e){var a=!1,s=i.current;for(var f in e)s[f]!==e[f]&&(s[f]=e[f],o.current[f]&&(a=!0));a&&!n.current&&r({})},[]);return S(function(){i.current=e}),[i,o.current,s]},G=function(e,n,r){var i=n[e]||(n[e]=[]);return i.push(r),function(){var e=i.indexOf(r);e>=0&&(i[e]=i[i.length-1],i.pop())}},q={dedupe:!0};u.defineProperty(function(e){var n=e.value,r=Z((0,a.useContext)(W),n),i=n&&n.provider,o=(0,a.useState)(function(){return i?z(i(r.cache||U),n):l})[0];return o&&(r.cache=o[0],r.mutate=o[1]),S(function(){return o?o[2]:l},[]),(0,a.createElement)(W.Provider,p(e,{value:r}))},"default",{value:F});var Y=(i=function(e,n,r){var i=r.cache,f=r.compare,u=r.fallbackData,m=r.suspense,g=r.revalidateOnMount,b=r.refreshInterval,v=r.refreshWhenHidden,w=r.refreshWhenOffline,x=D.get(i),T=x[0],C=x[1],M=x[2],A=x[3],E=j(e),k=E[0],N=E[1],O=E[2],R=(0,a.useRef)(!1),z=(0,a.useRef)(!1),B=(0,a.useRef)(k),U=(0,a.useRef)(n),F=(0,a.useRef)(r),Z=function(){return F.current},W=function(){return Z().isVisible()&&Z().isOnline()},Y=function(e){return i.set(O,p(i.get(O),e))},V=i.get(k),Q=c(u)?r.fallback[k]:u,K=c(V)?Q:V,$=i.get(O)||{},J=$.error,X=!R.current,ee=function(){return X&&!c(g)?g:!Z().isPaused()&&(m?!c(K)&&r.revalidateIfStale:c(K)||r.revalidateIfStale)},et=!!k&&!!n&&(!!$.isValidating||X&&ee()),en=H({data:K,error:J,isValidating:et},z),er=en[0],ei=en[1],ea=en[2],eo=(0,a.useCallback)(function(e){return o(void 0,void 0,void 0,function(){var n,a,o,u,p,h,y,m,g,b,v,w,x;return s(this,function(s){switch(s.label){case 0:if(n=U.current,!k||!n||z.current||Z().isPaused())return[2,!1];u=!0,p=e||{},h=!A[k]||!p.dedupe,y=function(){return!z.current&&k===B.current&&R.current},m=function(){var e=A[k];e&&e[1]===o&&delete A[k]},g={isValidating:!1},b=function(){Y({isValidating:!1}),y()&&ea(g)},Y({isValidating:!0}),ea({isValidating:!0}),s.label=1;case 1:return s.trys.push([1,3,,4]),h&&(_(i,k,er.current.data,er.current.error,!0),r.loadingTimeout&&!i.get(k)&&setTimeout(function(){u&&y()&&Z().onLoadingSlow(k,r)},r.loadingTimeout),A[k]=[n.apply(void 0,N),P()]),a=(x=A[k])[0],o=x[1],[4,a];case 2:if(a=s.sent(),h&&setTimeout(m,r.dedupingInterval),!A[k]||A[k][1]!==o)return h&&y()&&Z().onDiscarded(k),[2,!1];if(Y({error:l}),g.error=l,!c(v=M[k])&&(o<=v[0]||o<=v[1]||0===v[1]))return b(),h&&y()&&Z().onDiscarded(k),[2,!1];return f(er.current.data,a)?g.data=er.current.data:g.data=a,f(i.get(k),a)||i.set(k,a),h&&y()&&Z().onSuccess(a,k,r),[3,4];case 3:return w=s.sent(),m(),!Z().isPaused()&&(Y({error:w}),g.error=w,h&&y()&&(Z().onError(w,k,r),("boolean"==typeof r.shouldRetryOnError&&r.shouldRetryOnError||d(r.shouldRetryOnError)&&r.shouldRetryOnError(w))&&W()&&Z().onErrorRetry(w,k,r,eo,{retryCount:(p.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return u=!1,b(),y()&&h&&_(i,k,g.data,g.error,!1),[2,!0]}})})},[k]),es=(0,a.useCallback)(L.bind(l,i,function(){return B.current}),[]);if(S(function(){U.current=n,F.current=r}),S(function(){if(k){var e=k!==B.current,n=eo.bind(l,q),r=0,i=G(k,C,function(e,n,r){ea(p({error:n,isValidating:r},f(er.current.data,e)?l:{data:e}))}),a=G(k,T,function(e){if(0==e){var i=Date.now();Z().revalidateOnFocus&&i>r&&W()&&(r=i+Z().focusThrottleInterval,n())}else if(1==e)Z().revalidateOnReconnect&&W()&&n();else if(2==e)return eo()});return z.current=!1,B.current=k,R.current=!0,e&&ea({data:K,error:J,isValidating:et}),ee()&&(c(K)||I?n():y()&&typeof window.requestAnimationFrame!=h?window.requestAnimationFrame(n):setTimeout(n,1)),function(){z.current=!0,i(),a()}}},[k,eo]),S(function(){var e;function n(){var n=d(b)?b(K):b;n&&-1!==e&&(e=setTimeout(r,n))}function r(){!er.current.error&&(v||Z().isVisible())&&(w||Z().isOnline())?eo(q).then(n):n()}return n(),function(){e&&(clearTimeout(e),e=-1)}},[b,v,w,eo]),(0,a.useDebugValue)(K),m&&c(K)&&k)throw U.current=n,F.current=r,z.current=!1,c(J)?eo(q):J;return{mutate:es,get data(){return ei.data=!0,K},get error(){return ei.error=!0,J},get isValidating(){return ei.isValidating=!0,et}}},function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=p(F,(0,a.useContext)(W)),o=d(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}
428],s=o[0],f=o[1],l=Z(r,o[2]),u=i,c=l.use;if(c)for(var h=c.length;h-- >0;)u=c[h](u);return u(s,f||l.fetcher,l)}),V=function(){return(V=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++)for(var a in n=arguments[r])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e}).apply(this,arguments)},Q=function(){},K=Q(),$=Object,J=function(e){return e===K},X=function(e){return"function"==typeof e},ee=!("undefined"!=typeof window)||"Deno"in window?a.useEffect:a.useLayoutEffect,et=new WeakMap,en=0,er=function(e){var n,r,i=typeof e,a=e&&e.constructor,o=a==Date;if($(e)!==e||o||a==RegExp)n=o?e.toJSON():"symbol"==i?e.toString():"string"==i?JSON.stringify(e):""+e;else{if(n=et.get(e))return n;if(n=++en+"~",et.set(e,n),a==Array){for(r=0,n="@";r<e.length;r++)n+=er(e[r])+",";et.set(e,n)}if(a==$){n="#";for(var s=$.keys(e).sort();!J(r=s.pop());)J(e[r])||(n+=r+":"+er(e[r])+",");et.set(e,n)}}return n},ei=function(e){if(X(e))try{e=e()}catch(n){e=""}var n=[].concat(e),r=(e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?er(e):"")?"$swr$"+e:"";return[e,n,r]},ea="$inf$",eo=function(e){return ei(e?e(0,null):null)[0]},es=function(e){return ea+eo(e)},ef=function(e){return function(n,r,i){var o=(0,a.useState)({})[1],s=(0,a.useRef)(!1),f=(0,a.useRef)(),l=i.cache,u=i.initialSize,c=void 0===u?1:u,d=i.revalidateAll,p=void 0!==d&&d,h=i.persistSize,y=void 0!==h&&h,m=i.revalidateFirstPage,g=void 0===m||m,b=i.revalidateOnMount,v=null;try{v=eo(n)}catch(e){}var w=null,x=null;v&&(w="$ctx$"+v,x="$len$"+v);var T=(0,a.useCallback)(function(){var e=l.get(x);return J(e)?c:e},[x,c]),C=(0,a.useRef)(T());ee(function(){if(!s.current){s.current=!0;return}v&&l.set(x,y?C.current:c)},[v]);var M=void 0!==b&&b&&!s.current,A=e(v?ea+v:null,function(){var e,a,o,s;return e=void 0,a=void 0,o=void 0,s=function(){var e,a,o,s,u,c,d,h,y,m,b,v;return function(e,n){var r,i,a,o,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:f(0),throw:f(1),return:f(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function f(o){return function(f){return function(o){if(r)throw TypeError("Generator is already executing.");for(;s;)try{if(r=1,i&&(a=2&o[0]?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(a=(a=s.trys).length>0&&a[a.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){s.label=o[1];break}if(6===o[0]&&s.label<a[1]){s.label=a[1],a=o;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(o);break}a[2]&&s.ops.pop(),s.trys.pop();continue}o=n.call(e,s)}catch(e){o=[6,e],i=0}finally{r=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,f])}}}(this,function(x){switch(x.label){case 0:a=(e=l.get(w)||[])[0],o=e[1],s=[],u=T(),c=null,d=0,x.label=1;case 1:if(!(d<u)||(y=(h=ei(n(d,c)))[0],m=h[1],!y))return[3,5];if(b=l.get(y),v=p||a||J(b)||g&&!d&&!J(f.current)||M||o&&!J(o[d])&&!i.compare(o[d],b),!(r&&v))return[3,3];return[4,r.apply(void 0,m)];case 2:b=x.sent(),l.set(y,b),x.label=3;case 3:s.push(b),c=b,x.label=4;case 4:return++d,[3,1];case 5:return l.delete(w),[2,s]}})},new(o||(o=Promise))(function(n,r){function i(e){try{l(s.next(e))}catch(e){r(e)}}function f(e){try{l(s.throw(e))}catch(e){r(e)}}function l(e){var r;e.done?n(e.value):((r=e.value)instanceof o?r:new o(function(e){e(r)})).then(i,f)}l((s=s.apply(e,a||[])).next())})},i);ee(function(){f.current=A.data},[A.data]);var E=(0,a.useCallback)(function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e[0],i=!1!==e[1];if(w){if(i){if(J(r))l.set(w,[!0]);else{var a=f.current;l.set(w,[!1,a])}}return e.length?A.mutate(r,i):A.mutate()}},[w]),I=function(e){for(var r=[],i=null,a=0;a<e;++a){var o=ei(n(a,i))[0],s=o?l.get(o):K;if(J(s))return f.current;r.push(s),i=s}return r},S=(0,a.useCallback)(function(e){var n;if(x&&(X(e)?n=e(T()):"number"==typeof e&&(n=e),"number"==typeof n))return l.set(x,n),C.current=n,o({}),E(I(n))},[x,T,E]);return{size:T(),setSize:S,mutate:E,get error(){return A.error},get data(){return A.data},get isValidating(){return A.isValidating}}}},el=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=X(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],i=r[0],a=r[1],o=r[2],s=(o.use||[]).concat(ef);return Y(i,a,V(V({},o),{use:s}))}},11742:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var n=document.activeElement,r=[],i=0;i<e.rangeCount;i++)r.push(e.getRangeAt(i));switch(n.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":n.blur();break;default:n=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||r.forEach(function(n){e.addRange(n)}),n&&n.focus()}}},70655:function(e,n,r){"use strict";r.r(n),r.d(n,{__assign:function(){return o},__asyncDelegator:function(){return x},__asyncGenerator:function(){return w},__asyncValues:function(){return T},__await:function(){return v},__awaiter:function(){return c},__classPrivateFieldGet:function(){return E},__classPrivateFieldSet:function(){return I},__createBinding:function(){return p},__decorate:function(){return f},__exportStar:function(){return h},__extends:function(){return a},__generator:function(){return d},__importDefault:function(){return A},__importStar:function(){return M}
vendor: 6,126 bytes, lines 428-441
428,__makeTemplateObject:function(){return C},__metadata:function(){return u},__param:function(){return l},__read:function(){return m},__rest:function(){return s},__spread:function(){return g},__spreadArrays:function(){return b},__values:function(){return y}});/*! ***************************************************************************** 429Copyright (c) Microsoft Corporation. 430 431Permission to use, copy, modify, and/or distribute this software for any 432purpose with or without fee is hereby granted. 433 434THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 435REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 436AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 437INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 438LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 439OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 440PERFORMANCE OF THIS SOFTWARE. 441***************************************************************************** */var i=function(e,n){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])})(e,n)};function a(e,n){function r(){this.constructor=e}i(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++)for(var a in n=arguments[r])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e}).apply(this,arguments)};function s(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>n.indexOf(i)&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,i=Object.getOwnPropertySymbols(e);a<i.length;a++)0>n.indexOf(i[a])&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(r[i[a]]=e[i[a]]);return r}function f(e,n,r,i){var a,o=arguments.length,s=o<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,n,r,i);else for(var f=e.length-1;f>=0;f--)(a=e[f])&&(s=(o<3?a(s):o>3?a(n,r,s):a(n,r))||s);return o>3&&s&&Object.defineProperty(n,r,s),s}function l(e,n){return function(r,i){n(r,i,e)}}function u(e,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,n)}function c(e,n,r,i){return new(r||(r=Promise))(function(a,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function f(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var n;e.done?a(e.value):((n=e.value)instanceof r?n:new r(function(e){e(n)})).then(s,f)}l((i=i.apply(e,n||[])).next())})}function d(e,n){var r,i,a,o,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:f(0),throw:f(1),return:f(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function f(o){return function(f){return function(o){if(r)throw TypeError("Generator is already executing.");for(;s;)try{if(r=1,i&&(a=2&o[0]?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(a=(a=s.trys).length>0&&a[a.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){s.label=o[1];break}if(6===o[0]&&s.label<a[1]){s.label=a[1],a=o;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(o);break}a[2]&&s.ops.pop(),s.trys.pop();continue}o=n.call(e,s)}catch(e){o=[6,e],i=0}finally{r=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,f])}}}function p(e,n,r,i){void 0===i&&(i=r),e[i]=n[r]}function h(e,n){for(var r in e)"default"===r||n.hasOwnProperty(r)||(n[r]=e[r])}function y(e){var n="function"==typeof Symbol&&Symbol.iterator,r=n&&e[n],i=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,n){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,a,o=r.call(e),s=[];try{for(;(void 0===n||n-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(e){a={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return s}function g(){for(var e=[],n=0;n<arguments.length;n++)e=e.concat(m(arguments[n]));return e}function b(){for(var e=0,n=0,r=arguments.length;n<r;n++)e+=arguments[n].length;for(var i=Array(e),a=0,n=0;n<r;n++)for(var o=arguments[n],s=0,f=o.length;s<f;s++,a++)i[a]=o[s];return i}function v(e){return this instanceof v?(this.v=e,this):new v(e)}function w(e,n,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var i,a=r.apply(e,n||[]),o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(e){a[e]&&(i[e]=function(n){return new Promise(function(r,i){o.push([e,n,r,i])>1||f(e,n)})})}function f(e,n){try{var r;(r=a[e](n)).value instanceof v?Promise.resolve(r.value.v).then(l,u):c(o[0][2],r)}catch(e){c(o[0][3],e)}}function l(e){f("next",e)}function u(e){f("throw",e)}function c(e,n){e(n),o.shift(),o.length&&f(o[0][0],o[0][1])}}function x(e){var n,r;return n={},i("next"),i("throw",function(e){throw e}),i("return"),n[Symbol.iterator]=function(){return this},n;function i(i,a){n[i]=e[i]?function(n){return(r=!r)?{value:v(e[i](n)),done:"return"===i}:a?a(n):n}:a}}function T(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,r=e[Symbol.asyncIterator];return r?r.call(e):(e=y(e),n={},i("next"),i("throw"),i("return"),n[Symbol.asyncIterator]=function(){return this},n);function i(r){n[r]=e[r]&&function(n){return new Promise(function(i,a){!function(e,n,r,i){Promise.resolve(i).then(function(n){e({value:n,done:r})},n)}(i,a,(n=e[r](n)).done,n.value)})}}}function C(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e}
441function M(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n.default=e,n}function A(e){return e&&e.__esModule?e:{default:e}}function E(e,n){if(!n.has(e))throw TypeError("attempted to get private field on non-instance");return n.get(e)}function I(e,n,r){if(!n.has(e))throw TypeError("attempted to set private field on non-instance");return n.set(e,r),r}},99495:function(e,n,r){"use strict";r.d(n,{q:function(){return f}});var i=r(67294);function a(e,n){return"function"==typeof e?e(n):e&&(e.current=n),e}var o="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,s=new WeakMap;function f(e,n){var r,f,l,u=(r=n||null,f=function(n){return e.forEach(function(e){return a(e,n)})},(l=(0,i.useState)(function(){return{value:r,callback:f,facade:{get current(){return l.value},set current(value){var e=l.value;e!==value&&(l.value=value,l.callback(value,e))}}}})[0]).callback=f,l.facade);return o(function(){var n=s.get(u);if(n){var r=new Set(n),i=new Set(e),o=u.current;r.forEach(function(e){i.has(e)||a(e,null)}),i.forEach(function(e){r.has(e)||a(e,o)})}s.set(u,e)},[e]),u}},66781:function(e,n,r){"use strict";r.d(n,{L:function(){return s}});var i=r(67463),a=r(67294),o=function(e){var n=e.sideCar,r=(0,i._T)(e,["sideCar"]);if(!n)throw Error("Sidecar: please provide `sideCar` property to import the right car");var o=n.read();if(!o)throw Error("Sidecar medium not found");return a.createElement(o,(0,i.pi)({},r))};function s(e,n){return e.useMedium(n),o}o.isSideCarExport=!0},87122:function(e,n,r){"use strict";r.d(n,{_:function(){return o}});var i=r(67463);function a(e){return e}function o(e){void 0===e&&(e={});var n,r,o,s=(void 0===n&&(n=a),r=[],o=!1,{read:function(){if(o)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:null},useMedium:function(e){var i=n(e,o);return r.push(i),function(){r=r.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(o=!0;r.length;){var n=r;r=[],n.forEach(e)}r={push:function(n){return e(n)},filter:function(){return r}}},assignMedium:function(e){o=!0;var n=[];if(r.length){var i=r;r=[],i.forEach(e),n=r}var a=function(){var r=n;n=[],r.forEach(e)},s=function(){return Promise.resolve().then(a)};s(),r={push:function(e){n.push(e),s()},filter:function(e){return n=n.filter(e),r}}}});return s.options=(0,i.pi)({async:!0,ssr:!1},e),s}},53250:function(e,n,r){"use strict";/** 442 * @license React 443 * use-sync-external-store-shim.production.min.js 444 * 445 * Copyright (c) Facebook, Inc. and its affiliates. 446 * 447 * This source code is licensed under the MIT license found in the 448 * LICENSE file in the root directory of this source tree. 449 */var i=r(67294),a="function"==typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n},o=i.useState,s=i.useEffect,f=i.useLayoutEffect,l=i.useDebugValue;function u(e){var n=e.getSnapshot;e=e.value;try{var r=n();return!a(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,n){return n()}:function(e,n){var r=n(),i=o({inst:{value:r,getSnapshot:n}}),a=i[0].inst,c=i[1];return f(function(){a.value=r,a.getSnapshot=n,u(a)&&c({inst:a})},[e,r,n]),s(function(){return u(a)&&c({inst:a}),e(function(){u(a)&&c({inst:a})})},[e]),l(r),r};n.useSyncExternalStore=void 0!==i.useSyncExternalStore?i.useSyncExternalStore:c},50139:function(e,n,r){"use strict";/** 450 * @license React 451 * use-sync-external-store-shim/with-selector.production.min.js 452 * 453 * Copyright (c) Facebook, Inc. and its affiliates. 454 * 455 * This source code is licensed under the MIT license found in the 456 * LICENSE file in the root directory of this source tree. 457 */var i=r(67294),a=r(61688),o="function"==typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n},s=a.useSyncExternalStore,f=i.useRef,l=i.useEffect,u=i.useMemo,c=i.useDebugValue;n.useSyncExternalStoreWithSelector=function(e,n,r,i,a){var d=f(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;var h=s(e,(d=u(function(){function e(e){if(!l){if(l=!0,s=e,e=i(e),void 0!==a&&p.hasValue){var n=p.value;if(a(n,e))return f=n}return f=e}if(n=f,o(s,e))return n;var r=i(e);return void 0!==a&&a(n,r)?n:(s=e,f=r)}var s,f,l=!1,u=void 0===r?null:r;return[function(){return e(n())},null===u?void 0:function(){return e(u())}]},[n,r,i,a]))[0],d[1]);return l(function(){p.hasValue=!0,p.value=h},[h]),c(h),h}},61688:function(e,n,r){"use strict";e.exports=r(53250)},52798:function(e,n,r){"use strict";e.exports=r(50139)},26988:function(e){e.exports=function e(n,r){var i,a=0,r=r||0,o=0,s=r,f=n.length;do{if(s>=f||o>49)throw e.bytes=0,RangeError("Could not decode varint");i=n[s++],a+=o<28?(127&i)<<o:(127&i)*Math.pow(2,o),o+=7}while(i>=128);return e.bytes=s-r,a}},1312:function(e){e.exports=function e(r,i,a){if(Number.MAX_SAFE_INTEGER&&r>Number.MAX_SAFE_INTEGER)throw e.bytes=0,RangeError("Could not encode varint");i=i||[];for(var o=a=a||0;r>=2147483648;)i[a++]=255&r|128,r/=128;for(;r&n;)i[a++]=255&r|128,r>>>=7;return i[a]=0|r,e.bytes=a-o+1,i};var n=-128},94676:function(e,n,r){e.exports={encode:r(1312),decode:r(26988),encodingLength:r(10082)}},10082:function(e){e.exports=function(e){return e<128?1:e<16384?2:e<2097152?3:e<268435456?4:e<34359738368?5:e<4398046511104?6:e<562949953421312?7:e<72057594037927940?8:e<0x7fffffffffffffff?9:10}},35883:function(){},46601:function(){},24654:function(){},73897:function(e){e.exports=function(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,i=Array(n);r<n;r++)i[r]=e[r];return i},e.exports.__esModule=!0,e.exports.default=e.exports},85372:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},66115:function(e){e.exports=function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},17156:function(e){function n(e,n,r,i,a,o,s){try{var f=e[o](s),l=f.value}catch(e){return void r(e)}f.done?n(l):Promise.resolve(l).then(i,a)}e.exports=function(e){return function(){var r=this,i=arguments;return new Promise(function(a,o){var s=e.apply(r,i);function f(e){n(s,a,o,f,l,"next",e)}function l(e){n(s,a,o,f,l,"throw",e)}f(void 0)})}},e.exports.__esModule=!0,e.exports.default=e.exports},56690:function(e){e.exports=function(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},3515:function(e,n,r){var i=r(69617),a=r(6015);e.exports=function(e,n,r){if(i())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,n);var s=new(e.bind.apply(e,o));return r&&a(s,r.prototype),s},e.exports.__esModule=!0,e.exports.default=e.exports},89728:function(e,n,r){var i=r(64062);function a(e,n){for(var r=0;r<n.length;r++){var a=n[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,i(a.key),a)}}e.exports=function(e,n,r){return n&&a(e.prototype,n),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},38416:function(e,n,r){var i=r(64062);e.exports=function(e,n,r){return(n=i(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},10434:function(e){function n(){return e.exports=n=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,n.apply(null,arguments)}
457e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},73808:function(e){function n(r){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,n(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},61655:function(e,n,r){var i=r(6015);e.exports=function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&i(e,n)},e.exports.__esModule=!0,e.exports.default=e.exports},64836:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},46035:function(e){e.exports=function(e){try{return -1!==Function.toString.call(e).indexOf("[native code]")}catch(n){return"function"==typeof e}},e.exports.__esModule=!0,e.exports.default=e.exports},69617:function(e){function n(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(e.exports=n=function(){return!!r},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},68872:function(e){e.exports=function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var i,a,o,s,f=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===n){if(Object(r)!==r)return;l=!1}else for(;!(l=(i=o.call(r)).done)&&(f.push(i.value),f.length!==n);l=!0);}catch(e){u=!0,a=e}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw a}}return f}},e.exports.__esModule=!0,e.exports.default=e.exports},12218:function(e){e.exports=function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},7071:function(e){e.exports=function(e,n){if(null==e)return{};var r={};for(var i in e)if(({}).hasOwnProperty.call(e,i)){if(n.includes(i))continue;r[i]=e[i]}return r},e.exports.__esModule=!0,e.exports.default=e.exports},94993:function(e,n,r){var i=r(18698).default,a=r(66115);e.exports=function(e,n){if(n&&("object"==i(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return a(e)},e.exports.__esModule=!0,e.exports.default=e.exports},6015:function(e){function n(r,i){return e.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},e.exports.__esModule=!0,e.exports.default=e.exports,n(r,i)}
457e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},27424:function(e,n,r){var i=r(85372),a=r(68872),o=r(86116),s=r(12218);e.exports=function(e,n){return i(e)||a(e,n)||o(e,n)||s()},e.exports.__esModule=!0,e.exports.default=e.exports},95036:function(e,n,r){var i=r(18698).default;e.exports=function(e,n){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,n||"default");if("object"!=i(a))return a;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},64062:function(e,n,r){var i=r(18698).default,a=r(95036);e.exports=function(e){var n=a(e,"string");return"symbol"==i(n)?n:n+""},e.exports.__esModule=!0,e.exports.default=e.exports},86116:function(e,n,r){var i=r(73897);e.exports=function(e,n){if(e){if("string"==typeof e)return i(e,n);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,n):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},33496:function(e,n,r){var i=r(73808),a=r(6015),o=r(46035),s=r(3515);function f(n){var r="function"==typeof Map?new Map:void 0;return e.exports=f=function(e){if(null===e||!o(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(e))return r.get(e);r.set(e,n)}function n(){return s(e,arguments,i(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),a(n,e)},e.exports.__esModule=!0,e.exports.default=e.exports,f(n)}e.exports=f,e.exports.__esModule=!0,e.exports.default=e.exports},46440:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},36559:function(e,n,r){"use strict";let i=r(85346);e.exports=o;let a=function(){function e(e){return void 0!==e&&e}try{if("undefined"!=typeof globalThis)return globalThis;return Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch(n){return e(self)||e(window)||e(this)||{}}}().console||{};function o(e){var n,r;(e=e||{}).browser=e.browser||{};let i=e.browser.transmit;if(i&&"function"!=typeof i.send)throw Error("pino: transmit option must have a send function");let c=e.browser.write||a;e.browser.write&&(e.browser.asObject=!0);let d=e.serializers||{},m=Array.isArray(n=e.browser.serialize)?n.filter(function(e){return"!stdSerializers.err"!==e}):!0===n&&Object.keys(d),g=e.browser.serialize;Array.isArray(e.browser.serialize)&&e.browser.serialize.indexOf("!stdSerializers.err")>-1&&(g=!1),"function"==typeof c&&(c.error=c.fatal=c.warn=c.info=c.debug=c.trace=c),!1===e.enabled&&(e.level="silent");let b=e.level||"info",v=Object.create(c);v.log||(v.log=p),Object.defineProperty(v,"levelVal",{get:function(){return"silent"===this.level?1/0:this.levels.values[this.level]}}),Object.defineProperty(v,"level",{get:function(){return this._level},set:function(e){if("silent"!==e&&!this.levels.values[e])throw Error("unknown level "+e);this._level=e,s(w,v,"error","log"),s(w,v,"fatal","error"),s(w,v,"warn","error"),s(w,v,"info","log"),s(w,v,"debug","log"),s(w,v,"trace","log")}});let w={transmit:i,serialize:m,asObject:e.browser.asObject,levels:["error","fatal","warn","info","debug","trace"],timestamp:"function"==typeof(r=e).timestamp?r.timestamp:!1===r.timestamp?h:y};return v.levels=o.levels,v.level=b,v.setMaxListeners=v.getMaxListeners=v.emit=v.addListener=v.on=v.prependListener=v.once=v.prependOnceListener=v.removeListener=v.removeAllListeners=v.listeners=v.listenerCount=v.eventNames=v.write=v.flush=p,v.serializers=d,v._serialize=m,v._stdErrSerialize=g,v.child=function(n,r){if(!n)throw Error("missing bindings for child Pino");r=r||{},m&&n.serializers&&(r.serializers=n.serializers);let a=r.serializers;if(m&&a){var o=Object.assign({},d,a),s=!0===e.browser.serialize?Object.keys(o):m;delete n.serializers,f([n],s,o,this._stdErrSerialize)}function c(e){this._childLevel=(0|e._childLevel)+1,this.error=l(e,n,"error"),this.fatal=l(e,n,"fatal"),this.warn=l(e,n,"warn"),this.info=l(e,n,"info"),this.debug=l(e,n,"debug"),this.trace=l(e,n,"trace"),o&&(this.serializers=o,this._serialize=s),i&&(this._logEvent=u([].concat(e._logEvent.bindings,n)))}return c.prototype=this,new c(this)},i&&(v._logEvent=u()),v}
457function s(e,n,r,s){let l=Object.getPrototypeOf(n);n[r]=n.levelVal>n.levels.values[r]?p:l[r]?l[r]:a[r]||a[s]||p,function(e,n,r){if(e.transmit||n[r]!==p){var s;n[r]=(s=n[r],function(){let l=e.timestamp(),c=Array(arguments.length),d=Object.getPrototypeOf&&Object.getPrototypeOf(this)===a?a:this;for(var p=0;p<c.length;p++)c[p]=arguments[p];if(e.serialize&&!e.asObject&&f(c,this._serialize,this.serializers,this._stdErrSerialize),e.asObject?s.call(d,function(e,n,r,a){e._serialize&&f(r,e._serialize,e.serializers,e._stdErrSerialize);let s=r.slice(),l=s[0],u={};a&&(u.time=a),u.level=o.levels.values[n];let c=(0|e._childLevel)+1;if(c<1&&(c=1),null!==l&&"object"==typeof l){for(;c--&&"object"==typeof s[0];)Object.assign(u,s.shift());l=s.length?i(s.shift(),s):void 0}else"string"==typeof l&&(l=i(s.shift(),s));return void 0!==l&&(u.msg=l),u}(this,r,c,l)):s.apply(d,c),e.transmit){let i=e.transmit.level||n.level,a=o.levels.values[i],s=o.levels.values[r];if(s<a)return;(function(e,n,r){let i=n.send,a=n.ts,o=n.methodLevel,s=n.methodValue,l=n.val,c=e._logEvent.bindings;f(r,e._serialize||Object.keys(e.serializers),e.serializers,void 0===e._stdErrSerialize||e._stdErrSerialize),e._logEvent.ts=a,e._logEvent.messages=r.filter(function(e){return -1===c.indexOf(e)}),e._logEvent.level.label=o,e._logEvent.level.value=s,i(o,e._logEvent,l),e._logEvent=u(c)})(this,{ts:l,methodLevel:r,methodValue:s,transmitLevel:i,transmitValue:o.levels.values[e.transmit.level||n.level],send:e.transmit.send,val:n.levelVal},c)}})}}(e,n,r)}function f(e,n,r,i){for(let a in e)if(i&&e[a]instanceof Error)e[a]=o.stdSerializers.err(e[a]);else if("object"==typeof e[a]&&!Array.isArray(e[a]))for(let i in e[a])n&&n.indexOf(i)>-1&&i in r&&(e[a][i]=r[i](e[a][i]))}function l(e,n,r){return function(){let i=Array(1+arguments.length);i[0]=n;for(var a=1;a<i.length;a++)i[a]=arguments[a-1];return e[r].apply(this,i)}}function u(e){return{ts:0,messages:[],bindings:e||[],level:{label:"",value:0}}}function c(){return{}}function d(e){return e}function p(){}function h(){return!1}function y(){return Date.now()}o.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}},o.stdSerializers={mapHttpRequest:c,mapHttpResponse:c,wrapRequestSerializer:d,wrapResponseSerializer:d,wrapErrorSerializer:d,req:c,res:c,err:function(e){let n={type:e.constructor.name,msg:e.message,stack:e.stack};for(let r in e)void 0===n[r]&&(n[r]=e[r]);return n}},o.stdTimeFunctions=Object.assign({},{nullTime:h,epochTime:y,unixTime:function(){return Math.round(Date.now()/1e3)},isoTime:function(){return new Date(Date.now()).toISOString()}})},97326:function(e,n,r){"use strict";function i(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(n,{Z:function(){return i}})},4942:function(e,n,r){"use strict";r.d(n,{Z:function(){return a}});var i=r(83997);function a(e,n,r){return(n=(0,i.Z)(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}},87462:function(e,n,r){"use strict";function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e}).apply(null,arguments)}r.d(n,{Z:function(){return i}})},94578:function(e,n,r){"use strict";r.d(n,{Z:function(){return a}});var i=r(89611);function a(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,(0,i.Z)(e,n)}},63366:function(e,n,r){"use strict";function i(e,n){if(null==e)return{};var r={};for(var i in e)if(({}).hasOwnProperty.call(e,i)){if(n.includes(i))continue;r[i]=e[i]}return r}r.d(n,{Z:function(){return i}})},89611:function(e,n,r){"use strict";function i(e,n){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}r.d(n,{Z:function(){return i}})},83997:function(e,n,r){"use strict";r.d(n,{Z:function(){return a}});var i=r(71002);function a(e){var n=function(e,n){if("object"!=(0,i.Z)(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,n||"default");
457if("object"!=(0,i.Z)(a))return a;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==(0,i.Z)(n)?n:n+""}},71002:function(e,n,r){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r.d(n,{Z:function(){return i}})},18573:function(e,n,r){"use strict";r.d(n,{x7:function(){return el},Me:function(){return er},oo:function(){return ec},RR:function(){return eo},Cp:function(){return ef},dr:function(){return eu},cv:function(){return ei},uY:function(){return ea},dp:function(){return es}});let i=["top","right","bottom","left"],a=Math.min,o=Math.max,s=Math.round,f=Math.floor,l=e=>({x:e,y:e}),u={left:"right",right:"left",bottom:"top",top:"bottom"},c={start:"end",end:"start"};function d(e,n){return"function"==typeof e?e(n):e}function p(e){return e.split("-")[0]}function h(e){return e.split("-")[1]}function y(e){return"x"===e?"y":"x"}function m(e){return"y"===e?"height":"width"}function g(e){return["top","bottom"].includes(p(e))?"y":"x"}function b(e){return e.replace(/start|end/g,e=>c[e])}function v(e){return e.replace(/left|right|bottom|top/g,e=>u[e])}function w(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function x(e){let{x:n,y:r,width:i,height:a}=e;return{width:i,height:a,top:r,left:n,right:n+i,bottom:r+a,x:n,y:r}}function T(e,n,r){let i,{reference:a,floating:o}=e,s=g(n),f=y(g(n)),l=m(f),u=p(n),c="y"===s,d=a.x+a.width/2-o.width/2,b=a.y+a.height/2-o.height/2,v=a[l]/2-o[l]/2;switch(u){case"top":i={x:d,y:a.y-o.height};break;case"bottom":i={x:d,y:a.y+a.height};break;case"right":i={x:a.x+a.width,y:b};break;case"left":i={x:a.x-o.width,y:b};break;default:i={x:a.x,y:a.y}}switch(h(n)){case"start":i[f]-=v*(r&&c?-1:1);break;case"end":i[f]+=v*(r&&c?-1:1)}return i}let C=async(e,n,r)=>{let{placement:i="bottom",strategy:a="absolute",middleware:o=[],platform:s}=r,f=o.filter(Boolean),l=await (null==s.isRTL?void 0:s.isRTL(n)),u=await s.getElementRects({reference:e,floating:n,strategy:a}),{x:c,y:d}=T(u,i,l),p=i,h={},y=0;for(let r=0;r<f.length;r++){let{name:o,fn:m}=f[r],{x:g,y:b,data:v,reset:w}=await m({x:c,y:d,initialPlacement:i,placement:p,strategy:a,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:n}});c=null!=g?g:c,d=null!=b?b:d,h={...h,[o]:{...h[o],...v}},w&&y<=50&&(y++,"object"==typeof w&&(w.placement&&(p=w.placement),w.rects&&(u=!0===w.rects?await s.getElementRects({reference:e,floating:n,strategy:a}):w.rects),{x:c,y:d}=T(u,p,l)),r=-1)}return{x:c,y:d,placement:p,strategy:a,middlewareData:h}};async function M(e,n){var r;void 0===n&&(n={});let{x:i,y:a,platform:o,rects:s,elements:f,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:p="floating",altBoundary:h=!1,padding:y=0}=d(n,e),m=w(y),g=f[h?"floating"===p?"reference":"floating":p],b=x(await o.getClippingRect({element:null==(r=await (null==o.isElement?void 0:o.isElement(g)))||r?g:g.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(f.floating)),boundary:u,rootBoundary:c,strategy:l})),v="floating"===p?{x:i,y:a,width:s.floating.width,height:s.floating.height}:s.reference,T=await (null==o.getOffsetParent?void 0:o.getOffsetParent(f.floating)),C=await (null==o.isElement?void 0:o.isElement(T))&&await (null==o.getScale?void 0:o.getScale(T))||{x:1,y:1},M=x(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:v,offsetParent:T,strategy:l}):v);return{top:(b.top-M.top+m.top)/C.y,bottom:(M.bottom-b.bottom+m.bottom)/C.y,left:(b.left-M.left+m.left)/C.x,right:(M.right-b.right+m.right)/C.x}}function A(e,n){return{top:e.top-n.height,right:e.right-n.width,bottom:e.bottom-n.height,left:e.left-n.width}}function E(e){return i.some(n=>e[n]>=0)}async function I(e,n){let{placement:r,platform:i,elements:a}=e,o=await (null==i.isRTL?void 0:i.isRTL(a.floating)),s=p(r),f=h(r),l="y"===g(r),u=["left","top"].includes(s)?-1:1,c=o&&l?-1:1,y=d(n,e),{mainAxis:m,crossAxis:b,alignmentAxis:v}="number"==typeof y?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...y};return f&&"number"==typeof v&&(b="end"===f?-1*v:v),l?{x:b*c,y:m*u}:{x:m*u,y:b*c}}function S(e){return j(e)?(e.nodeName||"").toLowerCase():"#document"}function k(e){var n;return(null==e||null==(n=e.ownerDocument)?void 0:n.defaultView)||window}function N(e){var n;return null==(n=(j(e)?e.ownerDocument:e.document)||window.document)?void 0:n.documentElement}function j(e){return e instanceof Node||e instanceof k(e).Node}function D(e){return e instanceof Element||e instanceof k(e).Element}function _(e){return e instanceof HTMLElement||e instanceof k(e).HTMLElement}function O(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof k(e).ShadowRoot)}function P(e){let{overflow:n,overflowX:r,overflowY:i,display:a}=U(e);return/auto|scroll|overlay|hidden|clip/.test(n+i+r)&&!["inline","contents"].includes(a)}function L(e){return[":popover-open",":modal"].some(n=>{try{return e.matches(n)}catch(e){return!1}})}
457function R(e){let n=z(),r=D(e)?U(e):e;return"none"!==r.transform||"none"!==r.perspective||!!r.containerType&&"normal"!==r.containerType||!n&&!!r.backdropFilter&&"none"!==r.backdropFilter||!n&&!!r.filter&&"none"!==r.filter||["transform","perspective","filter"].some(e=>(r.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(r.contain||"").includes(e))}function z(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function B(e){return["html","body","#document"].includes(S(e))}function U(e){return k(e).getComputedStyle(e)}function F(e){return D(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Z(e){if("html"===S(e))return e;let n=e.assignedSlot||e.parentNode||O(e)&&e.host||N(e);return O(n)?n.host:n}function W(e,n,r){var i;void 0===n&&(n=[]),void 0===r&&(r=!0);let a=function e(n){let r=Z(n);return B(r)?n.ownerDocument?n.ownerDocument.body:n.body:_(r)&&P(r)?r:e(r)}(e),o=a===(null==(i=e.ownerDocument)?void 0:i.body),s=k(a);return o?n.concat(s,s.visualViewport||[],P(a)?a:[],s.frameElement&&r?W(s.frameElement):[]):n.concat(a,W(a,[],r))}function H(e){let n=U(e),r=parseFloat(n.width)||0,i=parseFloat(n.height)||0,a=_(e),o=a?e.offsetWidth:r,f=a?e.offsetHeight:i,l=s(r)!==o||s(i)!==f;return l&&(r=o,i=f),{width:r,height:i,$:l}}function G(e){return D(e)?e:e.contextElement}function q(e){let n=G(e);if(!_(n))return l(1);let r=n.getBoundingClientRect(),{width:i,height:a,$:o}=H(n),f=(o?s(r.width):r.width)/i,u=(o?s(r.height):r.height)/a;return f&&Number.isFinite(f)||(f=1),u&&Number.isFinite(u)||(u=1),{x:f,y:u}}let Y=l(0);function V(e){let n=k(e);return z()&&n.visualViewport?{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}:Y}function Q(e,n,r,i){var a;void 0===n&&(n=!1),void 0===r&&(r=!1);let o=e.getBoundingClientRect(),s=G(e),f=l(1);n&&(i?D(i)&&(f=q(i)):f=q(e));let u=(void 0===(a=r)&&(a=!1),i&&(!a||i===k(s))&&a)?V(s):l(0),c=(o.left+u.x)/f.x,d=(o.top+u.y)/f.y,p=o.width/f.x,h=o.height/f.y;if(s){let e=k(s),n=i&&D(i)?k(i):i,r=e,a=r.frameElement;for(;a&&i&&n!==r;){let e=q(a),n=a.getBoundingClientRect(),i=U(a),o=n.left+(a.clientLeft+parseFloat(i.paddingLeft))*e.x,s=n.top+(a.clientTop+parseFloat(i.paddingTop))*e.y;c*=e.x,d*=e.y,p*=e.x,h*=e.y,c+=o,d+=s,a=(r=k(a)).frameElement}}return x({width:p,height:h,x:c,y:d})}function K(e){return Q(N(e)).left+F(e).scrollLeft}function $(e,n,r){let i;if("viewport"===n)i=function(e,n){let r=k(e),i=N(e),a=r.visualViewport,o=i.clientWidth,s=i.clientHeight,f=0,l=0;if(a){o=a.width,s=a.height;let e=z();(!e||e&&"fixed"===n)&&(f=a.offsetLeft,l=a.offsetTop)}return{width:o,height:s,x:f,y:l}}(e,r);else if("document"===n)i=function(e){let n=N(e),r=F(e),i=e.ownerDocument.body,a=o(n.scrollWidth,n.clientWidth,i.scrollWidth,i.clientWidth),s=o(n.scrollHeight,n.clientHeight,i.scrollHeight,i.clientHeight),f=-r.scrollLeft+K(e),l=-r.scrollTop;return"rtl"===U(i).direction&&(f+=o(n.clientWidth,i.clientWidth)-a),{width:a,height:s,x:f,y:l}}(N(e));else if(D(n))i=function(e,n){let r=Q(e,!0,"fixed"===n),i=r.top+e.clientTop,a=r.left+e.clientLeft,o=_(e)?q(e):l(1),s=e.clientWidth*o.x;return{width:s,height:e.clientHeight*o.y,x:a*o.x,y:i*o.y}}(n,r);else{let r=V(e);i={...n,x:n.x-r.x,y:n.y-r.y}}return x(i)}function J(e){return"static"===U(e).position}function X(e,n){return _(e)&&"fixed"!==U(e).position?n?n(e):e.offsetParent:null}function ee(e,n){let r=k(e);if(L(e))return r;if(!_(e)){let n=Z(e);for(;n&&!B(n);){if(D(n)&&!J(n))return n;n=Z(n)}return r}let i=X(e,n);for(;i&&["table","td","th"].includes(S(i))&&J(i);)i=X(i,n);return i&&B(i)&&J(i)&&!R(i)?r:i||function(e){let n=Z(e);for(;_(n)&&!B(n);){if(R(n))return n;if(L(n))break;n=Z(n)}return null}(e)||r}let et=async function(e){let n=this.getOffsetParent||ee,r=this.getDimensions,i=await r(e.floating);return{reference:function(e,n,r){let i=_(n),a=N(n),o="fixed"===r,s=Q(e,!0,o,n),f={scrollLeft:0,scrollTop:0},u=l(0);if(i||!i&&!o){if(("body"!==S(n)||P(a))&&(f=F(n)),i){let e=Q(n,!0,o,n);u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}else a&&(u.x=K(a))}return{x:s.left+f.scrollLeft-u.x,y:s.top+f.scrollTop-u.y,width:s.width,height:s.height}}(e.reference,await n(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},en={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:n,rect:r,offsetParent:i,strategy:a}=e,o="fixed"===a,s=N(i),f=!!n&&L(n.floating);if(i===s||f&&o)return r;let u={scrollLeft:0,scrollTop:0},c=l(1),d=l(0),p=_(i);if((p||!p&&!o)&&(("body"!==S(i)||P(s))&&(u=F(i)),_(i))){let e=Q(i);c=q(i),d.x=e.x+i.clientLeft,d.y=e.y+i.clientTop}return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-u.scrollLeft*c.x+d.x,y:r.y*c.y-u.scrollTop*c.y+d.y}},getDocumentElement:N,getClippingRect:function(e){let{element:n,boundary:r,rootBoundary:i,strategy:s}=e,f=[..."clippingAncestors"===r?L(n)?[]:function(e,n){let r=n.get(e);if(r)return r;let i=W(e,[],!1).filter(e=>D(e)&&"body"!==S(e)),a=null,o="fixed"===U(e).position,s=o?Z(e):e;for(;D(s)&&!B(s);){let n=U(s),r=R(s);r||"fixed"!==n.position||(a=null),(o?!r&&!a:!r&&"static"===n.position&&!!a&&["absolute","fixed"].includes(a.position)||P(s)&&!r&&function e(n,r){let i=Z(n);return!(i===r||!D(i)||B(i))&&("fixed"===U(i).position||e(i,r))}(e,s))?i=i.filter(e=>e!==s):a=n,s=Z(s)}return n.set(e,i),i}(n,this._c):[].concat(r),i],l=f[0],u=f.reduce((e,r)=>{let i=$(n,r,s);return e.top=o(i.top,e.top),e.right=a(i.right,e.right),e.bottom=a(i.bottom,e.bottom),e.left=o(i.left,e.left),e},$(n,l,s));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:ee,getElementRects:et,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:n,height:r}=H(e);return{width:n,height:r}},getScale:q,isElement:D,isRTL:function(e){return"rtl"===U(e).direction}};function er(e,n,r,i){let s;void 0===i&&(i={});let{ancestorScroll:l=!0,ancestorResize:u=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:p=!1}=i,h=G(e),y=l||u?[...h?W(h):[],...W(n)]:[];
457y.forEach(e=>{l&&e.addEventListener("scroll",r,{passive:!0}),u&&e.addEventListener("resize",r)});let m=h&&d?function(e,n){let r,i=null,s=N(e);function l(){var e;clearTimeout(r),null==(e=i)||e.disconnect(),i=null}return!function u(c,d){void 0===c&&(c=!1),void 0===d&&(d=1),l();let{left:p,top:h,width:y,height:m}=e.getBoundingClientRect();if(c||n(),!y||!m)return;let g=f(h),b=f(s.clientWidth-(p+y)),v={rootMargin:-g+"px "+-b+"px "+-f(s.clientHeight-(h+m))+"px "+-f(p)+"px",threshold:o(0,a(1,d))||1},w=!0;function x(e){let n=e[0].intersectionRatio;if(n!==d){if(!w)return u();n?u(!1,n):r=setTimeout(()=>{u(!1,1e-7)},1e3)}w=!1}try{i=new IntersectionObserver(x,{...v,root:s.ownerDocument})}catch(e){i=new IntersectionObserver(x,v)}i.observe(e)}(!0),l}(h,r):null,g=-1,b=null;c&&(b=new ResizeObserver(e=>{let[i]=e;i&&i.target===h&&b&&(b.unobserve(n),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=b)||e.observe(n)})),r()}),h&&!p&&b.observe(h),b.observe(n));let v=p?Q(e):null;return p&&function n(){let i=Q(e);v&&(i.x!==v.x||i.y!==v.y||i.width!==v.width||i.height!==v.height)&&r(),v=i,s=requestAnimationFrame(n)}(),r(),()=>{var e;y.forEach(e=>{l&&e.removeEventListener("scroll",r),u&&e.removeEventListener("resize",r)}),null==m||m(),null==(e=b)||e.disconnect(),b=null,p&&cancelAnimationFrame(s)}}let ei=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(n){var r,i;let{x:a,y:o,placement:s,middlewareData:f}=n,l=await I(n,e);return s===(null==(r=f.offset)?void 0:r.placement)&&null!=(i=f.arrow)&&i.alignmentOffset?{}:{x:a+l.x,y:o+l.y,data:{...l,placement:s}}}}},ea=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(n){let{x:r,y:i,placement:s}=n,{mainAxis:f=!0,crossAxis:l=!1,limiter:u={fn:e=>{let{x:n,y:r}=e;return{x:n,y:r}}},...c}=d(e,n),h={x:r,y:i},m=await M(n,c),b=g(p(s)),v=y(b),w=h[v],x=h[b];if(f){let e="y"===v?"top":"left",n="y"===v?"bottom":"right",r=w+m[e],i=w-m[n];w=o(r,a(w,i))}if(l){let e="y"===b?"top":"left",n="y"===b?"bottom":"right",r=x+m[e],i=x-m[n];x=o(r,a(x,i))}let T=u.fn({...n,[v]:w,[b]:x});return{...T,data:{x:T.x-r,y:T.y-i}}}}},eo=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(n){var r,i,a,o,s;let{placement:f,middlewareData:l,rects:u,initialPlacement:c,platform:w,elements:x}=n,{mainAxis:T=!0,crossAxis:C=!0,fallbackPlacements:A,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:I="none",flipAlignment:S=!0,...k}=d(e,n);if(null!=(r=l.arrow)&&r.alignmentOffset)return{};let N=p(f),j=g(c),D=p(c)===c,_=await (null==w.isRTL?void 0:w.isRTL(x.floating)),O=A||(D||!S?[v(c)]:function(e){let n=v(e);return[b(e),n,b(n)]}(c)),P="none"!==I;!A&&P&&O.push(...function(e,n,r,i){let a=h(e),o=function(e,n,r){let i=["left","right"],a=["right","left"];switch(e){case"top":case"bottom":if(r)return n?a:i;return n?i:a;case"left":case"right":return n?["top","bottom"]:["bottom","top"];default:return[]}}(p(e),"start"===r,i);return a&&(o=o.map(e=>e+"-"+a),n&&(o=o.concat(o.map(b)))),o}(c,S,I,_));let L=[c,...O],R=await M(n,k),z=[],B=(null==(i=l.flip)?void 0:i.overflows)||[];if(T&&z.push(R[N]),C){let e=function(e,n,r){void 0===r&&(r=!1);let i=h(e),a=y(g(e)),o=m(a),s="x"===a?i===(r?"end":"start")?"right":"left":"start"===i?"bottom":"top";return n.reference[o]>n.floating[o]&&(s=v(s)),[s,v(s)]}(f,u,_);z.push(R[e[0]],R[e[1]])}if(B=[...B,{placement:f,overflows:z}],!z.every(e=>e<=0)){let e=((null==(a=l.flip)?void 0:a.index)||0)+1,n=L[e];if(n)return{data:{index:e,overflows:B},reset:{placement:n}};let r=null==(o=B.filter(e=>e.overflows[0]<=0).sort((e,n)=>e.overflows[1]-n.overflows[1])[0])?void 0:o.placement;if(!r)switch(E){case"bestFit":{let e=null==(s=B.filter(e=>{if(P){let n=g(e.placement);return n===j||"y"===n}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,n)=>e+n,0)]).sort((e,n)=>e[1]-n[1])[0])?void 0:s[0];e&&(r=e);break}case"initialPlacement":r=c}if(f!==r)return{reset:{placement:r}}}return{}}}},es=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(n){let r,i;let{placement:s,rects:f,platform:l,elements:u}=n,{apply:c=()=>{},...y}=d(e,n),m=await M(n,y),b=p(s),v=h(s),w="y"===g(s),{width:x,height:T}=f.floating;"top"===b||"bottom"===b?(r=b,i=v===(await (null==l.isRTL?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(i=b,r="end"===v?"top":"bottom");let C=T-m.top-m.bottom,A=x-m.left-m.right,E=a(T-m[r],C),I=a(x-m[i],A),S=!n.middlewareData.shift,k=E,N=I;if(w?N=v||S?a(I,A):A:k=v||S?a(E,C):C,S&&!v){let e=o(m.left,0),n=o(m.right,0),r=o(m.top,0),i=o(m.bottom,0);w?N=x-2*(0!==e||0!==n?e+n:o(m.left,m.right)):k=T-2*(0!==r||0!==i?r+i:o(m.top,m.bottom))}await c({...n,availableWidth:N,availableHeight:k});let j=await l.getDimensions(u.floating);return x!==j.width||T!==j.height?{reset:{rects:!0}}:{}}}},ef=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(n){let{rects:r}=n,{strategy:i="referenceHidden",...a}=d(e,n);switch(i){case"referenceHidden":{let e=A(await M(n,{...a,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:E(e)}}}case"escaped":{let e=A(await M(n,{...a,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:E(e)}}}default:return{}}}}},el=e=>({name:"arrow",options:e,async fn(n){let{x:r,y:i,placement:s,rects:f,platform:l,elements:u,middlewareData:c}=n,{element:p,padding:b=0}=d(e,n)||{};if(null==p)return{};let v=w(b),x={x:r,y:i},T=y(g(s)),C=m(T),M=await l.getDimensions(p),A="y"===T,E=A?"clientHeight":"clientWidth",I=f.reference[C]+f.reference[T]-x[T]-f.floating[C],S=x[T]-f.reference[T],k=await (null==l.getOffsetParent?void 0:l.getOffsetParent(p)),N=k?k[E]:0;N&&await (null==l.isElement?void 0:l.isElement(k))||(N=u.floating[E]||f.floating[C]);let j=N/2-M[C]/2-1,D=a(v[A?"top":"left"],j),_=a(v[A?"bottom":"right"],j),O=N-M[C]-_,P=N/2-M[C]/2+(I/2-S/2),L=o(D,a(P,O)),R=!c.arrow&&null!=h(s)&&P!==L&&f.reference[C]/2-(P<D?D:_)-M[C]/2<0,z=R?P<D?P-D:P-O:0;return{[T]:x[T]+z,data:{[T]:L,centerOffset:P-L-z,...R&&{alignmentOffset:z}},reset:R}}}),eu=function(e){return void 0===e&&(e={}),{options:e,fn(n){let{x:r,y:i,placement:a,rects:o,middlewareData:s}=n,{offset:f=0,mainAxis:l=!0,crossAxis:u=!0}=d(e,n),c={x:r,y:i},h=g(a),m=y(h),b=c[m],v=c[h],w=d(f,n),x="number"==typeof w?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(l){let e="y"===m?"height":"width",n=o.reference[m]-o.floating[e]+x.mainAxis,r=o.reference[m]+o.reference[e]-x.mainAxis;b<n?b=n:b>r&&(b=r)}if(u){var T,C;let e="y"===m?"width":"height",n=["top","left"].includes(p(a)),r=o.reference[h]-o.floating[e]+(n&&(null==(T=s.offset)?void 0:T[h])||0)+(n?0:x.crossAxis),i=o.reference[h]+o.reference[e]+(n?0:(null==(C=s.offset)?void 0:C[h])||0)-(n?x.crossAxis:0);v<r?v=r:v>i&&(v=i)}return{[m]:b,[h]:v}}}},ec=(e,n,r)=>{let i=new Map,a={platform:en,...r},o={...a.platform,_c:i};return C(e,n,{...a,platform:o})}},1371:function(e,n,r){"use strict";r.d(n,{Cp:function(){return v},RR:function(){return g},YF:function(){return d},cv:function(){return h},dp:function(){return b},dr:function(){return m},uY:function(){return y},x7:function(){return w}});var i=r(18573),a=r(67294),o=r(73935),s="undefined"!=typeof document?a.useLayoutEffect:a.useEffect;function f(e,n){let r,i,a;if(e===n)return!0;
457if(typeof e!=typeof n)return!1;if("function"==typeof e&&e.toString()===n.toString())return!0;if(e&&n&&"object"==typeof e){if(Array.isArray(e)){if((r=e.length)!==n.length)return!1;for(i=r;0!=i--;)if(!f(e[i],n[i]))return!1;return!0}if((r=(a=Object.keys(e)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!({}).hasOwnProperty.call(n,a[i]))return!1;for(i=r;0!=i--;){let r=a[i];if(("_owner"!==r||!e.$$typeof)&&!f(e[r],n[r]))return!1}return!0}return e!=e&&n!=n}function l(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function u(e,n){let r=l(e);return Math.round(n*r)/r}function c(e){let n=a.useRef(e);return s(()=>{n.current=e}),n}function d(e){void 0===e&&(e={});let{placement:n="bottom",strategy:r="absolute",middleware:d=[],platform:p,elements:{reference:h,floating:y}={},transform:m=!0,whileElementsMounted:g,open:b}=e,[v,w]=a.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[x,T]=a.useState(d);f(x,d)||T(d);let[C,M]=a.useState(null),[A,E]=a.useState(null),I=a.useCallback(e=>{e!==j.current&&(j.current=e,M(e))},[]),S=a.useCallback(e=>{e!==D.current&&(D.current=e,E(e))},[]),k=h||C,N=y||A,j=a.useRef(null),D=a.useRef(null),_=a.useRef(v),O=null!=g,P=c(g),L=c(p),R=a.useCallback(()=>{if(!j.current||!D.current)return;let e={placement:n,strategy:r,middleware:x};L.current&&(e.platform=L.current),(0,i.oo)(j.current,D.current,e).then(e=>{let n={...e,isPositioned:!0};z.current&&!f(_.current,n)&&(_.current=n,o.flushSync(()=>{w(n)}))})},[x,n,r,L]);s(()=>{!1===b&&_.current.isPositioned&&(_.current.isPositioned=!1,w(e=>({...e,isPositioned:!1})))},[b]);let z=a.useRef(!1);s(()=>(z.current=!0,()=>{z.current=!1}),[]),s(()=>{if(k&&(j.current=k),N&&(D.current=N),k&&N){if(P.current)return P.current(k,N,R);R()}},[k,N,R,P,O]);let B=a.useMemo(()=>({reference:j,floating:D,setReference:I,setFloating:S}),[I,S]),U=a.useMemo(()=>({reference:k,floating:N}),[k,N]),F=a.useMemo(()=>{let e={position:r,left:0,top:0};if(!U.floating)return e;let n=u(U.floating,v.x),i=u(U.floating,v.y);return m?{...e,transform:"translate("+n+"px, "+i+"px)",...l(U.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:n,top:i}},[r,m,U.floating,v.x,v.y]);return a.useMemo(()=>({...v,update:R,refs:B,elements:U,floatingStyles:F}),[v,R,B,U,F])}let p=e=>({name:"arrow",options:e,fn(n){let{element:r,padding:a}="function"==typeof e?e(n):e;return r&&({}).hasOwnProperty.call(r,"current")?null!=r.current?(0,i.x7)({element:r.current,padding:a}).fn(n):{}:r?(0,i.x7)({element:r,padding:a}).fn(n):{}}}),h=(e,n)=>({...(0,i.cv)(e),options:[e,n]}),y=(e,n)=>({...(0,i.uY)(e),options:[e,n]}),m=(e,n)=>({...(0,i.dr)(e),options:[e,n]}),g=(e,n)=>({...(0,i.RR)(e),options:[e,n]}),b=(e,n)=>({...(0,i.dp)(e),options:[e,n]}),v=(e,n)=>({...(0,i.Cp)(e),options:[e,n]}),w=(e,n)=>({...p(e),options:[e,n]})},80361:function(e,n,r){"use strict";r.d(n,{ZT:function(){return a},ev:function(){return s},pi:function(){return o}});var i=function(e,n){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])})(e,n)};function a(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}i(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++)for(var a in n=arguments[r])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e}).apply(this,arguments)};function s(e,n,r){if(r||2==arguments.length)for(var i,a=0,o=n.length;a<o;a++)!i&&a in n||(i||(i=Array.prototype.slice.call(n,0,a)),i[a]=n[a]);return e.concat(i||Array.prototype.slice.call(n))}"function"==typeof SuppressedError&&SuppressedError},93527:function(e,n,r){"use strict";function i(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`positive integer expected, not ${e}`)}function a(e,...n){if(!(e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name))throw Error("Uint8Array expected");if(n.length>0&&!n.includes(e.length))throw Error(`Uint8Array expected of length ${n}, not of length=${e.length}`)}function o(e,n=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(n&&e.finished)throw Error("Hash#digest() has already been called")}function s(e,n){a(e);let r=n.outputLen;if(e.length<r)throw Error(`digestInto() expects output buffer of length at least ${r}`)}r.d(n,{Gg:function(){return o},J8:function(){return s},Rx:function(){return i},aI:function(){return a}})},53932:function(e,n,r){"use strict";r.d(n,{J:function(){return p}});var i=r(93527),a=r(53465);let o=(e,n,r)=>e&n^~e&r,s=(e,n,r)=>e&n^e&r^n&r;class f extends a.kb{constructor(e,n,r,i){super(),this.blockLen=e,this.outputLen=n,this.padOffset=r,this.isLE=i,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,a.GL)(this.buffer)}update(e){(0,i.Gg)(this);let{view:n,buffer:r,blockLen:o}=this,s=(e=(0,a.O0)(e)).length;for(let i=0;i<s;){let f=Math.min(o-this.pos,s-i);if(f===o){let n=(0,a.GL)(e);for(;o<=s-i;i+=o)this.process(n,i);continue}r.set(e.subarray(i,i+f),this.pos),this.pos+=f,i+=f,this.pos===o&&(this.process(n,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,i.Gg)(this),(0,i.J8)(e,this),this.finished=!0;let{buffer:n,view:r,blockLen:o,isLE:s}=this,{pos:f}=this;
457n[f++]=128,this.buffer.subarray(f).fill(0),this.padOffset>o-f&&(this.process(r,0),f=0);for(let e=f;e<o;e++)n[e]=0;!function(e,n,r,i){if("function"==typeof e.setBigUint64)return e.setBigUint64(n,r,i);let a=BigInt(32),o=BigInt(4294967295),s=Number(r>>a&o),f=Number(r&o),l=i?4:0,u=i?0:4;e.setUint32(n+l,s,i),e.setUint32(n+u,f,i)}(r,o-8,BigInt(8*this.length),s),this.process(r,0);let l=(0,a.GL)(e),u=this.outputLen;if(u%4)throw Error("_sha2: outputLen should be aligned to 32bit");let c=u/4,d=this.get();if(c>d.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;e<c;e++)l.setUint32(4*e,d[e],s)}digest(){let{buffer:e,outputLen:n}=this;this.digestInto(e);let r=e.slice(0,n);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:n,buffer:r,length:i,finished:a,destroyed:o,pos:s}=this;return e.length=i,e.pos=s,e.finished=a,e.destroyed=o,i%n&&e.buffer.set(r),e}}let l=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),u=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),c=new Uint32Array(64);class d extends f{constructor(){super(64,32,8,!1),this.A=0|u[0],this.B=0|u[1],this.C=0|u[2],this.D=0|u[3],this.E=0|u[4],this.F=0|u[5],this.G=0|u[6],this.H=0|u[7]}get(){let{A:e,B:n,C:r,D:i,E:a,F:o,G:s,H:f}=this;return[e,n,r,i,a,o,s,f]}set(e,n,r,i,a,o,s,f){this.A=0|e,this.B=0|n,this.C=0|r,this.D=0|i,this.E=0|a,this.F=0|o,this.G=0|s,this.H=0|f}process(e,n){for(let r=0;r<16;r++,n+=4)c[r]=e.getUint32(n,!1);for(let e=16;e<64;e++){let n=c[e-15],r=c[e-2],i=(0,a.np)(n,7)^(0,a.np)(n,18)^n>>>3,o=(0,a.np)(r,17)^(0,a.np)(r,19)^r>>>10;c[e]=o+c[e-7]+i+c[e-16]|0}let{A:r,B:i,C:f,D:u,E:d,F:p,G:h,H:y}=this;for(let e=0;e<64;e++){let n=y+((0,a.np)(d,6)^(0,a.np)(d,11)^(0,a.np)(d,25))+o(d,p,h)+l[e]+c[e]|0,m=((0,a.np)(r,2)^(0,a.np)(r,13)^(0,a.np)(r,22))+s(r,i,f)|0;y=h,h=p,p=d,d=u+n|0,u=f,f=i,i=r,r=n+m|0}r=r+this.A|0,i=i+this.B|0,f=f+this.C|0,u=u+this.D|0,d=d+this.E|0,p=p+this.F|0,h=h+this.G|0,y=y+this.H|0,this.set(r,i,f,u,d,p,h,y)}roundClean(){c.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}let p=(0,a.hE)(()=>new d)},53465:function(e,n,r){"use strict";r.d(n,{GL:function(){return o},Jq:function(){return a},O0:function(){return c},hE:function(){return p},iA:function(){return f},kb:function(){return d},l1:function(){return u},np:function(){return s}});var i=r(93527);let a=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),o=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),s=(e,n)=>e<<32-n|e>>>n,f=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],l=e=>e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255;function u(e){for(let n=0;n<e.length;n++)e[n]=l(e[n])}function c(e){return"string"==typeof e&&(e=function(e){if("string"!=typeof e)throw Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}(e)),(0,i.aI)(e),e}class d{clone(){return this._cloneInto()}}function p(e){let n=n=>e().update(c(n)).digest(),r=e();return n.outputLen=r.outputLen,n.blockLen=r.blockLen,n.create=()=>e(),n}},73934:function(e,n,r){"use strict";r.d(n,{OB:function(){return f},g1:function(){return i}});var i={Ethereum:"https://ethereum.rpc.thirdweb.com",Goerli:"https://goerli.rpc.thirdweb.com",Mumbai:"https://mumbai.rpc.thirdweb.com",Polygon:"https://polygon.rpc.thirdweb.com",Avalanche:"https://avalanche.rpc.thirdweb.com",Optimism:"https://optimism.rpc.thirdweb.com",OptimismGoerli:"https://optimism-goerli.rpc.thirdweb.com",BSC:"https://binance.rpc.thirdweb.com",BSCTestnet:"https://binance-testnet.rpc.thirdweb.com",ArbitrumOne:"https://arbitrum.rpc.thirdweb.com",ArbitrumGoerli:"https://arbitrum-goerli.rpc.thirdweb.com",Fantom:"https://fantom.rpc.thirdweb.com",FantomTestnet:"https://fantom-testnet.rpc.thirdweb.com",Sepolia:"https://sepolia.rpc.thirdweb.com",AvalancheFuji:"https://avalanche-fuji.rpc.thirdweb.com"},a=()=>"undefined"!=typeof window&&"true"===window.localStorage.getItem("IS_PAPER_DEV"),o=()=>"undefined"!=typeof window&&window.location.origin.includes("paper.xyz"),s=()=>"undefined"!=typeof window&&window.location.origin.includes("thirdweb.com"),f=()=>{var e;return a()?null!=(e=window.localStorage.getItem("PAPER_DEV_URL"))?e:"http://localhost:3000":o()||s()?window.location.origin:"https://withpaper.com"}},36206:function(e,n,r){"use strict";function i(e,n,{checkForDefaultPrevented:r=!0}={}){return function(i){if(e?.(i),!1===r||!i.defaultPrevented)return n?.(i)}}r.d(n,{M:function(){return i}})},28771:function(e,n,r){"use strict";r.d(n,{F:function(){return a},e:function(){return o}});var i=r(67294);function a(...e){return n=>
457e.forEach(e=>{"function"==typeof e?e(n):null!=e&&(e.current=n)})}function o(...e){return i.useCallback(a(...e),e)}},25360:function(e,n,r){"use strict";r.d(n,{b:function(){return s},k:function(){return o}});var i=r(67294),a=r(85893);function o(e,n){let r=i.createContext(n);function o(e){let{children:n,...o}=e,s=i.useMemo(()=>o,Object.values(o));return(0,a.jsx)(r.Provider,{value:s,children:n})}return o.displayName=e+"Provider",[o,function(a){let o=i.useContext(r);if(o)return o;if(void 0!==n)return n;throw Error(`\`${a}\` must be used within \`${e}\``)}]}function s(e,n=[]){let r=[],o=()=>{let n=r.map(e=>i.createContext(e));return function(r){let a=r?.[e]||n;return i.useMemo(()=>({[`__scope${e}`]:{...r,[e]:a}}),[r,a])}};return o.scopeName=e,[function(n,o){let s=i.createContext(o),f=r.length;function l(n){let{scope:r,children:o,...l}=n,u=r?.[e][f]||s,c=i.useMemo(()=>l,Object.values(l));return(0,a.jsx)(u.Provider,{value:c,children:o})}return r=[...r,o],l.displayName=n+"Provider",[l,function(r,a){let l=a?.[e][f]||s,u=i.useContext(l);if(u)return u;if(void 0!==o)return o;throw Error(`\`${r}\` must be used within \`${n}\``)}]},function(...e){let n=e[0];if(1===e.length)return n;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let a=r.reduce((n,{useScope:r,scopeName:i})=>{let a=r(e)[`__scope${i}`];return{...n,...a}},{});return i.useMemo(()=>({[`__scope${n.scopeName}`]:a}),[a])}};return r.scopeName=n.scopeName,r}(o,...n)]}},46063:function(e,n,r){"use strict";r.d(n,{XB:function(){return p}});var i,a=r(67294),o=r(36206),s=r(75320),f=r(28771),l=r(79698),u=r(85893),c="dismissableLayer.update",d=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),p=a.forwardRef((e,n)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:p,onPointerDownOutside:m,onFocusOutside:g,onInteractOutside:b,onDismiss:v,...w}=e,x=a.useContext(d),[T,C]=a.useState(null),M=T?.ownerDocument??globalThis?.document,[,A]=a.useState({}),E=(0,f.e)(n,e=>C(e)),I=Array.from(x.layers),[S]=[...x.layersWithOutsidePointerEventsDisabled].slice(-1),k=I.indexOf(S),N=T?I.indexOf(T):-1,j=x.layersWithOutsidePointerEventsDisabled.size>0,D=N>=k,_=function(e,n=globalThis?.document){let r=(0,l.W)(e),i=a.useRef(!1),o=a.useRef(()=>{});return a.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let i=function(){y("dismissableLayer.pointerDownOutside",r,a,{discrete:!0})},a={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",o.current),o.current=i,n.addEventListener("click",o.current,{once:!0})):i()}else n.removeEventListener("click",o.current);i.current=!1},a=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(a),n.removeEventListener("pointerdown",e),n.removeEventListener("click",o.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let n=e.target,r=[...x.branches].some(e=>e.contains(n));!D||r||(m?.(e),b?.(e),e.defaultPrevented||v?.())},M),O=function(e,n=globalThis?.document){let r=(0,l.W)(e),i=a.useRef(!1);return a.useEffect(()=>{let e=e=>{e.target&&!i.current&&y("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let n=e.target;[...x.branches].some(e=>e.contains(n))||(g?.(e),b?.(e),e.defaultPrevented||v?.())},M);return!function(e,n=globalThis?.document){let r=(0,l.W)(e);a.useEffect(()=>{let e=e=>{"Escape"===e.key&&r(e)};return n.addEventListener("keydown",e,{capture:!0}),()=>n.removeEventListener("keydown",e,{capture:!0})},[r,n])}(e=>{N!==x.layers.size-1||(p?.(e),!e.defaultPrevented&&v&&(e.preventDefault(),v()))},M),a.useEffect(()=>{if(T)return r&&(0===x.layersWithOutsidePointerEventsDisabled.size&&(i=M.body.style.pointerEvents,M.body.style.pointerEvents="none"),x.layersWithOutsidePointerEventsDisabled.add(T)),x.layers.add(T),h(),()=>{r&&1===x.layersWithOutsidePointerEventsDisabled.size&&(M.body.style.pointerEvents=i)}},[T,M,r,x]),a.useEffect(()=>()=>{T&&(x.layers.delete(T),x.layersWithOutsidePointerEventsDisabled.delete(T),h())},[T,x]),a.useEffect(()=>{let e=()=>A({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,u.jsx)(s.WV.div,{...w,ref:E,style:{pointerEvents:j?D?"auto":"none":void 0,...e.style},onFocusCapture:(0,o.M)(e.onFocusCapture,O.onFocusCapture),onBlurCapture:(0,o.M)(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:(0,o.M)(e.onPointerDownCapture,_.onPointerDownCapture)})});function h(){let e=new CustomEvent(c);document.dispatchEvent(e)}function y(e,n,r,{discrete:i}){let a=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});n&&a.addEventListener(e,n,{once:!0}),i?(0,s.jH)(a,o):a.dispatchEvent(o)}
457p.displayName="DismissableLayer",a.forwardRef((e,n)=>{let r=a.useContext(d),i=a.useRef(null),o=(0,f.e)(n,i);return a.useEffect(()=>{let e=i.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,u.jsx)(s.WV.div,{...e,ref:o})}).displayName="DismissableLayerBranch"},91276:function(e,n,r){"use strict";r.d(n,{M:function(){return l}});var i,a=r(67294),o=r(9981),s=(i||(i=r.t(a,2)))["useId".toString()]||(()=>void 0),f=0;function l(e){let[n,r]=a.useState(s());return(0,o.b)(()=>{e||r(e=>e??String(f++))},[e]),e||(n?`radix-${n}`:"")}},42651:function(e,n,r){"use strict";r.d(n,{h:function(){return l}});var i=r(67294),a=r(73935),o=r(75320),s=r(9981),f=r(85893),l=i.forwardRef((e,n)=>{let{container:r,...l}=e,[u,c]=i.useState(!1);(0,s.b)(()=>c(!0),[]);let d=r||u&&globalThis?.document?.body;return d?a.createPortal((0,f.jsx)(o.WV.div,{...l,ref:n}),d):null});l.displayName="Portal"},29115:function(e,n,r){"use strict";r.d(n,{z:function(){return f}});var i=r(67294),a=r(73935),o=r(28771),s=r(9981),f=e=>{let n,r;let{present:f,children:u}=e,c=function(e){var n,r;let[o,f]=i.useState(),u=i.useRef({}),c=i.useRef(e),d=i.useRef("none"),[p,h]=(n=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},i.useReducer((e,n)=>r[e][n]??e,n));return i.useEffect(()=>{let e=l(u.current);d.current="mounted"===p?e:"none"},[p]),(0,s.b)(()=>{let n=u.current,r=c.current;if(r!==e){let i=d.current,a=l(n);e?h("MOUNT"):"none"===a||n?.display==="none"?h("UNMOUNT"):r&&i!==a?h("ANIMATION_OUT"):h("UNMOUNT"),c.current=e}},[e,h]),(0,s.b)(()=>{if(o){let e=e=>{let n=l(u.current).includes(e.animationName);e.target===o&&n&&a.flushSync(()=>h("ANIMATION_END"))},n=e=>{e.target===o&&(d.current=l(u.current))};return o.addEventListener("animationstart",n),o.addEventListener("animationcancel",e),o.addEventListener("animationend",e),()=>{o.removeEventListener("animationstart",n),o.removeEventListener("animationcancel",e),o.removeEventListener("animationend",e)}}h("ANIMATION_END")},[o,h]),{isPresent:["mounted","unmountSuspended"].includes(p),ref:i.useCallback(e=>{e&&(u.current=getComputedStyle(e)),f(e)},[])}}(f),d="function"==typeof u?u({present:c.isPresent}):i.Children.only(u),p=(0,o.e)(c.ref,(n=Object.getOwnPropertyDescriptor(d.props,"ref")?.get)&&"isReactWarning"in n&&n.isReactWarning?d.ref:(n=Object.getOwnPropertyDescriptor(d,"ref")?.get)&&"isReactWarning"in n&&n.isReactWarning?d.props.ref:d.props.ref||d.ref);return"function"==typeof u||c.isPresent?i.cloneElement(d,{ref:p}):null};function l(e){return e?.animationName||"none"}f.displayName="Presence"},75320:function(e,n,r){"use strict";r.d(n,{WV:function(){return f},jH:function(){return l}});var i=r(67294),a=r(73935),o=r(88426),s=r(85893),f=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,n)=>{let r=i.forwardRef((e,r)=>{let{asChild:i,...a}=e,f=i?o.g7:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(f,{...a,ref:r})});return r.displayName=`Primitive.${n}`,{...e,[n]:r}},{});function l(e,n){e&&a.flushSync(()=>e.dispatchEvent(n))}},88426:function(e,n,r){"use strict";r.d(n,{A4:function(){return l},g7:function(){return s}});var i=r(67294),a=r(28771),o=r(85893),s=i.forwardRef((e,n)=>{let{children:r,...a}=e,s=i.Children.toArray(r),l=s.find(u);if(l){let e=l.props.children,r=s.map(n=>n!==l?n:i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null);return(0,o.jsx)(f,{...a,ref:n,children:i.isValidElement(e)?i.cloneElement(e,void 0,r):null})}return(0,o.jsx)(f,{...a,ref:n,children:r})});s.displayName="Slot";var f=i.forwardRef((e,n)=>{let{children:r,...o}=e;if(i.isValidElement(r)){let e,s;let f=(e=Object.getOwnPropertyDescriptor(r.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?r.ref:(e=Object.getOwnPropertyDescriptor(r,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?r.props.ref:r.props.ref||r.ref;return i.cloneElement(r,{...function(e,n){let r={...n};for(let i in n){let a=e[i],o=n[i];/^on[A-Z]/.test(i)?a&&o?r[i]=(...e)=>{o(...e),a(...e)}:a&&(r[i]=a):"style"===i?r[i]={...a,...o}
457:"className"===i&&(r[i]=[a,o].filter(Boolean).join(" "))}return{...e,...r}}(o,r.props),ref:n?(0,a.F)(n,f):f})}return i.Children.count(r)>1?i.Children.only(null):null});f.displayName="SlotClone";var l=({children:e})=>(0,o.jsx)(o.Fragment,{children:e});function u(e){return i.isValidElement(e)&&e.type===l}},79698:function(e,n,r){"use strict";r.d(n,{W:function(){return a}});var i=r(67294);function a(e){let n=i.useRef(e);return i.useEffect(()=>{n.current=e}),i.useMemo(()=>(...e)=>n.current?.(...e),[])}},77342:function(e,n,r){"use strict";r.d(n,{T:function(){return o}});var i=r(67294),a=r(79698);function o({prop:e,defaultProp:n,onChange:r=()=>{}}){let[o,s]=function({defaultProp:e,onChange:n}){let r=i.useState(e),[o]=r,s=i.useRef(o),f=(0,a.W)(n);return i.useEffect(()=>{s.current!==o&&(f(o),s.current=o)},[o,s,f]),r}({defaultProp:n,onChange:r}),f=void 0!==e,l=f?e:o,u=(0,a.W)(r);return[l,i.useCallback(n=>{if(f){let r="function"==typeof n?n(e):n;r!==e&&u(r)}else s(n)},[f,e,s,u])]}},9981:function(e,n,r){"use strict";r.d(n,{b:function(){return a}});var i=r(67294),a=globalThis?.document?i.useLayoutEffect:()=>{}},15761:function(e,n,r){"use strict";r.d(n,{j:function(){return s}});var i=r(33989),a=r(32161);class o extends i.l{constructor(){super(),this.setup=e=>{if(!a.sk&&window.addEventListener){let n=()=>e();return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),()=>{window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}}setEventListener(e){var n;this.setup=e,null==(n=this.cleanup)||n.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach(({listener:e})=>{e()})}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}}let s=new o},30819:function(e,n,r){"use strict";r.d(n,{_:function(){return i}});let i=console},89886:function(e,n,r){"use strict";r.d(n,{R:function(){return l},m:function(){return f}});var i=r(30819),a=r(30081),o=r(89643),s=r(72379);class f extends o.F{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||i._,this.observers=[],this.state=e.state||l(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(n=>n!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,n;return null!=(e=null==(n=this.retryer)?void 0:n.continue())?e:this.execute()}async execute(){var e,n,r,i,a,o,f,l,u,c,d,p,h,y,m,g,b,v,w,x;let T="loading"===this.state.status;try{if(!T){this.dispatch({type:"loading",variables:this.options.variables}),await (null==(u=(c=this.mutationCache.config).onMutate)?void 0:u.call(c,this.state.variables,this));let e=await (null==(d=(p=this.options).onMutate)?void 0:d.call(p,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}let h=await (()=>{var e;return this.retryer=(0,s.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,n)=>{this.dispatch({type:"failed",failureCount:e,error:n})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise})();return await (null==(e=(n=this.mutationCache.config).onSuccess)?void 0:e.call(n,h,this.state.variables,this.state.context,this)),await (null==(r=(i=this.options).onSuccess)?void 0:r.call(i,h,this.state.variables,this.state.context)),await (null==(a=(o=this.mutationCache.config).onSettled)?void 0:a.call(o,h,null,this.state.variables,this.state.context,this)),await (null==(f=(l=this.options).onSettled)?void 0:f.call(l,h,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:h}),h}catch(e){try{throw await (null==(h=(y=this.mutationCache.config).onError)?void 0:h.call(y,e,this.state.variables,this.state.context,this)),await (null==(m=(g=this.options).onError)?void 0:m.call(g,e,this.state.variables,this.state.context)),await (null==(b=(v=this.mutationCache.config).onSettled)?void 0:b.call(v,void 0,e,this.state.variables,this.state.context,this)),await (null==(w=(x=this.options).onSettled)?void 0:w.call(x,void 0,e,this.state.variables,this.state.context)),e}finally{this.dispatch({type:"error",error:e})}}}dispatch(e){this.state=(n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"loading":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!(0,s.Kw)(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPau
457sed:!1,status:"error"};case"setState":return{...n,...e.state}}})(this.state),a.V.batch(()=>{this.observers.forEach(n=>{n.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}function l(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}},30081:function(e,n,r){"use strict";r.d(n,{V:function(){return a}});var i=r(32161);let a=function(){let e=[],n=0,r=e=>{e()},a=e=>{e()},o=a=>{n?e.push(a):(0,i.A4)(()=>{r(a)})},s=()=>{let n=e;e=[],n.length&&(0,i.A4)(()=>{a(()=>{n.forEach(e=>{r(e)})})})};return{batch:e=>{let r;n++;try{r=e()}finally{--n||s()}return r},batchCalls:e=>(...n)=>{o(()=>{e(...n)})},schedule:o,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{a=e}}}()},96474:function(e,n,r){"use strict";r.d(n,{N:function(){return f}});var i=r(33989),a=r(32161);let o=["online","offline"];class s extends i.l{constructor(){super(),this.setup=e=>{if(!a.sk&&window.addEventListener){let n=()=>e();return o.forEach(e=>{window.addEventListener(e,n,!1)}),()=>{o.forEach(e=>{window.removeEventListener(e,n)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}}setEventListener(e){var n;this.setup=e,null==(n=this.cleanup)||n.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()})}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach(({listener:e})=>{e()})}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}}let f=new s},89643:function(e,n,r){"use strict";r.d(n,{F:function(){return a}});var i=r(32161);class a{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,i.PN)(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:i.sk?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}},72379:function(e,n,r){"use strict";r.d(n,{DV:function(){return u},Kw:function(){return f},Mz:function(){return c}});var i=r(15761),a=r(96474),o=r(32161);function s(e){return Math.min(1e3*2**e,3e4)}function f(e){return(null!=e?e:"online")!=="online"||a.N.isOnline()}class l{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function u(e){return e instanceof l}function c(e){let n,r,u,c=!1,d=0,p=!1,h=new Promise((e,n)=>{r=e,u=n}),y=()=>!i.j.isFocused()||"always"!==e.networkMode&&!a.N.isOnline(),m=i=>{p||(p=!0,null==e.onSuccess||e.onSuccess(i),null==n||n(),r(i))},g=r=>{p||(p=!0,null==e.onError||e.onError(r),null==n||n(),u(r))},b=()=>new Promise(r=>{n=e=>{let n=p||!y();return n&&r(e),n},null==e.onPause||e.onPause()}).then(()=>{n=void 0,p||null==e.onContinue||e.onContinue()}),v=()=>{let n;if(!p){try{n=e.fn()}catch(e){n=Promise.reject(e)}Promise.resolve(n).then(m).catch(n=>{var r,i;if(p)return;let a=null!=(r=e.retry)?r:3,f=null!=(i=e.retryDelay)?i:s,l="function"==typeof f?f(d,n):f,u=!0===a||"number"==typeof a&&d<a||"function"==typeof a&&a(d,n);if(c||!u){g(n);return}d++,null==e.onFail||e.onFail(d,n),(0,o.Gh)(l).then(()=>{if(y())return b()}).then(()=>{c?g(n):v()})})}};return f(e.networkMode)?v():b().then(v),{promise:h,cancel:n=>{p||(g(new l(n)),null==e.abort||e.abort())},continue:()=>(null==n?void 0:n())?h:Promise.resolve(),cancelRetry:()=>{c=!0},continueRetry:()=>{c=!1}}}},33989:function(e,n,r){"use strict";r.d(n,{l:function(){return i}});class i{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){let n={listener:e};return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},32161:function(e,n,r){"use strict";r.d(n,{A4:function(){return M},G9:function(){return A},Gh:function(){return C},I6:function(){return c},Kp:function(){return f},PN:function(){return s},Rm:function(){return h},SE:function(){return o},VS:function(){return b},X7:function(){return p},ZT:function(){return a},_v:function(){return l},_x:function(){return d},lV:function(){return u},oE:function(){return E},sk:function(){return i},to:function(){return m},yF:function(){return y}});let i="undefined"==typeof window||"Deno"in window;function a(){}function o(e,n){return"function"==typeof e?e(n):e}function s(e){return"number"==typeof e&&e>=0&&e!==1/0}function f(e,n){return Math.max(e+(n||0)-Date.now(),0)}function l(e,n,r){return T(e)?"function"==typeof n?{...r,queryKey:e,queryFn:n}:{...n,queryKey:e}:e}function u(e,n,r){return T(e)?"function"==typeof n?{...r,mutationKey:e,mutationFn:n}:{...n,mutationKey:e}:"function"==typeof e?{...n,mutationFn:e}:{...e}}function c(e,n,r){return T(e)?[{...n,queryKey:e},r]:[e||{},n]}function d(e,n){let{type:r="all",exact:i,fetchStatus:a,predicate:o,queryKey:s,stale:f}=e;if(T(s)){if(i){if(n.queryHash!==h(s,n.options))return!1}else{if(!g(n.queryKey,s))return!1}}if("all"!==r){let e=n.isActive();if("active"===r&&!e||"inactive"===r&&e)return!1}return("boolean"!=typeof f||n.isStale()===f)&&(void 0===a||a===n.state.fetchStatus)&&(!o||!!o(n))}function p(e,n){let{exact:r,fetching:i,predicate:a,mutationKey:o}=e;if(T(o)){if(!n.options.mutationKey)return!1;if(r){if(y(n.options.mutationKey)!==y(o))return!1}else{if(!g(n.options.mutationKey,o))return!1}}return("boolean"!=typeof i||"loading"===n.state.status===i)&&(!a||!!a(n))}function h(e,n){return((null==n?void 0:n.queryKeyHashFn)||y)(e)}function y(e){return JSON.stringify(e,(e,n)=>w(n)?Object.keys(n).sort().reduce((e,r)=>(e[r]=n[r],e),{}):n)}function m(e,n){return g(e,n)}
457function g(e,n){return e===n||typeof e==typeof n&&!!e&&!!n&&"object"==typeof e&&"object"==typeof n&&!Object.keys(n).some(r=>!g(e[r],n[r]))}function b(e,n){if(e&&!n||n&&!e)return!1;for(let r in e)if(e[r]!==n[r])return!1;return!0}function v(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function w(e){if(!x(e))return!1;let n=e.constructor;if(void 0===n)return!0;let r=n.prototype;return!!(x(r)&&r.hasOwnProperty("isPrototypeOf"))}function x(e){return"[object Object]"===Object.prototype.toString.call(e)}function T(e){return Array.isArray(e)}function C(e){return new Promise(n=>{setTimeout(n,e)})}function M(e){C(0).then(e)}function A(){if("function"==typeof AbortController)return new AbortController}function E(e,n,r){return null!=r.isDataEqual&&r.isDataEqual(e,n)?e:"function"==typeof r.structuralSharing?r.structuralSharing(e,n):!1!==r.structuralSharing?function e(n,r){if(n===r)return n;let i=v(n)&&v(r);if(i||w(n)&&w(r)){let a=i?n.length:Object.keys(n).length,o=i?r:Object.keys(r),s=o.length,f=i?[]:{},l=0;for(let a=0;a<s;a++){let s=i?a:o[a];f[s]=e(n[s],r[s]),f[s]===n[s]&&l++}return a===s&&l===a?n:f}return r}(e,n):n}},85945:function(e,n,r){"use strict";r.d(n,{NL:function(){return f},aH:function(){return l}});var i=r(67294);let a=i.createContext(void 0),o=i.createContext(!1);function s(e,n){return e||(n&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=a),window.ReactQueryClientContext):a)}let f=({context:e}={})=>{let n=i.useContext(s(e,i.useContext(o)));if(!n)throw Error("No QueryClient set, use QueryClientProvider to set one");return n},l=({client:e,children:n,context:r,contextSharing:a=!1})=>{i.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);let f=s(r,a);return i.createElement(o.Provider,{value:!r&&a},i.createElement(f.Provider,{value:e},n))}},48228:function(e,n,r){"use strict";r.d(n,{D:function(){return p}});var i=r(67294),a=r(32161),o=r(89886),s=r(30081),f=r(33989);class l extends f.l{constructor(e,n){super(),this.client=e,this.setOptions(n),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var n;let r=this.options;this.options=this.client.defaultMutationOptions(e),(0,a.VS)(r,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(n=this.currentMutation)||n.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.currentMutation)||e.removeObserver(this)}}onMutationUpdate(e){this.updateResult();let n={listeners:!0};"success"===e.type?n.onSuccess=!0:"error"===e.type&&(n.onError=!0),this.notify(n)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,n){return this.mutateOptions=n,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){let e=this.currentMutation?this.currentMutation.state:(0,o.R)(),n={...e,isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=n}notify(e){s.V.batch(()=>{if(this.mutateOptions&&this.hasListeners()){var n,r,i,a,o,s,f,l;e.onSuccess?(null==(n=(r=this.mutateOptions).onSuccess)||n.call(r,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(i=(a=this.mutateOptions).onSettled)||i.call(a,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)):e.onError&&(null==(o=(s=this.mutateOptions).onError)||o.call(s,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(f=(l=this.mutateOptions).onSettled)||f.call(l,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context))}e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)})})}}var u=r(464),c=r(85945),d=r(24798);function p(e,n,r){let o=(0,a.lV)(e,n,r),f=(0,c.NL)({context:o.context}),[p]=i.useState(()=>new l(f,o));i.useEffect(()=>{p.setOptions(o)},[p,o]);let y=(0,u.$)(i.useCallback(e=>p.subscribe(s.V.batchCalls(e)),[p]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),m=i.useCallback((e,n)=>{p.mutate(e,n).catch(h)}
457,[p]);if(y.error&&(0,d.L)(p.options.useErrorBoundary,[y.error]))throw y.error;return{...y,mutate:m,mutateAsync:y.mutate}}function h(){}},67848:function(e,n,r){"use strict";let i;r.d(n,{a:function(){return N}});var a=r(32161),o=r(30081),s=r(15761),f=r(33989),l=r(72379);class u extends f.l{constructor(e,n){super(),this.client=e,this.options=n,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(n)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),c(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return d(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return d(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,n){let r=this.options,i=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),(0,a.VS)(r,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();let o=this.hasListeners();o&&p(this.currentQuery,i,this.options,r)&&this.executeFetch(),this.updateResult(n),o&&(this.currentQuery!==i||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();let s=this.computeRefetchInterval();o&&(this.currentQuery!==i||this.options.enabled!==r.enabled||s!==this.currentRefetchInterval)&&this.updateRefetchInterval(s)}getOptimisticResult(e){let n=this.client.getQueryCache().build(this.client,e),r=this.createResult(n,e);return e.keepPreviousData||(void 0!==e.placeholderData?!r.isPlaceholderData:(0,a.VS)(this.getCurrentResult(),r))||(this.currentResult=r,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),r}getCurrentResult(){return this.currentResult}trackResult(e){let n={};return Object.keys(e).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(r),e[r])})}),n}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...n}={}){return this.fetch({...n,meta:{refetchPage:e}})}fetchOptimistic(e){let n=this.client.defaultQueryOptions(e),r=this.client.getQueryCache().build(this.client,n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(e){var n;return this.executeFetch({...e,cancelRefetch:null==(n=e.cancelRefetch)||n}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let n=this.currentQuery.fetch(this.options,e);return null!=e&&e.throwOnError||(n=n.catch(a.ZT)),n}updateStaleTimeout(){if(this.clearStaleTimeout(),a.sk||this.currentResult.isStale||!(0,a.PN)(this.options.staleTime))return;let e=(0,a.Kp)(this.currentResult.dataUpdatedAt,this.options.staleTime);this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},e+1)}computeRefetchInterval(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!a.sk&&!1!==this.options.enabled&&(0,a.PN)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||s.j.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,n){let r;let i=this.currentQuery,o=this.options,s=this.currentResult,f=this.currentResultState,u=this.currentResultOptions,d=e!==i,y=d?e.state:this.currentQueryInitialState,m=d?this.currentResult:this.previousQueryResult,{state:g}=e,{dataUpdatedAt:b,error:v,errorUpdatedAt:w,fetchStatus:x,status:T}=g,C=!1,M=!1;if(n._optimisticResults){let r=this.hasListeners(),a=!r&&c(e,n),s=r&&p(e,i,n,o);(a||s)&&(x=(0,l.Kw)(e.options.networkMode)?"fetching":"paused",b||(T="loading")),"isRestoring"===n._optimisticResults&&(x="idle")}if(n.keepPreviousData&&!g.dataUpdatedAt&&null!=m&&m.isSuccess&&"error"!==T)r=m.data,b=m.dataUpdatedAt,T=m.status,C=!0;else if(n.select&&void 0!==g.data){if(s&&g.data===(null==f?void 0:f.data)&&n.select===this.selectFn)r=this.selectResult;else try{this.selectFn=n.select,r=n.select(g.data),r=(0,a.oE)(null==s?void 0:s.data,r,n),this.selectResult=r,this.selectError=null}catch(e){this.selectError=e}}else r=g.data;if(void 0!==n.placeholderData&&void 0===r&&"loading"===T){let e;if(null!=s&&s.isPlaceholderData&&n.placeholderData===(null==u?void 0:u.placeholderData))e=s.data;else if(e="function"==typeof n.placeholderData?n.placeholderData():n.placeholderData,n.select&&void 0!==e)try{e=n.select(e),this.selectError=null}catch(e){this.selectError=e}void 0!==e&&(T="success",r=(0,a.oE)(null==s?void 0:s.data,e,n),M=!0)}this.selectError&&(v=this.selectError,r=this.selectResult,w=Date.now(),T="error");let A="fetching"===x,E="loading"===T,I="error"===T;return{status:T,fetchStatus:x,isLoading:E,isSuccess:"success"===T,isError:I,isInitialLoading:E&&A,data:r,dataUpdatedAt:b,error:v,errorUpdatedAt:w,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdate
457Count:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>y.dataUpdateCount||g.errorUpdateCount>y.errorUpdateCount,isFetching:A,isRefetching:A&&!E,isLoadingError:I&&0===g.dataUpdatedAt,isPaused:"paused"===x,isPlaceholderData:M,isPreviousData:C,isRefetchError:I&&0!==g.dataUpdatedAt,isStale:h(e,n),refetch:this.refetch,remove:this.remove}}updateResult(e){let n=this.currentResult,r=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,(0,a.VS)(r,n))return;this.currentResult=r;let i={cache:!0};(null==e?void 0:e.listeners)!==!1&&(()=>{if(!n)return!0;let{notifyOnChangeProps:e}=this.options,r="function"==typeof e?e():e;if("all"===r||!r&&!this.trackedProps.size)return!0;let i=new Set(null!=r?r:this.trackedProps);return this.options.useErrorBoundary&&i.add("error"),Object.keys(this.currentResult).some(e=>this.currentResult[e]!==n[e]&&i.has(e))})()&&(i.listeners=!0),this.notify({...i,...e})}updateQuery(){let e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;let n=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==n||n.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){let n={};"success"===e.type?n.onSuccess=!e.manual:"error"!==e.type||(0,l.DV)(e.error)||(n.onError=!0),this.updateResult(n),this.hasListeners()&&this.updateTimers()}notify(e){o.V.batch(()=>{var n,r,i,a,o,s,f,l;e.onSuccess?(null==(n=(r=this.options).onSuccess)||n.call(r,this.currentResult.data),null==(i=(a=this.options).onSettled)||i.call(a,this.currentResult.data,null)):e.onError&&(null==(o=(s=this.options).onError)||o.call(s,this.currentResult.error),null==(f=(l=this.options).onSettled)||f.call(l,void 0,this.currentResult.error)),e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function c(e,n){return!1!==n.enabled&&!e.state.dataUpdatedAt&&!("error"===e.state.status&&!1===n.retryOnMount)||e.state.dataUpdatedAt>0&&d(e,n,n.refetchOnMount)}function d(e,n,r){if(!1!==n.enabled){let i="function"==typeof r?r(e):r;return"always"===i||!1!==i&&h(e,n)}return!1}function p(e,n,r,i){return!1!==r.enabled&&(e!==n||!1===i.enabled)&&(!r.suspense||"error"!==e.state.status)&&h(e,r)}function h(e,n){return e.isStaleByTime(n.staleTime)}var y=r(67294),m=r(464);let g=y.createContext((i=!1,{clearReset:()=>{i=!1},reset:()=>{i=!0},isReset:()=>i})),b=()=>y.useContext(g);var v=r(85945);let w=y.createContext(!1),x=()=>y.useContext(w);w.Provider;var T=r(24798);let C=(e,n)=>{(e.suspense||e.useErrorBoundary)&&!n.isReset()&&(e.retryOnMount=!1)},M=e=>{y.useEffect(()=>{e.clearReset()},[e])},A=({result:e,errorResetBoundary:n,useErrorBoundary:r,query:i})=>e.isError&&!n.isReset()&&!e.isFetching&&(0,T.L)(r,[e.error,i]),E=e=>{e.suspense&&"number"!=typeof e.staleTime&&(e.staleTime=1e3)},I=(e,n)=>e.isLoading&&e.isFetching&&!n,S=(e,n,r)=>(null==e?void 0:e.suspense)&&I(n,r),k=(e,n,r)=>n.fetchOptimistic(e).then(({data:n})=>{null==e.onSuccess||e.onSuccess(n),null==e.onSettled||e.onSettled(n,null)}).catch(n=>{r.clearReset(),null==e.onError||e.onError(n),null==e.onSettled||e.onSettled(void 0,n)});function N(e,n,r){return function(e,n){let r=(0,v.NL)({context:e.context}),i=x(),a=b(),s=r.defaultQueryOptions(e);s._optimisticResults=i?"isRestoring":"optimistic",s.onError&&(s.onError=o.V.batchCalls(s.onError)),s.onSuccess&&(s.onSuccess=o.V.batchCalls(s.onSuccess)),s.onSettled&&(s.onSettled=o.V.batchCalls(s.onSettled)),E(s),C(s,a),M(a);let[f]=y.useState(()=>new n(r,s)),l=f.getOptimisticResult(s);if((0,m.$)(y.useCallback(e=>{let n=i?()=>void 0:f.subscribe(o.V.batchCalls(e));return f.updateResult(),n},[f,i]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),y.useEffect(()=>{f.setOptions(s,{listeners:!1})},[s,f]),S(s,l,i))throw k(s,f,a);if(A({result:l,errorResetBoundary:a,useErrorBoundary:s.useErrorBoundary,query:f.getCurrentQuery()}))throw l.error;return s.notifyOnChangeProps?l:f.trackResult(l)}((0,a._v)(e,n,r),u)}},464:function(e,n,r){"use strict";r.d(n,{$:function(){return i}});let i=r(61688).useSyncExternalStore},24798:function(e,n,r){"use strict";function i(e,n){return"function"==typeof e?e(...n):!!e}r.d(n,{L:function(){return i}})},71770:function(e,n,r){"use strict";var i=r(18991);n.Z=i},65007:function(e,n,r){"use strict";var i=r(53623);n.Z=i},90512:function(e,n,r){"use strict";n.Z=function(){for(var e,n,r=0,i="",a=arguments.length;r<a;r++)(e=arguments[r])&&(n=function e(n){var r,i,a="";if("string"==typeof n||"number"==typeof n)a+=n;else if("object"==typeof n){if(Array.isArray(n)){var o=n.length;for(r=0;r<o;
457r++)n[r]&&(i=e(n[r]))&&(a&&(a+=" "),a+=i)}else for(i in n)n[i]&&(a&&(a+=" "),a+=i)}return a}(e))&&(i&&(i+=" "),i+=n);return i}},69386:function(e,n,r){"use strict";function i(e){return Array.isArray?Array.isArray(e):"[object Array]"===c(e)}r.d(n,{Z:function(){return X}});let a=1/0;function o(e){return"string"==typeof e}function s(e){return"number"==typeof e}function f(e){return"object"==typeof e}function l(e){return null!=e}function u(e){return!e.trim().length}function c(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}let d=e=>`Invalid value for key ${e}`,p=e=>`Pattern length exceeds max of ${e}.`,h=e=>`Missing ${e} property in key`,y=e=>`Property 'weight' in key '${e}' must be a positive integer`,m=Object.prototype.hasOwnProperty;class g{constructor(e){this._keys=[],this._keyMap={};let n=0;e.forEach(e=>{let r=b(e);this._keys.push(r),this._keyMap[r.id]=r,n+=r.weight}),this._keys.forEach(e=>{e.weight/=n})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function b(e){let n=null,r=null,a=null,s=1,f=null;if(o(e)||i(e))a=e,n=v(e),r=w(e);else{if(!m.call(e,"name"))throw Error(h("name"));let i=e.name;if(a=i,m.call(e,"weight")&&(s=e.weight)<=0)throw Error(y(i));n=v(i),r=w(i),f=e.getFn}return{path:n,id:r,weight:s,src:a,getFn:f}}function v(e){return i(e)?e:e.split(".")}function w(e){return i(e)?e.join("."):e}var x={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,n)=>e.score===n.score?e.idx<n.idx?-1:1:e.score<n.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,useExtendedSearch:!1,getFn:function(e,n){let r=[],u=!1,d=(e,n,p)=>{if(l(e)){if(n[p]){var h,y;let m=e[n[p]];if(l(m)){if(p===n.length-1&&(o(m)||s(m)||!0===(h=m)||!1===h||f(y=h)&&null!==y&&"[object Boolean]"==c(h)))r.push(null==m?"":function(e){if("string"==typeof e)return e;let n=e+"";return"0"==n&&1/e==-a?"-0":n}(m));else if(i(m)){u=!0;for(let e=0,r=m.length;e<r;e+=1)d(m[e],n,p+1)}else n.length&&d(m,n,p+1)}}else r.push(e)}};return d(e,o(n)?n.split("."):n,0),u?r:r[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};let T=/[^ ]+/g;class C{constructor({getFn:e=x.getFn,fieldNormWeight:n=x.fieldNormWeight}={}){this.norm=function(e=1,n=3){let r=new Map,i=Math.pow(10,n);return{get(n){let a=n.match(T).length;if(r.has(a))return r.get(a);let o=parseFloat(Math.round(1/Math.pow(a,.5*e)*i)/i);return r.set(a,o),o},clear(){r.clear()}}}(n,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((e,n)=>{this._keysMap[e.id]=n})}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,o(this.docs[0])?this.docs.forEach((e,n)=>{this._addString(e,n)}):this.docs.forEach((e,n)=>{this._addObject(e,n)}),this.norm.clear())}add(e){let n=this.size();o(e)?this._addString(e,n):this._addObject(e,n)}removeAt(e){this.records.splice(e,1);for(let n=e,r=this.size();n<r;n+=1)this.records[n].i-=1}getValueForItemAtKeyId(e,n){return e[this._keysMap[n]]}size(){return this.records.length}_addString(e,n){if(!l(e)||u(e))return;let r={v:e,i:n,n:this.norm.get(e)};this.records.push(r)}_addObject(e,n){let r={i:n,$:{}};this.keys.forEach((n,a)=>{let s=n.getFn?n.getFn(e):this.getFn(e,n.path);if(l(s)){if(i(s)){let e=[],n=[{nestedArrIndex:-1,value:s}];for(;n.length;){let{nestedArrIndex:r,value:a}=n.pop();if(l(a)){if(o(a)&&!u(a)){let n={v:a,i:r,n:this.norm.get(a)};e.push(n)}else i(a)&&a.forEach((e,r)=>{n.push({nestedArrIndex:r,value:e})})}}r.$[a]=e}else if(o(s)&&!u(s)){let e={v:s,n:this.norm.get(s)};r.$[a]=e}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function M(e,n,{getFn:r=x.getFn,fieldNormWeight:i=x.fieldNormWeight}={}){let a=new C({getFn:r,fieldNormWeight:i});return a.setKeys(e.map(b)),a.setSources(n),a.create(),a}function A(e,{errors:n=0,currentLocation:r=0,expectedLocation:i=0,distance:a=x.distance,ignoreLocation:o=x.ignoreLocation}={}){let s=n/e.length;if(o)return s;let f=Math.abs(i-r);return a?s+f/a:f?1:s}class E{constructor(e,{location:n=x.location,threshold:r=x.threshold,distance:i=x.distance,includeMatches:a=x.includeMatches,findAllMatches:o=x.findAllMatches,minMatchCharLength:s=x.minMatchCharLength,isCaseSensitive:f=x.isCaseSensitive,ignoreLocation:l=x.ignoreLocation}={}){if(this.options={location:n,threshold:r,distance:i,includeMatches:a,findAllMatches:o,minMatchCharLength:s,isCaseSensitive:f,ignoreLocation:l},this.pattern=f?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;let u=(e,n)=>{this.chunks.push({pattern:e,alphabet:function(e){let n={};for(let r=0,i=e.length;r<i;r+=1){let a=e.charAt(r);n[a]=(n[a]||0)|1<<i-r-1}return n}(e),startIndex:n})},c=this.pattern.length;if(c>32){let e=0,n=c%32,r=c-n;for(;e<r;)u(this.pattern.substr(e,32),e),e+=32;if(n){let e=c-32;u(this.pattern.substr(e),e)}}else u(this.pattern,0)}searchIn(e){let{isCaseSensitive:n,includeMatches:r}=this.options;if(n||(e=e.toLowerCase()),this.pattern===e){let n={isMatch:!0,score:0};return r&&(n.indices=[[0,e.length-1]]),n}let{location:i,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:f,ignoreLocation:l}=this.options,u=[],c=0,d=!1;this.chunks.forEach(({pattern:n,alphabet:h,startIndex:y})=>{let{isMatch:m,score:g,indices:b}=function(e,n,r,{location:i=x.location,distance:a=x.distance,threshold:o=x.threshold,findAllMatches:s=x.findAllMatches,minMatchCharLength:f=x.minMatchCharLength,includeMatches:l=x.includeMatches,ignoreLocation:u=x.ignoreLocation}={}){let c;if(n.length>32)throw Error(p(32));let d=n.length,h=e.length,y=Math.max(0,Math.min(i,h)),m=o,g=y,b=f>1||l,v=b?Array(h):[];for(;(c=e.indexOf(n,g))>-1;)if(m=Math.min(A(n,{currentLocation:c,expectedLocation:y,distance:a,ignoreLocation:u}),m),g=c+d,b){let e=0;for(;e<d;)v[c+e]=1,e+=1}g=-1;let w=[],T=1,C=d+h,M=1<<d-1;for(let i=0;i<d;i+=1){let o=0,f=C;for(;o<f;)A(n,{errors:i,currentLocation:y+f,expectedLocation:y,distance:a,ignoreLocation:u})<=m?o=f:C=f,f=Math.floor((C-o)/2+o);C=f;let l=Math.max(1,y-f+1),c=s?h:Math.min(y+f,h)+d,p=Array(c+2);p[c+1]=(1<<i)-1;for(let o=c;o>=l;o-=1){let s=o-1,f=r[e.charAt(s)];if(b&&(v[s]=+!!f),p[o]=(p[o+1]<<1|1)&f,i&&(p[o]|=(w[o+1]|w[o])<<1|1|w[o+1]),p[o]&M&&(T=A(n,{errors:i,currentLocation:s,expectedLocation:y,distance:a,ignoreLocation:u}))<=m){if(m=T,(g=s)<=y)break;l=Math.max(1,2*y-g)}}if(A(n,{errors:i+1,currentLocation:y,expectedLocation:y,distance:a,ignoreLocation:u})>m)break;w=p}let E={isMatch:g>=0,score:Math.max(.001,T)};if(b){let e=function(e=[],n=x.minMatchCharLength){let r=[],i=-1,a=-1,o=0;for(let s=e.length;o<s;o+=1){let s=e[o];s&&-1===i?i=o:s||-1===i||((a=o-1)-i+1>=n&&r.push([i,a]),i=-1)}return e[o-1]&&o-i>=n&&r.push([i,o-1]),r}(v,f);e.length?l&&(E.indices=e):E.isMatch=!1}return E}(e,n,h,{location:i+y,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:f,includeMatches:r,ignoreLocation:l});m&&(d=!0),c+=g,m&&b&&(u=[...u,...b])});let h={isMatch:d,score:d?c/this.chunks.length:1};return d&&r&&(h.indices=u),h}}class I{constructor(e){this.pattern=e}static isMultiMatch(e){return S(e,this.multiRegex)}static isSingleMatch(e){return S(e,this.singleRegex)}search(){}}function S(e,n){let r=e.match(n);return r?r[1]:null}class k extends I{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}
457search(e){let n=e===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class N extends I{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){let n=-1===e.indexOf(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}}class j extends I{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){let n=e.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class D extends I{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){let n=!e.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}}class _ extends I{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){let n=e.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class O extends I{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){let n=!e.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}}class P extends I{constructor(e,{location:n=x.location,threshold:r=x.threshold,distance:i=x.distance,includeMatches:a=x.includeMatches,findAllMatches:o=x.findAllMatches,minMatchCharLength:s=x.minMatchCharLength,isCaseSensitive:f=x.isCaseSensitive,ignoreLocation:l=x.ignoreLocation}={}){super(e),this._bitapSearch=new E(e,{location:n,threshold:r,distance:i,includeMatches:a,findAllMatches:o,minMatchCharLength:s,isCaseSensitive:f,ignoreLocation:l})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class L extends I{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let n,r=0,i=[],a=this.pattern.length;for(;(n=e.indexOf(this.pattern,r))>-1;)r=n+a,i.push([n,r-1]);let o=!!i.length;return{isMatch:o,score:o?0:1,indices:i}}}let R=[k,L,j,D,O,_,N,P],z=R.length,B=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,U=new Set([P.type,L.type]);class F{constructor(e,{isCaseSensitive:n=x.isCaseSensitive,includeMatches:r=x.includeMatches,minMatchCharLength:i=x.minMatchCharLength,ignoreLocation:a=x.ignoreLocation,findAllMatches:o=x.findAllMatches,location:s=x.location,threshold:f=x.threshold,distance:l=x.distance}={}){this.query=null,this.options={isCaseSensitive:n,includeMatches:r,minMatchCharLength:i,findAllMatches:o,ignoreLocation:a,location:s,threshold:f,distance:l},this.pattern=n?e:e.toLowerCase(),this.query=function(e,n={}){return e.split("|").map(e=>{let r=e.trim().split(B).filter(e=>e&&!!e.trim()),i=[];for(let e=0,a=r.length;e<a;e+=1){let a=r[e],o=!1,s=-1;for(;!o&&++s<z;){let e=R[s],r=e.isMultiMatch(a);r&&(i.push(new e(r,n)),o=!0)}if(!o)for(s=-1;++s<z;){let e=R[s],r=e.isSingleMatch(a);if(r){i.push(new e(r,n));break}}}return i})}(this.pattern,this.options)}static condition(e,n){return n.useExtendedSearch}searchIn(e){let n=this.query;if(!n)return{isMatch:!1,score:1};let{includeMatches:r,isCaseSensitive:i}=this.options;e=i?e:e.toLowerCase();let a=0,o=[],s=0;for(let i=0,f=n.length;i<f;i+=1){let f=n[i];o.length=0,a=0;for(let n=0,i=f.length;n<i;n+=1){let i=f[n],{isMatch:l,indices:u,score:c}=i.search(e);if(l){if(a+=1,s+=c,r){let e=i.constructor.type;U.has(e)?o=[...o,...u]:o.push(u)}}else{s=0,a=0,o.length=0;break}}if(a){let e={isMatch:!0,score:s/a};return r&&(e.indices=o),e}}return{isMatch:!1,score:1}}}let Z=[];function W(e,n){for(let r=0,i=Z.length;r<i;r+=1){let i=Z[r];if(i.condition(e,n))return new i(e,n)}return new E(e,n)}let H={AND:"$and",OR:"$or"},G={PATH:"$path",PATTERN:"$val"},q=e=>!!(e[H.AND]||e[H.OR]),Y=e=>!!e[G.PATH],V=e=>!i(e)&&f(e)&&!q(e),Q=e=>({[H.AND]:Object.keys(e).map(n=>({[n]:e[n]}))});function K(e,n,{auto:r=!0}={}){let a=e=>{let s=Object.keys(e),f=Y(e);if(!f&&s.length>1&&!q(e))return a(Q(e));if(V(e)){let i=f?e[G.PATH]:s[0],a=f?e[G.PATTERN]:e[i];
457if(!o(a))throw Error(d(i));let l={keyId:w(i),pattern:a};return r&&(l.searcher=W(a,n)),l}let l={children:[],operator:s[0]};return s.forEach(n=>{let r=e[n];i(r)&&r.forEach(e=>{l.children.push(a(e))})}),l};return q(e)||(e=Q(e)),a(e)}function $(e,n){let r=e.matches;n.matches=[],l(r)&&r.forEach(e=>{if(!l(e.indices)||!e.indices.length)return;let{indices:r,value:i}=e,a={indices:r,value:i};e.key&&(a.key=e.key.src),e.idx>-1&&(a.refIndex=e.idx),n.matches.push(a)})}function J(e,n){n.score=e.score}class X{constructor(e,n={},r){this.options={...x,...n},this.options.useExtendedSearch,this._keyStore=new g(this.options.keys),this.setCollection(e,r)}setCollection(e,n){if(this._docs=e,n&&!(n instanceof C))throw Error("Incorrect 'index' type");this._myIndex=n||M(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){l(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){let n=[];for(let r=0,i=this._docs.length;r<i;r+=1){let a=this._docs[r];e(a,r)&&(this.removeAt(r),r-=1,i-=1,n.push(a))}return n}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:n=-1}={}){let{includeMatches:r,includeScore:i,shouldSort:a,sortFn:f,ignoreFieldNorm:l}=this.options,u=o(e)?o(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return!function(e,{ignoreFieldNorm:n=x.ignoreFieldNorm}){e.forEach(e=>{let r=1;e.matches.forEach(({key:e,norm:i,score:a})=>{let o=e?e.weight:null;r*=Math.pow(0===a&&o?Number.EPSILON:a,(o||1)*(n?1:i))}),e.score=r})}(u,{ignoreFieldNorm:l}),a&&u.sort(f),s(n)&&n>-1&&(u=u.slice(0,n)),function(e,n,{includeMatches:r=x.includeMatches,includeScore:i=x.includeScore}={}){let a=[];return r&&a.push($),i&&a.push(J),e.map(e=>{let{idx:r}=e,i={item:n[r],refIndex:r};return a.length&&a.forEach(n=>{n(e,i)}),i})}(u,this._docs,{includeMatches:r,includeScore:i})}_searchStringList(e){let n=W(e,this.options),{records:r}=this._myIndex,i=[];return r.forEach(({v:e,i:r,n:a})=>{if(!l(e))return;let{isMatch:o,score:s,indices:f}=n.searchIn(e);o&&i.push({item:e,idx:r,matches:[{score:s,value:e,norm:a,indices:f}]})}),i}_searchLogical(e){let n=K(e,this.options),r=(e,n,i)=>{if(!e.children){let{keyId:r,searcher:a}=e,o=this._findMatches({key:this._keyStore.get(r),value:this._myIndex.getValueForItemAtKeyId(n,r),searcher:a});return o&&o.length?[{idx:i,item:n,matches:o}]:[]}let a=[];for(let o=0,s=e.children.length;o<s;o+=1){let s=r(e.children[o],n,i);if(s.length)a.push(...s);else if(e.operator===H.AND)return[]}return a},i=this._myIndex.records,a={},o=[];return i.forEach(({$:e,i:i})=>{if(l(e)){let s=r(n,e,i);s.length&&(a[i]||(a[i]={idx:i,item:e,matches:[]},o.push(a[i])),s.forEach(({matches:e})=>{a[i].matches.push(...e)}))}}),o}_searchObjectList(e){let n=W(e,this.options),{keys:r,records:i}=this._myIndex,a=[];return i.forEach(({$:e,i:i})=>{if(!l(e))return;let o=[];r.forEach((r,i)=>{o.push(...this._findMatches({key:r,value:e[i],searcher:n}))}),o.length&&a.push({idx:i,item:e,matches:o})}),a}_findMatches({key:e,value:n,searcher:r}){if(!l(n))return[];let a=[];if(i(n))n.forEach(({v:n,i:i,n:o})=>{if(!l(n))return;let{isMatch:s,score:f,indices:u}=r.searchIn(n);s&&a.push({score:f,key:e,value:n,idx:i,norm:o,indices:u})});else{let{v:i,n:o}=n,{isMatch:s,score:f,indices:l}=r.searchIn(i);s&&a.push({score:f,key:e,value:i,norm:o,indices:l})}return a}}X.version="7.0.0",X.createIndex=M,X.parseIndex=function(e,{getFn:n=x.getFn,fieldNormWeight:r=x.fieldNormWeight}={}){let{keys:i,records:a}=e,o=new C({getFn:n,fieldNormWeight:r});return o.setKeys(i),o.setIndexRecords(a),o},X.config=x,X.parseQuery=K,function(...e){Z.push(...e)}(F)},24678:function(e,n,r){"use strict";let i;function a(e){return new Promise((n,r)=>{e.oncomplete=e.onsuccess=()=>n(e.result),e.onabort=e.onerror=()=>r(e.error)})}function o(e,n){let r=indexedDB.open(e);r.onupgradeneeded=()=>r.result.createObjectStore(n);let i=a(r);return(e,r)=>i.then(i=>r(i.transaction(n,e).objectStore(n)))}function s(){return i||(i=o("keyval-store","keyval")),i}function f(e,n=s()){return n("readonly",n=>a(n.get(e)))}function l(e,n,r=s()){return r("readwrite",r=>(r.put(n,e),a(r.transaction)))}function u(e,n=s()){return n("readwrite",n=>(n.delete(e),a(n.transaction)))}function c(e=s()){return e("readwrite",e=>(e.clear(),a(e.transaction)))}function d(e=s()){return e("readonly",e=>{var n;if(e.getAllKeys)return a(e.getAllKeys());let r=[];return(n=e=>r.push(e.key),e.openCursor().onsuccess=function(){this.result&&(n(this.result),this.result.continue())},a(e.transaction)).then(()=>r)})}r.d(n,{IV:function(){return u},MT:function(){return o},U2:function(){return f},XP:function(){return d},ZH:function(){return c},t8:function(){return l}})},28058:function(e,n,r){"use strict";r.d(n,{uZ:function(){return m}});var i=r(67294),a=Object.defineProperty,o=Object.defineProperties,s=Object.getOwnPropertyDescriptors,f=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,c=(e,n,r)=>n in e?a(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,d=(e,n)=>{for(var r in n||(n={}))l.call(n,r)&&c(e,r,n[r]);if(f)for(var r of f(n))u.call(n,r)&&c(e,r,n[r]);return e},p=(e,n)=>o(e,s(n)),h=(e,n)=>{var r={};for(var i in e)l.call(e,i)&&0>n.indexOf(i)&&(r[i]=e[i]);if(null!=e&&f)for(var i of f(e))0>n.indexOf(i)&&u.call(e,i)&&(r[i]=e[i]);return r},y=i.createContext({}
vendor: 4,443 bytes, line 457
457),m=i.forwardRef((e,n)=>{let r;var a,o,s,f,l,{value:u,onChange:c,maxLength:m,textAlign:v="left",pattern:w="^\\d+$",inputMode:x="numeric",onComplete:T,pushPasswordManagerStrategy:C="increase-width",containerClassName:M,noScriptCSSFallback:A=b,render:E,children:I}=e,S=h(e,["value","onChange","maxLength","textAlign","pattern","inputMode","onComplete","pushPasswordManagerStrategy","containerClassName","noScriptCSSFallback","render","children"]);let[k,N]=i.useState("string"==typeof S.defaultValue?S.defaultValue:""),j=null!=u?u:k,D=(r=i.useRef(),i.useEffect(()=>{r.current=j}),r.current),_=i.useCallback(e=>{null==c||c(e),N(e)},[c]),O=i.useMemo(()=>w?"string"==typeof w?new RegExp(w):w:null,[w]),P=i.useRef(null),L=i.useRef(null),R=i.useRef({value:j,onChange:_,isIOS:"undefined"!=typeof window&&(null==(o=null==(a=null==window?void 0:window.CSS)?void 0:a.supports)?void 0:o.call(a,"-webkit-touch-callout","none"))}),z=i.useRef({prev:[null==(s=P.current)?void 0:s.selectionStart,null==(f=P.current)?void 0:f.selectionEnd,null==(l=P.current)?void 0:l.selectionDirection]});i.useImperativeHandle(n,()=>P.current,[]),i.useEffect(()=>{let e=P.current,n=L.current;if(!e||!n)return;function r(){if(document.activeElement!==e){H(null),q(null);return}let n=e.selectionStart,r=e.selectionEnd,i=e.selectionDirection,a=e.maxLength,o=e.value,s=z.current.prev,f=-1,l=-1,u;if(0!==o.length&&null!==n&&null!==r){let e=n===r,i=n===o.length&&o.length<a;if(e&&!i){if(0===n)f=0,l=1,u="forward";else if(n===a)f=n-1,l=n,u="backward";else if(a>1&&o.length>1){let e=0;if(null!==s[0]&&null!==s[1]){u=n<s[1]?"backward":"forward";let r=s[0]===s[1]&&s[0]<a;"backward"!==u||r||(e=-1)}f=e+n,l=e+n+1}}-1!==f&&-1!==l&&f!==l&&P.current.setSelectionRange(f,l,u)}let c=-1!==f?f:n,d=-1!==l?l:r,p=null!=u?u:i;H(c),q(d),z.current.prev=[c,d,p]}if(R.current.value!==e.value&&R.current.onChange(e.value),z.current.prev=[e.selectionStart,e.selectionEnd,e.selectionDirection],document.addEventListener("selectionchange",r,{capture:!0}),r(),document.activeElement===e&&Z(!0),!document.getElementById("input-otp-style")){let e=document.createElement("style");if(e.id="input-otp-style",document.head.appendChild(e),e.sheet){let n="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";g(e.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),g(e.sheet,`[data-input-otp]:autofill { ${n} }`),g(e.sheet,`[data-input-otp]:-webkit-autofill { ${n} }`),g(e.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),g(e.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let i=()=>{n&&n.style.setProperty("--root-height",`${e.clientHeight}px`)};i();let a=new ResizeObserver(i);return a.observe(e),()=>{document.removeEventListener("selectionchange",r,{capture:!0}),a.disconnect()}},[]);let[B,U]=i.useState(!1),[F,Z]=i.useState(!1),[W,H]=i.useState(null),[G,q]=i.useState(null);i.useEffect(()=>{var e;setTimeout(e=()=>{var e,n,r,i;null==(e=P.current)||e.dispatchEvent(new Event("input"));let a=null==(n=P.current)?void 0:n.selectionStart,o=null==(r=P.current)?void 0:r.selectionEnd,s=null==(i=P.current)?void 0:i.selectionDirection;null!==a&&null!==o&&(H(a),q(o),z.current.prev=[a,o,s])},0),setTimeout(e,10),setTimeout(e,50)},[j,F]),i.useEffect(()=>{void 0!==D&&j!==D&&D.length<m&&j.length===m&&(null==T||T(j))},[m,T,D,j]);let Y=function({containerRef:e,inputRef:n,pushPasswordManagerStrategy:r,isFocused:a}){let o=i.useRef({done:!1,refocused:!1}),[s,f]=i.useState(!1),[l,u]=i.useState(!1),[c,d]=i.useState(!1),p=i.useMemo(()=>"none"!==r&&("increase-width"===r||"experimental-no-flickering"===r)&&s&&l,[s,l,r]),h=i.useCallback(()=>{let i=e.current,a=n.current;if(!i||!a||c||"none"===r)return;let s=i.getBoundingClientRect().left+i.offsetWidth,l=i.getBoundingClientRect().top+i.offsetHeight/2;if(!(0===document.querySelectorAll('[data-lastpass-icon-root],com-1password-button,[data-dashlanecreated],[style$="2147483647 !important;"]').length&&document.elementFromPoint(s-18,l)===i)&&(f(!0),d(!0),!o.current.refocused&&document.activeElement===a)
457){let e=[a.selectionStart,a.selectionEnd];a.blur(),a.focus(),a.setSelectionRange(e[0],e[1]),o.current.refocused=!0}},[e,n,c,r]);return i.useEffect(()=>{let n=e.current;if(!n||"none"===r)return;function i(){u(window.innerWidth-n.getBoundingClientRect().right>=40)}i();let a=setInterval(i,1e3);return()=>{clearInterval(a)}},[e,r]),i.useEffect(()=>{let e=a||document.activeElement===n.current;if("none"===r||!e)return;let i=setTimeout(h,0),o=setTimeout(h,2e3),s=setTimeout(h,5e3),f=setTimeout(()=>{d(!0)},6e3);return()=>{clearTimeout(i),clearTimeout(o),clearTimeout(s),clearTimeout(f)}},[n,a,r,h]),{hasPWMBadge:s,willPushPWMBadge:p,PWM_BADGE_SPACE_WIDTH:"40px"}}({containerRef:L,inputRef:P,pushPasswordManagerStrategy:C,isFocused:F}),V=i.useCallback(e=>{let n=e.currentTarget.value.slice(0,m);if(n.length>0&&O&&!O.test(n)){e.preventDefault();return}"string"==typeof D&&n.length<D.length&&document.dispatchEvent(new Event("selectionchange")),_(n)},[m,_,D,O]),Q=i.useCallback(()=>{var e;if(P.current){let n=Math.min(P.current.value.length,m-1),r=P.current.value.length;null==(e=P.current)||e.setSelectionRange(n,r),H(n),q(r)}Z(!0)},[m]),K=i.useCallback(e=>{var n,r;let i=P.current;if(!R.current.isIOS||!e.clipboardData||!i)return;let a=e.clipboardData.getData("text/plain");e.preventDefault();let o=null==(n=P.current)?void 0:n.selectionStart,s=null==(r=P.current)?void 0:r.selectionEnd,f=(o!==s?j.slice(0,o)+a+j.slice(s):j.slice(0,o)+a+j.slice(o)).slice(0,m);if(f.length>0&&O&&!O.test(f))return;i.value=f,_(f);let l=Math.min(f.length,m-1),u=f.length;i.setSelectionRange(l,u),H(l),q(u)},[m,_,O,j]),$=i.useMemo(()=>({position:"relative",cursor:S.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[S.disabled]),J=i.useMemo(()=>({position:"absolute",inset:0,width:Y.willPushPWMBadge?`calc(100% + ${Y.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:Y.willPushPWMBadge?`inset(0 ${Y.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:v,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[Y.PWM_BADGE_SPACE_WIDTH,Y.willPushPWMBadge,v]),X=i.useMemo(()=>i.createElement("input",p(d({autoComplete:S.autoComplete||"one-time-code"},S),{"data-input-otp":!0,"data-input-otp-mss":W,"data-input-otp-mse":G,inputMode:x,pattern:null==O?void 0:O.source,style:J,maxLength:m,value:j,ref:P,onPaste:e=>{var n;K(e),null==(n=S.onPaste)||n.call(S,e)},onChange:V,onMouseOver:e=>{var n;U(!0),null==(n=S.onMouseOver)||n.call(S,e)},onMouseLeave:e=>{var n;U(!1),null==(n=S.onMouseLeave)||n.call(S,e)},onFocus:e=>{var n;Q(),null==(n=S.onFocus)||n.call(S,e)},onBlur:e=>{var n;Z(!1),null==(n=S.onBlur)||n.call(S,e)}})),[V,Q,K,x,J,m,G,W,S,null==O?void 0:O.source,j]),ee=i.useMemo(()=>({slots:Array.from({length:m}).map((e,n)=>{let r=F&&null!==W&&null!==G&&(W===G&&n===W||n>=W&&n<G),i=void 0!==j[n]?j[n]:null;return{char:i,isActive:r,hasFakeCaret:r&&null===i}}),isFocused:F,isHovering:!S.disabled&&B}),[F,B,m,G,W,S.disabled,j]),et=i.useMemo(()=>E?E(ee):i.createElement(y.Provider,{value:ee},I),[I,ee,E]);return i.createElement(i.Fragment,null,null!==A&&i.createElement("noscript",null,i.createElement("style",null,A)),i.createElement("div",{ref:L,"data-input-otp-container":!0,style:$,className:M},et,i.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},X)))});function g(e,n){try{e.insertRule(n)}catch(e){console.error("input-otp could not insert CSS rule:",n)}}m.displayName="Input";var b=` 458[data-input-otp] { 459 --nojs-bg: white !important; 460 --nojs-fg: black !important; 461 462 background-color: var(--nojs-bg) !important; 463 color: var(--nojs-fg) !important; 464 caret-color: var(--nojs-fg) !important; 465 letter-spacing: .25em !important; 466 text-align: center !important; 467 border: 1px solid var(--nojs-fg) !important; 468 border-radius: 4px !important; 469 width: 100% !important; 470} 471@media (prefers-color-scheme: dark) { 472 [data-input-otp] { 473 --nojs-bg: black !important; 474 --nojs-fg: white !important; 475 } 476}`},91014:function(e,n,r){"use strict";r.d(n,{ZT:function(){return a},_T:function(){return s},ev:function(){return f},pi:function(){return o}});
476var i=function(e,n){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])})(e,n)};function a(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}i(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++)for(var a in n=arguments[r])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e}).apply(this,arguments)};function s(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>n.indexOf(i)&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,i=Object.getOwnPropertySymbols(e);a<i.length;a++)0>n.indexOf(i[a])&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(r[i[a]]=e[i[a]]);return r}function f(e,n,r){if(r||2==arguments.length)for(var i,a=0,o=n.length;a<o;a++)!i&&a in n||(i||(i=Array.prototype.slice.call(n,0,a)),i[a]=n[a]);return e.concat(i||Array.prototype.slice.call(n))}"function"==typeof SuppressedError&&SuppressedError},91835:function(e,n,r){"use strict";r.r(n),r.d(n,{CID:function(){return eB},bases:function(){return e$},bytes:function(){return i},codecs:function(){return eX},digest:function(){return m},hasher:function(){return g},hashes:function(){return eJ},varint:function(){return y}});var i={};r.r(i),r.d(i,{coerce:function(){return I},empty:function(){return C},equals:function(){return E},fromHex:function(){return A},fromString:function(){return k},isBinary:function(){return S},toHex:function(){return M},toString:function(){return N}});var a={};r.r(a),r.d(a,{identity:function(){return F}});var o={};r.r(o),r.d(o,{base2:function(){return Z}});var s={};r.r(s),r.d(s,{base8:function(){return W}});var f={};r.r(f),r.d(f,{base10:function(){return H}});var l={};r.r(l),r.d(l,{base16:function(){return G},base16upper:function(){return q}});var u={};r.r(u),r.d(u,{base32:function(){return Y},base32hex:function(){return $},base32hexpad:function(){return X},base32hexpadupper:function(){return ee},base32hexupper:function(){return J},base32pad:function(){return Q},base32padupper:function(){return K},base32upper:function(){return V},base32z:function(){return et}});var c={};r.r(c),r.d(c,{base36:function(){return en},base36upper:function(){return er}});var d={};r.r(d),r.d(d,{base58btc:function(){return ei},base58flickr:function(){return ea}});var p={};r.r(p),r.d(p,{base64:function(){return eo},base64pad:function(){return es},base64url:function(){return ef},base64urlpad:function(){return el}});var h={};r.r(h),r.d(h,{base256emoji:function(){return ep}});var y={};r.r(y),r.d(y,{decode:function(){return em},encodeTo:function(){return eg},encodingLength:function(){return eb}});var m={};r.r(m),r.d(m,{Digest:function(){return eT},create:function(){return ev},decode:function(){return ew},equals:function(){return ex}});var g={};r.r(g),r.d(g,{Hasher:function(){return eM},from:function(){return eC}});var b={};r.r(b),r.d(b,{sha256:function(){return eE},sha512:function(){return eI}});var v={};r.r(v),r.d(v,{identity:function(){return eS}});var w={};r.r(w),r.d(w,{code:function(){return eN},decode:function(){return eD},encode:function(){return ej},name:function(){return ek}});var x={};r.r(x),r.d(x,{code:function(){return eL},decode:function(){return ez},encode:function(){return eR},name:function(){return eP}});var T=function(e,n){if(e.length>=255)throw TypeError("Alphabet too long");for(var r=new Uint8Array(256),i=0;i<r.length;i++)r[i]=255;for(var a=0;a<e.length;a++){var o=e.charAt(a),s=o.charCodeAt(0);if(255!==r[s])throw TypeError(o+" is ambiguous");r[s]=a}var f=e.length,l=e.charAt(0),u=Math.log(f)/Math.log(256),c=Math.log(256)/Math.log(f);function d(e){if("string"!=typeof e)throw TypeError("Expected String");if(0===e.length)return new Uint8Array;var n=0;if(" "!==e[0]){for(var i=0,a=0;e[n]===l;)i++,n++;for(var o=(e.length-n)*u+1>>>0,s=new Uint8Array(o);e[n];){var c=r[e.charCodeAt(n)];if(255===c)return;for(var d=0,p=o-1;(0!==c||d<a)&&-1!==p;p--,d++)c+=f*s[p]>>>0,s[p]=c%256>>>0,c=c/256>>>0;if(0!==c)throw Error("Non-zero carry");a=d,n++}if(" "!==e[n]){for(var h=o-a;h!==o&&0===s[h];)h++;for(var y=new Uint8Array(i+(o-h)),m=i;h!==o;)y[m++]=s[h++];return y}}}return{encode:function(n){if(n instanceof Uint8Array||(ArrayBuffer.isView(n)?n=new Uint8Array(n.buffer,n.byteOffset,n.byteLength):Array.isArray(n)&&(n=Uint8Array.from(n))),!(n instanceof Uint8Array))throw TypeError("Expected Uint8Array");if(0===n.length)return"";for(var r=0,i=0,a=0,o=n.length;a!==o&&0===n[a];)a++,r++;for(var s=(o-a)*c+1>>>0,u=new Uint8Array(s);a!==o;){for(var d=n[a],p=0,h=s-1;(0!==d||p<i)&&-1!==h;h--,p++)d+=256*u[h]>>>0,u[h]=d%f>>>0,d=d/f>>>0;if(0!==d)throw Error("Non-zero carry");i=p,a++}for(var y=s-i;y!==s&&0===u[y];)y++;for(var m=l.repeat(r);y<s;++y)m+=e.charAt(u[y]);return m},decodeUnsafe:d,decode:function(e){var r=d(e);if(r)return r;throw Error(`Non-${n} character`)}}};let C=new Uint8Array(0),M=e=>e.reduce((e,n)=>e+n.toString(16).padStart(2,"0"),""),A=e=>{let n=e.match(/../g);return n?new Uint8Array(n.map(e=>parseInt(e,16))):C},E=(e,n)=>{if(e===n)return!0;
476if(e.byteLength!==n.byteLength)return!1;for(let r=0;r<e.byteLength;r++)if(e[r]!==n[r])return!1;return!0},I=e=>{if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw Error("Unknown type, must be binary type")},S=e=>e instanceof ArrayBuffer||ArrayBuffer.isView(e),k=e=>new TextEncoder().encode(e),N=e=>new TextDecoder().decode(e);class j{constructor(e,n,r){this.name=e,this.prefix=n,this.baseEncode=r}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class D{constructor(e,n,r){if(this.name=e,this.prefix=n,void 0===n.codePointAt(0))throw Error("Invalid prefix character");this.prefixCodePoint=n.codePointAt(0),this.baseDecode=r}decode(e){if("string"==typeof e){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(e){return O(this,e)}}class _{constructor(e){this.decoders=e}or(e){return O(this,e)}decode(e){let n=e[0],r=this.decoders[n];if(r)return r.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}let O=(e,n)=>new _({...e.decoders||{[e.prefix]:e},...n.decoders||{[n.prefix]:n}});class P{constructor(e,n,r,i){this.name=e,this.prefix=n,this.baseEncode=r,this.baseDecode=i,this.encoder=new j(e,n,r),this.decoder=new D(e,n,i)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}let L=({name:e,prefix:n,encode:r,decode:i})=>new P(e,n,r,i),R=({prefix:e,name:n,alphabet:r})=>{let{encode:i,decode:a}=T(r,n);return L({prefix:e,name:n,encode:i,decode:e=>I(a(e))})},z=(e,n,r,i)=>{let a={};for(let e=0;e<n.length;++e)a[n[e]]=e;let o=e.length;for(;"="===e[o-1];)--o;let s=new Uint8Array(o*r/8|0),f=0,l=0,u=0;for(let n=0;n<o;++n){let o=a[e[n]];if(void 0===o)throw SyntaxError(`Non-${i} character`);l=l<<r|o,(f+=r)>=8&&(f-=8,s[u++]=255&l>>f)}if(f>=r||255&l<<8-f)throw SyntaxError("Unexpected end of data");return s},B=(e,n,r)=>{let i="="===n[n.length-1],a=(1<<r)-1,o="",s=0,f=0;for(let i=0;i<e.length;++i)for(f=f<<8|e[i],s+=8;s>r;)s-=r,o+=n[a&f>>s];if(s&&(o+=n[a&f<<r-s]),i)for(;o.length*r&7;)o+="=";return o},U=({name:e,prefix:n,bitsPerChar:r,alphabet:i})=>L({prefix:n,name:e,encode:e=>B(e,i,r),decode:n=>z(n,i,r,e)}),F=L({prefix:"\0",name:"identity",encode:e=>N(e),decode:e=>k(e)}),Z=U({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),W=U({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),H=R({prefix:"9",name:"base10",alphabet:"0123456789"}),G=U({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),q=U({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),Y=U({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),V=U({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),Q=U({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),K=U({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),$=U({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),J=U({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),X=U({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),ee=U({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),et=U({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),en=R({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),er=R({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),ei=R({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),ea=R({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),eo=U({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
476+/",bitsPerChar:6}),es=U({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),ef=U({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),el=U({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),eu=Array.from("\uD83D\uDE80\uD83E\uDE90â\uD83D\uDEF0\uD83C\uDF0C\uD83C\uDF11\uD83C\uDF12\uD83C\uDF13\uD83C\uDF14\uD83C\uDF15\uD83C\uDF16\uD83C\uDF17\uD83C\uDF18\uD83C\uDF0D\uD83C\uDF0F\uD83C\uDF0E\uD83D\uDC09â\uD83D\uDCBB\uD83D\uDDA5\uD83D\uDCBE\uD83D\uDCBF\uD83D\uDE02â¤\uD83D\uDE0D\uD83E\uDD23\uD83D\uDE0A\uD83D\uDE4F\uD83D\uDC95\uD83D\uDE2D\uD83D\uDE18\uD83D\uDC4D\uD83D\uDE05\uD83D\uDC4F\uD83D\uDE01\uD83D\uDD25\uD83E\uDD70\uD83D\uDC94\uD83D\uDC96\uD83D\uDC99\uD83D\uDE22\uD83E\uDD14\uD83D\uDE06\uD83D\uDE44\uD83D\uDCAA\uD83D\uDE09âº\uD83D\uDC4C\uD83E\uDD17\uD83D\uDC9C\uD83D\uDE14\uD83D\uDE0E\uD83D\uDE07\uD83C\uDF39\uD83E\uDD26\uD83C\uDF89\uD83D\uDC9Eââ¨\uD83E\uDD37\uD83D\uDE31\uD83D\uDE0C\uD83C\uDF38\uD83D\uDE4C\uD83D\uDE0B\uD83D\uDC97\uD83D\uDC9A\uD83D\uDE0F\uD83D\uDC9B\uD83D\uDE42\uD83D\uDC93\uD83E\uDD29\uD83D\uDE04\uD83D\uDE00\uD83D\uDDA4\uD83D\uDE03\uD83D\uDCAF\uD83D\uDE48\uD83D\uDC47\uD83C\uDFB6\uD83D\uDE12\uD83E\uDD2Dâ£\uD83D\uDE1C\uD83D\uDC8B\uD83D\uDC40\uD83D\uDE2A\uD83D\uDE11\uD83D\uDCA5\uD83D\uDE4B\uD83D\uDE1E\uD83D\uDE29\uD83D\uDE21\uD83E\uDD2A\uD83D\uDC4A\uD83E\uDD73\uD83D\uDE25\uD83E\uDD24\uD83D\uDC49\uD83D\uDC83\uD83D\uDE33â\uD83D\uDE1A\uD83D\uDE1D\uD83D\uDE34\uD83C\uDF1F\uD83D\uDE2C\uD83D\uDE43\uD83C\uDF40\uD83C\uDF37\uD83D\uDE3B\uD83D\uDE13ââ
\uD83E\uDD7A\uD83C\uDF08\uD83D\uDE08\uD83E\uDD18\uD83D\uDCA6â\uD83D\uDE23\uD83C\uDFC3\uD83D\uDC90â¹\uD83C\uDF8A\uD83D\uDC98\uD83D\uDE20â\uD83D\uDE15\uD83C\uDF3A\uD83C\uDF82\uD83C\uDF3B\uD83D\uDE10\uD83D\uDD95\uD83D\uDC9D\uD83D\uDE4A\uD83D\uDE39\uD83D\uDDE3\uD83D\uDCAB\uD83D\uDC80\uD83D\uDC51\uD83C\uDFB5\uD83E\uDD1E\uD83D\uDE1B\uD83D\uDD34\uD83D\uDE24\uD83C\uDF3C\uD83D\uDE2Bâ½\uD83E\uDD19â\uD83C\uDFC6\uD83E\uDD2B\uD83D\uDC48\uD83D\uDE2E\uD83D\uDE46\uD83C\uDF7B\uD83C\uDF43\uD83D\uDC36\uD83D\uDC81\uD83D\uDE32\uD83C\uDF3F\uD83E\uDDE1\uD83C\uDF81â¡\uD83C\uDF1E\uD83C\uDF88ââ\uD83D\uDC4B\uD83D\uDE30\uD83E\uDD28\uD83D\uDE36\uD83E\uDD1D\uD83D\uDEB6\uD83D\uDCB0\uD83C\uDF53\uD83D\uDCA2\uD83E\uDD1F\uD83D\uDE41\uD83D\uDEA8\uD83D\uDCA8\uD83E\uDD2Câ\uD83C\uDF80\uD83C\uDF7A\uD83E\uDD13\uD83D\uDE19\uD83D\uDC9F\uD83C\uDF31\uD83D\uDE16\uD83D\uDC76\uD83E\uDD74â¶â¡â\uD83D\uDC8E\uD83D\uDCB8â¬\uD83D\uDE28\uD83C\uDF1A\uD83E\uDD8B\uD83D\uDE37\uD83D\uDD7Aâ \uD83D\uDE45\uD83D\uDE1F\uD83D\uDE35\uD83D\uDC4E\uD83E\uDD32\uD83E\uDD20\uD83E\uDD27\uD83D\uDCCC\uD83D\uDD35\uD83D\uDC85\uD83E\uDDD0\uD83D\uDC3E\uD83C\uDF52\uD83D\uDE17\uD83E\uDD11\uD83C\uDF0A\uD83E\uDD2F\uD83D\uDC37â\uD83D\uDCA7\uD83D\uDE2F\uD83D\uDC86\uD83D\uDC46\uD83C\uDFA4\uD83D\uDE47\uD83C\uDF51â\uD83C\uDF34\uD83D\uDCA3\uD83D\uDC38\uD83D\uDC8C\uD83D\uDCCD\uD83E\uDD40\uD83E\uDD22\uD83D\uDC45\uD83D\uDCA1\uD83D\uDCA9\uD83D\uDC50\uD83D\uDCF8\uD83D\uDC7B\uD83E\uDD10\uD83E\uDD2E\uD83C\uDFBC\uD83E\uDD75\uD83D\uDEA9\uD83C\uDF4E\uD83C\uDF4A\uD83D\uDC7C\uD83D\uDC8D\uD83D\uDCE3\uD83E\uDD42"),ec=eu.reduce((e,n,r)=>(e[r]=n,e),[]),ed=eu.reduce((e,n,r)=>(e[n.codePointAt(0)]=r,e),[]),ep=L({prefix:"\uD83D\uDE80",name:"base256emoji",encode:function(e){return e.reduce((e,n)=>e+=ec[n],"")},decode:function(e){let n=[];for(let r of e){let e=ed[r.codePointAt(0)];if(void 0===e)throw Error(`Non-base256emoji character: ${r}`);n.push(e)}return new Uint8Array(n)}});var eh=function e(n,r,i){r=r||[];for(var a=i=i||0;n>=2147483648;)r[i++]=255&n|128,n/=128;for(;-128&n;)r[i++]=255&n|128,n>>>=7;return r[i]=0|n,e.bytes=i-a+1,r},ey=function e(n,r){var i,a=0,r=r||0,o=0,s=r,f=n.length;do{if(s>=f)throw e.bytes=0,RangeError("Could not decode varint");i=n[s++],a+=o<28?(127&i)<<o:(127&i)*Math.pow(2,o),o+=7}while(i>=128);return e.bytes=s-r,a};let em=(e,n=0)=>[ey(e,n),ey.bytes],eg=(e,n,r=0)=>(eh(e,n,r),n),eb=e=>e<128?1:e<16384?2:e<2097152?3:e<268435456?4:e<34359738368?5:e<4398046511104?6:e<562949953421312?7:e<72057594037927940?8:e<0x7fffffffffffffff?9:10,ev=(e,n)=>{let r=n.byteLength,i=eb(e),a=i+eb(r),o=new Uint8Array(a+r);return eg(e,o,0),eg(r,o,i),o.set(n,a),new eT(e,r,n,o)},ew=e=>{let n=I(e),[r,i]=em(n),[a,o]=em(n.subarray(i)),s=n.subarray(i+o);if(s.byteLength!==a)throw Error("Incorrect length");return new eT(r,a,s,n)},ex=(e,n)=>e===n||e.code===n.code&&e.size===n.size&&E(e.bytes,n.bytes);
476class eT{constructor(e,n,r,i){this.code=e,this.size=n,this.digest=r,this.bytes=i}}let eC=({name:e,code:n,encode:r})=>new eM(e,n,r);class eM{constructor(e,n,r){this.name=e,this.code=n,this.encode=r}digest(e){if(e instanceof Uint8Array){let n=this.encode(e);return n instanceof Uint8Array?ev(this.code,n):n.then(e=>ev(this.code,e))}throw Error("Unknown type, must be binary type")}}let eA=e=>async n=>new Uint8Array(await crypto.subtle.digest(e,n)),eE=eC({name:"sha2-256",code:18,encode:eA("SHA-256")}),eI=eC({name:"sha2-512",code:19,encode:eA("SHA-512")}),eS={code:0,name:"identity",encode:I,digest:e=>ev(0,I(e))},ek="raw",eN=85,ej=e=>I(e),eD=e=>I(e),e_=new TextEncoder,eO=new TextDecoder,eP="json",eL=512,eR=e=>e_.encode(JSON.stringify(e)),ez=e=>JSON.parse(eO.decode(e));class eB{constructor(e,n,r,i){this.code=n,this.version=e,this.multihash=r,this.bytes=i,this.byteOffset=i.byteOffset,this.byteLength=i.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:eV,byteLength:eV,code:eY,version:eY,multihash:eY,bytes:eY,_baseCache:eV,asCID:eV})}toV0(){if(0===this.version)return this;{let{code:e,multihash:n}=this;if(e!==eW)throw Error("Cannot convert a non dag-pb CID to CIDv0");if(n.code!==eH)throw Error("Cannot convert non sha2-256 multihash CID to CIDv0");return eB.createV0(n)}}toV1(){switch(this.version){case 0:{let{code:e,digest:n}=this.multihash,r=ev(e,n);return eB.createV1(this.code,r)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}equals(e){return e&&this.code===e.code&&this.version===e.version&&ex(this.multihash,e.multihash)}toString(e){let{bytes:n,version:r,_baseCache:i}=this;return 0===r?eF(n,i,e||ei.encoder):eZ(n,i,e||Y.encoder)}toJSON(){return{code:this.code,version:this.version,hash:this.multihash.bytes}}get[Symbol.toStringTag](){return"CID"}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}static isCID(e){return eQ(/^0\.0/,eK),!!(e&&(e[eq]||e.asCID===e))}get toBaseEncodedString(){throw Error("Deprecated, use .toString()")}get codec(){throw Error('"codec" property is deprecated, use integer "code" property instead')}get buffer(){throw Error("Deprecated .buffer property, use .bytes to get Uint8Array instead")}get multibaseName(){throw Error('"multibaseName" property is deprecated')}get prefix(){throw Error('"prefix" property is deprecated')}static asCID(e){if(e instanceof eB)return e;if(null!=e&&e.asCID===e){let{version:n,code:r,multihash:i,bytes:a}=e;return new eB(n,r,i,a||eG(n,r,i.bytes))}if(null==e||!0!==e[eq])return null;{let{version:n,multihash:r,code:i}=e,a=ew(r);return eB.create(n,i,a)}}static create(e,n,r){if("number"!=typeof n)throw Error("String codecs are no longer supported");switch(e){case 0:if(n===eW)return new eB(e,n,r,r.bytes);throw Error(`Version 0 CID must use dag-pb (code: ${eW}) block encoding`);case 1:{let i=eG(e,n,r.bytes);return new eB(e,n,r,i)}default:throw Error("Invalid version")}}static createV0(e){return eB.create(0,eW,e)}static createV1(e,n){return eB.create(1,e,n)}static decode(e){let[n,r]=eB.decodeFirst(e);if(r.length)throw Error("Incorrect length");return n}static decodeFirst(e){let n=eB.inspectBytes(e),r=n.size-n.multihashSize,i=I(e.subarray(r,r+n.multihashSize));if(i.byteLength!==n.multihashSize)throw Error("Incorrect length");let a=i.subarray(n.multihashSize-n.digestSize),o=new eT(n.multihashCode,n.digestSize,a,i);return[0===n.version?eB.createV0(o):eB.createV1(n.codec,o),e.subarray(n.size)]}static inspectBytes(e){let n=0,r=()=>{let[r,i]=em(e.subarray(n));return n+=i,r},i=r(),a=eW;if(18===i?(i=0,n=0):1===i&&(a=r()),0!==i&&1!==i)throw RangeError(`Invalid CID version ${i}`);let o=n,s=r(),f=r(),l=n+f;return{version:i,codec:a,multihashCode:s,digestSize:f,multihashSize:l-o,size:l}}static parse(e,n){let[r,i]=eU(e,n),a=eB.decode(i);return a._baseCache.set(r,e),a}}let eU=(e,n)=>{switch(e[0]){case"Q":return[ei.prefix,(n||ei).decode(`${ei.prefix}${e}`)];case ei.prefix:return[ei.prefix,(n||ei).decode(e)];case Y.prefix:return[Y.prefix,(n||Y).decode(e)];default:if(null==n)throw Error("To parse non base32 or base58btc encoded CID multibase decoder must be provided");return[e[0],n.decode(e)]}},eF=(e,n,r)=>{let{prefix:i}=r;if(i!==ei.prefix)throw Error(`Cannot string encode V0 in ${r.name} encoding`);let a=n.get(i);if(null!=a)return a;{let a=r.encode(e).slice(1);return n.set(i,a),a}},eZ=(e,n,r)=>{let{prefix:i}=r,a=n.get(i);if(null!=a)return a;{let a=r.encode(e);return n.set(i,a),a}},eW=112,eH=18,eG=(e,n,r)=>{let i=eb(e),a=i+eb(n),o=new Uint8Array(a+r.byteLength);return eg(e,o,0),eg(n,o,i),o.set(r,a),o}
476,eq=Symbol.for("@ipld/js-cid/CID"),eY={writable:!1,configurable:!1,enumerable:!0},eV={writable:!1,enumerable:!1,configurable:!1},eQ=(e,n)=>{if(e.test("0.0.0-dev"))console.warn(n);else throw Error(n)},eK=`CID.isCID(v) is deprecated and will be removed in the next major release. 477Following code pattern: 478 479if (CID.isCID(value)) { 480 doSomethingWithCID(value) 481} 482 483Is replaced with: 484 485const cid = CID.asCID(value) 486if (cid) { 487 // Make sure to use cid instead of value 488 doSomethingWithCID(cid) 489} 490`,e$={...a,...o,...s,...f,...l,...u,...c,...d,...p,...h},eJ={...b,...v},eX={raw:w,json:x}},52587:function(e,n,r){"use strict";function i(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,i=Array(n);r<n;r++)i[r]=e[r];return i}r.d(n,{Z:function(){return i}})},14666:function(e,n,r){"use strict";function i(e){if(Array.isArray(e))return e}r.d(n,{Z:function(){return i}})},50029:function(e,n,r){"use strict";function i(e,n,r,i,a,o,s){try{var f=e[o](s),l=f.value}catch(e){r(e);return}f.done?n(l):Promise.resolve(l).then(i,a)}function a(e){return function(){var n=this,r=arguments;return new Promise(function(a,o){var s=e.apply(n,r);function f(e){i(s,a,o,f,l,"next",e)}function l(e){i(s,a,o,f,l,"throw",e)}f(void 0)})}}r.r(n),r.d(n,{default:function(){return a}})},92777:function(e,n,r){"use strict";function i(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}r.d(n,{Z:function(){return i}})},82262:function(e,n,r){"use strict";r.d(n,{Z:function(){return o}});var i=r(15358);function a(e,n){for(var r=0;r<n.length;r++){var a=n[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,(0,i.Z)(a.key),a)}}function o(e,n,r){return n&&a(e.prototype,n),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}},59499:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return a}});var i=r(15358);function a(e,n,r){return(n=(0,i.Z)(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}},28811:function(e,n,r){"use strict";function i(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}r.d(n,{Z:function(){return i}})},14882:function(e,n,r){"use strict";function i(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(n,{Z:function(){return i}})},4730:function(e,n,r){"use strict";function i(e,n){if(null==e)return{};var r,i,a=function(e,n){if(null==e)return{};var r,i,a={},o=Object.keys(e);for(i=0;i<o.length;i++)r=o[i],n.indexOf(r)>=0||(a[r]=e[r]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(n.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}r.d(n,{Z:function(){return i}})},17674:function(e,n,r){"use strict";r.d(n,{Z:function(){return s}});var i=r(14666),a=r(2937),o=r(14882);function s(e,n){return(0,i.Z)(e)||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var i,a,o,s,f=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===n){if(Object(r)!==r)return;l=!1}else for(;!(l=(i=o.call(r)).done)&&(f.push(i.value),f.length!==n);l=!0);}catch(e){u=!0,a=e}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw a}}return f}}(e,n)||(0,a.Z)(e,n)||(0,o.Z)()}},71383:function(e,n,r){"use strict";function i(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}r.d(n,{Z:function(){return i}})},90116:function(e,n,r){"use strict";r.d(n,{Z:function(){return s}});var i=r(52587),a=r(28811),o=r(2937);function s(e){return function(e){if(Array.isArray(e))return(0,i.Z)(e)}(e)||(0,a.Z)(e)||(0,o.Z)(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},15358:function(e,n,r){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e){var n=function(e,n){if("object"!==i(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,n||"default");if("object"!==i(a))return a;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===i(n)?n:String(n)}r.d(n,{Z:function(){return a}})},2937:function(e,n,r){"use strict";r.d(n,{Z:function(){return a}});var i=r(52587);
490function a(e,n){if(e){if("string"==typeof e)return(0,i.Z)(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return(0,i.Z)(e,n)}}},50841:function(e,n,r){"use strict";r.d(n,{ZT:function(){return a},_T:function(){return s},ev:function(){return f},pi:function(){return o}});var i=function(e,n){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])})(e,n)};function a(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}i(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++)for(var a in n=arguments[r])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e}).apply(this,arguments)};function s(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>n.indexOf(i)&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,i=Object.getOwnPropertySymbols(e);a<i.length;a++)0>n.indexOf(i[a])&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(r[i[a]]=e[i[a]]);return r}function f(e,n,r){if(r||2==arguments.length)for(var i,a=0,o=n.length;a<o;a++)!i&&a in n||(i||(i=Array.prototype.slice.call(n,0,a)),i[a]=n[a]);return e.concat(i||Array.prototype.slice.call(n))}"function"==typeof SuppressedError&&SuppressedError},95810:function(e,n,r){"use strict";r.d(n,{Ah:function(){return h},GO:function(){return l},XY:function(){return f},ZN:function(){return p},ax:function(){return function e(n){if("number"==typeof n)return{id:n,rpc:`https://${n}.rpc.thirdweb.com`};if("rpcUrls"in n&&!("rpc"in n))return e({id:n.id,name:n.name,nativeCurrency:{name:n.nativeCurrency.name,symbol:n.nativeCurrency.symbol,decimals:n.nativeCurrency.decimals},rpc:n.rpcUrls.default.http[0]??`https://${n.id}.rpc.thirdweb.com`,blockExplorers:n?.blockExplorers?Object.values(n?.blockExplorers).map(e=>({name:e.name,url:e.url,apiUrl:e.apiUrl})):[]});if("rpc"in n&&Array.isArray(n.rpc)&&"slug"in n)return function(e){let n={id:e.chainId,name:e.name,rpc:e.rpc[0]??`https://${e.chainId}.rpc.thirdweb.com`,blockExplorers:e?.explorers?.map(e=>({name:e.name,url:e.url,apiUrl:e.url})),nativeCurrency:{name:e.nativeCurrency.name,symbol:e.nativeCurrency.symbol,decimals:e.nativeCurrency.decimals}};return e.testnet?{...n,testnet:!0}:n}(n);let r=n.rpc;r||(r=`https://${n.id}.rpc.thirdweb.com`);let i={...n,rpc:r};return s.set(n.id,i),i}},getChainDecimals:function(){return c},getChainNativeCurrencyName:function(){return d},getChainSymbol:function(){return u}});var i=r(88615),a=r(99910),o=r(71786);let s=new Map;function f(e){return s.has(e)?s.get(e):{id:e,rpc:`https://${e}.rpc.thirdweb.com`}}function l(e){let n=(0,i.gc)().rpc;if("number"==typeof e.chain)return`https://${e.chain}.${n}/${e.client.clientId}`;let{rpc:r}=e.chain;if((0,a.Rm)(r)){let r=new URL(e.chain.rpc.replace(i.vB,n));return r.pathname=`/${e.client.clientId}`,r.toString()}return r}async function u(e){return e.nativeCurrency?.symbol?e.nativeCurrency.symbol:p(e).then(e=>e.nativeCurrency.symbol).catch(()=>"ETH")}async function c(e){return e.nativeCurrency?.decimals?e.nativeCurrency.decimals:p(e).then(e=>e.nativeCurrency.decimals).catch(()=>18)}async function d(e){return e.nativeCurrency?.name?e.nativeCurrency.name:p(e).then(e=>e.nativeCurrency.name).catch(()=>"ETH")}function p(e){let n=e.id;return(0,o.D)(async()=>{try{let r=await fetch(`https://api.thirdweb.com/v1/chains/${n}`);if(!r.ok)throw r.body?.cancel(),Error(`Failed to fetch chain data for chainId ${n}`);let i=await r.json();if(i.error||!i.data)throw Error(`Failed to fetch chain data for chainId ${n}`);let a=i.data;return y(e,a)}catch{return y(e)}},{cacheKey:`chain:${n}`,cacheTime:3e5})}function h(e){return{id:e.chainId,name:e.name,rpc:e.rpc[0]||"",testnet:!0===e.testnet||void 0,nativeCurrency:e.nativeCurrency,blockExplorers:e.explorers?.map(e=>({name:e.name,url:e.url,apiUrl:e.url}))}}function y(e,n){let r=e.nativeCurrency?{...n?.nativeCurrency,...e.nativeCurrency}:n?.nativeCurrency;return{...n,name:e.name||n?.name||"",chainId:e.id||n?.chainId||-1,rpc:e.rpc?[e.rpc]:n?.rpc||[""],testnet:e.testnet||n?.testnet||!1,nativeCurrency:{name:r?.name||"",symbol
490:r?.symbol||"",decimals:r?.decimals||18},icon:e.icon||n?.icon,chain:n?.chain||e.name||"",shortName:n?.shortName||e.name||"",slug:n?.slug||e.name||"",explorers:e.blockExplorers?.map(e=>({name:e.name,url:e.url,standard:"EIP3091"}))||n?.explorers}}},9195:function(e,n,r){"use strict";r.d(n,{P:function(){return u}});var i=r(51489),a=r(24951),o=r(53932),s=r(52749),f=r(75403);let l=new i.k(4096);function u(e){let{clientId:n,secretKey:r,...i}=e;if(r)return{...i,clientId:function(e){if(l.has(e))return l.get(e);let n=(function(e,n){let r=(0,o.J)((0,s.v)(e,{strict:!1})?(0,f.GZ)(e):e);return(0,f.dg)(r)})((0,a.qX)(e)).slice(2,34);return l.set(e,n),n}(r),secretKey:r};if(n)return{...i,clientId:e.clientId,secretKey:void 0};throw Error("clientId or secretKey must be provided")}},57621:function(e,n,r){"use strict";function i(e){return e}r.d(n,{u:function(){return i}})},84802:function(e,n,r){"use strict";r.d(n,{D:function(){return p}});var i=r(95810),a=r(57621),o=r(98189),s=r(21690),f=r(99587);let l=[{type:"address",name:"spender"},{type:"uint256",name:"value"}],u=[{type:"bool"}];var c=r(99910),d=r(22278);async function p(e){try{var n;let p=new URLSearchParams({fromAddress:e.fromAddress,fromChainId:e.fromChainId.toString(),fromTokenAddress:e.fromTokenAddress.toLowerCase(),toChainId:e.toChainId.toString(),toTokenAddress:e.toTokenAddress.toLowerCase()});"fromAmount"in e&&e.fromAmount&&p.append("fromAmount",e.fromAmount),"toAmount"in e&&e.toAmount&&p.append("toAmount",e.toAmount),e.maxSlippageBPS&&p.append("maxSlippageBPS",e.maxSlippageBPS.toString()),e.intentId&&p.append("intentId",e.intentId);let h=p.toString(),y=`${(0,d.Bu)()}?${h}`,m=await (0,c.NX)(e.client)(y);if(!m.ok){let e=await m.json();if(e&&"error"in e&&"object"==typeof e.error&&"message"in e.error)throw Error(e.error.message);throw Error(`HTTP error! status: ${m.status}`)}let g=(await m.json()).result;return{transactionRequest:{chain:(0,i.XY)(g.transactionRequest.chainId),client:e.client,data:g.transactionRequest.data,to:g.transactionRequest.to,value:BigInt(g.transactionRequest.value),gas:BigInt(g.transactionRequest.gasLimit),gasPrice:BigInt(g.transactionRequest.gasPrice)},approval:g.approval?(n={contract:(0,a.u)({client:e.client,address:g.approval.tokenAddress,chain:(0,i.XY)(g.approval.chainId)}),spender:g.approval?.spenderAddress,amountWei:BigInt(g.approval.amountWei)},function(e){let n=(0,f.I)(async()=>"asyncParams"in e?await e.asyncParams():e);return(0,s.A)({contract:e.contract,method:["0x095ea7b3",l,u],params:async()=>{let e=await n();return[e.spender,e.value]},value:async()=>(await n()).overrides?.value,accessList:async()=>(await n()).overrides?.accessList,gas:async()=>(await n()).overrides?.gas,gasPrice:async()=>(await n()).overrides?.gasPrice,maxFeePerGas:async()=>(await n()).overrides?.maxFeePerGas,maxPriorityFeePerGas:async()=>(await n()).overrides?.maxPriorityFeePerGas,nonce:async()=>(await n()).overrides?.nonce,extraGas:async()=>(await n()).overrides?.extraGas})}({contract:n.contract,asyncParams:async()=>{let e;if("amount"in n){let{decimals:i}=await Promise.all([r.e(26182),r.e(42898)]).then(r.bind(r,12716)),a=await i(n).catch(()=>18);e=(0,o.xk)(n.amount.toString(),a)}else e=n.amountWei;return{spender:n.spender,value:e}}})):void 0,swapDetails:{fromAddress:g.fromAddress,toAddress:g.toAddress,fromToken:g.fromToken,toToken:g.toToken,fromAmount:g.fromAmount,fromAmountWei:g.fromAmountWei,toAmountMinWei:g.toAmountMinWei,toAmountMin:g.toAmountMin,toAmountWei:g.toAmountWei,toAmount:g.toAmount,estimated:g.estimated,maxSlippageBPS:g.maxSlippageBPS},paymentTokens:g.paymentTokens,processingFees:g.processingFees,client:e.client}}catch(e){throw console.error("Fetch error:",e),Error(`Fetch failed: ${e}`)}}},7101:function(e,n,r){"use strict";r.d(n,{w:function(){return o}});var i=r(99910),a=r(22278);async function o(e){try{if(!e.transactionHash)throw Error("Transaction hash is required");let n=new URLSearchParams({transactionHash:e.transactionHash}).toString(),r=`${(0,a.I5)()}?${n}`,o=await (0,i.NX)(e.client)(r);if(!o.ok)throw o.body?.cancel(),Error(`HTTP error! status: ${o.status}`);return(await o.json()).result}catch(e){throw console.error("Fetch error:",e),Error(`Fetch failed: ${e}`)}}},22278:function(e,n,r){"use strict";r.d(n,{Bo:function(){return u},Bu:function(){return o},EW:function(){return s},I5:function(){return a},_v:function(){return l},gi:function(){return f},oI:function(){return d},te:function(){return c}});var i=r(88615);let a=()=>`https://${(0,i.gc)().pay}
490/buy-with-crypto/status/v1`,o=()=>`https://${(0,i.gc)().pay}/buy-with-crypto/quote/v1`,s=()=>`https://${(0,i.gc)().pay}/buy-with-fiat/quote/v1`,f=()=>`https://${(0,i.gc)().pay}/buy-with-fiat/status/v1`,l=()=>`https://${(0,i.gc)().pay}/buy-with-crypto/history/v1`,u=()=>`https://${(0,i.gc)().pay}/destination-tokens/v1`,c=()=>`https://${(0,i.gc)().pay}/buy-with-crypto/source-tokens/v1`,d=()=>`https://${(0,i.gc)().pay}/wallet/history/v1`},11168:function(e,n,r){"use strict";r.d(n,{E:function(){return i}});let i=(0,r(67294).createContext)(()=>{})},10378:function(e,n,r){"use strict";function i(e,n){return e.invalidateQueries({queryKey:["walletBalance",n]})}r.d(n,{K:function(){return i}})},98511:function(e,n,r){"use strict";r.r(n),r.d(n,{getRpcClient:function(){return u}});var i=r(95810),a=r(99910),o=r(75100);async function s(e,n,r){let i=await (0,a.NX)(n)(e,{headers:{...n.config?.rpc?.fetch?.headers,"Content-Type":"application/json"},body:(0,o.P)(r.requests),method:"POST",requestTimeoutMs:r.requestTimeoutMs??n.config?.rpc?.fetch?.requestTimeoutMs,keepalive:n.config?.rpc?.fetch?.keepalive});if(!i.ok)throw i.body?.cancel(),Error(`RPC request failed with status ${i.status} - ${i.statusText}`);if(i.headers.get("Content-Type")?.startsWith("application/json"))return await i.json();let s=await i.text();try{return JSON.parse(s)}catch(e){throw console.error("Error parsing response",e,s),e}}async function f(e,n,r){let i=await (0,a.NX)(n)(e,{headers:{...n.config?.rpc?.fetch?.headers||{},"Content-Type":"application/json"},body:(0,o.P)(r.request),method:"POST",requestTimeoutMs:r.requestTimeoutMs??n.config?.rpc?.fetch?.requestTimeoutMs,keepalive:n.config?.rpc?.fetch?.keepalive});if(!i.ok)throw i.body?.cancel(),Error(`RPC request failed with status ${i.status}`);if(i.headers.get("Content-Type")?.startsWith("application/json"))return await i.json();let s=await i.text();try{return JSON.parse(s)}catch(e){throw console.error("Error parsing response",e,s),e}}let l=new WeakMap;function u(e){let n=function(e){if(l.has(e))return l.get(e);let n=new Map;return l.set(e,n),n}(e.client),r=e.chain.id;if(n.has(e.chain.rpc))return n.get(e.chain.rpc);let a=(()=>{let n=(0,i.GO)({client:e.client,chain:e.chain}),r=e.config?.maxBatchSize??e.client.config?.rpc?.maxBatchSize??100,a=e.config?.batchTimeoutMs??e.client.config?.rpc?.batchTimeoutMs??0,o=new Map,l=[],u=null;function c(){u&&(clearTimeout(u),u=null);let r=Array(l.length),i=l.slice().map((e,n)=>(e.request.id=n,e.request.jsonrpc="2.0",r[n]=e.request,e));l=[],s(n,e.client,{requests:r,requestTimeoutMs:e.config?.requestTimeoutMs}).then(e=>{i.forEach((n,r)=>{let i=e[r];if(!i){n.reject(Error("No response"));return}if(i instanceof Error){n.reject(i);return}if("string"==typeof i){n.reject(Error(i));return}if("error"in i)n.reject(i.error);else if("eth_subscription"===i.method)throw Error("Subscriptions not supported yet");else n.resolve(i.result);o.delete(n.requestKey)})}).catch(e=>{for(let n of i)n.reject(e),o.delete(n.requestKey)})}return 1===r?async r=>{r.id=1,r.jsonrpc="2.0";let i=await f(n,e.client,{request:r,requestTimeoutMs:e.config?.requestTimeoutMs});if(!i)throw Error("No response");if("error"in i)throw i.error;return i.result}:async e=>{let n,i;let s=`${e.method}:${JSON.stringify(e.params)}`;if(o.has(s))return o.get(s);let f=new Promise((e,r)=>{n=e,i=r});return o.set(s,f),l.push({request:e,resolve:n,reject:i,requestKey:s}),r>1?(u||(u=setTimeout(c,a)),l.length>=r&&c()):c(),f}})();return n.set(r,a),a}},41872:function(e,n,r){"use strict";r.d(n,{h:function(){return p}});var i=r(95946),a=r(6073);let o={"0x0":"reverted","0x1":"success"};async function s(e,n){let r=await e({method:"eth_getTransactionReceipt",params:[n.hash]});if(!r)throw Error("Transaction receipt not found.");return function(e){let n={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(e=>(function(e,{args:n,eventName:r}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...r?{args:n,eventName:r}:{}}})(e)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?(0,i.ly)(e.transactionIndex):null,status:e.status?o[e.status]:null,type:e.type?a.c8[e.type]||e.type:null};return e.blobGasPrice&&(n.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(n.blobGasUsed=BigInt(e.blobGasUsed)),n}(r)}var f=r(98511),l=r(75403);async function u(e){let n=await e({method:"eth_blockNumber"});return(0,l.y_)(n)}let c=new Map,d=new Map;function p(e){let{transactionHash:n,chain:r,client:i}=e,a=r.id,o=`${a}:tx_${n}
490`,l=e.maxBlocksWaitTime??30;if(d.has(o))return d.get(o);let p=new Promise((e,a)=>{n||a(Error("Transaction has no transactionHash to wait for, did you execute it?"));let o=(0,f.getRpcClient)({client:i,chain:r}),d=-1,p=function(e){let{client:n,chain:r,onNewBlockNumber:i,overPollRatio:a,latestBlockNumber:o,onError:s}=e,l=r.id,d=c.get(l);return d||(d=function(e,n,r,i){let a,o,s=[],l=[],c=!1,d=(0,f.getRpcClient)({client:e,chain:n});async function p(){var e;if(!c)return;try{let e=await u(d);if(!a||e>a){let n=[];if(a)for(let r=a+1n;r<=e;r++)n.push(BigInt(r));else n=[e];a=e;let r=new Date().getTime();if(o){let e=(r-o)/n.length;l.push(e),l=l.slice(-10)}for(let e of(o=r,n))for(let n of s)n(e)}}catch(e){i?i(e):console.error(`[watchBlockNumber]: Failed to poll for latest block number: ${e}`)}let n=Math.max(500,Math.min(5e3,Math.max(500,function(e){for(;e.length<10;)e.unshift(1e3);return e.reduce((e,n)=>e+n,0)/e.length}(l))));await (e=n/(r??2),new Promise(n=>setTimeout(n,e))),p()}return function(e,n){return s.push(e),c||(a=n,c=!0,p()),function(){0===(s=s.filter(n=>n!==e)).length&&(a=void 0,o=void 0,c=!1)}}}(n,r,a,s),c.set(l,d)),d(i,o)}({client:i,chain:r,onNewBlockNumber:async()=>{if(++d>=l){p(),a(Error(`Transaction not found after ${l} blocks`));return}try{let r=await s(o,{hash:n});p(),e(r)}catch{}}})}).finally(()=>{d.delete(o)});return d.set(o,p),p}},21690:function(e,n,r){"use strict";r.d(n,{A:function(){return u}});var i=r(38766),a=r(39430),o=r(31917),s=r(83159),f=r(71316),l=r(70440);
490function u(e){let{contract:n,method:r,params:u,...c}=e,d=()=>(async()=>{if(Array.isArray(r))return r;if((0,l.s)(r))return(0,o.i)(r);if("function"==typeof r)return(0,o.i)(await r(n));if("string"==typeof r&&r.startsWith("function ")){let e=(0,i.s)(r);if("function"===e.type)return(0,o.i)(e);throw Error('"method" passed is not of type "function"')}if(n.abi&&n.abi?.length>0){let e=n.abi?.find(e=>"function"===e.type&&e.name===r);if(e)return(0,o.i)(e)}throw Error(`Could not resolve method "${r}".`)})();return(0,f.prepareTransaction)({...c,to:n.address,chain:n.chain,client:n.client,data:async()=>{let e;return 0===(e=Array.isArray(r)?r:await d())[1].length?e[0]:e[0]+(0,a.encodeAbiParameters)(e[1],await (0,s.q)(u??[])).slice(2)}},{preparedMethod:d,contract:n})}},71316:function(e,n,r){"use strict";function i(e,n){return n&&(e.__preparedMethod=n.preparedMethod,e.__contract=n.contract),e}r.r(n),r.d(n,{prepareTransaction:function(){return i}})},70440:function(e,n,r){"use strict";function i(e){return!!(e&&"object"==typeof e&&"type"in e&&"function"===e.type)}r.d(n,{s:function(){return i}})},39430:function(e,n,r){"use strict";r.r(n),r.d(n,{encodeAbiParameters:function(){return l},encodeAddress:function(){return d},prepareParam:function(){return u}});var i=r(57040),a=r(3972),o=r(4159),s=r(58771),f=r(75403);function l(e,n){if(e.length!==n.length)throw Error("The number of parameters and values must match.");let r=c(function({params:e,values:n}){let r=[];for(let i=0;i<e.length;i++)r.push(u({param:e[i],value:n[i]}));return r}({params:e,values:n}));return 0===r.length?"0x":r}function u({param:e,value:n}){let r=function(e){let n=e.match(/^(.*)\[(\d+)?\]$/);return n?[n[2]?Number(n[2]):null,n[1]]:void 0}(e.type);if(r){let[a,o]=r;return function(e,{length:n,param:r}){let a=null===n;if(!Array.isArray(e))throw Error("Invalid array value.");if(!a&&e.length!==n)throw Error("Invalid array length.");let o=!1,s=[];for(let n=0;n<e.length;n++){let i=u({param:r,value:e[n]});i.dynamic&&(o=!0),s.push(i)}if(a||o){let e=c(s);if(a){let n=(0,f.eC)(s.length,{size:32});return{dynamic:!0,encoded:s.length>0?(0,i.zo)([n,e]):n}}if(o)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,i.zo)(s.map(({encoded:e})=>e))}}(n,{length:a,param:{...e,type:o}})}if("tuple"===e.type)return function(e,{param:n}){let r=!1,a=[];for(let i=0;i<n.components.length;i++){let o=n.components[i],s=Array.isArray(e)?i:o.name,f=u({param:o,value:e[s]});a.push(f),f.dynamic&&(r=!0)}return{dynamic:r,encoded:r?c(a):(0,i.zo)(a.map(({encoded:e})=>e))}}(n,{param:e});if("address"===e.type)return d(n);if("bool"===e.type)return{dynamic:!1,encoded:(0,f.gc)((0,f.C4)(n))};if(e.type.startsWith("uint")||e.type.startsWith("int"))return function(e,{signed:n}){return{dynamic:!1,encoded:(0,f.eC)(e,{size:32,signed:n})}}(n,{signed:e.type.startsWith("int")});if(e.type.startsWith("bytes"))return function(e,{param:n}){let[,r]=n.type.split("bytes"),a=(0,s.f)(e);if(!r){let n=e;return a%32!=0&&(n=(0,f.gc)(n,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:(0,i.zo)([(0,f.gc)((0,f.eC)(a,{size:32})),n])}}if(a!==Number.parseInt(r))throw Error(`Invalid bytes${r} size: ${a}`);return{dynamic:!1,encoded:(0,f.gc)(e,{dir:"right"})}}(n,{param:e});if("string"===e.type)return function(e){let n=(0,f.$G)(e),r=Math.ceil((0,s.f)(n)/32),o=[];for(let e=0;e<r;e++)o.push((0,f.gc)((0,a.tP)(n,32*e,(e+1)*32),{dir:"right"}));return{dynamic:!0,encoded:(0,i.zo)([(0,f.gc)((0,f.eC)((0,s.f)(n),{size:32})),...o])}}(n);throw Error(`Unsupported parameter type: ${e.type}`)}function c(e){let n=0;for(let r=0;r<e.length;r++){let{dynamic:i,encoded:a}=e[r];i?n+=32:n+=(0,s.f)(a)}let r=[],a=[],o=0;for(let i=0;i<e.length;i++){let{dynamic:l,encoded:u}=e[i];l?(r.push((0,f.eC)(n+o,{size:32})),a.push(u),o+=(0,s.f)(u)):r.push(u)}return(0,i.zo)([...r,...a])}function d(e){if(!(0,o.UJ)(e))throw Error("Invalid address.");return{dynamic:!1,encoded:(0,f.gc)(e.toLowerCase())}}},31917:function(e,n,r){"use strict";r.d(n,{i:function(){return l}});var i=r(38766),a=r(58034),o=r(51489),s=r(75100);let f=new o.k(4096);function l(e){let n="string"==typeof e?e:(0,s.P)(e);if(f.has(n))return f.get(n);let r="string"==typeof e?(0,i.s)(e):e,o=[(0,a.C)(r),r.inputs,r.outputs];return f.set(n,o),o}},4159:function(e,n,r){"use strict";r.d(n,{Kn:function(){return c},UJ:function(){return l}});var i=r(51489),a=r(24951),o=r(83218);let s=/^0x[a-fA-F0-9]{40}$/,f=new i.k(4096);function l(e){if(f.has(e))return f.get(e);let n=!!s.test(e)&&(e.toLowerCase()===e||u(e)===e);return f.set(e,n),n}function u(e){let n=e.substring(2).toLowerCase(),r=(0,o.w)((0,a.qX)(n),"bytes"),i=n.split("");for(let n=0;n<40;n+=2)r[n>>1]>>4>=8&&e[n]&&(i[n]=i[n].toUpperCase()),(15&r[n>>1])>=8&&e[n+1]&&(i[n+1]=i[n+1].toUpperCase());return`0x${i.join("")}`}function c(e){if(!l(e))throw Error(`Invalid address: ${e}`);return u(e)}},51489:function(e,n,r){"use strict";r.d(n,{k:function(){return i}});class i extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}set(e,n){return super.set(e,n),this.maxSize&&this.size>this.maxSize&&this.delete(this.keys().next().value),this}}},46126:function(e,n,r){"use strict";r.d(n,{f:function(){return o},t:function(){return a}});let i=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function a(){return"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?"mobile":"undefined"!=typeof navigator?"browser":"node"}function o(e){for(let n=0,r=i.length;n<r;n++){let[r,a]=i[n];if(a.exec(e))return r}return null}},88615:function(e,n,r){"use strict";r.d(n,{TS:function(){return s},gc:function(){return o},vB:function(){return i}});let i="rpc.thirdweb.com",a={rpc:i,inAppWallet:"embedded-wallet.thirdweb.com",pay:"pay.thirdweb.com",storage:"storage.thirdweb.com",bundler:"bundler.thirdweb.com"},o=()=>a,s=e=>{let n=a[e];return n.startsWith("localhost")?`http://${n}`:`https://${n}`}},5890:function(e,n,r){"use strict";r.d(n,{Y:function(){return a}});var i=r(58771);function a(e,{size:n}){let r=(0,i.f)(e);if(r>n)throw Error(`Size overflow: ${r} > ${n}`)}},58771:function(e,n,r){"use strict";r.d(n,{f:function(){return a}});var i=r(52749);function a(e){return(0,i.v)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}},27014:function(e,n,r){"use strict";r.d(n,{D:function(){return a}});let i={zero:48,nine:57,A:65,F:70,a:97,f:102};function a(e){return e>=i.zero&&e<=i.nine?e-i.zero:e>=i.A&&e<=i.F?e-(i.A-10):e>=i.a&&e<=i.f?e-(i.a-10):void 0}},52749:function(e,n,r){"use strict";function i(e,n={}){return!!e&&"string"==typeof e&&(n.strict?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x"))}r.d(n,{v:function(){return i}})},75403:function(e,n,r){"use strict";r.d(n,{$G:function(){return y},C4:function(){return d},GZ:function(){return u},NC:function(){return m},dg:function(){return p},eC:function(){return h},gc:function(){return s},ly:function(){return l},y_:function(){return f}});var i=r(65496),a=r(5890),o=r(27014);function s(e,n={}){let{dir:r,size:i=32}=n;if(null===i)return e;let a=e.replace("0x","");if(a.length>2*i)throw Error(`Size overflow: ${Math.ceil(a.length/2)} > ${i}`);return`0x${a["right"===r?"padEnd":"padStart"](2*i,"0")}`}function f(e,n={}){let{signed:r}=n;n.size&&(0,a.Y)(e,{size:n.size});let i=BigInt(e);if(!r)return i;let o=(e.length-2)/2;return i<=(1n<<8n*BigInt(o)-1n)-1n?i:i-BigInt(`0x${"f".padStart(2*o,"f")}`)-1n}function l(e,n={}){return Number(f(e,n))}function u(e,n={}){n.size&&((0,a.Y)(e,{size:n.size}),e=s(e,{dir:"right",size:n.size}));let r=e.slice(2);r.length%2&&(r=`0${r}`);
490let i=r.length/2,f=new Uint8Array(i);for(let e=0,n=0;e<i;e++){let i=(0,o.D)(r.charCodeAt(n++)),a=(0,o.D)(r.charCodeAt(n++));if(void 0===i||void 0===a)throw Error(`Invalid hex character: ${r}`);f[e]=16*i+a}return f}let c=Array.from({length:256},(e,n)=>n.toString(16).padStart(2,"0"));function d(e,n={}){let r=`0x${Number(e)}`;return"number"==typeof n.size?((0,a.Y)(r,{size:n.size}),s(r,{size:n.size})):r}function p(e,n={}){let r="";for(let n=0;n<e.length;n++)r+=c[e[n]];let i=`0x${r}`;return"number"==typeof n.size?((0,a.Y)(i,{size:n.size}),s(i,{dir:"right",size:n.size})):i}function h(e,n={}){let r;let{signed:i,size:a}=n,o=BigInt(e);a?r=i?(1n<<8n*BigInt(a)-1n)-1n:2n**(8n*BigInt(a))-1n:"number"==typeof e&&(r=BigInt(Number.MAX_SAFE_INTEGER));let f="bigint"==typeof r&&i?-r-1n:0;if(r&&o>r||o<f)throw Error(`Number "${e}${"bigint"==typeof e?"n":""}" is not in safe ${a?`${8*a}-bit ${i?"signed":"unsigned"} `:""}integer range ${r?`(${f} to ${r})`:`(above ${f})`}`);let l=`0x${(i&&o<0?(1n<<BigInt(8*a))+BigInt(o):o).toString(16)}`;return a?s(l,{size:a}):l}function y(e,n={}){return p((0,i.M)().encode(e),n)}function m(e,n={}){switch(typeof e){case"number":case"bigint":return h(e,n);case"string":return y(e,n);case"boolean":return d(e,n);default:return p(e,n)}}},24951:function(e,n,r){"use strict";r.d(n,{O0:function(){return u},nr:function(){return c},qX:function(){return d}});var i=r(65496),a=r(5890),o=r(27014),s=r(52749),f=r(75403);function l(e,{dir:n,size:r=32}={}){if(null===r)return e;if(e.length>r)throw Error(`Size overflow: ${e.length} > ${r}`);let i=new Uint8Array(r);for(let a=0;a<r;a++){let o="right"===n;i[o?a:r-a-1]=e[o?a:e.length-a-1]}return i}function u(e,n={}){switch(typeof e){case"number":case"bigint":return c((0,f.eC)(e,n));case"boolean":return function(e,n={}){let r=new Uint8Array(1);return(r[0]=Number(e),"number"==typeof n.size)?((0,a.Y)(r,{size:n.size}),l(r,{size:n.size})):r}(e,n);default:if((0,s.v)(e))return c(e,n);return d(e,n)}}function c(e,n={}){let r=e;n.size&&((0,a.Y)(r,{size:n.size}),r=(0,f.gc)(r,{dir:"right",size:n.size}));let i=r.slice(2);i.length%2&&(i=`0${i}`);let s=i.length/2,l=new Uint8Array(s);for(let e=0,n=0;e<s;e++){let r=(0,o.D)(i.charCodeAt(n++)),a=(0,o.D)(i.charCodeAt(n++));if(void 0===r||void 0===a)throw Error(`Invalid byte sequence ("${i[n-2]}${i[n-1]}" in "${i}").`);l[e]=16*r+a}return l}function d(e,n={}){let r=(0,i.M)().encode(e);return"number"==typeof n.size?((0,a.Y)(r,{size:n.size}),l(r,{dir:"right",size:n.size})):r}},99910:function(e,n,r){"use strict";let i;r.d(n,{NX:function(){return f},Rm:function(){return c}});var a=r(51489),o=r(46126);let s=new WeakMap;function f(e){if(s.has(e))return s.get(e);async function n(n,r){let a,s;let{requestTimeoutMs:f=6e4,...l}=r||{},u=l.headers?new Headers(l.headers):void 0;if(c(n)){u||(u=new Headers);let n="undefined"!=typeof globalThis&&"TW_AUTH_TOKEN"in globalThis&&"string"==typeof globalThis.TW_AUTH_TOKEN?globalThis.TW_AUTH_TOKEN:null;for(let[r,a]of(n?u.set("authorization",`Bearer ${n}`):e.secretKey?u.set("x-secret-key",e.secretKey):e.clientId&&u.set("x-client-id",e.clientId),function(){let e;if(i)return i;let n=null;return"undefined"!=typeof navigator&&(n=(0,o.f)(navigator.userAgent)),"undefined"!=typeof globalThis&&"Application"in globalThis&&(e=globalThis.Application.applicationId),i=Object.entries({"x-sdk-platform":(0,o.t)(),"x-sdk-version":"5.29.6","x-sdk-os":n?function(e){let n=e.toLowerCase();if(n.startsWith("win"))return"win";switch(e){case"Mac OS":return"mac";case"iOS":return"ios";case"Android OS":return"android";default:return n.replace(/\s/gi,"_")}}(n):"unknown","x-sdk-name":"unified-sdk",...e?{"x-bundle-id":e}:{}})}()))u.set(r,a)}return f&&(a=new AbortController,s=setTimeout(()=>{a?.abort()},f)),fetch(n,{...l,headers:u,signal:a?.signal}).finally(()=>{s&&clearTimeout(s)})}return s.set(e,n),n}let l=[".thirdweb.com",".ipfscdn.io",".thirdweb.dev",".thirdweb-dev.com"],u=new a.k(4096);function c(e){if(u.has(e))return u.get(e);try{let{hostname:n}=new URL(e),r=l.some(e=>n.endsWith(e));return u.set(e,r),r}catch{return u.set(e,!1),!1}}},83218:function(e,n,r){"use strict";r.d(n,{w:function(){return k}});var i=r(93527);let a=BigInt(4294967296-1),o=BigInt(32),s=(e,n,r)=>e<<r|n>>>32-r,f=(e,n,r)=>n<<r|e>>>32-r,l=(e,n,r)=>n<<r-32|e>>>64-r,u=(e,n,r)=>e<<r-32|n>>>64-r;var c=r(53465);
490let d=[],p=[],h=[],y=BigInt(0),m=BigInt(1),g=BigInt(2),b=BigInt(7),v=BigInt(256),w=BigInt(113);for(let e=0,n=m,r=1,i=0;e<24;e++){[r,i]=[i,(2*r+3*i)%5],d.push(2*(5*i+r)),p.push((e+1)*(e+2)/2%64);let a=y;for(let e=0;e<7;e++)(n=(n<<m^(n>>b)*w)%v)&g&&(a^=m<<(m<<BigInt(e))-m);h.push(a)}let[x,T]=function(e,n=!1){let r=new Uint32Array(e.length),i=new Uint32Array(e.length);for(let s=0;s<e.length;s++){let{h:f,l}=function(e,n=!1){return n?{h:Number(e&a),l:Number(e>>o&a)}:{h:0|Number(e>>o&a),l:0|Number(e&a)}}(e[s],n);[r[s],i[s]]=[f,l]}return[r,i]}(h,!0),C=(e,n,r)=>r>32?l(e,n,r):s(e,n,r),M=(e,n,r)=>r>32?u(e,n,r):f(e,n,r);class A extends c.kb{constructor(e,n,r,a=!1,o=24){if(super(),this.blockLen=e,this.suffix=n,this.outputLen=r,this.enableXOF=a,this.rounds=o,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,i.Rx)(r),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,c.Jq)(this.state)}keccak(){c.iA||(0,c.l1)(this.state32),function(e,n=24){let r=new Uint32Array(10);for(let i=24-n;i<24;i++){for(let n=0;n<10;n++)r[n]=e[n]^e[n+10]^e[n+20]^e[n+30]^e[n+40];for(let n=0;n<10;n+=2){let i=(n+8)%10,a=(n+2)%10,o=r[a],s=r[a+1],f=C(o,s,1)^r[i],l=M(o,s,1)^r[i+1];for(let r=0;r<50;r+=10)e[n+r]^=f,e[n+r+1]^=l}let n=e[2],a=e[3];for(let r=0;r<24;r++){let i=p[r],o=C(n,a,i),s=M(n,a,i),f=d[r];n=e[f],a=e[f+1],e[f]=o,e[f+1]=s}for(let n=0;n<50;n+=10){for(let i=0;i<10;i++)r[i]=e[n+i];for(let i=0;i<10;i++)e[n+i]^=~r[(i+2)%10]&r[(i+4)%10]}e[0]^=x[i],e[1]^=T[i]}r.fill(0)}(this.state32,this.rounds),c.iA||(0,c.l1)(this.state32),this.posOut=0,this.pos=0}update(e){(0,i.Gg)(this);let{blockLen:n,state:r}=this,a=(e=(0,c.O0)(e)).length;for(let i=0;i<a;){let o=Math.min(n-this.pos,a-i);for(let n=0;n<o;n++)r[this.pos++]^=e[i++];this.pos===n&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:n,pos:r,blockLen:i}=this;e[r]^=n,(128&n)!=0&&r===i-1&&this.keccak(),e[i-1]^=128,this.keccak()}writeInto(e){(0,i.Gg)(this,!1),(0,i.aI)(e),this.finish();let n=this.state,{blockLen:r}=this;for(let i=0,a=e.length;i<a;){this.posOut>=r&&this.keccak();let o=Math.min(r-this.posOut,a-i);e.set(n.subarray(this.posOut,this.posOut+o),i),this.posOut+=o,i+=o}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,i.Rx)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,i.J8)(e,this),this.finished)throw Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){let{blockLen:n,suffix:r,outputLen:i,rounds:a,enableXOF:o}=this;return e||(e=new A(n,r,i,o,a)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=a,e.suffix=r,e.outputLen=i,e.enableXOF=o,e.destroyed=this.destroyed,e}}let E=(0,c.hE)(()=>new A(136,1,32));var I=r(52749),S=r(75403);function k(e,n){let r=E((0,I.v)(e,{strict:!1})?(0,S.GZ)(e):e);return"bytes"===n?r:(0,S.dg)(r)}},75100:function(e,n,r){"use strict";r.d(n,{P:function(){return i}});let i=(e,n,r)=>JSON.stringify(e,(e,r)=>{let i="bigint"==typeof r?r.toString():r;return"function"==typeof n?n(e,i):i},r)},99587:function(e,n,r){"use strict";function i(e){let n;return()=>(n||(n=e()),n)}r.d(n,{I:function(){return i}})},83159:function(e,n,r){"use strict";async function i(e){return"function"==typeof e?await e():e}r.d(n,{q:function(){return i}})},71786:function(e,n,r){"use strict";r.d(n,{D:function(){return o}});let i=new Map,a=new Map;async function o(e,{cacheKey:n,cacheTime:r=Number.POSITIVE_INFINITY}){let o=function(e){let n=(e,n)=>({clear:()=>n.delete(e),get:()=>n.get(e),set:r=>n.set(e,r)}),r=n(e,i),o=n(e,a);return{clear:()=>{r.clear(),o.clear()},promise:r,response:o}}(n),s=o.response.get();if(s&&r>0&&new Date().getTime()-s.created.getTime()<r)return s.data;let f=o.promise.get();f||(f=e(),o.promise.set(f));try{let e=await f;return o.response.set({created:new Date,data:e}),e}finally{o.promise.clear()}}},65496:function(e,n,r){"use strict";let i;
490function a(){return i||(i=new TextEncoder),i}r.d(n,{M:function(){return a}})},96033:function(e,n,r){"use strict";function i(e,n=[]){return"object"==typeof e&&null!==e&&n.every(n=>n in e)}r.d(n,{L:function(){return i}})},98189:function(e,n,r){"use strict";function i(e,n){let r=e.toString(),i="-"===r[0]?"-":"",a=(i?r.slice(1):r).padStart(n+1,"0"),o=a.length-n,s=a.slice(0,o)||"0",f=a.slice(o);for(let e=f.length-1;e>=0;e--){if("0"!==f[e]){f=f.slice(0,e+1);break}0===e&&(f="")}return`${i}${s}${f?`.${f}`:""}`}function a(e){return i(e,18)}function o(e,n){let[r,i=""]=e.split("."),a=r.startsWith("-")?"-":"";if(a&&(r=r.slice(1)),i=i.padEnd(n,"0"),0===n)i[0]&&Number.parseInt(i[0])>=5&&(r=(BigInt(r)+1n).toString()),i="";else if(i.length>n){let e=i[n];e&&Number.parseInt(e,10)>=5?(i=(BigInt(i.substring(0,n))+1n).toString().padStart(n,"0")).length>n&&(r=(BigInt(r)+1n).toString(),i=i.substring(i.length-n)):i=i.substring(0,n)}return BigInt(`${a}${r}${i}`)}function s(e){return o(e,18)}r.d(n,{bb:function(){return i},n9:function(){return a},r0:function(){return s},xk:function(){return o}})},27533:function(e,n,r){"use strict";r.d(n,{j:function(){return o}});var i=r(60037),a=r(90975),o=new class extends i.l{#d;#p;#h;constructor(){super(),this.#h=e=>{if(!a.sk&&window.addEventListener){let n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}}}onSubscribe(){this.#p||this.setEventListener(this.#h)}onUnsubscribe(){this.hasListeners()||(this.#p?.(),this.#p=void 0)}setEventListener(e){this.#h=e,this.#p?.(),this.#p=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#d!==e&&(this.#d=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(n=>{n(e)})}isFocused(){return"boolean"==typeof this.#d?this.#d:globalThis.document?.visibilityState!=="hidden"}}},56643:function(e,n,r){"use strict";r.d(n,{R:function(){return f},m:function(){return s}});var i=r(43536),a=r(55206),o=r(51935),s=class extends a.F{#y;#o;#a;#m;constructor(e){super(),this.mutationId=e.mutationId,this.#o=e.defaultOptions,this.#a=e.mutationCache,this.#y=[],this.state=e.state||f(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.#o,...e},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#y.includes(e)||(this.#y.push(e),this.clearGcTimeout(),this.#a.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#y=this.#y.filter(n=>n!==e),this.scheduleGc(),this.#a.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#y.length||("pending"===this.state.status?this.scheduleGc():this.#a.remove(this))}continue(){return this.#m?.continue()??this.execute(this.state.variables)}async execute(e){let n="pending"===this.state.status;try{if(!n){this.#g({type:"pending",variables:e}),await this.#a.config.onMutate?.(e,this);let n=await this.options.onMutate?.(e);n!==this.state.context&&this.#g({type:"pending",context:n,variables:e})}let r=await (this.#m=(0,o.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(Error("No mutationFn found")),onFail:(e,n)=>{this.#g({type:"failed",failureCount:e,error:n})},onPause:()=>{this.#g({type:"pause"})},onContinue:()=>{this.#g({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.#m.promise);return await this.#a.config.onSuccess?.(r,e,this.state.context,this),await this.options.onSuccess?.(r,e,this.state.context),await this.#a.config.onSettled?.(r,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(r,null,e,this.state.context),this.#g({type:"success",data:r}),r}catch(n){try{throw await this.#a.config.onError?.(n,e,this.state.context,this),await this.options.onError?.(n,e,this.state.context),await this.#a.config.onSettled?.(void 0,n,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,n,e,this.state.context),n}finally{this.#g({type:"error",error:n})}}}#g(e){this.state=(n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};
490case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!(0,o.Kw)(this.options.networkMode),status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),i.V.batch(()=>{this.#y.forEach(n=>{n.onMutationUpdate(e)}),this.#a.notify({mutation:this,type:"updated",action:e})})}};function f(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},43536:function(e,n,r){"use strict";r.d(n,{V:function(){return i}});var i=function(){let e=[],n=0,r=e=>{e()},i=e=>{e()},a=e=>setTimeout(e,0),o=i=>{n?e.push(i):a(()=>{r(i)})},s=()=>{let n=e;e=[],n.length&&a(()=>{i(()=>{n.forEach(e=>{r(e)})})})};return{batch:e=>{let r;n++;try{r=e()}finally{--n||s()}return r},batchCalls:e=>(...n)=>{o(()=>{e(...n)})},schedule:o,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{i=e},setScheduler:e=>{a=e}}}()},90377:function(e,n,r){"use strict";r.d(n,{N:function(){return o}});var i=r(60037),a=r(90975),o=new class extends i.l{#b=!0;#p;#h;constructor(){super(),this.#h=e=>{if(!a.sk&&window.addEventListener){let n=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#p||this.setEventListener(this.#h)}onUnsubscribe(){this.hasListeners()||(this.#p?.(),this.#p=void 0)}setEventListener(e){this.#h=e,this.#p?.(),this.#p=e(this.setOnline.bind(this))}setOnline(e){this.#b!==e&&(this.#b=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#b}}},61541:function(e,n,r){"use strict";r.d(n,{A:function(){return f},z:function(){return l}});var i=r(90975),a=r(43536),o=r(51935),s=r(55206),f=class extends s.F{#v;#w;#x;#m;#y;#o;#T;constructor(e){super(),this.#T=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.#y=[],this.#x=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#v=e.state||function(e){let n="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==n,i=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:n,dataUpdateCount:0,dataUpdatedAt:r?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=this.#v,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.#o,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.#y.length||"idle"!==this.state.fetchStatus||this.#x.remove(this)}setData(e,n){let r=(0,i.oE)(this.state.data,e,this.options);return this.#g({data:r,type:"success",dataUpdatedAt:n?.updatedAt,manual:n?.manual}),r}setState(e,n){this.#g({type:"setState",state:e,setStateOptions:n})}cancel(e){let n=this.#m?.promise;return this.#m?.cancel(e),n?n.then(i.ZT).catch(i.ZT):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#v)}isActive(){return this.#y.some(e=>!1!==e.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.#y.some(e=>e.getCurrentResult().isStale):void 0===this.state.data)}isStaleByTime(e=0){return this.state.isInvalidated||void 0===this.state.data||!(0,i.Kp)(this.state.dataUpdatedAt,e)}onFocus(){let e=this.#y.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#m?.continue()}onOnline(){let e=this.#y.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#m?.continue()}addObserver(e){this.#y.includes(e)||(this.#y.push(e),this.clearGcTimeout(),this.#x.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.#y.includes(e)&&(this.#y=this.#y.filter(n=>n!==e),this.#y.length||(this.#m&&(this.#T?this.#m.cancel({revert:!0}):this.#m.cancelRetry()),this.scheduleGc()),this.#x.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.#y.length}invalidate(){this.state.isInvalidated||this.#g({type:"invalidate"})}
490fetch(e,n){if("idle"!==this.state.fetchStatus){if(void 0!==this.state.data&&n?.cancelRefetch)this.cancel({silent:!0});else if(this.#m)return this.#m.continueRetry(),this.#m.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.#y.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let r=new AbortController,a={queryKey:this.queryKey,meta:this.meta},s=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#T=!0,r.signal)})};s(a);let f={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn&&this.options.queryFn!==i.CN?(this.#T=!1,this.options.persister)?this.options.persister(this.options.queryFn,a,this):this.options.queryFn(a):Promise.reject(Error(`Missing queryFn: '${this.options.queryHash}'`))};s(f),this.options.behavior?.onFetch(f,this),this.#w=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==f.fetchOptions?.meta)&&this.#g({type:"fetch",meta:f.fetchOptions?.meta});let l=e=>{(0,o.DV)(e)&&e.silent||this.#g({type:"error",error:e}),(0,o.DV)(e)||(this.#x.config.onError?.(e,this),this.#x.config.onSettled?.(this.state.data,e,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.#m=(0,o.Mz)({fn:f.fetchFn,abort:r.abort.bind(r),onSuccess:e=>{if(void 0===e){l(Error(`${this.queryHash} data is undefined`));return}this.setData(e),this.#x.config.onSuccess?.(e,this),this.#x.config.onSettled?.(e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(e,n)=>{this.#g({type:"failed",failureCount:e,error:n})},onPause:()=>{this.#g({type:"pause"})},onContinue:()=>{this.#g({type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode}),this.#m.promise}#g(e){this.state=(n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...l(n.data,this.options),fetchMeta:e.meta??null};case"success":return{...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let r=e.error;if((0,o.DV)(r)&&r.revert&&this.#w)return{...this.#w,fetchStatus:"idle"};return{...n,error:r,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}})(this.state),a.V.batch(()=>{this.#y.forEach(e=>{e.onQueryUpdate()}),this.#x.notify({query:this,type:"updated",action:e})})}};function l(e,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,o.Kw)(n.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}},55206:function(e,n,r){"use strict";r.d(n,{F:function(){return a}});var i=r(90975),a=class{#C;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,i.PN)(this.gcTime)&&(this.#C=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(i.sk?1/0:3e5))}clearGcTimeout(){this.#C&&(clearTimeout(this.#C),this.#C=void 0)}}},51935:function(e,n,r){"use strict";r.d(n,{DV:function(){return u},Kw:function(){return f},Mz:function(){return c}});var i=r(27533),a=r(90377),o=r(90975);function s(e){return Math.min(1e3*2**e,3e4)}function f(e){return(e??"online")!=="online"||a.N.isOnline()}var l=class{constructor(e){this.revert=e?.revert,this.silent=e?.silent}};function u(e){return e instanceof l}function c(e){let n,r,u,c=!1,d=0,p=!1,h=new Promise((e,n)=>{r=e,u=n}),y=()=>!i.j.isFocused()||"always"!==e.networkMode&&!a.N.isOnline(),m=i=>{p||(p=!0,e.onSuccess?.(i),n?.(),r(i))},g=r=>{p||(p=!0,e.onError?.(r),n?.(),u(r))},b=()=>new Promise(r=>{n=e=>{let n=p||!y();return n&&r(e),n},e.onPause?.()}).then(()=>{n=void 0,p||e.onContinue?.()}),v=()=>{let n;if(!p){try{n=e.fn()}catch(e){n=Promise.reject(e)}Promise.resolve(n).then(m).catch(n=>{if(p)return;let r=e.retry??(o.sk?0:3),i=e.retryDelay??s,a="function"==typeof i?i(d,n):i,f=!0===r||"number"==typeof r&&d<r||"function"==typeof r&&r(d,n);if(c||!f){g(n);return}d++,e.onFail?.(d,n),(0,o._v)(a).then(()=>
490{if(y())return b()}).then(()=>{c?g(n):v()})})}};return f(e.networkMode)?v():b().then(v),{promise:h,cancel:n=>{p||(g(new l(n)),e.abort?.())},continue:()=>n?.()?h:Promise.resolve(),cancelRetry:()=>{c=!0},continueRetry:()=>{c=!1}}}},60037:function(e,n,r){"use strict";r.d(n,{l:function(){return i}});var i=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},90975:function(e,n,r){"use strict";r.d(n,{CN:function(){return C},Ht:function(){return T},Kp:function(){return f},PN:function(){return s},Q$:function(){return h},Rm:function(){return c},SE:function(){return o},VS:function(){return y},VX:function(){return x},X7:function(){return u},Ym:function(){return d},ZT:function(){return a},_v:function(){return v},_x:function(){return l},oE:function(){return w},sk:function(){return i},to:function(){return p}});var i="undefined"==typeof window||"Deno"in globalThis;function a(){}function o(e,n){return"function"==typeof e?e(n):e}function s(e){return"number"==typeof e&&e>=0&&e!==1/0}function f(e,n){return Math.max(e+(n||0)-Date.now(),0)}function l(e,n){let{type:r="all",exact:i,fetchStatus:a,predicate:o,queryKey:s,stale:f}=e;if(s){if(i){if(n.queryHash!==c(s,n.options))return!1}else if(!p(n.queryKey,s))return!1}if("all"!==r){let e=n.isActive();if("active"===r&&!e||"inactive"===r&&e)return!1}return("boolean"!=typeof f||n.isStale()===f)&&(!a||a===n.state.fetchStatus)&&(!o||!!o(n))}function u(e,n){let{exact:r,status:i,predicate:a,mutationKey:o}=e;if(o){if(!n.options.mutationKey)return!1;if(r){if(d(n.options.mutationKey)!==d(o))return!1}else if(!p(n.options.mutationKey,o))return!1}return(!i||n.state.status===i)&&(!a||!!a(n))}function c(e,n){return(n?.queryKeyHashFn||d)(e)}function d(e){return JSON.stringify(e,(e,n)=>g(n)?Object.keys(n).sort().reduce((e,r)=>(e[r]=n[r],e),{}):n)}function p(e,n){return e===n||typeof e==typeof n&&!!e&&!!n&&"object"==typeof e&&"object"==typeof n&&!Object.keys(n).some(r=>!p(e[r],n[r]))}function h(e,n){if(e===n)return e;let r=m(e)&&m(n);if(r||g(e)&&g(n)){let i=r?e:Object.keys(e),a=i.length,o=r?n:Object.keys(n),s=o.length,f=r?[]:{},l=0;for(let a=0;a<s;a++){let s=r?a:o[a];!r&&void 0===e[s]&&void 0===n[s]&&i.includes(s)?(f[s]=void 0,l++):(f[s]=h(e[s],n[s]),f[s]===e[s]&&void 0!==e[s]&&l++)}return a===s&&l===a?e:f}return n}function y(e,n){if(!n||Object.keys(e).length!==Object.keys(n).length)return!1;for(let r in e)if(e[r]!==n[r])return!1;return!0}function m(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function g(e){if(!b(e))return!1;let n=e.constructor;if(void 0===n)return!0;let r=n.prototype;return!!(b(r)&&r.hasOwnProperty("isPrototypeOf"))}function b(e){return"[object Object]"===Object.prototype.toString.call(e)}function v(e){return new Promise(n=>{setTimeout(n,e)})}function w(e,n,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,n):!1!==r.structuralSharing?h(e,n):n}function x(e,n,r=0){let i=[...e,n];return r&&i.length>r?i.slice(1):i}function T(e,n,r=0){let i=[n,...e];return r&&i.length>r?i.slice(0,-1):i}var C=Symbol()},48454:function(e,n,r){"use strict";r.d(n,{NL:function(){return s},aH:function(){return f}});var i=r(67294),a=r(85893),o=i.createContext(void 0),s=e=>{let n=i.useContext(o);if(e)return e;if(!n)throw Error("No QueryClient set, use QueryClientProvider to set one");return n},f=({client:e,children:n})=>(i.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,a.jsx)(o.Provider,{value:e,children:n}))},96218:function(e,n,r){"use strict";r.d(n,{G:function(){return i}});class i extends Error{constructor(e,n={}){let r=n.cause instanceof i?n.cause.details:n.cause?.message?n.cause.message:n.details,a=n.cause instanceof i&&n.cause.docsPath||n.docsPath;super([e||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...a?[`Docs: https://abitype.dev${a}`]:[],...r?[`Details: ${r}`]:[],"Version: [email protected]"].join("\n")),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=a,this.metaMessages=n.metaMessages,this.shortMessage=e}}},7901:function(e,n,r){"use strict";r.d(n,{F:function(){return o},Hk:function(){return s},a_:function(){return a}});var i=r(96218);class a extends i.G{constructor({signature:e}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}class o extends i.G{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}class s extends i.G{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}},12995:function(e,n,r){"use strict";r.d(n,{TT:function(){return o},_D:function(){return f},aZ:function(){return l},jO:function(){return a},zL:function(){return s}});var i=r(96218);class a extends i.G{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class o extends i.G{constructor({param:e,name:n}
490){super("Invalid ABI parameter.",{details:e,metaMessages:[`"${n}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}class s extends i.G{constructor({param:e,type:n,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${n?` in "${n}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class f extends i.G{constructor({param:e,type:n,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${n?` in "${n}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${r}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class l extends i.G{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}},93489:function(e,n,r){"use strict";r.d(n,{H6:function(){return s},Vs:function(){return o},wn:function(){return a}});var i=r(96218);class a extends i.G{constructor({signature:e,type:n}){super(`Invalid ${n} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class o extends i.G{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class s extends i.G{constructor({signature:e}){super("Invalid struct signature.",{details:e,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}},38766:function(e,n,r){"use strict";r.d(n,{s:function(){return f}});var i=r(7901),a=r(36560),o=r(57361),s=r(97177);function f(e){let n;if("string"==typeof e)n=(0,s.cK)(e);else{let r=(0,o.D)(e),i=e.length;for(let o=0;o<i;o++){let i=e[o];if(!(0,a.N0)(i)){n=(0,s.cK)(i,r);break}}}if(!n)throw new i.a_({signature:e});return n}},36560:function(e,n,r){"use strict";r.d(n,{Dt:function(){return A},EC:function(){return x},N0:function(){return y},PI:function(){return v},QM:function(){return C},SA:function(){return s},Wg:function(){return M},_c:function(){return o},a4:function(){return b},c3:function(){return l},g1:function(){return m},l$:function(){return p},rh:function(){return d},wA:function(){return u}});var i=r(1215);let a=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function o(e){return a.test(e)}function s(e){return(0,i.Zw)(a,e)}let f=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function l(e){return f.test(e)}function u(e){return(0,i.Zw)(f,e)}let c=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;function d(e){return c.test(e)}function p(e){return(0,i.Zw)(c,e)}let h=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function y(e){return h.test(e)}function m(e){return(0,i.Zw)(h,e)}let g=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;function b(e){return g.test(e)}function v(e){return(0,i.Zw)(g,e)}let w=/^fallback\(\)$/;function x(e){return w.test(e)}let T=/^receive\(\) external payable$/;function C(e){return T.test(e)}let M=new Set(["indexed"]),A=new Set(["calldata","memory","storage"])},57361:function(e,n,r){"use strict";r.d(n,{D:function(){return d}});var i=r(1215),a=r(7901),o=r(12995),s=r(93489),f=r(96218);class l extends f.G{constructor({type:e}){super("Circular reference detected.",{metaMessages:[`Struct "${e}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}var u=r(36560),c=r(97177);function d(e){let n={},r=e.length;for(let i=0;i<r;i++){let r=e[i];if(!(0,u.N0)(r))continue;let a=(0,u.g1)(r);if(!a)throw new s.wn({signature:r,type:"struct"});let o=a.properties.split(";"),f=[],l=o.length;for(let e=0;e<l;e++){let n=o[e].trim();if(!n)continue;let r=(0,c.C$)(n,{type:"struct"});f.push(r)}if(!f.length)throw new s.H6({signature:r});n[a.name]=f}let f={},d=Object.entries(n),h=d.length;for(let e=0;e<h;e++){let[r,s]=d[e];f[r]=function e(n,r,s=new Set){let f=[],u=n.length;for(let d=0;d<u;d++){let u=n[d];if(i.cN.test(u.type))f.push(u);else{let n=(0,i.Zw)(p,u.type);if(!n?.type)throw new o.aZ({abiParameter:u});let{array:d,type:h}=n;if(h in r){if(s.has(h))throw new l({type:h});f.push({...u,type:`tuple${d??""}`,components:e(r[h]??[],r,new Set([...s,h]))})}else if((0,c.uN)(h))f.push(u);else throw new a.F({type:h})}}return f}(s,n)}return f}let p=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/},97177:function(e,n,r){"use strict";r.d(n,{uN:function(){return b},C$:function(){return m},cK:function(){return d}});var i=r(1215),a=r(7901),o=r(12995),s=r(93489),f=r(96218);class l extends f.G{constructor({current:e,depth:n}){super("Unbalanced parentheses.",{metaMessages:[`"${e.trim()}" has too many ${n>0?"opening":"closing"} parentheses.`],details:`Depth "${n}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}let u=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]);var c=r(36560);function d(e,n={}){if((0,c.rh)(e)){let r=(0,c.l$)(e);if(!r)throw new s.wn({signature:e,type:"function"});let i=g(r.parameters),a=[],o=i.length;for(let e=0;e<o;e++)a.push(m(i[e],{modifiers:c.Dt,structs:n,type:"function"}));let f=[];if(r.returns){let e=g(r.returns),i=e.length;for(let r=0;r<i;r++)f.push(m(e[r],{modifiers:c.Dt,structs:n,type:"function"}))}return{name:r.name,type:"function",stateMutability:r.stateMutability??"nonpayable",inputs:a,outputs:f}}if((0,c.c3)(e)){let r=(0,c.wA)(e);if(!r)throw new s.wn({signature:e,type:"event"});let i=g(r.parameters),a=[],o=i.length;for(let e=0;e<o;e++)a.push(m(i[e],{modifiers:c.Wg,structs:n,type:"event"}));return{name:r.name,type:"event",inputs:a}}if((0,c._c)(e)){let r=(0,c.SA)(e);if(!r)throw new s.wn({signature:e,type:"error"});let i=g(r.parameters),a=[],o=i.length;for(let e=0;e<o;e++)a.push(m(i[e],{structs:n,type:"error"}));return{name:r.name,type:"error",inputs:a}}if((0,c.a4)(e)){let r=(0,c.PI)(e);if(!r)throw new s.wn({signature:e,type:"constructor"});let i=g(r.parameters),a=[],o=i.length;for(let e=0;e<o;e++)a.push(m(i[e],{structs:n,type:"constructor"}));return{type:"constructor",stateMutability:r.stateMutability??"nonpayable",inputs:a}}if((0,c.EC)(e))return{type:"fallback"};if((0,c.QM)(e))return{type:"receive",stateMutability:"payable"};throw new s.Vs({signature:e})}let p=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,h=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,y=/^u?int$/;function m(e,n){var r,s,f;let l;let d=(r=n?.type)?`${r}:${e}`:e;if(u.has(d))return u.get(d);let w=i.cN.test(e),x=(0,i.Zw)(w?h:p,e);if(!x)throw new o.jO({param:e});if(x.name&&("address"===(s=x.name)||"bool"===s||"function"===s||"string"===s||"tuple"===s||i.eL.test(s)||i.lh.test(s)||v.test(s)))throw new o.TT({param:e,name:x.name});let T=x.name?{name:x.name}:{},C="indexed"===x.modifier?{indexed:!0}:{},M=n?.structs??{},A={};if(w){l="tuple";let e=g(x.type),n=[],r=e.length;for(let i=0;i<r;i++)n.push(m(e[i],{structs:M}));A={components:n}}else if(x.type in M)l="tuple",A={components:M[x.type]};else if(y.test(x.type))l=`${x.type}256`;else if(l=x.type,n?.type!=="struct"&&!b(l))throw new a.Hk({type:l});if(x.modifier){if(!n?.modifiers?.has?.(x.modifier))throw new o.zL({param:e,type:n?.type,modifier:x.modifier});if(c.Dt.has(x.modifier)&&(f=l,!x.array&&"bytes"!==f&&"string"!==f&&"tuple"!==f))throw new o._D({param:e,type:n?.type,modifier:x.modifier})}let E={type:`${l}${x.array??""}`,...T,...C,...A};return u.set(d,E),E}function g(e,n=[],r="",i=0){let a=e.trim().length;for(let o=0;o<a;o++){let a=e[o],s=e.slice(o+1);switch(a){case",":return 0===i?g(s,[...n,r.trim()]):g(s,n,`${r}${a}`,i);case"(":return g(s,n,`${r}${a}`,i+1);case")":return g(s,n,`${r}${a}`,i-1);default:return g(s,n,`${r}${a}`,i)}}if(""===r)return n;if(0!==i)throw new l({current:r,depth:i});return n.push(r.trim()),n}function b(e){return"address"===e||"bool"===e||"function"===e||"string"===e||i.eL.test(e)||i.lh.test(e)}let v=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/},1215:function(e,n,r){"use strict";function i(e,n){let r=e.exec(n);return r?.groups}r.d(n,{Zw:function(){return i},cN:function(){return s},eL:function(){return a},lh:function(){return o}});let a=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,o=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,s=/^\(.+?\).*?$/},38776:function(e,n,r){"use strict";function i(e,n){if(!e)throw Error("Invariant failed")}r.d(n,{Z:function(){return i}})},53160:function(e,n,r){"use strict";function i(e=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?globalThis.Buffer.allocUnsafe(e):new Uint8Array(e)}r.d(n,{E:function(){return i}})},20605:function(e,n,r){"use strict";r.r(n),r.d(n,{concat:function(){return a}});var i=r(53160);function a(e,n){n||(n=e.reduce((e,n)=>e+n.length,0));let r=(0,i.E)(n),a=0;for(let n of e)r.set(n,a),a+=n.length;return r}},19588:function(e,n,r){"use strict";function i(e,n){if(e===n)return!0;
490if(e.byteLength!==n.byteLength)return!1;for(let r=0;r<e.byteLength;r++)if(e[r]!==n[r])return!1;return!0}r.r(n),r.d(n,{equals:function(){return i}})},52217:function(e,n,r){"use strict";r.r(n),r.d(n,{fromString:function(){return a}});var i=r(67645);function a(e,n="utf8"){let r=i.Z[n];if(!r)throw Error(`Unsupported encoding "${n}"`);return("utf8"===n||"utf-8"===n)&&null!=globalThis.Buffer&&null!=globalThis.Buffer.from?globalThis.Buffer.from(e,"utf8"):r.decoder.decode(`${r.prefix}${e}`)}},37466:function(e,n,r){"use strict";r.d(n,{BB:function(){return o.toString},mL:function(){return a.fromString},zo:function(){return i.concat}});var i=r(20605),a=r(52217),o=r(92263)},92263:function(e,n,r){"use strict";r.r(n),r.d(n,{toString:function(){return a}});var i=r(67645);function a(e,n="utf8"){let r=i.Z[n];if(!r)throw Error(`Unsupported encoding "${n}"`);return("utf8"===n||"utf-8"===n)&&null!=globalThis.Buffer&&null!=globalThis.Buffer.from?globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8"):r.encoder.encode(e).substring(1)}},67645:function(e,n,r){"use strict";var i=r(91835),a=r(53160);function o(e,n,r,i){return{name:e,prefix:n,encoder:{name:e,prefix:n,encode:r},decoder:{decode:i}}}let s=o("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>new TextEncoder().encode(e.substring(1))),f=o("ascii","a",e=>{let n="a";for(let r=0;r<e.length;r++)n+=String.fromCharCode(e[r]);return n},e=>{e=e.substring(1);let n=(0,a.E)(e.length);for(let r=0;r<e.length;r++)n[r]=e.charCodeAt(r);return n}),l={utf8:s,"utf-8":s,hex:i.bases.base16,latin1:f,ascii:f,binary:f,...i.bases};n.Z=l},57394:function(e,n,r){"use strict";r.d(n,{o6:function(){return m}});let i=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,a=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,o=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function s(e,n){if("__proto__"===e||"constructor"===e&&n&&"object"==typeof n&&"prototype"in n){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`);return}return n}function f(e,n={}){if("string"!=typeof e)return e;let r=e.trim();if('"'===e[0]&&e.endsWith('"')&&!e.includes("\\"))return r.slice(1,-1);if(r.length<=9){let e=r.toLowerCase();if("true"===e)return!0;if("false"===e)return!1;if("undefined"===e)return;if("null"===e)return null;if("nan"===e)return Number.NaN;if("infinity"===e)return Number.POSITIVE_INFINITY;if("-infinity"===e)return Number.NEGATIVE_INFINITY}if(!o.test(e)){if(n.strict)throw SyntaxError("[destr] Invalid JSON");return e}try{if(i.test(e)||a.test(e)){if(n.strict)throw Error("[destr] Possible prototype pollution");return JSON.parse(e,s)}return JSON.parse(e)}catch(r){if(n.strict)throw r;return e}}var l=r(48764).Buffer;function u(e,...n){try{var r;return(r=e(...n))&&"function"==typeof r.then?r:Promise.resolve(r)}catch(e){return Promise.reject(e)}}function c(e){if(function(e){let n=typeof e;return null===e||"object"!==n&&"function"!==n}(e))return String(e);if(function(e){let n=Object.getPrototypeOf(e);return!n||n.isPrototypeOf(Object)}(e)||Array.isArray(e))return JSON.stringify(e);if("function"==typeof e.toJSON)return c(e.toJSON());throw Error("[unstorage] Cannot stringify value!")}let d="base64:";function p(e){return e?e.split("?")[0].replace(/[/\\]/g,":").replace(/:+/g,":").replace(/^:|:$/g,""):""}function h(e){return(e=p(e))?e+":":""}let y=()=>{let e=new Map;return{name:"memory",options:{},hasItem:n=>e.has(n),getItem:n=>e.get(n)??null,getItemRaw:n=>e.get(n)??null,setItem(n,r){e.set(n,r)},setItemRaw(n,r){e.set(n,r)},removeItem(n){e.delete(n)},getKeys:()=>Array.from(e.keys()),clear(){e.clear()},dispose(){e.clear()}}};function m(e={}){let n={mounts:{"":e.driver||y()},mountpoints:[""],watching:!1,watchListeners:[],unwatch:{}},r=e=>{for(let r of n.mountpoints)if(e.startsWith(r))return{base:r,relativeKey:e.slice(r.length),driver:n.mounts[r]};return{base:"",relativeKey:e,driver:n.mounts[""]}},i=(e,r)=>n.mountpoints.filter(n=>n.startsWith(e)||r&&e.startsWith(n)).map(r=>({relativeBase:e.length>r.length?e.slice(r.length):void 0,mountpoint:r,driver:n.mounts[r]})),a=(e,r)=>{if(n.watching)for(let i of(r=p(r),n.watchListeners))i(e,r)},o=async()=>
490{if(!n.watching)for(let e in n.watching=!0,n.mounts)n.unwatch[e]=await g(n.mounts[e],a,e)},s=async()=>{if(n.watching){for(let e in n.unwatch)await n.unwatch[e]();n.unwatch={},n.watching=!1}},m=(e,n,i)=>{let a=new Map,o=e=>{let n=a.get(e.base);return n||(n={driver:e.driver,base:e.base,items:[]},a.set(e.base,n)),n};for(let i of e){let e="string"==typeof i,a=p(e?i:i.key),s=e?void 0:i.value,f=e||!i.options?n:{...n,...i.options},l=r(a);o(l).items.push({key:a,value:s,relativeKey:l.relativeKey,options:f})}return Promise.all([...a.values()].map(e=>i(e))).then(e=>e.flat())},v={hasItem(e,n={}){let{relativeKey:i,driver:a}=r(e=p(e));return u(a.hasItem,i,n)},getItem(e,n={}){let{relativeKey:i,driver:a}=r(e=p(e));return u(a.getItem,i,n).then(e=>f(e))},getItems:(e,n)=>m(e,n,e=>e.driver.getItems?u(e.driver.getItems,e.items.map(e=>({key:e.relativeKey,options:e.options})),n).then(n=>n.map(n=>({key:function(...e){return p(e.join(":"))}(e.base,n.key),value:f(n.value)}))):Promise.all(e.items.map(n=>u(e.driver.getItem,n.relativeKey,n.options).then(e=>({key:n.key,value:f(e)}))))),getItemRaw(e,n={}){let{relativeKey:i,driver:a}=r(e=p(e));return a.getItemRaw?u(a.getItemRaw,i,n):u(a.getItem,i,n).then(e=>"string"==typeof e&&e.startsWith(d)?l.from(e.slice(d.length),"base64"):e)},async setItem(e,n,i={}){if(void 0===n)return v.removeItem(e);let{relativeKey:o,driver:s}=r(e=p(e));s.setItem&&(await u(s.setItem,o,c(n),i),s.watch||a("update",e))},async setItems(e,n){await m(e,n,async e=>{if(e.driver.setItems)return u(e.driver.setItems,e.items.map(e=>({key:e.relativeKey,value:c(e.value),options:e.options})),n);e.driver.setItem&&await Promise.all(e.items.map(n=>u(e.driver.setItem,n.relativeKey,c(n.value),n.options)))})},async setItemRaw(e,n,i={}){if(void 0===n)return v.removeItem(e,i);let{relativeKey:o,driver:s}=r(e=p(e));if(s.setItemRaw)await u(s.setItemRaw,o,n,i);else{if(!s.setItem)return;await u(s.setItem,o,"string"==typeof n?n:d+l.from(n).toString("base64"),i)}s.watch||a("update",e)},async removeItem(e,n={}){"boolean"==typeof n&&(n={removeMeta:n});let{relativeKey:i,driver:o}=r(e=p(e));o.removeItem&&(await u(o.removeItem,i,n),(n.removeMeta||n.removeMata)&&await u(o.removeItem,i+"$",n),o.watch||a("remove",e))},async getMeta(e,n={}){"boolean"==typeof n&&(n={nativeOnly:n});let{relativeKey:i,driver:a}=r(e=p(e)),o=Object.create(null);if(a.getMeta&&Object.assign(o,await u(a.getMeta,i,n)),!n.nativeOnly){let e=await u(a.getItem,i+"$",n).then(e=>f(e));e&&"object"==typeof e&&("string"==typeof e.atime&&(e.atime=new Date(e.atime)),"string"==typeof e.mtime&&(e.mtime=new Date(e.mtime)),Object.assign(o,e))}return o},setMeta(e,n,r={}){return this.setItem(e+"$",n,r)},removeMeta(e,n={}){return this.removeItem(e+"$",n)},async getKeys(e,n={}){let r=i(e=h(e),!0),a=[],o=[];for(let e of r){let r=(await u(e.driver.getKeys,e.relativeBase,n)).map(n=>e.mountpoint+p(n)).filter(e=>!a.some(n=>e.startsWith(n)));o.push(...r),a=[e.mountpoint,...a.filter(n=>!n.startsWith(e.mountpoint))]}return e?o.filter(n=>n.startsWith(e)&&!n.endsWith("$")):o.filter(e=>!e.endsWith("$"))},async clear(e,n={}){e=h(e),await Promise.all(i(e,!1).map(async e=>e.driver.clear?u(e.driver.clear,e.relativeBase,n):e.driver.removeItem?Promise.all((await e.driver.getKeys(e.relativeBase||"",n)).map(r=>e.driver.removeItem(r,n))):void 0))},async dispose(){await Promise.all(Object.values(n.mounts).map(e=>b(e)))},watch:async e=>(await o(),n.watchListeners.push(e),async()=>{n.watchListeners=n.watchListeners.filter(n=>n!==e),0===n.watchListeners.length&&await s()}),async unwatch(){n.watchListeners=[],await s()},mount(e,r){if((e=h(e))&&n.mounts[e])throw Error(`already mounted at ${e}`);return e&&(n.mountpoints.push(e),n.mountpoints.sort((e,n)=>n.length-e.length)),n.mounts[e]=r,n.watching&&Promise.resolve(g(r,a,e)).then(r=>{n.unwatch[e]=r}).catch(console.error),v},async unmount(e,r=!0){(e=h(e))&&n.mounts[e]&&(n.watching&&e in n.unwatch&&(n.unwatch[e](),delete n.unwatch[e]),r&&await b(n.mounts[e]),n.mountpoints=n.mountpoints.filter(n=>n!==e),delete n.mounts[e])},getMount(e=""){let n=r(e=p(e)+":");return{driver:n.driver,base:n.base}},getMounts:(e="",n={})=>i(e=p(e),n.parents).map(e=>({driver:e.driver,base:e.mountpoint}))};return v}function g(e,n,r){return e.watch?e.watch((e,i)=>n(e,r+i)):()=>{}}
490async function b(e){"function"==typeof e.dispose&&await u(e.dispose)}},67463:function(e,n,r){"use strict";r.d(n,{_T:function(){return a},pi:function(){return i}});var i=function(){return(i=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++)for(var a in n=arguments[r])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e}).apply(this,arguments)};function a(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>n.indexOf(i)&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,i=Object.getOwnPropertySymbols(e);a<i.length;a++)0>n.indexOf(i[a])&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(r[i[a]]=e[i[a]]);return r}"function"==typeof SuppressedError&&SuppressedError},62027:function(e,n,r){"use strict";r.d(n,{G:function(){return a}});var i=r(35280);class a extends Error{constructor(e,n={}){super(),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:"ViemError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:(0,i.bo)()});let r=n.cause instanceof a?n.cause.details:n.cause?.message?n.cause.message:n.details,o=n.cause instanceof a&&n.cause.docsPath||n.docsPath;this.message=[e||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...o?[`Docs: https://viem.sh${o}${n.docsSlug?`#${n.docsSlug}`:""}`]:[],...r?[`Details: ${r}`]:[],`Version: ${this.version}`].join("\n"),n.cause&&(this.cause=n.cause),this.details=r,this.docsPath=o,this.metaMessages=n.metaMessages,this.shortMessage=e}walk(e){return function e(n,r){return r?.(n)?n:n&&"object"==typeof n&&"cause"in n?e(n.cause,r):r?null:n}(this,e)}}},69760:function(e,n,r){"use strict";r.d(n,{$s:function(){return o},mV:function(){return a}});var i=r(62027);class a extends i.G{constructor({offset:e,position:n,size:r}){super(`Slice ${"start"===n?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${r}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SliceOffsetOutOfBoundsError"})}}class o extends i.G{constructor({size:e,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${e}) exceeds padding size (${n}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeExceedsPaddingSizeError"})}}},87788:function(e,n,r){"use strict";r.d(n,{J5:function(){return a},M6:function(){return s},yr:function(){return o}});var i=r(62027);class a extends i.G{constructor({max:e,min:n,signed:r,size:i,value:a}){super(`Number "${a}" is not in safe ${i?`${8*i}-bit ${r?"signed":"unsigned"} `:""}integer range ${e?`(${n} to ${e})`:`(above ${n})`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntegerOutOfRangeError"})}}class o extends i.G{constructor(e){super(`Bytes value "${e}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidBytesBooleanError"})}}class s extends i.G{constructor({givenSize:e,maxSize:n}){super(`Size cannot exceed ${n} bytes. Given size: ${e} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeOverflowError"})}}},35280:function(e,n,r){"use strict";r.d(n,{Gr:function(){return i},bo:function(){return a}});let i=e=>e,a=()=>"[email protected]"},57040:function(e,n,r){"use strict";function i(e){return"string"==typeof e[0]?a(e):function(e){let n=0;for(let r of e)n+=r.length;let r=new Uint8Array(n),i=0;for(let n of e)r.set(n,i),i+=n.length;return r}(e)}function a(e){return`0x${e.reduce((e,n)=>e+n.replace("0x",""),"")}`}r.d(n,{SM:function(){return a},zo:function(){return i}})},15102:function(e,n,r){"use strict";function i(e,{strict:n=!0}={}
490){return!!e&&"string"==typeof e&&(n?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x"))}r.d(n,{v:function(){return i}})},61769:function(e,n,r){"use strict";r.d(n,{gc:function(){return o},vk:function(){return a}});var i=r(69760);function a(e,{dir:n,size:r=32}={}){return"string"==typeof e?o(e,{dir:n,size:r}):function(e,{dir:n,size:r=32}={}){if(null===r)return e;if(e.length>r)throw new i.$s({size:e.length,targetSize:r,type:"bytes"});let a=new Uint8Array(r);for(let i=0;i<r;i++){let o="right"===n;a[o?i:r-i-1]=e[o?i:e.length-i-1]}return a}(e,{dir:n,size:r})}function o(e,{dir:n,size:r=32}={}){if(null===r)return e;let a=e.replace("0x","");if(a.length>2*r)throw new i.$s({size:Math.ceil(a.length/2),targetSize:r,type:"hex"});return`0x${a["right"===n?"padEnd":"padStart"](2*r,"0")}`}},39135:function(e,n,r){"use strict";r.d(n,{d:function(){return a}});var i=r(15102);function a(e){return(0,i.v)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}},3972:function(e,n,r){"use strict";r.d(n,{T4:function(){return u},tP:function(){return s}});var i=r(69760),a=r(15102),o=r(39135);function s(e,n,r,{strict:i}={}){return(0,a.v)(e,{strict:!1})?function(e,n,r,{strict:i}={}){f(e,n);let a=`0x${e.replace("0x","").slice((n??0)*2,(r??e.length)*2)}`;return i&&l(a,n,r),a}(e,n,r,{strict:i}):u(e,n,r,{strict:i})}function f(e,n){if("number"==typeof n&&n>0&&n>(0,o.d)(e)-1)throw new i.mV({offset:n,position:"start",size:(0,o.d)(e)})}function l(e,n,r){if("number"==typeof n&&"number"==typeof r&&(0,o.d)(e)!==r-n)throw new i.mV({offset:r,position:"end",size:(0,o.d)(e)})}function u(e,n,r,{strict:i}={}){f(e,n);let a=e.slice(n,r);return i&&l(a,n,r),a}},95946:function(e,n,r){"use strict";r.d(n,{Yf:function(){return o},ly:function(){return f},y_:function(){return s}});var i=r(87788),a=r(39135);function o(e,{size:n}){if((0,a.d)(e)>n)throw new i.M6({givenSize:(0,a.d)(e),maxSize:n})}function s(e,n={}){let{signed:r}=n;n.size&&o(e,{size:n.size});let i=BigInt(e);if(!r)return i;let a=(e.length-2)/2;return i<=(1n<<8n*BigInt(a)-1n)-1n?i:i-BigInt(`0x${"f".padStart(2*a,"f")}`)-1n}function f(e,n={}){return Number(s(e,n))}},11187:function(e,n,r){"use strict";r.d(n,{O0:function(){return u},nr:function(){return p},qX:function(){return h}});var i=r(62027),a=r(15102),o=r(61769),s=r(95946),f=r(92106);let l=new TextEncoder;function u(e,n={}){return"number"==typeof e||"bigint"==typeof e?p((0,f.eC)(e,n)):"boolean"==typeof e?function(e,n={}){let r=new Uint8Array(1);return(r[0]=Number(e),"number"==typeof n.size)?((0,s.Yf)(r,{size:n.size}),(0,o.vk)(r,{size:n.size})):r}(e,n):(0,a.v)(e)?p(e,n):h(e,n)}let c={zero:48,nine:57,A:65,F:70,a:97,f:102};function d(e){return e>=c.zero&&e<=c.nine?e-c.zero:e>=c.A&&e<=c.F?e-(c.A-10):e>=c.a&&e<=c.f?e-(c.a-10):void 0}function p(e,n={}){let r=e;n.size&&((0,s.Yf)(r,{size:n.size}),r=(0,o.vk)(r,{dir:"right",size:n.size}));let a=r.slice(2);a.length%2&&(a=`0${a}`);let f=a.length/2,l=new Uint8Array(f);for(let e=0,n=0;e<f;e++){let r=d(a.charCodeAt(n++)),o=d(a.charCodeAt(n++));if(void 0===r||void 0===o)throw new i.G(`Invalid byte sequence ("${a[n-2]}${a[n-1]}" in "${a}").`);l[e]=16*r+o}return l}function h(e,n={}){let r=l.encode(e);return"number"==typeof n.size?((0,s.Yf)(r,{size:n.size}),(0,o.vk)(r,{dir:"right",size:n.size})):r}},92106:function(e,n,r){"use strict";r.d(n,{$G:function(){return p},C4:function(){return l},NC:function(){return f},ci:function(){return u},eC:function(){return c}});var i=r(87788),a=r(61769),o=r(95946);let s=Array.from({length:256},(e,n)=>n.toString(16).padStart(2,"0"));function f(e,n={}){return"number"==typeof e||"bigint"==typeof e?c(e,n):"string"==typeof e?p(e,n):"boolean"==typeof e?l(e,n):u(e,n)}function l(e,n={}){let r=`0x${Number(e)}`;return"number"==typeof n.size?((0,o.Yf)(r,{size:n.size}),(0,a.vk)(r,{size:n.size})):r}function u(e,n={}){let r="";for(let n=0;n<e.length;n++)r+=s[e[n]];let i=`0x${r}`;return"number"==typeof n.size?((0,o.Yf)(i,{size:n.size}),(0,a.vk)(i,{dir:"right",size:n.size})):i}function c(e,n={}){let r;let{signed:o,size:s}=n,f=BigInt(e);s?r=o?(1n<<8n*BigInt(s)-1n)-1n:2n**(8n*BigInt(s))-1n:"number"==typeof e&&(r=BigInt(Number.MAX_SAFE_INTEGER));let l="bigint"==typeof r&&o?-r-1n:0;if(r&&f>r||f<l){let n="bigint"==typeof e?"n":"";throw new i.J5({max:r?`${r}${n}`:void 0,min:`${l}${n}`,signed:o,size:s,value:`${e}${n}`})}let u=`0x${(o&&f<0?(1n<<BigInt(8*s))+BigInt(f):f).toString(16)}`;return s?(0,a.vk)(u,{size:s}):u}let d=new TextEncoder;function p(e,n={}){return u(d.encode(e),n)}},6073:function(e,n,r){"use strict";r.d(n,{Tr:function(){return o},c8:function(){return a}});var i=r(95946);let a={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844"};function o(e){let n={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?(0,i.ly)(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?(0,i.ly)(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?a[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return n.yParity=(()=>
490{if(e.yParity)return Number(e.yParity);if("bigint"==typeof n.v){if(0n===n.v||27n===n.v)return 0;if(1n===n.v||28n===n.v)return 1;if(n.v>=35n)return n.v%2n===0n?1:0}})(),"legacy"===n.type&&(delete n.accessList,delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas,delete n.yParity),"eip2930"===n.type&&(delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas),"eip1559"===n.type&&delete n.maxFeePerBlobGas,n}},91734:function(e,n,r){"use strict";r.d(n,{w:function(){return N}});var i=r(41656);let a=BigInt(4294967296-1),o=BigInt(32),s=(e,n,r)=>e<<r|n>>>32-r,f=(e,n,r)=>n<<r|e>>>32-r,l=(e,n,r)=>n<<r-32|e>>>64-r,u=(e,n,r)=>e<<r-32|n>>>64-r;var c=r(92203);let[d,p,h]=[[],[],[]],y=BigInt(0),m=BigInt(1),g=BigInt(2),b=BigInt(7),v=BigInt(256),w=BigInt(113);for(let e=0,n=m,r=1,i=0;e<24;e++){[r,i]=[i,(2*r+3*i)%5],d.push(2*(5*i+r)),p.push((e+1)*(e+2)/2%64);let a=y;for(let e=0;e<7;e++)(n=(n<<m^(n>>b)*w)%v)&g&&(a^=m<<(m<<BigInt(e))-m);h.push(a)}let[x,T]=function(e,n=!1){let r=new Uint32Array(e.length),i=new Uint32Array(e.length);for(let s=0;s<e.length;s++){let{h:f,l}=function(e,n=!1){return n?{h:Number(e&a),l:Number(e>>o&a)}:{h:0|Number(e>>o&a),l:0|Number(e&a)}}(e[s],n);[r[s],i[s]]=[f,l]}return[r,i]}(h,!0),C=(e,n,r)=>r>32?l(e,n,r):s(e,n,r),M=(e,n,r)=>r>32?u(e,n,r):f(e,n,r);class A extends c.kb{constructor(e,n,r,a=!1,o=24){if(super(),this.blockLen=e,this.suffix=n,this.outputLen=r,this.enableXOF=a,this.rounds=o,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,i.Rx)(r),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,c.Jq)(this.state)}keccak(){!function(e,n=24){let r=new Uint32Array(10);for(let i=24-n;i<24;i++){for(let n=0;n<10;n++)r[n]=e[n]^e[n+10]^e[n+20]^e[n+30]^e[n+40];for(let n=0;n<10;n+=2){let i=(n+8)%10,a=(n+2)%10,o=r[a],s=r[a+1],f=C(o,s,1)^r[i],l=M(o,s,1)^r[i+1];for(let r=0;r<50;r+=10)e[n+r]^=f,e[n+r+1]^=l}let n=e[2],a=e[3];for(let r=0;r<24;r++){let i=p[r],o=C(n,a,i),s=M(n,a,i),f=d[r];n=e[f],a=e[f+1],e[f]=o,e[f+1]=s}for(let n=0;n<50;n+=10){for(let i=0;i<10;i++)r[i]=e[n+i];for(let i=0;i<10;i++)e[n+i]^=~r[(i+2)%10]&r[(i+4)%10]}e[0]^=x[i],e[1]^=T[i]}r.fill(0)}(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){(0,i.Gg)(this);let{blockLen:n,state:r}=this,a=(e=(0,c.O0)(e)).length;for(let i=0;i<a;){let o=Math.min(n-this.pos,a-i);for(let n=0;n<o;n++)r[this.pos++]^=e[i++];this.pos===n&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:n,pos:r,blockLen:i}=this;e[r]^=n,(128&n)!=0&&r===i-1&&this.keccak(),e[i-1]^=128,this.keccak()}writeInto(e){(0,i.Gg)(this,!1),(0,i.aI)(e),this.finish();let n=this.state,{blockLen:r}=this;for(let i=0,a=e.length;i<a;){this.posOut>=r&&this.keccak();let o=Math.min(r-this.posOut,a-i);e.set(n.subarray(this.posOut,this.posOut+o),i),this.posOut+=o,i+=o}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,i.Rx)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,i.J8)(e,this),this.finished)throw Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){let{blockLen:n,suffix:r,outputLen:i,rounds:a,enableXOF:o}=this;return e||(e=new A(n,r,i,o,a)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=a,e.suffix=r,e.outputLen=i,e.enableXOF=o,e.destroyed=this.destroyed,e}}let E=(0,c.hE)(()=>new A(136,1,32));var I=r(15102),S=r(11187),k=r(92106);function N(e,n){let r=E((0,I.v)(e,{strict:!1})?(0,S.O0)(e):e);return"bytes"===(n||"hex")?r:(0,k.NC)(r)}},58034:function(e,n,r){"use strict";r.d(n,{C:function(){return o}});var i=r(3972),a=r(97123);let o=e=>(0,i.tP)((0,a.r)(e),0,4)},97123:function(e,n,r){"use strict";r.d(n,{r:function(){return c}});var i=r(11187),a=r(91734);let o=e=>(0,a.w)((0,i.O0)(e)),s=/^tuple(?<array>(\[(\d*)\])*)$/;function f(e){let n="",r=e.length;for(let i=0;i<r;i++)n+=function e(n){let r=n.type;if(s.test(n.type)&&"components"in n){r="(";let i=n.components.length;for(let a=0;a<i;a++)r+=e(n.components[a]),a<i-1&&(r+=", ");let a=function(e,n){let r=e.exec(n);return r?.groups}(s,n.type);return r+=`)${a?.array??""}`,e({...n,type:r})}return("indexed"in n&&n.indexed&&(r=`${r} indexed`),n.name)?`${r} ${n.name}`:r}(e[i]),i!==r-1&&(n+=", ");return n}var l=r(62027);let u=e=>{var n;return function(e){let n=!0,r="",i=0,a="",o=!1;for(let s=0;s<e.length;s++){let f=e[s];if(["(",")",","].includes(f)&&(n=!0),"("===f&&i++,")"===f&&i--,n){if(0===i){if(" "===f&&["event","function",""].includes(a))a="";else if(a+=f,")"===f){o=!0;break}continue}if(" "===f){","!==e[s-1]&&","!==r&&",("!==r&&(r="",n=!1);continue}a+=f,r+=f}}if(!o)throw new l.G("Unable to normalize signature.");return a}
490("string"==typeof e?e:"function"===(n=e).type?`function ${n.name}(${f(n.inputs)})${n.stateMutability&&"nonpayable"!==n.stateMutability?` ${n.stateMutability}`:""}${n.outputs.length?` returns (${f(n.outputs)})`:""}`:"event"===n.type?`event ${n.name}(${f(n.inputs)})`:"error"===n.type?`error ${n.name}(${f(n.inputs)})`:"constructor"===n.type?`constructor(${f(n.inputs)})${"payable"===n.stateMutability?" payable":""}`:"fallback"===n.type?"fallback()":"receive() external payable")};function c(e){return o(u(e))}},41656:function(e,n,r){"use strict";function i(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`Wrong positive integer: ${e}`)}function a(e,...n){if(!(e instanceof Uint8Array))throw Error("Expected Uint8Array");if(n.length>0&&!n.includes(e.length))throw Error(`Expected Uint8Array of length ${n}, not of length=${e.length}`)}function o(e,n=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(n&&e.finished)throw Error("Hash#digest() has already been called")}function s(e,n){a(e);let r=n.outputLen;if(e.length<r)throw Error(`digestInto() expects output buffer of length at least ${r}`)}r.d(n,{Gg:function(){return o},J8:function(){return s},Rx:function(){return i},aI:function(){return a}})},92203:function(e,n,r){"use strict";r.d(n,{GL:function(){return o},Jq:function(){return a},O0:function(){return f},hE:function(){return u},kb:function(){return l},np:function(){return s}});/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */let i=e=>e instanceof Uint8Array,a=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),o=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),s=(e,n)=>e<<32-n|e>>>n;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw Error("Non little-endian hardware is not supported");function f(e){if("string"==typeof e&&(e=function(e){if("string"!=typeof e)throw Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}(e)),!i(e))throw Error(`expected Uint8Array, got ${typeof e}`);return e}class l{clone(){return this._cloneInto()}}function u(e){let n=n=>e().update(f(n)).digest(),r=e();return n.outputLen=r.outputLen,n.blockLen=r.blockLen,n.create=()=>e(),n}},1604:function(e,n,r){"use strict";let i;r.d(n,{z:function(){return tf}}),(e7=tn||(tn={})).assertEqual=e=>e,e7.assertIs=function(e){},e7.assertNever=function(e){throw Error()},e7.arrayToEnum=e=>{let n={};for(let r of e)n[r]=r;return n},e7.getValidEnumValues=e=>{let n=e7.objectKeys(e).filter(n=>"number"!=typeof e[e[n]]),r={};for(let i of n)r[i]=e[i];return e7.objectValues(r)},e7.objectValues=e=>e7.objectKeys(e).map(function(n){return e[n]}),e7.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let n=[];for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.push(r);return n},e7.find=(e,n)=>{for(let r of e)if(n(r))return r},e7.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e7.joinValues=function(e,n=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(n)},e7.jsonStringifyReplacer=(e,n)=>"bigint"==typeof n?n.toString():n,(tr||(tr={})).mergeShapes=(e,n)=>({...e,...n});let a=tn.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),o=e=>{switch(typeof e){case"undefined":return a.undefined;case"string":return a.string;case"number":return isNaN(e)?a.nan:a.number;case"boolean":return a.boolean;case"function":return a.function;case"bigint":return a.bigint;case"symbol":return a.symbol;case"object":if(Array.isArray(e))return a.array;if(null===e)return a.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return a.promise;if("undefined"!=typeof Map&&e instanceof Map)return a.map;if("undefined"!=typeof Set&&e instanceof Set)return a.set;if("undefined"!=typeof Date&&e instanceof Date)return a.date;return a.object;default:return a.unknown}}
vendor: 5,774 bytes, line 490
490,s=tn.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class f extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let n=e||function(e){return e.message},r={_errors:[]},i=e=>{for(let a of e.issues)if("invalid_union"===a.code)a.unionErrors.map(i);else if("invalid_return_type"===a.code)i(a.returnTypeError);else if("invalid_arguments"===a.code)i(a.argumentsError);else if(0===a.path.length)r._errors.push(n(a));else{let e=r,i=0;for(;i<a.path.length;){let r=a.path[i];i===a.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(n(a))):e[r]=e[r]||{_errors:[]},e=e[r],i++}}};return i(this),r}static assert(e){if(!(e instanceof f))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,tn.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let n={},r=[];for(let i of this.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(e(i))):r.push(e(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}f.create=e=>new f(e);let l=(e,n)=>{let r;switch(e.code){case s.invalid_type:r=e.received===a.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case s.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,tn.jsonStringifyReplacer)}`;break;case s.unrecognized_keys:r=`Unrecognized key(s) in object: ${tn.joinValues(e.keys,", ")}`;break;case s.invalid_union:r="Invalid input";break;case s.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${tn.joinValues(e.options)}`;break;case s.invalid_enum_value:r=`Invalid enum value. Expected ${tn.joinValues(e.options)}, received '${e.received}'`;break;case s.invalid_arguments:r="Invalid function arguments";break;case s.invalid_return_type:r="Invalid function return type";break;case s.invalid_date:r="Invalid date";break;case s.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:tn.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case s.too_small:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case s.too_big:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case s.custom:r="Invalid input";break;case s.invalid_intersection_types:r="Intersection results could not be merged";break;case s.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case s.not_finite:r="Number must be finite";break;default:r=n.defaultError,tn.assertNever(e)}return{message:r}},u=l;function c(){return u}let d=e=>{let{data:n,path:r,errorMaps:i,issueData:a}=e,o=[...r,...a.path||[]],s={...a,path:o};if(void 0!==a.message)return{...a,path:o,message:a.message};let f="";for(let e of i.filter(e=>!!e).slice().reverse())f=e(s,{data:n,defaultError:f}).message;return{...a,path:o,message:f}};function p(e,n){let r=c(),i=d({issueData:n,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===l?void 0:l].filter(e=>!!e)});e.common.issues.push(i)}class h{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,n){let r=[];for(let i of n){if("aborted"===i.status)return y;"dirty"===i.status&&e.dirty(),r.push(i.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,n){let r=[];for(let e of n){let n=await e.key,i=await e.value;r.push({key:n,value:i})}return h.mergeObjectSync(e,r)}static mergeObjectSync(e,n){let r={};for(let i of n){let{key:n,value:a}=i;if("aborted"===n.status||"aborted"===a.status)return y;"dirty"===n.status&&e.dirty(),"dirty"===a.status&&e.dirty(),"__proto__"!==n.value&&(void 0!==a.value||i.alwaysSet)&&(r[n.value]=a.value)}return{status:e.value,value:r}}}let y=Object.freeze({status:"aborted"}),m=e=>({status:"dirty",value:e}),g=e=>
490({status:"valid",value:e}),b=e=>"aborted"===e.status,v=e=>"dirty"===e.status,w=e=>"valid"===e.status,x=e=>"undefined"!=typeof Promise&&e instanceof Promise;function T(e,n,r,i){if("a"===r&&!i)throw TypeError("Private accessor was defined without a getter");if("function"==typeof n?e!==n||!i:!n.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?i:"a"===r?i.call(e):i?i.value:n.get(e)}function C(e,n,r,i,a){if("m"===i)throw TypeError("Private method is not writable");if("a"===i&&!a)throw TypeError("Private accessor was defined without a setter");if("function"==typeof n?e!==n||!a:!n.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?a.call(e,r):a?a.value=r:n.set(e,r),r}"function"==typeof SuppressedError&&SuppressedError,(te=ti||(ti={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},te.toString=e=>"string"==typeof e?e:null==e?void 0:e.message;class M{constructor(e,n,r,i){this._cachedPath=[],this.parent=e,this.data=n,this._path=r,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let A=(e,n)=>{if(w(n))return{success:!0,data:n.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let n=new f(e.common.issues);return this._error=n,this._error}}};function E(e){if(!e)return{};let{errorMap:n,invalid_type_error:r,required_error:i,description:a}=e;if(n&&(r||i))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return n?{errorMap:n,description:a}:{errorMap:(n,a)=>{var o,s;let{message:f}=e;return"invalid_enum_value"===n.code?{message:null!=f?f:a.defaultError}:void 0===a.data?{message:null!==(o=null!=f?f:i)&&void 0!==o?o:a.defaultError}:"invalid_type"!==n.code?{message:a.defaultError}:{message:null!==(s=null!=f?f:r)&&void 0!==s?s:a.defaultError}},description:a}}class I{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return o(e.data)}_getOrReturnCtx(e,n){return n||{common:e.parent.common,data:e.data,parsedType:o(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new h,ctx:{common:e.parent.common,data:e.data,parsedType:o(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let n=this._parse(e);if(x(n))throw Error("Synchronous parse encountered promise.");return n}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,n){let r=this.safeParse(e,n);if(r.success)return r.data;throw r.error}safeParse(e,n){var r;let i={common:{issues:[],async:null!==(r=null==n?void 0:n.async)&&void 0!==r&&r,contextualErrorMap:null==n?void 0:n.errorMap},path:(null==n?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:o(e)},a=this._parseSync({data:e,path:i.path,parent:i});return A(i,a)}async parseAsync(e,n){let r=await this.safeParseAsync(e,n);if(r.success)return r.data;throw r.error}async safeParseAsync(e,n){let r={common:{issues:[],contextualErrorMap:null==n?void 0:n.errorMap,async:!0},path:(null==n?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:o(e)},i=this._parse({data:e,path:r.path,parent:r});return A(r,await (x(i)?i:Promise.resolve(i)))}refine(e,n){let r=e=>"string"==typeof n||void 0===n?{message:n}:"function"==typeof n?n(e):n;return this._refinement((n,i)=>{let a=e(n),o=()=>i.addIssue({code:s.custom,...r(n)});return"undefined"!=typeof Promise&&a instanceof Promise?a.then(e=>!!e||(o(),!1)):!!a||(o(),!1)})}refinement(e,n){return this._refinement((r,i)=>!!e(r)||(i.addIssue("function"==typeof n?n(r,i):n),!1))}_refinement(e){return new eg({schema:this,typeName:ts.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return eb.create(this,this._def)}nullable(){return ev.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ee.create(this,this._def)}promise(){return em.create(this,this._def)}or(e){return en.create([this,e],this._def)}and(e){return ea.create(this,e,this._def)}transform(e){return new eg({...E(this._def),schema:this,typeName:ts.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new ew({...E(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:ts.ZodDefault})}brand(){return new eM({typeName:ts.ZodBranded,type:this,...E(this._def)})}catch(e){return new ex({...E(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:ts.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return eA.create(this,e)}readonly(){return eE.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let S=/^c[^\s-]{8,}
490$/i,k=/^[0-9a-z]+$/,N=/^[0-9A-HJKMNP-TV-Z]{26}$/,j=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,D=/^[a-z0-9_-]{21}$/i,_=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,O=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,P=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,L=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,R=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,z="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",B=RegExp(`^${z}$`);function U(e){let n="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?n=`${n}\\.\\d{${e.precision}}`:null==e.precision&&(n=`${n}(\\.\\d+)?`),n}function F(e){let n=`${z}T${U(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),n=`${n}(${r.join("|")})`,RegExp(`^${n}$`)}class Z extends I{_parse(e){var n,r;let o;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==a.string){let n=this._getOrReturnCtx(e);return p(n,{code:s.invalid_type,expected:a.string,received:n.parsedType}),y}let f=new h;for(let a of this._def.checks)if("min"===a.kind)e.data.length<a.value&&(p(o=this._getOrReturnCtx(e,o),{code:s.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),f.dirty());else if("max"===a.kind)e.data.length>a.value&&(p(o=this._getOrReturnCtx(e,o),{code:s.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),f.dirty());else if("length"===a.kind){let n=e.data.length>a.value,r=e.data.length<a.value;(n||r)&&(o=this._getOrReturnCtx(e,o),n?p(o,{code:s.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):r&&p(o,{code:s.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),f.dirty())}else if("email"===a.kind)O.test(e.data)||(p(o=this._getOrReturnCtx(e,o),{validation:"email",code:s.invalid_string,message:a.message}),f.dirty());else if("emoji"===a.kind)i||(i=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),i.test(e.data)||(p(o=this._getOrReturnCtx(e,o),{validation:"emoji",code:s.invalid_string,message:a.message}),f.dirty());else if("uuid"===a.kind)j.test(e.data)||(p(o=this._getOrReturnCtx(e,o),{validation:"uuid",code:s.invalid_string,message:a.message}),f.dirty());else if("nanoid"===a.kind)D.test(e.data)||(p(o=this._getOrReturnCtx(e,o),{validation:"nanoid",code:s.invalid_string,message:a.message}),f.dirty());else if("cuid"===a.kind)S.test(e.data)||(p(o=this._getOrReturnCtx(e,o),{validation:"cuid",code:s.invalid_string,message:a.message}),f.dirty());else if("cuid2"===a.kind)k.test(e.data)||(p(o=this._getOrReturnCtx(e,o),{validation:"cuid2",code:s.invalid_string,message:a.message}),f.dirty());else if("ulid"===a.kind)N.test(e.data)||(p(o=this._getOrReturnCtx(e,o),{validation:"ulid",code:s.invalid_string,message:a.message}),f.dirty());else if("url"===a.kind)try{new URL(e.data)}catch(n){p(o=this._getOrReturnCtx(e,o),{validation:"url",code:s.invalid_string,message:a.message}),f.dirty()}else"regex"===a.kind?(a.regex.lastIndex=0,a.regex.test(e.data)||(p(o=this._getOrReturnCtx(e,o),{validation:"regex",code:s.invalid_string,message:a.message}),f.dirty())):"trim"===a.kind?e.data=e.data.trim():"includes"===a.kind?e.data.includes(a.value,a.position)||(p(o=this._getOrReturnCtx(e,o),{code:s.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),f.dirty()):"toLowerCase"===a.kind?e.data=e.data.toLowerCase():"toUpperCase"===a.kind?e.data=e.data.toUpperCase():"startsWith"===a.kind?e.data.startsWith(a.value)||(p(o=this._getOrReturnCtx(e,o),{code:s.invalid_string,validation:{startsWith:a.value},message:a.message}),f.dirty()):"endsWith"===a.kind?e.data.endsWith(a.value)||(p(o=this._getOrReturnCtx(e,o),{code:s.invalid_string,validation:{endsWith:a.value},message:a.message}),f.dirty()):"datetime"===a.kind?F(a).test(e.data)||(p(o=this._getOrReturnCtx(e,o),{code:s.invalid_string,validation:"datetime",message:a.message}),f.dirty()):"date"===a.kind?B.test(e.data)||(p(o=this._getOrReturnCtx(e,o),{code:s.invalid_string,validation:"date",message:a.message}),f.dirty()):"time"===a.kind?RegExp(`^${U(a)}$`).test(e.data)||(p(o=this._getOrReturnCtx(e,o),{code:s.invalid_string,validation:"time",message:a.message}),f.dirty()):"duration"===a.kind?_.test(e.data)||(p(o=this._getOrReturnCtx(e,o),{validation:"duration",code:s.invalid_string,message:a.message}),f.dirty()):"ip"===a.kind?(n=e.data,("v4"===(r=a.version)||!r)&&P.test(n)||("v6"===r||!r)&&L.test(n)||(p(o=this._getOrReturnCtx(e,o),{validation:"ip",code:s.invalid_string,message:a.message}),f.dirty())):"base64"===a.kind?R.test(e.data)||(p(o=this._getOrReturnCtx(e,o),{validation:"base64",code:s.invalid_string,message:a.message}),f.dirty()):tn.assertNever(a);return{status:f.value,value:e.data}}_regex(e,n,r){return this.refinement(n=>e.test(n),{validation:n,code:s.invalid_string,...ti.errToObj(r)})}_addCheck(e){return new Z({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...ti.errToObj(e)})}url(e){return this._addCheck({kind:"url",...ti.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...ti.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...ti.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...ti.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...ti.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...ti.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...ti.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...ti.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...ti.errToObj(e)})}datetime(e){var n,r;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!==(n=null==e?void 0:e.offset)&&void 0!==n&&n,local:null!==(r=null==e?void 0:e.local)&&void 0!==r&&r,...ti.errToObj(null==e?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,...ti.errToObj(null==e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...ti.errToObj(e)})}regex(e,n){return this._addCheck({kind:"regex",regex:e,...ti.errToObj(n)})}includes(e,n){return this._addCheck({kind:"includes",value:e,position:null==n?void 0:n.position,...ti.errToObj(null==n?void 0:n.message)})}startsWith(e,n){return this._addCheck({kind:"startsWith",value:e,...ti.errToObj(n)})}endsWith(e,n){return this._addCheck({kind:"endsWith",value:e,...ti.errToObj(n)})}min(e,n){return this._addCheck({kind:"min",value:e,...ti.errToObj(n)})}max(e,n){return this._addCheck({kind:"max",value:e,...ti.errToObj(n)})}length(e,n){return this._addCheck({kind:"length",value:e,...ti.errToObj(n)})}nonempty(e){return this.min(1,ti.errToObj(e))}trim(){return new Z({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Z({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Z({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}
490get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get minLength(){let e=null;for(let n of this._def.checks)"min"===n.kind&&(null===e||n.value>e)&&(e=n.value);return e}get maxLength(){let e=null;for(let n of this._def.checks)"max"===n.kind&&(null===e||n.value<e)&&(e=n.value);return e}}Z.create=e=>{var n;return new Z({checks:[],typeName:ts.ZodString,coerce:null!==(n=null==e?void 0:e.coerce)&&void 0!==n&&n,...E(e)})};class W extends I{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let n;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==a.number){let n=this._getOrReturnCtx(e);return p(n,{code:s.invalid_type,expected:a.number,received:n.parsedType}),y}let r=new h;for(let i of this._def.checks)"int"===i.kind?tn.isInteger(e.data)||(p(n=this._getOrReturnCtx(e,n),{code:s.invalid_type,expected:"integer",received:"float",message:i.message}),r.dirty()):"min"===i.kind?(i.inclusive?e.data<i.value:e.data<=i.value)&&(p(n=this._getOrReturnCtx(e,n),{code:s.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),r.dirty()):"max"===i.kind?(i.inclusive?e.data>i.value:e.data>=i.value)&&(p(n=this._getOrReturnCtx(e,n),{code:s.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),r.dirty()):"multipleOf"===i.kind?0!==function(e,n){let r=(e.toString().split(".")[1]||"").length,i=(n.toString().split(".")[1]||"").length,a=r>i?r:i;return parseInt(e.toFixed(a).replace(".",""))%parseInt(n.toFixed(a).replace(".",""))/Math.pow(10,a)}(e.data,i.value)&&(p(n=this._getOrReturnCtx(e,n),{code:s.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):"finite"===i.kind?Number.isFinite(e.data)||(p(n=this._getOrReturnCtx(e,n),{code:s.not_finite,message:i.message}),r.dirty()):tn.assertNever(i);return{status:r.value,value:e.data}}gte(e,n){return this.setLimit("min",e,!0,ti.toString(n))}gt(e,n){return this.setLimit("min",e,!1,ti.toString(n))}lte(e,n){return this.setLimit("max",e,!0,ti.toString(n))}lt(e,n){return this.setLimit("max",e,!1,ti.toString(n))}setLimit(e,n,r,i){return new W({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:ti.toString(i)}]})}_addCheck(e){return new W({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:ti.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ti.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ti.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ti.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ti.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:ti.toString(n)})}finite(e){return this._addCheck({kind:"finite",message:ti.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ti.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ti.toString(e)})}get minValue(){let e=null;for(let n of this._def.checks)"min"===n.kind&&(null===e||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(let n of this._def.checks)"max"===n.kind&&(null===e||n.value<e)&&(e=n.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&tn.isInteger(e.value))}get isFinite(){let e=null,n=null;for(let r of this._def.checks){if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;"min"===r.kind?(null===n||r.value>n)&&(n=r.value):"max"===r.kind&&(null===e||r.value<e)&&(e=r.value)}return Number.isFinite(n)&&Number.isFinite(e)}}W.create=e=>new W({checks:[],typeName:ts.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...E(e)});class H extends I{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let n;if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==a.bigint){let n=this._getOrReturnCtx(e);return p(n,{code:s.invalid_type,expected:a.bigint,received:n.parsedType}),y}let r=new h;for(let i of this._def.checks)"min"===i.kind?(i.inclusive?e.data<i.value:e.data<=i.value)&&(p(n=this._getOrReturnCtx(e,n),{code:s.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),r.dirty()):"max"===i.kind?(i.inclusive?e.data>i.value:e.data>=i.value)&&(p(n=this._getOrReturnCtx(e,n),{code:s.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),r.dirty()):"multipleOf"===i.kind?e.data%i.value!==BigInt(0)&&(p(n=this._getOrReturnCtx(e,n),{code:s.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):tn.assertNever(i);return{status:r.value,value:e.data}}gte(e,n){return this.setLimit("min",e,!0,ti.toString(n))}gt(e,n){return this.setLimit("min",e,!1,ti.toString(n))}lte(e,n){return this.setLimit("max",e,!0,ti.toString(n))}lt(e,n){return this.setLimit("max",e,!1,ti.toString(n))}setLimit(e,n,r,i){return new H({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:ti.toString(i)}]})}_addCheck(e){return new H({...this._def,checks:[...this._def.checks,e]})}
490positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ti.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ti.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ti.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ti.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:ti.toString(n)})}get minValue(){let e=null;for(let n of this._def.checks)"min"===n.kind&&(null===e||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(let n of this._def.checks)"max"===n.kind&&(null===e||n.value<e)&&(e=n.value);return e}}H.create=e=>{var n;return new H({checks:[],typeName:ts.ZodBigInt,coerce:null!==(n=null==e?void 0:e.coerce)&&void 0!==n&&n,...E(e)})};class G extends I{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==a.boolean){let n=this._getOrReturnCtx(e);return p(n,{code:s.invalid_type,expected:a.boolean,received:n.parsedType}),y}return g(e.data)}}G.create=e=>new G({typeName:ts.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...E(e)});class q extends I{_parse(e){let n;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==a.date){let n=this._getOrReturnCtx(e);return p(n,{code:s.invalid_type,expected:a.date,received:n.parsedType}),y}if(isNaN(e.data.getTime()))return p(this._getOrReturnCtx(e),{code:s.invalid_date}),y;let r=new h;for(let i of this._def.checks)"min"===i.kind?e.data.getTime()<i.value&&(p(n=this._getOrReturnCtx(e,n),{code:s.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),r.dirty()):"max"===i.kind?e.data.getTime()>i.value&&(p(n=this._getOrReturnCtx(e,n),{code:s.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):tn.assertNever(i);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new q({...this._def,checks:[...this._def.checks,e]})}min(e,n){return this._addCheck({kind:"min",value:e.getTime(),message:ti.toString(n)})}max(e,n){return this._addCheck({kind:"max",value:e.getTime(),message:ti.toString(n)})}get minDate(){let e=null;for(let n of this._def.checks)"min"===n.kind&&(null===e||n.value>e)&&(e=n.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let n of this._def.checks)"max"===n.kind&&(null===e||n.value<e)&&(e=n.value);return null!=e?new Date(e):null}}q.create=e=>new q({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:ts.ZodDate,...E(e)});class Y extends I{_parse(e){if(this._getType(e)!==a.symbol){let n=this._getOrReturnCtx(e);return p(n,{code:s.invalid_type,expected:a.symbol,received:n.parsedType}),y}return g(e.data)}}Y.create=e=>new Y({typeName:ts.ZodSymbol,...E(e)});class V extends I{_parse(e){if(this._getType(e)!==a.undefined){let n=this._getOrReturnCtx(e);return p(n,{code:s.invalid_type,expected:a.undefined,received:n.parsedType}),y}return g(e.data)}}V.create=e=>new V({typeName:ts.ZodUndefined,...E(e)});class Q extends I{_parse(e){if(this._getType(e)!==a.null){let n=this._getOrReturnCtx(e);return p(n,{code:s.invalid_type,expected:a.null,received:n.parsedType}),y}return g(e.data)}}Q.create=e=>new Q({typeName:ts.ZodNull,...E(e)});class K extends I{constructor(){super(...arguments),this._any=!0}_parse(e){return g(e.data)}}K.create=e=>new K({typeName:ts.ZodAny,...E(e)});class $ extends I{constructor(){super(...arguments),this._unknown=!0}_parse(e){return g(e.data)}}$.create=e=>new $({typeName:ts.ZodUnknown,...E(e)});class J extends I{_parse(e){let n=this._getOrReturnCtx(e);return p(n,{code:s.invalid_type,expected:a.never,received:n.parsedType}),y}}J.create=e=>new J({typeName:ts.ZodNever,...E(e)});class X extends I{_parse(e){if(this._getType(e)!==a.undefined){let n=this._getOrReturnCtx(e);return p(n,{code:s.invalid_type,expected:a.void,received:n.parsedType}),y}return g(e.data)}}X.create=e=>new X({typeName:ts.ZodVoid,...E(e)});class ee extends I{_parse(e){let{ctx:n,status:r}=this._processInputParams(e),i=this._def;if(n.parsedType!==a.array)return p(n,{code:s.invalid_type,expected:a.array,received:n.parsedType}),y;if(null!==i.exactLength){let e=n.data.length>i.exactLength.value,a=n.data.length<i.exactLength.value;(e||a)&&(p(n,{code:e?s.too_big:s.too_small,minimum:a?i.exactLength.value:void 0,maximum:e?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),r.dirty())}if(null!==i.minLength&&n.data.length<i.minLength.value&&(p(n,{code:s.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),r.dirty()),null!==i.maxLength&&n.data.length>i.maxLength.value&&(p(n,{code:s.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((e,r)=>i.type._parseAsync(new M(n,e,n.path,r)))).then(e=>h.mergeArray(r,e));let o=[...n.data].map((e,r)=>i.type._parseSync(new M(n,e,n.path,r)));return h.mergeArray(r,o)}
490get element(){return this._def.type}min(e,n){return new ee({...this._def,minLength:{value:e,message:ti.toString(n)}})}max(e,n){return new ee({...this._def,maxLength:{value:e,message:ti.toString(n)}})}length(e,n){return new ee({...this._def,exactLength:{value:e,message:ti.toString(n)}})}nonempty(e){return this.min(1,e)}}ee.create=(e,n)=>new ee({type:e,minLength:null,maxLength:null,exactLength:null,typeName:ts.ZodArray,...E(n)});class et extends I{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),n=tn.objectKeys(e);return this._cached={shape:e,keys:n}}_parse(e){if(this._getType(e)!==a.object){let n=this._getOrReturnCtx(e);return p(n,{code:s.invalid_type,expected:a.object,received:n.parsedType}),y}let{status:n,ctx:r}=this._processInputParams(e),{shape:i,keys:o}=this._getCached(),f=[];if(!(this._def.catchall instanceof J&&"strip"===this._def.unknownKeys))for(let e in r.data)o.includes(e)||f.push(e);let l=[];for(let e of o){let n=i[e],a=r.data[e];l.push({key:{status:"valid",value:e},value:n._parse(new M(r,a,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof J){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of f)l.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)f.length>0&&(p(r,{code:s.unrecognized_keys,keys:f}),n.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let n of f){let i=r.data[n];l.push({key:{status:"valid",value:n},value:e._parse(new M(r,i,r.path,n)),alwaysSet:n in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let n of l){let r=await n.key,i=await n.value;e.push({key:r,value:i,alwaysSet:n.alwaysSet})}return e}).then(e=>h.mergeObjectSync(n,e)):h.mergeObjectSync(n,l)}get shape(){return this._def.shape()}strict(e){return ti.errToObj,new et({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(n,r)=>{var i,a,o,s;let f=null!==(o=null===(a=(i=this._def).errorMap)||void 0===a?void 0:a.call(i,n,r).message)&&void 0!==o?o:r.defaultError;return"unrecognized_keys"===n.code?{message:null!==(s=ti.errToObj(e).message)&&void 0!==s?s:f}:{message:f}}}:{}})}strip(){return new et({...this._def,unknownKeys:"strip"})}passthrough(){return new et({...this._def,unknownKeys:"passthrough"})}extend(e){return new et({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new et({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:ts.ZodObject})}setKey(e,n){return this.augment({[e]:n})}catchall(e){return new et({...this._def,catchall:e})}pick(e){let n={};return tn.objectKeys(e).forEach(r=>{e[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new et({...this._def,shape:()=>n})}omit(e){let n={};return tn.objectKeys(this.shape).forEach(r=>{e[r]||(n[r]=this.shape[r])}),new et({...this._def,shape:()=>n})}deepPartial(){return function e(n){if(n instanceof et){let r={};for(let i in n.shape){let a=n.shape[i];r[i]=eb.create(e(a))}return new et({...n._def,shape:()=>r})}return n instanceof ee?new ee({...n._def,type:e(n.element)}):n instanceof eb?eb.create(e(n.unwrap())):n instanceof ev?ev.create(e(n.unwrap())):n instanceof eo?eo.create(n.items.map(n=>e(n))):n}(this)}partial(e){let n={};return tn.objectKeys(this.shape).forEach(r=>{let i=this.shape[r];e&&!e[r]?n[r]=i:n[r]=i.optional()}),new et({...this._def,shape:()=>n})}required(e){let n={};return tn.objectKeys(this.shape).forEach(r=>{if(e&&!e[r])n[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof eb;)e=e._def.innerType;n[r]=e}}),new et({...this._def,shape:()=>n})}keyof(){return ep(tn.objectKeys(this.shape))}}et.create=(e,n)=>new et({shape:()=>e,unknownKeys:"strip",catchall:J.create(),typeName:ts.ZodObject,...E(n)}),et.strictCreate=(e,n)=>new et({shape:()=>e,unknownKeys:"strict",catchall:J.create(),typeName:ts.ZodObject,...E(n)}),et.lazycreate=(e,n)=>new et({shape:e,unknownKeys:"strip",catchall:J.create(),typeName:ts.ZodObject,...E(n)});class en extends I{_parse(e){let{ctx:n}=this._processInputParams(e),r=this._def.options;if(n.common.async)return Promise.all(r.map(async e=>{let r={...n,common:{...n.common,issues:[]},parent:null};return{result:await e._parseAsync({data:n.data,path:n.path,parent:r}),ctx:r}})).then(function(e){for(let n of e)if("valid"===n.result.status)return n.result;for(let r of e)if("dirty"===r.result.status)return n.common.issues.push(...r.ctx.common.issues),r.result;let r=e.map(e=>new f(e.ctx.common.issues));return p(n,{code:s.invalid_union,unionErrors:r}),y});{let e;let i=[];for(let a of r){let r={...n,common:{...n.common,issues:[]},parent:null},o=a._parseSync({data:n.data,path:n.path,parent:r});if("valid"===o.status)return o;"dirty"!==o.status||e||(e={result:o,ctx:r}),r.common.issues.length&&i.push(r.common.issues)}if(e)return n.common.issues.push(...e.ctx.common.issues),e.result;let a=i.map(e=>new f(e));return p(n,{code:s.invalid_union,unionErrors:a}),y}}get options(){return this._def.options}}en.create=(e,n)=>new en({options:e,typeName:ts.ZodUnion,...E(n)});let er=e=>{if(e instanceof ec)return er(e.schema);if(e instanceof eg)return er(e.innerType());if(e instanceof ed)return[e.value];if(e instanceof eh)return e.options;if(e instanceof ey)return tn.objectValues(e.enum);if(e instanceof ew)return er(e._def.innerType);if(e instanceof V)return[void 0];else if(e instanceof Q)return[null];else if(e instanceof eb)return[void 0,...er(e.unwrap())];else if(e instanceof ev)return[null,...er(e.unwrap())];else if(e instanceof eM)return er(e.unwrap());else if(e instanceof eE)return er(e.unwrap());else if(e instanceof ex)return er(e._def.innerType);else return[]};class ei extends I{_parse(e){let{ctx:n}=this._processInputParams(e);if(n.parsedType!==a.object)return p(n,{code:s.invalid_type,expected:a.object,received:n.parsedType}),y;let r=this.discriminator,i=n.data[r],o=this.optionsMap.get(i);return o?n.common.async?o._parseAsync({data:n.data,path:n.path,parent:n}):o._parseSync({data:n.data,path:n.path,parent:n}):(p(n,{code:s.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),y)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,n,r){let i=new Map;for(let r of n){let n=er(r.shape[e]);if(!n.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let a of n){if(i.has(a))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);i.set(a,r)}}return new ei({typeName:ts.ZodDiscriminatedUnion,discriminator:e,options:n,optionsMap:i,...E(r)})}}class ea extends I{_parse(e){let{status:n,ctx:r}=this._processInputParams(e),i=(e,i)=>{if(b(e)||b(i))return y;let f=function e(n,r){let i=o(n),s=o(r);if(n===r)return{valid:!0,data:n};if(i===a.object&&s===a.object){let i=tn.objectKeys(r),a=tn.objectKeys(n).filter(e=>-1!==i.indexOf(e)),o={...n,...r};for(let i of a){let a=e(n[i],r[i]);
490if(!a.valid)return{valid:!1};o[i]=a.data}return{valid:!0,data:o}}if(i===a.array&&s===a.array){if(n.length!==r.length)return{valid:!1};let i=[];for(let a=0;a<n.length;a++){let o=e(n[a],r[a]);if(!o.valid)return{valid:!1};i.push(o.data)}return{valid:!0,data:i}}return i===a.date&&s===a.date&&+n==+r?{valid:!0,data:n}:{valid:!1}}(e.value,i.value);return f.valid?((v(e)||v(i))&&n.dirty(),{status:n.value,value:f.data}):(p(r,{code:s.invalid_intersection_types}),y)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([e,n])=>i(e,n)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}ea.create=(e,n,r)=>new ea({left:e,right:n,typeName:ts.ZodIntersection,...E(r)});class eo extends I{_parse(e){let{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==a.array)return p(r,{code:s.invalid_type,expected:a.array,received:r.parsedType}),y;if(r.data.length<this._def.items.length)return p(r,{code:s.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),y;!this._def.rest&&r.data.length>this._def.items.length&&(p(r,{code:s.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());let i=[...r.data].map((e,n)=>{let i=this._def.items[n]||this._def.rest;return i?i._parse(new M(r,e,r.path,n)):null}).filter(e=>!!e);return r.common.async?Promise.all(i).then(e=>h.mergeArray(n,e)):h.mergeArray(n,i)}get items(){return this._def.items}rest(e){return new eo({...this._def,rest:e})}}eo.create=(e,n)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new eo({items:e,typeName:ts.ZodTuple,rest:null,...E(n)})};class es extends I{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==a.object)return p(r,{code:s.invalid_type,expected:a.object,received:r.parsedType}),y;let i=[],o=this._def.keyType,f=this._def.valueType;for(let e in r.data)i.push({key:o._parse(new M(r,e,r.path,e)),value:f._parse(new M(r,r.data[e],r.path,e)),alwaysSet:e in r.data});return r.common.async?h.mergeObjectAsync(n,i):h.mergeObjectSync(n,i)}get element(){return this._def.valueType}static create(e,n,r){return new es(n instanceof I?{keyType:e,valueType:n,typeName:ts.ZodRecord,...E(r)}:{keyType:Z.create(),valueType:e,typeName:ts.ZodRecord,...E(n)})}}class ef extends I{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==a.map)return p(r,{code:s.invalid_type,expected:a.map,received:r.parsedType}),y;let i=this._def.keyType,o=this._def.valueType,f=[...r.data.entries()].map(([e,n],a)=>({key:i._parse(new M(r,e,r.path,[a,"key"])),value:o._parse(new M(r,n,r.path,[a,"value"]))}));if(r.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of f){let i=await r.key,a=await r.value;if("aborted"===i.status||"aborted"===a.status)return y;("dirty"===i.status||"dirty"===a.status)&&n.dirty(),e.set(i.value,a.value)}return{status:n.value,value:e}})}{let e=new Map;for(let r of f){let i=r.key,a=r.value;if("aborted"===i.status||"aborted"===a.status)return y;("dirty"===i.status||"dirty"===a.status)&&n.dirty(),e.set(i.value,a.value)}return{status:n.value,value:e}}}}ef.create=(e,n,r)=>new ef({valueType:n,keyType:e,typeName:ts.ZodMap,...E(r)});class el extends I{_parse(e){let{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==a.set)return p(r,{code:s.invalid_type,expected:a.set,received:r.parsedType}),y;let i=this._def;null!==i.minSize&&r.data.size<i.minSize.value&&(p(r,{code:s.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),n.dirty()),null!==i.maxSize&&r.data.size>i.maxSize.value&&(p(r,{code:s.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());let o=this._def.valueType;function f(e){let r=new Set;for(let i of e){if("aborted"===i.status)return y;"dirty"===i.status&&n.dirty(),r.add(i.value)}return{status:n.value,value:r}}let l=[...r.data.values()].map((e,n)=>o._parse(new M(r,e,r.path,n)));return r.common.async?Promise.all(l).then(e=>f(e)):f(l)}min(e,n){return new el({...this._def,minSize:{value:e,message:ti.toString(n)}})}max(e,n){return new el({...this._def,maxSize:{value:e,message:ti.toString(n)}})}size(e,n){return this.min(e,n).max(e,n)}nonempty(e){return this.min(1,e)}}el.create=(e,n)=>new el({valueType:e,minSize:null,maxSize:null,typeName:ts.ZodSet,...E(n)});class eu extends I{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:n}=this._processInputParams(e);if(n.parsedType!==a.function)return p(n,{code:s.invalid_type,expected:a.function,received:n.parsedType}),y;function r(e,r){return d({data:e,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,c(),l].filter(e=>!!e),issueData:{code:s.invalid_arguments,argumentsError:r}})}function i(e,r){return d({data:e,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,c(),l].filter(e=>!!e),issueData:{code:s.invalid_return_type,returnTypeError:r}})}let o={errorMap:n.common.contextualErrorMap},u=n.data;if(this._def.returns instanceof em){let e=this;return g(async function(...n){let a=new f([]),s=await e._def.args.parseAsync(n,o).catch(e=>{throw a.addIssue(r(n,e)),a}),l=await Reflect.apply(u,this,s);return await e._def.returns._def.type.parseAsync(l,o).catch(e=>{throw a.addIssue(i(l,e)),a})})}{let e=this;return g(function(...n){let a=e._def.args.safeParse(n,o);if(!a.success)throw new f([r(n,a.error)]);let s=Reflect.apply(u,this,a.data),l=e._def.returns.safeParse(s,o);if(!l.success)throw new f([i(s,l.error)]);return l.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new eu({...this._def,args:eo.create(e).rest($.create())})}returns(e){return new eu({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,n,r){return new eu({args:e||eo.create([]).rest($.create()),returns:n||$.create(),typeName:ts.ZodFunction,...E(r)})}}class ec extends I{get schema(){return this._def.getter()}_parse(e){let{ctx:n}=this._processInputParams(e);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}ec.create=(e,n)=>new ec({getter:e,typeName:ts.ZodLazy,...E(n)});class ed extends I{_parse(e){if(e.data!==this._def.value){let n=this._getOrReturnCtx(e);return p(n,{received:n.data,code:s.invalid_literal,expected:this._def.value}),y}
490return{status:"valid",value:e.data}}get value(){return this._def.value}}function ep(e,n){return new eh({values:e,typeName:ts.ZodEnum,...E(n)})}ed.create=(e,n)=>new ed({value:e,typeName:ts.ZodLiteral,...E(n)});class eh extends I{constructor(){super(...arguments),ta.set(this,void 0)}_parse(e){if("string"!=typeof e.data){let n=this._getOrReturnCtx(e),r=this._def.values;return p(n,{expected:tn.joinValues(r),received:n.parsedType,code:s.invalid_type}),y}if(T(this,ta,"f")||C(this,ta,new Set(this._def.values),"f"),!T(this,ta,"f").has(e.data)){let n=this._getOrReturnCtx(e),r=this._def.values;return p(n,{received:n.data,code:s.invalid_enum_value,options:r}),y}return g(e.data)}get options(){return this._def.values}get enum(){let e={};for(let n of this._def.values)e[n]=n;return e}get Values(){let e={};for(let n of this._def.values)e[n]=n;return e}get Enum(){let e={};for(let n of this._def.values)e[n]=n;return e}extract(e,n=this._def){return eh.create(e,{...this._def,...n})}exclude(e,n=this._def){return eh.create(this.options.filter(n=>!e.includes(n)),{...this._def,...n})}}ta=new WeakMap,eh.create=ep;class ey extends I{constructor(){super(...arguments),to.set(this,void 0)}_parse(e){let n=tn.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==a.string&&r.parsedType!==a.number){let e=tn.objectValues(n);return p(r,{expected:tn.joinValues(e),received:r.parsedType,code:s.invalid_type}),y}if(T(this,to,"f")||C(this,to,new Set(tn.getValidEnumValues(this._def.values)),"f"),!T(this,to,"f").has(e.data)){let e=tn.objectValues(n);return p(r,{received:r.data,code:s.invalid_enum_value,options:e}),y}return g(e.data)}get enum(){return this._def.values}}to=new WeakMap,ey.create=(e,n)=>new ey({values:e,typeName:ts.ZodNativeEnum,...E(n)});class em extends I{unwrap(){return this._def.type}_parse(e){let{ctx:n}=this._processInputParams(e);return n.parsedType!==a.promise&&!1===n.common.async?(p(n,{code:s.invalid_type,expected:a.promise,received:n.parsedType}),y):g((n.parsedType===a.promise?n.data:Promise.resolve(n.data)).then(e=>this._def.type.parseAsync(e,{path:n.path,errorMap:n.common.contextualErrorMap})))}}em.create=(e,n)=>new em({type:e,typeName:ts.ZodPromise,...E(n)});class eg extends I{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ts.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:n,ctx:r}=this._processInputParams(e),i=this._def.effect||null,a={addIssue:e=>{p(r,e),e.fatal?n.abort():n.dirty()},get path(){return r.path}};if(a.addIssue=a.addIssue.bind(a),"preprocess"===i.type){let e=i.transform(r.data,a);if(r.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===n.value)return y;let i=await this._def.schema._parseAsync({data:e,path:r.path,parent:r});return"aborted"===i.status?y:"dirty"===i.status||"dirty"===n.value?m(i.value):i});{if("aborted"===n.value)return y;let i=this._def.schema._parseSync({data:e,path:r.path,parent:r});return"aborted"===i.status?y:"dirty"===i.status||"dirty"===n.value?m(i.value):i}}if("refinement"===i.type){let e=e=>{let n=i.refinement(e,a);if(r.common.async)return Promise.resolve(n);if(n instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?y:("dirty"===r.status&&n.dirty(),e(r.value).then(()=>({status:n.value,value:r.value}))));{let i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===i.status?y:("dirty"===i.status&&n.dirty(),e(i.value),{status:n.value,value:i.value})}}if("transform"===i.type){if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>w(e)?Promise.resolve(i.transform(e.value,a)).then(e=>({status:n.value,value:e})):e);{let e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!w(e))return e;let o=i.transform(e.value,a);if(o instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:o}}}tn.assertNever(i)}}eg.create=(e,n,r)=>new eg({schema:e,typeName:ts.ZodEffects,effect:n,...E(r)}),eg.createWithPreprocess=(e,n,r)=>new eg({schema:n,effect:{type:"preprocess",transform:e},typeName:ts.ZodEffects,...E(r)});class eb extends I{_parse(e){return this._getType(e)===a.undefined?g(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eb.create=(e,n)=>new eb({innerType:e,typeName:ts.ZodOptional,...E(n)});class ev extends I{_parse(e){return this._getType(e)===a.null?g(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ev.create=(e,n)=>new ev({innerType:e,typeName:ts.ZodNullable,...E(n)});class ew extends I{_parse(e){let{ctx:n}=this._processInputParams(e),r=n.data;return n.parsedType===a.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}ew.create=(e,n)=>new ew({innerType:e,typeName:ts.ZodDefault,defaultValue:"function"==typeof n.default?n.default:()=>n.default,...E(n)});class ex extends I{_parse(e){let{ctx:n}=this._processInputParams(e),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return x(i)?i.then(e=>
490({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new f(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===i.status?i.value:this._def.catchValue({get error(){return new f(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}ex.create=(e,n)=>new ex({innerType:e,typeName:ts.ZodCatch,catchValue:"function"==typeof n.catch?n.catch:()=>n.catch,...E(n)});class eT extends I{_parse(e){if(this._getType(e)!==a.nan){let n=this._getOrReturnCtx(e);return p(n,{code:s.invalid_type,expected:a.nan,received:n.parsedType}),y}return{status:"valid",value:e.data}}}eT.create=e=>new eT({typeName:ts.ZodNaN,...E(e)});let eC=Symbol("zod_brand");class eM extends I{_parse(e){let{ctx:n}=this._processInputParams(e),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class eA extends I{_parse(e){let{status:n,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?y:"dirty"===e.status?(n.dirty(),m(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})();{let e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?y:"dirty"===e.status?(n.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,n){return new eA({in:e,out:n,typeName:ts.ZodPipeline})}}class eE extends I{_parse(e){let n=this._def.innerType._parse(e),r=e=>(w(e)&&(e.value=Object.freeze(e.value)),e);return x(n)?n.then(e=>r(e)):r(n)}unwrap(){return this._def.innerType}}function eI(e,n={},r){return e?K.create().superRefine((i,a)=>{var o,s;if(!e(i)){let e="function"==typeof n?n(i):"string"==typeof n?{message:n}:n,f=null===(s=null!==(o=e.fatal)&&void 0!==o?o:r)||void 0===s||s;a.addIssue({code:"custom",..."string"==typeof e?{message:e}:e,fatal:f})}}):K.create()}eE.create=(e,n)=>new eE({innerType:e,typeName:ts.ZodReadonly,...E(n)});let eS={object:et.lazycreate};(tt=ts||(ts={})).ZodString="ZodString",tt.ZodNumber="ZodNumber",tt.ZodNaN="ZodNaN",tt.ZodBigInt="ZodBigInt",tt.ZodBoolean="ZodBoolean",tt.ZodDate="ZodDate",tt.ZodSymbol="ZodSymbol",tt.ZodUndefined="ZodUndefined",tt.ZodNull="ZodNull",tt.ZodAny="ZodAny",tt.ZodUnknown="ZodUnknown",tt.ZodNever="ZodNever",tt.ZodVoid="ZodVoid",tt.ZodArray="ZodArray",tt.ZodObject="ZodObject",tt.ZodUnion="ZodUnion",tt.ZodDiscriminatedUnion="ZodDiscriminatedUnion",tt.ZodIntersection="ZodIntersection",tt.ZodTuple="ZodTuple",tt.ZodRecord="ZodRecord",tt.ZodMap="ZodMap",tt.ZodSet="ZodSet",tt.ZodFunction="ZodFunction",tt.ZodLazy="ZodLazy",tt.ZodLiteral="ZodLiteral",tt.ZodEnum="ZodEnum",tt.ZodEffects="ZodEffects",tt.ZodNativeEnum="ZodNativeEnum",tt.ZodOptional="ZodOptional",tt.ZodNullable="ZodNullable",tt.ZodDefault="ZodDefault",tt.ZodCatch="ZodCatch",tt.ZodPromise="ZodPromise",tt.ZodBranded="ZodBranded",tt.ZodPipeline="ZodPipeline",tt.ZodReadonly="ZodReadonly";let ek=Z.create,eN=W.create,ej=eT.create,eD=H.create,e_=G.create,eO=q.create,eP=Y.create,eL=V.create,eR=Q.create,ez=K.create,eB=$.create,eU=J.create,eF=X.create,eZ=ee.create,eW=et.create,eH=et.strictCreate,eG=en.create,eq=ei.create,eY=ea.create,eV=eo.create,eQ=es.create,eK=ef.create,e$=el.create,eJ=eu.create,eX=ec.create,e0=ed.create,e1=eh.create,e6=ey.create,e5=em.create,e2=eg.create,e4=eb.create,e3=ev.create,e8=eg.createWithPreprocess,e9=eA.create;var e7,te,tt,tn,tr,ti,ta,to,ts,tf=Object.freeze({__proto__:null,defaultErrorMap:l,setErrorMap:function(e){u=e},getErrorMap:c,makeIssue:d,EMPTY_PATH:[],addIssueToContext:p,ParseStatus:h,INVALID:y,DIRTY:m,OK:g,isAborted:b,isDirty:v,isValid:w,isAsync:x,get util(){return tn},get objectUtil(){return tr},ZodParsedType:a,getParsedType:o,ZodType:I,datetimeRegex:F,ZodString:Z,ZodNumber:W,ZodBigInt:H,ZodBoolean:G,ZodDate:q,ZodSymbol:Y,ZodUndefined:V,ZodNull:Q,ZodAny:K,ZodUnknown:$,ZodNever:J,ZodVoid:X,ZodArray:ee,ZodObject:et,ZodUnion:en,ZodDiscriminatedUnion:ei,ZodIntersection:ea,ZodTuple:eo,ZodRecord:es,ZodMap:ef,ZodSet:el,ZodFunction:eu,ZodLazy:ec,ZodLiteral:ed,ZodEnum:eh,ZodNativeEnum:ey,ZodPromise:em,ZodEffects:eg,ZodTransformer:eg,ZodOptional:eb,ZodNullable:ev,ZodDefault:ew,ZodCatch:ex,ZodNaN:eT,BRAND:eC,ZodBranded:eM,ZodPipeline:eA,ZodReadonly:eE,custom:eI,Schema:I,ZodSchema:I,late:eS,get ZodFirstPartyTypeKind(){return ts},coerce:{string:e=>Z.create({...e,coerce:!0}),number:e=>W.create({...e,coerce:!0}),boolean:e=>G.create({...e,coerce:!0}),bigint:e=>H.create({...e,coerce:!0}),date:e=>q.create({...e,coerce:!0})},any:ez,array:eZ,bigint:eD,boolean:e_,date:eO,discriminatedUnion:eq,effect:e2,enum:e1,function:eJ,instanceof:(e,n={message:`Input not instance of ${e.name}`})=>eI(n=>n instanceof e,n),intersection:eY,lazy:eX,literal:e0,map:eK,nan:ej,nativeEnum:e6,never:eU,null:eR,nullable:e3,number:eN,object:eW,oboolean:()=>e_().optional(),onumber:()=>eN().optional(),optional:e4,ostring:()=>ek().optional(),pipeline:e9,preprocess:e8,promise:e5,record:eQ,set:e$,strictObject:eH,string:ek,symbol:eP,transformer:e2,tuple:eV,undefined:eL,union:eG,unknown:eB,void:eF,NEVER:y,ZodIssueCode:s,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:f})},65815:function(e){"use strict";e.exports=JSON.parse('[{"type":"constructor","inputs":[{"name":"_defaultAdmin","type":"address","internalType":"address"},{"name":"_trustedForwarder","type":"address","internalType":"address"},{"name":"_prevPublisher","type":"address","internalType":"contract IContractPublisher"}],"stateMutability":"nonpayable"},{"type":"function","name":"DEFAULT_ADMIN_ROLE","inputs":[],"outputs":[{"name":"","type":"bytes32","internalType":"bytes32"}],"stateMutability":"view"},{"type":"function","name":"getAllPublishedContracts","inputs":[{"name":"_publisher","type":"address","internalType":"address"}],"outputs":[{"name":"published","type":"tuple[]","internalType":"struct IContractPublisher.CustomContractInstance[]","components":[{"name":"contractId","type":"string","internalType":"string"},{"name":"publishTimestamp","type":"uint256","internalType":"uint256"},{"name":"publishMetadataUri","type":"string","internalType":"string"},{"name":"bytecodeHash","type":"bytes32","internalType":"bytes32"},{"name":"implementation","type":"address","internalType":"address"}]}],"stateMutability":"view"},{"type":"function","name":"getPublishedContract","inputs":[{"name":"_publisher","type":"address","internalType":"address"},{"name":"_contractId","type":"string","internalType":"string"}],"outputs":[{"name":"published","type":"tuple","internalType":"struct IContractPublisher.CustomContractInstance","components":[{"name":"contractId","type":"string","internalType":"string"},{"name":"publishTimestamp","type":"uint256","internalType":"uint256"},{"name":"publishMetadataUri","type":"string","internalType":"string"},{"name":"bytecodeHash","type":"bytes32","internalType":"bytes32"},{"name":"implementation","type":"address","internalType":"address"}]}],"stateMutability":"view"},{"type":"function","name":"getPublishedContractVersions","inputs":[{"name":"_publisher","type":"address","internalType":"address"},{"name":"_contractId","type":"string","internalType":"string"}],"outputs":[{"name":"published","type":"tuple[]","internalType":"struct IContractPublisher.CustomContractInstance[]","components":[{"name":"contractId","type":"string","internalType":"string"},{"name":"publishTimestamp","type":"uint256","internalType":"uint256"},{"name":"publishMetadataUri","type":"string","internalType":"string"},{"name":"bytecodeHash","type":"bytes32","internalType":"bytes32"},{"name":"implementation","type":"address","internalType":"address"}]}],"stateMutability":"view"},{"type":"function","name":"getPublishedUriFromCompilerUri","inputs":[{"name":"compilerMetadataUri","type":"string","internalType":"string"}],"outputs":[{"name":"publishedMetadataUris","type":"string[]","internalType":"string[]"}],"stateMutability":"view"},{"type":"function","name":"getPublisherProfileUri","inputs":[{"name":"publisher","type":"address","internalType":"address"}],"outputs":[{"name":"uri","type":"string","internalType":"string"}],"stateMutability":"view"},{"type":"function","name":"getRoleAdmin","inputs":[{"name":"role","type":"bytes32","internalType":"bytes32"}],"outputs":[{"name":"","type":"bytes32","internalType":"bytes32"}],"stateMutability":"view"},{"type":"function","name":"getRoleMember","inputs":[{"name":"role","type":"bytes32","internalType":"bytes32"},{"name":"index","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"getRoleMemberCount","inputs":[{"name":"role","type":"bytes32","internalType":"bytes32"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"}
490,{"type":"function","name":"grantRole","inputs":[{"name":"role","type":"bytes32","internalType":"bytes32"},{"name":"account","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"hasRole","inputs":[{"name":"role","type":"bytes32","internalType":"bytes32"},{"name":"account","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"isPaused","inputs":[],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"isTrustedForwarder","inputs":[{"name":"forwarder","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"multicall","inputs":[{"name":"data","type":"bytes[]","internalType":"bytes[]"}],"outputs":[{"name":"results","type":"bytes[]","internalType":"bytes[]"}],"stateMutability":"nonpayable"},{"type":"function","name":"prevPublisher","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IContractPublisher"}],"stateMutability":"view"},{"type":"function","name":"publishContract","inputs":[{"name":"_publisher","type":"address","internalType":"address"},{"name":"_contractId","type":"string","internalType":"string"},{"name":"_publishMetadataUri","type":"string","internalType":"string"},{"name":"_compilerMetadataUri","type":"string","internalType":"string"},{"name":"_bytecodeHash","type":"bytes32","internalType":"bytes32"},{"name":"_implementation","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"renounceRole","inputs":[{"name":"role","type":"bytes32","internalType":"bytes32"},{"name":"account","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"revokeRole","inputs":[{"name":"role","type":"bytes32","internalType":"bytes32"},{"name":"account","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"setPause","inputs":[{"name":"_pause","type":"bool","internalType":"bool"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"setPrevPublisher","inputs":[{"name":"_prevPublisher","type":"address","internalType":"contract IContractPublisher"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"setPublisherProfileUri","inputs":[{"name":"publisher","type":"address","internalType":"address"},{"name":"uri","type":"string","internalType":"string"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"supportsInterface","inputs":[{"name":"interfaceId","type":"bytes4","internalType":"bytes4"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"unpublishContract","inputs":[{"name":"_publisher","type":"address","internalType":"address"},{"name":"_contractId","type":"string","internalType":"string"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"event","name":"ContractPublished","inputs":[{"name":"operator","type":"address","indexed":true,"internalType":"address"},{"name":"publisher","type":"address","indexed":true,"internalType":"address"},{"name":"publishedContract","type":"tuple","indexed":false,"internalType":"struct IContractPublisher.CustomContractInstance","components":[{"name":"contractId","type":"string","internalType":"string"},{"name":"publishTimestamp","type":"uint256","internalType":"uint256"},{"name":"publishMetadataUri","type":"string","internalType":"string"},{"name":"bytecodeHash","type":"bytes32","internalType":"bytes32"},{"name":"implementation","type":"address","internalType":"address"}]}],"anonymous":false},{"type":"event","name":"ContractUnpublished","inputs":[{"name":"operator","type":"address","indexed":true,"internalType":"address"},{"name":"publisher","type":"address","indexed":true,"internalType":"address"},{"name":"contractId","type":"string","indexed":true,"internalType":"string"}],"anonymous":false},{"type":"event","name":"Paused","inputs":[{"name":"isPaused","type":"bool","indexed":false,"internalType":"bool"}],"anonymous":false},{"type":"event","name":"PublisherProfileUpdated","inputs":[{"name":"publisher","type":"address","indexed":true,"internalType":"address"},{"name":"prevURI","type":"string","indexed":false,"internalType":"string"},{"name":"newURI","type":"string","indexed":false,"internalType":"string"}],"anonymous":false},{"type":"event","name":"RoleAdminChanged","inputs":[{"name":"role","type":"bytes32","indexed":true,"internalType":"bytes32"},{"name":"previousAdminRole","type":"bytes32","indexed":true,"internalType":"bytes32"},{"name":"newAdminRole","type":"bytes32","indexed":true,"internalType":"bytes32"}],"anonymous":false},{"type":"event","name":"RoleGranted","inputs":[{"name":"role","type":"bytes32","indexed":true,"internalType":"bytes32"},{"name":"account","type":"address","indexed":true,"internalType":"address"},{"name":"sender","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"type":"event","name":"RoleRevoked","inputs":[{"name":"role","type":"bytes32","indexed":true,"internalType":"bytes32"},{"name":"account","type":"address","indexed":true,"internalType":"address"},{"name":"sender","type":"address","indexed":true,"internalType":"address"}],"anonymous":false}]')},8455:function(e){"use strict";e.exports=JSON.parse('[{"type":"function","name":"balanceOf","inputs":[{"name":"_owner","type":"address","internalType":"address"},{"name":"_id","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"balanceOfBatch","inputs":[{"name":"_owners","type":"address[]","internalType":"address[]"},{"name":"_ids","type":"uint256[]","internalType":"uint256[]"}],"outputs":[{"name":"","type":"uint256[]","internalType":"uint256[]"}],"stateMutability":"view"},{"type":"function","name":"isApprovedForAll","inputs":[{"name":"_owner","type":"address","internalType":"address"},{"name":"_operator","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"safeBatchTransferFrom","inputs":[{"name":"_from","type":"address","internalType":"address"},{"name":"_to","type":"address","internalType":"address"},{"name":"_ids","type":"uint256[]","internalType":"uint256[]"},{"name":"_values","type":"uint256[]","internalType":"uint256[]"},{"name":"_data","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"safeTransferFrom","inputs":[{"name":"_from","type":"address","internalType":"address"},{"name":"_to","type":"address","internalType":"address"},{"name":"_id","type":"uint256","internalType":"uint256"},{"name":"_value","type":"uint256","internalType":"uint256"},{"name":"_data","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"setApprovalForAll","inputs":[{"name":"_operator","type":"address","internalType":"address"},{"name":"_approved","type":"bool","internalType":"bool"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"event","name":"ApprovalForAll","inputs":[{"name":"_owner","type":"address","indexed":true,"internalType":"address"},{"name":"_operator","type":"address","indexed":true,"internalType":"address"},{"name":"_approved","type":"bool","indexed":false,"internalType":"bool"}],"anonymous":false},{"type":"event","name":"TransferBatch","inputs":[{"name":"_operator","type":"address","indexed":true,"internalType":"address"},{"name":"_from","type":"address","indexed":true,"internalType":"address"},{"name":"_to","type":"address","indexed":true,"internalType":"address"},{"name":"_ids","type":"uint256[]","indexed":false,"internalType":"uint256[]"},{"name":"_values","type":"uint256[]","indexed":false,"internalType":"uint256[]"}],"anonymous":false},{"type":"event","name":"TransferSingle","inputs":[{"name":"_operator","type":"address","indexed":true,"internalType":"address"},{"name":"_from","type":"address","indexed":true,"internalType":"address"},{"name":"_to","type":"address","indexed":true,"internalType":"address"},{"name":"_id","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"_value","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"URI","inputs":[{"name":"_value","type":"string","indexed":false,"internalType":"string"},{"name":"_id","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false}]')},50266:function(e){"use strict";e.exports=JSON.parse('[{"type":"function","name":"uri","inputs":[{"name":"_id","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"view"}]')},49242:function(e){"use strict";e.exports=JSON.parse('[{"type":"function","name":"allowance","inputs":[{"name":"owner","type":"address","internalType":"address"},{"name":"spender","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"approve","inputs":[{"name":"spender","type":"address","internalType":"address"},{"name":"value","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"nonpayable"},{"type":"function","name":"balanceOf","inputs":[{"name":"who","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"totalSupply","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"transfer","inputs":[{"name":"to","type":"address","internalType":"address"},{"name":"value","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"nonpayable"},{"type":"function","name":"transferFrom","inputs":[{"name":"from","type":"address","internalType":"address"},{"name":"to","type":"address","internalType":"address"},{"name":"value","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"nonpayable"},{"type":"event","name":"Approval","inputs":[{"name":"owner","type":"address","indexed":true,"internalType":"address"},{"name":"spender","type":"address","indexed":true,"internalType":"address"},{"name":"value","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"name":"from","type":"address","indexed":true,"internalType":"address"},{"name":"to","type":"address","indexed":true,"internalType":"address"},{"name":"value","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false}]')},82037:function(e){"use strict";e.exports=JSON.parse('[{"type":"function","name":"decimals","inputs":[],"outputs":[{"name":"","type":"uint8","internalType":"uint8"}],"stateMutability":"view"}
490,{"type":"function","name":"name","inputs":[],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"view"},{"type":"function","name":"symbol","inputs":[],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"view"}]')},70332:function(e){"use strict";e.exports=JSON.parse('[{"type":"function","name":"approve","inputs":[{"name":"to","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"balanceOf","inputs":[{"name":"owner","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"getApproved","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"isApprovedForAll","inputs":[{"name":"owner","type":"address","internalType":"address"},{"name":"operator","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"ownerOf","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"safeTransferFrom","inputs":[{"name":"from","type":"address","internalType":"address"},{"name":"to","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"safeTransferFrom","inputs":[{"name":"from","type":"address","internalType":"address"},{"name":"to","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"data","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"setApprovalForAll","inputs":[{"name":"operator","type":"address","internalType":"address"},{"name":"_approved","type":"bool","internalType":"bool"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"transferFrom","inputs":[{"name":"from","type":"address","internalType":"address"},{"name":"to","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"event","name":"Approval","inputs":[{"name":"owner","type":"address","indexed":true,"internalType":"address"},{"name":"approved","type":"address","indexed":true,"internalType":"address"},{"name":"tokenId","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"ApprovalForAll","inputs":[{"name":"owner","type":"address","indexed":true,"internalType":"address"},{"name":"operator","type":"address","indexed":true,"internalType":"address"},{"name":"approved","type":"bool","indexed":false,"internalType":"bool"}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"name":"from","type":"address","indexed":true,"internalType":"address"},{"name":"to","type":"address","indexed":true,"internalType":"address"},{"name":"tokenId","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false}]')},34161:function(e){"use strict";e.exports=JSON.parse('[{"type":"function","name":"name","inputs":[],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"view"},{"type":"function","name":"symbol","inputs":[],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"view"},{"type":"function","name":"tokenURI","inputs":[{"name":"_tokenId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"view"}]')},27761:function(e){"use strict";e.exports=JSON.parse('[{"type":"function","name":"canClaimRewards","inputs":[{"name":"_opener","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"claimRewards","inputs":[],"outputs":[{"name":"rewardUnits","type":"tuple[]","internalType":"struct ITokenBundle.Token[]","components":[{"name":"assetContract","type":"address","internalType":"address"},{"name":"tokenType","type":"uint8","internalType":"enum ITokenBundle.TokenType"},{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"totalAmount","type":"uint256","internalType":"uint256"}]}],"stateMutability":"nonpayable"},{"type":"function","name":"createPack","inputs":[{"name":"contents","type":"tuple[]","internalType":"struct ITokenBundle.Token[]","components":[{"name":"assetContract","type":"address","internalType":"address"},{"name":"tokenType","type":"uint8","internalType":"enum ITokenBundle.TokenType"},{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"totalAmount","type":"uint256","internalType":"uint256"}]},{"name":"numOfRewardUnits","type":"uint256[]","internalType":"uint256[]"},{"name":"packUri","type":"string","internalType":"string"},{"name":"openStartTimestamp","type":"uint128","internalType":"uint128"},{"name":"amountDistributedPerOpen","type":"uint128","internalType":"uint128"},{"name":"recipient","type":"address","internalType":"address"}],"outputs":[{"name":"packId","type":"uint256","internalType":"uint256"},{"name":"packTotalSupply","type":"uint256","internalType":"uint256"}],"stateMutability":"payable"},{"type":"function","name":"openPack","inputs":[{"name":"packId","type":"uint256","internalType":"uint256"},{"name":"amountToOpen","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"requestId","type":"uint256","internalType":"uint256"}],"stateMutability":"nonpayable"},{"type":"function","name":"openPackAndClaimRewards","inputs":[{"name":"_packId","type":"uint256","internalType":"uint256"},{"name":"_amountToOpen","type":"uint256","internalType":"uint256"},{"name":"_callBackGasLimit","type":"uint32","internalType":"uint32"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"nonpayable"},{"type":"event","name":"PackCreated","inputs":[{"name":"packId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"recipient","type":"address","indexed":false,"internalType":"address"},{"name":"totalPacksCreated","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"PackOpenRequested","inputs":[{"name":"opener","type":"address","indexed":true,"internalType":"address"},{"name":"packId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"amountToOpen","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"requestId","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"PackOpened","inputs":[{"name":"packId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"opener","type":"address","indexed":true,"internalType":"address"},{"name":"numOfPacksOpened","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"rewardUnitsDistributed","type":"tuple[]","indexed":false,"internalType":"struct ITokenBundle.Token[]","components":[{"name":"assetContract","type":"address","internalType":"address"},{"name":"tokenType","type":"uint8","internalType":"enum ITokenBundle.TokenType"},{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"totalAmount","type":"uint256","internalType":"uint256"}]}],"anonymous":false},{"type":"event","name":"PackRandomnessFulfilled","inputs":[{"name":"packId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"requestId","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false}]')},52378:function(e){"use strict";e.exports=JSON.parse('[{"type":"function","name":"OPERATOR_ROLE","inputs":[],"outputs":[{"name":"","type":"bytes32","internalType":"bytes32"}],"stateMutability":"view"},{"type":"function","name":"_msgData","inputs":[],"outputs":[{"name":"","type":"bytes","internalType":"bytes"}],"stateMutability":"view"},{"type":"function","name":"_msgSender","inputs":[],"outputs":[{"name":"sender","type":"address","internalType":"address"}],"stateMutability":"view"},{"type":"function","name":"add","inputs":[{"name":"_deployer","type":"address","internalType":"address"},{"name":"_deployment","type":"address","internalType":"address"},{"name":"_chainId","type":"uint256","internalType":"uint256"},{"name":"metadataUri","type":"string","internalType":"string"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"contractType","inputs":[],"outputs":[{"name":"","type":"bytes32","internalType":"bytes32"}],"stateMutability":"pure"},{"type":"function","name":"contractVersion","inputs":[],"outputs":[{"name":"","type":"uint8","internalType":"uint8"}],"stateMutability":"pure"},{"type":"function","name":"count","inputs":[{"name":"_deployer","type":"address","internalType":"address"}],"outputs":[{"name":"deploymentCount","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"type":"function","name":"getAll","inputs":[{"name":"_deployer","type":"address","internalType":"address"}],"outputs":[{"name":"allDeployments","type":"tuple[]","internalType":"struct ITWMultichainRegistry.Deployment[]","components":[{"name":"deploymentAddress","type":"address","internalType":"address"},{"name":"chainId","type":"uint256","internalType":"uint256"},{"name":"metadataURI","type":"string","internalType":"string"}]}],"stateMutability":"view"},{"type":"function","name":"getMetadataUri","inputs":[{"name":"_chainId","type":"uint256","internalType":"uint256"},{"name":"_deployment","type":"address","internalType":"address"}],"outputs":[{"name":"metadataUri","type":"string","internalType":"string"}],"stateMutability":"view"},{"type":"function","name":"remove","inputs":[{"name":"_deployer","type":"address","internalType":"address"},{"name":"_deployment","type":"address","internalType":"address"},{"name":"_chainId","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"event","name":"Added","inputs":[{"name":"deployer","type":"address","indexed":true,"internalType":"address"},{"name":"deployment","type":"address","indexed":true,"internalType":"address"},{"name":"chainId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"metadataUri","type":"string","indexed":false,"internalType":"string"}],"anonymous":false},{"type":"event","name":"Deleted","inputs":[{"name":"deployer","type":"address","indexed":true,"internalType":"address"},{"name":"deployment","type":"address","indexed":true,"internalType":"address"},{"name":"chainId","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false}]')}},function(e){var n=function(n){return e(e.s=n)};e.O(0,[49774,40179],function(){return n(91118),n(58194)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.