@latticexyz/explorer 2.2.23-e1c2958b99c9fe4c7189ab24938e0978ff85a75f → 2.2.23-e9e21c9f1f7d164af1b19f327d798ed2f2d0fd95

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.
Files changed (40) hide show
  1. package/.next/standalone/packages/explorer/.next/BUILD_ID +1 -1
  2. package/.next/standalone/packages/explorer/.next/app-build-manifest.json +42 -42
  3. package/.next/standalone/packages/explorer/.next/app-path-routes-manifest.json +1 -1
  4. package/.next/standalone/packages/explorer/.next/build-manifest.json +2 -2
  5. package/.next/standalone/packages/explorer/.next/prerender-manifest.js +1 -1
  6. package/.next/standalone/packages/explorer/.next/prerender-manifest.json +1 -1
  7. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/page_client-reference-manifest.js +1 -1
  8. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/decode/page_client-reference-manifest.js +1 -1
  9. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/explore/page_client-reference-manifest.js +1 -1
  10. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/page.js +3 -3
  11. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/page_client-reference-manifest.js +1 -1
  12. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/observe/page_client-reference-manifest.js +1 -1
  13. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/page_client-reference-manifest.js +1 -1
  14. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/page_client-reference-manifest.js +1 -1
  15. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/api/system-abis/route.js +2 -2
  16. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/api/system-abis/route.js.nft.json +1 -1
  17. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/api/world-abi/route.js +1 -1
  18. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/api/world-abi/route.js.nft.json +1 -1
  19. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/page_client-reference-manifest.js +1 -1
  20. package/.next/standalone/packages/explorer/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  21. package/.next/standalone/packages/explorer/.next/server/app/_not-found.html +1 -1
  22. package/.next/standalone/packages/explorer/.next/server/app/_not-found.rsc +1 -1
  23. package/.next/standalone/packages/explorer/.next/server/app/internal/observer-relay/page_client-reference-manifest.js +1 -1
  24. package/.next/standalone/packages/explorer/.next/server/app/internal/observer-relay.html +1 -1
  25. package/.next/standalone/packages/explorer/.next/server/app/internal/observer-relay.rsc +1 -1
  26. package/.next/standalone/packages/explorer/.next/server/app-paths-manifest.json +3 -3
  27. package/.next/standalone/packages/explorer/.next/server/chunks/1250.js +1 -0
  28. package/.next/standalone/packages/explorer/.next/server/chunks/2425.js +19 -0
  29. package/.next/standalone/packages/explorer/.next/server/middleware-build-manifest.js +1 -1
  30. package/.next/standalone/packages/explorer/.next/server/pages/404.html +1 -1
  31. package/.next/standalone/packages/explorer/.next/server/pages/500.html +1 -1
  32. package/.next/standalone/packages/explorer/.next/server/server-reference-manifest.js +1 -1
  33. package/.next/standalone/packages/explorer/.next/server/server-reference-manifest.json +1 -1
  34. package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/page-7572d734233c2d34.js +1 -0
  35. package/package.json +10 -10
  36. package/.next/standalone/packages/explorer/.next/server/chunks/1522.js +0 -1
  37. package/.next/standalone/packages/explorer/.next/server/chunks/477.js +0 -19
  38. package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/page-1e744e17feea5bb2.js +0 -1
  39. /package/.next/standalone/packages/explorer/.next/static/{2-921MOvqjHFPC49aio4h → zi8nyPCTf-u5S7c7AJSgG}/_buildManifest.js +0 -0
  40. /package/.next/standalone/packages/explorer/.next/static/{2-921MOvqjHFPC49aio4h → zi8nyPCTf-u5S7c7AJSgG}/_ssgManifest.js +0 -0
