@dcl/auth-site 5.2.0 → 5.2.1-34892562881.commit-539527b
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/{ConstantsUtil-DFxCNSPv.js → ConstantsUtil-RKRKh35J.js} +1 -1
- package/assets/{ContentfulRichText-D0pNOmAc.js → ContentfulRichText-DI4Kvlph.js} +1 -1
- package/assets/{ExchangeController-euPkJFY0.js → ExchangeController-BYeMwcOw.js} +1 -1
- package/assets/{HelpersUtil-AeGl2Vq_.js → HelpersUtil-aAc1OEjV.js} +1 -1
- package/assets/LoginPage--6SLKM4n.js +1 -0
- package/assets/{NetworkUtil-wC34hTQj.js → NetworkUtil-b0ox1saC.js} +1 -1
- package/assets/{SwapController-CKBy5ftA.js → SwapController-BtTVq31d.js} +1 -1
- package/assets/{W3MFrameProviderSingleton-Dso8xpvM.js → W3MFrameProviderSingleton-CIiCpPR2.js} +3 -3
- package/assets/{biconomy-BZ9Tq1B6.js → biconomy-BWAMNZKT.js} +1 -1
- package/assets/{browser-BB9eWbsk.js → browser-oBbhNYjx.js} +1 -1
- package/assets/browser-ponyfill-X0L4yPCW.js +1 -0
- package/assets/{ccip-DgIWwCg4.js → ccip-CjtQR6TY.js} +1 -1
- package/assets/{ccip-Bsik9cFs.js → ccip-FdmCTeaV.js} +1 -1
- package/assets/{chains-D0cUAMJ4.js → chains-BnduCUsK.js} +1 -1
- package/assets/{common-BgNRh1i3.js → common-BYGvDG9W.js} +1 -1
- package/assets/{controller-DNa7BVaj.js → controller-DnmPmuF4.js} +2 -2
- package/assets/{data-capture-D_QXG1bA.js → data-capture-DB6Zochw.js} +1 -1
- package/assets/{email-CQpIG2gQ.js → email-DiZhB-6c.js} +1 -1
- package/assets/{embedded-wallet-6lBTHLie.js → embedded-wallet-CFW9lE0R.js} +1 -1
- package/assets/{engine-BkauXM5y.js → engine-Dmnsa2Lw.js} +1 -1
- package/assets/{estimate-l1-fee-3b8tG9OM.js → estimate-l1-fee-DaJZnV0a.js} +1 -1
- package/assets/{ethereum-Z6cVYvwp.js → ethereum-BTRQ55FN.js} +1 -1
- package/assets/{extractIPFS--x6OY4oX.js → extractIPFS-C7jp4V4V.js} +1 -1
- package/assets/{features-CV6TXzdF.js → features-Cqk7ozIB.js} +1 -1
- package/assets/{fetchTokenMetadata-CyE7HbXy.js → fetchTokenMetadata-CIGbGLoZ.js} +1 -1
- package/assets/{fortmatic-BgK0KIhx.js → fortmatic-CVkNUUlS.js} +1 -1
- package/assets/{get-ecosystem-wallet-info-CNByX5fH.js → get-ecosystem-wallet-info-dDSKMZJ6.js} +1 -1
- package/assets/{getBalance-BbsEvoEO.js → getBalance-ihk0Mlkx.js} +1 -1
- package/assets/{getInstalledModules-DdoFrPsb.js → getInstalledModules-Ctypcmbz.js} +1 -1
- package/assets/{getNFT-DnoxNRCe.js → getNFT-CxbCIuMh.js} +2 -2
- package/assets/{getNFT-DlqEXBQ7.js → getNFT-D32qT-z5.js} +1 -1
- package/assets/{if-defined-CTr0ZIzf.js → if-defined-Dvkl8Ar_.js} +1 -1
- package/assets/{in-app-wcNq1eNf.js → in-app-AQ-bPOP_.js} +2 -2
- package/assets/{in-app-wallet-calls-C6sqsO9_.js → in-app-wallet-calls-C7l9L7OZ.js} +1 -1
- package/assets/{index-DjHBRjtf.js → index-B4qGGva0.js} +1 -1
- package/assets/{index-DNsCO_4C.js → index-B8-6Dqcc.js} +1 -1
- package/assets/{index-DX2Ei5AB.js → index-BRYdTzYy.js} +1 -1
- package/assets/{index-D29kVXWP.js → index-BRwISQv4.js} +1 -1
- package/assets/{index-DyLKPi74.js → index-BaNrjQhH.js} +1 -1
- package/assets/{index-BqGHYY_I.js → index-BcREN0uK.js} +1 -1
- package/assets/{index-B9v20BNR.js → index-C1IAuncV.js} +1 -1
- package/assets/{index-BSP32Qa5.js → index-C2CN57zF.js} +1 -1
- package/assets/{index-C-DNaq6q.js → index-CBZ_FxDe.js} +1 -1
- package/assets/{index-By61clIr.js → index-CFgcInR-.js} +2 -2
- package/assets/{index-q73pLPDy.js → index-CFkDGBGY.js} +1 -1
- package/assets/{index-USWU57dO.js → index-CHAjOCVJ.js} +1 -1
- package/assets/{index-nvfrKx-v.js → index-CLHWSObq.js} +1 -1
- package/assets/{index-CL6-mjyx.js → index-CQCLv8Yq.js} +1 -1
- package/assets/{index-BQMsvey4.js → index-CWG632HR.js} +1 -1
- package/assets/index-CYZCe_Ue.css +1 -0
- package/assets/{index-DO5btSZp.js → index-ChYYLOHS.js} +1 -1
- package/assets/{index-BCONVKsa.js → index-CmVQnfdl.js} +1 -1
- package/assets/{index-BrQpoPDr.js → index-CqXab4N7.js} +1 -1
- package/assets/{index-wNYjG5wc.js → index-CvYVy6tx.js} +1 -1
- package/assets/{index-CggZa2U-.js → index-D-mIK_W5.js} +1 -1
- package/assets/{index-BjI9SUoI.js → index-D4UpXeWh.js} +1 -1
- package/assets/{index-DMbWNTHz.js → index-DBNezQOI.js} +1 -1
- package/assets/{index-BcYR51a9.js → index-DCsIDp_B.js} +1 -1
- package/assets/{index-Bbdlndvn.js → index-DEC5wS5B.js} +20 -20
- package/assets/{index-LpAPqH9S.js → index-DIg4R8ZL.js} +1 -1
- package/assets/{index-CUIjTY8W.js → index-DIoUCsup.js} +1 -1
- package/assets/{index-BK6Wq6Ez.js → index-DPdzUlRv.js} +1 -1
- package/assets/{index-Bk6w9JIH.js → index-DQQ1pHo2.js} +2 -2
- package/assets/{index-CXIaAcQA.js → index-DVjkjyk7.js} +1 -1
- package/assets/{index-D01NAAnF.js → index-D_Xs3V1v.js} +1 -1
- package/assets/{index-CgeJQTxA.js → index-DeORQI-T.js} +1 -1
- package/assets/{index-C2wGZOOd.js → index-Di4FITqE.js} +1 -1
- package/assets/{index-CiBif7St.js → index-Djk5Nukm.js} +1 -1
- package/assets/{index-DIRRMfEm.js → index-DnZv8OKn.js} +1 -1
- package/assets/{index-BTtdOCee.js → index-Dnz4P83F.js} +1 -1
- package/assets/{index-DsollSrI.js → index-DtBLc8oZ.js} +1 -1
- package/assets/{index-B9NZalmf.js → index-EsvAm_cF.js} +3 -3
- package/assets/{index-Cqgb6chL.js → index-G9df6-pV.js} +1 -1
- package/assets/{index-DvSpnMjV.js → index-N51g2sz5.js} +1 -1
- package/assets/{index-uum-wWYt.js → index-WQP0pMBK.js} +1 -1
- package/assets/{index-Co-CKmTE.js → index-az1sZbSh.js} +1 -1
- package/assets/{index-ZyMRkw_r.js → index-iELfa5tW.js} +1 -1
- package/assets/{index-BOnp-cE2.js → index-jKMvOo_6.js} +3 -3
- package/assets/{index-DNSKKzYL.js → index-rmxlkHbd.js} +1 -1
- package/assets/{index-BiwS2nUt.js → index-sKL8bC2g.js} +1 -1
- package/assets/{index-DF1ACFPU.js → index-u_SlvcW1.js} +3 -3
- package/assets/{index-2bp0DOnN.js → index-v217VnLo.js} +1 -1
- package/assets/{index-CAuIiFnT.js → index-ytes4Bz2.js} +1 -1
- package/assets/{index.es-B0T4lOrh.js → index.es-Cc9Zo8uL.js} +1 -1
- package/assets/{index.es-DtoWzcqq.js → index.es-D-f-LrbX.js} +1 -1
- package/assets/{linkAccount-C6_2Bx3l.js → linkAccount-CElRYaCQ.js} +1 -1
- package/assets/{native-hUujUeRl.js → native-CaVw3Rza.js} +1 -1
- package/assets/{networks-D8X6FMGC.js → networks-BFbiVJz-.js} +3 -3
- package/assets/{onramp-ibItJCel.js → onramp-a3e71YSd.js} +1 -1
- package/assets/{openzeppelin-Cp6e0m9D.js → openzeppelin-CaPgOuTO.js} +1 -1
- package/assets/{ownerOf-42o5Yaoq.js → ownerOf-6UfFJH9_.js} +1 -1
- package/assets/{parseNft-CUZ0GXuz.js → parseNft-C3zLsu0o.js} +2 -2
- package/assets/{pay-with-exchange-DFIiUcfY.js → pay-with-exchange-Cp_NIP2C.js} +1 -1
- package/assets/{qr-overlay-CSK5_TOo.js → qr-overlay-CZUSdEZE.js} +3 -3
- package/assets/{receive-D9d5ic2p.js → receive-4ymDhYtQ.js} +1 -1
- package/assets/{ref-YxfM3U8m.js → ref-6L9KgGSq.js} +1 -1
- package/assets/{resolveImplementation-B4DvbfKC.js → resolveImplementation-C4xF81Ww.js} +1 -1
- package/assets/{secp256k1-DfcMpxEB.js → secp256k1-C0vs3mKj.js} +1 -1
- package/assets/{send-BOS_LTGc.js → send-DdbU9hTz.js} +1 -1
- package/assets/{send-eip712-transaction-wa3Hb6CC.js → send-eip712-transaction-Dh8otdl1.js} +1 -1
- package/assets/{send-gasless-transaction-CJs2_hIR.js → send-gasless-transaction-BifSuUwN.js} +2 -2
- package/assets/{session-proposal-D5GCRbwj.js → session-proposal-CC7G0PX9.js} +1 -1
- package/assets/{session-request-D2oE3V0u.js → session-request-BUz3LKsp.js} +2 -2
- package/assets/{socials-NyAtE2Uw.js → socials-CeUPwhIP.js} +1 -1
- package/assets/{swaps-BWb02-Eb.js → swaps-CiRLlVdj.js} +1 -1
- package/assets/{thirdweb-BN-o7KJZ.js → thirdweb-DPyPz8hM.js} +5 -5
- package/assets/{totalSupply-BYDme-xA.js → totalSupply-Dqc9Mt3j.js} +1 -1
- package/assets/{transactions-Bh0Onewc.js → transactions-DdOeNmRF.js} +1 -1
- package/assets/{ui-SU3DzdVu.js → ui-ClNwMfQM.js} +5 -5
- package/assets/{vendor-CfKmFCYk.js → vendor-D91ZcsI8.js} +1 -1
- package/assets/{w3m-modal-CYz63yiI.js → w3m-modal-fS9wH2Pb.js} +1 -1
- package/assets/{wallets-DXYXqmTJ.js → wallets-HjbsHorC.js} +4 -4
- package/assets/{web-connector-DDhuQBbJ.js → web-connector-BMJtDugH.js} +3 -3
- package/index.html +5 -5
- package/package.json +3 -3
- package/assets/LoginPage-BeFzwGyF.js +0 -1
- package/assets/browser-ponyfill-Dw5gFBCB.js +0 -1
- package/assets/index-DUxLCGth.css +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as X,a9 as ge,aa as we,_ as Ce,ab as Te,ac as Ne}from"./thirdweb-BN-o7KJZ.js";const Oe="0x70a08231",Se=[{name:"_address",type:"address"}],Ae=[{type:"uint256"}];async function Ze(r){return X({contract:r.contract,method:[Oe,Se,Ae],params:[r.address]})}var g;(function(r){r.assertEqual=a=>{};function e(a){}r.assertIs=e;function t(a){throw new Error}r.assertNever=t,r.arrayToEnum=a=>{const n={};for(const i of a)n[i]=i;return n},r.getValidEnumValues=a=>{const n=r.objectKeys(a).filter(d=>typeof a[a[d]]!="number"),i={};for(const d of n)i[d]=a[d];return r.objectValues(i)},r.objectValues=a=>r.objectKeys(a).map(function(n){return a[n]}),r.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const n=[];for(const i in a)Object.prototype.hasOwnProperty.call(a,i)&&n.push(i);return n},r.find=(a,n)=>{for(const i of a)if(n(i))return i},r.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&Number.isFinite(a)&&Math.floor(a)===a;function s(a,n=" | "){return a.map(i=>typeof i=="string"?`'${i}'`:i).join(n)}r.joinValues=s,r.jsonStringifyReplacer=(a,n)=>typeof n=="bigint"?n.toString():n})(g||(g={}));var ee;(function(r){r.mergeShapes=(e,t)=>({...e,...t})})(ee||(ee={}));const u=g.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),T=r=>{switch(typeof r){case"undefined":return u.undefined;case"string":return u.string;case"number":return Number.isNaN(r)?u.nan:u.number;case"boolean":return u.boolean;case"function":return u.function;case"bigint":return u.bigint;case"symbol":return u.symbol;case"object":return Array.isArray(r)?u.array:r===null?u.null:r.then&&typeof r.then=="function"&&r.catch&&typeof r.catch=="function"?u.promise:typeof Map<"u"&&r instanceof Map?u.map:typeof Set<"u"&&r instanceof Set?u.set:typeof Date<"u"&&r instanceof Date?u.date:u.object;default:return u.unknown}},c=g.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 C extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){const t=e||function(n){return n.message},s={_errors:[]},a=n=>{for(const i of n.issues)if(i.code==="invalid_union")i.unionErrors.map(a);else if(i.code==="invalid_return_type")a(i.returnTypeError);else if(i.code==="invalid_arguments")a(i.argumentsError);else if(i.path.length===0)s._errors.push(t(i));else{let d=s,h=0;for(;h<i.path.length;){const f=i.path[h];h===i.path.length-1?(d[f]=d[f]||{_errors:[]},d[f]._errors.push(t(i))):d[f]=d[f]||{_errors:[]},d=d[f],h++}}};return a(this),s}static assert(e){if(!(e instanceof C))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,g.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=t=>t.message){const t={},s=[];for(const a of this.issues)if(a.path.length>0){const n=a.path[0];t[n]=t[n]||[],t[n].push(e(a))}else s.push(e(a));return{formErrors:s,fieldErrors:t}}get formErrors(){return this.flatten()}}C.create=r=>new C(r);const Y=(r,e)=>{let t;switch(r.code){case c.invalid_type:r.received===u.undefined?t="Required":t=`Expected ${r.expected}, received ${r.received}`;break;case c.invalid_literal:t=`Invalid literal value, expected ${JSON.stringify(r.expected,g.jsonStringifyReplacer)}`;break;case c.unrecognized_keys:t=`Unrecognized key(s) in object: ${g.joinValues(r.keys,", ")}`;break;case c.invalid_union:t="Invalid input";break;case c.invalid_union_discriminator:t=`Invalid discriminator value. Expected ${g.joinValues(r.options)}`;break;case c.invalid_enum_value:t=`Invalid enum value. Expected ${g.joinValues(r.options)}, received '${r.received}'`;break;case c.invalid_arguments:t="Invalid function arguments";break;case c.invalid_return_type:t="Invalid function return type";break;case c.invalid_date:t="Invalid date";break;case c.invalid_string:typeof r.validation=="object"?"includes"in r.validation?(t=`Invalid input: must include "${r.validation.includes}"`,typeof r.validation.position=="number"&&(t=`${t} at one or more positions greater than or equal to ${r.validation.position}`)):"startsWith"in r.validation?t=`Invalid input: must start with "${r.validation.startsWith}"`:"endsWith"in r.validation?t=`Invalid input: must end with "${r.validation.endsWith}"`:g.assertNever(r.validation):r.validation!=="regex"?t=`Invalid ${r.validation}`:t="Invalid";break;case c.too_small:r.type==="array"?t=`Array must contain ${r.exact?"exactly":r.inclusive?"at least":"more than"} ${r.minimum} element(s)`:r.type==="string"?t=`String must contain ${r.exact?"exactly":r.inclusive?"at least":"over"} ${r.minimum} character(s)`:r.type==="number"?t=`Number must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${r.minimum}`:r.type==="bigint"?t=`Number must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${r.minimum}`:r.type==="date"?t=`Date must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(r.minimum))}`:t="Invalid input";break;case c.too_big:r.type==="array"?t=`Array must contain ${r.exact?"exactly":r.inclusive?"at most":"less than"} ${r.maximum} element(s)`:r.type==="string"?t=`String must contain ${r.exact?"exactly":r.inclusive?"at most":"under"} ${r.maximum} character(s)`:r.type==="number"?t=`Number must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="bigint"?t=`BigInt must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="date"?t=`Date must be ${r.exact?"exactly":r.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(r.maximum))}`:t="Invalid input";break;case c.custom:t="Invalid input";break;case c.invalid_intersection_types:t="Intersection results could not be merged";break;case c.not_multiple_of:t=`Number must be a multiple of ${r.multipleOf}`;break;case c.not_finite:t="Number must be finite";break;default:t=e.defaultError,g.assertNever(r)}return{message:t}};let Re=Y;function Ie(){return Re}const Ee=r=>{const{data:e,path:t,errorMaps:s,issueData:a}=r,n=[...t,...a.path||[]],i={...a,path:n};if(a.message!==void 0)return{...a,path:n,message:a.message};let d="";const h=s.filter(f=>!!f).slice().reverse();for(const f of h)d=f(i,{data:e,defaultError:d}).message;return{...a,path:n,message:d}};function o(r,e){const t=Ie(),s=Ee({issueData:e,data:r.data,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,t,t===Y?void 0:Y].filter(a=>!!a)});r.common.issues.push(s)}class k{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,t){const s=[];for(const a of t){if(a.status==="aborted")return m;a.status==="dirty"&&e.dirty(),s.push(a.value)}return{status:e.value,value:s}}static async mergeObjectAsync(e,t){const s=[];for(const a of t){const n=await a.key,i=await a.value;s.push({key:n,value:i})}return k.mergeObjectSync(e,s)}static mergeObjectSync(e,t){const s={};for(const a of t){const{key:n,value:i}=a;if(n.status==="aborted"||i.status==="aborted")return m;n.status==="dirty"&&e.dirty(),i.status==="dirty"&&e.dirty(),n.value!=="__proto__"&&(typeof i.value<"u"||a.alwaysSet)&&(s[n.value]=i.value)}return{status:e.value,value:s}}}const m=Object.freeze({status:"aborted"}),M=r=>({status:"dirty",value:r}),b=r=>({status:"valid",value:r}),te=r=>r.status==="aborted",re=r=>r.status==="dirty",I=r=>r.status==="valid",D=r=>typeof Promise<"u"&&r instanceof Promise;var l;(function(r){r.errToObj=e=>typeof e=="string"?{message:e}:e||{},r.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(l||(l={}));class S{constructor(e,t,s,a){this._cachedPath=[],this.parent=e,this.data=t,this._path=s,this._key=a}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const se=(r,e)=>{if(I(e))return{success:!0,data:e.value};if(!r.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new C(r.common.issues);return this._error=t,this._error}}};function _(r){if(!r)return{};const{errorMap:e,invalid_type_error:t,required_error:s,description:a}=r;if(e&&(t||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:a}:{errorMap:(i,d)=>{const{message:h}=r;return i.code==="invalid_enum_value"?{message:h??d.defaultError}:typeof d.data>"u"?{message:h??s??d.defaultError}:i.code!=="invalid_type"?{message:d.defaultError}:{message:h??t??d.defaultError}},description:a}}class y{get description(){return this._def.description}_getType(e){return T(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:T(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new k,ctx:{common:e.parent.common,data:e.data,parsedType:T(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(D(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const s=this.safeParse(e,t);if(s.success)return s.data;throw s.error}safeParse(e,t){const s={common:{issues:[],async:(t==null?void 0:t.async)??!1,contextualErrorMap:t==null?void 0:t.errorMap},path:(t==null?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:T(e)},a=this._parseSync({data:e,path:s.path,parent:s});return se(s,a)}"~validate"(e){var s,a;const t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:T(e)};if(!this["~standard"].async)try{const n=this._parseSync({data:e,path:[],parent:t});return I(n)?{value:n.value}:{issues:t.common.issues}}catch(n){(a=(s=n==null?void 0:n.message)==null?void 0:s.toLowerCase())!=null&&a.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(n=>I(n)?{value:n.value}:{issues:t.common.issues})}async parseAsync(e,t){const s=await this.safeParseAsync(e,t);if(s.success)return s.data;throw s.error}async safeParseAsync(e,t){const s={common:{issues:[],contextualErrorMap:t==null?void 0:t.errorMap,async:!0},path:(t==null?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:T(e)},a=this._parse({data:e,path:s.path,parent:s}),n=await(D(a)?a:Promise.resolve(a));return se(s,n)}refine(e,t){const s=a=>typeof t=="string"||typeof t>"u"?{message:t}:typeof t=="function"?t(a):t;return this._refinement((a,n)=>{const i=e(a),d=()=>n.addIssue({code:c.custom,...s(a)});return typeof Promise<"u"&&i instanceof Promise?i.then(h=>h?!0:(d(),!1)):i?!0:(d(),!1)})}refinement(e,t){return this._refinement((s,a)=>e(s)?!0:(a.addIssue(typeof t=="function"?t(s,a):t),!1))}_refinement(e){return new $({schema:this,typeName:p.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}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),this["~standard"]={version:1,vendor:"zod",validate:t=>this["~validate"](t)}}optional(){return O.create(this,this._def)}nullable(){return V.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return w.create(this)}promise(){return W.create(this,this._def)}or(e){return F.create([this,e],this._def)}and(e){return B.create(this,e,this._def)}transform(e){return new $({..._(this._def),schema:this,typeName:p.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t=typeof e=="function"?e:()=>e;return new J({..._(this._def),innerType:this,defaultValue:t,typeName:p.ZodDefault})}brand(){return new rt({typeName:p.ZodBranded,type:this,..._(this._def)})}catch(e){const t=typeof e=="function"?e:()=>e;return new G({..._(this._def),innerType:this,catchValue:t,typeName:p.ZodCatch})}describe(e){const t=this.constructor;return new t({...this._def,description:e})}pipe(e){return K.create(this,e)}readonly(){return Q.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const je=/^c[^\s-]{8,}$/i,$e=/^[0-9a-z]+$/,Ve=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Pe=/^[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,Me=/^[a-z0-9_-]{21}$/i,Le=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,ze=/^[-+]?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)?)??$/,De=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Ue="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let q;const Fe=/^(?:(?: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])$/,Be=/^(?:(?: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])\/(3[0-2]|[12]?[0-9])$/,We=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,qe=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Ye=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,He=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,ve="((\\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])))",Je=new RegExp(`^${ve}$`);function xe(r){let e="[0-5]\\d";r.precision?e=`${e}\\.\\d{${r.precision}}`:r.precision==null&&(e=`${e}(\\.\\d+)?`);const t=r.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${t}`}function Ge(r){return new RegExp(`^${xe(r)}$`)}function Qe(r){let e=`${ve}T${xe(r)}`;const t=[];return t.push(r.local?"Z?":"Z"),r.offset&&t.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${t.join("|")})`,new RegExp(`^${e}$`)}function Xe(r,e){return!!((e==="v4"||!e)&&Fe.test(r)||(e==="v6"||!e)&&We.test(r))}function Ke(r,e){if(!Le.test(r))return!1;try{const[t]=r.split(".");if(!t)return!1;const s=t.replace(/-/g,"+").replace(/_/g,"/").padEnd(t.length+(4-t.length%4)%4,"="),a=JSON.parse(atob(s));return!(typeof a!="object"||a===null||"typ"in a&&(a==null?void 0:a.typ)!=="JWT"||!a.alg||e&&a.alg!==e)}catch{return!1}}function et(r,e){return!!((e==="v4"||!e)&&Be.test(r)||(e==="v6"||!e)&&qe.test(r))}class N extends y{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==u.string){const n=this._getOrReturnCtx(e);return o(n,{code:c.invalid_type,expected:u.string,received:n.parsedType}),m}const s=new k;let a;for(const n of this._def.checks)if(n.kind==="min")e.data.length<n.value&&(a=this._getOrReturnCtx(e,a),o(a,{code:c.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),s.dirty());else if(n.kind==="max")e.data.length>n.value&&(a=this._getOrReturnCtx(e,a),o(a,{code:c.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),s.dirty());else if(n.kind==="length"){const i=e.data.length>n.value,d=e.data.length<n.value;(i||d)&&(a=this._getOrReturnCtx(e,a),i?o(a,{code:c.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}):d&&o(a,{code:c.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}),s.dirty())}else if(n.kind==="email")De.test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"email",code:c.invalid_string,message:n.message}),s.dirty());else if(n.kind==="emoji")q||(q=new RegExp(Ue,"u")),q.test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"emoji",code:c.invalid_string,message:n.message}),s.dirty());else if(n.kind==="uuid")Pe.test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"uuid",code:c.invalid_string,message:n.message}),s.dirty());else if(n.kind==="nanoid")Me.test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"nanoid",code:c.invalid_string,message:n.message}),s.dirty());else if(n.kind==="cuid")je.test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"cuid",code:c.invalid_string,message:n.message}),s.dirty());else if(n.kind==="cuid2")$e.test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"cuid2",code:c.invalid_string,message:n.message}),s.dirty());else if(n.kind==="ulid")Ve.test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"ulid",code:c.invalid_string,message:n.message}),s.dirty());else if(n.kind==="url")try{new URL(e.data)}catch{a=this._getOrReturnCtx(e,a),o(a,{validation:"url",code:c.invalid_string,message:n.message}),s.dirty()}else n.kind==="regex"?(n.regex.lastIndex=0,n.regex.test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"regex",code:c.invalid_string,message:n.message}),s.dirty())):n.kind==="trim"?e.data=e.data.trim():n.kind==="includes"?e.data.includes(n.value,n.position)||(a=this._getOrReturnCtx(e,a),o(a,{code:c.invalid_string,validation:{includes:n.value,position:n.position},message:n.message}),s.dirty()):n.kind==="toLowerCase"?e.data=e.data.toLowerCase():n.kind==="toUpperCase"?e.data=e.data.toUpperCase():n.kind==="startsWith"?e.data.startsWith(n.value)||(a=this._getOrReturnCtx(e,a),o(a,{code:c.invalid_string,validation:{startsWith:n.value},message:n.message}),s.dirty()):n.kind==="endsWith"?e.data.endsWith(n.value)||(a=this._getOrReturnCtx(e,a),o(a,{code:c.invalid_string,validation:{endsWith:n.value},message:n.message}),s.dirty()):n.kind==="datetime"?Qe(n).test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{code:c.invalid_string,validation:"datetime",message:n.message}),s.dirty()):n.kind==="date"?Je.test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{code:c.invalid_string,validation:"date",message:n.message}),s.dirty()):n.kind==="time"?Ge(n).test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{code:c.invalid_string,validation:"time",message:n.message}),s.dirty()):n.kind==="duration"?ze.test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"duration",code:c.invalid_string,message:n.message}),s.dirty()):n.kind==="ip"?Xe(e.data,n.version)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"ip",code:c.invalid_string,message:n.message}),s.dirty()):n.kind==="jwt"?Ke(e.data,n.alg)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"jwt",code:c.invalid_string,message:n.message}),s.dirty()):n.kind==="cidr"?et(e.data,n.version)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"cidr",code:c.invalid_string,message:n.message}),s.dirty()):n.kind==="base64"?Ye.test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"base64",code:c.invalid_string,message:n.message}),s.dirty()):n.kind==="base64url"?He.test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"base64url",code:c.invalid_string,message:n.message}),s.dirty()):g.assertNever(n);return{status:s.value,value:e.data}}_regex(e,t,s){return this.refinement(a=>e.test(a),{validation:t,code:c.invalid_string,...l.errToObj(s)})}_addCheck(e){return new N({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...l.errToObj(e)})}url(e){return this._addCheck({kind:"url",...l.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...l.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...l.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...l.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...l.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...l.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...l.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...l.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...l.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...l.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...l.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...l.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(e==null?void 0:e.offset)??!1,local:(e==null?void 0:e.local)??!1,...l.errToObj(e==null?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,...l.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...l.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...l.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t==null?void 0:t.position,...l.errToObj(t==null?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...l.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...l.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...l.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...l.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...l.errToObj(t)})}nonempty(e){return this.min(1,l.errToObj(e))}trim(){return new N({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new N({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new N({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}}N.create=r=>new N({checks:[],typeName:p.ZodString,coerce:(r==null?void 0:r.coerce)??!1,..._(r)});function tt(r,e){const t=(r.toString().split(".")[1]||"").length,s=(e.toString().split(".")[1]||"").length,a=t>s?t:s,n=Number.parseInt(r.toFixed(a).replace(".","")),i=Number.parseInt(e.toFixed(a).replace(".",""));return n%i/10**a}class E extends y{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==u.number){const n=this._getOrReturnCtx(e);return o(n,{code:c.invalid_type,expected:u.number,received:n.parsedType}),m}let s;const a=new k;for(const n of this._def.checks)n.kind==="int"?g.isInteger(e.data)||(s=this._getOrReturnCtx(e,s),o(s,{code:c.invalid_type,expected:"integer",received:"float",message:n.message}),a.dirty()):n.kind==="min"?(n.inclusive?e.data<n.value:e.data<=n.value)&&(s=this._getOrReturnCtx(e,s),o(s,{code:c.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),a.dirty()):n.kind==="max"?(n.inclusive?e.data>n.value:e.data>=n.value)&&(s=this._getOrReturnCtx(e,s),o(s,{code:c.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),a.dirty()):n.kind==="multipleOf"?tt(e.data,n.value)!==0&&(s=this._getOrReturnCtx(e,s),o(s,{code:c.not_multiple_of,multipleOf:n.value,message:n.message}),a.dirty()):n.kind==="finite"?Number.isFinite(e.data)||(s=this._getOrReturnCtx(e,s),o(s,{code:c.not_finite,message:n.message}),a.dirty()):g.assertNever(n);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,l.toString(t))}gt(e,t){return this.setLimit("min",e,!1,l.toString(t))}lte(e,t){return this.setLimit("max",e,!0,l.toString(t))}lt(e,t){return this.setLimit("max",e,!1,l.toString(t))}setLimit(e,t,s,a){return new E({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:s,message:l.toString(a)}]})}_addCheck(e){return new E({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:l.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:l.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:l.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:l.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:l.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:l.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:l.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:l.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:l.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&g.isInteger(e.value))}get isFinite(){let e=null,t=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(t===null||s.value>t)&&(t=s.value):s.kind==="max"&&(e===null||s.value<e)&&(e=s.value)}return Number.isFinite(t)&&Number.isFinite(e)}}E.create=r=>new E({checks:[],typeName:p.ZodNumber,coerce:(r==null?void 0:r.coerce)||!1,..._(r)});class L extends y{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==u.bigint)return this._getInvalidInput(e);let s;const a=new k;for(const n of this._def.checks)n.kind==="min"?(n.inclusive?e.data<n.value:e.data<=n.value)&&(s=this._getOrReturnCtx(e,s),o(s,{code:c.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),a.dirty()):n.kind==="max"?(n.inclusive?e.data>n.value:e.data>=n.value)&&(s=this._getOrReturnCtx(e,s),o(s,{code:c.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),a.dirty()):n.kind==="multipleOf"?e.data%n.value!==BigInt(0)&&(s=this._getOrReturnCtx(e,s),o(s,{code:c.not_multiple_of,multipleOf:n.value,message:n.message}),a.dirty()):g.assertNever(n);return{status:a.value,value:e.data}}_getInvalidInput(e){const t=this._getOrReturnCtx(e);return o(t,{code:c.invalid_type,expected:u.bigint,received:t.parsedType}),m}gte(e,t){return this.setLimit("min",e,!0,l.toString(t))}gt(e,t){return this.setLimit("min",e,!1,l.toString(t))}lte(e,t){return this.setLimit("max",e,!0,l.toString(t))}lt(e,t){return this.setLimit("max",e,!1,l.toString(t))}setLimit(e,t,s,a){return new L({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:s,message:l.toString(a)}]})}_addCheck(e){return new L({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:l.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:l.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:l.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:l.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:l.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}}L.create=r=>new L({checks:[],typeName:p.ZodBigInt,coerce:(r==null?void 0:r.coerce)??!1,..._(r)});class ae extends y{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==u.boolean){const s=this._getOrReturnCtx(e);return o(s,{code:c.invalid_type,expected:u.boolean,received:s.parsedType}),m}return b(e.data)}}ae.create=r=>new ae({typeName:p.ZodBoolean,coerce:(r==null?void 0:r.coerce)||!1,..._(r)});class U extends y{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==u.date){const n=this._getOrReturnCtx(e);return o(n,{code:c.invalid_type,expected:u.date,received:n.parsedType}),m}if(Number.isNaN(e.data.getTime())){const n=this._getOrReturnCtx(e);return o(n,{code:c.invalid_date}),m}const s=new k;let a;for(const n of this._def.checks)n.kind==="min"?e.data.getTime()<n.value&&(a=this._getOrReturnCtx(e,a),o(a,{code:c.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),s.dirty()):n.kind==="max"?e.data.getTime()>n.value&&(a=this._getOrReturnCtx(e,a),o(a,{code:c.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),s.dirty()):g.assertNever(n);return{status:s.value,value:new Date(e.data.getTime())}}_addCheck(e){return new U({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:l.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:l.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e!=null?new Date(e):null}}U.create=r=>new U({checks:[],coerce:(r==null?void 0:r.coerce)||!1,typeName:p.ZodDate,..._(r)});class ne extends y{_parse(e){if(this._getType(e)!==u.symbol){const s=this._getOrReturnCtx(e);return o(s,{code:c.invalid_type,expected:u.symbol,received:s.parsedType}),m}return b(e.data)}}ne.create=r=>new ne({typeName:p.ZodSymbol,..._(r)});class ie extends y{_parse(e){if(this._getType(e)!==u.undefined){const s=this._getOrReturnCtx(e);return o(s,{code:c.invalid_type,expected:u.undefined,received:s.parsedType}),m}return b(e.data)}}ie.create=r=>new ie({typeName:p.ZodUndefined,..._(r)});class de extends y{_parse(e){if(this._getType(e)!==u.null){const s=this._getOrReturnCtx(e);return o(s,{code:c.invalid_type,expected:u.null,received:s.parsedType}),m}return b(e.data)}}de.create=r=>new de({typeName:p.ZodNull,..._(r)});class ce extends y{constructor(){super(...arguments),this._any=!0}_parse(e){return b(e.data)}}ce.create=r=>new ce({typeName:p.ZodAny,..._(r)});class oe extends y{constructor(){super(...arguments),this._unknown=!0}_parse(e){return b(e.data)}}oe.create=r=>new oe({typeName:p.ZodUnknown,..._(r)});class A extends y{_parse(e){const t=this._getOrReturnCtx(e);return o(t,{code:c.invalid_type,expected:u.never,received:t.parsedType}),m}}A.create=r=>new A({typeName:p.ZodNever,..._(r)});class ue extends y{_parse(e){if(this._getType(e)!==u.undefined){const s=this._getOrReturnCtx(e);return o(s,{code:c.invalid_type,expected:u.void,received:s.parsedType}),m}return b(e.data)}}ue.create=r=>new ue({typeName:p.ZodVoid,..._(r)});class w extends y{_parse(e){const{ctx:t,status:s}=this._processInputParams(e),a=this._def;if(t.parsedType!==u.array)return o(t,{code:c.invalid_type,expected:u.array,received:t.parsedType}),m;if(a.exactLength!==null){const i=t.data.length>a.exactLength.value,d=t.data.length<a.exactLength.value;(i||d)&&(o(t,{code:i?c.too_big:c.too_small,minimum:d?a.exactLength.value:void 0,maximum:i?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),s.dirty())}if(a.minLength!==null&&t.data.length<a.minLength.value&&(o(t,{code:c.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),s.dirty()),a.maxLength!==null&&t.data.length>a.maxLength.value&&(o(t,{code:c.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),s.dirty()),t.common.async)return Promise.all([...t.data].map((i,d)=>a.type._parseAsync(new S(t,i,t.path,d)))).then(i=>k.mergeArray(s,i));const n=[...t.data].map((i,d)=>a.type._parseSync(new S(t,i,t.path,d)));return k.mergeArray(s,n)}get element(){return this._def.type}min(e,t){return new w({...this._def,minLength:{value:e,message:l.toString(t)}})}max(e,t){return new w({...this._def,maxLength:{value:e,message:l.toString(t)}})}length(e,t){return new w({...this._def,exactLength:{value:e,message:l.toString(t)}})}nonempty(e){return this.min(1,e)}}w.create=(r,e)=>new w({type:r,minLength:null,maxLength:null,exactLength:null,typeName:p.ZodArray,..._(e)});function R(r){if(r instanceof x){const e={};for(const t in r.shape){const s=r.shape[t];e[t]=O.create(R(s))}return new x({...r._def,shape:()=>e})}else return r instanceof w?new w({...r._def,type:R(r.element)}):r instanceof O?O.create(R(r.unwrap())):r instanceof V?V.create(R(r.unwrap())):r instanceof Z?Z.create(r.items.map(e=>R(e))):r}class x extends y{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),t=g.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==u.object){const f=this._getOrReturnCtx(e);return o(f,{code:c.invalid_type,expected:u.object,received:f.parsedType}),m}const{status:s,ctx:a}=this._processInputParams(e),{shape:n,keys:i}=this._getCached(),d=[];if(!(this._def.catchall instanceof A&&this._def.unknownKeys==="strip"))for(const f in a.data)i.includes(f)||d.push(f);const h=[];for(const f of i){const v=n[f],P=a.data[f];h.push({key:{status:"valid",value:f},value:v._parse(new S(a,P,a.path,f)),alwaysSet:f in a.data})}if(this._def.catchall instanceof A){const f=this._def.unknownKeys;if(f==="passthrough")for(const v of d)h.push({key:{status:"valid",value:v},value:{status:"valid",value:a.data[v]}});else if(f==="strict")d.length>0&&(o(a,{code:c.unrecognized_keys,keys:d}),s.dirty());else if(f!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const f=this._def.catchall;for(const v of d){const P=a.data[v];h.push({key:{status:"valid",value:v},value:f._parse(new S(a,P,a.path,v)),alwaysSet:v in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const f=[];for(const v of h){const P=await v.key,be=await v.value;f.push({key:P,value:be,alwaysSet:v.alwaysSet})}return f}).then(f=>k.mergeObjectSync(s,f)):k.mergeObjectSync(s,h)}get shape(){return this._def.shape()}strict(e){return l.errToObj,new x({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(t,s)=>{var n,i;const a=((i=(n=this._def).errorMap)==null?void 0:i.call(n,t,s).message)??s.defaultError;return t.code==="unrecognized_keys"?{message:l.errToObj(e).message??a}:{message:a}}}:{}})}strip(){return new x({...this._def,unknownKeys:"strip"})}passthrough(){return new x({...this._def,unknownKeys:"passthrough"})}extend(e){return new x({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new x({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:p.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new x({...this._def,catchall:e})}pick(e){const t={};for(const s of g.objectKeys(e))e[s]&&this.shape[s]&&(t[s]=this.shape[s]);return new x({...this._def,shape:()=>t})}omit(e){const t={};for(const s of g.objectKeys(this.shape))e[s]||(t[s]=this.shape[s]);return new x({...this._def,shape:()=>t})}deepPartial(){return R(this)}partial(e){const t={};for(const s of g.objectKeys(this.shape)){const a=this.shape[s];e&&!e[s]?t[s]=a:t[s]=a.optional()}return new x({...this._def,shape:()=>t})}required(e){const t={};for(const s of g.objectKeys(this.shape))if(e&&!e[s])t[s]=this.shape[s];else{let n=this.shape[s];for(;n instanceof O;)n=n._def.innerType;t[s]=n}return new x({...this._def,shape:()=>t})}keyof(){return ke(g.objectKeys(this.shape))}}x.create=(r,e)=>new x({shape:()=>r,unknownKeys:"strip",catchall:A.create(),typeName:p.ZodObject,..._(e)});x.strictCreate=(r,e)=>new x({shape:()=>r,unknownKeys:"strict",catchall:A.create(),typeName:p.ZodObject,..._(e)});x.lazycreate=(r,e)=>new x({shape:r,unknownKeys:"strip",catchall:A.create(),typeName:p.ZodObject,..._(e)});class F extends y{_parse(e){const{ctx:t}=this._processInputParams(e),s=this._def.options;function a(n){for(const d of n)if(d.result.status==="valid")return d.result;for(const d of n)if(d.result.status==="dirty")return t.common.issues.push(...d.ctx.common.issues),d.result;const i=n.map(d=>new C(d.ctx.common.issues));return o(t,{code:c.invalid_union,unionErrors:i}),m}if(t.common.async)return Promise.all(s.map(async n=>{const i={...t,common:{...t.common,issues:[]},parent:null};return{result:await n._parseAsync({data:t.data,path:t.path,parent:i}),ctx:i}})).then(a);{let n;const i=[];for(const h of s){const f={...t,common:{...t.common,issues:[]},parent:null},v=h._parseSync({data:t.data,path:t.path,parent:f});if(v.status==="valid")return v;v.status==="dirty"&&!n&&(n={result:v,ctx:f}),f.common.issues.length&&i.push(f.common.issues)}if(n)return t.common.issues.push(...n.ctx.common.issues),n.result;const d=i.map(h=>new C(h));return o(t,{code:c.invalid_union,unionErrors:d}),m}}get options(){return this._def.options}}F.create=(r,e)=>new F({options:r,typeName:p.ZodUnion,..._(e)});function H(r,e){const t=T(r),s=T(e);if(r===e)return{valid:!0,data:r};if(t===u.object&&s===u.object){const a=g.objectKeys(e),n=g.objectKeys(r).filter(d=>a.indexOf(d)!==-1),i={...r,...e};for(const d of n){const h=H(r[d],e[d]);if(!h.valid)return{valid:!1};i[d]=h.data}return{valid:!0,data:i}}else if(t===u.array&&s===u.array){if(r.length!==e.length)return{valid:!1};const a=[];for(let n=0;n<r.length;n++){const i=r[n],d=e[n],h=H(i,d);if(!h.valid)return{valid:!1};a.push(h.data)}return{valid:!0,data:a}}else return t===u.date&&s===u.date&&+r==+e?{valid:!0,data:r}:{valid:!1}}class B extends y{_parse(e){const{status:t,ctx:s}=this._processInputParams(e),a=(n,i)=>{if(te(n)||te(i))return m;const d=H(n.value,i.value);return d.valid?((re(n)||re(i))&&t.dirty(),{status:t.value,value:d.data}):(o(s,{code:c.invalid_intersection_types}),m)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([n,i])=>a(n,i)):a(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}B.create=(r,e,t)=>new B({left:r,right:e,typeName:p.ZodIntersection,..._(t)});class Z extends y{_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.parsedType!==u.array)return o(s,{code:c.invalid_type,expected:u.array,received:s.parsedType}),m;if(s.data.length<this._def.items.length)return o(s,{code:c.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),m;!this._def.rest&&s.data.length>this._def.items.length&&(o(s,{code:c.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const n=[...s.data].map((i,d)=>{const h=this._def.items[d]||this._def.rest;return h?h._parse(new S(s,i,s.path,d)):null}).filter(i=>!!i);return s.common.async?Promise.all(n).then(i=>k.mergeArray(t,i)):k.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new Z({...this._def,rest:e})}}Z.create=(r,e)=>{if(!Array.isArray(r))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Z({items:r,typeName:p.ZodTuple,rest:null,..._(e)})};class le extends y{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.parsedType!==u.map)return o(s,{code:c.invalid_type,expected:u.map,received:s.parsedType}),m;const a=this._def.keyType,n=this._def.valueType,i=[...s.data.entries()].map(([d,h],f)=>({key:a._parse(new S(s,d,s.path,[f,"key"])),value:n._parse(new S(s,h,s.path,[f,"value"]))}));if(s.common.async){const d=new Map;return Promise.resolve().then(async()=>{for(const h of i){const f=await h.key,v=await h.value;if(f.status==="aborted"||v.status==="aborted")return m;(f.status==="dirty"||v.status==="dirty")&&t.dirty(),d.set(f.value,v.value)}return{status:t.value,value:d}})}else{const d=new Map;for(const h of i){const f=h.key,v=h.value;if(f.status==="aborted"||v.status==="aborted")return m;(f.status==="dirty"||v.status==="dirty")&&t.dirty(),d.set(f.value,v.value)}return{status:t.value,value:d}}}}le.create=(r,e,t)=>new le({valueType:e,keyType:r,typeName:p.ZodMap,..._(t)});class z extends y{_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.parsedType!==u.set)return o(s,{code:c.invalid_type,expected:u.set,received:s.parsedType}),m;const a=this._def;a.minSize!==null&&s.data.size<a.minSize.value&&(o(s,{code:c.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),t.dirty()),a.maxSize!==null&&s.data.size>a.maxSize.value&&(o(s,{code:c.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),t.dirty());const n=this._def.valueType;function i(h){const f=new Set;for(const v of h){if(v.status==="aborted")return m;v.status==="dirty"&&t.dirty(),f.add(v.value)}return{status:t.value,value:f}}const d=[...s.data.values()].map((h,f)=>n._parse(new S(s,h,s.path,f)));return s.common.async?Promise.all(d).then(h=>i(h)):i(d)}min(e,t){return new z({...this._def,minSize:{value:e,message:l.toString(t)}})}max(e,t){return new z({...this._def,maxSize:{value:e,message:l.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}z.create=(r,e)=>new z({valueType:r,minSize:null,maxSize:null,typeName:p.ZodSet,..._(e)});class he extends y{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}he.create=(r,e)=>new he({getter:r,typeName:p.ZodLazy,..._(e)});class fe extends y{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return o(t,{received:t.data,code:c.invalid_literal,expected:this._def.value}),m}return{status:"valid",value:e.data}}get value(){return this._def.value}}fe.create=(r,e)=>new fe({value:r,typeName:p.ZodLiteral,..._(e)});function ke(r,e){return new j({values:r,typeName:p.ZodEnum,..._(e)})}class j extends y{_parse(e){if(typeof e.data!="string"){const t=this._getOrReturnCtx(e),s=this._def.values;return o(t,{expected:g.joinValues(s),received:t.parsedType,code:c.invalid_type}),m}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const t=this._getOrReturnCtx(e),s=this._def.values;return o(t,{received:t.data,code:c.invalid_enum_value,options:s}),m}return b(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return j.create(e,{...this._def,...t})}exclude(e,t=this._def){return j.create(this.options.filter(s=>!e.includes(s)),{...this._def,...t})}}j.create=ke;class me extends y{_parse(e){const t=g.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(e);if(s.parsedType!==u.string&&s.parsedType!==u.number){const a=g.objectValues(t);return o(s,{expected:g.joinValues(a),received:s.parsedType,code:c.invalid_type}),m}if(this._cache||(this._cache=new Set(g.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const a=g.objectValues(t);return o(s,{received:s.data,code:c.invalid_enum_value,options:a}),m}return b(e.data)}get enum(){return this._def.values}}me.create=(r,e)=>new me({values:r,typeName:p.ZodNativeEnum,..._(e)});class W extends y{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==u.promise&&t.common.async===!1)return o(t,{code:c.invalid_type,expected:u.promise,received:t.parsedType}),m;const s=t.parsedType===u.promise?t.data:Promise.resolve(t.data);return b(s.then(a=>this._def.type.parseAsync(a,{path:t.path,errorMap:t.common.contextualErrorMap})))}}W.create=(r,e)=>new W({type:r,typeName:p.ZodPromise,..._(e)});class $ extends y{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===p.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:s}=this._processInputParams(e),a=this._def.effect||null,n={addIssue:i=>{o(s,i),i.fatal?t.abort():t.dirty()},get path(){return s.path}};if(n.addIssue=n.addIssue.bind(n),a.type==="preprocess"){const i=a.transform(s.data,n);if(s.common.async)return Promise.resolve(i).then(async d=>{if(t.value==="aborted")return m;const h=await this._def.schema._parseAsync({data:d,path:s.path,parent:s});return h.status==="aborted"?m:h.status==="dirty"||t.value==="dirty"?M(h.value):h});{if(t.value==="aborted")return m;const d=this._def.schema._parseSync({data:i,path:s.path,parent:s});return d.status==="aborted"?m:d.status==="dirty"||t.value==="dirty"?M(d.value):d}}if(a.type==="refinement"){const i=d=>{const h=a.refinement(d,n);if(s.common.async)return Promise.resolve(h);if(h instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return d};if(s.common.async===!1){const d=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return d.status==="aborted"?m:(d.status==="dirty"&&t.dirty(),i(d.value),{status:t.value,value:d.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(d=>d.status==="aborted"?m:(d.status==="dirty"&&t.dirty(),i(d.value).then(()=>({status:t.value,value:d.value}))))}if(a.type==="transform")if(s.common.async===!1){const i=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!I(i))return m;const d=a.transform(i.value,n);if(d instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:d}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(i=>I(i)?Promise.resolve(a.transform(i.value,n)).then(d=>({status:t.value,value:d})):m);g.assertNever(a)}}$.create=(r,e,t)=>new $({schema:r,typeName:p.ZodEffects,effect:e,..._(t)});$.createWithPreprocess=(r,e,t)=>new $({schema:e,effect:{type:"preprocess",transform:r},typeName:p.ZodEffects,..._(t)});class O extends y{_parse(e){return this._getType(e)===u.undefined?b(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}O.create=(r,e)=>new O({innerType:r,typeName:p.ZodOptional,..._(e)});class V extends y{_parse(e){return this._getType(e)===u.null?b(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}V.create=(r,e)=>new V({innerType:r,typeName:p.ZodNullable,..._(e)});class J extends y{_parse(e){const{ctx:t}=this._processInputParams(e);let s=t.data;return t.parsedType===u.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}J.create=(r,e)=>new J({innerType:r,typeName:p.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,..._(e)});class G extends y{_parse(e){const{ctx:t}=this._processInputParams(e),s={...t,common:{...t.common,issues:[]}},a=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return D(a)?a.then(n=>({status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new C(s.common.issues)},input:s.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new C(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}G.create=(r,e)=>new G({innerType:r,typeName:p.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,..._(e)});class pe extends y{_parse(e){if(this._getType(e)!==u.nan){const s=this._getOrReturnCtx(e);return o(s,{code:c.invalid_type,expected:u.nan,received:s.parsedType}),m}return{status:"valid",value:e.data}}}pe.create=r=>new pe({typeName:p.ZodNaN,..._(r)});class rt extends y{_parse(e){const{ctx:t}=this._processInputParams(e),s=t.data;return this._def.type._parse({data:s,path:t.path,parent:t})}unwrap(){return this._def.type}}class K extends y{_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.common.async)return(async()=>{const n=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return n.status==="aborted"?m:n.status==="dirty"?(t.dirty(),M(n.value)):this._def.out._parseAsync({data:n.value,path:s.path,parent:s})})();{const a=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return a.status==="aborted"?m:a.status==="dirty"?(t.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:s.path,parent:s})}}static create(e,t){return new K({in:e,out:t,typeName:p.ZodPipeline})}}class Q extends y{_parse(e){const t=this._def.innerType._parse(e),s=a=>(I(a)&&(a.value=Object.freeze(a.value)),a);return D(t)?t.then(a=>s(a)):s(t)}unwrap(){return this._def.innerType}}Q.create=(r,e)=>new Q({innerType:r,typeName:p.ZodReadonly,..._(e)});var p;(function(r){r.ZodString="ZodString",r.ZodNumber="ZodNumber",r.ZodNaN="ZodNaN",r.ZodBigInt="ZodBigInt",r.ZodBoolean="ZodBoolean",r.ZodDate="ZodDate",r.ZodSymbol="ZodSymbol",r.ZodUndefined="ZodUndefined",r.ZodNull="ZodNull",r.ZodAny="ZodAny",r.ZodUnknown="ZodUnknown",r.ZodNever="ZodNever",r.ZodVoid="ZodVoid",r.ZodArray="ZodArray",r.ZodObject="ZodObject",r.ZodUnion="ZodUnion",r.ZodDiscriminatedUnion="ZodDiscriminatedUnion",r.ZodIntersection="ZodIntersection",r.ZodTuple="ZodTuple",r.ZodRecord="ZodRecord",r.ZodMap="ZodMap",r.ZodSet="ZodSet",r.ZodFunction="ZodFunction",r.ZodLazy="ZodLazy",r.ZodLiteral="ZodLiteral",r.ZodEnum="ZodEnum",r.ZodEffects="ZodEffects",r.ZodNativeEnum="ZodNativeEnum",r.ZodOptional="ZodOptional",r.ZodNullable="ZodNullable",r.ZodDefault="ZodDefault",r.ZodCatch="ZodCatch",r.ZodPromise="ZodPromise",r.ZodBranded="ZodBranded",r.ZodPipeline="ZodPipeline",r.ZodReadonly="ZodReadonly"})(p||(p={}));const _e=N.create,st=E.create;A.create;w.create;const at=x.create;F.create;B.create;Z.create;j.create;W.create;O.create;V.create;const nt="0x06fdde03",it=[],dt=[{type:"string"}];async function ct(r){return X({contract:r.contract,method:[nt,it,dt],params:[]})}async function ot(r){return ge(()=>ct(r),{cacheKey:`${r.contract.chain.id}:${r.contract.address}:name`,cacheTime:Number.POSITIVE_INFINITY})}const ut="0x95d89b41",lt=[],ht=[{type:"string"}];async function ft(r){return X({contract:r.contract,method:[ut,lt,ht],params:[]})}async function mt(r){return ge(()=>ft(r),{cacheKey:`${r.contract.chain.id}:${r.contract.address}:symbol`,cacheTime:Number.POSITIVE_INFINITY})}const ye=at({name:_e().default("Ether"),symbol:_e().default("ETH"),decimals:st().default(18)}).default({name:"Ether",symbol:"ETH",decimals:18});async function pt(r){if(we(r.contract.address)){if(!r.contract.chain.nativeCurrency||!r.contract.chain.nativeCurrency.name||!r.contract.chain.nativeCurrency.symbol||!r.contract.chain.nativeCurrency.decimals)try{const{getChainMetadata:e}=await Ce(async()=>{const{getChainMetadata:s}=await import("./thirdweb-BN-o7KJZ.js").then(a=>a.ch);return{getChainMetadata:s}},[]),t=await e(r.contract.chain);return ye.parse({...t.nativeCurrency,...r.contract.chain.nativeCurrency})}catch{}return ye.parse(r.contract.chain.nativeCurrency)}try{const[e,t,s]=await Promise.all([ot(r).catch(()=>""),mt(r),Te(r)]);return{decimals:s,name:e,symbol:t}}catch(e){throw new Error(`Invalid currency token: ${e}`)}}async function yt(r){const[e,t]=await Promise.all([Ze(r),pt(r)]);return{...t,chainId:r.contract.chain.id,displayValue:Ne(e,t.decimals),tokenAddress:r.contract.address,value:e}}export{yt as getBalance};
|
|
1
|
+
import{r as X,a9 as ge,aa as we,_ as Ce,ab as Te,ac as Ne}from"./thirdweb-DPyPz8hM.js";const Oe="0x70a08231",Se=[{name:"_address",type:"address"}],Ae=[{type:"uint256"}];async function Ze(r){return X({contract:r.contract,method:[Oe,Se,Ae],params:[r.address]})}var g;(function(r){r.assertEqual=a=>{};function e(a){}r.assertIs=e;function t(a){throw new Error}r.assertNever=t,r.arrayToEnum=a=>{const n={};for(const i of a)n[i]=i;return n},r.getValidEnumValues=a=>{const n=r.objectKeys(a).filter(d=>typeof a[a[d]]!="number"),i={};for(const d of n)i[d]=a[d];return r.objectValues(i)},r.objectValues=a=>r.objectKeys(a).map(function(n){return a[n]}),r.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const n=[];for(const i in a)Object.prototype.hasOwnProperty.call(a,i)&&n.push(i);return n},r.find=(a,n)=>{for(const i of a)if(n(i))return i},r.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&Number.isFinite(a)&&Math.floor(a)===a;function s(a,n=" | "){return a.map(i=>typeof i=="string"?`'${i}'`:i).join(n)}r.joinValues=s,r.jsonStringifyReplacer=(a,n)=>typeof n=="bigint"?n.toString():n})(g||(g={}));var ee;(function(r){r.mergeShapes=(e,t)=>({...e,...t})})(ee||(ee={}));const u=g.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),T=r=>{switch(typeof r){case"undefined":return u.undefined;case"string":return u.string;case"number":return Number.isNaN(r)?u.nan:u.number;case"boolean":return u.boolean;case"function":return u.function;case"bigint":return u.bigint;case"symbol":return u.symbol;case"object":return Array.isArray(r)?u.array:r===null?u.null:r.then&&typeof r.then=="function"&&r.catch&&typeof r.catch=="function"?u.promise:typeof Map<"u"&&r instanceof Map?u.map:typeof Set<"u"&&r instanceof Set?u.set:typeof Date<"u"&&r instanceof Date?u.date:u.object;default:return u.unknown}},c=g.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 C extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){const t=e||function(n){return n.message},s={_errors:[]},a=n=>{for(const i of n.issues)if(i.code==="invalid_union")i.unionErrors.map(a);else if(i.code==="invalid_return_type")a(i.returnTypeError);else if(i.code==="invalid_arguments")a(i.argumentsError);else if(i.path.length===0)s._errors.push(t(i));else{let d=s,h=0;for(;h<i.path.length;){const f=i.path[h];h===i.path.length-1?(d[f]=d[f]||{_errors:[]},d[f]._errors.push(t(i))):d[f]=d[f]||{_errors:[]},d=d[f],h++}}};return a(this),s}static assert(e){if(!(e instanceof C))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,g.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=t=>t.message){const t={},s=[];for(const a of this.issues)if(a.path.length>0){const n=a.path[0];t[n]=t[n]||[],t[n].push(e(a))}else s.push(e(a));return{formErrors:s,fieldErrors:t}}get formErrors(){return this.flatten()}}C.create=r=>new C(r);const Y=(r,e)=>{let t;switch(r.code){case c.invalid_type:r.received===u.undefined?t="Required":t=`Expected ${r.expected}, received ${r.received}`;break;case c.invalid_literal:t=`Invalid literal value, expected ${JSON.stringify(r.expected,g.jsonStringifyReplacer)}`;break;case c.unrecognized_keys:t=`Unrecognized key(s) in object: ${g.joinValues(r.keys,", ")}`;break;case c.invalid_union:t="Invalid input";break;case c.invalid_union_discriminator:t=`Invalid discriminator value. Expected ${g.joinValues(r.options)}`;break;case c.invalid_enum_value:t=`Invalid enum value. Expected ${g.joinValues(r.options)}, received '${r.received}'`;break;case c.invalid_arguments:t="Invalid function arguments";break;case c.invalid_return_type:t="Invalid function return type";break;case c.invalid_date:t="Invalid date";break;case c.invalid_string:typeof r.validation=="object"?"includes"in r.validation?(t=`Invalid input: must include "${r.validation.includes}"`,typeof r.validation.position=="number"&&(t=`${t} at one or more positions greater than or equal to ${r.validation.position}`)):"startsWith"in r.validation?t=`Invalid input: must start with "${r.validation.startsWith}"`:"endsWith"in r.validation?t=`Invalid input: must end with "${r.validation.endsWith}"`:g.assertNever(r.validation):r.validation!=="regex"?t=`Invalid ${r.validation}`:t="Invalid";break;case c.too_small:r.type==="array"?t=`Array must contain ${r.exact?"exactly":r.inclusive?"at least":"more than"} ${r.minimum} element(s)`:r.type==="string"?t=`String must contain ${r.exact?"exactly":r.inclusive?"at least":"over"} ${r.minimum} character(s)`:r.type==="number"?t=`Number must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${r.minimum}`:r.type==="bigint"?t=`Number must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${r.minimum}`:r.type==="date"?t=`Date must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(r.minimum))}`:t="Invalid input";break;case c.too_big:r.type==="array"?t=`Array must contain ${r.exact?"exactly":r.inclusive?"at most":"less than"} ${r.maximum} element(s)`:r.type==="string"?t=`String must contain ${r.exact?"exactly":r.inclusive?"at most":"under"} ${r.maximum} character(s)`:r.type==="number"?t=`Number must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="bigint"?t=`BigInt must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="date"?t=`Date must be ${r.exact?"exactly":r.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(r.maximum))}`:t="Invalid input";break;case c.custom:t="Invalid input";break;case c.invalid_intersection_types:t="Intersection results could not be merged";break;case c.not_multiple_of:t=`Number must be a multiple of ${r.multipleOf}`;break;case c.not_finite:t="Number must be finite";break;default:t=e.defaultError,g.assertNever(r)}return{message:t}};let Re=Y;function Ie(){return Re}const Ee=r=>{const{data:e,path:t,errorMaps:s,issueData:a}=r,n=[...t,...a.path||[]],i={...a,path:n};if(a.message!==void 0)return{...a,path:n,message:a.message};let d="";const h=s.filter(f=>!!f).slice().reverse();for(const f of h)d=f(i,{data:e,defaultError:d}).message;return{...a,path:n,message:d}};function o(r,e){const t=Ie(),s=Ee({issueData:e,data:r.data,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,t,t===Y?void 0:Y].filter(a=>!!a)});r.common.issues.push(s)}class k{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,t){const s=[];for(const a of t){if(a.status==="aborted")return m;a.status==="dirty"&&e.dirty(),s.push(a.value)}return{status:e.value,value:s}}static async mergeObjectAsync(e,t){const s=[];for(const a of t){const n=await a.key,i=await a.value;s.push({key:n,value:i})}return k.mergeObjectSync(e,s)}static mergeObjectSync(e,t){const s={};for(const a of t){const{key:n,value:i}=a;if(n.status==="aborted"||i.status==="aborted")return m;n.status==="dirty"&&e.dirty(),i.status==="dirty"&&e.dirty(),n.value!=="__proto__"&&(typeof i.value<"u"||a.alwaysSet)&&(s[n.value]=i.value)}return{status:e.value,value:s}}}const m=Object.freeze({status:"aborted"}),M=r=>({status:"dirty",value:r}),b=r=>({status:"valid",value:r}),te=r=>r.status==="aborted",re=r=>r.status==="dirty",I=r=>r.status==="valid",D=r=>typeof Promise<"u"&&r instanceof Promise;var l;(function(r){r.errToObj=e=>typeof e=="string"?{message:e}:e||{},r.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(l||(l={}));class S{constructor(e,t,s,a){this._cachedPath=[],this.parent=e,this.data=t,this._path=s,this._key=a}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const se=(r,e)=>{if(I(e))return{success:!0,data:e.value};if(!r.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new C(r.common.issues);return this._error=t,this._error}}};function _(r){if(!r)return{};const{errorMap:e,invalid_type_error:t,required_error:s,description:a}=r;if(e&&(t||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:a}:{errorMap:(i,d)=>{const{message:h}=r;return i.code==="invalid_enum_value"?{message:h??d.defaultError}:typeof d.data>"u"?{message:h??s??d.defaultError}:i.code!=="invalid_type"?{message:d.defaultError}:{message:h??t??d.defaultError}},description:a}}class y{get description(){return this._def.description}_getType(e){return T(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:T(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new k,ctx:{common:e.parent.common,data:e.data,parsedType:T(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(D(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const s=this.safeParse(e,t);if(s.success)return s.data;throw s.error}safeParse(e,t){const s={common:{issues:[],async:(t==null?void 0:t.async)??!1,contextualErrorMap:t==null?void 0:t.errorMap},path:(t==null?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:T(e)},a=this._parseSync({data:e,path:s.path,parent:s});return se(s,a)}"~validate"(e){var s,a;const t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:T(e)};if(!this["~standard"].async)try{const n=this._parseSync({data:e,path:[],parent:t});return I(n)?{value:n.value}:{issues:t.common.issues}}catch(n){(a=(s=n==null?void 0:n.message)==null?void 0:s.toLowerCase())!=null&&a.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(n=>I(n)?{value:n.value}:{issues:t.common.issues})}async parseAsync(e,t){const s=await this.safeParseAsync(e,t);if(s.success)return s.data;throw s.error}async safeParseAsync(e,t){const s={common:{issues:[],contextualErrorMap:t==null?void 0:t.errorMap,async:!0},path:(t==null?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:T(e)},a=this._parse({data:e,path:s.path,parent:s}),n=await(D(a)?a:Promise.resolve(a));return se(s,n)}refine(e,t){const s=a=>typeof t=="string"||typeof t>"u"?{message:t}:typeof t=="function"?t(a):t;return this._refinement((a,n)=>{const i=e(a),d=()=>n.addIssue({code:c.custom,...s(a)});return typeof Promise<"u"&&i instanceof Promise?i.then(h=>h?!0:(d(),!1)):i?!0:(d(),!1)})}refinement(e,t){return this._refinement((s,a)=>e(s)?!0:(a.addIssue(typeof t=="function"?t(s,a):t),!1))}_refinement(e){return new $({schema:this,typeName:p.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}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),this["~standard"]={version:1,vendor:"zod",validate:t=>this["~validate"](t)}}optional(){return O.create(this,this._def)}nullable(){return V.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return w.create(this)}promise(){return W.create(this,this._def)}or(e){return F.create([this,e],this._def)}and(e){return B.create(this,e,this._def)}transform(e){return new $({..._(this._def),schema:this,typeName:p.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t=typeof e=="function"?e:()=>e;return new J({..._(this._def),innerType:this,defaultValue:t,typeName:p.ZodDefault})}brand(){return new rt({typeName:p.ZodBranded,type:this,..._(this._def)})}catch(e){const t=typeof e=="function"?e:()=>e;return new G({..._(this._def),innerType:this,catchValue:t,typeName:p.ZodCatch})}describe(e){const t=this.constructor;return new t({...this._def,description:e})}pipe(e){return K.create(this,e)}readonly(){return Q.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const je=/^c[^\s-]{8,}$/i,$e=/^[0-9a-z]+$/,Ve=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Pe=/^[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,Me=/^[a-z0-9_-]{21}$/i,Le=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,ze=/^[-+]?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)?)??$/,De=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Ue="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let q;const Fe=/^(?:(?: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])$/,Be=/^(?:(?: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])\/(3[0-2]|[12]?[0-9])$/,We=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,qe=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Ye=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,He=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,ve="((\\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])))",Je=new RegExp(`^${ve}$`);function xe(r){let e="[0-5]\\d";r.precision?e=`${e}\\.\\d{${r.precision}}`:r.precision==null&&(e=`${e}(\\.\\d+)?`);const t=r.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${t}`}function Ge(r){return new RegExp(`^${xe(r)}$`)}function Qe(r){let e=`${ve}T${xe(r)}`;const t=[];return t.push(r.local?"Z?":"Z"),r.offset&&t.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${t.join("|")})`,new RegExp(`^${e}$`)}function Xe(r,e){return!!((e==="v4"||!e)&&Fe.test(r)||(e==="v6"||!e)&&We.test(r))}function Ke(r,e){if(!Le.test(r))return!1;try{const[t]=r.split(".");if(!t)return!1;const s=t.replace(/-/g,"+").replace(/_/g,"/").padEnd(t.length+(4-t.length%4)%4,"="),a=JSON.parse(atob(s));return!(typeof a!="object"||a===null||"typ"in a&&(a==null?void 0:a.typ)!=="JWT"||!a.alg||e&&a.alg!==e)}catch{return!1}}function et(r,e){return!!((e==="v4"||!e)&&Be.test(r)||(e==="v6"||!e)&&qe.test(r))}class N extends y{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==u.string){const n=this._getOrReturnCtx(e);return o(n,{code:c.invalid_type,expected:u.string,received:n.parsedType}),m}const s=new k;let a;for(const n of this._def.checks)if(n.kind==="min")e.data.length<n.value&&(a=this._getOrReturnCtx(e,a),o(a,{code:c.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),s.dirty());else if(n.kind==="max")e.data.length>n.value&&(a=this._getOrReturnCtx(e,a),o(a,{code:c.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),s.dirty());else if(n.kind==="length"){const i=e.data.length>n.value,d=e.data.length<n.value;(i||d)&&(a=this._getOrReturnCtx(e,a),i?o(a,{code:c.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}):d&&o(a,{code:c.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}),s.dirty())}else if(n.kind==="email")De.test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"email",code:c.invalid_string,message:n.message}),s.dirty());else if(n.kind==="emoji")q||(q=new RegExp(Ue,"u")),q.test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"emoji",code:c.invalid_string,message:n.message}),s.dirty());else if(n.kind==="uuid")Pe.test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"uuid",code:c.invalid_string,message:n.message}),s.dirty());else if(n.kind==="nanoid")Me.test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"nanoid",code:c.invalid_string,message:n.message}),s.dirty());else if(n.kind==="cuid")je.test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"cuid",code:c.invalid_string,message:n.message}),s.dirty());else if(n.kind==="cuid2")$e.test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"cuid2",code:c.invalid_string,message:n.message}),s.dirty());else if(n.kind==="ulid")Ve.test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"ulid",code:c.invalid_string,message:n.message}),s.dirty());else if(n.kind==="url")try{new URL(e.data)}catch{a=this._getOrReturnCtx(e,a),o(a,{validation:"url",code:c.invalid_string,message:n.message}),s.dirty()}else n.kind==="regex"?(n.regex.lastIndex=0,n.regex.test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"regex",code:c.invalid_string,message:n.message}),s.dirty())):n.kind==="trim"?e.data=e.data.trim():n.kind==="includes"?e.data.includes(n.value,n.position)||(a=this._getOrReturnCtx(e,a),o(a,{code:c.invalid_string,validation:{includes:n.value,position:n.position},message:n.message}),s.dirty()):n.kind==="toLowerCase"?e.data=e.data.toLowerCase():n.kind==="toUpperCase"?e.data=e.data.toUpperCase():n.kind==="startsWith"?e.data.startsWith(n.value)||(a=this._getOrReturnCtx(e,a),o(a,{code:c.invalid_string,validation:{startsWith:n.value},message:n.message}),s.dirty()):n.kind==="endsWith"?e.data.endsWith(n.value)||(a=this._getOrReturnCtx(e,a),o(a,{code:c.invalid_string,validation:{endsWith:n.value},message:n.message}),s.dirty()):n.kind==="datetime"?Qe(n).test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{code:c.invalid_string,validation:"datetime",message:n.message}),s.dirty()):n.kind==="date"?Je.test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{code:c.invalid_string,validation:"date",message:n.message}),s.dirty()):n.kind==="time"?Ge(n).test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{code:c.invalid_string,validation:"time",message:n.message}),s.dirty()):n.kind==="duration"?ze.test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"duration",code:c.invalid_string,message:n.message}),s.dirty()):n.kind==="ip"?Xe(e.data,n.version)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"ip",code:c.invalid_string,message:n.message}),s.dirty()):n.kind==="jwt"?Ke(e.data,n.alg)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"jwt",code:c.invalid_string,message:n.message}),s.dirty()):n.kind==="cidr"?et(e.data,n.version)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"cidr",code:c.invalid_string,message:n.message}),s.dirty()):n.kind==="base64"?Ye.test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"base64",code:c.invalid_string,message:n.message}),s.dirty()):n.kind==="base64url"?He.test(e.data)||(a=this._getOrReturnCtx(e,a),o(a,{validation:"base64url",code:c.invalid_string,message:n.message}),s.dirty()):g.assertNever(n);return{status:s.value,value:e.data}}_regex(e,t,s){return this.refinement(a=>e.test(a),{validation:t,code:c.invalid_string,...l.errToObj(s)})}_addCheck(e){return new N({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...l.errToObj(e)})}url(e){return this._addCheck({kind:"url",...l.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...l.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...l.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...l.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...l.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...l.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...l.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...l.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...l.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...l.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...l.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...l.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(e==null?void 0:e.offset)??!1,local:(e==null?void 0:e.local)??!1,...l.errToObj(e==null?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,...l.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...l.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...l.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t==null?void 0:t.position,...l.errToObj(t==null?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...l.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...l.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...l.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...l.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...l.errToObj(t)})}nonempty(e){return this.min(1,l.errToObj(e))}trim(){return new N({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new N({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new N({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}}N.create=r=>new N({checks:[],typeName:p.ZodString,coerce:(r==null?void 0:r.coerce)??!1,..._(r)});function tt(r,e){const t=(r.toString().split(".")[1]||"").length,s=(e.toString().split(".")[1]||"").length,a=t>s?t:s,n=Number.parseInt(r.toFixed(a).replace(".","")),i=Number.parseInt(e.toFixed(a).replace(".",""));return n%i/10**a}class E extends y{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==u.number){const n=this._getOrReturnCtx(e);return o(n,{code:c.invalid_type,expected:u.number,received:n.parsedType}),m}let s;const a=new k;for(const n of this._def.checks)n.kind==="int"?g.isInteger(e.data)||(s=this._getOrReturnCtx(e,s),o(s,{code:c.invalid_type,expected:"integer",received:"float",message:n.message}),a.dirty()):n.kind==="min"?(n.inclusive?e.data<n.value:e.data<=n.value)&&(s=this._getOrReturnCtx(e,s),o(s,{code:c.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),a.dirty()):n.kind==="max"?(n.inclusive?e.data>n.value:e.data>=n.value)&&(s=this._getOrReturnCtx(e,s),o(s,{code:c.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),a.dirty()):n.kind==="multipleOf"?tt(e.data,n.value)!==0&&(s=this._getOrReturnCtx(e,s),o(s,{code:c.not_multiple_of,multipleOf:n.value,message:n.message}),a.dirty()):n.kind==="finite"?Number.isFinite(e.data)||(s=this._getOrReturnCtx(e,s),o(s,{code:c.not_finite,message:n.message}),a.dirty()):g.assertNever(n);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,l.toString(t))}gt(e,t){return this.setLimit("min",e,!1,l.toString(t))}lte(e,t){return this.setLimit("max",e,!0,l.toString(t))}lt(e,t){return this.setLimit("max",e,!1,l.toString(t))}setLimit(e,t,s,a){return new E({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:s,message:l.toString(a)}]})}_addCheck(e){return new E({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:l.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:l.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:l.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:l.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:l.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:l.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:l.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:l.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:l.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&g.isInteger(e.value))}get isFinite(){let e=null,t=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(t===null||s.value>t)&&(t=s.value):s.kind==="max"&&(e===null||s.value<e)&&(e=s.value)}return Number.isFinite(t)&&Number.isFinite(e)}}E.create=r=>new E({checks:[],typeName:p.ZodNumber,coerce:(r==null?void 0:r.coerce)||!1,..._(r)});class L extends y{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==u.bigint)return this._getInvalidInput(e);let s;const a=new k;for(const n of this._def.checks)n.kind==="min"?(n.inclusive?e.data<n.value:e.data<=n.value)&&(s=this._getOrReturnCtx(e,s),o(s,{code:c.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),a.dirty()):n.kind==="max"?(n.inclusive?e.data>n.value:e.data>=n.value)&&(s=this._getOrReturnCtx(e,s),o(s,{code:c.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),a.dirty()):n.kind==="multipleOf"?e.data%n.value!==BigInt(0)&&(s=this._getOrReturnCtx(e,s),o(s,{code:c.not_multiple_of,multipleOf:n.value,message:n.message}),a.dirty()):g.assertNever(n);return{status:a.value,value:e.data}}_getInvalidInput(e){const t=this._getOrReturnCtx(e);return o(t,{code:c.invalid_type,expected:u.bigint,received:t.parsedType}),m}gte(e,t){return this.setLimit("min",e,!0,l.toString(t))}gt(e,t){return this.setLimit("min",e,!1,l.toString(t))}lte(e,t){return this.setLimit("max",e,!0,l.toString(t))}lt(e,t){return this.setLimit("max",e,!1,l.toString(t))}setLimit(e,t,s,a){return new L({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:s,message:l.toString(a)}]})}_addCheck(e){return new L({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:l.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:l.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:l.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:l.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:l.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}}L.create=r=>new L({checks:[],typeName:p.ZodBigInt,coerce:(r==null?void 0:r.coerce)??!1,..._(r)});class ae extends y{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==u.boolean){const s=this._getOrReturnCtx(e);return o(s,{code:c.invalid_type,expected:u.boolean,received:s.parsedType}),m}return b(e.data)}}ae.create=r=>new ae({typeName:p.ZodBoolean,coerce:(r==null?void 0:r.coerce)||!1,..._(r)});class U extends y{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==u.date){const n=this._getOrReturnCtx(e);return o(n,{code:c.invalid_type,expected:u.date,received:n.parsedType}),m}if(Number.isNaN(e.data.getTime())){const n=this._getOrReturnCtx(e);return o(n,{code:c.invalid_date}),m}const s=new k;let a;for(const n of this._def.checks)n.kind==="min"?e.data.getTime()<n.value&&(a=this._getOrReturnCtx(e,a),o(a,{code:c.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),s.dirty()):n.kind==="max"?e.data.getTime()>n.value&&(a=this._getOrReturnCtx(e,a),o(a,{code:c.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),s.dirty()):g.assertNever(n);return{status:s.value,value:new Date(e.data.getTime())}}_addCheck(e){return new U({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:l.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:l.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e!=null?new Date(e):null}}U.create=r=>new U({checks:[],coerce:(r==null?void 0:r.coerce)||!1,typeName:p.ZodDate,..._(r)});class ne extends y{_parse(e){if(this._getType(e)!==u.symbol){const s=this._getOrReturnCtx(e);return o(s,{code:c.invalid_type,expected:u.symbol,received:s.parsedType}),m}return b(e.data)}}ne.create=r=>new ne({typeName:p.ZodSymbol,..._(r)});class ie extends y{_parse(e){if(this._getType(e)!==u.undefined){const s=this._getOrReturnCtx(e);return o(s,{code:c.invalid_type,expected:u.undefined,received:s.parsedType}),m}return b(e.data)}}ie.create=r=>new ie({typeName:p.ZodUndefined,..._(r)});class de extends y{_parse(e){if(this._getType(e)!==u.null){const s=this._getOrReturnCtx(e);return o(s,{code:c.invalid_type,expected:u.null,received:s.parsedType}),m}return b(e.data)}}de.create=r=>new de({typeName:p.ZodNull,..._(r)});class ce extends y{constructor(){super(...arguments),this._any=!0}_parse(e){return b(e.data)}}ce.create=r=>new ce({typeName:p.ZodAny,..._(r)});class oe extends y{constructor(){super(...arguments),this._unknown=!0}_parse(e){return b(e.data)}}oe.create=r=>new oe({typeName:p.ZodUnknown,..._(r)});class A extends y{_parse(e){const t=this._getOrReturnCtx(e);return o(t,{code:c.invalid_type,expected:u.never,received:t.parsedType}),m}}A.create=r=>new A({typeName:p.ZodNever,..._(r)});class ue extends y{_parse(e){if(this._getType(e)!==u.undefined){const s=this._getOrReturnCtx(e);return o(s,{code:c.invalid_type,expected:u.void,received:s.parsedType}),m}return b(e.data)}}ue.create=r=>new ue({typeName:p.ZodVoid,..._(r)});class w extends y{_parse(e){const{ctx:t,status:s}=this._processInputParams(e),a=this._def;if(t.parsedType!==u.array)return o(t,{code:c.invalid_type,expected:u.array,received:t.parsedType}),m;if(a.exactLength!==null){const i=t.data.length>a.exactLength.value,d=t.data.length<a.exactLength.value;(i||d)&&(o(t,{code:i?c.too_big:c.too_small,minimum:d?a.exactLength.value:void 0,maximum:i?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),s.dirty())}if(a.minLength!==null&&t.data.length<a.minLength.value&&(o(t,{code:c.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),s.dirty()),a.maxLength!==null&&t.data.length>a.maxLength.value&&(o(t,{code:c.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),s.dirty()),t.common.async)return Promise.all([...t.data].map((i,d)=>a.type._parseAsync(new S(t,i,t.path,d)))).then(i=>k.mergeArray(s,i));const n=[...t.data].map((i,d)=>a.type._parseSync(new S(t,i,t.path,d)));return k.mergeArray(s,n)}get element(){return this._def.type}min(e,t){return new w({...this._def,minLength:{value:e,message:l.toString(t)}})}max(e,t){return new w({...this._def,maxLength:{value:e,message:l.toString(t)}})}length(e,t){return new w({...this._def,exactLength:{value:e,message:l.toString(t)}})}nonempty(e){return this.min(1,e)}}w.create=(r,e)=>new w({type:r,minLength:null,maxLength:null,exactLength:null,typeName:p.ZodArray,..._(e)});function R(r){if(r instanceof x){const e={};for(const t in r.shape){const s=r.shape[t];e[t]=O.create(R(s))}return new x({...r._def,shape:()=>e})}else return r instanceof w?new w({...r._def,type:R(r.element)}):r instanceof O?O.create(R(r.unwrap())):r instanceof V?V.create(R(r.unwrap())):r instanceof Z?Z.create(r.items.map(e=>R(e))):r}class x extends y{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),t=g.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==u.object){const f=this._getOrReturnCtx(e);return o(f,{code:c.invalid_type,expected:u.object,received:f.parsedType}),m}const{status:s,ctx:a}=this._processInputParams(e),{shape:n,keys:i}=this._getCached(),d=[];if(!(this._def.catchall instanceof A&&this._def.unknownKeys==="strip"))for(const f in a.data)i.includes(f)||d.push(f);const h=[];for(const f of i){const v=n[f],P=a.data[f];h.push({key:{status:"valid",value:f},value:v._parse(new S(a,P,a.path,f)),alwaysSet:f in a.data})}if(this._def.catchall instanceof A){const f=this._def.unknownKeys;if(f==="passthrough")for(const v of d)h.push({key:{status:"valid",value:v},value:{status:"valid",value:a.data[v]}});else if(f==="strict")d.length>0&&(o(a,{code:c.unrecognized_keys,keys:d}),s.dirty());else if(f!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const f=this._def.catchall;for(const v of d){const P=a.data[v];h.push({key:{status:"valid",value:v},value:f._parse(new S(a,P,a.path,v)),alwaysSet:v in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const f=[];for(const v of h){const P=await v.key,be=await v.value;f.push({key:P,value:be,alwaysSet:v.alwaysSet})}return f}).then(f=>k.mergeObjectSync(s,f)):k.mergeObjectSync(s,h)}get shape(){return this._def.shape()}strict(e){return l.errToObj,new x({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(t,s)=>{var n,i;const a=((i=(n=this._def).errorMap)==null?void 0:i.call(n,t,s).message)??s.defaultError;return t.code==="unrecognized_keys"?{message:l.errToObj(e).message??a}:{message:a}}}:{}})}strip(){return new x({...this._def,unknownKeys:"strip"})}passthrough(){return new x({...this._def,unknownKeys:"passthrough"})}extend(e){return new x({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new x({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:p.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new x({...this._def,catchall:e})}pick(e){const t={};for(const s of g.objectKeys(e))e[s]&&this.shape[s]&&(t[s]=this.shape[s]);return new x({...this._def,shape:()=>t})}omit(e){const t={};for(const s of g.objectKeys(this.shape))e[s]||(t[s]=this.shape[s]);return new x({...this._def,shape:()=>t})}deepPartial(){return R(this)}partial(e){const t={};for(const s of g.objectKeys(this.shape)){const a=this.shape[s];e&&!e[s]?t[s]=a:t[s]=a.optional()}return new x({...this._def,shape:()=>t})}required(e){const t={};for(const s of g.objectKeys(this.shape))if(e&&!e[s])t[s]=this.shape[s];else{let n=this.shape[s];for(;n instanceof O;)n=n._def.innerType;t[s]=n}return new x({...this._def,shape:()=>t})}keyof(){return ke(g.objectKeys(this.shape))}}x.create=(r,e)=>new x({shape:()=>r,unknownKeys:"strip",catchall:A.create(),typeName:p.ZodObject,..._(e)});x.strictCreate=(r,e)=>new x({shape:()=>r,unknownKeys:"strict",catchall:A.create(),typeName:p.ZodObject,..._(e)});x.lazycreate=(r,e)=>new x({shape:r,unknownKeys:"strip",catchall:A.create(),typeName:p.ZodObject,..._(e)});class F extends y{_parse(e){const{ctx:t}=this._processInputParams(e),s=this._def.options;function a(n){for(const d of n)if(d.result.status==="valid")return d.result;for(const d of n)if(d.result.status==="dirty")return t.common.issues.push(...d.ctx.common.issues),d.result;const i=n.map(d=>new C(d.ctx.common.issues));return o(t,{code:c.invalid_union,unionErrors:i}),m}if(t.common.async)return Promise.all(s.map(async n=>{const i={...t,common:{...t.common,issues:[]},parent:null};return{result:await n._parseAsync({data:t.data,path:t.path,parent:i}),ctx:i}})).then(a);{let n;const i=[];for(const h of s){const f={...t,common:{...t.common,issues:[]},parent:null},v=h._parseSync({data:t.data,path:t.path,parent:f});if(v.status==="valid")return v;v.status==="dirty"&&!n&&(n={result:v,ctx:f}),f.common.issues.length&&i.push(f.common.issues)}if(n)return t.common.issues.push(...n.ctx.common.issues),n.result;const d=i.map(h=>new C(h));return o(t,{code:c.invalid_union,unionErrors:d}),m}}get options(){return this._def.options}}F.create=(r,e)=>new F({options:r,typeName:p.ZodUnion,..._(e)});function H(r,e){const t=T(r),s=T(e);if(r===e)return{valid:!0,data:r};if(t===u.object&&s===u.object){const a=g.objectKeys(e),n=g.objectKeys(r).filter(d=>a.indexOf(d)!==-1),i={...r,...e};for(const d of n){const h=H(r[d],e[d]);if(!h.valid)return{valid:!1};i[d]=h.data}return{valid:!0,data:i}}else if(t===u.array&&s===u.array){if(r.length!==e.length)return{valid:!1};const a=[];for(let n=0;n<r.length;n++){const i=r[n],d=e[n],h=H(i,d);if(!h.valid)return{valid:!1};a.push(h.data)}return{valid:!0,data:a}}else return t===u.date&&s===u.date&&+r==+e?{valid:!0,data:r}:{valid:!1}}class B extends y{_parse(e){const{status:t,ctx:s}=this._processInputParams(e),a=(n,i)=>{if(te(n)||te(i))return m;const d=H(n.value,i.value);return d.valid?((re(n)||re(i))&&t.dirty(),{status:t.value,value:d.data}):(o(s,{code:c.invalid_intersection_types}),m)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([n,i])=>a(n,i)):a(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}B.create=(r,e,t)=>new B({left:r,right:e,typeName:p.ZodIntersection,..._(t)});class Z extends y{_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.parsedType!==u.array)return o(s,{code:c.invalid_type,expected:u.array,received:s.parsedType}),m;if(s.data.length<this._def.items.length)return o(s,{code:c.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),m;!this._def.rest&&s.data.length>this._def.items.length&&(o(s,{code:c.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const n=[...s.data].map((i,d)=>{const h=this._def.items[d]||this._def.rest;return h?h._parse(new S(s,i,s.path,d)):null}).filter(i=>!!i);return s.common.async?Promise.all(n).then(i=>k.mergeArray(t,i)):k.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new Z({...this._def,rest:e})}}Z.create=(r,e)=>{if(!Array.isArray(r))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Z({items:r,typeName:p.ZodTuple,rest:null,..._(e)})};class le extends y{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.parsedType!==u.map)return o(s,{code:c.invalid_type,expected:u.map,received:s.parsedType}),m;const a=this._def.keyType,n=this._def.valueType,i=[...s.data.entries()].map(([d,h],f)=>({key:a._parse(new S(s,d,s.path,[f,"key"])),value:n._parse(new S(s,h,s.path,[f,"value"]))}));if(s.common.async){const d=new Map;return Promise.resolve().then(async()=>{for(const h of i){const f=await h.key,v=await h.value;if(f.status==="aborted"||v.status==="aborted")return m;(f.status==="dirty"||v.status==="dirty")&&t.dirty(),d.set(f.value,v.value)}return{status:t.value,value:d}})}else{const d=new Map;for(const h of i){const f=h.key,v=h.value;if(f.status==="aborted"||v.status==="aborted")return m;(f.status==="dirty"||v.status==="dirty")&&t.dirty(),d.set(f.value,v.value)}return{status:t.value,value:d}}}}le.create=(r,e,t)=>new le({valueType:e,keyType:r,typeName:p.ZodMap,..._(t)});class z extends y{_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.parsedType!==u.set)return o(s,{code:c.invalid_type,expected:u.set,received:s.parsedType}),m;const a=this._def;a.minSize!==null&&s.data.size<a.minSize.value&&(o(s,{code:c.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),t.dirty()),a.maxSize!==null&&s.data.size>a.maxSize.value&&(o(s,{code:c.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),t.dirty());const n=this._def.valueType;function i(h){const f=new Set;for(const v of h){if(v.status==="aborted")return m;v.status==="dirty"&&t.dirty(),f.add(v.value)}return{status:t.value,value:f}}const d=[...s.data.values()].map((h,f)=>n._parse(new S(s,h,s.path,f)));return s.common.async?Promise.all(d).then(h=>i(h)):i(d)}min(e,t){return new z({...this._def,minSize:{value:e,message:l.toString(t)}})}max(e,t){return new z({...this._def,maxSize:{value:e,message:l.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}z.create=(r,e)=>new z({valueType:r,minSize:null,maxSize:null,typeName:p.ZodSet,..._(e)});class he extends y{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}he.create=(r,e)=>new he({getter:r,typeName:p.ZodLazy,..._(e)});class fe extends y{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return o(t,{received:t.data,code:c.invalid_literal,expected:this._def.value}),m}return{status:"valid",value:e.data}}get value(){return this._def.value}}fe.create=(r,e)=>new fe({value:r,typeName:p.ZodLiteral,..._(e)});function ke(r,e){return new j({values:r,typeName:p.ZodEnum,..._(e)})}class j extends y{_parse(e){if(typeof e.data!="string"){const t=this._getOrReturnCtx(e),s=this._def.values;return o(t,{expected:g.joinValues(s),received:t.parsedType,code:c.invalid_type}),m}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const t=this._getOrReturnCtx(e),s=this._def.values;return o(t,{received:t.data,code:c.invalid_enum_value,options:s}),m}return b(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return j.create(e,{...this._def,...t})}exclude(e,t=this._def){return j.create(this.options.filter(s=>!e.includes(s)),{...this._def,...t})}}j.create=ke;class me extends y{_parse(e){const t=g.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(e);if(s.parsedType!==u.string&&s.parsedType!==u.number){const a=g.objectValues(t);return o(s,{expected:g.joinValues(a),received:s.parsedType,code:c.invalid_type}),m}if(this._cache||(this._cache=new Set(g.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const a=g.objectValues(t);return o(s,{received:s.data,code:c.invalid_enum_value,options:a}),m}return b(e.data)}get enum(){return this._def.values}}me.create=(r,e)=>new me({values:r,typeName:p.ZodNativeEnum,..._(e)});class W extends y{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==u.promise&&t.common.async===!1)return o(t,{code:c.invalid_type,expected:u.promise,received:t.parsedType}),m;const s=t.parsedType===u.promise?t.data:Promise.resolve(t.data);return b(s.then(a=>this._def.type.parseAsync(a,{path:t.path,errorMap:t.common.contextualErrorMap})))}}W.create=(r,e)=>new W({type:r,typeName:p.ZodPromise,..._(e)});class $ extends y{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===p.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:s}=this._processInputParams(e),a=this._def.effect||null,n={addIssue:i=>{o(s,i),i.fatal?t.abort():t.dirty()},get path(){return s.path}};if(n.addIssue=n.addIssue.bind(n),a.type==="preprocess"){const i=a.transform(s.data,n);if(s.common.async)return Promise.resolve(i).then(async d=>{if(t.value==="aborted")return m;const h=await this._def.schema._parseAsync({data:d,path:s.path,parent:s});return h.status==="aborted"?m:h.status==="dirty"||t.value==="dirty"?M(h.value):h});{if(t.value==="aborted")return m;const d=this._def.schema._parseSync({data:i,path:s.path,parent:s});return d.status==="aborted"?m:d.status==="dirty"||t.value==="dirty"?M(d.value):d}}if(a.type==="refinement"){const i=d=>{const h=a.refinement(d,n);if(s.common.async)return Promise.resolve(h);if(h instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return d};if(s.common.async===!1){const d=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return d.status==="aborted"?m:(d.status==="dirty"&&t.dirty(),i(d.value),{status:t.value,value:d.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(d=>d.status==="aborted"?m:(d.status==="dirty"&&t.dirty(),i(d.value).then(()=>({status:t.value,value:d.value}))))}if(a.type==="transform")if(s.common.async===!1){const i=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!I(i))return m;const d=a.transform(i.value,n);if(d instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:d}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(i=>I(i)?Promise.resolve(a.transform(i.value,n)).then(d=>({status:t.value,value:d})):m);g.assertNever(a)}}$.create=(r,e,t)=>new $({schema:r,typeName:p.ZodEffects,effect:e,..._(t)});$.createWithPreprocess=(r,e,t)=>new $({schema:e,effect:{type:"preprocess",transform:r},typeName:p.ZodEffects,..._(t)});class O extends y{_parse(e){return this._getType(e)===u.undefined?b(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}O.create=(r,e)=>new O({innerType:r,typeName:p.ZodOptional,..._(e)});class V extends y{_parse(e){return this._getType(e)===u.null?b(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}V.create=(r,e)=>new V({innerType:r,typeName:p.ZodNullable,..._(e)});class J extends y{_parse(e){const{ctx:t}=this._processInputParams(e);let s=t.data;return t.parsedType===u.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}J.create=(r,e)=>new J({innerType:r,typeName:p.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,..._(e)});class G extends y{_parse(e){const{ctx:t}=this._processInputParams(e),s={...t,common:{...t.common,issues:[]}},a=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return D(a)?a.then(n=>({status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new C(s.common.issues)},input:s.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new C(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}G.create=(r,e)=>new G({innerType:r,typeName:p.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,..._(e)});class pe extends y{_parse(e){if(this._getType(e)!==u.nan){const s=this._getOrReturnCtx(e);return o(s,{code:c.invalid_type,expected:u.nan,received:s.parsedType}),m}return{status:"valid",value:e.data}}}pe.create=r=>new pe({typeName:p.ZodNaN,..._(r)});class rt extends y{_parse(e){const{ctx:t}=this._processInputParams(e),s=t.data;return this._def.type._parse({data:s,path:t.path,parent:t})}unwrap(){return this._def.type}}class K extends y{_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.common.async)return(async()=>{const n=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return n.status==="aborted"?m:n.status==="dirty"?(t.dirty(),M(n.value)):this._def.out._parseAsync({data:n.value,path:s.path,parent:s})})();{const a=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return a.status==="aborted"?m:a.status==="dirty"?(t.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:s.path,parent:s})}}static create(e,t){return new K({in:e,out:t,typeName:p.ZodPipeline})}}class Q extends y{_parse(e){const t=this._def.innerType._parse(e),s=a=>(I(a)&&(a.value=Object.freeze(a.value)),a);return D(t)?t.then(a=>s(a)):s(t)}unwrap(){return this._def.innerType}}Q.create=(r,e)=>new Q({innerType:r,typeName:p.ZodReadonly,..._(e)});var p;(function(r){r.ZodString="ZodString",r.ZodNumber="ZodNumber",r.ZodNaN="ZodNaN",r.ZodBigInt="ZodBigInt",r.ZodBoolean="ZodBoolean",r.ZodDate="ZodDate",r.ZodSymbol="ZodSymbol",r.ZodUndefined="ZodUndefined",r.ZodNull="ZodNull",r.ZodAny="ZodAny",r.ZodUnknown="ZodUnknown",r.ZodNever="ZodNever",r.ZodVoid="ZodVoid",r.ZodArray="ZodArray",r.ZodObject="ZodObject",r.ZodUnion="ZodUnion",r.ZodDiscriminatedUnion="ZodDiscriminatedUnion",r.ZodIntersection="ZodIntersection",r.ZodTuple="ZodTuple",r.ZodRecord="ZodRecord",r.ZodMap="ZodMap",r.ZodSet="ZodSet",r.ZodFunction="ZodFunction",r.ZodLazy="ZodLazy",r.ZodLiteral="ZodLiteral",r.ZodEnum="ZodEnum",r.ZodEffects="ZodEffects",r.ZodNativeEnum="ZodNativeEnum",r.ZodOptional="ZodOptional",r.ZodNullable="ZodNullable",r.ZodDefault="ZodDefault",r.ZodCatch="ZodCatch",r.ZodPromise="ZodPromise",r.ZodBranded="ZodBranded",r.ZodPipeline="ZodPipeline",r.ZodReadonly="ZodReadonly"})(p||(p={}));const _e=N.create,st=E.create;A.create;w.create;const at=x.create;F.create;B.create;Z.create;j.create;W.create;O.create;V.create;const nt="0x06fdde03",it=[],dt=[{type:"string"}];async function ct(r){return X({contract:r.contract,method:[nt,it,dt],params:[]})}async function ot(r){return ge(()=>ct(r),{cacheKey:`${r.contract.chain.id}:${r.contract.address}:name`,cacheTime:Number.POSITIVE_INFINITY})}const ut="0x95d89b41",lt=[],ht=[{type:"string"}];async function ft(r){return X({contract:r.contract,method:[ut,lt,ht],params:[]})}async function mt(r){return ge(()=>ft(r),{cacheKey:`${r.contract.chain.id}:${r.contract.address}:symbol`,cacheTime:Number.POSITIVE_INFINITY})}const ye=at({name:_e().default("Ether"),symbol:_e().default("ETH"),decimals:st().default(18)}).default({name:"Ether",symbol:"ETH",decimals:18});async function pt(r){if(we(r.contract.address)){if(!r.contract.chain.nativeCurrency||!r.contract.chain.nativeCurrency.name||!r.contract.chain.nativeCurrency.symbol||!r.contract.chain.nativeCurrency.decimals)try{const{getChainMetadata:e}=await Ce(async()=>{const{getChainMetadata:s}=await import("./thirdweb-DPyPz8hM.js").then(a=>a.ch);return{getChainMetadata:s}},[]),t=await e(r.contract.chain);return ye.parse({...t.nativeCurrency,...r.contract.chain.nativeCurrency})}catch{}return ye.parse(r.contract.chain.nativeCurrency)}try{const[e,t,s]=await Promise.all([ot(r).catch(()=>""),mt(r),Te(r)]);return{decimals:s,name:e,symbol:t}}catch(e){throw new Error(`Invalid currency token: ${e}`)}}async function yt(r){const[e,t]=await Promise.all([Ze(r),pt(r)]);return{...t,chainId:r.contract.chain.id,displayValue:Ne(e,t.decimals),tokenAddress:r.contract.address,value:e}}export{yt as getBalance};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t}from"./thirdweb-
|
|
1
|
+
import{r as t}from"./thirdweb-DPyPz8hM.js";const n="0x3e429396",a=[],o=[{components:[{name:"implementation",type:"address"},{components:[{name:"registerInstallationCallback",type:"bool"},{name:"requiredInterfaces",type:"bytes4[]"},{name:"supportedInterfaces",type:"bytes4[]"},{components:[{name:"selector",type:"bytes4"}],name:"callbackFunctions",type:"tuple[]"},{components:[{name:"selector",type:"bytes4"},{name:"permissionBits",type:"uint256"}],name:"fallbackFunctions",type:"tuple[]"}],name:"config",type:"tuple"}],type:"tuple[]"}];async function p(e){return t({contract:e.contract,method:[n,a,o],params:[]})}export{n as FN_SELECTOR,p as getInstalledModules};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ownerOf-
|
|
2
|
-
import{r as i,M as u,_ as o}from"./thirdweb-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ownerOf-6UfFJH9_.js","assets/thirdweb-DPyPz8hM.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{r as i,M as u,_ as o}from"./thirdweb-DPyPz8hM.js";import{f}from"./fetchTokenMetadata-CIGbGLoZ.js";import{parseNFT as d}from"./parseNft-C3zLsu0o.js";import"./uint8-array-DZKEMhA1.js";const y="0xc87b56dd",I=[{name:"_tokenId",type:"uint256"}],h=[{type:"string"}];async function k(t){return i({contract:t.contract,method:[y,I,h],params:[t.tokenId]})}const l="0x4f6ccce7",m=[{name:"_index",type:"uint256"}],s=[{type:"uint256"}];async function _(t){return i({contract:t.contract,method:[l,m,s],params:[t.index]})}async function R(t){const{useIndexer:n=!0}=t;if(n)try{return await T(t)}catch{return await r(t)}return await r(t)}async function T(t){const n=await u({chain:t.contract.chain,client:t.contract.client,contractAddress:t.contract.address,includeOwners:t.includeOwner,tokenId:t.tokenId});return n||r(t)}async function r(t){let n=t.tokenId;if(t.tokenByIndex)try{n=await _({contract:t.contract,index:t.tokenId})}catch{}const[c,a]=await Promise.all([k({contract:t.contract,tokenId:n}).catch(()=>null),t.includeOwner?o(()=>import("./ownerOf-6UfFJH9_.js"),__vite__mapDeps([0,1])).then(e=>e.ownerOf({contract:t.contract,tokenId:n})).catch(()=>null):null]);return c!=null&&c.trim()?d(await f({client:t.contract.client,tokenId:n,tokenUri:c}).then(e=>e||{id:n,type:"ERC721",uri:c}).catch(()=>({id:n,type:"ERC721",uri:c})),{chainId:t.contract.chain.id,owner:a,tokenAddress:t.contract.address,tokenId:n,tokenUri:c,type:"ERC721"}):d({id:n,type:"ERC721",uri:""},{chainId:t.contract.chain.id,owner:a,tokenAddress:t.contract.address,tokenId:n,tokenUri:"",type:"ERC721"})}export{R as getNFT};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a,M as d}from"./thirdweb-
|
|
1
|
+
import{r as a,M as d}from"./thirdweb-DPyPz8hM.js";import{f as u}from"./fetchTokenMetadata-CIGbGLoZ.js";import{parseNFT as i}from"./parseNft-C3zLsu0o.js";import{totalSupply as o}from"./totalSupply-Dqc9Mt3j.js";import"./uint8-array-DZKEMhA1.js";const I="0x0e89341c",k=[{name:"tokenId",type:"uint256"}],f=[{type:"string"}];async function m(t){return a({contract:t.contract,method:[I,k,f],params:[t.tokenId]})}async function N(t){const{useIndexer:r=!0}=t;if(r)try{return await y(t)}catch{return await c(t)}return await c(t)}async function y(t){const r=await d({chain:t.contract.chain,client:t.contract.client,contractAddress:t.contract.address,tokenId:t.tokenId});return r||c(t)}async function c(t){const[r,e]=await Promise.all([m({contract:t.contract,tokenId:t.tokenId}),o({contract:t.contract,id:t.tokenId}).catch(()=>0n)]);return i(await u({client:t.contract.client,tokenId:t.tokenId,tokenUri:r}).then(n=>n||{id:t.tokenId,type:"ERC1155",uri:r}).catch(()=>({id:t.tokenId,type:"ERC1155",uri:r})),{chainId:t.contract.chain.id,owner:null,supply:e,tokenAddress:t.contract.address,tokenId:t.tokenId,tokenUri:r,type:"ERC1155"})}export{N as getNFT};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-
|
|
2
|
-
import{cg as T,a9 as k,$ as x,aR as F,_ as C,s as D,b as R,ad as U}from"./thirdweb-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-jKMvOo_6.js","assets/thirdweb-DPyPz8hM.js","assets/ethereum-BTRQ55FN.js","assets/types-DC0Zmj1B.js","assets/web-connector-BMJtDugH.js","assets/linkAccount-CElRYaCQ.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{cg as T,a9 as k,$ as x,aR as F,_ as C,s as D,b as R,ad as U}from"./thirdweb-DPyPz8hM.js";async function E(t){const{client:n,ecosystem:e,walletType:c,walletAddress:a,chainId:h}=t;return T({client:n,data:{action:"connect",chainId:h,source:"connectWallet",walletAddress:a,walletType:c},ecosystem:e})}function L(){const t=new Map;return{emit(n,e){const c=t.get(n);if(c)for(const a of c)a(e)},subscribe(n,e){var c;return t.has(n)?(c=t.get(n))==null||c.add(e):t.set(n,new Set([e])),()=>{const a=t.get(n);a&&a.delete(e)}}}}function O(){return L()}async function G(t){return k(async()=>{var c;const e=await(await fetch(`${x("inAppWallet")}/api/2024-05-05/ecosystem-wallet`,{headers:{"x-ecosystem-id":t}})).json();if(!e||e.code==="UNAUTHORIZED")throw new Error(e.message||`Could not find ecosystem wallet with id ${t}, please check your ecosystem wallet configuration.`);return(c=e.authOptions)!=null&&c.includes("siwe")&&(e.authOptions=e.authOptions.filter(a=>a!=="siwe"),e.authOptions.push("wallet")),e},{cacheKey:`ecosystem-wallet-options-${t}`,cacheTime:1e3*60*5})}const b=new Map;async function I(t,n,e){var h;const c=D({clientId:t.clientId,ecosystem:e,partialSecretKey:(h=t.secretKey)==null?void 0:h.slice(0,5)});if(b.has(c))return b.get(c);const a=await n(t);return b.set(c,a),a}function M(t){const{createOptions:n,connectorFactory:e,ecosystem:c}=t,a=c?c.id:"inApp",h=O();let i=n,l,_,r,f,p=null;const P=async o=>{if(c){const s=await G(c.id),u=s==null?void 0:s.smartAccountOptions;if(u)if(s.smartAccountOptions.executionMode==="EIP7702")i={...i,executionMode:{mode:"EIP7702",sponsorGas:u.sponsorGas}};else{const{defaultChainId:y}=s.smartAccountOptions,w=(o==null?void 0:o.chain)??(y?R(y):void 0);if(!w)throw new Error("A chain must be provided either via 'chain' in connect options or 'defaultChainId' in ecosystem configuration. Please pass it via connect() or update the ecosystem configuration.");i={...i,smartAccount:{chain:w,factoryAddress:u.accountFactoryAddress,sponsorGas:u.sponsorGas}}}}};return{autoConnect:async o=>{const{autoConnectInAppWallet:s}=await C(async()=>{const{autoConnectInAppWallet:d}=await import("./index-jKMvOo_6.js").then(g=>g.j);return{autoConnectInAppWallet:d}},__vite__mapDeps([0,1,2,3])),u=await I(o.client,e,c);await P();const{account:A,chain:y,adminAccount:w}=await s(o,i,u);f=o.client,l=A,_=w,r=y;try{p=await u.storage.getAuthCookie()}catch(d){console.error("Failed to retrieve auth token:",d),p=null}return E({chainId:r.id,client:o.client,ecosystem:c,walletAddress:l.address,walletType:a}),l},connect:async o=>{const{connectInAppWallet:s}=await C(async()=>{const{connectInAppWallet:d}=await import("./index-jKMvOo_6.js").then(g=>g.j);return{connectInAppWallet:d}},__vite__mapDeps([0,1,2,3])),u=await I(o.client,e,c);await P();const{account:A,chain:y,adminAccount:w}=await s(o,i,u);f=o.client,l=A,_=w,r=y;try{p=await u.storage.getAuthCookie()}catch(d){console.error("Failed to retrieve auth token:",d),p=null}return E({chainId:r.id,client:o.client,ecosystem:c,walletAddress:l.address,walletType:a}),l},disconnect:async()=>{if(f&&!(await(await I(f,e,c)).logout()).success)throw new Error("Failed to logout");l=void 0,_=void 0,r=void 0,p=null,h.emit("disconnect",void 0)},getAccount:()=>l,getAdminAccount:()=>_,getAuthToken:()=>p,getChain(){if(r)return r=F(r.id)||r,r},getConfig:()=>i,id:a,subscribe:h.subscribe,switchChain:async o=>{var s;if((i!=null&&i.smartAccount||((s=i==null?void 0:i.executionMode)==null?void 0:s.mode)==="EIP4337")&&f&&l){const{autoConnectInAppWallet:u}=await C(async()=>{const{autoConnectInAppWallet:g}=await import("./index-jKMvOo_6.js").then(W=>W.j);return{autoConnectInAppWallet:g}},__vite__mapDeps([0,1,2,3])),A=await I(f,e,c);await P({chain:o});const{account:y,chain:w,adminAccount:d}=await u({chain:o,client:f},i,A);_=d,l=y,r=w}else r=o;h.emit("chainChanged",o)}}}function N(t){return M({connectorFactory:async n=>{var c;const{InAppWebConnector:e}=await C(async()=>{const{InAppWebConnector:a}=await import("./web-connector-BMJtDugH.js");return{InAppWebConnector:a}},__vite__mapDeps([4,1,5,3]));return new e({client:n,passkeyDomain:(c=t==null?void 0:t.auth)==null?void 0:c.passkeyDomain,storage:t==null?void 0:t.storage})},createOptions:t})}async function m(t,n){return I(t,async e=>{const{InAppWebConnector:c}=await C(async()=>{const{InAppWebConnector:a}=await import("./web-connector-BMJtDugH.js");return{InAppWebConnector:a}},__vite__mapDeps([4,1,5,3]));return new c({client:e,ecosystem:n})},n)}async function v(t){const{client:n,ecosystem:e}=t,a=await(await m(n,e)).getUser();switch(a.status){case"Logged In, Wallet Initialized":return a}}async function S(t){const n=await v(t);if(n&&"email"in n.authDetails)return n.authDetails.email}async function j(t){const n=await v(t);if(n&&"phoneNumber"in n.authDetails)return n.authDetails.phoneNumber}async function V(t){return(await m(t.client,t.ecosystem)).preAuthenticate(t)}async function z(t){return(await m(t.client,t.ecosystem)).authenticate(t)}async function Y(t){const n=await m(t.client,t.ecosystem);if(!n.authenticateWithRedirect)throw new Error("authenticateWithRedirect is not supported on this platform");return n.authenticateWithRedirect(t.strategy,t.mode,t.redirectUrl)}async function $(t){return await(await m(t.client,t.ecosystem)).linkProfile(t)}async function K(t){return await(await m(t.client,t.ecosystem)).unlinkProfile(t.profileToUnlink,t.allowAccountDeletion)}async function B(t){return(await m(t.client,t.ecosystem)).getProfiles()}function H(t){let n;return()=>(n||(n=t()),n)}const Z="0x3f707e6b",q=[{type:"tuple[]",name:"calls",components:[{type:"address",name:"target"},{type:"uint256",name:"value"},{type:"bytes",name:"data"}]}],J=[];function Q(t){const n=H(async()=>"asyncParams"in t?await t.asyncParams():t);return U({contract:t.contract,method:[Z,q,J],params:async()=>[(await n()).calls],value:async()=>{var e;return(e=(await n()).overrides)==null?void 0:e.value},accessList:async()=>{var e;return(e=(await n()).overrides)==null?void 0:e.accessList},gas:async()=>{var e;return(e=(await n()).overrides)==null?void 0:e.gas},gasPrice:async()=>{var e;return(e=(await n()).overrides)==null?void 0:e.gasPrice},maxFeePerGas:async()=>{var e;return(e=(await n()).overrides)==null?void 0:e.maxFeePerGas},maxPriorityFeePerGas:async()=>{var e;return(e=(await n()).overrides)==null?void 0:e.maxPriorityFeePerGas},nonce:async()=>{var e;return(e=(await n()).overrides)==null?void 0:e.nonce},extraGas:async()=>{var e;return(e=(await n()).overrides)==null?void 0:e.extraGas},erc20Value:async()=>{var e;return(e=(await n()).overrides)==null?void 0:e.erc20Value},authorizationList:async()=>{var e;return(e=(await n()).overrides)==null?void 0:e.authorizationList}})}const tt=Object.freeze(Object.defineProperty({__proto__:null,authenticate:z,execute:Q,getProfiles:B,getUserEmail:S,getUserPhoneNumber:j,inAppWallet:N,linkProfile:$,preAuthenticate:V,unlinkProfile:K},Symbol.toStringTag,{value:"Module"}));export{M as a,z as b,O as c,Y as d,Q as e,B as f,G as g,S as h,N as i,j,tt as k,$ as l,H as o,V as p,E as t,K as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{L as b,l as h,m as p,o as g,q as m,w as f}from"./thirdweb-
|
|
1
|
+
import{L as b,l as h,m as p,o as g,q as m,w as f}from"./thirdweb-DPyPz8hM.js";const u=new b(1e3);async function H(i){const{account:n,calls:l}=i,o=l.map(a=>({...a,chain:i.chain})),t=[],c=g(65);if(u.set(c,t),n.sendBatchTransaction){const a=await m({account:n,transactions:o});t.push(a.transactionHash),u.set(c,t)}else for(const a of o){const r=await f({account:n,transaction:a});t.push(r.transactionHash),u.set(c,t)}return c}async function k(i){const{chain:n,client:l,id:o}=i,t=u.get(o);if(!t)throw new Error("Failed to get calls status, unknown bundle id");const c=h({chain:n,client:l});let a="success";const r=await Promise.all(t.map(d=>p(c,{hash:d}).then(s=>({blockHash:s.blockHash,blockNumber:s.blockNumber,gasUsed:s.gasUsed,logs:s.logs.map(e=>({address:e.address,data:e.data,topics:e.topics})),status:s.status,transactionHash:s.transactionHash})).catch(()=>(a="pending",null))));return{atomic:!1,chainId:n.id,id:o,receipts:r.filter(d=>d!==null),status:a,statusCode:200,version:"2.0.0"}}async function x(i){const{chain:n,client:l,id:o}=i,t=u.get(o);if(!t)throw new Error("Failed to get calls status, unknown bundle id");const c=h({chain:n,client:l});let a=200;const r=[];for(const d of t)try{const s=await p(c,{hash:d});r.push({blockHash:s.blockHash,blockNumber:`0x${s.blockNumber.toString(16)}`,gasUsed:`0x${s.gasUsed.toString(16)}`,logs:s.logs.map(e=>({address:e.address,data:e.data,topics:e.topics})),status:s.status==="success"?"0x1":"0x0",transactionHash:s.transactionHash})}catch{a=100}return{atomic:!1,chainId:`0x${n.id.toString(16)}`,id:o,receipts:r,status:a,version:"2.0.0"}}export{k as inAppWalletGetCallsStatus,x as inAppWalletGetCallsStatusRaw,H as inAppWalletSendCalls};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as U,r as Ie,e as ve,i as _,h as l,v as Se,j as ke}from"./index-
|
|
1
|
+
import{d as U,r as Ie,e as ve,i as _,h as l,v as Se,j as ke}from"./index-u_SlvcW1.js";import{n as b,c as C,r as h,U as _e,b as Ne}from"./index-D_Xs3V1v.js";import{o as f}from"./if-defined-Dvkl8Ar_.js";import"./index-ChYYLOHS.js";import"./index-DeORQI-T.js";import"./index-D4UpXeWh.js";import"./index-CvYVy6tx.js";import"./index-sKL8bC2g.js";import"./index-BcREN0uK.js";import"./index-DIg4R8ZL.js";import{P as Ce,d as v,K as $e,L as y,a as O,Q as Re,U as N,O as ce,N as A,V as me,C as m,p as Oe,j as T,E as M,S as R,h as Ue,M as G,s as Le,c as qe,i as P,R as z}from"./W3MFrameProviderSingleton-CIiCpPR2.js";import{C as I}from"./NetworkUtil-b0ox1saC.js";import"./index-iELfa5tW.js";import{M as ge}from"./MathUtil-BGCe3rZ3.js";const De=U`
|
|
2
2
|
:host {
|
|
3
3
|
position: relative;
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as b,r as p,e as f,i as m,h as l}from"./index-
|
|
1
|
+
import{d as b,r as p,e as f,i as m,h as l}from"./index-u_SlvcW1.js";import{n as s,c as v}from"./index-D_Xs3V1v.js";const h=b`
|
|
2
2
|
button {
|
|
3
3
|
border: none;
|
|
4
4
|
background: transparent;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as k,d as W,r as I,i as M,h as v}from"./index-
|
|
1
|
+
import{w as k,d as W,r as I,i as M,h as v}from"./index-u_SlvcW1.js";import{n as y,c as O}from"./index-D_Xs3V1v.js";import"./index-D4UpXeWh.js";import{Q as N}from"./browser-oBbhNYjx.js";const Q=.1,_=2.5,$=7;function x(t,a,d){return t===a?!1:(t-a<0?a-t:t-a)<=d+Q}function A(t,a){const d=Array.prototype.slice.call(N.create(t,{errorCorrectionLevel:a}).modules.data,0),l=Math.sqrt(d.length);return d.reduce((h,f,p)=>(p%l===0?h.push([f]):h[h.length-1].push(f))&&h,[])}const q={generate({uri:t,size:a,logoSize:d,padding:l=8,dotColor:h="var(--apkt-colors-black)"}){const p=[],u=A(t,"Q"),n=(a-2*l)/u.length,E=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];E.forEach(({x:i,y:e})=>{const s=(u.length-$)*n*i+l,r=(u.length-$)*n*e+l,c=.45;for(let o=0;o<E.length;o+=1){const m=n*($-o*2);p.push(k`
|
|
2
2
|
<rect
|
|
3
3
|
fill=${o===2?"var(--apkt-colors-black)":"var(--apkt-colors-white)"}
|
|
4
4
|
width=${o===0?m-10:m}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var To=Object.defineProperty;var Oo=(e,r,t)=>r in e?To(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t;var Ce=(e,r,t)=>Oo(e,typeof r!="symbol"?r+"":r,t);import{a as Lo,j as Po}from"./index-CggZa2U-.js";import{c as Fr,g as Ho}from"./thirdweb-BN-o7KJZ.js";import{f as Mo,r as No}from"./ui-SU3DzdVu.js";import"./vendor-CfKmFCYk.js";var Be={exports:{}},be={exports:{}},Uo=be.exports,yt;function N(){return yt||(yt=1,function(e,r){(function(t,n){e.exports=n()})(Uo,function(){var t=t||function(n,o){var a;if(typeof window<"u"&&window.crypto&&(a=window.crypto),typeof self<"u"&&self.crypto&&(a=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(a=globalThis.crypto),!a&&typeof window<"u"&&window.msCrypto&&(a=window.msCrypto),!a&&typeof Fr<"u"&&Fr.crypto&&(a=Fr.crypto),!a&&typeof Mo=="function")try{a=No()}catch{}var x=function(){if(a){if(typeof a.getRandomValues=="function")try{return a.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof a.randomBytes=="function")try{return a.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},u=Object.create||function(){function p(){}return function(g){var E;return p.prototype=g,E=new p,p.prototype=null,E}}(),d={},i=d.lib={},s=i.Base=function(){return{extend:function(p){var g=u(this);return p&&g.mixIn(p),(!g.hasOwnProperty("init")||this.init===g.init)&&(g.init=function(){g.$super.init.apply(this,arguments)}),g.init.prototype=g,g.$super=this,g},create:function(){var p=this.extend();return p.init.apply(p,arguments),p},init:function(){},mixIn:function(p){for(var g in p)p.hasOwnProperty(g)&&(this[g]=p[g]);p.hasOwnProperty("toString")&&(this.toString=p.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),f=i.WordArray=s.extend({init:function(p,g){p=this.words=p||[],g!=o?this.sigBytes=g:this.sigBytes=p.length*4},toString:function(p){return(p||l).stringify(this)},concat:function(p){var g=this.words,E=p.words,B=this.sigBytes,A=p.sigBytes;if(this.clamp(),B%4)for(var _=0;_<A;_++){var D=E[_>>>2]>>>24-_%4*8&255;g[B+_>>>2]|=D<<24-(B+_)%4*8}else for(var T=0;T<A;T+=4)g[B+T>>>2]=E[T>>>2];return this.sigBytes+=A,this},clamp:function(){var p=this.words,g=this.sigBytes;p[g>>>2]&=4294967295<<32-g%4*8,p.length=n.ceil(g/4)},clone:function(){var p=s.clone.call(this);return p.words=this.words.slice(0),p},random:function(p){for(var g=[],E=0;E<p;E+=4)g.push(x());return new f.init(g,p)}}),c=d.enc={},l=c.Hex={stringify:function(p){for(var g=p.words,E=p.sigBytes,B=[],A=0;A<E;A++){var _=g[A>>>2]>>>24-A%4*8&255;B.push((_>>>4).toString(16)),B.push((_&15).toString(16))}return B.join("")},parse:function(p){for(var g=p.length,E=[],B=0;B<g;B+=2)E[B>>>3]|=parseInt(p.substr(B,2),16)<<24-B%8*4;return new f.init(E,g/2)}},v=c.Latin1={stringify:function(p){for(var g=p.words,E=p.sigBytes,B=[],A=0;A<E;A++){var _=g[A>>>2]>>>24-A%4*8&255;B.push(String.fromCharCode(_))}return B.join("")},parse:function(p){for(var g=p.length,E=[],B=0;B<g;B++)E[B>>>2]|=(p.charCodeAt(B)&255)<<24-B%4*8;return new f.init(E,g)}},h=c.Utf8={stringify:function(p){try{return decodeURIComponent(escape(v.stringify(p)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(p){return v.parse(unescape(encodeURIComponent(p)))}},C=i.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(p){typeof p=="string"&&(p=h.parse(p)),this._data.concat(p),this._nDataBytes+=p.sigBytes},_process:function(p){var g,E=this._data,B=E.words,A=E.sigBytes,_=this.blockSize,D=_*4,T=A/D;p?T=n.ceil(T):T=n.max((T|0)-this._minBufferSize,0);var y=T*_,b=n.min(y*4,A);if(y){for(var S=0;S<y;S+=_)this._doProcessBlock(B,S);g=B.splice(0,y),E.sigBytes-=b}return new f.init(g,b)},clone:function(){var p=s.clone.call(this);return p._data=this._data.clone(),p},_minBufferSize:0});i.Hasher=C.extend({cfg:s.extend(),init:function(p){this.cfg=this.cfg.extend(p),this.reset()},reset:function(){C.reset.call(this),this._doReset()},update:function(p){return this._append(p),this._process(),this},finalize:function(p){p&&this._append(p);var g=this._doFinalize();return g},blockSize:16,_createHelper:function(p){return function(g,E){return new p.init(E).finalize(g)}},_createHmacHelper:function(p){return function(g,E){return new m.HMAC.init(p,E).finalize(g)}}});var m=d.algo={};return d}(Math);return t})}(be)),be.exports}var De={exports:{}},qo=De.exports,At;function mr(){return At||(At=1,function(e,r){(function(t,n){e.exports=n(N())})(qo,function(t){return function(n){var o=t,a=o.lib,x=a.Base,u=a.WordArray,d=o.x64={};d.Word=x.extend({init:function(i,s){this.high=i,this.low=s}}),d.WordArray=x.extend({init:function(i,s){i=this.words=i||[],s!=n?this.sigBytes=s:this.sigBytes=i.length*8},toX32:function(){for(var i=this.words,s=i.length,f=[],c=0;c<s;c++){var l=i[c];f.push(l.high),f.push(l.low)}return u.create(f,this.sigBytes)},clone:function(){for(var i=x.clone.call(this),s=i.words=this.words.slice(0),f=s.length,c=0;c<f;c++)s[c]=s[c].clone();return i}})}(),t})}(De)),De.exports}var Fe={exports:{}},zo=Fe.exports,Bt;function Go(){return Bt||(Bt=1,function(e,r){(function(t,n){e.exports=n(N())})(zo,function(t){return function(){if(typeof ArrayBuffer=="function"){var n=t,o=n.lib,a=o.WordArray,x=a.init,u=a.init=function(d){if(d instanceof ArrayBuffer&&(d=new Uint8Array(d)),(d instanceof Int8Array||typeof Uint8ClampedArray<"u"&&d instanceof Uint8ClampedArray||d instanceof Int16Array||d instanceof Uint16Array||d instanceof Int32Array||d instanceof Uint32Array||d instanceof Float32Array||d instanceof Float64Array)&&(d=new Uint8Array(d.buffer,d.byteOffset,d.byteLength)),d instanceof Uint8Array){for(var i=d.byteLength,s=[],f=0;f<i;f++)s[f>>>2]|=d[f]<<24-f%4*8;x.call(this,s,i)}else x.apply(this,arguments)};u.prototype=a}}(),t.lib.WordArray})}(Fe)),Fe.exports}var Se={exports:{}},Wo=Se.exports,bt;function $o(){return bt||(bt=1,function(e,r){(function(t,n){e.exports=n(N())})(Wo,function(t){return function(){var n=t,o=n.lib,a=o.WordArray,x=n.enc;x.Utf16=x.Utf16BE={stringify:function(d){for(var i=d.words,s=d.sigBytes,f=[],c=0;c<s;c+=2){var l=i[c>>>2]>>>16-c%4*8&65535;f.push(String.fromCharCode(l))}return f.join("")},parse:function(d){for(var i=d.length,s=[],f=0;f<i;f++)s[f>>>1]|=d.charCodeAt(f)<<16-f%2*16;return a.create(s,i*2)}},x.Utf16LE={stringify:function(d){for(var i=d.words,s=d.sigBytes,f=[],c=0;c<s;c+=2){var l=u(i[c>>>2]>>>16-c%4*8&65535);f.push(String.fromCharCode(l))}return f.join("")},parse:function(d){for(var i=d.length,s=[],f=0;f<i;f++)s[f>>>1]|=u(d.charCodeAt(f)<<16-f%2*16);return a.create(s,i*2)}};function u(d){return d<<8&4278255360|d>>>8&16711935}}(),t.enc.Utf16})}(Se)),Se.exports}var we={exports:{}},jo=we.exports,Dt;function I0(){return Dt||(Dt=1,function(e,r){(function(t,n){e.exports=n(N())})(jo,function(t){return function(){var n=t,o=n.lib,a=o.WordArray,x=n.enc;x.Base64={stringify:function(d){var i=d.words,s=d.sigBytes,f=this._map;d.clamp();for(var c=[],l=0;l<s;l+=3)for(var v=i[l>>>2]>>>24-l%4*8&255,h=i[l+1>>>2]>>>24-(l+1)%4*8&255,C=i[l+2>>>2]>>>24-(l+2)%4*8&255,m=v<<16|h<<8|C,p=0;p<4&&l+p*.75<s;p++)c.push(f.charAt(m>>>6*(3-p)&63));var g=f.charAt(64);if(g)for(;c.length%4;)c.push(g);return c.join("")},parse:function(d){var i=d.length,s=this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var c=0;c<s.length;c++)f[s.charCodeAt(c)]=c}var l=s.charAt(64);if(l){var v=d.indexOf(l);v!==-1&&(i=v)}return u(d,i,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function u(d,i,s){for(var f=[],c=0,l=0;l<i;l++)if(l%4){var v=s[d.charCodeAt(l-1)]<<l%4*2,h=s[d.charCodeAt(l)]>>>6-l%4*2,C=v|h;f[c>>>2]|=C<<24-c%4*8,c++}return a.create(f,c)}}(),t.enc.Base64})}(we)),we.exports}var ke={exports:{}},Vo=ke.exports,Ft;function Ko(){return Ft||(Ft=1,function(e,r){(function(t,n){e.exports=n(N())})(Vo,function(t){return function(){var n=t,o=n.lib,a=o.WordArray,x=n.enc;x.Base64url={stringify:function(d,i){i===void 0&&(i=!0);var s=d.words,f=d.sigBytes,c=i?this._safe_map:this._map;d.clamp();for(var l=[],v=0;v<f;v+=3)for(var h=s[v>>>2]>>>24-v%4*8&255,C=s[v+1>>>2]>>>24-(v+1)%4*8&255,m=s[v+2>>>2]>>>24-(v+2)%4*8&255,p=h<<16|C<<8|m,g=0;g<4&&v+g*.75<f;g++)l.push(c.charAt(p>>>6*(3-g)&63));var E=c.charAt(64);if(E)for(;l.length%4;)l.push(E);return l.join("")},parse:function(d,i){i===void 0&&(i=!0);var s=d.length,f=i?this._safe_map:this._map,c=this._reverseMap;if(!c){c=this._reverseMap=[];for(var l=0;l<f.length;l++)c[f.charCodeAt(l)]=l}var v=f.charAt(64);if(v){var h=d.indexOf(v);h!==-1&&(s=h)}return u(d,s,c)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function u(d,i,s){for(var f=[],c=0,l=0;l<i;l++)if(l%4){var v=s[d.charCodeAt(l-1)]<<l%4*2,h=s[d.charCodeAt(l)]>>>6-l%4*2,C=v|h;f[c>>>2]|=C<<24-c%4*8,c++}return a.create(f,c)}}(),t.enc.Base64url})}(ke)),ke.exports}var Re={exports:{}},Xo=Re.exports,St;function T0(){return St||(St=1,function(e,r){(function(t,n){e.exports=n(N())})(Xo,function(t){return function(n){var o=t,a=o.lib,x=a.WordArray,u=a.Hasher,d=o.algo,i=[];(function(){for(var h=0;h<64;h++)i[h]=n.abs(n.sin(h+1))*4294967296|0})();var s=d.MD5=u.extend({_doReset:function(){this._hash=new x.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(h,C){for(var m=0;m<16;m++){var p=C+m,g=h[p];h[p]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360}var E=this._hash.words,B=h[C+0],A=h[C+1],_=h[C+2],D=h[C+3],T=h[C+4],y=h[C+5],b=h[C+6],S=h[C+7],w=h[C+8],O=h[C+9],L=h[C+10],H=h[C+11],$=h[C+12],U=h[C+13],G=h[C+14],z=h[C+15],F=E[0],R=E[1],I=E[2],k=E[3];F=f(F,R,I,k,B,7,i[0]),k=f(k,F,R,I,A,12,i[1]),I=f(I,k,F,R,_,17,i[2]),R=f(R,I,k,F,D,22,i[3]),F=f(F,R,I,k,T,7,i[4]),k=f(k,F,R,I,y,12,i[5]),I=f(I,k,F,R,b,17,i[6]),R=f(R,I,k,F,S,22,i[7]),F=f(F,R,I,k,w,7,i[8]),k=f(k,F,R,I,O,12,i[9]),I=f(I,k,F,R,L,17,i[10]),R=f(R,I,k,F,H,22,i[11]),F=f(F,R,I,k,$,7,i[12]),k=f(k,F,R,I,U,12,i[13]),I=f(I,k,F,R,G,17,i[14]),R=f(R,I,k,F,z,22,i[15]),F=c(F,R,I,k,A,5,i[16]),k=c(k,F,R,I,b,9,i[17]),I=c(I,k,F,R,H,14,i[18]),R=c(R,I,k,F,B,20,i[19]),F=c(F,R,I,k,y,5,i[20]),k=c(k,F,R,I,L,9,i[21]),I=c(I,k,F,R,z,14,i[22]),R=c(R,I,k,F,T,20,i[23]),F=c(F,R,I,k,O,5,i[24]),k=c(k,F,R,I,G,9,i[25]),I=c(I,k,F,R,D,14,i[26]),R=c(R,I,k,F,w,20,i[27]),F=c(F,R,I,k,U,5,i[28]),k=c(k,F,R,I,_,9,i[29]),I=c(I,k,F,R,S,14,i[30]),R=c(R,I,k,F,$,20,i[31]),F=l(F,R,I,k,y,4,i[32]),k=l(k,F,R,I,w,11,i[33]),I=l(I,k,F,R,H,16,i[34]),R=l(R,I,k,F,G,23,i[35]),F=l(F,R,I,k,A,4,i[36]),k=l(k,F,R,I,T,11,i[37]),I=l(I,k,F,R,S,16,i[38]),R=l(R,I,k,F,L,23,i[39]),F=l(F,R,I,k,U,4,i[40]),k=l(k,F,R,I,B,11,i[41]),I=l(I,k,F,R,D,16,i[42]),R=l(R,I,k,F,b,23,i[43]),F=l(F,R,I,k,O,4,i[44]),k=l(k,F,R,I,$,11,i[45]),I=l(I,k,F,R,z,16,i[46]),R=l(R,I,k,F,_,23,i[47]),F=v(F,R,I,k,B,6,i[48]),k=v(k,F,R,I,S,10,i[49]),I=v(I,k,F,R,G,15,i[50]),R=v(R,I,k,F,y,21,i[51]),F=v(F,R,I,k,$,6,i[52]),k=v(k,F,R,I,D,10,i[53]),I=v(I,k,F,R,L,15,i[54]),R=v(R,I,k,F,A,21,i[55]),F=v(F,R,I,k,w,6,i[56]),k=v(k,F,R,I,z,10,i[57]),I=v(I,k,F,R,b,15,i[58]),R=v(R,I,k,F,U,21,i[59]),F=v(F,R,I,k,T,6,i[60]),k=v(k,F,R,I,H,10,i[61]),I=v(I,k,F,R,_,15,i[62]),R=v(R,I,k,F,O,21,i[63]),E[0]=E[0]+F|0,E[1]=E[1]+R|0,E[2]=E[2]+I|0,E[3]=E[3]+k|0},_doFinalize:function(){var h=this._data,C=h.words,m=this._nDataBytes*8,p=h.sigBytes*8;C[p>>>5]|=128<<24-p%32;var g=n.floor(m/4294967296),E=m;C[(p+64>>>9<<4)+15]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,C[(p+64>>>9<<4)+14]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,h.sigBytes=(C.length+1)*4,this._process();for(var B=this._hash,A=B.words,_=0;_<4;_++){var D=A[_];A[_]=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360}return B},clone:function(){var h=u.clone.call(this);return h._hash=this._hash.clone(),h}});function f(h,C,m,p,g,E,B){var A=h+(C&m|~C&p)+g+B;return(A<<E|A>>>32-E)+C}function c(h,C,m,p,g,E,B){var A=h+(C&p|m&~p)+g+B;return(A<<E|A>>>32-E)+C}function l(h,C,m,p,g,E,B){var A=h+(C^m^p)+g+B;return(A<<E|A>>>32-E)+C}function v(h,C,m,p,g,E,B){var A=h+(m^(C|~p))+g+B;return(A<<E|A>>>32-E)+C}o.MD5=u._createHelper(s),o.HmacMD5=u._createHmacHelper(s)}(Math),t.MD5})}(Re)),Re.exports}var Ie={exports:{}},Yo=Ie.exports,wt;function mn(){return wt||(wt=1,function(e,r){(function(t,n){e.exports=n(N())})(Yo,function(t){return function(){var n=t,o=n.lib,a=o.WordArray,x=o.Hasher,u=n.algo,d=[],i=u.SHA1=x.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(s,f){for(var c=this._hash.words,l=c[0],v=c[1],h=c[2],C=c[3],m=c[4],p=0;p<80;p++){if(p<16)d[p]=s[f+p]|0;else{var g=d[p-3]^d[p-8]^d[p-14]^d[p-16];d[p]=g<<1|g>>>31}var E=(l<<5|l>>>27)+m+d[p];p<20?E+=(v&h|~v&C)+1518500249:p<40?E+=(v^h^C)+1859775393:p<60?E+=(v&h|v&C|h&C)-1894007588:E+=(v^h^C)-899497514,m=C,C=h,h=v<<30|v>>>2,v=l,l=E}c[0]=c[0]+l|0,c[1]=c[1]+v|0,c[2]=c[2]+h|0,c[3]=c[3]+C|0,c[4]=c[4]+m|0},_doFinalize:function(){var s=this._data,f=s.words,c=this._nDataBytes*8,l=s.sigBytes*8;return f[l>>>5]|=128<<24-l%32,f[(l+64>>>9<<4)+14]=Math.floor(c/4294967296),f[(l+64>>>9<<4)+15]=c,s.sigBytes=f.length*4,this._process(),this._hash},clone:function(){var s=x.clone.call(this);return s._hash=this._hash.clone(),s}});n.SHA1=x._createHelper(i),n.HmacSHA1=x._createHmacHelper(i)}(),t.SHA1})}(Ie)),Ie.exports}var Te={exports:{}},Zo=Te.exports,kt;function Wr(){return kt||(kt=1,function(e,r){(function(t,n){e.exports=n(N())})(Zo,function(t){return function(n){var o=t,a=o.lib,x=a.WordArray,u=a.Hasher,d=o.algo,i=[],s=[];(function(){function l(m){for(var p=n.sqrt(m),g=2;g<=p;g++)if(!(m%g))return!1;return!0}function v(m){return(m-(m|0))*4294967296|0}for(var h=2,C=0;C<64;)l(h)&&(C<8&&(i[C]=v(n.pow(h,1/2))),s[C]=v(n.pow(h,1/3)),C++),h++})();var f=[],c=d.SHA256=u.extend({_doReset:function(){this._hash=new x.init(i.slice(0))},_doProcessBlock:function(l,v){for(var h=this._hash.words,C=h[0],m=h[1],p=h[2],g=h[3],E=h[4],B=h[5],A=h[6],_=h[7],D=0;D<64;D++){if(D<16)f[D]=l[v+D]|0;else{var T=f[D-15],y=(T<<25|T>>>7)^(T<<14|T>>>18)^T>>>3,b=f[D-2],S=(b<<15|b>>>17)^(b<<13|b>>>19)^b>>>10;f[D]=y+f[D-7]+S+f[D-16]}var w=E&B^~E&A,O=C&m^C&p^m&p,L=(C<<30|C>>>2)^(C<<19|C>>>13)^(C<<10|C>>>22),H=(E<<26|E>>>6)^(E<<21|E>>>11)^(E<<7|E>>>25),$=_+H+w+s[D]+f[D],U=L+O;_=A,A=B,B=E,E=g+$|0,g=p,p=m,m=C,C=$+U|0}h[0]=h[0]+C|0,h[1]=h[1]+m|0,h[2]=h[2]+p|0,h[3]=h[3]+g|0,h[4]=h[4]+E|0,h[5]=h[5]+B|0,h[6]=h[6]+A|0,h[7]=h[7]+_|0},_doFinalize:function(){var l=this._data,v=l.words,h=this._nDataBytes*8,C=l.sigBytes*8;return v[C>>>5]|=128<<24-C%32,v[(C+64>>>9<<4)+14]=n.floor(h/4294967296),v[(C+64>>>9<<4)+15]=h,l.sigBytes=v.length*4,this._process(),this._hash},clone:function(){var l=u.clone.call(this);return l._hash=this._hash.clone(),l}});o.SHA256=u._createHelper(c),o.HmacSHA256=u._createHmacHelper(c)}(Math),t.SHA256})}(Te)),Te.exports}var Oe={exports:{}},Qo=Oe.exports,Rt;function Jo(){return Rt||(Rt=1,function(e,r){(function(t,n,o){e.exports=n(N(),Wr())})(Qo,function(t){return function(){var n=t,o=n.lib,a=o.WordArray,x=n.algo,u=x.SHA256,d=x.SHA224=u.extend({_doReset:function(){this._hash=new a.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var i=u._doFinalize.call(this);return i.sigBytes-=4,i}});n.SHA224=u._createHelper(d),n.HmacSHA224=u._createHmacHelper(d)}(),t.SHA224})}(Oe)),Oe.exports}var Le={exports:{}},ea=Le.exports,It;function yn(){return It||(It=1,function(e,r){(function(t,n,o){e.exports=n(N(),mr())})(ea,function(t){return function(){var n=t,o=n.lib,a=o.Hasher,x=n.x64,u=x.Word,d=x.WordArray,i=n.algo;function s(){return u.create.apply(u,arguments)}var f=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],c=[];(function(){for(var v=0;v<80;v++)c[v]=s()})();var l=i.SHA512=a.extend({_doReset:function(){this._hash=new d.init([new u.init(1779033703,4089235720),new u.init(3144134277,2227873595),new u.init(1013904242,4271175723),new u.init(2773480762,1595750129),new u.init(1359893119,2917565137),new u.init(2600822924,725511199),new u.init(528734635,4215389547),new u.init(1541459225,327033209)])},_doProcessBlock:function(v,h){for(var C=this._hash.words,m=C[0],p=C[1],g=C[2],E=C[3],B=C[4],A=C[5],_=C[6],D=C[7],T=m.high,y=m.low,b=p.high,S=p.low,w=g.high,O=g.low,L=E.high,H=E.low,$=B.high,U=B.low,G=A.high,z=A.low,F=_.high,R=_.low,I=D.high,k=D.low,j=T,W=y,r0=b,M=S,Y0=w,U0=O,br=L,Z0=H,i0=$,t0=U,pe=G,Q0=z,he=F,J0=R,Dr=I,ee=k,s0=0;s0<80;s0++){var a0,h0,ge=c[s0];if(s0<16)h0=ge.high=v[h+s0*2]|0,a0=ge.low=v[h+s0*2+1]|0;else{var ut=c[s0-15],q0=ut.high,re=ut.low,_o=(q0>>>1|re<<31)^(q0>>>8|re<<24)^q0>>>7,ft=(re>>>1|q0<<31)^(re>>>8|q0<<24)^(re>>>7|q0<<25),dt=c[s0-2],z0=dt.high,te=dt.low,mo=(z0>>>19|te<<13)^(z0<<3|te>>>29)^z0>>>6,lt=(te>>>19|z0<<13)^(te<<3|z0>>>29)^(te>>>6|z0<<26),vt=c[s0-7],yo=vt.high,Ao=vt.low,pt=c[s0-16],Bo=pt.high,ht=pt.low;a0=ft+Ao,h0=_o+yo+(a0>>>0<ft>>>0?1:0),a0=a0+lt,h0=h0+mo+(a0>>>0<lt>>>0?1:0),a0=a0+ht,h0=h0+Bo+(a0>>>0<ht>>>0?1:0),ge.high=h0,ge.low=a0}var bo=i0&pe^~i0&he,gt=t0&Q0^~t0&J0,Do=j&r0^j&Y0^r0&Y0,Fo=W&M^W&U0^M&U0,So=(j>>>28|W<<4)^(j<<30|W>>>2)^(j<<25|W>>>7),Ct=(W>>>28|j<<4)^(W<<30|j>>>2)^(W<<25|j>>>7),wo=(i0>>>14|t0<<18)^(i0>>>18|t0<<14)^(i0<<23|t0>>>9),ko=(t0>>>14|i0<<18)^(t0>>>18|i0<<14)^(t0<<23|i0>>>9),Et=f[s0],Ro=Et.high,_t=Et.low,n0=ee+ko,g0=Dr+wo+(n0>>>0<ee>>>0?1:0),n0=n0+gt,g0=g0+bo+(n0>>>0<gt>>>0?1:0),n0=n0+_t,g0=g0+Ro+(n0>>>0<_t>>>0?1:0),n0=n0+a0,g0=g0+h0+(n0>>>0<a0>>>0?1:0),mt=Ct+Fo,Io=So+Do+(mt>>>0<Ct>>>0?1:0);Dr=he,ee=J0,he=pe,J0=Q0,pe=i0,Q0=t0,t0=Z0+n0|0,i0=br+g0+(t0>>>0<Z0>>>0?1:0)|0,br=Y0,Z0=U0,Y0=r0,U0=M,r0=j,M=W,W=n0+mt|0,j=g0+Io+(W>>>0<n0>>>0?1:0)|0}y=m.low=y+W,m.high=T+j+(y>>>0<W>>>0?1:0),S=p.low=S+M,p.high=b+r0+(S>>>0<M>>>0?1:0),O=g.low=O+U0,g.high=w+Y0+(O>>>0<U0>>>0?1:0),H=E.low=H+Z0,E.high=L+br+(H>>>0<Z0>>>0?1:0),U=B.low=U+t0,B.high=$+i0+(U>>>0<t0>>>0?1:0),z=A.low=z+Q0,A.high=G+pe+(z>>>0<Q0>>>0?1:0),R=_.low=R+J0,_.high=F+he+(R>>>0<J0>>>0?1:0),k=D.low=k+ee,D.high=I+Dr+(k>>>0<ee>>>0?1:0)},_doFinalize:function(){var v=this._data,h=v.words,C=this._nDataBytes*8,m=v.sigBytes*8;h[m>>>5]|=128<<24-m%32,h[(m+128>>>10<<5)+30]=Math.floor(C/4294967296),h[(m+128>>>10<<5)+31]=C,v.sigBytes=h.length*4,this._process();var p=this._hash.toX32();return p},clone:function(){var v=a.clone.call(this);return v._hash=this._hash.clone(),v},blockSize:1024/32});n.SHA512=a._createHelper(l),n.HmacSHA512=a._createHmacHelper(l)}(),t.SHA512})}(Le)),Le.exports}var Pe={exports:{}},ra=Pe.exports,Tt;function ta(){return Tt||(Tt=1,function(e,r){(function(t,n,o){e.exports=n(N(),mr(),yn())})(ra,function(t){return function(){var n=t,o=n.x64,a=o.Word,x=o.WordArray,u=n.algo,d=u.SHA512,i=u.SHA384=d.extend({_doReset:function(){this._hash=new x.init([new a.init(3418070365,3238371032),new a.init(1654270250,914150663),new a.init(2438529370,812702999),new a.init(355462360,4144912697),new a.init(1731405415,4290775857),new a.init(2394180231,1750603025),new a.init(3675008525,1694076839),new a.init(1203062813,3204075428)])},_doFinalize:function(){var s=d._doFinalize.call(this);return s.sigBytes-=16,s}});n.SHA384=d._createHelper(i),n.HmacSHA384=d._createHmacHelper(i)}(),t.SHA384})}(Pe)),Pe.exports}var He={exports:{}},na=He.exports,Ot;function oa(){return Ot||(Ot=1,function(e,r){(function(t,n,o){e.exports=n(N(),mr())})(na,function(t){return function(n){var o=t,a=o.lib,x=a.WordArray,u=a.Hasher,d=o.x64,i=d.Word,s=o.algo,f=[],c=[],l=[];(function(){for(var C=1,m=0,p=0;p<24;p++){f[C+5*m]=(p+1)*(p+2)/2%64;var g=m%5,E=(2*C+3*m)%5;C=g,m=E}for(var C=0;C<5;C++)for(var m=0;m<5;m++)c[C+5*m]=m+(2*C+3*m)%5*5;for(var B=1,A=0;A<24;A++){for(var _=0,D=0,T=0;T<7;T++){if(B&1){var y=(1<<T)-1;y<32?D^=1<<y:_^=1<<y-32}B&128?B=B<<1^113:B<<=1}l[A]=i.create(_,D)}})();var v=[];(function(){for(var C=0;C<25;C++)v[C]=i.create()})();var h=s.SHA3=u.extend({cfg:u.cfg.extend({outputLength:512}),_doReset:function(){for(var C=this._state=[],m=0;m<25;m++)C[m]=new i.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(C,m){for(var p=this._state,g=this.blockSize/2,E=0;E<g;E++){var B=C[m+2*E],A=C[m+2*E+1];B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,A=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360;var _=p[E];_.high^=A,_.low^=B}for(var D=0;D<24;D++){for(var T=0;T<5;T++){for(var y=0,b=0,S=0;S<5;S++){var _=p[T+5*S];y^=_.high,b^=_.low}var w=v[T];w.high=y,w.low=b}for(var T=0;T<5;T++)for(var O=v[(T+4)%5],L=v[(T+1)%5],H=L.high,$=L.low,y=O.high^(H<<1|$>>>31),b=O.low^($<<1|H>>>31),S=0;S<5;S++){var _=p[T+5*S];_.high^=y,_.low^=b}for(var U=1;U<25;U++){var y,b,_=p[U],G=_.high,z=_.low,F=f[U];F<32?(y=G<<F|z>>>32-F,b=z<<F|G>>>32-F):(y=z<<F-32|G>>>64-F,b=G<<F-32|z>>>64-F);var R=v[c[U]];R.high=y,R.low=b}var I=v[0],k=p[0];I.high=k.high,I.low=k.low;for(var T=0;T<5;T++)for(var S=0;S<5;S++){var U=T+5*S,_=p[U],j=v[U],W=v[(T+1)%5+5*S],r0=v[(T+2)%5+5*S];_.high=j.high^~W.high&r0.high,_.low=j.low^~W.low&r0.low}var _=p[0],M=l[D];_.high^=M.high,_.low^=M.low}},_doFinalize:function(){var C=this._data,m=C.words;this._nDataBytes*8;var p=C.sigBytes*8,g=this.blockSize*32;m[p>>>5]|=1<<24-p%32,m[(n.ceil((p+1)/g)*g>>>5)-1]|=128,C.sigBytes=m.length*4,this._process();for(var E=this._state,B=this.cfg.outputLength/8,A=B/8,_=[],D=0;D<A;D++){var T=E[D],y=T.high,b=T.low;y=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,b=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,_.push(b),_.push(y)}return new x.init(_,B)},clone:function(){for(var C=u.clone.call(this),m=C._state=this._state.slice(0),p=0;p<25;p++)m[p]=m[p].clone();return C}});o.SHA3=u._createHelper(h),o.HmacSHA3=u._createHmacHelper(h)}(Math),t.SHA3})}(He)),He.exports}var Me={exports:{}},aa=Me.exports,Lt;function ia(){return Lt||(Lt=1,function(e,r){(function(t,n){e.exports=n(N())})(aa,function(t){/** @preserve
|
|
1
|
+
var To=Object.defineProperty;var Oo=(e,r,t)=>r in e?To(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t;var Ce=(e,r,t)=>Oo(e,typeof r!="symbol"?r+"":r,t);import{a as Lo,j as Po}from"./index-D-mIK_W5.js";import{c as Fr,g as Ho}from"./thirdweb-DPyPz8hM.js";import{f as Mo,r as No}from"./ui-ClNwMfQM.js";import"./vendor-D91ZcsI8.js";var Be={exports:{}},be={exports:{}},Uo=be.exports,yt;function N(){return yt||(yt=1,function(e,r){(function(t,n){e.exports=n()})(Uo,function(){var t=t||function(n,o){var a;if(typeof window<"u"&&window.crypto&&(a=window.crypto),typeof self<"u"&&self.crypto&&(a=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(a=globalThis.crypto),!a&&typeof window<"u"&&window.msCrypto&&(a=window.msCrypto),!a&&typeof Fr<"u"&&Fr.crypto&&(a=Fr.crypto),!a&&typeof Mo=="function")try{a=No()}catch{}var x=function(){if(a){if(typeof a.getRandomValues=="function")try{return a.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof a.randomBytes=="function")try{return a.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},u=Object.create||function(){function p(){}return function(g){var E;return p.prototype=g,E=new p,p.prototype=null,E}}(),d={},i=d.lib={},s=i.Base=function(){return{extend:function(p){var g=u(this);return p&&g.mixIn(p),(!g.hasOwnProperty("init")||this.init===g.init)&&(g.init=function(){g.$super.init.apply(this,arguments)}),g.init.prototype=g,g.$super=this,g},create:function(){var p=this.extend();return p.init.apply(p,arguments),p},init:function(){},mixIn:function(p){for(var g in p)p.hasOwnProperty(g)&&(this[g]=p[g]);p.hasOwnProperty("toString")&&(this.toString=p.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),f=i.WordArray=s.extend({init:function(p,g){p=this.words=p||[],g!=o?this.sigBytes=g:this.sigBytes=p.length*4},toString:function(p){return(p||l).stringify(this)},concat:function(p){var g=this.words,E=p.words,B=this.sigBytes,A=p.sigBytes;if(this.clamp(),B%4)for(var _=0;_<A;_++){var D=E[_>>>2]>>>24-_%4*8&255;g[B+_>>>2]|=D<<24-(B+_)%4*8}else for(var T=0;T<A;T+=4)g[B+T>>>2]=E[T>>>2];return this.sigBytes+=A,this},clamp:function(){var p=this.words,g=this.sigBytes;p[g>>>2]&=4294967295<<32-g%4*8,p.length=n.ceil(g/4)},clone:function(){var p=s.clone.call(this);return p.words=this.words.slice(0),p},random:function(p){for(var g=[],E=0;E<p;E+=4)g.push(x());return new f.init(g,p)}}),c=d.enc={},l=c.Hex={stringify:function(p){for(var g=p.words,E=p.sigBytes,B=[],A=0;A<E;A++){var _=g[A>>>2]>>>24-A%4*8&255;B.push((_>>>4).toString(16)),B.push((_&15).toString(16))}return B.join("")},parse:function(p){for(var g=p.length,E=[],B=0;B<g;B+=2)E[B>>>3]|=parseInt(p.substr(B,2),16)<<24-B%8*4;return new f.init(E,g/2)}},v=c.Latin1={stringify:function(p){for(var g=p.words,E=p.sigBytes,B=[],A=0;A<E;A++){var _=g[A>>>2]>>>24-A%4*8&255;B.push(String.fromCharCode(_))}return B.join("")},parse:function(p){for(var g=p.length,E=[],B=0;B<g;B++)E[B>>>2]|=(p.charCodeAt(B)&255)<<24-B%4*8;return new f.init(E,g)}},h=c.Utf8={stringify:function(p){try{return decodeURIComponent(escape(v.stringify(p)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(p){return v.parse(unescape(encodeURIComponent(p)))}},C=i.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(p){typeof p=="string"&&(p=h.parse(p)),this._data.concat(p),this._nDataBytes+=p.sigBytes},_process:function(p){var g,E=this._data,B=E.words,A=E.sigBytes,_=this.blockSize,D=_*4,T=A/D;p?T=n.ceil(T):T=n.max((T|0)-this._minBufferSize,0);var y=T*_,b=n.min(y*4,A);if(y){for(var S=0;S<y;S+=_)this._doProcessBlock(B,S);g=B.splice(0,y),E.sigBytes-=b}return new f.init(g,b)},clone:function(){var p=s.clone.call(this);return p._data=this._data.clone(),p},_minBufferSize:0});i.Hasher=C.extend({cfg:s.extend(),init:function(p){this.cfg=this.cfg.extend(p),this.reset()},reset:function(){C.reset.call(this),this._doReset()},update:function(p){return this._append(p),this._process(),this},finalize:function(p){p&&this._append(p);var g=this._doFinalize();return g},blockSize:16,_createHelper:function(p){return function(g,E){return new p.init(E).finalize(g)}},_createHmacHelper:function(p){return function(g,E){return new m.HMAC.init(p,E).finalize(g)}}});var m=d.algo={};return d}(Math);return t})}(be)),be.exports}var De={exports:{}},qo=De.exports,At;function mr(){return At||(At=1,function(e,r){(function(t,n){e.exports=n(N())})(qo,function(t){return function(n){var o=t,a=o.lib,x=a.Base,u=a.WordArray,d=o.x64={};d.Word=x.extend({init:function(i,s){this.high=i,this.low=s}}),d.WordArray=x.extend({init:function(i,s){i=this.words=i||[],s!=n?this.sigBytes=s:this.sigBytes=i.length*8},toX32:function(){for(var i=this.words,s=i.length,f=[],c=0;c<s;c++){var l=i[c];f.push(l.high),f.push(l.low)}return u.create(f,this.sigBytes)},clone:function(){for(var i=x.clone.call(this),s=i.words=this.words.slice(0),f=s.length,c=0;c<f;c++)s[c]=s[c].clone();return i}})}(),t})}(De)),De.exports}var Fe={exports:{}},zo=Fe.exports,Bt;function Go(){return Bt||(Bt=1,function(e,r){(function(t,n){e.exports=n(N())})(zo,function(t){return function(){if(typeof ArrayBuffer=="function"){var n=t,o=n.lib,a=o.WordArray,x=a.init,u=a.init=function(d){if(d instanceof ArrayBuffer&&(d=new Uint8Array(d)),(d instanceof Int8Array||typeof Uint8ClampedArray<"u"&&d instanceof Uint8ClampedArray||d instanceof Int16Array||d instanceof Uint16Array||d instanceof Int32Array||d instanceof Uint32Array||d instanceof Float32Array||d instanceof Float64Array)&&(d=new Uint8Array(d.buffer,d.byteOffset,d.byteLength)),d instanceof Uint8Array){for(var i=d.byteLength,s=[],f=0;f<i;f++)s[f>>>2]|=d[f]<<24-f%4*8;x.call(this,s,i)}else x.apply(this,arguments)};u.prototype=a}}(),t.lib.WordArray})}(Fe)),Fe.exports}var Se={exports:{}},Wo=Se.exports,bt;function $o(){return bt||(bt=1,function(e,r){(function(t,n){e.exports=n(N())})(Wo,function(t){return function(){var n=t,o=n.lib,a=o.WordArray,x=n.enc;x.Utf16=x.Utf16BE={stringify:function(d){for(var i=d.words,s=d.sigBytes,f=[],c=0;c<s;c+=2){var l=i[c>>>2]>>>16-c%4*8&65535;f.push(String.fromCharCode(l))}return f.join("")},parse:function(d){for(var i=d.length,s=[],f=0;f<i;f++)s[f>>>1]|=d.charCodeAt(f)<<16-f%2*16;return a.create(s,i*2)}},x.Utf16LE={stringify:function(d){for(var i=d.words,s=d.sigBytes,f=[],c=0;c<s;c+=2){var l=u(i[c>>>2]>>>16-c%4*8&65535);f.push(String.fromCharCode(l))}return f.join("")},parse:function(d){for(var i=d.length,s=[],f=0;f<i;f++)s[f>>>1]|=u(d.charCodeAt(f)<<16-f%2*16);return a.create(s,i*2)}};function u(d){return d<<8&4278255360|d>>>8&16711935}}(),t.enc.Utf16})}(Se)),Se.exports}var we={exports:{}},jo=we.exports,Dt;function I0(){return Dt||(Dt=1,function(e,r){(function(t,n){e.exports=n(N())})(jo,function(t){return function(){var n=t,o=n.lib,a=o.WordArray,x=n.enc;x.Base64={stringify:function(d){var i=d.words,s=d.sigBytes,f=this._map;d.clamp();for(var c=[],l=0;l<s;l+=3)for(var v=i[l>>>2]>>>24-l%4*8&255,h=i[l+1>>>2]>>>24-(l+1)%4*8&255,C=i[l+2>>>2]>>>24-(l+2)%4*8&255,m=v<<16|h<<8|C,p=0;p<4&&l+p*.75<s;p++)c.push(f.charAt(m>>>6*(3-p)&63));var g=f.charAt(64);if(g)for(;c.length%4;)c.push(g);return c.join("")},parse:function(d){var i=d.length,s=this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var c=0;c<s.length;c++)f[s.charCodeAt(c)]=c}var l=s.charAt(64);if(l){var v=d.indexOf(l);v!==-1&&(i=v)}return u(d,i,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function u(d,i,s){for(var f=[],c=0,l=0;l<i;l++)if(l%4){var v=s[d.charCodeAt(l-1)]<<l%4*2,h=s[d.charCodeAt(l)]>>>6-l%4*2,C=v|h;f[c>>>2]|=C<<24-c%4*8,c++}return a.create(f,c)}}(),t.enc.Base64})}(we)),we.exports}var ke={exports:{}},Vo=ke.exports,Ft;function Ko(){return Ft||(Ft=1,function(e,r){(function(t,n){e.exports=n(N())})(Vo,function(t){return function(){var n=t,o=n.lib,a=o.WordArray,x=n.enc;x.Base64url={stringify:function(d,i){i===void 0&&(i=!0);var s=d.words,f=d.sigBytes,c=i?this._safe_map:this._map;d.clamp();for(var l=[],v=0;v<f;v+=3)for(var h=s[v>>>2]>>>24-v%4*8&255,C=s[v+1>>>2]>>>24-(v+1)%4*8&255,m=s[v+2>>>2]>>>24-(v+2)%4*8&255,p=h<<16|C<<8|m,g=0;g<4&&v+g*.75<f;g++)l.push(c.charAt(p>>>6*(3-g)&63));var E=c.charAt(64);if(E)for(;l.length%4;)l.push(E);return l.join("")},parse:function(d,i){i===void 0&&(i=!0);var s=d.length,f=i?this._safe_map:this._map,c=this._reverseMap;if(!c){c=this._reverseMap=[];for(var l=0;l<f.length;l++)c[f.charCodeAt(l)]=l}var v=f.charAt(64);if(v){var h=d.indexOf(v);h!==-1&&(s=h)}return u(d,s,c)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function u(d,i,s){for(var f=[],c=0,l=0;l<i;l++)if(l%4){var v=s[d.charCodeAt(l-1)]<<l%4*2,h=s[d.charCodeAt(l)]>>>6-l%4*2,C=v|h;f[c>>>2]|=C<<24-c%4*8,c++}return a.create(f,c)}}(),t.enc.Base64url})}(ke)),ke.exports}var Re={exports:{}},Xo=Re.exports,St;function T0(){return St||(St=1,function(e,r){(function(t,n){e.exports=n(N())})(Xo,function(t){return function(n){var o=t,a=o.lib,x=a.WordArray,u=a.Hasher,d=o.algo,i=[];(function(){for(var h=0;h<64;h++)i[h]=n.abs(n.sin(h+1))*4294967296|0})();var s=d.MD5=u.extend({_doReset:function(){this._hash=new x.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(h,C){for(var m=0;m<16;m++){var p=C+m,g=h[p];h[p]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360}var E=this._hash.words,B=h[C+0],A=h[C+1],_=h[C+2],D=h[C+3],T=h[C+4],y=h[C+5],b=h[C+6],S=h[C+7],w=h[C+8],O=h[C+9],L=h[C+10],H=h[C+11],$=h[C+12],U=h[C+13],G=h[C+14],z=h[C+15],F=E[0],R=E[1],I=E[2],k=E[3];F=f(F,R,I,k,B,7,i[0]),k=f(k,F,R,I,A,12,i[1]),I=f(I,k,F,R,_,17,i[2]),R=f(R,I,k,F,D,22,i[3]),F=f(F,R,I,k,T,7,i[4]),k=f(k,F,R,I,y,12,i[5]),I=f(I,k,F,R,b,17,i[6]),R=f(R,I,k,F,S,22,i[7]),F=f(F,R,I,k,w,7,i[8]),k=f(k,F,R,I,O,12,i[9]),I=f(I,k,F,R,L,17,i[10]),R=f(R,I,k,F,H,22,i[11]),F=f(F,R,I,k,$,7,i[12]),k=f(k,F,R,I,U,12,i[13]),I=f(I,k,F,R,G,17,i[14]),R=f(R,I,k,F,z,22,i[15]),F=c(F,R,I,k,A,5,i[16]),k=c(k,F,R,I,b,9,i[17]),I=c(I,k,F,R,H,14,i[18]),R=c(R,I,k,F,B,20,i[19]),F=c(F,R,I,k,y,5,i[20]),k=c(k,F,R,I,L,9,i[21]),I=c(I,k,F,R,z,14,i[22]),R=c(R,I,k,F,T,20,i[23]),F=c(F,R,I,k,O,5,i[24]),k=c(k,F,R,I,G,9,i[25]),I=c(I,k,F,R,D,14,i[26]),R=c(R,I,k,F,w,20,i[27]),F=c(F,R,I,k,U,5,i[28]),k=c(k,F,R,I,_,9,i[29]),I=c(I,k,F,R,S,14,i[30]),R=c(R,I,k,F,$,20,i[31]),F=l(F,R,I,k,y,4,i[32]),k=l(k,F,R,I,w,11,i[33]),I=l(I,k,F,R,H,16,i[34]),R=l(R,I,k,F,G,23,i[35]),F=l(F,R,I,k,A,4,i[36]),k=l(k,F,R,I,T,11,i[37]),I=l(I,k,F,R,S,16,i[38]),R=l(R,I,k,F,L,23,i[39]),F=l(F,R,I,k,U,4,i[40]),k=l(k,F,R,I,B,11,i[41]),I=l(I,k,F,R,D,16,i[42]),R=l(R,I,k,F,b,23,i[43]),F=l(F,R,I,k,O,4,i[44]),k=l(k,F,R,I,$,11,i[45]),I=l(I,k,F,R,z,16,i[46]),R=l(R,I,k,F,_,23,i[47]),F=v(F,R,I,k,B,6,i[48]),k=v(k,F,R,I,S,10,i[49]),I=v(I,k,F,R,G,15,i[50]),R=v(R,I,k,F,y,21,i[51]),F=v(F,R,I,k,$,6,i[52]),k=v(k,F,R,I,D,10,i[53]),I=v(I,k,F,R,L,15,i[54]),R=v(R,I,k,F,A,21,i[55]),F=v(F,R,I,k,w,6,i[56]),k=v(k,F,R,I,z,10,i[57]),I=v(I,k,F,R,b,15,i[58]),R=v(R,I,k,F,U,21,i[59]),F=v(F,R,I,k,T,6,i[60]),k=v(k,F,R,I,H,10,i[61]),I=v(I,k,F,R,_,15,i[62]),R=v(R,I,k,F,O,21,i[63]),E[0]=E[0]+F|0,E[1]=E[1]+R|0,E[2]=E[2]+I|0,E[3]=E[3]+k|0},_doFinalize:function(){var h=this._data,C=h.words,m=this._nDataBytes*8,p=h.sigBytes*8;C[p>>>5]|=128<<24-p%32;var g=n.floor(m/4294967296),E=m;C[(p+64>>>9<<4)+15]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,C[(p+64>>>9<<4)+14]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,h.sigBytes=(C.length+1)*4,this._process();for(var B=this._hash,A=B.words,_=0;_<4;_++){var D=A[_];A[_]=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360}return B},clone:function(){var h=u.clone.call(this);return h._hash=this._hash.clone(),h}});function f(h,C,m,p,g,E,B){var A=h+(C&m|~C&p)+g+B;return(A<<E|A>>>32-E)+C}function c(h,C,m,p,g,E,B){var A=h+(C&p|m&~p)+g+B;return(A<<E|A>>>32-E)+C}function l(h,C,m,p,g,E,B){var A=h+(C^m^p)+g+B;return(A<<E|A>>>32-E)+C}function v(h,C,m,p,g,E,B){var A=h+(m^(C|~p))+g+B;return(A<<E|A>>>32-E)+C}o.MD5=u._createHelper(s),o.HmacMD5=u._createHmacHelper(s)}(Math),t.MD5})}(Re)),Re.exports}var Ie={exports:{}},Yo=Ie.exports,wt;function mn(){return wt||(wt=1,function(e,r){(function(t,n){e.exports=n(N())})(Yo,function(t){return function(){var n=t,o=n.lib,a=o.WordArray,x=o.Hasher,u=n.algo,d=[],i=u.SHA1=x.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(s,f){for(var c=this._hash.words,l=c[0],v=c[1],h=c[2],C=c[3],m=c[4],p=0;p<80;p++){if(p<16)d[p]=s[f+p]|0;else{var g=d[p-3]^d[p-8]^d[p-14]^d[p-16];d[p]=g<<1|g>>>31}var E=(l<<5|l>>>27)+m+d[p];p<20?E+=(v&h|~v&C)+1518500249:p<40?E+=(v^h^C)+1859775393:p<60?E+=(v&h|v&C|h&C)-1894007588:E+=(v^h^C)-899497514,m=C,C=h,h=v<<30|v>>>2,v=l,l=E}c[0]=c[0]+l|0,c[1]=c[1]+v|0,c[2]=c[2]+h|0,c[3]=c[3]+C|0,c[4]=c[4]+m|0},_doFinalize:function(){var s=this._data,f=s.words,c=this._nDataBytes*8,l=s.sigBytes*8;return f[l>>>5]|=128<<24-l%32,f[(l+64>>>9<<4)+14]=Math.floor(c/4294967296),f[(l+64>>>9<<4)+15]=c,s.sigBytes=f.length*4,this._process(),this._hash},clone:function(){var s=x.clone.call(this);return s._hash=this._hash.clone(),s}});n.SHA1=x._createHelper(i),n.HmacSHA1=x._createHmacHelper(i)}(),t.SHA1})}(Ie)),Ie.exports}var Te={exports:{}},Zo=Te.exports,kt;function Wr(){return kt||(kt=1,function(e,r){(function(t,n){e.exports=n(N())})(Zo,function(t){return function(n){var o=t,a=o.lib,x=a.WordArray,u=a.Hasher,d=o.algo,i=[],s=[];(function(){function l(m){for(var p=n.sqrt(m),g=2;g<=p;g++)if(!(m%g))return!1;return!0}function v(m){return(m-(m|0))*4294967296|0}for(var h=2,C=0;C<64;)l(h)&&(C<8&&(i[C]=v(n.pow(h,1/2))),s[C]=v(n.pow(h,1/3)),C++),h++})();var f=[],c=d.SHA256=u.extend({_doReset:function(){this._hash=new x.init(i.slice(0))},_doProcessBlock:function(l,v){for(var h=this._hash.words,C=h[0],m=h[1],p=h[2],g=h[3],E=h[4],B=h[5],A=h[6],_=h[7],D=0;D<64;D++){if(D<16)f[D]=l[v+D]|0;else{var T=f[D-15],y=(T<<25|T>>>7)^(T<<14|T>>>18)^T>>>3,b=f[D-2],S=(b<<15|b>>>17)^(b<<13|b>>>19)^b>>>10;f[D]=y+f[D-7]+S+f[D-16]}var w=E&B^~E&A,O=C&m^C&p^m&p,L=(C<<30|C>>>2)^(C<<19|C>>>13)^(C<<10|C>>>22),H=(E<<26|E>>>6)^(E<<21|E>>>11)^(E<<7|E>>>25),$=_+H+w+s[D]+f[D],U=L+O;_=A,A=B,B=E,E=g+$|0,g=p,p=m,m=C,C=$+U|0}h[0]=h[0]+C|0,h[1]=h[1]+m|0,h[2]=h[2]+p|0,h[3]=h[3]+g|0,h[4]=h[4]+E|0,h[5]=h[5]+B|0,h[6]=h[6]+A|0,h[7]=h[7]+_|0},_doFinalize:function(){var l=this._data,v=l.words,h=this._nDataBytes*8,C=l.sigBytes*8;return v[C>>>5]|=128<<24-C%32,v[(C+64>>>9<<4)+14]=n.floor(h/4294967296),v[(C+64>>>9<<4)+15]=h,l.sigBytes=v.length*4,this._process(),this._hash},clone:function(){var l=u.clone.call(this);return l._hash=this._hash.clone(),l}});o.SHA256=u._createHelper(c),o.HmacSHA256=u._createHmacHelper(c)}(Math),t.SHA256})}(Te)),Te.exports}var Oe={exports:{}},Qo=Oe.exports,Rt;function Jo(){return Rt||(Rt=1,function(e,r){(function(t,n,o){e.exports=n(N(),Wr())})(Qo,function(t){return function(){var n=t,o=n.lib,a=o.WordArray,x=n.algo,u=x.SHA256,d=x.SHA224=u.extend({_doReset:function(){this._hash=new a.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var i=u._doFinalize.call(this);return i.sigBytes-=4,i}});n.SHA224=u._createHelper(d),n.HmacSHA224=u._createHmacHelper(d)}(),t.SHA224})}(Oe)),Oe.exports}var Le={exports:{}},ea=Le.exports,It;function yn(){return It||(It=1,function(e,r){(function(t,n,o){e.exports=n(N(),mr())})(ea,function(t){return function(){var n=t,o=n.lib,a=o.Hasher,x=n.x64,u=x.Word,d=x.WordArray,i=n.algo;function s(){return u.create.apply(u,arguments)}var f=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],c=[];(function(){for(var v=0;v<80;v++)c[v]=s()})();var l=i.SHA512=a.extend({_doReset:function(){this._hash=new d.init([new u.init(1779033703,4089235720),new u.init(3144134277,2227873595),new u.init(1013904242,4271175723),new u.init(2773480762,1595750129),new u.init(1359893119,2917565137),new u.init(2600822924,725511199),new u.init(528734635,4215389547),new u.init(1541459225,327033209)])},_doProcessBlock:function(v,h){for(var C=this._hash.words,m=C[0],p=C[1],g=C[2],E=C[3],B=C[4],A=C[5],_=C[6],D=C[7],T=m.high,y=m.low,b=p.high,S=p.low,w=g.high,O=g.low,L=E.high,H=E.low,$=B.high,U=B.low,G=A.high,z=A.low,F=_.high,R=_.low,I=D.high,k=D.low,j=T,W=y,r0=b,M=S,Y0=w,U0=O,br=L,Z0=H,i0=$,t0=U,pe=G,Q0=z,he=F,J0=R,Dr=I,ee=k,s0=0;s0<80;s0++){var a0,h0,ge=c[s0];if(s0<16)h0=ge.high=v[h+s0*2]|0,a0=ge.low=v[h+s0*2+1]|0;else{var ut=c[s0-15],q0=ut.high,re=ut.low,_o=(q0>>>1|re<<31)^(q0>>>8|re<<24)^q0>>>7,ft=(re>>>1|q0<<31)^(re>>>8|q0<<24)^(re>>>7|q0<<25),dt=c[s0-2],z0=dt.high,te=dt.low,mo=(z0>>>19|te<<13)^(z0<<3|te>>>29)^z0>>>6,lt=(te>>>19|z0<<13)^(te<<3|z0>>>29)^(te>>>6|z0<<26),vt=c[s0-7],yo=vt.high,Ao=vt.low,pt=c[s0-16],Bo=pt.high,ht=pt.low;a0=ft+Ao,h0=_o+yo+(a0>>>0<ft>>>0?1:0),a0=a0+lt,h0=h0+mo+(a0>>>0<lt>>>0?1:0),a0=a0+ht,h0=h0+Bo+(a0>>>0<ht>>>0?1:0),ge.high=h0,ge.low=a0}var bo=i0&pe^~i0&he,gt=t0&Q0^~t0&J0,Do=j&r0^j&Y0^r0&Y0,Fo=W&M^W&U0^M&U0,So=(j>>>28|W<<4)^(j<<30|W>>>2)^(j<<25|W>>>7),Ct=(W>>>28|j<<4)^(W<<30|j>>>2)^(W<<25|j>>>7),wo=(i0>>>14|t0<<18)^(i0>>>18|t0<<14)^(i0<<23|t0>>>9),ko=(t0>>>14|i0<<18)^(t0>>>18|i0<<14)^(t0<<23|i0>>>9),Et=f[s0],Ro=Et.high,_t=Et.low,n0=ee+ko,g0=Dr+wo+(n0>>>0<ee>>>0?1:0),n0=n0+gt,g0=g0+bo+(n0>>>0<gt>>>0?1:0),n0=n0+_t,g0=g0+Ro+(n0>>>0<_t>>>0?1:0),n0=n0+a0,g0=g0+h0+(n0>>>0<a0>>>0?1:0),mt=Ct+Fo,Io=So+Do+(mt>>>0<Ct>>>0?1:0);Dr=he,ee=J0,he=pe,J0=Q0,pe=i0,Q0=t0,t0=Z0+n0|0,i0=br+g0+(t0>>>0<Z0>>>0?1:0)|0,br=Y0,Z0=U0,Y0=r0,U0=M,r0=j,M=W,W=n0+mt|0,j=g0+Io+(W>>>0<n0>>>0?1:0)|0}y=m.low=y+W,m.high=T+j+(y>>>0<W>>>0?1:0),S=p.low=S+M,p.high=b+r0+(S>>>0<M>>>0?1:0),O=g.low=O+U0,g.high=w+Y0+(O>>>0<U0>>>0?1:0),H=E.low=H+Z0,E.high=L+br+(H>>>0<Z0>>>0?1:0),U=B.low=U+t0,B.high=$+i0+(U>>>0<t0>>>0?1:0),z=A.low=z+Q0,A.high=G+pe+(z>>>0<Q0>>>0?1:0),R=_.low=R+J0,_.high=F+he+(R>>>0<J0>>>0?1:0),k=D.low=k+ee,D.high=I+Dr+(k>>>0<ee>>>0?1:0)},_doFinalize:function(){var v=this._data,h=v.words,C=this._nDataBytes*8,m=v.sigBytes*8;h[m>>>5]|=128<<24-m%32,h[(m+128>>>10<<5)+30]=Math.floor(C/4294967296),h[(m+128>>>10<<5)+31]=C,v.sigBytes=h.length*4,this._process();var p=this._hash.toX32();return p},clone:function(){var v=a.clone.call(this);return v._hash=this._hash.clone(),v},blockSize:1024/32});n.SHA512=a._createHelper(l),n.HmacSHA512=a._createHmacHelper(l)}(),t.SHA512})}(Le)),Le.exports}var Pe={exports:{}},ra=Pe.exports,Tt;function ta(){return Tt||(Tt=1,function(e,r){(function(t,n,o){e.exports=n(N(),mr(),yn())})(ra,function(t){return function(){var n=t,o=n.x64,a=o.Word,x=o.WordArray,u=n.algo,d=u.SHA512,i=u.SHA384=d.extend({_doReset:function(){this._hash=new x.init([new a.init(3418070365,3238371032),new a.init(1654270250,914150663),new a.init(2438529370,812702999),new a.init(355462360,4144912697),new a.init(1731405415,4290775857),new a.init(2394180231,1750603025),new a.init(3675008525,1694076839),new a.init(1203062813,3204075428)])},_doFinalize:function(){var s=d._doFinalize.call(this);return s.sigBytes-=16,s}});n.SHA384=d._createHelper(i),n.HmacSHA384=d._createHmacHelper(i)}(),t.SHA384})}(Pe)),Pe.exports}var He={exports:{}},na=He.exports,Ot;function oa(){return Ot||(Ot=1,function(e,r){(function(t,n,o){e.exports=n(N(),mr())})(na,function(t){return function(n){var o=t,a=o.lib,x=a.WordArray,u=a.Hasher,d=o.x64,i=d.Word,s=o.algo,f=[],c=[],l=[];(function(){for(var C=1,m=0,p=0;p<24;p++){f[C+5*m]=(p+1)*(p+2)/2%64;var g=m%5,E=(2*C+3*m)%5;C=g,m=E}for(var C=0;C<5;C++)for(var m=0;m<5;m++)c[C+5*m]=m+(2*C+3*m)%5*5;for(var B=1,A=0;A<24;A++){for(var _=0,D=0,T=0;T<7;T++){if(B&1){var y=(1<<T)-1;y<32?D^=1<<y:_^=1<<y-32}B&128?B=B<<1^113:B<<=1}l[A]=i.create(_,D)}})();var v=[];(function(){for(var C=0;C<25;C++)v[C]=i.create()})();var h=s.SHA3=u.extend({cfg:u.cfg.extend({outputLength:512}),_doReset:function(){for(var C=this._state=[],m=0;m<25;m++)C[m]=new i.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(C,m){for(var p=this._state,g=this.blockSize/2,E=0;E<g;E++){var B=C[m+2*E],A=C[m+2*E+1];B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,A=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360;var _=p[E];_.high^=A,_.low^=B}for(var D=0;D<24;D++){for(var T=0;T<5;T++){for(var y=0,b=0,S=0;S<5;S++){var _=p[T+5*S];y^=_.high,b^=_.low}var w=v[T];w.high=y,w.low=b}for(var T=0;T<5;T++)for(var O=v[(T+4)%5],L=v[(T+1)%5],H=L.high,$=L.low,y=O.high^(H<<1|$>>>31),b=O.low^($<<1|H>>>31),S=0;S<5;S++){var _=p[T+5*S];_.high^=y,_.low^=b}for(var U=1;U<25;U++){var y,b,_=p[U],G=_.high,z=_.low,F=f[U];F<32?(y=G<<F|z>>>32-F,b=z<<F|G>>>32-F):(y=z<<F-32|G>>>64-F,b=G<<F-32|z>>>64-F);var R=v[c[U]];R.high=y,R.low=b}var I=v[0],k=p[0];I.high=k.high,I.low=k.low;for(var T=0;T<5;T++)for(var S=0;S<5;S++){var U=T+5*S,_=p[U],j=v[U],W=v[(T+1)%5+5*S],r0=v[(T+2)%5+5*S];_.high=j.high^~W.high&r0.high,_.low=j.low^~W.low&r0.low}var _=p[0],M=l[D];_.high^=M.high,_.low^=M.low}},_doFinalize:function(){var C=this._data,m=C.words;this._nDataBytes*8;var p=C.sigBytes*8,g=this.blockSize*32;m[p>>>5]|=1<<24-p%32,m[(n.ceil((p+1)/g)*g>>>5)-1]|=128,C.sigBytes=m.length*4,this._process();for(var E=this._state,B=this.cfg.outputLength/8,A=B/8,_=[],D=0;D<A;D++){var T=E[D],y=T.high,b=T.low;y=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,b=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,_.push(b),_.push(y)}return new x.init(_,B)},clone:function(){for(var C=u.clone.call(this),m=C._state=this._state.slice(0),p=0;p<25;p++)m[p]=m[p].clone();return C}});o.SHA3=u._createHelper(h),o.HmacSHA3=u._createHmacHelper(h)}(Math),t.SHA3})}(He)),He.exports}var Me={exports:{}},aa=Me.exports,Lt;function ia(){return Lt||(Lt=1,function(e,r){(function(t,n){e.exports=n(N())})(aa,function(t){/** @preserve
|
|
2
2
|
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
3
3
|
|
|
4
4
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{d as R,s as w,a as q,k as S,T as E,j as e,M as T}from"./ui-
|
|
1
|
+
import{d as R,s as w,a as q,k as S,T as E,j as e,M as T}from"./ui-ClNwMfQM.js";import{a as A,u as _,e as N}from"./vendor-D91ZcsI8.js";import"./thirdweb-DPyPz8hM.js";import{A as s,C as u,T as d,k as t,W as P,m as V,o as B,R as M,O as L,p as C,q as h,L as W,D as G,t as U,u as F,v as O}from"./index-DEC5wS5B.js";const g={hasClaimedName:!0,description:"My description",tutorialStep:4095,name:"MotherHacker",userId:"0xd9b96b5dc720fc52bede1ec3b40a930e15f70ddd",email:"",ethAddress:"0xd9b96b5dc720fc52bede1ec3b40a930e15f70ddd",version:64,avatar:{bodyShape:"urn:decentraland:off-chain:base-avatars:BaseMale",wearables:["urn:decentraland:off-chain:base-avatars:eyebrows_17","urn:decentraland:off-chain:base-avatars:eyes_07","urn:decentraland:off-chain:base-avatars:beard","urn:decentraland:off-chain:base-avatars:mouth_03","urn:decentraland:off-chain:base-avatars:hair_coolshortstyle","urn:decentraland:matic:collections-v2:0xc43914be599f3f8fe4956aa3ec9d6a6aead1edfa:0:84","urn:decentraland:matic:collections-v2:0xd50191baed16bc532feb9d499fdaa805fe01d3ff:6:631873750011343120187508166102022593913370572403294667525865865224","urn:decentraland:matic:collections-v2:0xc43914be599f3f8fe4956aa3ec9d6a6aead1edfa:2:210624583337114373395836055367340864637790190801098222508621955166","urn:decentraland:off-chain:base-avatars:punk_piercing","urn:decentraland:matic:collections-v2:0x6b9ad15f1b82eb1d8b0f13d847f348b56589f83c:0:78"],forceRender:[],emotes:[{urn:"urn:decentraland:matic:collections-v2:0xea954afa4d2a8d0624adfafeb0e5a725ef777774:1:105312291668557186697918027683670432318895095400549111254310977736",slot:0},{urn:"urn:decentraland:matic:collections-v2:0xd50191baed16bc532feb9d499fdaa805fe01d3ff:3:315936875005671560093754083051011296956685286201647333762932932714",slot:1},{urn:"urn:decentraland:matic:collections-v2:0xea954afa4d2a8d0624adfafeb0e5a725ef777774:0:219",slot:2},{urn:"urn:decentraland:matic:collections-v2:0xef832a5183bf2e4099efed4c6ec981b7b41aa545:0:124",slot:3},{slot:4,urn:"hammer"},{urn:"urn:decentraland:matic:collections-v2:0x768c1027b1f1a452ecb8dab017a1e630a75f0d30:1:105312291668557186697918027683670432318895095400549111254310977547",slot:5},{urn:"urn:decentraland:matic:collections-v2:0x83134b69f9af4cb3239e0645281902a0a02adb37:0:100",slot:6},{slot:7,urn:"kiss"},{urn:"urn:decentraland:matic:collections-v2:0xc43914be599f3f8fe4956aa3ec9d6a6aead1edfa:4:421249166674228746791672110734681729275580381602196445017243910359",slot:8},{urn:"urn:decentraland:matic:collections-v2:0x0b472c2c04325a545a43370b54e93c87f3d5badf:3:315936875005671560093754083051011296956685286201647333762932932643",slot:9}],snapshots:{body:"https://peer-ec2.decentraland.org/content/contents/bafkreierlxqaqy2wqjmdf5y46p7xdzg5skpfbeyaixyrzim2hdmimazbce",face256:"https://peer-ec2.decentraland.org/content/contents/bafkreicow7jrxxezwqdkv63lvgahf42khbnuvnm5auam4sp2ph7ghbhyhi"},eyes:{color:{r:.37109375,g:.22265625,b:.1953125}},hair:{color:{r:.234375,g:.12890625,b:.04296875}},skin:{color:{r:.60546875,g:.4609375,b:.35546875}}},interests:[],hasConnectedWeb3:!0,muted:[]},$={...g,hasClaimedName:!1,name:"MotherHacker"},l={contractAddress:"0x0000000000000000000000000000000000000000",description:"Test description",imageUrl:"https://peer.decentraland.org/lambdas/collections/contents/urn:decentraland:matic:collections-v2:0xfef5c99885c3036e591b6e6db52482891834a5f4:0/thumbnail",name:"Test NFT",rarity:R.Rarity.UNIQUE,toAddress:"0x0000000000000000000000000000000000000000",tokenId:"1",recipientProfile:{avatars:[g]}},c={manaAmount:"10 MANA",sceneImageUrl:"https://peer.decentraland.org/content/contents/bafybeietrfx6arffgapt65jkawued7mcsu75uuloodf3drxbvq2pfpggei",sceneName:"Test Scene",sceneLocation:{kind:"genesis",position:"-3,-2"},toAddress:"0x0000000000000000000000000000000000000000",recipientProfile:{avatars:[g]}},y="0xd9b96b5dc720fc52bede1ec3b40a930e15f70ddd",p="0x1234567890abcdef1234567890abcdef12345678",z="0x2791bca1f2de4661ed88a30c99a7a9449aa84174",H="0xa1c57f48f0deb89f569dfbe6e2b7f46d33606fd4",J=JSON.stringify({types:{EIP712Domain:[{name:"name",type:"string"},{name:"version",type:"string"},{name:"verifyingContract",type:"address"},{name:"salt",type:"bytes32"}],MetaTransaction:[{name:"nonce",type:"uint256"},{name:"from",type:"address"},{name:"functionSignature",type:"bytes"}]},domain:{name:"(PoS) Decentraland MANA",version:"1",verifyingContract:H,salt:"0x0000000000000000000000000000000000000000000000000000000000000089"},primaryType:"MetaTransaction",message:{nonce:12,from:y,functionSignature:`0xa9059cbb000000000000000000000000${p.slice(2)}0000000000000000000000000000000000000000000000056bc75e2d63100000`}},null,2),k=JSON.stringify({types:{EIP712Domain:[{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"}],Permit:[{name:"owner",type:"address"},{name:"spender",type:"address"},{name:"value",type:"uint256"},{name:"nonce",type:"uint256"},{name:"deadline",type:"uint256"}]},domain:{name:"USD Coin",version:"2",chainId:137,verifyingContract:z},primaryType:"Permit",message:{owner:y,spender:p,value:"115792089237316195423570985008687907853269984665640564039457584007913129639935",nonce:3,deadline:1893456e3}},null,2),D=`Welcome to Example Scene!
|
|
2
2
|
Click to sign in. This request will not trigger a blockchain transaction.
|
|
3
3
|
Nonce: 8f3a2c`,Q=`0x${Array.from(new TextEncoder().encode(D)).map(a=>a.toString(16).padStart(2,"0")).join("")}`,Y=`0x${"9f".repeat(32)}`,b="0xae7b0333000000000000000000000000fef5c99885c3036e591b6e6db52482891834a5f400000000000000000000000000000000000000000000000000000000000000070000000000000000000000000000000000000000000000056bc75e2d63100000",K=S({from:{opacity:0,transform:"translateY(-16px)"},to:{opacity:1,transform:"translateY(0)"}}),X=w(q)(({theme:a})=>({animation:`${K} ${a.transitions.duration.standard}ms ${a.transitions.easing.easeOut}`,backgroundColor:a.palette.background.paper,border:`1px solid ${a.palette.divider}`,borderRadius:a.shape.borderRadius,boxShadow:a.shadows[4],left:a.spacing(2),padding:a.spacing(1.5),position:"fixed",top:a.spacing(2),zIndex:a.zIndex.appBar})),Z=w(E)(({theme:a})=>({minWidth:a.spacing(40),"& .MuiInputBase-root":{backgroundColor:a.palette.background.paper}})),r="test-request-id",n=()=>{},i=async()=>{},re=()=>{const[a,o]=A.useState(!1),I=_(),{viewId:m}=N(),x=A.useMemo(()=>({closeWindow:{label:"CloseWindow",element:e.jsx(O,{})},continueInApp:{label:"ContinueInApp",element:e.jsx(F,{autoStart:!1,onContinue:n,requestId:r,deepLinkUrl:"decentraland://"})},deniedWalletInteraction:{label:"DeniedWalletInteraction",element:e.jsx(U,{})},differentAccountError:{label:"DifferentAccountError",element:e.jsx(G,{requestId:r})},loadingRequest:{label:"LoadingRequest",element:e.jsx(W,{})},manaTransfer:{label:"TransferConfirmView (Tip)",element:e.jsx(d,{type:t.TIP,transferData:c,isLoading:!1,onDeny:n,onApprove:i})},manaTransferWorld:{label:"TransferConfirmView (Tip, place is a world)",element:e.jsx(d,{type:t.TIP,transferData:{...c,sceneLocation:{kind:"world",name:"flagtag.dcl.eth"}},isLoading:!1,onDeny:n,onApprove:i})},manaTransferCanceled:{label:"TransferCanceledView (Tip)",element:e.jsx(h,{type:t.TIP,transferData:c})},manaTransferComplete:{label:"TransferCompletedView (Tip)",element:e.jsx(C,{type:t.TIP,transferData:c})},nftTransfer:{label:"TransferConfirmView (Gift)",element:e.jsx(d,{type:t.GIFT,transferData:l,isLoading:!1,chainId:137,onDeny:n,onApprove:i})},transferConfirmGiftCallbackConsent:{label:"TransferConfirmView (Gift, recipient without code — asks the delayed-code consent)",element:e.jsx(d,{type:t.GIFT,transferData:l,isLoading:!1,chainId:137,callbackAddresses:[l.toAddress],callbackAcknowledged:a,approveBlocked:!a,onCallbackAcknowledgedChange:o,onDeny:n,onApprove:i})},transferConfirmTipCallbackConsent:{label:"TransferConfirmView (Tip, recipient without code — asks the delayed-code consent)",element:e.jsx(d,{type:t.TIP,transferData:c,isLoading:!1,callbackAddresses:[c.toAddress],callbackAcknowledged:a,approveBlocked:!a,onCallbackAcknowledgedChange:o,onDeny:n,onApprove:i})},nftTransferUnclaimedName:{label:"TransferConfirmView (Gift, recipient with an unclaimed name)",element:e.jsx(d,{type:t.GIFT,transferData:{...l,recipientProfile:{avatars:[$]}},isLoading:!1,chainId:137,onDeny:n,onApprove:i})},nftTransferCanceled:{label:"TransferCanceledView (Gift)",element:e.jsx(h,{type:t.GIFT,transferData:l})},nftTransferComplete:{label:"TransferCompletedView (Gift)",element:e.jsx(C,{type:t.GIFT,transferData:l})},outdatedClientError:{label:"OutdatedClientError",element:e.jsx(L,{explorerText:"Explorer"})},recoverError:{label:"RecoverError",element:e.jsx(M,{onTryAgain:()=>alert("try again")})},signingError:{label:"SigningError",element:e.jsx(B,{error:"Test error"})},timeoutError:{label:"TimeoutError",element:e.jsx(V,{requestId:r})},walletInteractionComplete:{label:"WalletInteractionComplete",element:e.jsx(P,{})},walletNftInteraction:{label:"Wallet NFT Interaction",element:e.jsx(d,{type:t.GIFT,transferData:l,isLoading:!1,chainId:137,onDeny:n,onApprove:i})},walletManaInteraction:{label:"Wallet MANA Interaction",element:e.jsx(d,{type:t.TIP,transferData:c,isLoading:!1,onDeny:n,onApprove:i})},confirmRequestGasCovered:{label:"ConfirmRequestDialog (Transaction, gas covered)",element:e.jsx(u,{open:!0,kind:"transaction",gas:{covered:!0},onCancel:n,onConfirm:n})},confirmRequestUserPaysGas:{label:"ConfirmRequestDialog (Transaction, user pays gas)",element:e.jsx(u,{open:!0,kind:"transaction",gas:{covered:!1,status:"ready",cost:BigInt("4200000000000000"),chainId:137},onCancel:n,onConfirm:n})},confirmRequestSignature:{label:"ConfirmRequestDialog (Signature)",element:e.jsx(u,{open:!0,kind:"signature",onCancel:n,onConfirm:n})},actionTransaction:{label:"ActionRequest (transaction)",element:e.jsx(s,{requestId:r,payload:{kind:"transaction",to:p,data:b,value:"0x0",chainId:137},approveBlocked:!a,acknowledged:a,onAcknowledgedChange:o,onDeny:n,onApprove:n})},actionRelayedTransaction:{label:"ActionRequest (transaction relayed by Decentraland)",element:e.jsx(s,{requestId:r,payload:{kind:"transaction",to:p,data:b,value:"0x0",chainId:137,relayed:!0},approveBlocked:!a,acknowledged:a,onAcknowledgedChange:o,onDeny:n,onApprove:n})},actionNativeTransfer:{label:"ActionRequest (plain value transfer)",element:e.jsx(s,{requestId:r,payload:{kind:"transaction",to:y,data:"0x",value:"0x6f05b59d3b20000",chainId:137},approveBlocked:!a,acknowledged:a,onAcknowledgedChange:o,onDeny:n,onApprove:n})},actionMetaTransaction:{label:"ActionRequest (Decentraland meta-transaction signature)",element:e.jsx(s,{requestId:r,payload:{kind:"typed_data",raw:J},method:"eth_signTypedData_v4",approveBlocked:!a,acknowledged:a,onAcknowledgedChange:o,onDeny:n,onApprove:n})},actionTypedData:{label:"ActionRequest (typed data, a USDC permit)",element:e.jsx(s,{requestId:r,payload:{kind:"typed_data",raw:k},method:"eth_signTypedData_v4",approveBlocked:!a,acknowledged:a,onAcknowledgedChange:o,onDeny:n,onApprove:n})},actionTypedDataV3:{label:"ActionRequest (typed data, signed under eth_signTypedData_v3)",element:e.jsx(s,{requestId:r,payload:{kind:"typed_data",raw:k},method:"eth_signTypedData_v3",approveBlocked:!a,acknowledged:a,onAcknowledgedChange:o,onDeny:n,onApprove:n})},actionPersonalSign:{label:"ActionRequest (personal_sign)",element:e.jsx(s,{requestId:r,payload:{kind:"message",hex:Q,text:D},method:"personal_sign",approveBlocked:!a,acknowledged:a,onAcknowledgedChange:o,onDeny:n,onApprove:n})},actionPersonalSignUnreadable:{label:"ActionRequest (personal_sign, bytes that are not text)",element:e.jsx(s,{requestId:r,payload:{kind:"message",hex:Y,text:null},method:"personal_sign",approveBlocked:!a,acknowledged:a,onAcknowledgedChange:o,onDeny:n,onApprove:n})},actionRestarted:{label:"ActionRequest (review restarted after a network change)",element:e.jsx(s,{requestId:r,payload:{kind:"transaction",to:p,data:b,value:"0x0",chainId:137},reviewRestarted:!0,approveBlocked:!a,acknowledged:a,onAcknowledgedChange:o,onDeny:n,onApprove:n})}}),[a]),v=m?x[m]:void 0;return e.jsxs(e.Fragment,{children:[e.jsx(X,{children:e.jsxs(Z,{select:!0,label:"View",size:"small",value:m??"",onChange:f=>I(`/testView/${f.target.value}`),children:[e.jsx(T,{value:"",children:"Select a view…"}),Object.entries(x).map(([f,{label:j}])=>e.jsx(T,{value:f,children:j},f))]})}),v?v.element:null]})};export{re as TestViewPage};
|