1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9172],{64625:function(e,t,i){let n=i(68885);class s extends n{constructor(e,t,i){super(),this.targets=t,this.options=i,this.connections=e,this.connected=!1,this.status="loading",this.interval=i.interval||5e3,this.name=i.name||"default",this.inSetup=!0,this.connect()}connect(e=0){if(this.connection&&"connected"===this.connection.status&&e>=this.connection.index);else if(0===this.targets.length);else{let{protocol:t,location:i}=this.targets[e];this.connection=this.connections[t](i,this.options);let n=t=>this.connectionError(e,t);this.connection.once("error",n),this.connection.on("connect",()=>{this.connection.off("error",n),this.connection.once("error",e=>this.onError(e)),this.connection.once("close",()=>{this.connected=!1,this.emitClose(),this.closing||this.refresh()}),this.connection.target=this.targets[e],this.connection.index=e,this.targets[e].status=this.connection.status,this.connected=!0,this.inSetup=!1,this.emit("connect")}),this.connection.on("data",e=>this.emit("data",e)),this.connection.on("payload",e=>this.emit("payload",e))}}onError(e){if(this.listenerCount("error"))return this.emit("error",e);console.warn("[eth-provider] Uncaught connection error: "+e.message)}refresh(e=this.interval){clearTimeout(this.connectTimer),this.connectTimer=setTimeout(()=>this.connect(),e)}connectionError(e,t){this.connection&&this.connection.close&&this.connection.close(),this.targets[e].status=t,this.targets.length-1===e?(this.inSetup=!1,this.refresh()):this.connect(++e)}emitClose(){this.emit("close")}close(){this.closing=!0,this.connection&&this.connection.close&&!this.connection.closed?this.connection.close():this.emit("close"),clearTimeout(this.connectTimer),clearTimeout(this.setupTimer)}error(e,t,i=-1){this.emit("payload",{id:e.id,jsonrpc:e.jsonrpc,error:{message:t,code:i}})}send(e){this.inSetup?this.setupTimer=setTimeout(()=>this.send(e),100):this.connection.closed?this.error(e,"Not connected",4900):this.connection.send(e)}}e.exports=s},17443:function(e,t,i){let n=i(53332),s=i(7116),r=i(9680),o={ethereum:"undefined"!=typeof window&&void 0!==window.ethereum?window.ethereum:null,web3:"undefined"!=typeof window&&void 0!==window.web3?window.web3.currentProvider:null},c="undefined"!=typeof window&&void 0!==window.WebSocket?window.WebSocket:null,a="undefined"!=typeof window&&void 0!==window.XMLHttpRequest?window.XMLHttpRequest:null;o.ethereum&&(o.ethereum.__isProvider=!0);let d={injected:o.ethereum||i(73506)(o.web3),ipc:i(9497)("IPC connections are unavliable in the browser"),ws:i(66007)(c),http:i(33355)(a)};e.exports=(e,t)=>(!e||Array.isArray(e)||"object"!=typeof e||t||(t=e,e=void 0),e||(e=["injected","frame"]),t||(t={}
1),(e=[].concat(e)).forEach(e=>{if(e.startsWith("alchemy")&&!t.alchemyId)throw Error("Alchemy was included as a connection target but no Alchemy project ID was passed in options e.g. { alchemyId: '123abc' }");if(e.startsWith("infura")&&!t.infuraId)throw Error("Infura was included as a connection target but no Infura project ID was passed in options e.g. { infuraId: '123abc' }")}),s(d,n(e,r(t)),t))},33355:function(e,t,i){let n;let s=i(68885),{v4:r}=i(41703);class o extends s{constructor(e,t,i){super(),n=e,this.options=i,this.connected=!1,this.subscriptions=!1,this.status="loading",this.url=t,this.pollId=r(),setTimeout(()=>this.create(),0),this._emit=(...e)=>this.closed?null:this.emit(...e)}onError(e){!this.closed&&this.listenerCount("error")&&this.emit("error",e)}create(){if(!n)return this.onError(Error("No HTTP transport available"));this.on("error",()=>{this.connected&&this.close()}),this.init()}init(){this.send({jsonrpc:"2.0",method:"net_version",params:[],id:1},(e,t)=>{if(e)return this.onError(e);this.connected=!0,this._emit("connect"),this.send({jsonrpc:"2.0",id:1,method:"eth_pollSubscriptions",params:[this.pollId,"immediate"]},(e,t)=>{e||(this.subscriptions=!0,this.pollSubscriptions())})})}pollSubscriptions(){this.send({jsonrpc:"2.0",id:1,method:"eth_pollSubscriptions",params:[this.pollId]},(e,t)=>{if(e)return this.subscriptionTimeout=setTimeout(()=>this.pollSubscriptions(),1e4),this.onError(e);this.closed||(this.subscriptionTimeout=this.pollSubscriptions()),t&&t.map(e=>{let t;try{t=JSON.parse(e)}catch(e){t=!1}return t}).filter(e=>e).forEach(e=>this._emit("payload",e))})}close(){clearTimeout(this.subscriptionTimeout),this._emit("close"),this.closed=!0,this.removeAllListeners()}filterStatus(e){if(e.status>=200&&e.status<300)return e;let t=Error(e.statusText);throw t.res=e,t.message}error(e,t,i=-1){this._emit("payload",{id:e.id,jsonrpc:e.jsonrpc,error:{message:t,code:i}})}send(e,t){if(this.closed)return this.error(e,"Not connected");if("eth_subscribe"===e.method){if(!this.subscriptions)return this.error(e,"Subscriptions are not supported by this HTTP endpoint");e.pollId=this.pollId}let i=new n,s=!1,r=(n,r)=>{if(!s){if(i.abort(),s=!0,t)t(n,r);else{let{id:t,jsonrpc:i}=e,s=n?{id:t,jsonrpc:i,error:{message:n.message,code:n.code}}:{id:t,jsonrpc:i,result:r};this._emit("payload",s)}}};try{i.open("POST",this.url,!0),i.setRequestHeader("Content-Type","application/json"),i.timeout=6e4,i.onerror=r,i.ontimeout=r,i.onreadystatechange=()=>{if(4===i.readyState)try{let e=JSON.parse(i.responseText);r(e.error,e.result)}catch(e){r(e)}},i.send(JSON.stringify(e))}catch(e){r({message:e.message,code:-1})}}}e.exports=e=>(t,i)=>new o(e,t,i)},73506:function(e,t,i){let n=i(68885);class s extends n{constructor(e,t){super(),e?setTimeout(()=>this.onError(Error("Injected web3 provider is not currently supported")),0):setTimeout(()=>this.onError(Error("No injected provider found")),0)}onError(e){this.listenerCount("error")&&this.emit("error",e)}}e.exports=e=>t=>new s(e,t)},9497:function(e,t,i){let n=i(68885);class s extends n{constructor(e){super(),setTimeout(()=>this.onError(Error(e)),0)}onError(e){this.listenerCount("error")&&this.emit("error",e)}}e.exports=e=>()=>new s(e)},66007:function(e,t,i){let n;let s=i(68885),r=i(50783);class o extends s{constructor(e,t,i){super(),this.socketListeners=[],n=e,setTimeout(()=>this.create(t,i),0)}create(e,t){if(!n)return this.onError(Error("No WebSocket transport available"));try{this.socket=new n(e,[],{origin:t.origin})}catch(e){return this.onError(e)}this.addSocketListener("error",this.onError.bind(this)),this.addSocketListener("open",this.onOpen.bind(this)),this.addSocketListener("close",this.onClose.bind(this))}addSocketListener(e,t){this.socket.addEventListener(e,t),this.socketListeners.push({event:e,handler:t})}removeAllSocketListeners(){this.socketListeners.forEach(({event:e,handler:t})=>{this.socket.removeEventListener(e,t)}),this.socketListeners=[]}onOpen(){this.emit("connect"),this.addSocketListener("message",this.onMessage.bind(this))}onMessage(e){r("string"==typeof e.data?e.data:"",(e,t)=>
1{e||t.forEach(e=>{Array.isArray(e)?e.forEach(e=>this.emit("payload",e)):this.emit("payload",e)})})}onError(e){this.listenerCount("error")&&this.emit("error",e)}onClose(e){e&&e.reason,e&&e.code,this.socket&&(this.removeAllSocketListeners(),this.socket=null),this.closed=!0,this.emit("close"),this.removeAllListeners()}close(){this.socket&&n&&this.socket.readyState!==n.CLOSED?(this.removeAllSocketListeners(),this.addSocketListener("error",()=>{}),this.addSocketListener("close",this.onClose.bind(this)),this.socket.terminate?this.socket.terminate():this.socket.close()):this.onClose()}error(e,t,i=-1){this.emit("payload",{id:e.id,jsonrpc:e.jsonrpc,error:{message:t,code:i}})}send(e){try{this.socket&&this.socket.readyState===this.socket.CONNECTING?setTimeout(t=>this.send(e),10):!this.socket||this.socket.readyState>1?(this.connected=!1,this.error(e,"Not connected")):this.socket.send(JSON.stringify(e))}catch(t){this.error(e,t.message)}}}e.exports=e=>(t,i)=>new o(e,t,i)},41703:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return a.default}});var n=l(i(86849)),s=l(i(55935)),r=l(i(17200)),o=l(i(3280)),c=l(i(26322)),a=l(i(73336)),d=l(i(34485)),h=l(i(22122)),u=l(i(71055));function l(e){return e&&e.__esModule?e:{default:e}}},34591:function(e,t){"use strict";function i(e){return(e+64>>>9<<4)+14+1}function n(e,t){let i=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(i>>16)<<16|65535&i}function s(e,t,i,s,r,o){var c;return n((c=n(n(t,e),n(s,o)))<<r|c>>>32-r,i)}function r(e,t,i,n,r,o,c){return s(t&i|~t&n,e,t,r,o,c)}function o(e,t,i,n,r,o,c){return s(t&n|i&~n,e,t,r,o,c)}function c(e,t,i,n,r,o,c){return s(t^i^n,e,t,r,o,c)}function a(e,t,i,n,r,o,c){return s(i^(t|~n),e,t,r,o,c)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){if("string"==typeof e){let t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let i=0;i<t.length;++i)e[i]=t.charCodeAt(i)}return function(e){let t=[],i=32*e.length,n="0123456789abcdef";for(let s=0;s<i;s+=8){let i=e[s>>5]>>>s%32&255,r=parseInt(n.charAt(i>>>4&15)+n.charAt(15&i),16);t.push(r)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[i(t)-1]=t;let s=1732584193,d=-271733879,h=-1732584194,u=271733878;for(let t=0;t<e.length;t+=16){let i=s,l=d,f=h,p=u;s=r(s,d,h,u,e[t],7,-680876936),u=r(u,s,d,h,e[t+1],12,-389564586),h=r(h,u,s,d,e[t+2],17,606105819),d=r(d,h,u,s,e[t+3],22,-1044525330),s=r(s,d,h,u,e[t+4],7,-176418897),u=r(u,s,d,h,e[t+5],12,1200080426),h=r(h,u,s,d,e[t+6],17,-1473231341),d=r(d,h,u,s,e[t+7],22,-45705983),s=r(s,d,h,u,e[t+8],7,1770035416),u=r(u,s,d,h,e[t+9],12,-1958414417),h=r(h,u,s,d,e[t+10],17,-42063),d=r(d,h,u,s,e[t+11],22,-1990404162),s=r(s,d,h,u,e[t+12],7,1804603682),u=r(u,s,d,h,e[t+13],12,-40341101),h=r(h,u,s,d,e[t+14],17,-1502002290),d=r(d,h,u,s,e[t+15],22,1236535329),s=o(s,d,h,u,e[t+1],5,-165796510),u=o(u,s,d,h,e[t+6],9,-1069501632),h=o(h,u,s,d,e[t+11],14,643717713),d=o(d,h,u,s,e[t],20,-373897302),s=o(s,d,h,u,e[t+5],5,-701558691),u=o(u,s,d,h,e[t+10],9,38016083),h=o(h,u,s,d,e[t+15],14,-660478335),d=o(d,h,u,s,e[t+4],20,-405537848),s=o(s,d,h,u,e[t+9],5,568446438),u=o(u,s,d,h,e[t+14],9,-1019803690),h=o(h,u,s,d,e[t+3],14,-187363961),d=o(d,h,u,s,e[t+8],20,1163531501),s=o(s,d,h,u,e[t+13],5,-1444681467),u=o(u,s,d,h,e[t+2],9,-51403784),h=o(h,u,s,d,e[t+7],14,1735328473),d=o(d,h,u,s,e[t+12],20,-1926607734),s=c(s,d,h,u,e[t+5],4,-378558),u=c(u,s,d,h,e[t+8],11,-2022574463),h=c(h,u,s,d,e[t+11],16,1839030562),d=c(d,h,u,s,e[t+14],23,-35309556),s=c(s,d,h,u,e[t+1],4,-1530992060),u=c(u,s,d,h,e[t+4],11,1272893353),h=c(h,u,s,d,e[t+7],16,-155497632),d=c(d,h,u,s,e[t+10],23,-1094730640),s=c(s,d,h,u,e[t+13],4,681279174),u=c(u,s,d,h,e[t],11,-358537222),h=c(h,u,s,d,e[t+3],16,-722521979),d=c(d,h,u,s,e[t+6],23,76029189),s=c(s,d,h,u,e[t+9],4,-640364487),u=c(u,s,d,h,e[t+12],11,-421815835),h=c(h,u,s,d,e[t+15],16,530742520),d=c(d,h,u,s,e[t+2],23,-995338651),s=a(s,d,h,u,e[t],6,-198630844),u=a(u,s,d,h,e[t+7],10,1126891415),h=a(h,u,s,d,e[t+14],15,-1416354905),d=a(d,h,u,s,e[t+5],21,-57434055),s=a(s,d,h,u,e[t+12],6,1700485571),u=a(u,s,d,h,e[t+3],10,-1894986606),h=a(h,u,s,d,e[t+10],15,-1051523),d=a(d,h,u,s,e[t+1],21,-2054922799),s=a(s,d,h,u,e[t+8],6,1873313359),u=a(u,s,d,h,e[t+15],10,-30611744),h=a(h,u,s,d,e[t+6],15,-1560198380),d=a(d,h,u,s,e[t+13],21,1309151649),s=a(s,d,h,u,e[t+4],6,-145523070),u=a(u,s,d,h,e[t+11],10,-1120210379),h=a(h,u,s,d,e[t+2],15,718787259),d=a(d,h,u,s,e[t+9],21,-343485551),s=n(s,i),d=n(d,l),h=n(h,f),u=n(u,p)}return[s,d,h,u]}(function(e){if(0===e.length)return[];let t=8*e.length,n=new Uint32Array(i(t));for(let i=0;i<t;i+=8)n[i>>5]|=(255&e[i/8])<<i%32;return n}(e),8*e.length))}},1955:function(e,t){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;let i="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);t.default={randomUUID:i}},26322:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="00000000-0000-0000-0000-000000000000"},71055:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,s=(n=i(34485))&&n.__esModule?n:{default:n};t.default=function(e){let t;if(!(0,s.default)(e))throw TypeError("Invalid UUID");let i=new Uint8Array(16);return i[0]=(t=parseInt(e.slice(0,8),16))>>>24,i[1]=t>>>16&255,i[2]=t>>>8&255,i[3]=255&t,i[4]=(t=parseInt(e.slice(9,13),16))>>>8,i[5]=255&t,i[6]=(t=parseInt(e.slice(14,18),16))>>>8,i[7]=255&t,i[8]=(t=parseInt(e.slice(19,23),16))>>>8,i[9]=255&t,i[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,i[11]=t/4294967296&255,i[12]=t>>>24&255,i[13]=t>>>16&255,i[14]=t>>>8&255,i[15]=255&t,i}},14842:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},25028:function(e,t){"use strict";let i;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!i&&!(i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(n)};let n=new Uint8Array(16)},92003:function(e,t){"use strict";function i(e,t){return e<<t|e>>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){let t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){let t=unescape(encodeURIComponent(e));e=[];for(let i=0;i<t.length;++i)e.push(t.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);let s=Math.ceil((e.length/4+2)/16),r=Array(s);for(let t=0;t<s;++t){let i=new Uint32Array(16);for(let n=0;n<16;++n)i[n]=e[64*t+4*n]<<24|e[64*t+4*n+1]<<16|e[64*t+4*n+2]<<8|e[64*t+4*n+3];r[t]=i}r[s-1][14]=(e.length-1)*8/4294967296,r[s-1][14]=Math.floor(r[s-1][14]),r[s-1][15]=(e.length-1)*8&4294967295;for(let e=0;e<s;++e){let s=new Uint32Array(80);for(let t=0;t<16;++t)s[t]=r[e][t];for(let e=16;e<80;++e)s[e]=i(s[e-3]^s[e-8]^s[e-14]^s[e-16],1);let o=n[0],c=n[1],a=n[2],d=n[3],h=n[4];for(let e=0;e<80;++e){let n=Math.floor(e/20),r=i(o,5)+function(e,t,i,n){switch(e){case 0:return t&i^~t&n;case 1:case 3:return t^i^n;case 2:return t&i^t&n^i&n}}(n,c,a,d)+h+t[n]+s[e]>>>0;h=d,d=a,a=i(c,30)>>>0,c=o,o=r}n[0]=n[0]+o>>>0,n[1]=n[1]+c>>>0,n[2]=n[2]+a>>>0,n[3]=n[3]+d>>>0,n[4]=n[4]+h>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>
1>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}},22122:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=o;var n,s=(n=i(34485))&&n.__esModule?n:{default:n};let r=[];for(let e=0;e<256;++e)r.push((e+256).toString(16).slice(1));function o(e,t=0){return(r[e[t+0]]+r[e[t+1]]+r[e[t+2]]+r[e[t+3]]+"-"+r[e[t+4]]+r[e[t+5]]+"-"+r[e[t+6]]+r[e[t+7]]+"-"+r[e[t+8]]+r[e[t+9]]+"-"+r[e[t+10]]+r[e[t+11]]+r[e[t+12]]+r[e[t+13]]+r[e[t+14]]+r[e[t+15]]).toLowerCase()}t.default=function(e,t=0){let i=o(e,t);if(!(0,s.default)(i))throw TypeError("Stringified UUID is invalid");return i}},86849:function(e,t,i){"use strict";let n,s;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=i(25028))&&r.__esModule?r:{default:r},c=i(22122);let a=0,d=0;t.default=function(e,t,i){let r=t&&i||0,h=t||Array(16),u=(e=e||{}).node||n,l=void 0!==e.clockseq?e.clockseq:s;if(null==u||null==l){let t=e.random||(e.rng||o.default)();null==u&&(u=n=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==l&&(l=s=(t[6]<<8|t[7])&16383)}let f=void 0!==e.msecs?e.msecs:Date.now(),p=void 0!==e.nsecs?e.nsecs:d+1,m=f-a+(p-d)/1e4;if(m<0&&void 0===e.clockseq&&(l=l+1&16383),(m<0||f>a)&&void 0===e.nsecs&&(p=0),p>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");a=f,d=p,s=l;let b=((268435455&(f+=122192928e5))*1e4+p)%4294967296;h[r++]=b>>>24&255,h[r++]=b>>>16&255,h[r++]=b>>>8&255,h[r++]=255&b;let y=f/4294967296*1e4&268435455;h[r++]=y>>>8&255,h[r++]=255&y,h[r++]=y>>>24&15|16,h[r++]=y>>>16&255,h[r++]=l>>>8|128,h[r++]=255&l;for(let e=0;e<6;++e)h[r+e]=u[e];return t||(0,c.unsafeStringify)(h)}},55935:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(i(74438)),s=r(i(34591));function r(e){return e&&e.__esModule?e:{default:e}}let o=(0,n.default)("v3",48,s.default);t.default=o},74438:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(e,t,i){function n(e,n,o,c){var a;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));let t=[];for(let i=0;i<e.length;++i)t.push(e.charCodeAt(i));return t}(e)),"string"==typeof n&&(n=(0,r.default)(n)),(null===(a=n)||void 0===a?void 0:a.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let d=new Uint8Array(16+e.length);if(d.set(n),d.set(e,n.length),(d=i(d))[6]=15&d[6]|t,d[8]=63&d[8]|128,o){c=c||0;for(let e=0;e<16;++e)o[c+e]=d[e];return o}return(0,s.unsafeStringify)(d)}try{n.name=e}catch(e){}return n.DNS=o,n.URL=c,n};var n,s=i(22122),r=(n=i(71055))&&n.__esModule?n:{default:n};let o="6ba7b810-9dad-11d1-80b4-00c04fd430c8";t.DNS=o;let c="6ba7b811-9dad-11d1-80b4-00c04fd430c8";t.URL=c},17200:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(i(1955)),s=o(i(25028)),r=i(22122);function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,i){if(n.default.randomUUID&&!t&&!e)return n.default.randomUUID();let o=(e=e||{}).random||(e.rng||s.default)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){i=i||0;for(let e=0;e<16;++e)t[i+e]=o[e];return t}return(0,r.unsafeStringify)(o)}},3280:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(i(74438)),s=r(i(92003));function r(e){return e&&e.__esModule?e:{default:e}}let o=(0,n.default)("v5",80,s.default);t.default=o},34485:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,s=(n=i(14842))&&n.__esModule?n:{default:n};t.default=function(e){return"string"==typeof e&&s.default.test(e)}},73336:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,s=(n=i(34485))&&n.__esModule?n:{default:n};t.default=function(e){if(!(0,s.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}},50783:function(e){let t,i;e.exports=(e,n)=>{let s=[];e.replace(/\}[\n\r]?\{/g,"}|--|{").replace(/\}\][\n\r]?\[\{/g,"}]|--|[{").replace(/\}[\n\r]?\[\{/g,"}|--|[{").replace(/\}\][\n\r]?\{/g,"}
1]|--|{").split("|--|").forEach(e=>{let r;t&&(e=t+e);try{r=JSON.parse(e)}catch(s){t=e,clearTimeout(i),i=setTimeout(()=>n(Error("Parse response timeout")),15e3);return}clearTimeout(i),t=null,r&&s.push(r)}),n(null,s)}},9680:function(e){e.exports=(e={})=>({injected:["injected"],frame:["ws://127.0.0.1:1248","http://127.0.0.1:1248"],direct:["ws://127.0.0.1:8546","http://127.0.0.1:8545"],infura:[`wss://mainnet.infura.io/ws/v3/${e.infuraId}`,`https://mainnet.infura.io/v3/${e.infuraId}`],alchemy:[`wss://eth-mainnet.ws.alchemyapi.io/v2/${e.alchemyId}`,`https://eth-mainnet.alchemyapi.io/v2/${e.alchemyId}`],infuraGoerli:[`wss://goerli.infura.io/ws/v3/${e.infuraId}`,`https://goerli.infura.io/v3/${e.infuraId}`],alchemyGoerli:[`wss://eth-goerli.ws.alchemyapi.io/v2/${e.alchemyId}`,`https://eth-goerli.alchemyapi.io/v2/${e.alchemyId}`],infuraPolygon:[`https://polygon-mainnet.infura.io/v3/${e.infuraId}`],infuraArbitrum:[`https://arbitrum-mainnet.infura.io/v3/${e.infuraId}`],infuraOptimism:[`https://optimism-mainnet.infura.io/v3/${e.infuraId}`],infuraSepolia:[`wss://sepolia.infura.io/ws/v3/${e.infuraId}`,`https://sepolia.infura.io/v3/${e.infuraId}`],gnosis:["https://rpc.gnosischain.com"],optimism:["https://mainnet.optimism.io"]})},7116:function(e,t,i){let n=i(68885),s=i(44488).default,r=i(64625),o=e=>{function t(t){e.status=t,e instanceof n&&e.emit("status",t)}async function i(){try{await e.send("eth_syncing")&&t("syncing")}catch(e){}}async function s(){if(e.inSetup)return setTimeout(s,1e3);try{await e.send("eth_chainId"),t("connected"),setTimeout(i,500)}catch(e){t("disconnected")}}return t("loading"),s(),e.on("connect",()=>s()),e.on("close",()=>t("disconnected")),e};e.exports=(e,t,i)=>{if(e.injected.__isProvider&&t.map(e=>e.type).indexOf("injected")>-1)return delete e.injected.__isProvider,o(e.injected);let n=new s(new r(e,t,i));return n.setMaxListeners(128),o(n)}},53332:function(e){let t=e=>"injected"===e?"injected":e.endsWith(".ipc")?"ipc":e.startsWith("wss://")||e.startsWith("ws://")?"ws":e.startsWith("https://")||e.startsWith("http://")?"http":"";e.exports=(e,i)=>[].concat(...[].concat(e).map(e=>i[e]?i[e].map(i=>({type:e,location:i,protocol:t(i)})):{type:"custom",location:e,protocol:t(e)})).filter(e=>!!e.protocol||"injected"===e.type||(console.log('eth-provider | Invalid provider preset/location: "'+e.location+'"'),!1))},44488:function(e,t,i){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let s=n(i(68885)),r=i(90690);class o extends s.default{constructor(e){super(),this.promises={},this.attemptedSubscriptions=new Set,this.subscriptions=[],this.checkConnectionRunning=!1,this.nextId=1,this.connected=!1,this.accounts=[],this.selectedAddress=void 0,this.coinbase=void 0,this.enable=this.enable.bind(this),this.doSend=this.doSend.bind(this),this.send=this.send.bind(this),this.sendBatch=this.sendBatch.bind(this),this.subscribe=this.subscribe.bind(this),this.unsubscribe=this.unsubscribe.bind(this),this.resumeSubscriptions=this.resumeSubscriptions.bind(this),this.sendAsync=this.sendAsync.bind(this),this.sendAsyncBatch=this.sendAsyncBatch.bind(this),this.isConnected=this.isConnected.bind(this),this.close=this.close.bind(this),this.request=this.request.bind(this),this.connection=e,this.on("connect",this.resumeSubscriptions),this.connection.on("connect",()=>this.checkConnection(1e3)),this.connection.on("close",()=>{this.connected=!1,this.attemptedSubscriptions.clear(),this.emit("close"),this.emit("disconnect")}),this.connection.on("payload",e=>{let{id:t,method:i,error:n,result:s}=e;if(void 0!==t){if(this.promises[t]){let i=this.promises[t].method;if(i&&["eth_accounts","eth_requestAccounts"].includes(i)){let e=s||[];this.accounts=e,this.selectedAddress=e[0],this.coinbase=e[0]}e.error?this.promises[t].reject(n):this.promises[t].resolve(s),delete this.promises[t]}}else i&&i.indexOf("_subscription")>-1&&(this.emit(e.params.subscription,e.params.result),this.emit(i,e.params),this.emit("message",{type:e.method,data:{subscription:e.params.subscription,result:e.params.result}}
1),this.emit("data",e))}),this.on("newListener",e=>{Object.keys(this.eventHandlers).includes(e)&&!this.attemptedSubscription(e)&&this.connected&&(this.startSubscription(e),"networkChanged"===e&&console.warn("The networkChanged event is being deprecated, use chainChanged instead"))}),this.eventHandlers={networkChanged:e=>{this.networkVersion="string"==typeof e?parseInt(e):e,this.emit("networkChanged",this.networkVersion)},chainChanged:e=>{this.providerChainId=e,this.manualChainId||this.emit("chainChanged",e)},chainsChanged:e=>{this.emit("chainsChanged",e)},accountsChanged:e=>{this.selectedAddress=e[0],this.emit("accountsChanged",e)},assetsChanged:e=>{this.emit("assetsChanged",e)}}}get chainId(){return this.manualChainId||this.providerChainId}async checkConnection(e=4e3){if(!this.checkConnectionRunning&&!this.connected){clearTimeout(this.checkConnectionTimer),this.checkConnectionTimer=void 0,this.checkConnectionRunning=!0;try{this.networkVersion=await this.doSend("net_version",[],void 0,!1),this.providerChainId=await this.doSend("eth_chainId",[],void 0,!1),this.connected=!0}catch(t){this.checkConnectionTimer=setTimeout(()=>this.checkConnection(),e),this.connected=!1}finally{this.checkConnectionRunning=!1,this.connected&&this.emit("connect",{chainId:this.providerChainId})}}}attemptedSubscription(e){return this.attemptedSubscriptions.has(e)}setSubscriptionAttempted(e){this.attemptedSubscriptions.add(e)}async startSubscription(e){console.debug(`starting subscription for ${e} events`),this.setSubscriptionAttempted(e);try{let t=await this.subscribe("eth_subscribe",e);this.on(t,this.eventHandlers[e])}catch(t){console.warn(`Unable to subscribe to ${e}`,t)}}resumeSubscriptions(){Object.keys(this.eventHandlers).forEach(e=>{this.listenerCount(e)&&!this.attemptedSubscription(e)&&this.startSubscription(e)})}async enable(){let e=await this.doSend("eth_accounts");if(e.length>0)return this.accounts=e,this.selectedAddress=e[0],this.coinbase=e[0],this.emit("enable"),e;{let e=Error("User Denied Full Provider");throw e.code="4001",e}}doSend(e,t=[],i=this.manualChainId,n=!0){let s=(n,s)=>{let o="object"==typeof e?e.method:e,c="object"==typeof e?e.params:t,a="object"==typeof e&&e.chainId||i;if(!o)return s(Error("Method is not a valid string."));try{let e=(0,r.create)(o,c,this.nextId++,a);this.promises[e.id]={resolve:e=>n(e),reject:s,method:e.method},this.connection.send(e)}catch(e){s(e)}};return new Promise(this.connected||!n?s:(e,t)=>{let i=()=>(clearTimeout(n),e(new Promise(s))),n=setTimeout(()=>{this.off("connect",i),t(Error("Not connected"))},5e3);this.once("connect",i)})}async send(e,t){return"string"==typeof e&&(!t||Array.isArray(t))?this.doSend(e,t):e&&"object"==typeof e&&"function"==typeof t?this.sendAsync(e,t):this.request(e)}sendBatch(e){return Promise.all(e.map(e=>this.doSend(e.method,e.params)))}async subscribe(e,t,i=[]){let n=await this.doSend(e,[t,...i]);return this.subscriptions.push(n),n}async unsubscribe(e,t){let i=await this.doSend(e,[t]);if(i)return this.subscriptions=this.subscriptions.filter(e=>e!==t),this.removeAllListeners(t),i}async sendAsync(e,t){if(!t||"function"!=typeof t)return Error("Invalid or undefined callback provided to sendAsync");if(!e)return t(Error("Invalid Payload"));if(Array.isArray(e)){let i=e.map(e=>({...e,jsonrpc:"2.0"}));return this.sendAsyncBatch(i,t)}{let i={...e,jsonrpc:"2.0"};try{let e=await this.doSend(i.method,i.params);t(null,{id:i.id,jsonrpc:i.jsonrpc,result:e})}catch(e){t(e)}}}async sendAsyncBatch(e,t){try{let i=(await this.sendBatch(e)).map((t,i)=>({id:e[i].id,jsonrpc:e[i].jsonrpc,result:t}));t(null,i)}catch(e){t(e)}}isConnected(){return this.connected}close(){this.connection&&this.connection.close&&this.connection.close(),this.off("connect",this.resumeSubscriptions),this.connected=!1;let e=Error("Provider closed, subscription lost, please subscribe again.");this.subscriptions.forEach(t=>this.emit(t,e)),this.subscriptions=[],this.manualChainId=void 0,this.providerChainId=void 0,this.networkVersion=void 0,this.selectedAddress=void 0,this.coinbase=void 0}async request(e){return this.doSend(e.method,e.params,e.chainId)}setChain(e){"number"==typeof e&&(e="0x"+e.toString(16));let t=e!==this.chainId;
1this.manualChainId=e,t&&this.emit("chainChanged",this.chainId)}}t.default=o},90690:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.create=void 0,t.create=function(e,t=[],i,n){let s={id:i,method:e,params:t,jsonrpc:"2.0"};if(n&&(s.chainId=n),"eth_sendTransaction"===s.method){let e=function(e){if("eth_sendTransaction"!==e.method)return!1;let t=e.params[0]||{},i=t.chainId;return"chainId"in t&&parseInt(i)!==parseInt(e.chainId||i)}(s);if(e)throw Error(`Payload chainId (${e}) inconsistent with specified target chainId: ${n}`);return function(e){let t=e.params[0]||{};return{...e,params:[{...t,chainId:t.chainId||e.chainId},...e.params.slice(1)]}}(s)}return s}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.