@@ -0,0 +1,19 @@
1
+ exports.id=2425,exports.ids=[2425],exports.modules={86530:(e,t)=>{!function(e){"use strict";var t="object"==typeof process&&process.env?process.env:self;e.parser=function(e){return new c(e)},e.CParser=c,e.CStream=d,e.createStream=function(e){return new d(e)},e.MAX_BUFFER_LENGTH=65536,e.DEBUG="debug"===t.CDEBUG,e.INFO="debug"===t.CDEBUG||"info"===t.CDEBUG,e.EVENTS=["value","string","key","openobject","closeobject","openarray","closearray","error","end","ready"];var r,n={textNode:void 0,numberNode:""},s=e.EVENTS.filter(function(e){return"error"!==e&&"end"!==e}),i=0;for(var a in e.STATE={BEGIN:i++,VALUE:i++,OPEN_OBJECT:i++,CLOSE_OBJECT:i++,OPEN_ARRAY:i++,CLOSE_ARRAY:i++,TEXT_ESCAPE:i++,STRING:i++,BACKSLASH:i++,END:i++,OPEN_KEY:i++,CLOSE_KEY:i++,TRUE:i++,TRUE2:i++,TRUE3:i++,FALSE:i++,FALSE2:i++,FALSE3:i++,FALSE4:i++,NULL:i++,NULL2:i++,NULL3:i++,NUMBER_DECIMAL_POINT:i++,NUMBER_DIGIT:i++},e.STATE)e.STATE[e.STATE[a]]=a;i=e.STATE;let o={tab:9,lineFeed:10,carriageReturn:13,space:32,doubleQuote:34,plus:43,comma:44,minus:45,period:46,_0:48,_9:57,colon:58,E:69,openBracket:91,backslash:92,closeBracket:93,a:97,b:98,e:101,f:102,l:108,n:110,r:114,s:115,t:116,u:117,openBrace:123,closeBrace:125};function u(e){for(var t in n)e[t]=n[t]}Object.create||(Object.create=function(e){function t(){this.__proto__=e}return t.prototype=e,new t}),Object.getPrototypeOf||(Object.getPrototypeOf=function(e){return e.__proto__}),Object.keys||(Object.keys=function(e){var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t});var l=/[\\"\n]/g;function c(t){if(!(this instanceof c))return new c(t);u(this),this.bufferCheckPosition=e.MAX_BUFFER_LENGTH,this.q=this.c=this.p="",this.opt=t||{},this.closed=this.closedRoot=this.sawRoot=!1,this.tag=this.error=null,this.state=i.BEGIN,this.stack=[],this.position=this.column=0,this.line=1,this.slashed=!1,this.unicodeI=0,this.unicodeS=null,this.depth=0,p(this,"onready")}function d(e){if(!(this instanceof d))return new d(e);this._parser=new c(e),this.writable=!0,this.readable=!0,this.bytes_remaining=0,this.bytes_in_sequence=0,this.temp_buffs={2:new Buffer(2),3:new Buffer(3),4:new Buffer(4)},this.string="";var t=this;r.apply(t),this._parser.onend=function(){t.emit("end")},this._parser.onerror=function(e){t.emit("error",e),t._parser.error=null},s.forEach(function(e){Object.defineProperty(t,"on"+e,{get:function(){return t._parser["on"+e]},set:function(r){if(!r)return t.removeAllListeners(e),t._parser["on"+e]=r,r;t.on(e,r)},enumerable:!0,configurable:!1})})}function p(t,r,n){e.INFO&&console.log("-- emit",r,n),t[r]&&t[r](n)}function f(e,t){var r,n;e.textNode=(r=e.opt,void 0===(n=e.textNode)||(r.trim&&(n=n.trim()),r.normalize&&(n=n.replace(/\s+/g," "))),n),void 0!==e.textNode&&p(e,t||"onvalue",e.textNode),e.textNode=void 0}function h(e,t){return f(e),t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c,t=Error(t),e.error=t,p(e,"onerror",t),e}function m(e){return(e.state!==i.VALUE||0!==e.depth)&&h(e,"Unexpected end"),f(e),e.c="",e.closed=!0,p(e,"onend"),c.call(e,e.opt),e}function y(e){return e===o.carriageReturn||e===o.lineFeed||e===o.space||e===o.tab}c.prototype={end:function(){m(this)},write:function(t){if(this.error)throw this.error;if(this.closed)return h(this,"Cannot write after close. Assign an onready handler.");if(null===t)return m(this);var r,s,a=0,u=t.charCodeAt(0),c=this.p,d=!1;for(e.DEBUG&&console.log("write -> ["+t+"]");u&&(c=u,this.c=u=t.charCodeAt(a++),c!==u?this.p=c:c=this.p,u);)switch(e.DEBUG&&console.log(a,u,e.STATE[this.state]),d?d=!1:(this.position++,u===o.lineFeed?(this.line++,this.column=0):this.column++),this.state){case i.BEGIN:u===o.openBrace?this.state=i.OPEN_OBJECT:u===o.openBracket?this.state=i.OPEN_ARRAY:y(u)||h(this,"Non-whitespace before {[.");continue;case i.OPEN_KEY:case i.OPEN_OBJECT:if(y(u))continue;if(this.state===i.OPEN_KEY)this.stack.push(i.CLOSE_KEY);else{if(u===o.closeBrace){p(this,"onopenobject"),this.depth++,p(this,"oncloseobject"),this.depth--,this.state=this.stack.pop()||i.VALUE;continue}this.stack.push(i.CLOSE_OBJECT)}u===o.doubleQuote?this.state=i.STRING:h(this,'Malformed object key should start with "');continue;case i.CLOSE_KEY:case i.CLOSE_OBJECT:if(y(u))continue;(this.state,i.CLOSE_KEY,u===o.colon)?(this.state===i.CLOSE_OBJECT?(this.stack.push(i.CLOSE_OBJECT),f(this,"onopenobject"),this.depth++):f(this,"onkey"),this.state=i.VALUE):u===o.closeBrace?(r="oncloseobject",f(this),p(this,r,void 0),this.depth--,this.state=this.stack.pop()||i.VALUE):u===o.comma?(this.state===i.CLOSE_OBJECT&&this.stack.push(i.CLOSE_OBJECT),f(this),this.state=i.OPEN_KEY):h(this,"Bad object");continue;case i.OPEN_ARRAY:case i.VALUE:if(y(u))continue;if(this.state===i.OPEN_ARRAY){if(p(this,"onopenarray"),this.depth++,this.state=i.VALUE,u===o.closeBracket){p(this,"onclosearray"),this.depth--,this.state=this.stack.pop()||i.VALUE;continue}this.stack.push(i.CLOSE_ARRAY)}u===o.doubleQuote?this.state=i.STRING:u===o.openBrace?this.state=i.OPEN_OBJECT:u===o.openBracket?this.state=i.OPEN_ARRAY:u===o.t?this.state=i.TRUE:u===o.f?this.state=i.FALSE:u===o.n?this.state=i.NULL:u===o.minus?this.numberNode+="-":o._0<=u&&u<=o._9?(this.numberNode+=String.fromCharCode(u),this.state=i.NUMBER_DIGIT):h(this,"Bad value");continue;case i.CLOSE_ARRAY:if(u===o.comma)this.stack.push(i.CLOSE_ARRAY),f(this,"onvalue"),this.state=i.VALUE;else if(u===o.closeBracket)s="onclosearray",f(this),p(this,s,void 0),this.depth--,this.state=this.stack.pop()||i.VALUE;else{if(y(u))continue;h(this,"Bad array")}continue;case i.STRING:void 0===this.textNode&&(this.textNode="");var g=a-1,b=this.slashed,v=this.unicodeI;e:for(;;){for(e.DEBUG&&console.log(a,u,e.STATE[this.state],b);v>0;)if(this.unicodeS+=String.fromCharCode(u),u=t.charCodeAt(a++),this.position++,4===v?(this.textNode+=String.fromCharCode(parseInt(this.unicodeS,16)),v=0,g=a-1):v++,!u)break e;if(u===o.doubleQuote&&!b){this.state=this.stack.pop()||i.VALUE,this.textNode+=t.substring(g,a-1),this.position+=a-1-g;break}if(u===o.backslash&&!b&&(b=!0,this.textNode+=t.substring(g,a-1),this.position+=a-1-g,u=t.charCodeAt(a++),this.position++,!u))break;if(b){if(b=!1,u===o.n?this.textNode+="\n":u===o.r?this.textNode+="\r":u===o.t?this.textNode+=" ":u===o.f?this.textNode+="\f":u===o.b?this.textNode+="\b":u===o.u?(v=1,this.unicodeS=""):this.textNode+=String.fromCharCode(u),u=t.charCodeAt(a++),this.position++,g=a-1,u)continue;break}l.lastIndex=a;var w=l.exec(t);if(null===w){a=t.length+1,this.textNode+=t.substring(g,a-1),this.position+=a-1-g;break}if(a=w.index+1,!(u=t.charCodeAt(w.index))){this.textNode+=t.substring(g,a-1),this.position+=a-1-g;break}}this.slashed=b,this.unicodeI=v;continue;case i.TRUE:u===o.r?this.state=i.TRUE2:h(this,"Invalid true started with t"+u);continue;case i.TRUE2:u===o.u?this.state=i.TRUE3:h(this,"Invalid true started with tr"+u);continue;case i.TRUE3:u===o.e?(p(this,"onvalue",!0),this.state=this.stack.pop()||i.VALUE):h(this,"Invalid true started with tru"+u);continue;case i.FALSE:u===o.a?this.state=i.FALSE2:h(this,"Invalid false started with f"+u);continue;case i.FALSE2:u===o.l?this.state=i.FALSE3:h(this,"Invalid false started with fa"+u);continue;case i.FALSE3:u===o.s?this.state=i.FALSE4:h(this,"Invalid false started with fal"+u);continue;case i.FALSE4:u===o.e?(p(this,"onvalue",!1),this.state=this.stack.pop()||i.VALUE):h(this,"Invalid false started with fals"+u);continue;case i.NULL:u===o.u?this.state=i.NULL2:h(this,"Invalid null started with n"+u);continue;case i.NULL2:u===o.l?this.state=i.NULL3:h(this,"Invalid null started with nu"+u);continue;case i.NULL3:u===o.l?(p(this,"onvalue",null),this.state=this.stack.pop()||i.VALUE):h(this,"Invalid null started with nul"+u);continue;case i.NUMBER_DECIMAL_POINT:u===o.period?(this.numberNode+=".",this.state=i.NUMBER_DIGIT):h(this,"Leading zero not followed by .");continue;case i.NUMBER_DIGIT:o._0<=u&&u<=o._9?this.numberNode+=String.fromCharCode(u):u===o.period?(-1!==this.numberNode.indexOf(".")&&h(this,"Invalid number has two dots"),this.numberNode+="."):u===o.e||u===o.E?((-1!==this.numberNode.indexOf("e")||-1!==this.numberNode.indexOf("E"))&&h(this,"Invalid number has two exponential"),this.numberNode+="e"):u===o.plus||u===o.minus?(c===o.e||c===o.E||h(this,"Invalid symbol in number"),this.numberNode+=String.fromCharCode(u)):(this.numberNode&&p(this,"onvalue",parseFloat(this.numberNode)),this.numberNode="",a--,d=!0,this.state=this.stack.pop()||i.VALUE);continue;default:h(this,"Unknown state: "+this.state)}return this.position>=this.bufferCheckPosition&&function(t){var r=Math.max(e.MAX_BUFFER_LENGTH,10),s=0;for(var i in n){var a=void 0===t[i]?0:t[i].length;a>r&&("text"===i?closeText(t):h(t,"Max buffer length exceeded: "+i)),s=Math.max(s,a)}t.bufferCheckPosition=e.MAX_BUFFER_LENGTH-s+t.position}(this),this},resume:function(){return this.error=null,this},close:function(){return this.write(null)}},r=function(){},d.prototype=Object.create(r.prototype,{constructor:{value:d}}),d.prototype.write=function(e){e=new Buffer(e);for(var t=0;t<e.length;t++){var r=e[t];if(this.bytes_remaining>0){for(var n=0;n<this.bytes_remaining;n++)this.temp_buffs[this.bytes_in_sequence][this.bytes_in_sequence-this.bytes_remaining+n]=e[n];this.string=this.temp_buffs[this.bytes_in_sequence].toString(),this.bytes_in_sequence=this.bytes_remaining=0,t=t+n-1,this._parser.write(this.string),this.emit("data",this.string);continue}if(0===this.bytes_remaining&&r>=128){if(r>=194&&r<=223&&(this.bytes_in_sequence=2),r>=224&&r<=239&&(this.bytes_in_sequence=3),r>=240&&r<=244&&(this.bytes_in_sequence=4),this.bytes_in_sequence+t>e.length){for(var s=0;s<=e.length-1-t;s++)this.temp_buffs[this.bytes_in_sequence][s]=e[t+s];return this.bytes_remaining=t+this.bytes_in_sequence-e.length,!0}this.string=e.slice(t,t+this.bytes_in_sequence).toString(),t=t+this.bytes_in_sequence-1,this._parser.write(this.string),this.emit("data",this.string);continue}for(var i=t;i<e.length&&!(e[i]>=128);i++);this.string=e.slice(t,i).toString(),this._parser.write(this.string),this.emit("data",this.string),t=i-1}},d.prototype.end=function(e){return e&&e.length&&this._parser.write(e.toString()),this._parser.end(),!0},d.prototype.on=function(e,t){var n=this;return n._parser["on"+e]||-1===s.indexOf(e)||(n._parser["on"+e]=function(){var t=1==arguments.length?[arguments[0]]:Array.apply(null,arguments);t.splice(0,0,e),n.emit.apply(n,t)}),r.prototype.on.call(n,e,t)},d.prototype.destroy=function(){u(this._parser),this.emit("close")}}(t)},69797:(e,t,r)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,s=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(n++,"%c"===e&&(s=n))}),t.splice(s,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return"undefined"!=typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(11074)(t);let{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},11074:(e,t,r)=>{e.exports=function(e){function t(e){let r,s,i;let a=null;function o(...e){if(!o.enabled)return;let n=Number(new Date),s=n-(r||n);o.diff=s,o.prev=r,o.curr=n,r=n,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,n)=>{if("%%"===r)return"%";i++;let s=t.formatters[n];if("function"==typeof s){let t=e[i];r=s.call(o,t),e.splice(i,1),i--}return r}),t.formatArgs.call(o,e),(o.log||t.log).apply(o,e)}return o.namespace=e,o.useColors=t.useColors(),o.color=t.selectColor(e),o.extend=n,o.destroy=t.destroy,Object.defineProperty(o,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(s!==t.namespaces&&(s=t.namespaces,i=t.enabled(e)),i),set:e=>{a=e}}),"function"==typeof t.init&&t.init(o),o}function n(e,r){let n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function s(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){let e=[...t.names.map(s),...t.skips.map(s).map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){let r;t.save(e),t.namespaces=e,t.names=[],t.skips=[];let n=("string"==typeof e?e:"").split(/[\s,]+/),s=n.length;for(r=0;r<s;r++)n[r]&&("-"===(e=n[r].replace(/\*/g,".*?"))[0]?t.skips.push(RegExp("^"+e.slice(1)+"$")):t.names.push(RegExp("^"+e+"$")))},t.enabled=function(e){let r,n;if("*"===e[e.length-1])return!0;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=r(18544),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(r=>{t[r]=e[r]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t)|0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}},10479:(e,t,r)=>{"undefined"==typeof process||"renderer"===process.type||process.__nwjs?e.exports=r(69797):e.exports=r(45780)},45780:(e,t,r)=>{let n=r(76224),s=r(73837);t.init=function(e){e.inspectOpts={};let r=Object.keys(t.inspectOpts);for(let n=0;n<r.length;n++)e.inspectOpts[r[n]]=t.inspectOpts[r[n]]},t.log=function(...e){return process.stderr.write(s.format(...e)+"\n")},t.formatArgs=function(r){let{namespace:n,useColors:s}=this;if(s){let t=this.color,s="\x1b[3"+(t<8?t:"8;5;"+t),i=` ${s};1m${n} \u001B[0m`;r[0]=i+r[0].split("\n").join("\n"+i),r.push(s+"m+"+e.exports.humanize(this.diff)+"\x1b[0m")}else r[0]=(t.inspectOpts.hideDate?"":new Date().toISOString()+" ")+n+" "+r[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?!!t.inspectOpts.colors:n.isatty(process.stderr.fd)},t.destroy=s.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{let e=r(50413);e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase()),n=process.env[t];return n=!!/^(yes|on|true|enabled)$/i.test(n)||!/^(no|off|false|disabled)$/i.test(n)&&("null"===n?null:Number(n)),e[r]=n,e},{}),e.exports=r(11074)(t);let{formatters:i}=e.exports;i.o=function(e){return this.inspectOpts.colors=this.useColors,s.inspect(e,this.inspectOpts).split("\n").map(e=>e.trim()).join(" ")},i.O=function(e){return this.inspectOpts.colors=this.useColors,s.inspect(e,this.inspectOpts)}},5670:(e,t,r)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,s=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(n++,"%c"===e&&(s=n))}),t.splice(s,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){let e;return"undefined"!=typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(77647)(t);let{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},77647:(e,t,r)=>{e.exports=function(e){function t(e){let r,s,i;let a=null;function o(...e){if(!o.enabled)return;let n=Number(new Date),s=n-(r||n);o.diff=s,o.prev=r,o.curr=n,r=n,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,n)=>{if("%%"===r)return"%";i++;let s=t.formatters[n];if("function"==typeof s){let t=e[i];r=s.call(o,t),e.splice(i,1),i--}return r}),t.formatArgs.call(o,e),(o.log||t.log).apply(o,e)}return o.namespace=e,o.useColors=t.useColors(),o.color=t.selectColor(e),o.extend=n,o.destroy=t.destroy,Object.defineProperty(o,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(s!==t.namespaces&&(s=t.namespaces,i=t.enabled(e)),i),set:e=>{a=e}}),"function"==typeof t.init&&t.init(o),o}function n(e,r){let n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function s(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){let e=[...t.names.map(s),...t.skips.map(s).map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){let r;t.save(e),t.namespaces=e,t.names=[],t.skips=[];let n=("string"==typeof e?e:"").split(/[\s,]+/),s=n.length;for(r=0;r<s;r++)n[r]&&("-"===(e=n[r].replace(/\*/g,".*?"))[0]?t.skips.push(RegExp("^"+e.slice(1)+"$")):t.names.push(RegExp("^"+e+"$")))},t.enabled=function(e){let r,n;if("*"===e[e.length-1])return!0;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=r(841),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(r=>{t[r]=e[r]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t)|0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}},30233:(e,t,r)=>{"undefined"==typeof process||"renderer"===process.type||process.__nwjs?e.exports=r(5670):e.exports=r(21871)},21871:(e,t,r)=>{let n=r(76224),s=r(73837);t.init=function(e){e.inspectOpts={};let r=Object.keys(t.inspectOpts);for(let n=0;n<r.length;n++)e.inspectOpts[r[n]]=t.inspectOpts[r[n]]},t.log=function(...e){return process.stderr.write(s.formatWithOptions(t.inspectOpts,...e)+"\n")},t.formatArgs=function(r){let{namespace:n,useColors:s}=this;if(s){let t=this.color,s="\x1b[3"+(t<8?t:"8;5;"+t),i=` ${s};1m${n} \u001B[0m`;r[0]=i+r[0].split("\n").join("\n"+i),r.push(s+"m+"+e.exports.humanize(this.diff)+"\x1b[0m")}else r[0]=(t.inspectOpts.hideDate?"":new Date().toISOString()+" ")+n+" "+r[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?!!t.inspectOpts.colors:n.isatty(process.stderr.fd)},t.destroy=s.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{let e=r(50413);e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase()),n=process.env[t];return n=!!/^(yes|on|true|enabled)$/i.test(n)||!/^(no|off|false|disabled)$/i.test(n)&&("null"===n?null:Number(n)),e[r]=n,e},{}),e.exports=r(77647)(t);let{formatters:i}=e.exports;i.o=function(e){return this.inspectOpts.colors=this.useColors,s.inspect(e,this.inspectOpts).split("\n").map(e=>e.trim()).join(" ")},i.O=function(e){return this.inspectOpts.colors=this.useColors,s.inspect(e,this.inspectOpts)}},76193:e=>{"use strict";var t=Object.prototype.hasOwnProperty,r="~";function n(){}function s(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function i(e,t,n,i,a){if("function"!=typeof n)throw TypeError("The listener must be a function");var o=new s(n,i||e,a),u=r?r+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],o]:e._events[u].push(o):(e._events[u]=o,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function o(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1)),o.prototype.eventNames=function(){var e,n,s=[];if(0===this._eventsCount)return s;for(n in e=this._events)t.call(e,n)&&s.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?s.concat(Object.getOwnPropertySymbols(e)):s},o.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var s=0,i=n.length,a=Array(i);s<i;s++)a[s]=n[s].fn;return a},o.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},o.prototype.emit=function(e,t,n,s,i,a){var o=r?r+e:e;if(!this._events[o])return!1;var u,l,c=this._events[o],d=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,s),!0;case 5:return c.fn.call(c.context,t,n,s,i),!0;case 6:return c.fn.call(c.context,t,n,s,i,a),!0}for(l=1,u=Array(d-1);l<d;l++)u[l-1]=arguments[l];c.fn.apply(c.context,u)}else{var p,f=c.length;for(l=0;l<f;l++)switch(c[l].once&&this.removeListener(e,c[l].fn,void 0,!0),d){case 1:c[l].fn.call(c[l].context);break;case 2:c[l].fn.call(c[l].context,t);break;case 3:c[l].fn.call(c[l].context,t,n);break;case 4:c[l].fn.call(c[l].context,t,n,s);break;default:if(!u)for(p=1,u=Array(d-1);p<d;p++)u[p-1]=arguments[p];c[l].fn.apply(c[l].context,u)}}return!0},o.prototype.on=function(e,t,r){return i(this,e,t,r,!1)},o.prototype.once=function(e,t,r){return i(this,e,t,r,!0)},o.prototype.removeListener=function(e,t,n,s){var i=r?r+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var o=this._events[i];if(o.fn)o.fn!==t||s&&!o.once||n&&o.context!==n||a(this,i);else{for(var u=0,l=[],c=o.length;u<c;u++)(o[u].fn!==t||s&&!o[u].once||n&&o[u].context!==n)&&l.push(o[u]);l.length?this._events[i]=1===l.length?l[0]:l:a(this,i)}return this},o.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&a(this,t)):(this._events=new n,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=r,o.EventEmitter=o,e.exports=o},32142:e=>{"use strict";e.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":1===e.length?"-":"--",n=t.indexOf(r+e),s=t.indexOf("--");return -1!==n&&(-1===s||n<s)}},18544:e=>{function t(e,t,r,n){return Math.round(e/r)+" "+n+(t>=1.5*r?"s":"")}e.exports=function(e,r){r=r||{};var n,s,i=typeof e;if("string"===i&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*r;case"weeks":case"week":case"w":return 6048e5*r;case"days":case"day":case"d":return 864e5*r;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*r;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*r;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}(e);if("number"===i&&isFinite(e))return r.long?(n=Math.abs(e))>=864e5?t(e,n,864e5,"day"):n>=36e5?t(e,n,36e5,"hour"):n>=6e4?t(e,n,6e4,"minute"):n>=1e3?t(e,n,1e3,"second"):e+" ms":(s=Math.abs(e))>=864e5?Math.round(e/864e5)+"d":s>=36e5?Math.round(e/36e5)+"h":s>=6e4?Math.round(e/6e4)+"m":s>=1e3?Math.round(e/1e3)+"s":e+"ms";throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},841:e=>{function t(e,t,r,n){return Math.round(e/r)+" "+n+(t>=1.5*r?"s":"")}e.exports=function(e,r){r=r||{};var n,s,i=typeof e;if("string"===i&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*r;case"weeks":case"week":case"w":return 6048e5*r;case"days":case"day":case"d":return 864e5*r;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*r;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*r;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}(e);if("number"===i&&isFinite(e))return r.long?(n=Math.abs(e))>=864e5?t(e,n,864e5,"day"):n>=36e5?t(e,n,36e5,"hour"):n>=6e4?t(e,n,6e4,"minute"):n>=1e3?t(e,n,1e3,"second"):e+" ms":(s=Math.abs(e))>=864e5?Math.round(e/864e5)+"d":s>=36e5?Math.round(e/36e5)+"h":s>=6e4?Math.round(e/6e4)+"m":s>=1e3?Math.round(e/1e3)+"s":e+"ms";throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},64634:(e,t,r)=>{"use strict";e.exports=r(30517)},2200:(e,t,r)=>{r(67481)},67481:(e,t,r)=>{var n=r(84239);t.operation=function(e){return new n(t.timeouts(e),{forever:e&&(e.forever||e.retries===1/0),unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})},t.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1e3,maxTimeout:1/0,randomize:!1};for(var r in e)t[r]=e[r];if(t.minTimeout>t.maxTimeout)throw Error("minTimeout is greater than maxTimeout");for(var n=[],s=0;s<t.retries;s++)n.push(this.createTimeout(s,t));return e&&e.forever&&!n.length&&n.push(this.createTimeout(s,t)),n.sort(function(e,t){return e-t}),n},t.createTimeout=function(e,t){return Math.min(Math.round((t.randomize?Math.random()+1:1)*Math.max(t.minTimeout,1)*Math.pow(t.factor,e)),t.maxTimeout)},t.wrap=function(e,r,n){if(r instanceof Array&&(n=r,r=null),!n)for(var s in n=[],e)"function"==typeof e[s]&&n.push(s);for(var i=0;i<n.length;i++){var a=n[i],o=e[a];e[a]=(function(n){var s=t.operation(r),i=Array.prototype.slice.call(arguments,1),a=i.pop();i.push(function(e){s.retry(e)||(e&&(arguments[0]=s.mainError()),a.apply(this,arguments))}),s.attempt(function(){n.apply(e,i)})}).bind(e,o),e[a].options=r}}},84239:e=>{function t(e,t){"boolean"==typeof t&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}e.exports=t,t.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},t.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},t.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=new Date().getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var r=this._timeouts.shift();if(void 0===r){if(!this._cachedTimeouts)return!1;this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1)}var n=this;return this._timer=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r),this._options.unref&&this._timer.unref(),!0},t.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},t.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)},t.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)},t.prototype.start=t.prototype.try,t.prototype.errors=function(){return this._errors},t.prototype.attempts=function(){return this._attempts},t.prototype.mainError=function(){if(0===this._errors.length)return null;for(var e={},t=null,r=0,n=0;n<this._errors.length;n++){var s=this._errors[n],i=s.message,a=(e[i]||0)+1;e[i]=a,a>=r&&(t=s,r=a)}return t}},75176:(e,t,r)=>{"use strict";r.d(t,{ZP:()=>X});var n=function(){function e(){this.keyToValue=new Map,this.valueToKey=new Map}return e.prototype.set=function(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)},e.prototype.getByKey=function(e){return this.keyToValue.get(e)},e.prototype.getByValue=function(e){return this.valueToKey.get(e)},e.prototype.clear=function(){this.keyToValue.clear(),this.valueToKey.clear()},e}(),s=function(){function e(e){this.generateIdentifier=e,this.kv=new n}return e.prototype.register=function(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))},e.prototype.clear=function(){this.kv.clear()},e.prototype.getIdentifier=function(e){return this.kv.getByValue(e)},e.prototype.getValue=function(e){return this.kv.getByKey(e)},e}(),i=function(){var e=function(t,r){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(e){function t(){var t=e.call(this,function(e){return e.name})||this;return t.classToAllowedProps=new Map,t}return i(t,e),t.prototype.register=function(t,r){"object"==typeof r?(r.allowProps&&this.classToAllowedProps.set(t,r.allowProps),e.prototype.register.call(this,t,r.identifier)):e.prototype.register.call(this,t,r)},t.prototype.getAllowedProps=function(e){return this.classToAllowedProps.get(e)},t}(s),o=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,s,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){s={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(s)throw s.error}}return a};function u(e,t){Object.entries(e).forEach(function(e){var r=o(e,2),n=r[0];return t(r[1],n)})}function l(e,t){return -1!==e.indexOf(t)}function c(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(t(n))return n}}var d=function(){function e(){this.transfomers={}}return e.prototype.register=function(e){this.transfomers[e.name]=e},e.prototype.findApplicable=function(e){return function(e,t){var r=function(e){if("values"in Object)return Object.values(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(e[r]);return t}(e);if("find"in r)return r.find(t);for(var n=0;n<r.length;n++){var s=r[n];if(t(s))return s}}(this.transfomers,function(t){return t.isApplicable(e)})},e.prototype.findByName=function(e){return this.transfomers[e]},e}(),p=function(e){return void 0===e},f=function(e){return"object"==typeof e&&null!==e&&e!==Object.prototype&&(null===Object.getPrototypeOf(e)||Object.getPrototypeOf(e)===Object.prototype)},h=function(e){return f(e)&&0===Object.keys(e).length},m=function(e){return Array.isArray(e)},y=function(e){return e instanceof Map},g=function(e){return e instanceof Set},b=function(e){return"Symbol"===Object.prototype.toString.call(e).slice(8,-1)},v=function(e){return"number"==typeof e&&isNaN(e)},w=function(e){return"boolean"==typeof e||null===e||p(e)||"number"==typeof e&&!isNaN(e)||"string"==typeof e||b(e)},_=function(e){return e.replace(/\./g,"\\.")},x=function(e){return e.map(String).map(_).join(".")},C=function(e){for(var t=[],r="",n=0;n<e.length;n++){var s=e.charAt(n);if("\\"===s&&"."===e.charAt(n+1)){r+=".",n++;continue}if("."===s){t.push(r),r="";continue}r+=s}var i=r;return t.push(i),t},E=function(){return(E=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)},O=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,s,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){s={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(s)throw s.error}}return a},k=function(e,t){for(var r=0,n=t.length,s=e.length;r<n;r++,s++)e[s]=t[r];return e};function T(e,t,r,n){return{isApplicable:e,annotation:t,transform:r,untransform:n}}var A=[T(p,"undefined",function(){return null},function(){}),T(function(e){return"bigint"==typeof e},"bigint",function(e){return e.toString()},function(e){return"undefined"!=typeof BigInt?BigInt(e):(console.error("Please add a BigInt polyfill."),e)}),T(function(e){return e instanceof Date&&!isNaN(e.valueOf())},"Date",function(e){return e.toISOString()},function(e){return new Date(e)}),T(function(e){return e instanceof Error},"Error",function(e,t){var r={name:e.name,message:e.message};return t.allowedErrorProps.forEach(function(t){r[t]=e[t]}),r},function(e,t){var r=Error(e.message);return r.name=e.name,r.stack=e.stack,t.allowedErrorProps.forEach(function(t){r[t]=e[t]}),r}),T(function(e){return e instanceof RegExp},"regexp",function(e){return""+e},function(e){return new RegExp(e.slice(1,e.lastIndexOf("/")),e.slice(e.lastIndexOf("/")+1))}),T(g,"set",function(e){return k([],O(e.values()))},function(e){return new Set(e)}),T(y,"map",function(e){return k([],O(e.entries()))},function(e){return new Map(e)}),T(function(e){var t;return v(e)||(t=e)===1/0||t===-1/0},"number",function(e){return v(e)?"NaN":e>0?"Infinity":"-Infinity"},Number),T(function(e){return 0===e&&1/e==-1/0},"number",function(){return"-0"},Number),T(function(e){return e instanceof URL},"URL",function(e){return e.toString()},function(e){return new URL(e)})];function I(e,t,r,n){return{isApplicable:e,annotation:t,transform:r,untransform:n}}var P=I(function(e,t){return!!b(e)&&!!t.symbolRegistry.getIdentifier(e)},function(e,t){return["symbol",t.symbolRegistry.getIdentifier(e)]},function(e){return e.description},function(e,t,r){var n=r.symbolRegistry.getValue(t[1]);if(!n)throw Error("Trying to deserialize unknown symbol");return n}),S=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(e,t){return e[t.name]=t,e},{}),j=I(function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},function(e){return["typed-array",e.constructor.name]},function(e){return k([],O(e))},function(e,t){var r=S[t[1]];if(!r)throw Error("Trying to deserialize unknown typed array");return new r(e)});function N(e,t){return null!=e&&!!e.constructor&&!!t.classRegistry.getIdentifier(e.constructor)}var R=I(N,function(e,t){return["class",t.classRegistry.getIdentifier(e.constructor)]},function(e,t){var r=t.classRegistry.getAllowedProps(e.constructor);if(!r)return E({},e);var n={};return r.forEach(function(t){n[t]=e[t]}),n},function(e,t,r){var n=r.classRegistry.getValue(t[1]);if(!n)throw Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(n.prototype),e)}),$=I(function(e,t){return!!t.customTransformerRegistry.findApplicable(e)},function(e,t){return["custom",t.customTransformerRegistry.findApplicable(e).name]},function(e,t){return t.customTransformerRegistry.findApplicable(e).serialize(e)},function(e,t,r){var n=r.customTransformerRegistry.findByName(t[1]);if(!n)throw Error("Trying to deserialize unknown custom value");return n.deserialize(e)}),M=[R,P,$,j],F=function(e,t){var r=c(M,function(r){return r.isApplicable(e,t)});if(r)return{value:r.transform(e,t),type:r.annotation(e,t)};var n=c(A,function(r){return r.isApplicable(e,t)});if(n)return{value:n.transform(e,t),type:n.annotation}},Z={};A.forEach(function(e){Z[e.annotation]=e});var L=function(e,t,r){if(m(t))switch(t[0]){case"symbol":return P.untransform(e,t,r);case"class":return R.untransform(e,t,r);case"custom":return $.untransform(e,t,r);case"typed-array":return j.untransform(e,t,r);default:throw Error("Unknown transformation: "+t)}else{var n=Z[t];if(!n)throw Error("Unknown transformation: "+t);return n.untransform(e,r)}},z=function(e,t){for(var r=e.keys();t>0;)r.next(),t--;return r.next().value};function U(e){if(l(e,"__proto__"))throw Error("__proto__ is not allowed as a property");if(l(e,"prototype"))throw Error("prototype is not allowed as a property");if(l(e,"constructor"))throw Error("constructor is not allowed as a property")}var D=function(e,t){U(t);for(var r=0;r<t.length;r++){var n=t[r];if(g(e))e=z(e,+n);else if(y(e)){var s=+n,i=0==+t[++r]?"key":"value",a=z(e,s);switch(i){case"key":e=a;break;case"value":e=e.get(a)}}else e=e[n]}return e},B=function(e,t,r){if(U(t),0===t.length)return r(e);for(var n=e,s=0;s<t.length-1;s++){var i=t[s];if(m(n))n=n[+i];else if(f(n))n=n[i];else if(g(n)){var a=+i;n=z(n,a)}else if(y(n)){if(s===t.length-2)break;var a=+i,o=0==+t[++s]?"key":"value",u=z(n,a);switch(o){case"key":n=u;break;case"value":n=n.get(u)}}}var l=t[t.length-1];if(m(n)?n[+l]=r(n[+l]):f(n)&&(n[l]=r(n[l])),g(n)){var c=z(n,+l),d=r(c);c!==d&&(n.delete(c),n.add(d))}if(y(n)){var a=+t[t.length-2],p=z(n,a),o=0==+l?"key":"value";switch(o){case"key":var h=r(p);n.set(h,n.get(p)),h!==p&&n.delete(p);break;case"value":n.set(p,r(n.get(p)))}}return e},q=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,s,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){s={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(s)throw s.error}}return a},V=function(e,t){for(var r=0,n=t.length,s=e.length;r<n;r++,s++)e[s]=t[r];return e},G=function(e,t,r,n,s){if(void 0===n&&(n=[]),void 0===s&&(s=[]),w(e)||(i=n,(a=t.get(e))?a.push(i):t.set(e,[i])),!(f(e)||m(e)||y(e)||g(e)||N(e,r))){var i,a,o,c=F(e,r);return c?{transformedValue:c.value,annotations:[c.type]}:{transformedValue:e}}if(l(s,e))return{transformedValue:null};var d=F(e,r),p=null!==(o=null==d?void 0:d.value)&&void 0!==o?o:e;w(e)||(s=V(V([],q(s)),[e]));var b=m(p)?[]:{},v={};return(u(p,function(e,i){var a=G(e,t,r,V(V([],q(n)),[i]),s);b[i]=a.transformedValue,m(a.annotations)?v[i]=a.annotations:f(a.annotations)&&u(a.annotations,function(e,t){v[_(i)+"."+t]=e})}),h(v))?{transformedValue:b,annotations:d?[d.type]:void 0}:{transformedValue:b,annotations:d?[d.type,v]:v}};function W(e){return Object.prototype.toString.call(e).slice(8,-1)}function K(e){return"Array"===W(e)}var Y=function(){return(Y=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)},J=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,s,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){s={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(s)throw s.error}}return a},H=function(e,t){for(var r=0,n=t.length,s=e.length;r<n;r++,s++)e[s]=t[r];return e},Q=function(){function e(){this.classRegistry=new a,this.symbolRegistry=new s(function(e){var t;return null!==(t=e.description)&&void 0!==t?t:""}),this.customTransformerRegistry=new d,this.allowedErrorProps=[]}return e.prototype.serialize=function(e){var t,r,n=new Map,s=G(e,n,this),i={json:s.transformedValue};s.annotations&&(i.meta=Y(Y({},i.meta),{values:s.annotations}));var a=(t={},r=void 0,(n.forEach(function(e){if(!(e.length<=1)){var n=q(e.map(function(e){return e.map(String)}).sort(function(e,t){return e.length-t.length})),s=n[0],i=n.slice(1);0===s.length?r=i.map(x):t[x(s)]=i.map(x)}}),r)?h(t)?[r]:[r,t]:h(t)?void 0:t);return a&&(i.meta=Y(Y({},i.meta),{referentialEqualities:a})),i},e.prototype.deserialize=function(e){var t,r,n,s=e.json,i=e.meta,a=function e(t,r={}){return K(t)?t.map(t=>e(t,r)):!function(e){if("Object"!==W(e))return!1;let t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}(t)?t:[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)].reduce((n,s)=>{if(K(r.props)&&!r.props.includes(s))return n;let i=e(t[s],r);return function(e,t,r,n,s){let i=({}).propertyIsEnumerable.call(n,t)?"enumerable":"nonenumerable";"enumerable"===i&&(e[t]=r),s&&"nonenumerable"===i&&Object.defineProperty(e,t,{value:r,enumerable:!1,writable:!0,configurable:!0})}(n,s,i,t,r.nonenumerable),n},{})}(s);return(null==i?void 0:i.values)&&(t=a,r=i.values,n=this,function e(t,r,n){if(void 0===n&&(n=[]),t){if(!m(t)){u(t,function(t,s){return e(t,r,V(V([],q(n)),q(C(s))))});return}var s=q(t,2),i=s[0],a=s[1];a&&u(a,function(t,s){e(t,r,V(V([],q(n)),q(C(s))))}),r(i,n)}}(r,function(e,r){t=B(t,r,function(t){return L(t,e,n)})}),a=t),(null==i?void 0:i.referentialEqualities)&&(a=function(e,t){function r(t,r){var n=D(e,C(r));t.map(C).forEach(function(t){e=B(e,t,function(){return n})})}if(m(t)){var n=q(t,2),s=n[0],i=n[1];s.forEach(function(t){e=B(e,C(t),function(){return e})}),i&&u(i,r)}else u(t,r);return e}(a,i.referentialEqualities)),a},e.prototype.stringify=function(e){return JSON.stringify(this.serialize(e))},e.prototype.parse=function(e){return this.deserialize(JSON.parse(e))},e.prototype.registerClass=function(e,t){this.classRegistry.register(e,t)},e.prototype.registerSymbol=function(e,t){this.symbolRegistry.register(e,t)},e.prototype.registerCustom=function(e,t){this.customTransformerRegistry.register(Y({name:t},e))},e.prototype.allowErrorProps=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];(e=this.allowedErrorProps).push.apply(e,H([],J(t)))},e.defaultInstance=new e,e.serialize=e.defaultInstance.serialize.bind(e.defaultInstance),e.deserialize=e.defaultInstance.deserialize.bind(e.defaultInstance),e.stringify=e.defaultInstance.stringify.bind(e.defaultInstance),e.parse=e.defaultInstance.parse.bind(e.defaultInstance),e.registerClass=e.defaultInstance.registerClass.bind(e.defaultInstance),e.registerSymbol=e.defaultInstance.registerSymbol.bind(e.defaultInstance),e.registerCustom=e.defaultInstance.registerCustom.bind(e.defaultInstance),e.allowErrorProps=e.defaultInstance.allowErrorProps.bind(e.defaultInstance),e}();let X=Q;Q.serialize,Q.deserialize,Q.stringify,Q.parse,Q.registerClass,Q.registerCustom,Q.registerSymbol,Q.allowErrorProps},50413:(e,t,r)=>{"use strict";let n;let s=r(22037),i=r(76224),a=r(32142),{env:o}=process;function u(e,t={}){var r;return 0!==(r=function(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let i=function(){if("FORCE_COLOR"in o)return"true"===o.FORCE_COLOR?1:"false"===o.FORCE_COLOR?0:0===o.FORCE_COLOR.length?1:Math.min(Number.parseInt(o.FORCE_COLOR,10),3)}();void 0!==i&&(n=i);let u=r?n:i;if(0===u)return 0;if(r){if(a("color=16m")||a("color=full")||a("color=truecolor"))return 3;if(a("color=256"))return 2}if(e&&!t&&void 0===u)return 0;let l=u||0;if("dumb"===o.TERM)return l;if("win32"===process.platform){let e=s.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in o)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(e=>e in o)||"codeship"===o.CI_NAME?1:l;if("TEAMCITY_VERSION"in o)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0;if("truecolor"===o.COLORTERM)return 3;if("TERM_PROGRAM"in o){let e=Number.parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(o.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)||"COLORTERM"in o?1:l}(e,{streamIsTTY:e&&e.isTTY,...t}))&&{level:r,hasBasic:!0,has256:r>=2,has16m:r>=3}}a("no-color")||a("no-colors")||a("color=false")||a("color=never")?n=0:(a("color")||a("colors")||a("color=true")||a("color=always"))&&(n=1),e.exports={supportsColor:u,stdout:u({isTTY:i.isatty(1)}),stderr:u({isTTY:i.isatty(2)})}},79580:(e,t,r)=>{"use strict";r.d(t,{Li:()=>s});let n=e=>{let t=typeof e;return"object"===t?null===e?"null":"object":"function"===t?"object":t},s=(e,t)=>{let r=Array.isArray(e),n=Object.entries(e).flatMap((e,n)=>{let s=r?t(n,e[1]):t(...e,n);return Array.isArray(s[0])||0===s.length?s:[s]}),s=Object.fromEntries(n);return"number"==typeof n[0]?.[0]?Object.values(s):s};class i extends Error{}let a=e=>o(e,i),o=(e,t=Error)=>{throw new t(e)},u=(e,t)=>e in t,l=Symbol("represents an uninitialized value");(e=>{let t=l;return()=>t===l?t=e():t})(()=>{try{return Function("return false")()}catch{return!0}});let c=/^(?!^-0$)-?(?:0|[1-9]\d*)(?:\.\d*[1-9])?$/;c.test.bind(c);let d=/^(?:0|(?:-?[1-9]\d*))$/;d.test.bind(d);let p=/^-?\d+$/;p.test.bind(p);let f={Array,Date,Error,Function,Map,RegExp,Set,String,Number,Boolean,WeakMap,WeakSet,Promise},h=e=>{let t=Object.getPrototypeOf(e);for(;t?.constructor&&(!u(t.constructor.name,f)||!(e instanceof f[t.constructor.name]));)t=Object.getPrototypeOf(t);let r=t?.constructor?.name;if(void 0!==r&&"Object"!==r)return r},m=e=>{let t=[],r=e;for(;r!==Object.prototype&&null!=r;){for(let e of Object.getOwnPropertyNames(r))"constructor"===e||t.includes(e)||t.push(e);for(let e of Object.getOwnPropertySymbols(r))t.includes(e)||t.push(e);r=Object.getPrototypeOf(r)}return t};m(0n),m(!1),m(0),m(""),m(Symbol());let y={version:"0.2.2",filename:void 0},g=new WeakMap,b={},v=e=>/^[a-zA-Z_$][a-zA-Z_$0-9]*$/.test(e),w=e=>{switch(typeof e){case"object":{if(null===e)break;let t=h(e)??"object";return t[0].toLowerCase()+t.slice(1)}case"function":return v(e.name)?e.name:"fn";case"symbol":return e.description&&v(e.description)?e.description:"symbol"}return a(`Unexpected attempt to register serializable value of type ${n(e)}`)};Symbol("implementedTraits"),Symbol.hasInstance},64539:(e,t,r)=>{"use strict";function n(e){let t={subscribe(t){let r=null,n=!1,s=!1,i=!1;function a(){if(null===r){i=!0;return}!s&&(s=!0,"function"==typeof r?r():r&&r.unsubscribe())}return r=e({next(e){n||t.next?.(e)},error(e){n||(n=!0,t.error?.(e),a())},complete(){n||(n=!0,t.complete?.(),a())}}),i&&a(),{unsubscribe:a}},pipe:(...e)=>(0===e.length?function(e){return e}:1===e.length?e[0]:function(t){return e.reduce((e,t)=>t(e),t)})(t)};return t}r.d(t,{ss:()=>i,K5:()=>A,N8:()=>x});class s extends Error{constructor(e){super(e),this.name="ObservableAbortError",Object.setPrototypeOf(this,s.prototype)}}class i extends Error{static from(e,t={}){return e instanceof Error?e instanceof i||"TRPCClientError"===e.name?(t.meta&&(e.meta={...e.meta,...t.meta}),e):new i(e.message,{...t,cause:e,result:null}):new i(e.error.message??"",{...t,cause:void 0,result:e})}constructor(e,t){let r=t?.cause;super(e,{cause:r}),this.meta=t?.meta,this.cause=r,this.shape=t?.result?.error,this.data=t?.result?.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,i.prototype)}}var a=r(98018);r(37187);let o=e=>"function"==typeof e;function u(e){var t;return{url:e.url,fetch:e.fetch,AbortController:(t=e.AbortController)?t:"undefined"!=typeof window&&window.AbortController?window.AbortController:"undefined"!=typeof globalThis&&globalThis.AbortController?globalThis.AbortController:null}}let l={query:"GET",mutation:"POST"};function c(e){return"input"in e?e.runtime.transformer.serialize(e.input):function(e){let t={};for(let r=0;r<e.length;r++){let n=e[r];t[r]=n}return t}(e.inputs.map(t=>e.runtime.transformer.serialize(t)))}let d=e=>{let t=e.url+"/"+e.path,r=[];if("inputs"in e&&r.push("batch=1"),"query"===e.type){let t=c(e);void 0!==t&&r.push(`input=${encodeURIComponent(JSON.stringify(t))}`)}return r.length&&(t+="?"+r.join("&")),t},p=e=>{if("query"===e.type)return;let t=c(e);return void 0!==t?JSON.stringify(t):void 0},f=e=>m({...e,contentTypeHeader:"application/json",getUrl:d,getBody:p});async function h(e,t){let r=e.getUrl(e),n=e.getBody(e),{type:s}=e,i=await e.headers();/* istanbul ignore if -- @preserve */if("subscription"===s)throw Error("Subscriptions should use wsLink");let a={...e.contentTypeHeader?{"content-type":e.contentTypeHeader}:{},...e.batchModeHeader?{"trpc-batch-mode":e.batchModeHeader}:{},...i};return(function(e){if(e)return e;if("undefined"!=typeof window&&o(window.fetch))return window.fetch;if("undefined"!=typeof globalThis&&o(globalThis.fetch))return globalThis.fetch;throw Error("No fetch implementation found")})(e.fetch)(r,{method:l[s],signal:t?.signal,body:n,headers:a})}function m(e){let t=e.AbortController?new e.AbortController:null,r={};return{promise:new Promise((n,s)=>{h(e,t).then(e=>(r.response=e,e.json())).then(e=>{r.responseJSON=e,n({json:e,meta:r})}).catch(e=>{s(i.from(e,{meta:r}))})}),cancel:()=>{t?.abort()}}}function y(e){return!!e&&!Array.isArray(e)&&"object"==typeof e}class g extends Error{constructor(){super("Unable to transform response from server")}}function b(e,t){let r;try{r=function(e,t){if("error"in e){let r=t.transformer.deserialize(e.error);return{ok:!1,error:{...e,error:r}}}return{ok:!0,result:{...e.result,...(!e.result.type||"data"===e.result.type)&&{type:"data",data:t.transformer.deserialize(e.result.data)}}}}(e,t)}catch(e){throw new g}if(!r.ok&&(!y(r.error.error)||"number"!=typeof r.error.error.code)||r.ok&&!y(r.result))throw new g;return r}let v=()=>{throw Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function w(e){let t=null,r=null,n=()=>{clearTimeout(r),r=null,t=null};function s(){let r=function(t){let r=[[]],n=0;for(;;){let s=t[n];if(!s)break;let i=r[r.length-1];if(s.aborted){s.reject?.(Error("Aborted")),n++;continue}if(e.validate(i.concat(s).map(e=>e.key))){i.push(s),n++;continue}if(0===i.length){s.reject?.(Error("Input is too big for a single dispatch")),n++;continue}r.push([])}return r}(t);for(let t of(n(),r)){if(!t.length)continue;let r={items:t,cancel:v};for(let e of t)e.batch=r;let n=(e,t)=>{let n=r.items[e];n.resolve?.(t),n.batch=null,n.reject=null,n.resolve=null},{promise:s,cancel:i}=e.fetch(r.items.map(e=>e.key),n);r.cancel=i,s.then(e=>{for(let t=0;t<e.length;t++){let r=e[t];n(t,r)}for(let e of r.items)e.reject?.(Error("Missing result")),e.batch=null}).catch(e=>{for(let t of r.items)t.reject?.(e),t.batch=null})}}return{load:function(e){let n={aborted:!1,key:e,batch:null,resolve:v,reject:v},i=new Promise((e,r)=>{n.reject=r,n.resolve=e,t||(t=[]),t.push(n)});return r||(r=setTimeout(s)),{promise:i,cancel:()=>{n.aborted=!0,n.batch?.items.every(e=>e.aborted)&&(n.batch.cancel(),n.batch=null)}}}}}function _(e){return function(t){let r=u(t),s=t.maxURLLength??1/0;return a=>{let o=n=>({validate:e=>{if(s===1/0)return!0;let t=e.map(e=>e.path).join(","),i=e.map(e=>e.input);return d({...r,runtime:a,type:n,path:t,inputs:i}).length<=s},fetch:e({...r,runtime:a,type:n,opts:t})}),u=w(o("query")),l=w(o("mutation")),c={query:u,subscription:w(o("subscription")),mutation:l};return({op:e})=>n(t=>{let r;let{promise:n,cancel:s}=c[e.type].load(e);return n.then(e=>{r=e;let n=b(e.json,a);if(!n.ok){t.error(i.from(n.error,{meta:e.meta}));return}t.next({context:e.meta,result:n.result}),t.complete()}).catch(e=>{t.error(i.from(e,{meta:r?.meta}))}),()=>{s()}})}}}let x=_(e=>t=>{let r=t.map(e=>e.path).join(","),n=t.map(e=>e.input),{promise:s,cancel:i}=f({...e,path:r,inputs:n,headers:()=>e.opts.headers?"function"==typeof e.opts.headers?e.opts.headers({opList:t}):e.opts.headers:{}});return{promise:s.then(e=>(Array.isArray(e.json)?e.json:t.map(()=>e.json)).map(t=>({meta:e.meta,json:t}))),cancel:i}});function C(e){return t=>{let r=u(t);return s=>({op:a})=>n(n=>{let o;let{path:u,input:l,type:c}=a,{promise:d,cancel:p}=e.requester({...r,runtime:s,type:c,path:u,input:l,headers:()=>t.headers?"function"==typeof t.headers?t.headers({op:a}):t.headers:{}});return d.then(e=>{o=e.meta;let t=b(e.json,s);if(!t.ok){n.error(i.from(t.error,{meta:o}));return}n.next({context:e.meta,result:t.result}),n.complete()}).catch(e=>{n.error(i.from(e,{meta:o}))}),()=>{p()}})}}C({requester:f});class E extends Error{constructor(e){super(e),this.name="TRPCWebSocketClosedError",Object.setPrototypeOf(this,E.prototype)}}class O{$request({type:e,input:t,path:r,context:s={}}){var i;return(i={links:this.links,op:{id:++this.requestId,type:e,path:r,input:t,context:s}},n(e=>(function e(t=0,r=i.op){let n=i.links[t];if(!n)throw Error("No more links to execute - did you forget to add an ending link?");return n({op:r,next:r=>e(t+1,r)})})().subscribe(e))).pipe(e=>{let t=0,r=null,n=[];return{subscribe:s=>(t++,n.push(s),r||(r=e.subscribe({next(e){for(let t of n)t.next?.(e)},error(e){for(let t of n)t.error?.(e)},complete(){for(let e of n)e.complete?.()}})),{unsubscribe(){t--,function(){if(0===t&&r){let e=r;r=null,e.unsubscribe()}}();let e=n.findIndex(e=>e===s);e>-1&&n.splice(e,1)}})}})}requestAsPromise(e){var t;let r;let{promise:n,abort:a}=(t=this.$request(e),{promise:new Promise((e,n)=>{let i=!1;function a(){i||(i=!0,n(new s("This operation was aborted.")),o.unsubscribe())}let o=t.subscribe({next(t){i=!0,e(t),a()},error(e){i=!0,n(e),a()},complete(){i=!0,a()}});r=a}),abort:r});return new Promise((t,r)=>{e.signal?.addEventListener("abort",a),n.then(e=>{t(e.result.data)}).catch(e=>{r(i.from(e))})})}query(e,t,r){return this.requestAsPromise({type:"query",path:e,input:t,context:r?.context,signal:r?.signal})}mutation(e,t,r){return this.requestAsPromise({type:"mutation",path:e,input:t,context:r?.context,signal:r?.signal})}subscription(e,t,r){return this.$request({type:"subscription",path:e,input:t,context:r?.context}).subscribe({next(e){"started"===e.result.type?r.onStarted?.():"stopped"===e.result.type?r.onStopped?.():r.onData?.(e.result.data)},error(e){r.onError?.(e)},complete(){r.onComplete?.()}})}constructor(e){this.requestId=0;let t=(()=>{let t=e.transformer;return t?"input"in t?e.transformer:{input:t,output:t}:{input:{serialize:e=>e,deserialize:e=>e},output:{serialize:e=>e,deserialize:e=>e}}})();this.runtime={transformer:{serialize:e=>t.input.serialize(e),deserialize:e=>t.output.deserialize(e)},combinedTransformer:t},this.links=e.links.map(e=>e(this.runtime))}}let k={query:"query",mutate:"mutation",subscribe:"subscription"},T=e=>k[e];function A(e){var t;return t=new O(e),(0,a.c)(e=>t.hasOwnProperty(e)?t[e]:"__untypedClient"===e?t:(0,a.a)(({path:r,args:n})=>{let s=[e,...r],i=T(s.pop()),a=s.join(".");return t[i](a,...n)}))}async function I(e){let t=e.parse??JSON.parse;await P(e.readableStream,r=>{if(e.signal?.aborted||!r||"}"===r)return;let n=r.indexOf(":"),s=r.substring(2,n-1),i=r.substring(n+1);e.onSingle(Number(s),t(i))},e.textDecoder)}async function P(e,t,r){let n="",s=e=>{let s=r.decode(e).split("\n");if(1===s.length)n+=s[0];else if(s.length>1){t(n+s[0]);for(let e=1;e<s.length-1;e++)t(s[e]);n=s[s.length-1]}};"getReader"in e?await S(e,s):await new Promise(t=>{e.on("data",s),e.on("end",t)}),t(n)}async function S(e,t){let r=e.getReader(),n=await r.read();for(;!n.done;)t(n.value),n=await r.read()}let j=(e,t)=>{let r=e.AbortController?new e.AbortController:null;return{cancel:()=>r?.abort(),promise:h({...e,contentTypeHeader:"application/json",batchModeHeader:"stream",getUrl:d,getBody:p},r).then(async n=>{if(!n.body)throw Error("Received response without body");let s={response:n};return I({readableStream:n.body,onSingle:t,parse:e=>({json:JSON.parse(e),meta:s}),signal:r?.signal,textDecoder:e.textDecoder})})}};_(e=>{let t=function(e){if(e)return e;if("undefined"!=typeof window&&window.TextDecoder)return new window.TextDecoder;if("undefined"!=typeof globalThis&&globalThis.TextDecoder)return new globalThis.TextDecoder;throw Error("No TextDecoder implementation found")}(e.opts.textDecoder);return(r,n)=>{let s=r.map(e=>e.path).join(","),i=r.map(e=>e.input),{cancel:a,promise:o}=j({...e,textDecoder:t,path:s,inputs:i,headers:()=>e.opts.headers?"function"==typeof e.opts.headers?e.opts.headers({opList:r}):e.opts.headers:{}},(e,t)=>{n(e,t)});return{promise:o.then(()=>[]),cancel:a}}});let N=e=>{if("input"in e){if(!(e.input instanceof FormData))throw Error("Input is not FormData");return e.input}};C({requester:e=>{if("mutation"!==e.type)throw Error("We only handle mutations with formdata");return m({...e,getUrl:()=>`${e.url}/${e.path}`,getBody:N})}})},37187:(e,t,r)=>{"use strict";function n(e){let t=Object.create(null);for(let r in e)t[e[r]]=r;return t}r.d(t,{T:()=>s,i:()=>n});let s={PARSE_ERROR:-32700,BAD_REQUEST:-32600,INTERNAL_SERVER_ERROR:-32603,UNAUTHORIZED:-32001,FORBIDDEN:-32003,NOT_FOUND:-32004,METHOD_NOT_SUPPORTED:-32005,TIMEOUT:-32008,CONFLICT:-32009,PRECONDITION_FAILED:-32012,PAYLOAD_TOO_LARGE:-32013,UNPROCESSABLE_CONTENT:-32022,TOO_MANY_REQUESTS:-32029,CLIENT_CLOSED_REQUEST:-32099};n(s)},98018:(e,t,r)=>{"use strict";r.d(t,{a:()=>o,c:()=>u,g:()=>i});var n=r(37187);(0,n.i)(n.T);let s={PARSE_ERROR:400,BAD_REQUEST:400,NOT_FOUND:404,INTERNAL_SERVER_ERROR:500,UNAUTHORIZED:401,FORBIDDEN:403,TIMEOUT:408,CONFLICT:409,CLIENT_CLOSED_REQUEST:499,PRECONDITION_FAILED:412,PAYLOAD_TOO_LARGE:413,METHOD_NOT_SUPPORTED:405,UNPROCESSABLE_CONTENT:422,TOO_MANY_REQUESTS:429};function i(e){let{code:t}=e;return s[t]??500}let a=()=>{},o=e=>(function e(t,r){return new Proxy(a,{get(n,s){if("string"==typeof s&&"then"!==s)return e(t,[...r,s])},apply(e,n,s){let i="apply"===r[r.length-1];return t({args:i?s.length>=2?s[1]:[]:s,path:i?r.slice(0,-1):r})}})})(e,[]),u=e=>new Proxy(a,{get(t,r){if("string"==typeof r&&"then"!==r)return e(r)}})},56637:(e,t,r)=>{"use strict";class n extends Error{}class s extends Error{constructor(e){let t=function(e){if(e instanceof Error)return e;let t=typeof e;if("undefined"!==t&&"function"!==t&&null!==e){if("object"!==t)return Error(String(e));if(e&&!Array.isArray(e)&&"object"==typeof e){let t=new n;for(let r in e)t[r]=e[r];return t}}}(e.cause);super(e.message??t?.message??e.code,{cause:t}),this.code=e.code,this.name=this.constructor.name}}var i=r(98018),a=r(37187);let o={_default:!0,input:{serialize:e=>e,deserialize:e=>e},output:{serialize:e=>e,deserialize:e=>e}},u=({shape:e})=>e,l=["query","mutation","subscription"],c={_ctx:null,_errorShape:null,_meta:null,queries:{},mutations:{},subscriptions:{},errorFormatter:u,transformer:o},d=["then"];function p(e){return function(t){var r;let n=new Set(Object.keys(t).filter(e=>d.includes(e)));if(n.size>0)throw Error("Reserved words used in `router({})` call: "+Array.from(n).join(", "));let o=(r={},Object.assign(Object.create(null),r));!function e(t,r=""){for(let[n,s]of Object.entries(t??{})){let t=`${r}${n}`;if("router"in s._def){e(s._def.procedures,`${t}.`);continue}if(o[t])throw Error(`Duplicate key: ${t}`);o[t]=s}}(t);let u={_config:e,router:!0,procedures:o,...c,record:t,queries:Object.entries(o).filter(e=>e[1]._def.query).reduce((e,[t,r])=>({...e,[t]:r}),{}),mutations:Object.entries(o).filter(e=>e[1]._def.mutation).reduce((e,[t,r])=>({...e,[t]:r}),{}),subscriptions:Object.entries(o).filter(e=>e[1]._def.subscription).reduce((e,[t,r])=>({...e,[t]:r}),{})};return{...t,_def:u,createCaller:e=>(0,i.a)(({path:t,args:r})=>{if(1===t.length&&l.includes(t[0]))return function(e){let{type:t,path:r}=e;if(!(r in e.procedures)||!e.procedures[r]?._def[t])throw new s({code:"NOT_FOUND",message:`No "${t}"-procedure on path "${r}"`});return(0,e.procedures[r])(e)}({procedures:u.procedures,path:r[0],rawInput:r[1],ctx:e,type:t[0]});let n=t.join("."),i=u.procedures[n],a="query";return i._def.mutation?a="mutation":i._def.subscription&&(a="subscription"),i({path:n,rawInput:r[0],ctx:e,type:a})}),getErrorShape(t){let{path:r,error:n}=t,{code:s}=t.error,o={message:n.message,code:a.T[s],data:{code:s,httpStatus:(0,i.g)(n)}};return e.isDev&&"string"==typeof t.error.stack&&(o.data.stack=t.error.stack),"string"==typeof r&&(o.data.path=r),this._def._config.errorFormatter({...t,shape:o})}}}}let f="undefined"==typeof window||"Deno"in window||globalThis.process?.env?.NODE_ENV==="test"||!!globalThis.process?.env?.JEST_WORKER_ID||!!globalThis.process?.env?.VITEST_WORKER_ID,h="middlewareMarker";function m(e){if("function"==typeof e)return e;if("function"==typeof e.parseAsync)return e.parseAsync.bind(e);if("function"==typeof e.parse)return e.parse.bind(e);if("function"==typeof e.validateSync)return e.validateSync.bind(e);if("function"==typeof e.create)return e.create.bind(e);throw Error("Could not find a validator fn")}class y{_def(){return{middlewares:this.middlewares,resolver:this.resolver,inputParser:this.inputParser,outputParser:this.outputParser,meta:this.meta}}async parseInput(e){try{return await this.parseInputFn(e)}catch(e){throw new TRPCError({code:"BAD_REQUEST",cause:e})}}async parseOutput(e){try{return await this.parseOutputFn(e)}catch(e){throw new TRPCError({code:"INTERNAL_SERVER_ERROR",cause:e,message:"Output validation failed"})}}async call(e){let t=this.middlewares.concat([async({ctx:t})=>{let r=await this.parseInput(e.rawInput),n=await this.resolver({...e,ctx:t,input:r});return{marker:h,ok:!0,data:await this.parseOutput(n),ctx:t}}]),r=async(n={index:0,ctx:e.ctx})=>{try{return await t[n.index]({ctx:n.ctx,type:e.type,path:e.path,rawInput:e.rawInput,meta:this.meta,next:async e=>await r({index:n.index+1,ctx:e?e.ctx:n.ctx})})}catch(e){return{ctx:n.ctx,ok:!1,error:getTRPCErrorFromUnknown(e),marker:h}}},n=await r();if(!n)throw new TRPCError({code:"INTERNAL_SERVER_ERROR",message:"No result from middlewares - did you forget to `return next()`?"});if(!n.ok)throw n.error;return n.data}inheritMiddlewares(e){return new this.constructor({middlewares:[...e,...this.middlewares],resolver:this.resolver,inputParser:this.inputParser,outputParser:this.outputParser,meta:this.meta})}constructor(e){this.middlewares=e.middlewares,this.resolver=e.resolver,this.inputParser=e.inputParser,this.parseInputFn=m(this.inputParser),this.outputParser=e.outputParser,this.parseOutputFn=m(this.outputParser),this.meta=e.meta}}function g(e){let t="input"in e?e.input:e=>{if(null!=e)throw new TRPCError({code:"BAD_REQUEST",message:"No input expected"})},r="output"in e&&e.output?e.output:e=>e;return new y({inputParser:t,resolver:e.resolve,middlewares:[],outputParser:r,meta:e.meta})}function b(e){if("function"==typeof e)return e;if("function"==typeof e.parseAsync)return e.parseAsync.bind(e);if("function"==typeof e.parse)return e.parse.bind(e);if("function"==typeof e.validateSync)return e.validateSync.bind(e);if("function"==typeof e.create)return e.create.bind(e);if("function"==typeof e.assert)return t=>(e.assert(t),t);throw Error("Could not find a validator fn")}function v(e,...t){let r=Object.assign(Object.create(null),e);for(let e of t)for(let t in e){if(t in r&&r[t]!==e[t])throw Error(`Duplicate key ${t}`);r[t]=e[t]}return r}function w(e){return e&&"object"==typeof e&&!Array.isArray(e)}function _(e){let t=async({next:t,rawInput:r,input:n})=>{let i;try{i=await e(r)}catch(e){throw new s({code:"BAD_REQUEST",cause:e})}return t({input:w(n)&&w(i)?{...n,...i}:i})};return t._type="input",t}function x(e){let t=async({next:t})=>{let r=await t();if(!r.ok)return r;try{let t=await e(r.data);return{...r,data:t}}catch(e){throw new s({message:"Output validation failed",code:"INTERNAL_SERVER_ERROR",cause:e})}};return t._type="output",t}let C="middlewareMarker";function E(e,t){let{middlewares:r=[],inputs:n,meta:s,...i}=t;return O({...v(e,i),inputs:[...e.inputs,...n??[]],middlewares:[...e.middlewares,...r],meta:e.meta&&s?{...e.meta,...s}:s??e.meta})}function O(e={}){let t={inputs:[],middlewares:[],...e};return{_def:t,input(e){let r=b(e);return E(t,{inputs:[e],middlewares:[_(r)]})},output(e){let r=b(e);return E(t,{output:e,middlewares:[x(r)]})},meta:e=>E(t,{meta:e}),unstable_concat:e=>E(t,e._def),use:e=>E(t,{middlewares:"_middlewares"in e?e._middlewares:[e]}),query:e=>k({...t,query:!0},e),mutation:e=>k({...t,mutation:!0},e),subscription:e=>k({...t,subscription:!0},e)}}function k(e,t){return function(e){let t=async function(t){if(!t||!("rawInput"in t))throw Error(T);let r=async(n={index:0,ctx:t.ctx})=>{try{let s=e.middlewares[n.index];return await s({ctx:n.ctx,type:t.type,path:t.path,rawInput:n.rawInput??t.rawInput,meta:e.meta,input:n.input,next:e=>r({index:n.index+1,ctx:e&&"ctx"in e?{...n.ctx,...e.ctx}:n.ctx,input:e&&"input"in e?e.input:n.input,rawInput:e&&"rawInput"in e?e.rawInput:n.rawInput})})}catch(e){return{ok:!1,error:function(e){if(e instanceof s)return e;let t=new s({code:"INTERNAL_SERVER_ERROR",cause:e});return e instanceof Error&&e.stack&&(t.stack=e.stack),t}(e),marker:C}}},n=await r();if(!n)throw new s({code:"INTERNAL_SERVER_ERROR",message:"No result from middlewares - did you forget to `return next()`?"});if(!n.ok)throw n.error;return n.data};return t._def=e,t.meta=e.meta,t}(E(e,{resolver:t,middlewares:[async function(e){return{marker:C,ok:!0,data:await t(e),ctx:e.ctx}}]})._def)}let T=`
2
+ If you want to call this function on the server, you do the following:
3
+ This is a client-only function.
4
+
5
+ const caller = appRouter.createCaller({
6
+ /* ... your context */
7
+ });
8
+
9
+ const result = await caller.call('myProcedure', input);
10
+ `.trim();function A(e,t){var r,n;let s=e._def(),i=(r=s.inputParser)?b(r):e=>e,a=(n=s.outputParser)?b(n):e=>e,o=_(i);return O({inputs:[s.inputParser],middlewares:[...s.middlewares,o,x(a)],meta:s.meta,output:s.outputParser,mutation:"mutation"===t,query:"query"===t,subscription:"subscription"===t})[t](e=>s.resolver(e))}let I={query:"queries",mutation:"mutations",subscription:"subscriptions"};function P(...e){return Object.assign(Object.create(null),...e)}class S{static prefixProcedures(e,t){let r=P();for(let[n,s]of Object.entries(e))r[t+n]=s;return r}query(e,t){let r=new S({queries:P({[e]:g(t)})});return this.merge(r)}mutation(e,t){let r=new S({mutations:P({[e]:g(t)})});return this.merge(r)}subscription(e,t){let r=new S({subscriptions:P({[e]:g(t)})});return this.merge(r)}merge(e,t){let r,n="";if("string"==typeof e&&t instanceof S)n=e,r=t;else if(e instanceof S)r=e;else throw Error("Invalid args");let s=[...Object.keys(r._def.queries).filter(e=>!!this._def.queries[n+e]),...Object.keys(r._def.mutations).filter(e=>!!this._def.mutations[n+e]),...Object.keys(r._def.subscriptions).filter(e=>!!this._def.subscriptions[n+e])];if(s.length)throw Error(`Duplicate endpoint(s): ${s.join(", ")}`);let i=e=>{let t=P();for(let[r,n]of Object.entries(e)){let e=n.inheritMiddlewares(this._def.middlewares);t[r]=e}return S.prefixProcedures(t,n)};return new S({...this._def,queries:P(this._def.queries,i(r._def.queries)),mutations:P(this._def.mutations,i(r._def.mutations)),subscriptions:P(this._def.subscriptions,i(r._def.subscriptions))})}async call(e){let{type:t,path:r}=e,n=I[t],s=this._def[n][r];if(!s)throw new TRPCError({code:"NOT_FOUND",message:`No "${t}"-procedure on path "${r}"`});return s.call(e)}createCaller(e){return{query:(t,...r)=>this.call({type:"query",ctx:e,path:t,rawInput:r[0]}),mutation:(t,...r)=>this.call({type:"mutation",ctx:e,path:t,rawInput:r[0]}),subscription:(t,...r)=>this.call({type:"subscription",ctx:e,path:t,rawInput:r[0]})}}middleware(e){return new S({...this._def,middlewares:[...this._def.middlewares,e]})}formatError(e){if(this._def.errorFormatter!==defaultFormatter)throw Error("You seem to have double `formatError()`-calls in your router tree");return new S({...this._def,errorFormatter:e})}getErrorShape(e){let{path:t,error:r}=e,{code:n}=e.error,s={message:r.message,code:TRPC_ERROR_CODES_BY_KEY[n],data:{code:n,httpStatus:getHTTPStatusCodeFromError(r)}};return globalThis.process?.env?.NODE_ENV!=="production"&&"string"==typeof e.error.stack&&(s.data.stack=e.error.stack),"string"==typeof t&&(s.data.path=t),this._def.errorFormatter({...e,shape:s})}transformer(e){if(this._def.transformer!==defaultTransformer)throw Error("You seem to have double `transformer()`-calls in your router tree");return new S({...this._def,transformer:"input"in e?e:{input:e,output:e}})}flat(){return this}interop(){return function(e){let t=e._def.errorFormatter,r=e._def.transformer,n={},s={},i={};for(let[t,r]of Object.entries(e._def.queries))n[t]=A(r,"query");for(let[t,r]of Object.entries(e._def.mutations))s[t]=A(r,"mutation");for(let[t,r]of Object.entries(e._def.subscriptions))i[t]=A(r,"subscription");let a=v(n,s,i);return createRouterFactory({transformer:r,errorFormatter:t,isDev:!1})(a)}(this)}constructor(e){this._def={queries:e?.queries??P(),mutations:e?.mutations??P(),subscriptions:e?.subscriptions??P(),middlewares:e?.middlewares??[],errorFormatter:e?.errorFormatter??defaultFormatter,transformer:e?.transformer??defaultTransformer}}}function j(...e){let t=v({},...e.map(e=>e._def.record));return p({errorFormatter:e.reduce((e,t)=>{if(t._def._config.errorFormatter&&t._def._config.errorFormatter!==u){if(e!==u&&e!==t._def._config.errorFormatter)throw Error("You seem to have several error formatters");return t._def._config.errorFormatter}return e},u),transformer:e.reduce((e,t)=>{if(t._def._config.transformer&&t._def._config.transformer!==o){if(e!==o&&e!==t._def._config.transformer)throw Error("You seem to have several transformers");return t._def._config.transformer}return e},o),isDev:e.some(e=>e._def._config.isDev),allowOutsideOfServer:e.some(e=>e._def._config.allowOutsideOfServer),isServer:e.some(e=>e._def._config.isServer),$types:e[0]?._def._config.$types})(t)}class N{context(){return new N}meta(){return new N}create(e){return function(e){var t;let r=e?.errorFormatter??u,n={transformer:"input"in(t=e?.transformer??o)?t:{input:t,output:t},isDev:e?.isDev??globalThis.process?.env?.NODE_ENV!=="production",allowOutsideOfServer:e?.allowOutsideOfServer??!1,errorFormatter:r,isServer:e?.isServer??f,$types:(0,i.c)(e=>{throw Error(`Tried to access "$types.${e}" which is not available at runtime`)})};if(!(e?.isServer??f)&&e?.allowOutsideOfServer!==!0)throw Error("You're trying to use @trpc/server in a non-server environment. This is not supported by default.");return{_config:n,procedure:O({meta:e?.defaultMeta}),middleware:function(e){return function e(t){return{_middlewares:t,unstable_pipe:r=>e([...t,..."_middlewares"in r?r._middlewares:[r]])}}([e])},router:p(n),mergeRouters:j}}(e)}}new N},86376:(e,t,r)=>{"use strict";function n(e,t){let r=e.exec(t);return r?.groups}r.d(t,{V:()=>Z});let s=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,i=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,a=/^\(.+?\).*?$/,o=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/,u=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/,l=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/,c=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/,d=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/,p=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/,f=/^receive\(\) external payable$/,h=new Set(["indexed"]),m=new Set(["calldata","memory","storage"]);class y extends Error{constructor(e,t={}){let r=t.cause instanceof y?t.cause.details:t.cause?.message?t.cause.message:t.details,n=t.cause instanceof y&&t.cause.docsPath||t.docsPath;super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...n?[`Docs: https://abitype.dev${n}`]:[],...r?[`Details: ${r}`]:[],"Version: abitype@1.0.6"].join("\n")),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),t.cause&&(this.cause=t.cause),this.details=r,this.docsPath=n,this.metaMessages=t.metaMessages,this.shortMessage=e}}class g extends y{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}class b extends y{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}class v extends y{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class w extends y{constructor({param:e,name:t}){super("Invalid ABI parameter.",{details:e,metaMessages:[`"${t}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}class _ extends y{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class x extends y{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${r}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class C extends y{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}class E extends y{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class O extends y{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class k extends y{constructor({signature:e}){super("Invalid struct signature.",{details:e,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}class T extends y{constructor({type:e}){super("Circular reference detected.",{metaMessages:[`Struct "${e}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}class A extends y{constructor({current:e,depth:t}){super("Unbalanced parentheses.",{metaMessages:[`"${e.trim()}" has too many ${t>0?"opening":"closing"} parentheses.`],details:`Depth "${t}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}let I=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]),P=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,S=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,j=/^u?int$/;function N(e,t){var r,o,u;let l;let c=(r=t?.type)?`${r}:${e}`:e;if(I.has(c))return I.get(c);let d=a.test(e),p=n(d?S:P,e);if(!p)throw new v({param:e});if(p.name&&("address"===(o=p.name)||"bool"===o||"function"===o||"string"===o||"tuple"===o||s.test(o)||i.test(o)||M.test(o)))throw new w({param:e,name:p.name});let f=p.name?{name:p.name}:{},h="indexed"===p.modifier?{indexed:!0}:{},y=t?.structs??{},g={};if(d){l="tuple";let e=R(p.type),t=[],r=e.length;for(let n=0;n<r;n++)t.push(N(e[n],{structs:y}));g={components:t}}else if(p.type in y)l="tuple",g={components:y[p.type]};else if(j.test(p.type))l=`${p.type}256`;else if(l=p.type,t?.type!=="struct"&&!$(l))throw new b({type:l});if(p.modifier){if(!t?.modifiers?.has?.(p.modifier))throw new _({param:e,type:t?.type,modifier:p.modifier});if(m.has(p.modifier)&&(u=l,!p.array&&"bytes"!==u&&"string"!==u&&"tuple"!==u))throw new x({param:e,type:t?.type,modifier:p.modifier})}let C={type:`${l}${p.array??""}`,...f,...h,...g};return I.set(c,C),C}function R(e,t=[],r="",n=0){let s=e.trim().length;for(let i=0;i<s;i++){let s=e[i],a=e.slice(i+1);switch(s){case",":return 0===n?R(a,[...t,r.trim()]):R(a,t,`${r}${s}`,n);case"(":return R(a,t,`${r}${s}`,n+1);case")":return R(a,t,`${r}${s}`,n-1);default:return R(a,t,`${r}${s}`,n)}}if(""===r)return t;if(0!==n)throw new A({current:r,depth:n});return t.push(r.trim()),t}function $(e){return"address"===e||"bool"===e||"function"===e||"string"===e||s.test(e)||i.test(e)}let M=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/,F=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;function Z(e){let t=function(e){let t={},r=e.length;for(let s=0;s<r;s++){let r=e[s];if(!c.test(r))continue;let i=n(c,r);if(!i)throw new E({signature:r,type:"struct"});let a=i.properties.split(";"),o=[],u=a.length;for(let e=0;e<u;e++){let t=a[e].trim();if(!t)continue;let r=N(t,{type:"struct"});o.push(r)}if(!o.length)throw new k({signature:r});t[i.name]=o}let s={},i=Object.entries(t),o=i.length;for(let e=0;e<o;e++){let[r,o]=i[e];s[r]=function e(t,r,s=new Set){let i=[],o=t.length;for(let u=0;u<o;u++){let o=t[u];if(a.test(o.type))i.push(o);else{let t=n(F,o.type);if(!t?.type)throw new C({abiParameter:o});let{array:a,type:u}=t;if(u in r){if(s.has(u))throw new T({type:u});i.push({...o,type:`tuple${a??""}`,components:e(r[u]??[],r,new Set([...s,u]))})}else if($(u))i.push(o);else throw new g({type:u})}}return i}(o,t)}return s}(e),r=[],s=e.length;for(let i=0;i<s;i++){let s=e[i];c.test(s)||r.push(function(e,t={}){if(l.test(e)){let r=n(l,e);if(!r)throw new E({signature:e,type:"function"});let s=R(r.parameters),i=[],a=s.length;for(let e=0;e<a;e++)i.push(N(s[e],{modifiers:m,structs:t,type:"function"}));let o=[];if(r.returns){let e=R(r.returns),n=e.length;for(let r=0;r<n;r++)o.push(N(e[r],{modifiers:m,structs:t,type:"function"}))}return{name:r.name,type:"function",stateMutability:r.stateMutability??"nonpayable",inputs:i,outputs:o}}if(u.test(e)){let r=n(u,e);if(!r)throw new E({signature:e,type:"event"});let s=R(r.parameters),i=[],a=s.length;for(let e=0;e<a;e++)i.push(N(s[e],{modifiers:h,structs:t,type:"event"}));return{name:r.name,type:"event",inputs:i}}if(o.test(e)){let r=n(o,e);if(!r)throw new E({signature:e,type:"error"});let s=R(r.parameters),i=[],a=s.length;for(let e=0;e<a;e++)i.push(N(s[e],{structs:t,type:"error"}));return{name:r.name,type:"error",inputs:i}}if(d.test(e)){let r=n(d,e);if(!r)throw new E({signature:e,type:"constructor"});let s=R(r.parameters),i=[],a=s.length;for(let e=0;e<a;e++)i.push(N(s[e],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:r.stateMutability??"nonpayable",inputs:i}}if(p.test(e))return{type:"fallback"};if(f.test(e))return{type:"receive",stateMutability:"payable"};throw new O({signature:e})}(s,t))}return r}},81186:(e,t,r)=>{"use strict";r.d(t,{G:()=>n});class n extends Error{constructor(e,t={}){let r=t.cause instanceof n?t.cause.details:t.cause?.message?t.cause.message:t.details,s=t.cause instanceof n&&t.cause.docsPath||t.docsPath;super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...s?[`Docs: https://abitype.dev${s}`]:[],...r?[`Details: ${r}`]:[],"Version: abitype@1.0.8"].join("\n")),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),t.cause&&(this.cause=t.cause),this.details=r,this.docsPath=s,this.metaMessages=t.metaMessages,this.shortMessage=e}}},1297:(e,t,r)=>{"use strict";r.d(t,{F:()=>i,Hk:()=>a,a_:()=>s});var n=r(81186);class s extends n.G{constructor({signature:e}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}class i extends n.G{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}class a extends n.G{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}},82774:(e,t,r)=>{"use strict";r.d(t,{$r:()=>s,TT:()=>a,_D:()=>u,aZ:()=>l,jO:()=>i,zL:()=>o});var n=r(81186);class s extends n.G{constructor({params:e}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}}class i extends n.G{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class a extends n.G{constructor({param:e,name:t}){super("Invalid ABI parameter.",{details:e,metaMessages:[`"${t}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}class o extends n.G{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class u extends n.G{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${r}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class l extends n.G{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}},89852:(e,t,r)=>{"use strict";r.d(t,{H6:()=>a,Vs:()=>i,wn:()=>s});var n=r(81186);class s extends n.G{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class i extends n.G{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class a extends n.G{constructor({signature:e}){super("Invalid struct signature.",{details:e,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}},33661:(e,t,r)=>{"use strict";r.d(t,{V:()=>a});var n=r(94849),s=r(49607),i=r(73663);function a(e){let t=(0,s.D)(e),r=[],a=e.length;for(let s=0;s<a;s++){let a=e[s];(0,n.N0)(a)||r.push((0,i.cK)(a,t))}return r}},89949:(e,t,r)=>{"use strict";r.d(t,{s:()=>o});var n=r(1297),s=r(94849),i=r(49607),a=r(73663);function o(e){let t;if("string"==typeof e)t=(0,a.cK)(e);else{let r=(0,i.D)(e),n=e.length;for(let i=0;i<n;i++){let n=e[i];if(!(0,s.N0)(n)){t=(0,a.cK)(n,r);break}}}if(!t)throw new n.a_({signature:e});return t}},64767:(e,t,r)=>{"use strict";r.d(t,{n:()=>o});var n=r(82774),s=r(94849),i=r(49607),a=r(73663);function o(e){let t=[];if("string"==typeof e){let r=(0,a.Q4)(e),n=r.length;for(let e=0;e<n;e++)t.push((0,a.C$)(r[e],{modifiers:s.LY}))}else{let r=(0,i.D)(e),n=e.length;for(let i=0;i<n;i++){let n=e[i];if((0,s.N0)(n))continue;let o=(0,a.Q4)(n),u=o.length;for(let e=0;e<u;e++)t.push((0,a.C$)(o[e],{modifiers:s.LY,structs:r}))}}if(0===t.length)throw new n.$r({params:e});return t}},94849:(e,t,r)=>{"use strict";r.d(t,{Dt:()=>k,EC:()=>w,LY:()=>E,N0:()=>h,PI:()=>b,QM:()=>C,SA:()=>a,Wg:()=>O,_c:()=>i,a4:()=>g,c3:()=>u,g1:()=>m,l$:()=>p,qm:()=>_,rh:()=>d,wA:()=>l});var n=r(70640);let s=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function i(e){return s.test(e)}function a(e){return(0,n.Zw)(s,e)}let o=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function u(e){return o.test(e)}function l(e){return(0,n.Zw)(o,e)}let c=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;function d(e){return c.test(e)}function p(e){return(0,n.Zw)(c,e)}let f=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function h(e){return f.test(e)}function m(e){return(0,n.Zw)(f,e)}let y=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;function g(e){return y.test(e)}function b(e){return(0,n.Zw)(y,e)}let v=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;function w(e){return v.test(e)}function _(e){return(0,n.Zw)(v,e)}let x=/^receive\(\) external payable$/;function C(e){return x.test(e)}let E=new Set(["memory","indexed","storage","calldata"]),O=new Set(["indexed"]),k=new Set(["calldata","memory","storage"])},49607:(e,t,r)=>{"use strict";r.d(t,{D:()=>d});var n=r(70640),s=r(1297),i=r(82774),a=r(89852),o=r(81186);class u extends o.G{constructor({type:e}){super("Circular reference detected.",{metaMessages:[`Struct "${e}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}var l=r(94849),c=r(73663);function d(e){let t={},r=e.length;for(let n=0;n<r;n++){let r=e[n];if(!(0,l.N0)(r))continue;let s=(0,l.g1)(r);if(!s)throw new a.wn({signature:r,type:"struct"});let i=s.properties.split(";"),o=[],u=i.length;for(let e=0;e<u;e++){let t=i[e].trim();if(!t)continue;let r=(0,c.C$)(t,{type:"struct"});o.push(r)}if(!o.length)throw new a.H6({signature:r});t[s.name]=o}let o={},d=Object.entries(t),f=d.length;for(let e=0;e<f;e++){let[r,a]=d[e];o[r]=function e(t,r,a=new Set){let o=[],l=t.length;for(let d=0;d<l;d++){let l=t[d];if(n.cN.test(l.type))o.push(l);else{let t=(0,n.Zw)(p,l.type);if(!t?.type)throw new i.aZ({abiParameter:l});let{array:d,type:f}=t;if(f in r){if(a.has(f))throw new u({type:f});o.push({...l,type:`tuple${d??""}`,components:e(r[f]??[],r,new Set([...a,f]))})}else if((0,c.uN)(f))o.push(l);else throw new s.F({type:f})}}return o}(a,t)}return o}let p=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/},73663:(e,t,r)=>{"use strict";r.d(t,{uN:()=>g,C$:()=>m,cK:()=>d,Q4:()=>y});var n=r(70640),s=r(1297),i=r(82774),a=r(89852),o=r(81186);class u extends o.G{constructor({current:e,depth:t}){super("Unbalanced parentheses.",{metaMessages:[`"${e.trim()}" has too many ${t>0?"opening":"closing"} parentheses.`],details:`Depth "${t}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}let l=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]);var c=r(94849);function d(e,t={}){if((0,c.rh)(e))return function(e,t={}){let r=(0,c.l$)(e);if(!r)throw new a.wn({signature:e,type:"function"});let n=y(r.parameters),s=[],i=n.length;for(let e=0;e<i;e++)s.push(m(n[e],{modifiers:c.Dt,structs:t,type:"function"}));let o=[];if(r.returns){let e=y(r.returns),n=e.length;for(let r=0;r<n;r++)o.push(m(e[r],{modifiers:c.Dt,structs:t,type:"function"}))}return{name:r.name,type:"function",stateMutability:r.stateMutability??"nonpayable",inputs:s,outputs:o}}(e,t);if((0,c.c3)(e))return function(e,t={}){let r=(0,c.wA)(e);if(!r)throw new a.wn({signature:e,type:"event"});let n=y(r.parameters),s=[],i=n.length;for(let e=0;e<i;e++)s.push(m(n[e],{modifiers:c.Wg,structs:t,type:"event"}));return{name:r.name,type:"event",inputs:s}}(e,t);if((0,c._c)(e))return function(e,t={}){let r=(0,c.SA)(e);if(!r)throw new a.wn({signature:e,type:"error"});let n=y(r.parameters),s=[],i=n.length;for(let e=0;e<i;e++)s.push(m(n[e],{structs:t,type:"error"}));return{name:r.name,type:"error",inputs:s}}(e,t);if((0,c.a4)(e))return function(e,t={}){let r=(0,c.PI)(e);if(!r)throw new a.wn({signature:e,type:"constructor"});let n=y(r.parameters),s=[],i=n.length;for(let e=0;e<i;e++)s.push(m(n[e],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:r.stateMutability??"nonpayable",inputs:s}}(e,t);if((0,c.EC)(e))return function(e){let t=(0,c.qm)(e);if(!t)throw new a.wn({signature:e,type:"fallback"});return{type:"fallback",stateMutability:t.stateMutability??"nonpayable"}}(e);if((0,c.QM)(e))return{type:"receive",stateMutability:"payable"};throw new a.Vs({signature:e})}let p=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,f=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,h=/^u?int$/;function m(e,t){var r,a;let o;let u=function(e,t,r){let n="";if(r)for(let e of Object.entries(r)){if(!e)continue;let t="";for(let r of e[1])t+=`[${r.type}${r.name?`:${r.name}`:""}]`;n+=`(${e[0]}{${t}})`}return t?`${t}:${e}${n}`:e}(e,t?.type,t?.structs);if(l.has(u))return l.get(u);let d=n.cN.test(e),v=(0,n.Zw)(d?f:p,e);if(!v)throw new i.jO({param:e});if(v.name&&("address"===(r=v.name)||"bool"===r||"function"===r||"string"===r||"tuple"===r||n.eL.test(r)||n.lh.test(r)||b.test(r)))throw new i.TT({param:e,name:v.name});let w=v.name?{name:v.name}:{},_="indexed"===v.modifier?{indexed:!0}:{},x=t?.structs??{},C={};if(d){o="tuple";let e=y(v.type),t=[],r=e.length;for(let n=0;n<r;n++)t.push(m(e[n],{structs:x}));C={components:t}}else if(v.type in x)o="tuple",C={components:x[v.type]};else if(h.test(v.type))o=`${v.type}256`;else if(o=v.type,t?.type!=="struct"&&!g(o))throw new s.Hk({type:o});if(v.modifier){if(!t?.modifiers?.has?.(v.modifier))throw new i.zL({param:e,type:t?.type,modifier:v.modifier});if(c.Dt.has(v.modifier)&&(a=o,!v.array&&"bytes"!==a&&"string"!==a&&"tuple"!==a))throw new i._D({param:e,type:t?.type,modifier:v.modifier})}let E={type:`${o}${v.array??""}`,...w,..._,...C};return l.set(u,E),E}function y(e,t=[],r="",n=0){let s=e.trim().length;for(let i=0;i<s;i++){let s=e[i],a=e.slice(i+1);switch(s){case",":return 0===n?y(a,[...t,r.trim()]):y(a,t,`${r}${s}`,n);case"(":return y(a,t,`${r}${s}`,n+1);case")":return y(a,t,`${r}${s}`,n-1);default:return y(a,t,`${r}${s}`,n)}}if(""===r)return t;if(0!==n)throw new u({current:r,depth:n});return t.push(r.trim()),t}function g(e){return"address"===e||"bool"===e||"function"===e||"string"===e||n.eL.test(e)||n.lh.test(e)}let b=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/},70640:(e,t,r)=>{"use strict";function n(e,t){let r=e.exec(t);return r?.groups}r.d(t,{Zw:()=>n,cN:()=>a,eL:()=>s,lh:()=>i});let s=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,i=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,a=/^\(.+?\).*?$/},60654:(e,t,r)=>{"use strict";r(76193);class n extends Error{constructor(e){super(),this.name="AbortError",this.message=e}}new WeakMap;var s,i,a,o,u,l,c,d,p,f,h,m,y,g,b,v,w,_,x,C,E,O=function(e,t,r,n,s){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!s)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!s:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?s.call(e,r):s?s.value=r:t.set(e,r),r},k=function(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};i=new WeakMap,a=new WeakMap,o=new WeakMap,u=new WeakMap,l=new WeakMap,c=new WeakMap,d=new WeakMap,p=new WeakMap,f=new WeakMap,new WeakMap,h=new WeakMap,m=new WeakMap,y=new WeakMap,new WeakMap,s=new WeakSet,g=function(){return k(this,a,"f")||k(this,o,"f")<k(this,u,"f")},b=function(){return k(this,h,"f")<k(this,m,"f")},v=function(){k(this,s,"m",C).call(this),k(this,s,"m",x).call(this),O(this,p,void 0,"f")},w=function(){let e=Date.now();if(void 0===k(this,d,"f")){let t=k(this,c,"f")-e;if(!(t<0))return void 0===k(this,p,"f")&&O(this,p,setTimeout(()=>{k(this,s,"m",v).call(this)},t),"f"),!0;O(this,o,k(this,i,"f")?k(this,h,"f"):0,"f")}return!1},_=function(){if(0===k(this,f,"f").size)return k(this,d,"f")&&clearInterval(k(this,d,"f")),O(this,d,void 0,"f"),this.emit("empty"),0===k(this,h,"f")&&this.emit("idle"),!1;if(!k(this,y,"f")){let e=!k(this,s,"a",w);if(k(this,s,"a",g)&&k(this,s,"a",b)){let t=k(this,f,"f").dequeue();return!!t&&(this.emit("active"),t(),e&&k(this,s,"m",x).call(this),!0)}}return!1},x=function(){k(this,a,"f")||void 0!==k(this,d,"f")||(O(this,d,setInterval(()=>{k(this,s,"m",C).call(this)},k(this,l,"f")),"f"),O(this,c,Date.now()+k(this,l,"f"),"f"))},C=function(){0===k(this,o,"f")&&0===k(this,h,"f")&&k(this,d,"f")&&(clearInterval(k(this,d,"f")),O(this,d,void 0,"f")),O(this,o,k(this,i,"f")?k(this,h,"f"):0,"f"),k(this,s,"m",E).call(this)},E=function(){for(;k(this,s,"m",_).call(this););}},63943:(e,t,r)=>{"use strict";r(2200)},25625:(e,t,r)=>{"use strict";r.d(t,{z:()=>o});let n=new Map,s=new Map;async function i(e,{cacheKey:t,cacheTime:r=Number.POSITIVE_INFINITY}){let i=function(e){let t=(e,t)=>({clear:()=>t.delete(e),get:()=>t.get(e),set:r=>t.set(e,r)}),r=t(e,n),i=t(e,s);return{clear:()=>{r.clear(),i.clear()},promise:r,response:i}}(t),a=i.response.get();if(a&&r>0&&new Date().getTime()-a.created.getTime()<r)return a.data;let o=i.promise.get();o||(o=e(),i.promise.set(o));try{let e=await o;return i.response.set({created:new Date,data:e}),e}finally{i.promise.clear()}}let a=e=>`blockNumber.${e}`;async function o(e,{cacheTime:t=e.cacheTime}={}){return BigInt(await i(()=>e.request({method:"eth_blockNumber"}),{cacheKey:a(e.uid),cacheTime:t}))}},26594:(e,t,r)=>{"use strict";r.d(t,{e:()=>s});var n=r(27042);function s(e){var t;let{batch:r,cacheTime:s=e.pollingInterval??4e3,ccipRead:i,key:a="base",name:o="Base Client",pollingInterval:u=4e3,type:l="base"}=e,c=e.chain,d=e.account?"string"==typeof(t=e.account)?{address:t,type:"json-rpc"}:t:void 0,{config:p,request:f,value:h}=e.transport({chain:c,pollingInterval:u}),m={account:d,batch:r,cacheTime:s,ccipRead:i,chain:c,key:a,name:o,pollingInterval:u,request:f,transport:{...p,...h},type:l,uid:(0,n.h)()};return Object.assign(m,{extend:function e(t){return r=>{let n=r(t);for(let e in m)delete n[e];let s={...t,...n};return Object.assign(s,{extend:e(s)})}}(m)})}},78465:(e,t,r)=>{"use strict";r.d(t,{d:()=>U});var n=r(23079),s=r(51733);class i extends s.G{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}let a=new Map;var o=r(20520);class u extends s.G{constructor(e,{code:t,docsPath:r,metaMessages:s,name:i,shortMessage:a}){super(a,{cause:e,docsPath:r,metaMessages:s||e?.metaMessages,name:i||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=i||e.name,this.code=e instanceof n.bs?e.code:t??-1}}class l extends u{constructor(e,t){super(e,t),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t.data}}class c extends u{constructor(e){super(e,{code:c.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty(c,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class d extends u{constructor(e){super(e,{code:d.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(d,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class p extends u{constructor(e,{method:t}={}){super(e,{code:p.code,name:"MethodNotFoundRpcError",shortMessage:`The method${t?` "${t}"`:""} does not exist / is not available.`})}}Object.defineProperty(p,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class f extends u{constructor(e){super(e,{code:f.code,name:"InvalidParamsRpcError",shortMessage:"Invalid parameters were provided to the RPC method.\nDouble check you have provided the correct parameters."})}}Object.defineProperty(f,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class h extends u{constructor(e){super(e,{code:h.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}Object.defineProperty(h,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class m extends u{constructor(e){super(e,{code:m.code,name:"InvalidInputRpcError",shortMessage:"Missing or invalid parameters.\nDouble check you have provided the correct parameters."})}}Object.defineProperty(m,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class y extends u{constructor(e){super(e,{code:y.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(y,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class g extends u{constructor(e){super(e,{code:g.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(g,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class b extends u{constructor(e){super(e,{code:b.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(b,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class v extends u{constructor(e,{method:t}={}){super(e,{code:v.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${t?` "${t}"`:""} is not supported.`})}}Object.defineProperty(v,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class w extends u{constructor(e){super(e,{code:w.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}Object.defineProperty(w,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class _ extends u{constructor(e){super(e,{code:_.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty(_,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class x extends l{constructor(e){super(e,{code:x.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(x,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class C extends l{constructor(e){super(e,{code:C.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}Object.defineProperty(C,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class E extends l{constructor(e,{method:t}={}){super(e,{code:E.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${t?` " ${t}"`:""}.`})}}Object.defineProperty(E,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class O extends l{constructor(e){super(e,{code:O.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(O,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class k extends l{constructor(e){super(e,{code:k.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(k,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class T extends l{constructor(e){super(e,{code:T.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(T,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class A extends l{constructor(e){super(e,{code:A.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}}Object.defineProperty(A,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});class I extends l{constructor(e){super(e,{code:I.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}}Object.defineProperty(I,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});class P extends l{constructor(e){super(e,{code:P.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}Object.defineProperty(P,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});class S extends l{constructor(e){super(e,{code:S.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}Object.defineProperty(S,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class j extends l{constructor(e){super(e,{code:j.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}Object.defineProperty(j,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});class N extends l{constructor(e){super(e,{code:N.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}}Object.defineProperty(N,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750});class R extends l{constructor(e){super(e,{code:R.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}}Object.defineProperty(R,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});class $ extends u{constructor(e){super(e,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}var M=r(11447);let F=new(r(64645)).k(8192);async function Z(e){return new Promise(t=>setTimeout(t,e))}var L=r(80263),z=r(27042);function U(e,t={}){let{batch:r,fetchOptions:u,key:l="http",methods:U,name:D="HTTP JSON-RPC",onFetchRequest:B,onFetchResponse:q,retryDelay:V,raw:G}=t;return({chain:W,retryCount:K,timeout:Y})=>{let{batchSize:J=1e3,wait:H=0}="object"==typeof r?r:{},Q=t.retryCount??K,X=Y??t.timeout??1e4,ee=e||W?.rpcUrls.default.http[0];if(!ee)throw new i;let et=(0,o.x)(ee,{fetchOptions:u,onRequest:B,onResponse:q,timeout:X});return function({key:e,methods:t,name:r,request:i,retryCount:a=3,retryDelay:o=150,timeout:u,type:l},U){return{config:{key:e,methods:t,name:r,request:i,retryCount:a,retryDelay:o,timeout:u,type:l},request:function(e,t={}){return async(r,i={})=>{let{dedupe:a=!1,methods:o,retryDelay:u=150,retryCount:l=3,uid:z}={...t,...i},{method:U}=r;if(o?.exclude?.includes(U)||o?.include&&!o.include.includes(U))throw new v(Error("method not supported"),{method:U});let D=a?(0,M.$G)(`${z}.${(0,L.P)(r)}`):void 0;return function(e,{enabled:t=!0,id:r}){if(!t||!r)return e();if(F.get(r))return F.get(r);let n=e().finally(()=>F.delete(r));return F.set(r,n),n}(()=>(function(e,{delay:t=100,retryCount:r=2,shouldRetry:n=()=>!0}={}){return new Promise((s,i)=>{let a=async({count:o=0}={})=>{let u=async({error:e})=>{let r="function"==typeof t?t({count:o,error:e}):t;r&&await Z(r),a({count:o+1})};try{let t=await e();s(t)}catch(e){if(o<r&&await n({count:o,error:e}))return u({error:e});i(e)}};a()})})(async()=>{try{return await e(r)}catch(e){switch(e.code){case c.code:throw new c(e);case d.code:throw new d(e);case p.code:throw new p(e,{method:r.method});case f.code:throw new f(e);case h.code:throw new h(e);case m.code:throw new m(e);case y.code:throw new y(e);case g.code:throw new g(e);case b.code:throw new b(e);case v.code:throw new v(e,{method:r.method});case w.code:throw new w(e);case _.code:throw new _(e);case x.code:throw new x(e);case C.code:throw new C(e);case E.code:throw new E(e);case O.code:throw new O(e);case k.code:throw new k(e);case T.code:throw new T(e);case A.code:throw new A(e);case I.code:throw new I(e);case P.code:throw new P(e);case S.code:throw new S(e);case j.code:throw new j(e);case N.code:throw new N(e);case R.code:throw new R(e);case 5e3:throw new x(e);default:if(e instanceof s.G)throw e;throw new $(e)}}},{delay:({count:e,error:t})=>{if(t&&t instanceof n.Gg){let e=t?.headers?.get("Retry-After");if(e?.match(/\d/))return 1e3*Number.parseInt(e)}return~~(1<<e)*u},retryCount:l,shouldRetry:({error:e})=>"code"in e&&"number"==typeof e.code?-1===e.code||e.code===w.code||e.code===h.code:!(e instanceof n.Gg)||!e.status||403===e.status||408===e.status||413===e.status||429===e.status||500===e.status||502===e.status||503===e.status||504===e.status}),{enabled:a,id:D})}}(i,{methods:t,retryCount:a,retryDelay:o,uid:(0,z.h)()}),value:U}}({key:l,methods:U,name:D,async request({method:e,params:t}){let s={method:e,params:t},{schedule:i}=function({fn:e,id:t,shouldSplitBatch:r,wait:n=0,sort:s}){let i=async()=>{let t=l();o();let r=t.map(({args:e})=>e);0!==r.length&&e(r).then(e=>{s&&Array.isArray(e)&&e.sort(s);for(let r=0;r<t.length;r++){let{resolve:n}=t[r];n?.([e[r],e])}}).catch(e=>{for(let r=0;r<t.length;r++){let{reject:n}=t[r];n?.(e)}})},o=()=>a.delete(t),u=()=>l().map(({args:e})=>e),l=()=>a.get(t)||[],c=e=>a.set(t,[...l(),e]);return{flush:o,async schedule(e){let t,s;let{promise:a,resolve:o,reject:d}=(t=()=>void 0,s=()=>void 0,{promise:new Promise((e,r)=>{t=e,s=r}),resolve:t,reject:s});return(r?.([...u(),e])&&i(),l().length>0)?c({args:e,resolve:o,reject:d}):(c({args:e,resolve:o,reject:d}),setTimeout(i,n)),a}}}({id:ee,wait:H,shouldSplitBatch:e=>e.length>J,fn:e=>et.request({body:e}),sort:(e,t)=>e.id-t.id}),o=async e=>r?i(e):[await et.request({body:e})],[{error:u,result:l}]=await o(s);if(G)return{error:u,result:l};if(u)throw new n.bs({body:s,error:u,url:ee});return l},retryCount:Q,retryDelay:V,timeout:X,type:"http"},{fetchOptions:u,url:ee})}}},37723:(e,t,r)=>{"use strict";r.d(t,{CI:()=>g,FM:()=>d,Gy:()=>m,KY:()=>f,M4:()=>l,Mi:()=>w,SM:()=>h,dh:()=>y,fs:()=>c,gr:()=>u,hn:()=>b,lC:()=>p,wM:()=>v,wb:()=>o,xB:()=>a});var n=r(25865),s=r(16592),i=r(51733);class a extends i.G{constructor({data:e,params:t,size:r}){super(`Data size of ${r} bytes is too small for given parameters.`,{metaMessages:[`Params: (${(0,n.h)(t,{includeName:!0})})`,`Data: ${e} (${r} bytes)`],name:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e,this.params=t,this.size=r}}class o extends i.G{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError"})}}class u extends i.G{constructor({expectedLength:e,givenLength:t,type:r}){super(`ABI encoding array length mismatch for type ${r}.
11
+ Expected length: ${e}
12
+ Given length: ${t}`,{name:"AbiEncodingArrayLengthMismatchError"})}}class l extends i.G{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${(0,s.d)(t)}) does not match expected size (bytes${e}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class c extends i.G{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding params/values length mismatch.
13
+ Expected length (params): ${e}
14
+ Given length (values): ${t}`,{name:"AbiEncodingLengthMismatchError"})}}class d extends i.G{constructor({docsPath:e}){super("Cannot extract event signature from empty topics.",{docsPath:e,name:"AbiEventSignatureEmptyTopicsError"})}}class p extends i.G{constructor(e,{docsPath:t}){super(`Encoded event signature "${e}" not found on ABI.
15
+ Make sure you are using the correct ABI and that the event exists on it.
16
+ You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t,name:"AbiEventSignatureNotFoundError"})}}class f extends i.G{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`,{name:"BytesSizeMismatchError"})}}class h extends i.G{constructor({abiItem:e,data:t,params:r,size:s}){super(`Data size of ${s} bytes is too small for non-indexed event parameters.`,{metaMessages:[`Params: (${(0,n.h)(r,{includeName:!0})})`,`Data: ${t} (${s} bytes)`],name:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e,this.data=t,this.params=r,this.size=s}}class m extends i.G{constructor({abiItem:e,param:t}){super(`Expected a topic for indexed event parameter${t.name?` "${t.name}"`:""} on event "${(0,n.t)(e,{includeName:!0})}".`,{name:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}}class y extends i.G{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid encoding type.
17
+ Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiEncodingType"})}}class g extends i.G{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid decoding type.
18
+ Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiDecodingType"})}}class b extends i.G{constructor(e){super(`Value "${e}" is not a valid array.`,{name:"InvalidArrayError"})}}class v extends i.G{constructor(e){super(`"${e}" is not a valid definition type.
19
+ Valid types: "function", "event", "error"`,{name:"InvalidDefinitionTypeError"})}}class w extends i.G{constructor(e){super(`Type "${e}" is not supported for packed encoding.`,{name:"UnsupportedPackedAbiType"})}}},54146:(e,t,r)=>{"use strict";r.d(t,{f:()=>s});var n=r(51733);class s extends n.G{constructor({blockHash:e,blockNumber:t}){let r="Block";e&&(r=`Block at hash "${e}"`),t&&(r=`Block at number "${t}"`),super(`${r} could not be found.`,{name:"BlockNotFoundError"})}}},23079:(e,t,r)=>{"use strict";r.d(t,{Gg:()=>a,bs:()=>o,W5:()=>u});var n=r(80263),s=r(51733);let i=e=>e;class a extends s.G{constructor({body:e,cause:t,details:r,headers:s,status:a,url:o}){super("HTTP request failed.",{cause:t,details:r,metaMessages:[a&&`Status: ${a}`,`URL: ${i(o)}`,e&&`Request body: ${(0,n.P)(e)}`].filter(Boolean),name:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=e,this.headers=s,this.status=a,this.url=o}}class o extends s.G{constructor({body:e,error:t,url:r}){super("RPC Request failed.",{cause:t,details:t.message,metaMessages:[`URL: ${i(r)}`,`Request body: ${(0,n.P)(e)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t.code,this.data=t.data}}class u extends s.G{constructor({body:e,url:t}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${i(t)}`,`Request body: ${(0,n.P)(e)}`],name:"TimeoutError"})}}},27854:(e,t,r)=>{"use strict";r.d(t,{r:()=>m});var n=r(37723),s=r(17313),i=r(22146),a=r(16592),o=r(95024),u=r(45686),l=r(17928),c=r(65087),d=r(11447);function p(e,t={}){void 0!==t.size&&(0,c.Yf)(e,{size:t.size});let r=(0,d.ci)(e,t);return(0,c.ly)(r,t)}var f=r(27577),h=r(12824);function m(e,t){let r="string"==typeof t?(0,f.nr)(t):t,m=(0,i.q)(r);if(0===(0,a.d)(r)&&e.length>0)throw new n.wb;if((0,a.d)(t)&&32>(0,a.d)(t))throw new n.xB({data:"string"==typeof t?t:(0,d.ci)(t),params:e,size:(0,a.d)(t)});let g=0,b=[];for(let t=0;t<e.length;++t){let r=e[t];m.setPosition(g);let[i,a]=function e(t,r,{staticPosition:i}){let a=(0,h.S)(r.type);if(a){let[n,s]=a;return function(t,r,{length:n,staticPosition:s}){if(!n){let n=s+p(t.readBytes(32)),i=n+32;t.setPosition(n);let a=p(t.readBytes(32)),o=y(r),u=0,l=[];for(let n=0;n<a;++n){t.setPosition(i+(o?32*n:u));let[s,a]=e(t,r,{staticPosition:i});u+=a,l.push(s)}return t.setPosition(s+32),[l,32]}if(y(r)){let i=s+p(t.readBytes(32)),a=[];for(let s=0;s<n;++s){t.setPosition(i+32*s);let[n]=e(t,r,{staticPosition:i});a.push(n)}return t.setPosition(s+32),[a,32]}let i=0,a=[];for(let o=0;o<n;++o){let[n,o]=e(t,r,{staticPosition:s+i});i+=o,a.push(n)}return[a,i]}(t,{...r,type:s},{length:n,staticPosition:i})}if("tuple"===r.type)return function(t,r,{staticPosition:n}){let s=0===r.components.length||r.components.some(({name:e})=>!e),i=s?[]:{},a=0;if(y(r)){let o=n+p(t.readBytes(32));for(let n=0;n<r.components.length;++n){let u=r.components[n];t.setPosition(o+a);let[l,c]=e(t,u,{staticPosition:o});a+=c,i[s?n:u?.name]=l}return t.setPosition(n+32),[i,32]}for(let o=0;o<r.components.length;++o){let u=r.components[o],[l,c]=e(t,u,{staticPosition:n});i[s?o:u?.name]=l,a+=c}return[i,a]}(t,r,{staticPosition:i});if("address"===r.type)return function(e){let t=e.readBytes(32);return[(0,s.x)((0,d.ci)((0,o.T4)(t,-20))),32]}(t);if("bool"===r.type)return[function(e,t={}){let r=e;if(void 0!==t.size&&((0,c.Yf)(r,{size:t.size}),r=(0,u.f)(r)),r.length>1||r[0]>1)throw new l.yr(r);return!!r[0]}(t.readBytes(32),{size:32}),32];if(r.type.startsWith("bytes"))return function(e,t,{staticPosition:r}){let[n,s]=t.type.split("bytes");if(!s){let t=p(e.readBytes(32));e.setPosition(r+t);let n=p(e.readBytes(32));if(0===n)return e.setPosition(r+32),["0x",32];let s=e.readBytes(n);return e.setPosition(r+32),[(0,d.ci)(s),32]}return[(0,d.ci)(e.readBytes(Number.parseInt(s),32)),32]}(t,r,{staticPosition:i});if(r.type.startsWith("uint")||r.type.startsWith("int"))return function(e,t){let r=t.type.startsWith("int"),n=Number.parseInt(t.type.split("int")[1]||"256"),s=e.readBytes(32);return[n>48?function(e,t={}){void 0!==t.size&&(0,c.Yf)(e,{size:t.size});let r=(0,d.ci)(e,t);return(0,c.y_)(r,t)}(s,{signed:r}):p(s,{signed:r}),32]}(t,r);if("string"===r.type)return function(e,{staticPosition:t}){let r=p(e.readBytes(32));e.setPosition(t+r);let n=p(e.readBytes(32));if(0===n)return e.setPosition(t+32),["",32];let s=e.readBytes(n,32),i=function(e,t={}){let r=e;return void 0!==t.size&&((0,c.Yf)(r,{size:t.size}),r=(0,u.f)(r,{dir:"right"})),new TextDecoder().decode(r)}((0,u.f)(s));return e.setPosition(t+32),[i,32]}(t,{staticPosition:i});throw new n.CI(r.type,{docsPath:"/docs/contract/decodeAbiParameters"})}(m,r,{staticPosition:0});g+=a,b.push(i)}return b}function y(e){let{type:t}=e;if("string"===t||"bytes"===t||t.endsWith("[]"))return!0;if("tuple"===t)return e.components?.some(y);let r=(0,h.S)(e.type);return!!(r&&y({...e,type:r[1]}))}},12824:(e,t,r)=>{"use strict";r.d(t,{E:()=>h,S:()=>y});var n=r(37723),s=r(26614),i=r(51733),a=r(17928),o=r(49800),u=r(74603),l=r(80150),c=r(16592),d=r(95024),p=r(11447),f=r(59484);function h(e,t){if(e.length!==t.length)throw new n.fs({expectedLength:e.length,givenLength:t.length});let r=m(function({params:e,values:t}){let r=[];for(let h=0;h<e.length;h++)r.push(function e({param:t,value:r}){let h=y(t.type);if(h){let[s,i]=h;return function(t,{length:r,param:s}){let i=null===r;if(!Array.isArray(t))throw new n.hn(t);if(!i&&t.length!==r)throw new n.gr({expectedLength:r,givenLength:t.length,type:`${s.type}[${r}]`});let a=!1,o=[];for(let r=0;r<t.length;r++){let n=e({param:s,value:t[r]});n.dynamic&&(a=!0),o.push(n)}if(i||a){let e=m(o);if(i){let t=(0,p.eC)(o.length,{size:32});return{dynamic:!0,encoded:o.length>0?(0,u.zo)([t,e]):t}}if(a)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,u.zo)(o.map(({encoded:e})=>e))}}(r,{length:s,param:{...t,type:i}})}if("tuple"===t.type)return function(t,{param:r}){let n=!1,s=[];for(let i=0;i<r.components.length;i++){let a=r.components[i],o=Array.isArray(t)?i:a.name,u=e({param:a,value:t[o]});s.push(u),u.dynamic&&(n=!0)}return{dynamic:n,encoded:n?m(s):(0,u.zo)(s.map(({encoded:e})=>e))}}(r,{param:t});if("address"===t.type)return function(e){if(!(0,o.U)(e))throw new s.b({address:e});return{dynamic:!1,encoded:(0,l.gc)(e.toLowerCase())}}(r);if("bool"===t.type)return function(e){if("boolean"!=typeof e)throw new i.G(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:(0,l.gc)((0,p.C4)(e))}}(r);if(t.type.startsWith("uint")||t.type.startsWith("int")){let e=t.type.startsWith("int"),[,,n="256"]=f.lh.exec(t.type)??[];return function(e,{signed:t,size:r=256}){if("number"==typeof r){let n=2n**(BigInt(r)-(t?1n:0n))-1n,s=t?-n-1n:0n;if(e>n||e<s)throw new a.J5({max:n.toString(),min:s.toString(),signed:t,size:r/8,value:e.toString()})}return{dynamic:!1,encoded:(0,p.eC)(e,{size:32,signed:t})}}(r,{signed:e,size:Number(n)})}if(t.type.startsWith("bytes"))return function(e,{param:t}){let[,r]=t.type.split("bytes"),s=(0,c.d)(e);if(!r){let t=e;return s%32!=0&&(t=(0,l.gc)(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:(0,u.zo)([(0,l.gc)((0,p.eC)(s,{size:32})),t])}}if(s!==Number.parseInt(r))throw new n.M4({expectedSize:Number.parseInt(r),value:e});return{dynamic:!1,encoded:(0,l.gc)(e,{dir:"right"})}}(r,{param:t});if("string"===t.type)return function(e){let t=(0,p.$G)(e),r=Math.ceil((0,c.d)(t)/32),n=[];for(let e=0;e<r;e++)n.push((0,l.gc)((0,d.tP)(t,32*e,(e+1)*32),{dir:"right"}));return{dynamic:!0,encoded:(0,u.zo)([(0,l.gc)((0,p.eC)((0,c.d)(t),{size:32})),...n])}}(r);throw new n.dh(t.type,{docsPath:"/docs/contract/encodeAbiParameters"})}({param:e[h],value:t[h]}));return r}({params:e,values:t}));return 0===r.length?"0x":r}function m(e){let t=0;for(let r=0;r<e.length;r++){let{dynamic:n,encoded:s}=e[r];n?t+=32:t+=(0,c.d)(s)}let r=[],n=[],s=0;for(let i=0;i<e.length;i++){let{dynamic:a,encoded:o}=e[i];a?(r.push((0,p.eC)(t+s,{size:32})),n.push(o),s+=(0,c.d)(o)):r.push(o)}return(0,u.zo)([...r,...n])}function y(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}},93116:(e,t,r)=>{"use strict";r.d(t,{_:()=>c});var n=r(37723),s=r(26614),i=r(49800),a=r(74603),o=r(80150),u=r(11447),l=r(59484);function c(e,t){if(e.length!==t.length)throw new n.fs({expectedLength:e.length,givenLength:t.length});let r=[];for(let c=0;c<e.length;c++){let d=e[c],p=t[c];r.push(function e(t,r,c=!1){if("address"===t){if(!(0,i.U)(r))throw new s.b({address:r});return(0,o.vk)(r.toLowerCase(),{size:c?32:null})}if("string"===t)return(0,u.$G)(r);if("bytes"===t)return r;if("bool"===t)return(0,o.vk)((0,u.C4)(r),{size:c?32:1});let d=t.match(l.lh);if(d){let[e,t,n="256"]=d,s=Number.parseInt(n)/8;return(0,u.eC)(r,{size:c?32:s,signed:"int"===t})}let p=t.match(l.eL);if(p){let[e,t]=p;if(Number.parseInt(t)!==(r.length-2)/2)throw new n.KY({expectedSize:Number.parseInt(t),givenSize:(r.length-2)/2});return(0,o.vk)(r,{dir:"right",size:c?32:null})}let f=t.match(l.Ow);if(f&&Array.isArray(r)){let[t,n]=f,s=[];for(let t=0;t<r.length;t++)s.push(e(n,r[t],!0));return 0===s.length?"0x":(0,a.SM)(s)}throw new n.Mi(t)}(d,p))}return(0,a.SM)(r)}},25865:(e,t,r)=>{"use strict";r.d(t,{h:()=>i,t:()=>s});var n=r(37723);function s(e,{includeName:t=!1}={}){if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new n.wM(e.type);return`${e.name}(${i(e.inputs,{includeName:t})})`}function i(e,{includeName:t=!1}={}){return e?e.map(e=>(function(e,{includeName:t}){return e.type.startsWith("tuple")?`(${i(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")})(e,{includeName:t})).join(t?", ":","):""}},47525:(e,t,r)=>{"use strict";r.d(t,{h:()=>h});var n=r(37723),s=r(26614),i=r(49800),a=r(27577),o=r(4991),u=r(30953),l=r(16592),c=r(62441),d=r(27854),p=r(25865);let f="/docs/contract/decodeEventLog";function h(e){let{abi:t,args:r,logs:h,strict:m=!0}=e,y=(()=>{if(e.eventName)return Array.isArray(e.eventName)?e.eventName:[e.eventName]})();return h.map(e=>{try{let h=t.find(t=>"event"===t.type&&e.topics[0]===(0,u.n)(t));if(!h)return null;let g=function(e){let{abi:t,data:r,strict:s,topics:i}=e,a=s??!0,[o,...h]=i;if(!o)throw new n.FM({docsPath:f});let m=1===t.length?t[0]:t.find(e=>"event"===e.type&&o===(0,u.n)((0,p.t)(e)));if(!(m&&"name"in m)||"event"!==m.type)throw new n.lC(o,{docsPath:f});let{name:y,inputs:g}=m,b=g?.some(e=>!("name"in e&&e.name)),v=b?[]:{},w=g.map((e,t)=>[e,t]).filter(([e])=>"indexed"in e&&e.indexed);for(let e=0;e<w.length;e++){let[t,r]=w[e],s=h[e];if(!s)throw new n.Gy({abiItem:m,param:t});v[b?r:t.name||r]=function({param:e,value:t}){return"string"===e.type||"bytes"===e.type||"tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/)?t:((0,d.r)([e],t)||[])[0]}({param:t,value:s})}let _=g.filter(e=>!("indexed"in e&&e.indexed));if(_.length>0){if(r&&"0x"!==r)try{let e=(0,d.r)(_,r);if(e){if(b)for(let t=0;t<g.length;t++)v[t]=v[t]??e.shift();else for(let t=0;t<_.length;t++)v[_[t].name]=e[t]}}catch(e){if(a){if(e instanceof n.xB||e instanceof c.lQ)throw new n.SM({abiItem:m,data:r,params:_,size:(0,l.d)(r)});throw e}}else if(a)throw new n.SM({abiItem:m,data:"0x",params:_,size:0})}return{eventName:y,args:Object.values(v).length>0?v:void 0}}({...e,abi:[h],strict:m});if(y&&!y.includes(g.eventName)||!function(e){let{args:t,inputs:r,matchArgs:n}=e;if(!n)return!0;if(!t)return!1;function u(e,t,r){try{if("address"===e.type)return function(e,t){if(!(0,i.U)(e,{strict:!1}))throw new s.b({address:e});if(!(0,i.U)(t,{strict:!1}))throw new s.b({address:t});return e.toLowerCase()===t.toLowerCase()}(t,r);if("string"===e.type||"bytes"===e.type)return(0,o.w)((0,a.O0)(t))===r;return t===r}catch{return!1}}return Array.isArray(t)&&Array.isArray(n)?n.every((e,n)=>{if(null==e)return!0;let s=r[n];return!!s&&(Array.isArray(e)?e:[e]).some(e=>u(s,e,t[n]))}):!("object"!=typeof t||Array.isArray(t)||"object"!=typeof n||Array.isArray(n))&&Object.entries(n).every(([e,n])=>{if(null==n)return!0;let s=r.find(t=>t.name===e);return!!s&&(Array.isArray(n)?n:[n]).some(r=>u(s,r,t[e]))})}({args:g.args,inputs:h.inputs,matchArgs:r}))return null;return{...g,...e}}catch(s){let t,r;if(s instanceof n.lC)return null;if(s instanceof n.SM||s instanceof n.Gy){if(m)return null;t=s.abiItem.name,r=s.abiItem.inputs?.some(e=>!("name"in e&&e.name))}return{...e,args:r?[]:{},eventName:t}}}).filter(Boolean)}},45162:(e,t,r)=>{"use strict";function n(e,t,r){let n=e[t.name];if("function"==typeof n)return n;let s=e[r];return"function"==typeof s?s:r=>t(e,r)}r.d(t,{s:()=>n})},30953:(e,t,r)=>{"use strict";r.d(t,{n:()=>n});let n=r(7113).r},47905:(e,t,r)=>{"use strict";r.d(t,{C:()=>i});var n=r(95024),s=r(7113);let i=e=>(0,n.tP)((0,s.r)(e),0,4)},7113:(e,t,r)=>{"use strict";r.d(t,{r:()=>d});var n=r(27577),s=r(4991);let i=e=>(0,s.w)((0,n.O0)(e));var a=r(70640);let o=/^tuple(?<array>(\[(\d*)\])*)$/;function u(e){let t="",r=e.length;for(let n=0;n<r;n++)t+=function e(t){let r=t.type;if(o.test(t.type)&&"components"in t){r="(";let n=t.components.length;for(let s=0;s<n;s++)r+=e(t.components[s]),s<n-1&&(r+=", ");let s=(0,a.Zw)(o,t.type);return r+=`)${s?.array??""}`,e({...t,type:r})}return("indexed"in t&&t.indexed&&(r=`${r} indexed`),t.name)?`${r} ${t.name}`:r}(e[n]),n!==r-1&&(t+=", ");return t}var l=r(51733);let c=e=>(function(e){let t=!0,r="",n=0,s="",i=!1;for(let a=0;a<e.length;a++){let o=e[a];if(["(",")",","].includes(o)&&(t=!0),"("===o&&n++,")"===o&&n--,t){if(0===n){if(" "===o&&["event","function",""].includes(s))s="";else if(s+=o,")"===o){i=!0;break}continue}if(" "===o){","!==e[a-1]&&","!==r&&",("!==r&&(r="",t=!1);continue}s+=o,r+=o}}if(!i)throw new l.G("Unable to normalize signature.");return s})("string"==typeof e?e:function(e){return"function"===e.type?`function ${e.name}(${u(e.inputs)})${e.stateMutability&&"nonpayable"!==e.stateMutability?` ${e.stateMutability}`:""}${e.outputs?.length?` returns (${u(e.outputs)})`:""}`:"event"===e.type?`event ${e.name}(${u(e.inputs)})`:"error"===e.type?`error ${e.name}(${u(e.inputs)})`:"constructor"===e.type?`constructor(${u(e.inputs)})${"payable"===e.stateMutability?" payable":""}`:"fallback"===e.type?`fallback() external${"payable"===e.stateMutability?" payable":""}`:"receive() external payable"}(e));function d(e){return i(c(e))}},59484:(e,t,r)=>{"use strict";r.d(t,{Ow:()=>n,eL:()=>s,lh:()=>i});let n=/^(.*)\[([0-9]*)\]$/,s=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,i=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/},20520:(e,t,r)=>{"use strict";r.d(t,{x:()=>a});var n=r(23079),s=r(80263);let i={current:0,take(){return this.current++},reset(){this.current=0}};function a(e,t={}){return{async request(r){let{body:a,onRequest:o=t.onRequest,onResponse:u=t.onResponse,timeout:l=t.timeout??1e4}=r,c={...t.fetchOptions??{},...r.fetchOptions??{}},{headers:d,method:p,signal:f}=c;try{let t;let r=await function(e,{errorInstance:t=Error("timed out"),timeout:r,signal:n}){return new Promise((s,i)=>{(async()=>{let a;try{let o=new AbortController;r>0&&(a=setTimeout(()=>{n?o.abort():i(t)},r)),s(await e({signal:o?.signal||null}))}catch(e){e?.name==="AbortError"&&i(t),i(e)}finally{clearTimeout(a)}})()})}(async({signal:t})=>{let r={...c,body:Array.isArray(a)?(0,s.P)(a.map(e=>({jsonrpc:"2.0",id:e.id??i.take(),...e}))):(0,s.P)({jsonrpc:"2.0",id:a.id??i.take(),...a}),headers:{"Content-Type":"application/json",...d},method:p||"POST",signal:f||(l>0?t:null)},n=new Request(e,r),u=await o?.(n,r)??{...r,url:e};return await fetch(u.url??e,u)},{errorInstance:new n.W5({body:a,url:e}),timeout:l,signal:!0});if(u&&await u(r),r.headers.get("Content-Type")?.startsWith("application/json"))t=await r.json();else{t=await r.text();try{t=JSON.parse(t||"{}")}catch(e){if(r.ok)throw e;t={error:t}}}if(!r.ok)throw new n.Gg({body:a,details:(0,s.P)(t.error)||r.statusText,headers:r.headers,status:r.status,url:e});return t}catch(t){if(t instanceof n.Gg||t instanceof n.W5)throw t;throw new n.Gg({body:a,cause:t,url:e})}}}}},80263:(e,t,r)=>{"use strict";r.d(t,{P:()=>n});let n=(e,t,r)=>JSON.stringify(e,(e,r)=>{let n="bigint"==typeof r?r.toString():r;return"function"==typeof t?t(e,n):n},r)},27042:(e,t,r)=>{"use strict";let n;r.d(t,{h:()=>i});let s=256;function i(e=11){if(!n||s+e>512){n="",s=0;for(let e=0;e<256;e++)n+=(256+256*Math.random()|0).toString(16).substring(1)}return n.substring(s,s+++e)}},43130:(e,t,r)=>{"use strict";let n;r.d(t,{z:()=>ts}),function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw Error()},e.arrayToEnum=e=>{let t={};for(let r of e)t[r]=r;return t},e.getValidEnumValues=t=>{let r=e.objectKeys(t).filter(e=>"number"!=typeof t[t[e]]),n={};for(let e of r)n[e]=t[e];return e.objectValues(n)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},e.find=(e,t)=>{for(let r of e)if(t(r))return r},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(e8||(e8={})),(e7||(e7={})).mergeShapes=(e,t)=>({...e,...t});let s=e8.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),i=e=>{switch(typeof e){case"undefined":return s.undefined;case"string":return s.string;case"number":return isNaN(e)?s.nan:s.number;case"boolean":return s.boolean;case"function":return s.function;case"bigint":return s.bigint;case"symbol":return s.symbol;case"object":if(Array.isArray(e))return s.array;if(null===e)return s.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return s.promise;if("undefined"!=typeof Map&&e instanceof Map)return s.map;if("undefined"!=typeof Set&&e instanceof Set)return s.set;if("undefined"!=typeof Date&&e instanceof Date)return s.date;return s.object;default:return s.unknown}},a=e8.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 o extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let t=e||function(e){return e.message},r={_errors:[]},n=e=>{for(let s of e.issues)if("invalid_union"===s.code)s.unionErrors.map(n);else if("invalid_return_type"===s.code)n(s.returnTypeError);else if("invalid_arguments"===s.code)n(s.argumentsError);else if(0===s.path.length)r._errors.push(t(s));else{let e=r,n=0;for(;n<s.path.length;){let r=s.path[n];n===s.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(s))):e[r]=e[r]||{_errors:[]},e=e[r],n++}}};return n(this),r}static assert(e){if(!(e instanceof o))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,e8.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},r=[];for(let n of this.issues)n.path.length>0?(t[n.path[0]]=t[n.path[0]]||[],t[n.path[0]].push(e(n))):r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}o.create=e=>new o(e);let u=(e,t)=>{let r;switch(e.code){case a.invalid_type:r=e.received===s.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case a.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,e8.jsonStringifyReplacer)}`;break;case a.unrecognized_keys:r=`Unrecognized key(s) in object: ${e8.joinValues(e.keys,", ")}`;break;case a.invalid_union:r="Invalid input";break;case a.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${e8.joinValues(e.options)}`;break;case a.invalid_enum_value:r=`Invalid enum value. Expected ${e8.joinValues(e.options)}, received '${e.received}'`;break;case a.invalid_arguments:r="Invalid function arguments";break;case a.invalid_return_type:r="Invalid function return type";break;case a.invalid_date:r="Invalid date";break;case a.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:e8.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case a.too_small:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case a.too_big:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case a.custom:r="Invalid input";break;case a.invalid_intersection_types:r="Intersection results could not be merged";break;case a.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case a.not_finite:r="Number must be finite";break;default:r=t.defaultError,e8.assertNever(e)}return{message:r}},l=u;function c(){return l}let d=e=>{let{data:t,path:r,errorMaps:n,issueData:s}=e,i=[...r,...s.path||[]],a={...s,path:i};if(void 0!==s.message)return{...s,path:i,message:s.message};let o="";for(let e of n.filter(e=>!!e).slice().reverse())o=e(a,{data:t,defaultError:o}).message;return{...s,path:i,message:o}};function p(e,t){let r=c(),n=d({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===u?void 0:u].filter(e=>!!e)});e.common.issues.push(n)}class f{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let r=[];for(let n of t){if("aborted"===n.status)return h;"dirty"===n.status&&e.dirty(),r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){let r=[];for(let e of t){let t=await e.key,n=await e.value;r.push({key:t,value:n})}return f.mergeObjectSync(e,r)}static mergeObjectSync(e,t){let r={};for(let n of t){let{key:t,value:s}=n;if("aborted"===t.status||"aborted"===s.status)return h;"dirty"===t.status&&e.dirty(),"dirty"===s.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==s.value||n.alwaysSet)&&(r[t.value]=s.value)}return{status:e.value,value:r}}}let h=Object.freeze({status:"aborted"}),m=e=>({status:"dirty",value:e}),y=e=>({status:"valid",value:e}),g=e=>"aborted"===e.status,b=e=>"dirty"===e.status,v=e=>"valid"===e.status,w=e=>"undefined"!=typeof Promise&&e instanceof Promise;function _(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function x(e,t,r,n,s){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!s)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!s:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?s.call(e,r):s?s.value=r:t.set(e,r),r}"function"==typeof SuppressedError&&SuppressedError,function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:null==e?void 0:e.message}(te||(te={}));class C{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let E=(e,t)=>{if(v(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new o(e.common.issues);return this._error=t,this._error}}};function O(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:s}=e;if(t&&(r||n))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:s}:{errorMap:(t,s)=>{var i,a;let{message:o}=e;return"invalid_enum_value"===t.code?{message:null!=o?o:s.defaultError}:void 0===s.data?{message:null!==(i=null!=o?o:n)&&void 0!==i?i:s.defaultError}:"invalid_type"!==t.code?{message:s.defaultError}:{message:null!==(a=null!=o?o:r)&&void 0!==a?a:s.defaultError}},description:s}}class k{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return i(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:i(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new f,ctx:{common:e.parent.common,data:e.data,parsedType:i(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(w(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){var r;let n={common:{issues:[],async:null!==(r=null==t?void 0:t.async)&&void 0!==r&&r,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:i(e)},s=this._parseSync({data:e,path:n.path,parent:n});return E(n,s)}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:i(e)},n=this._parse({data:e,path:r.path,parent:r});return E(r,await (w(n)?n:Promise.resolve(n)))}refine(e,t){let r=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,n)=>{let s=e(t),i=()=>n.addIssue({code:a.custom,...r(t)});return"undefined"!=typeof Promise&&s instanceof Promise?s.then(e=>!!e||(i(),!1)):!!s||(i(),!1)})}refinement(e,t){return this._refinement((r,n)=>!!e(r)||(n.addIssue("function"==typeof t?t(r,n):t),!1))}_refinement(e){return new ey({schema:this,typeName:tn.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return eg.create(this,this._def)}nullable(){return eb.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return X.create(this,this._def)}promise(){return em.create(this,this._def)}or(e){return et.create([this,e],this._def)}and(e){return es.create(this,e,this._def)}transform(e){return new ey({...O(this._def),schema:this,typeName:tn.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new ev({...O(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:tn.ZodDefault})}brand(){return new eC({typeName:tn.ZodBranded,type:this,...O(this._def)})}catch(e){return new ew({...O(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:tn.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return eE.create(this,e)}readonly(){return eO.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let T=/^c[^\s-]{8,}$/i,A=/^[0-9a-z]+$/,I=/^[0-9A-HJKMNP-TV-Z]{26}$/,P=/^[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,S=/^[a-z0-9_-]{21}$/i,j=/^[-+]?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)?)??$/,N=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,R=/^(?:(?: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])$/,$=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,M=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,F="((\\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])))",Z=RegExp(`^${F}$`);function L(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),t}function z(e){let t=`${F}T${L(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,RegExp(`^${t}$`)}class U extends k{_parse(e){var t,r;let i;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==s.string){let t=this._getOrReturnCtx(e);return p(t,{code:a.invalid_type,expected:s.string,received:t.parsedType}),h}let o=new f;for(let s of this._def.checks)if("min"===s.kind)e.data.length<s.value&&(p(i=this._getOrReturnCtx(e,i),{code:a.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),o.dirty());else if("max"===s.kind)e.data.length>s.value&&(p(i=this._getOrReturnCtx(e,i),{code:a.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),o.dirty());else if("length"===s.kind){let t=e.data.length>s.value,r=e.data.length<s.value;(t||r)&&(i=this._getOrReturnCtx(e,i),t?p(i,{code:a.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):r&&p(i,{code:a.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),o.dirty())}else if("email"===s.kind)N.test(e.data)||(p(i=this._getOrReturnCtx(e,i),{validation:"email",code:a.invalid_string,message:s.message}),o.dirty());else if("emoji"===s.kind)n||(n=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),n.test(e.data)||(p(i=this._getOrReturnCtx(e,i),{validation:"emoji",code:a.invalid_string,message:s.message}),o.dirty());else if("uuid"===s.kind)P.test(e.data)||(p(i=this._getOrReturnCtx(e,i),{validation:"uuid",code:a.invalid_string,message:s.message}),o.dirty());else if("nanoid"===s.kind)S.test(e.data)||(p(i=this._getOrReturnCtx(e,i),{validation:"nanoid",code:a.invalid_string,message:s.message}),o.dirty());else if("cuid"===s.kind)T.test(e.data)||(p(i=this._getOrReturnCtx(e,i),{validation:"cuid",code:a.invalid_string,message:s.message}),o.dirty());else if("cuid2"===s.kind)A.test(e.data)||(p(i=this._getOrReturnCtx(e,i),{validation:"cuid2",code:a.invalid_string,message:s.message}),o.dirty());else if("ulid"===s.kind)I.test(e.data)||(p(i=this._getOrReturnCtx(e,i),{validation:"ulid",code:a.invalid_string,message:s.message}),o.dirty());else if("url"===s.kind)try{new URL(e.data)}catch(t){p(i=this._getOrReturnCtx(e,i),{validation:"url",code:a.invalid_string,message:s.message}),o.dirty()}else"regex"===s.kind?(s.regex.lastIndex=0,s.regex.test(e.data)||(p(i=this._getOrReturnCtx(e,i),{validation:"regex",code:a.invalid_string,message:s.message}),o.dirty())):"trim"===s.kind?e.data=e.data.trim():"includes"===s.kind?e.data.includes(s.value,s.position)||(p(i=this._getOrReturnCtx(e,i),{code:a.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),o.dirty()):"toLowerCase"===s.kind?e.data=e.data.toLowerCase():"toUpperCase"===s.kind?e.data=e.data.toUpperCase():"startsWith"===s.kind?e.data.startsWith(s.value)||(p(i=this._getOrReturnCtx(e,i),{code:a.invalid_string,validation:{startsWith:s.value},message:s.message}),o.dirty()):"endsWith"===s.kind?e.data.endsWith(s.value)||(p(i=this._getOrReturnCtx(e,i),{code:a.invalid_string,validation:{endsWith:s.value},message:s.message}),o.dirty()):"datetime"===s.kind?z(s).test(e.data)||(p(i=this._getOrReturnCtx(e,i),{code:a.invalid_string,validation:"datetime",message:s.message}),o.dirty()):"date"===s.kind?Z.test(e.data)||(p(i=this._getOrReturnCtx(e,i),{code:a.invalid_string,validation:"date",message:s.message}),o.dirty()):"time"===s.kind?RegExp(`^${L(s)}$`).test(e.data)||(p(i=this._getOrReturnCtx(e,i),{code:a.invalid_string,validation:"time",message:s.message}),o.dirty()):"duration"===s.kind?j.test(e.data)||(p(i=this._getOrReturnCtx(e,i),{validation:"duration",code:a.invalid_string,message:s.message}),o.dirty()):"ip"===s.kind?(t=e.data,("v4"===(r=s.version)||!r)&&R.test(t)||("v6"===r||!r)&&$.test(t)||(p(i=this._getOrReturnCtx(e,i),{validation:"ip",code:a.invalid_string,message:s.message}),o.dirty())):"base64"===s.kind?M.test(e.data)||(p(i=this._getOrReturnCtx(e,i),{validation:"base64",code:a.invalid_string,message:s.message}),o.dirty()):e8.assertNever(s);return{status:o.value,value:e.data}}_regex(e,t,r){return this.refinement(t=>e.test(t),{validation:t,code:a.invalid_string,...te.errToObj(r)})}_addCheck(e){return new U({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...te.errToObj(e)})}url(e){return this._addCheck({kind:"url",...te.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...te.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...te.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...te.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...te.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...te.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...te.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...te.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...te.errToObj(e)})}datetime(e){var t,r;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,local:null!==(r=null==e?void 0:e.local)&&void 0!==r&&r,...te.errToObj(null==e?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,...te.errToObj(null==e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...te.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...te.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...te.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...te.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...te.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...te.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...te.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...te.errToObj(t)})}nonempty(e){return this.min(1,te.errToObj(e))}trim(){return new U({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new U({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new U({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}U.create=e=>{var t;return new U({checks:[],typeName:tn.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...O(e)})};class D extends k{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==s.number){let t=this._getOrReturnCtx(e);return p(t,{code:a.invalid_type,expected:s.number,received:t.parsedType}),h}let r=new f;for(let n of this._def.checks)"int"===n.kind?e8.isInteger(e.data)||(p(t=this._getOrReturnCtx(e,t),{code:a.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty()):"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(p(t=this._getOrReturnCtx(e,t),{code:a.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(p(t=this._getOrReturnCtx(e,t),{code:a.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"multipleOf"===n.kind?0!==function(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,s=r>n?r:n;return parseInt(e.toFixed(s).replace(".",""))%parseInt(t.toFixed(s).replace(".",""))/Math.pow(10,s)}(e.data,n.value)&&(p(t=this._getOrReturnCtx(e,t),{code:a.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(p(t=this._getOrReturnCtx(e,t),{code:a.not_finite,message:n.message}),r.dirty()):e8.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,te.toString(t))}gt(e,t){return this.setLimit("min",e,!1,te.toString(t))}lte(e,t){return this.setLimit("max",e,!0,te.toString(t))}lt(e,t){return this.setLimit("max",e,!1,te.toString(t))}setLimit(e,t,r,n){return new D({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:te.toString(n)}]})}_addCheck(e){return new D({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:te.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:te.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:te.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:te.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:te.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:te.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:te.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:te.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:te.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&e8.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let r of this._def.checks){if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.value<e)&&(e=r.value)}return Number.isFinite(t)&&Number.isFinite(e)}}D.create=e=>new D({checks:[],typeName:tn.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...O(e)});class B extends k{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==s.bigint){let t=this._getOrReturnCtx(e);return p(t,{code:a.invalid_type,expected:s.bigint,received:t.parsedType}),h}let r=new f;for(let n of this._def.checks)"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(p(t=this._getOrReturnCtx(e,t),{code:a.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(p(t=this._getOrReturnCtx(e,t),{code:a.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(p(t=this._getOrReturnCtx(e,t),{code:a.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):e8.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,te.toString(t))}gt(e,t){return this.setLimit("min",e,!1,te.toString(t))}lte(e,t){return this.setLimit("max",e,!0,te.toString(t))}lt(e,t){return this.setLimit("max",e,!1,te.toString(t))}setLimit(e,t,r,n){return new B({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:te.toString(n)}]})}_addCheck(e){return new B({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:te.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:te.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:te.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:te.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:te.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}B.create=e=>{var t;return new B({checks:[],typeName:tn.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...O(e)})};class q extends k{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==s.boolean){let t=this._getOrReturnCtx(e);return p(t,{code:a.invalid_type,expected:s.boolean,received:t.parsedType}),h}return y(e.data)}}q.create=e=>new q({typeName:tn.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...O(e)});class V extends k{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==s.date){let t=this._getOrReturnCtx(e);return p(t,{code:a.invalid_type,expected:s.date,received:t.parsedType}),h}if(isNaN(e.data.getTime()))return p(this._getOrReturnCtx(e),{code:a.invalid_date}),h;let r=new f;for(let n of this._def.checks)"min"===n.kind?e.data.getTime()<n.value&&(p(t=this._getOrReturnCtx(e,t),{code:a.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),r.dirty()):"max"===n.kind?e.data.getTime()>n.value&&(p(t=this._getOrReturnCtx(e,t),{code:a.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),r.dirty()):e8.assertNever(n);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new V({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:te.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:te.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}V.create=e=>new V({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:tn.ZodDate,...O(e)});class G extends k{_parse(e){if(this._getType(e)!==s.symbol){let t=this._getOrReturnCtx(e);return p(t,{code:a.invalid_type,expected:s.symbol,received:t.parsedType}),h}return y(e.data)}}G.create=e=>new G({typeName:tn.ZodSymbol,...O(e)});class W extends k{_parse(e){if(this._getType(e)!==s.undefined){let t=this._getOrReturnCtx(e);return p(t,{code:a.invalid_type,expected:s.undefined,received:t.parsedType}),h}return y(e.data)}}W.create=e=>new W({typeName:tn.ZodUndefined,...O(e)});class K extends k{_parse(e){if(this._getType(e)!==s.null){let t=this._getOrReturnCtx(e);return p(t,{code:a.invalid_type,expected:s.null,received:t.parsedType}),h}return y(e.data)}}K.create=e=>new K({typeName:tn.ZodNull,...O(e)});class Y extends k{constructor(){super(...arguments),this._any=!0}_parse(e){return y(e.data)}}Y.create=e=>new Y({typeName:tn.ZodAny,...O(e)});class J extends k{constructor(){super(...arguments),this._unknown=!0}_parse(e){return y(e.data)}}J.create=e=>new J({typeName:tn.ZodUnknown,...O(e)});class H extends k{_parse(e){let t=this._getOrReturnCtx(e);return p(t,{code:a.invalid_type,expected:s.never,received:t.parsedType}),h}}H.create=e=>new H({typeName:tn.ZodNever,...O(e)});class Q extends k{_parse(e){if(this._getType(e)!==s.undefined){let t=this._getOrReturnCtx(e);return p(t,{code:a.invalid_type,expected:s.void,received:t.parsedType}),h}return y(e.data)}}Q.create=e=>new Q({typeName:tn.ZodVoid,...O(e)});class X extends k{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),n=this._def;if(t.parsedType!==s.array)return p(t,{code:a.invalid_type,expected:s.array,received:t.parsedType}),h;if(null!==n.exactLength){let e=t.data.length>n.exactLength.value,s=t.data.length<n.exactLength.value;(e||s)&&(p(t,{code:e?a.too_big:a.too_small,minimum:s?n.exactLength.value:void 0,maximum:e?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),r.dirty())}if(null!==n.minLength&&t.data.length<n.minLength.value&&(p(t,{code:a.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),r.dirty()),null!==n.maxLength&&t.data.length>n.maxLength.value&&(p(t,{code:a.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map((e,r)=>n.type._parseAsync(new C(t,e,t.path,r)))).then(e=>f.mergeArray(r,e));let i=[...t.data].map((e,r)=>n.type._parseSync(new C(t,e,t.path,r)));return f.mergeArray(r,i)}get element(){return this._def.type}min(e,t){return new X({...this._def,minLength:{value:e,message:te.toString(t)}})}max(e,t){return new X({...this._def,maxLength:{value:e,message:te.toString(t)}})}length(e,t){return new X({...this._def,exactLength:{value:e,message:te.toString(t)}})}nonempty(e){return this.min(1,e)}}X.create=(e,t)=>new X({type:e,minLength:null,maxLength:null,exactLength:null,typeName:tn.ZodArray,...O(t)});class ee extends k{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=e8.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==s.object){let t=this._getOrReturnCtx(e);return p(t,{code:a.invalid_type,expected:s.object,received:t.parsedType}),h}let{status:t,ctx:r}=this._processInputParams(e),{shape:n,keys:i}=this._getCached(),o=[];if(!(this._def.catchall instanceof H&&"strip"===this._def.unknownKeys))for(let e in r.data)i.includes(e)||o.push(e);let u=[];for(let e of i){let t=n[e],s=r.data[e];u.push({key:{status:"valid",value:e},value:t._parse(new C(r,s,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof H){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of o)u.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)o.length>0&&(p(r,{code:a.unrecognized_keys,keys:o}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of o){let n=r.data[t];u.push({key:{status:"valid",value:t},value:e._parse(new C(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of u){let r=await t.key,n=await t.value;e.push({key:r,value:n,alwaysSet:t.alwaysSet})}return e}).then(e=>f.mergeObjectSync(t,e)):f.mergeObjectSync(t,u)}get shape(){return this._def.shape()}strict(e){return te.errToObj,new ee({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{var n,s,i,a;let o=null!==(i=null===(s=(n=this._def).errorMap)||void 0===s?void 0:s.call(n,t,r).message)&&void 0!==i?i:r.defaultError;return"unrecognized_keys"===t.code?{message:null!==(a=te.errToObj(e).message)&&void 0!==a?a:o}:{message:o}}}:{}})}strip(){return new ee({...this._def,unknownKeys:"strip"})}passthrough(){return new ee({...this._def,unknownKeys:"passthrough"})}extend(e){return new ee({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ee({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:tn.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new ee({...this._def,catchall:e})}pick(e){let t={};return e8.objectKeys(e).forEach(r=>{e[r]&&this.shape[r]&&(t[r]=this.shape[r])}),new ee({...this._def,shape:()=>t})}omit(e){let t={};return e8.objectKeys(this.shape).forEach(r=>{e[r]||(t[r]=this.shape[r])}),new ee({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof ee){let r={};for(let n in t.shape){let s=t.shape[n];r[n]=eg.create(e(s))}return new ee({...t._def,shape:()=>r})}return t instanceof X?new X({...t._def,type:e(t.element)}):t instanceof eg?eg.create(e(t.unwrap())):t instanceof eb?eb.create(e(t.unwrap())):t instanceof ei?ei.create(t.items.map(t=>e(t))):t}(this)}partial(e){let t={};return e8.objectKeys(this.shape).forEach(r=>{let n=this.shape[r];e&&!e[r]?t[r]=n:t[r]=n.optional()}),new ee({...this._def,shape:()=>t})}required(e){let t={};return e8.objectKeys(this.shape).forEach(r=>{if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof eg;)e=e._def.innerType;t[r]=e}}),new ee({...this._def,shape:()=>t})}keyof(){return ep(e8.objectKeys(this.shape))}}ee.create=(e,t)=>new ee({shape:()=>e,unknownKeys:"strip",catchall:H.create(),typeName:tn.ZodObject,...O(t)}),ee.strictCreate=(e,t)=>new ee({shape:()=>e,unknownKeys:"strict",catchall:H.create(),typeName:tn.ZodObject,...O(t)}),ee.lazycreate=(e,t)=>new ee({shape:e,unknownKeys:"strip",catchall:H.create(),typeName:tn.ZodObject,...O(t)});class et extends k{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;if(t.common.async)return Promise.all(r.map(async e=>{let r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let r=e.map(e=>new o(e.ctx.common.issues));return p(t,{code:a.invalid_union,unionErrors:r}),h});{let e;let n=[];for(let s of r){let r={...t,common:{...t.common,issues:[]},parent:null},i=s._parseSync({data:t.data,path:t.path,parent:r});if("valid"===i.status)return i;"dirty"!==i.status||e||(e={result:i,ctx:r}),r.common.issues.length&&n.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let s=n.map(e=>new o(e));return p(t,{code:a.invalid_union,unionErrors:s}),h}}get options(){return this._def.options}}et.create=(e,t)=>new et({options:e,typeName:tn.ZodUnion,...O(t)});let er=e=>{if(e instanceof ec)return er(e.schema);if(e instanceof ey)return er(e.innerType());if(e instanceof ed)return[e.value];if(e instanceof ef)return e.options;if(e instanceof eh)return e8.objectValues(e.enum);if(e instanceof ev)return er(e._def.innerType);if(e instanceof W)return[void 0];else if(e instanceof K)return[null];else if(e instanceof eg)return[void 0,...er(e.unwrap())];else if(e instanceof eb)return[null,...er(e.unwrap())];else if(e instanceof eC)return er(e.unwrap());else if(e instanceof eO)return er(e.unwrap());else if(e instanceof ew)return er(e._def.innerType);else return[]};class en extends k{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==s.object)return p(t,{code:a.invalid_type,expected:s.object,received:t.parsedType}),h;let r=this.discriminator,n=t.data[r],i=this.optionsMap.get(n);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(p(t,{code:a.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),h)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){let n=new Map;for(let r of t){let t=er(r.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let s of t){if(n.has(s))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(s)}`);n.set(s,r)}}return new en({typeName:tn.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:n,...O(r)})}}class es extends k{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=(e,n)=>{if(g(e)||g(n))return h;let o=function e(t,r){let n=i(t),a=i(r);if(t===r)return{valid:!0,data:t};if(n===s.object&&a===s.object){let n=e8.objectKeys(r),s=e8.objectKeys(t).filter(e=>-1!==n.indexOf(e)),i={...t,...r};for(let n of s){let s=e(t[n],r[n]);if(!s.valid)return{valid:!1};i[n]=s.data}return{valid:!0,data:i}}if(n===s.array&&a===s.array){if(t.length!==r.length)return{valid:!1};let n=[];for(let s=0;s<t.length;s++){let i=e(t[s],r[s]);if(!i.valid)return{valid:!1};n.push(i.data)}return{valid:!0,data:n}}return n===s.date&&a===s.date&&+t==+r?{valid:!0,data:t}:{valid:!1}}(e.value,n.value);return o.valid?((b(e)||b(n))&&t.dirty(),{status:t.value,value:o.data}):(p(r,{code:a.invalid_intersection_types}),h)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([e,t])=>n(e,t)):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}es.create=(e,t,r)=>new es({left:e,right:t,typeName:tn.ZodIntersection,...O(r)});class ei extends k{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==s.array)return p(r,{code:a.invalid_type,expected:s.array,received:r.parsedType}),h;if(r.data.length<this._def.items.length)return p(r,{code:a.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),h;!this._def.rest&&r.data.length>this._def.items.length&&(p(r,{code:a.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let n=[...r.data].map((e,t)=>{let n=this._def.items[t]||this._def.rest;return n?n._parse(new C(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(n).then(e=>f.mergeArray(t,e)):f.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new ei({...this._def,rest:e})}}ei.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new ei({items:e,typeName:tn.ZodTuple,rest:null,...O(t)})};class ea extends k{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==s.object)return p(r,{code:a.invalid_type,expected:s.object,received:r.parsedType}),h;let n=[],i=this._def.keyType,o=this._def.valueType;for(let e in r.data)n.push({key:i._parse(new C(r,e,r.path,e)),value:o._parse(new C(r,r.data[e],r.path,e)),alwaysSet:e in r.data});return r.common.async?f.mergeObjectAsync(t,n):f.mergeObjectSync(t,n)}get element(){return this._def.valueType}static create(e,t,r){return new ea(t instanceof k?{keyType:e,valueType:t,typeName:tn.ZodRecord,...O(r)}:{keyType:U.create(),valueType:e,typeName:tn.ZodRecord,...O(t)})}}class eo extends k{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==s.map)return p(r,{code:a.invalid_type,expected:s.map,received:r.parsedType}),h;let n=this._def.keyType,i=this._def.valueType,o=[...r.data.entries()].map(([e,t],s)=>({key:n._parse(new C(r,e,r.path,[s,"key"])),value:i._parse(new C(r,t,r.path,[s,"value"]))}));if(r.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of o){let n=await r.key,s=await r.value;if("aborted"===n.status||"aborted"===s.status)return h;("dirty"===n.status||"dirty"===s.status)&&t.dirty(),e.set(n.value,s.value)}return{status:t.value,value:e}})}{let e=new Map;for(let r of o){let n=r.key,s=r.value;if("aborted"===n.status||"aborted"===s.status)return h;("dirty"===n.status||"dirty"===s.status)&&t.dirty(),e.set(n.value,s.value)}return{status:t.value,value:e}}}}eo.create=(e,t,r)=>new eo({valueType:t,keyType:e,typeName:tn.ZodMap,...O(r)});class eu extends k{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==s.set)return p(r,{code:a.invalid_type,expected:s.set,received:r.parsedType}),h;let n=this._def;null!==n.minSize&&r.data.size<n.minSize.value&&(p(r,{code:a.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()),null!==n.maxSize&&r.data.size>n.maxSize.value&&(p(r,{code:a.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());let i=this._def.valueType;function o(e){let r=new Set;for(let n of e){if("aborted"===n.status)return h;"dirty"===n.status&&t.dirty(),r.add(n.value)}return{status:t.value,value:r}}let u=[...r.data.values()].map((e,t)=>i._parse(new C(r,e,r.path,t)));return r.common.async?Promise.all(u).then(e=>o(e)):o(u)}min(e,t){return new eu({...this._def,minSize:{value:e,message:te.toString(t)}})}max(e,t){return new eu({...this._def,maxSize:{value:e,message:te.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}eu.create=(e,t)=>new eu({valueType:e,minSize:null,maxSize:null,typeName:tn.ZodSet,...O(t)});class el extends k{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==s.function)return p(t,{code:a.invalid_type,expected:s.function,received:t.parsedType}),h;function r(e,r){return d({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,c(),u].filter(e=>!!e),issueData:{code:a.invalid_arguments,argumentsError:r}})}function n(e,r){return d({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,c(),u].filter(e=>!!e),issueData:{code:a.invalid_return_type,returnTypeError:r}})}let i={errorMap:t.common.contextualErrorMap},l=t.data;if(this._def.returns instanceof em){let e=this;return y(async function(...t){let s=new o([]),a=await e._def.args.parseAsync(t,i).catch(e=>{throw s.addIssue(r(t,e)),s}),u=await Reflect.apply(l,this,a);return await e._def.returns._def.type.parseAsync(u,i).catch(e=>{throw s.addIssue(n(u,e)),s})})}{let e=this;return y(function(...t){let s=e._def.args.safeParse(t,i);if(!s.success)throw new o([r(t,s.error)]);let a=Reflect.apply(l,this,s.data),u=e._def.returns.safeParse(a,i);if(!u.success)throw new o([n(a,u.error)]);return u.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new el({...this._def,args:ei.create(e).rest(J.create())})}returns(e){return new el({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new el({args:e||ei.create([]).rest(J.create()),returns:t||J.create(),typeName:tn.ZodFunction,...O(r)})}}class ec extends k{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}ec.create=(e,t)=>new ec({getter:e,typeName:tn.ZodLazy,...O(t)});class ed extends k{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return p(t,{received:t.data,code:a.invalid_literal,expected:this._def.value}),h}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ep(e,t){return new ef({values:e,typeName:tn.ZodEnum,...O(t)})}ed.create=(e,t)=>new ed({value:e,typeName:tn.ZodLiteral,...O(t)});class ef extends k{constructor(){super(...arguments),tt.set(this,void 0)}_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return p(t,{expected:e8.joinValues(r),received:t.parsedType,code:a.invalid_type}),h}if(_(this,tt,"f")||x(this,tt,new Set(this._def.values),"f"),!_(this,tt,"f").has(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return p(t,{received:t.data,code:a.invalid_enum_value,options:r}),h}return y(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return ef.create(e,{...this._def,...t})}exclude(e,t=this._def){return ef.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}tt=new WeakMap,ef.create=ep;class eh extends k{constructor(){super(...arguments),tr.set(this,void 0)}_parse(e){let t=e8.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==s.string&&r.parsedType!==s.number){let e=e8.objectValues(t);return p(r,{expected:e8.joinValues(e),received:r.parsedType,code:a.invalid_type}),h}if(_(this,tr,"f")||x(this,tr,new Set(e8.getValidEnumValues(this._def.values)),"f"),!_(this,tr,"f").has(e.data)){let e=e8.objectValues(t);return p(r,{received:r.data,code:a.invalid_enum_value,options:e}),h}return y(e.data)}get enum(){return this._def.values}}tr=new WeakMap,eh.create=(e,t)=>new eh({values:e,typeName:tn.ZodNativeEnum,...O(t)});class em extends k{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==s.promise&&!1===t.common.async?(p(t,{code:a.invalid_type,expected:s.promise,received:t.parsedType}),h):y((t.parsedType===s.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}em.create=(e,t)=>new em({type:e,typeName:tn.ZodPromise,...O(t)});class ey extends k{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===tn.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null,s={addIssue:e=>{p(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(s.addIssue=s.addIssue.bind(s),"preprocess"===n.type){let e=n.transform(r.data,s);if(r.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return h;let n=await this._def.schema._parseAsync({data:e,path:r.path,parent:r});return"aborted"===n.status?h:"dirty"===n.status||"dirty"===t.value?m(n.value):n});{if("aborted"===t.value)return h;let n=this._def.schema._parseSync({data:e,path:r.path,parent:r});return"aborted"===n.status?h:"dirty"===n.status||"dirty"===t.value?m(n.value):n}}if("refinement"===n.type){let e=e=>{let t=n.refinement(e,s);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?h:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))));{let n=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===n.status?h:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.value})}}if("transform"===n.type){if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>v(e)?Promise.resolve(n.transform(e.value,s)).then(e=>({status:t.value,value:e})):e);{let e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!v(e))return e;let i=n.transform(e.value,s);if(i instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:i}}}e8.assertNever(n)}}ey.create=(e,t,r)=>new ey({schema:e,typeName:tn.ZodEffects,effect:t,...O(r)}),ey.createWithPreprocess=(e,t,r)=>new ey({schema:t,effect:{type:"preprocess",transform:e},typeName:tn.ZodEffects,...O(r)});class eg extends k{_parse(e){return this._getType(e)===s.undefined?y(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eg.create=(e,t)=>new eg({innerType:e,typeName:tn.ZodOptional,...O(t)});class eb extends k{_parse(e){return this._getType(e)===s.null?y(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eb.create=(e,t)=>new eb({innerType:e,typeName:tn.ZodNullable,...O(t)});class ev extends k{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===s.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}ev.create=(e,t)=>new ev({innerType:e,typeName:tn.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...O(t)});class ew extends k{_parse(e){let{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return w(n)?n.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new o(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new o(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}ew.create=(e,t)=>new ew({innerType:e,typeName:tn.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...O(t)});class e_ extends k{_parse(e){if(this._getType(e)!==s.nan){let t=this._getOrReturnCtx(e);return p(t,{code:a.invalid_type,expected:s.nan,received:t.parsedType}),h}return{status:"valid",value:e.data}}}e_.create=e=>new e_({typeName:tn.ZodNaN,...O(e)});let ex=Symbol("zod_brand");class eC extends k{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class eE extends k{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?h:"dirty"===e.status?(t.dirty(),m(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})();{let e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?h:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new eE({in:e,out:t,typeName:tn.ZodPipeline})}}class eO extends k{_parse(e){let t=this._def.innerType._parse(e),r=e=>(v(e)&&(e.value=Object.freeze(e.value)),e);return w(t)?t.then(e=>r(e)):r(t)}unwrap(){return this._def.innerType}}function ek(e,t={},r){return e?Y.create().superRefine((n,s)=>{var i,a;if(!e(n)){let e="function"==typeof t?t(n):"string"==typeof t?{message:t}:t,o=null===(a=null!==(i=e.fatal)&&void 0!==i?i:r)||void 0===a||a;s.addIssue({code:"custom",..."string"==typeof e?{message:e}:e,fatal:o})}}):Y.create()}eO.create=(e,t)=>new eO({innerType:e,typeName:tn.ZodReadonly,...O(t)});let eT={object:ee.lazycreate};!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(tn||(tn={}));let eA=U.create,eI=D.create,eP=e_.create,eS=B.create,ej=q.create,eN=V.create,eR=G.create,e$=W.create,eM=K.create,eF=Y.create,eZ=J.create,eL=H.create,ez=Q.create,eU=X.create,eD=ee.create,eB=ee.strictCreate,eq=et.create,eV=en.create,eG=es.create,eW=ei.create,eK=ea.create,eY=eo.create,eJ=eu.create,eH=el.create,eQ=ec.create,eX=ed.create,e0=ef.create,e1=eh.create,e3=em.create,e2=ey.create,e6=eg.create,e9=eb.create,e4=ey.createWithPreprocess,e5=eE.create;var e8,e7,te,tt,tr,tn,ts=Object.freeze({__proto__:null,defaultErrorMap:u,setErrorMap:function(e){l=e},getErrorMap:c,makeIssue:d,EMPTY_PATH:[],addIssueToContext:p,ParseStatus:f,INVALID:h,DIRTY:m,OK:y,isAborted:g,isDirty:b,isValid:v,isAsync:w,get util(){return e8},get objectUtil(){return e7},ZodParsedType:s,getParsedType:i,ZodType:k,datetimeRegex:z,ZodString:U,ZodNumber:D,ZodBigInt:B,ZodBoolean:q,ZodDate:V,ZodSymbol:G,ZodUndefined:W,ZodNull:K,ZodAny:Y,ZodUnknown:J,ZodNever:H,ZodVoid:Q,ZodArray:X,ZodObject:ee,ZodUnion:et,ZodDiscriminatedUnion:en,ZodIntersection:es,ZodTuple:ei,ZodRecord:ea,ZodMap:eo,ZodSet:eu,ZodFunction:el,ZodLazy:ec,ZodLiteral:ed,ZodEnum:ef,ZodNativeEnum:eh,ZodPromise:em,ZodEffects:ey,ZodTransformer:ey,ZodOptional:eg,ZodNullable:eb,ZodDefault:ev,ZodCatch:ew,ZodNaN:e_,BRAND:ex,ZodBranded:eC,ZodPipeline:eE,ZodReadonly:eO,custom:ek,Schema:k,ZodSchema:k,late:eT,get ZodFirstPartyTypeKind(){return tn},coerce:{string:e=>U.create({...e,coerce:!0}),number:e=>D.create({...e,coerce:!0}),boolean:e=>q.create({...e,coerce:!0}),bigint:e=>B.create({...e,coerce:!0}),date:e=>V.create({...e,coerce:!0})},any:eF,array:eU,bigint:eS,boolean:ej,date:eN,discriminatedUnion:eV,effect:e2,enum:e0,function:eH,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>ek(t=>t instanceof e,t),intersection:eG,lazy:eQ,literal:eX,map:eY,nan:eP,nativeEnum:e1,never:eL,null:eM,nullable:e9,number:eI,object:eD,oboolean:()=>ej().optional(),onumber:()=>eI().optional(),optional:e6,ostring:()=>eA().optional(),pipeline:e5,preprocess:e4,promise:e3,record:eK,set:eJ,strictObject:eB,string:eA,symbol:eR,transformer:e2,tuple:eW,undefined:e$,union:eq,unknown:eZ,void:ez,NEVER:h,ZodIssueCode:a,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:o})}};
@@ -1 +1 @@
1
- self.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-78c92fac7aa8fdd8.js"],devFiles:[],ampDevFiles:[],lowPriorityFiles:["static/2-921MOvqjHFPC49aio4h/_buildManifest.js","static/2-921MOvqjHFPC49aio4h/_ssgManifest.js"],rootMainFiles:["static/chunks/webpack-0a1a8d946004675b.js","static/chunks/99187bc8-c01639095c820d4b.js","static/chunks/3164-5df01822ba8d356b.js","static/chunks/main-app-c1da57de54a99e0c.js"],pages:{"/_app":["static/chunks/webpack-0a1a8d946004675b.js","static/chunks/framework-af9b1d45774ad36d.js","static/chunks/main-fdd95518336bb93b.js","static/chunks/pages/_app-ae8019678adc41e5.js"],"/_error":["static/chunks/webpack-0a1a8d946004675b.js","static/chunks/framework-af9b1d45774ad36d.js","static/chunks/main-fdd95518336bb93b.js","static/chunks/pages/_error-523ecdbdba5b497f.js"]},ampFirstPages:[]};
1
+ self.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-78c92fac7aa8fdd8.js"],devFiles:[],ampDevFiles:[],lowPriorityFiles:["static/zi8nyPCTf-u5S7c7AJSgG/_buildManifest.js","static/zi8nyPCTf-u5S7c7AJSgG/_ssgManifest.js"],rootMainFiles:["static/chunks/webpack-0a1a8d946004675b.js","static/chunks/99187bc8-c01639095c820d4b.js","static/chunks/3164-5df01822ba8d356b.js","static/chunks/main-app-c1da57de54a99e0c.js"],pages:{"/_app":["static/chunks/webpack-0a1a8d946004675b.js","static/chunks/framework-af9b1d45774ad36d.js","static/chunks/main-fdd95518336bb93b.js","static/chunks/pages/_app-ae8019678adc41e5.js"],"/_error":["static/chunks/webpack-0a1a8d946004675b.js","static/chunks/framework-af9b1d45774ad36d.js","static/chunks/main-fdd95518336bb93b.js","static/chunks/pages/_error-523ecdbdba5b497f.js"]},ampFirstPages:[]};
@@ -1 +1 @@
1
- <!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-0a1a8d946004675b.js"/><script src="/_next/static/chunks/99187bc8-c01639095c820d4b.js" async=""></script><script src="/_next/static/chunks/3164-5df01822ba8d356b.js" async=""></script><script src="/_next/static/chunks/main-app-c1da57de54a99e0c.js" async=""></script><meta name="robots" content="noindex"/><title>404: This page could not be found.</title><meta name="next-size-adjust"/><script src="/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js" noModule=""></script></head><body><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><script src="/_next/static/chunks/webpack-0a1a8d946004675b.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:I[90003,[],\"\"]\n3:I[82003,[],\"\"]\n4:I[75373,[],\"\"]\na:I[95212,[],\"\"]\n5:{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"}\n6:{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"}\n7:{\"display\":\"inline-block\"}\n8:{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0}\nb:[]\n"])</script><script>self.__next_f.push([1,"0:[null,[\"$\",\"$L1\",null,{\"buildId\":\"2-921MOvqjHFPC49aio4h\",\"assetPrefix\":\"\",\"initialCanonicalUrl\":\"/_not-found\",\"initialTree\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{},[[\"$L2\",[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]]],null],null]},[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"/_not-found\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\",\"styles\":null}],null]},[[\"$\",\"html\",null,{\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$5\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$6\",\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":\"$7\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$8\",\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[],\"styles\":null}]}]}],null],null],\"couldBeIntercepted\":false,\"initialHead\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],\"$L9\"],\"globalErrorComponent\":\"$a\",\"missingSlots\":\"$Wb\"}]]\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"2\",{\"name\":\"next-size-adjust\"}]]\n2:null\n"])</script></body></html>
1
+ <!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-0a1a8d946004675b.js"/><script src="/_next/static/chunks/99187bc8-c01639095c820d4b.js" async=""></script><script src="/_next/static/chunks/3164-5df01822ba8d356b.js" async=""></script><script src="/_next/static/chunks/main-app-c1da57de54a99e0c.js" async=""></script><meta name="robots" content="noindex"/><title>404: This page could not be found.</title><meta name="next-size-adjust"/><script src="/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js" noModule=""></script></head><body><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><script src="/_next/static/chunks/webpack-0a1a8d946004675b.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:I[90003,[],\"\"]\n3:I[82003,[],\"\"]\n4:I[75373,[],\"\"]\na:I[95212,[],\"\"]\n5:{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"}\n6:{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"}\n7:{\"display\":\"inline-block\"}\n8:{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0}\nb:[]\n"])</script><script>self.__next_f.push([1,"0:[null,[\"$\",\"$L1\",null,{\"buildId\":\"zi8nyPCTf-u5S7c7AJSgG\",\"assetPrefix\":\"\",\"initialCanonicalUrl\":\"/_not-found\",\"initialTree\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{},[[\"$L2\",[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]]],null],null]},[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"/_not-found\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\",\"styles\":null}],null]},[[\"$\",\"html\",null,{\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$5\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$6\",\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":\"$7\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$8\",\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[],\"styles\":null}]}]}],null],null],\"couldBeIntercepted\":false,\"initialHead\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],\"$L9\"],\"globalErrorComponent\":\"$a\",\"missingSlots\":\"$Wb\"}]]\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"2\",{\"name\":\"next-size-adjust\"}]]\n2:null\n"])</script></body></html>
@@ -1 +1 @@
1
- <!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><title>500: Internal Server Error</title><meta name="next-head-count" content="3"/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js"></script><script src="/_next/static/chunks/webpack-0a1a8d946004675b.js" defer=""></script><script src="/_next/static/chunks/framework-af9b1d45774ad36d.js" defer=""></script><script src="/_next/static/chunks/main-fdd95518336bb93b.js" defer=""></script><script src="/_next/static/chunks/pages/_app-ae8019678adc41e5.js" defer=""></script><script src="/_next/static/chunks/pages/_error-523ecdbdba5b497f.js" defer=""></script><script src="/_next/static/2-921MOvqjHFPC49aio4h/_buildManifest.js" defer=""></script><script src="/_next/static/2-921MOvqjHFPC49aio4h/_ssgManifest.js" defer=""></script></head><body><div id="__next"><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div style="line-height:48px"><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">500</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">Internal Server Error<!-- -->.</h2></div></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":500}},"page":"/_error","query":{},"buildId":"2-921MOvqjHFPC49aio4h","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
1
+ <!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><title>500: Internal Server Error</title><meta name="next-head-count" content="3"/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js"></script><script src="/_next/static/chunks/webpack-0a1a8d946004675b.js" defer=""></script><script src="/_next/static/chunks/framework-af9b1d45774ad36d.js" defer=""></script><script src="/_next/static/chunks/main-fdd95518336bb93b.js" defer=""></script><script src="/_next/static/chunks/pages/_app-ae8019678adc41e5.js" defer=""></script><script src="/_next/static/chunks/pages/_error-523ecdbdba5b497f.js" defer=""></script><script src="/_next/static/zi8nyPCTf-u5S7c7AJSgG/_buildManifest.js" defer=""></script><script src="/_next/static/zi8nyPCTf-u5S7c7AJSgG/_ssgManifest.js" defer=""></script></head><body><div id="__next"><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div style="line-height:48px"><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">500</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">Internal Server Error<!-- -->.</h2></div></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":500}},"page":"/_error","query":{},"buildId":"zi8nyPCTf-u5S7c7AJSgG","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>