diff --git a/ethdam-quiz/assets/404View.d3415bb8.js b/ethdam-quiz/assets/404View.d3415bb8.js new file mode 100644 index 0000000..1c1e70a --- /dev/null +++ b/ethdam-quiz/assets/404View.d3415bb8.js @@ -0,0 +1,2 @@ +import{_ as e,o as s,c,a as t}from"./index.23a0b8b4.js";const o={},n={class:"404"},_=t("h1",{class:"text-white text-center text-3xl mb-4"},"404",-1),a=t("h1",{class:"text-white text-center text-2xl"},"Page not found",-1),r=[_,a];function i(x,d){return s(),c("div",n,r)}const l=e(o,[["render",i]]);export{l as default}; +//# sourceMappingURL=404View.d3415bb8.js.map diff --git a/ethdam-quiz/assets/404View.d3415bb8.js.map b/ethdam-quiz/assets/404View.d3415bb8.js.map new file mode 100644 index 0000000..b26bf22 --- /dev/null +++ b/ethdam-quiz/assets/404View.d3415bb8.js.map @@ -0,0 +1 @@ +{"version":3,"file":"404View.d3415bb8.js","sources":["../../src/views/404View.vue"],"sourcesContent":["\n"],"names":["_hoisted_1","_hoisted_2","_createElementVNode","_hoisted_4","_sfc_render","_ctx","_cache"],"mappings":"mEAEIA,EAAA,CAAA,MAAA,KAAA,EACAC,EAAAC,EAA+D,KAA3D,CAAA,MAAM,wCAAgD,MAAA,EAAA,0EADDC,EAAA,CACzDF,KAFF,SAAAG,EAAAC,EAAAC,EAAA"} \ No newline at end of file diff --git a/ethdam-quiz/assets/QuizView.17b9b8db.css b/ethdam-quiz/assets/QuizView.17b9b8db.css new file mode 100644 index 0000000..aeae8b9 --- /dev/null +++ b/ethdam-quiz/assets/QuizView.17b9b8db.css @@ -0,0 +1 @@ +.success-info[data-v-23975bbd]{align-items:center;display:flex;flex-direction:column;margin-top:5vw}.error[data-v-d580f779]{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))} diff --git a/ethdam-quiz/assets/QuizView.6ac363f9.js b/ethdam-quiz/assets/QuizView.6ac363f9.js new file mode 100644 index 0000000..faa8df4 --- /dev/null +++ b/ethdam-quiz/assets/QuizView.6ac363f9.js @@ -0,0 +1,2 @@ +import{_ as A,o as s,c as n,a as t,d as p,b as e,r as j,e as k,m as H,f as B,w as m,u as J,g as W,h as X,i as h,j as ee,F as $,k as N,l as x,A as Z,n as te,v as se,p as re,t as S,q as v,s as ne,x as ae,y as ie,Z as le}from"./index.23a0b8b4.js";const oe={},ce={width:"97",height:"96",viewBox:"0 0 97 96",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ue=t("g",{"clip-path":"url(#clip0_35_4428)"},[t("path",{d:"M48.5 8C26.42 8 8.5 25.92 8.5 48C8.5 70.08 26.42 88 48.5 88C70.58 88 88.5 70.08 88.5 48C88.5 25.92 70.58 8 48.5 8ZM40.5 68L20.5 48L26.14 42.36L40.5 56.68L70.86 26.32L76.5 32L40.5 68Z",fill:"#6efffa"})],-1),de=t("defs",null,[t("clipPath",{id:"clip0_35_4428"},[t("rect",{width:"96",height:"96",fill:"white",transform:"translate(0.5)"})])],-1),he=[ue,de];function pe(i,r){return s(),n("svg",ce,he)}const _e=A(oe,[["render",pe]]),fe={class:"success-info"},ye=p({__name:"SuccessInfo",setup(i){return(r,l)=>(s(),n("div",fe,[e(_e,{class:"mb-4"}),j(r.$slots,"default",{},void 0,!0)]))}});const I=A(ye,[["__scopeId","data-v-23975bbd"]]),xe={},ve={width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},we=t("g",{"clip-path":"url(#clip0_56_971)"},[t("path",{d:"M12 7.1333C9.24 7.1333 7 9.3733 7 12.1333C7 14.8933 9.24 17.1333 12 17.1333C14.76 17.1333 17 14.8933 17 12.1333C17 9.3733 14.76 7.1333 12 7.1333ZM12 2.1333C6.48 2.1333 2 6.6133 2 12.1333C2 17.6533 6.48 22.1333 12 22.1333C17.52 22.1333 22 17.6533 22 12.1333C22 6.6133 17.52 2.1333 12 2.1333ZM12 20.1333C7.58 20.1333 4 16.5533 4 12.1333C4 7.7133 7.58 4.1333 12 4.1333C16.42 4.1333 20 7.7133 20 12.1333C20 16.5533 16.42 20.1333 12 20.1333Z",fill:"currentColor"})],-1),ge=t("defs",null,[t("clipPath",{id:"clip0_56_971"},[t("rect",{width:"24",height:"24",fill:"white",transform:"translate(0 0.133301)"})])],-1),me=[we,ge];function Ce(i,r){return s(),n("svg",ve,me)}const be=A(xe,[["render",Ce]]),ke={},$e={width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Se=t("g",{"clip-path":"url(#clip0_56_273)"},[t("path",{d:"M12 2.1333C6.48 2.1333 2 6.6133 2 12.1333C2 17.6533 6.48 22.1333 12 22.1333C17.52 22.1333 22 17.6533 22 12.1333C22 6.6133 17.52 2.1333 12 2.1333ZM12 20.1333C7.58 20.1333 4 16.5533 4 12.1333C4 7.7133 7.58 4.1333 12 4.1333C16.42 4.1333 20 7.7133 20 12.1333C20 16.5533 16.42 20.1333 12 20.1333Z",fill:"currentColor"})],-1),Be=t("defs",null,[t("clipPath",{id:"clip0_56_273"},[t("rect",{width:"24",height:"24",fill:"white",transform:"translate(0 0.133301)"})])],-1),Ae=[Se,Be];function Ve(i,r){return s(),n("svg",$e,Ae)}const Me=A(ke,[["render",Ve]]);var q=function(){return Math.random().toString(36).substring(2)},C=p({name:"ContentLoader",props:{width:{type:[Number,String]},height:{type:[Number,String]},viewBox:{type:String},preserveAspectRatio:{type:String,default:"xMidYMid meet"},speed:{type:Number,default:2},baseUrl:{type:String,default:""},primaryColor:{type:String,default:"#f9f9f9"},secondaryColor:{type:String,default:"#ecebeb"},primaryOpacity:{type:Number,default:1},secondaryOpacity:{type:Number,default:1},uniqueKey:{type:String},animate:{type:Boolean,default:!0}},setup:function(r){var l=k(function(){return r.uniqueKey?"".concat(r.uniqueKey,"-idClip"):q()}),_=k(function(){return r.uniqueKey?"".concat(r.uniqueKey,"-idGradient"):q()}),f=k(function(){var c;return(c=r.width)!==null&&c!==void 0?c:400}),g=k(function(){var c;return(c=r.height)!==null&&c!==void 0?c:130}),b=k(function(){var c;return(c=r.viewBox)!==null&&c!==void 0?c:"0 0 ".concat(f.value," ").concat(g.value)});return{idClip:l,idGradient:_,computedViewBox:b}},render:function(){return e("svg",{width:this.width,height:this.height,viewBox:this.computedViewBox,version:"1.1",preserveAspectRatio:this.preserveAspectRatio},[e("rect",{style:{fill:"url(".concat(this.baseUrl,"#").concat(this.idGradient,")")},"clip-path":"url(".concat(this.baseUrl,"#").concat(this.idClip,")"),x:"0",y:"0",width:"100%",height:"100%"},null),e("defs",null,[e("clipPath",{id:this.idClip},[this.$slots.default?this.$slots.default():e("rect",{x:"0",y:"0",rx:"5",ry:"5",width:"100%",height:"100%"},null)]),e("linearGradient",{id:this.idGradient},[e("stop",{offset:"0%","stop-color":this.primaryColor,"stop-opacity":this.primaryOpacity},[this.animate?e("animate",{attributeName:"offset",values:"-2; 1",dur:"".concat(this.speed,"s"),repeatCount:"indefinite"},null):null]),e("stop",{offset:"50%","stop-color":this.secondaryColor,"stop-opacity":this.secondaryOpacity},[this.animate?e("animate",{attributeName:"offset",values:"-1.5; 1.5",dur:"".concat(this.speed,"s"),repeatCount:"indefinite"},null):null]),e("stop",{offset:"100%","stop-color":this.primaryColor,"stop-opacity":this.primaryOpacity},[this.animate?e("animate",{attributeName:"offset",values:"-1; 2",dur:"".concat(this.speed,"s"),repeatCount:"indefinite"},null):null])])])])}});p(function(i,r){var l=r.attrs;return function(){return e(C,l,{default:function(){return[e("circle",{cx:"10",cy:"20",r:"8"},null),e("rect",{x:"25",y:"15",rx:"5",ry:"5",width:"220",height:"10"},null),e("circle",{cx:"10",cy:"50",r:"8"},null),e("rect",{x:"25",y:"45",rx:"5",ry:"5",width:"220",height:"10"},null),e("circle",{cx:"10",cy:"80",r:"8"},null),e("rect",{x:"25",y:"75",rx:"5",ry:"5",width:"220",height:"10"},null),e("circle",{cx:"10",cy:"110",r:"8"},null),e("rect",{x:"25",y:"105",rx:"5",ry:"5",width:"220",height:"10"},null)]}})}});p(function(i,r){var l=r.attrs;return function(){return e(C,l,{default:function(){return[e("rect",{x:"0",y:"0",rx:"3",ry:"3",width:"70",height:"10"},null),e("rect",{x:"80",y:"0",rx:"3",ry:"3",width:"100",height:"10"},null),e("rect",{x:"190",y:"0",rx:"3",ry:"3",width:"10",height:"10"},null),e("rect",{x:"15",y:"20",rx:"3",ry:"3",width:"130",height:"10"},null),e("rect",{x:"155",y:"20",rx:"3",ry:"3",width:"130",height:"10"},null),e("rect",{x:"15",y:"40",rx:"3",ry:"3",width:"90",height:"10"},null),e("rect",{x:"115",y:"40",rx:"3",ry:"3",width:"60",height:"10"},null),e("rect",{x:"185",y:"40",rx:"3",ry:"3",width:"60",height:"10"},null),e("rect",{x:"0",y:"60",rx:"3",ry:"3",width:"30",height:"10"},null)]}})}});p(function(i,r){var l=r.attrs;return function(){return e(C,l,{default:function(){return[e("rect",{x:"70",y:"15",rx:"4",ry:"4",width:"117",height:"6.4"},null),e("rect",{x:"70",y:"35",rx:"3",ry:"3",width:"85",height:"6.4"},null),e("rect",{x:"0",y:"80",rx:"3",ry:"3",width:"350",height:"6.4"},null),e("rect",{x:"0",y:"100",rx:"3",ry:"3",width:"380",height:"6.4"},null),e("rect",{x:"0",y:"120",rx:"3",ry:"3",width:"201",height:"6.4"},null),e("circle",{cx:"30",cy:"30",r:"30"},null)]}})}});p(function(i,r){var l=r.attrs;return function(){return e(C,l,{default:function(){return[e("rect",{x:"0",y:"0",rx:"3",ry:"3",width:"250",height:"10"},null),e("rect",{x:"20",y:"20",rx:"3",ry:"3",width:"220",height:"10"},null),e("rect",{x:"20",y:"40",rx:"3",ry:"3",width:"170",height:"10"},null),e("rect",{x:"0",y:"60",rx:"3",ry:"3",width:"250",height:"10"},null),e("rect",{x:"20",y:"80",rx:"3",ry:"3",width:"200",height:"10"},null),e("rect",{x:"20",y:"100",rx:"3",ry:"3",width:"80",height:"10"},null)]}})}});p(function(i,r){var l=r.attrs;return function(){return e(C,H(l,{viewBox:"0 0 400 480"}),{default:function(){return[e("circle",{cx:"30",cy:"30",r:"30"},null),e("rect",{x:"75",y:"13",rx:"4",ry:"4",width:"100",height:"13"},null),e("rect",{x:"75",y:"37",rx:"4",ry:"4",width:"50",height:"8"},null),e("rect",{x:"0",y:"70",rx:"5",ry:"5",width:"400",height:"400"},null)]}})}});const Le=t("rect",{x:"5",y:"10",rx:"3",ry:"3",width:"361",height:"28"},null,-1),Ne=t("rect",{x:"5",y:"26",rx:"3",ry:"3",width:"52",height:"6"},null,-1),Oe=t("rect",{x:"5",y:"61",rx:"3",ry:"3",width:"410",height:"16"},null,-1),ze=t("rect",{x:"680",y:"10",rx:"0",ry:"0",width:"80",height:"19"},null,-1),Qe=p({__name:"QuizDetailsLoader",setup(i){return(r,l)=>(s(),B(J(C),{viewBox:"0 0 768 124",speed:2,primaryColor:"white",secondaryColor:"#e3e3e3"},{default:m(()=>[Le,Ne,Oe,ze]),_:1}))}}),w=i=>(ae("data-v-d580f779"),i=i(),ie(),i),Te={key:0,class:"text-red-500 px-3 mt-5 rounded-xl-sm"},Ze=w(()=>t("span",{class:"font-bold"},"Error:",-1)),Ee={key:1},De={key:0},Ge={style:{cursor:"default"},class:"text-white text-base mb-5"},Re={key:0},Ie={key:0},qe={key:1},Ke={class:"flex gap-2"},Pe={class:"align-middle"},Ue={class:"leading-6 normal-case text-left"},Fe={key:0,class:"text-red-500 px-3 mt-5 rounded-xl-sm"},Ye=w(()=>t("span",{class:"font-bold"},"Error:",-1)),je={class:"flex justify-between items-start mt-6 mb-20"},He={key:0},Je={key:1},We={key:2,class:"pt-5"},Xe=w(()=>t("h2",{class:"text-2xl text-white text-base mb-5 mt-10"},"You Solved the Quiz!",-1)),et=w(()=>t("p",{class:"text-white text-base mb-5 mt-10"},[v(" To claim the reward, enter your account address below. You will receive ROSE on the "),t("a",{href:"https://docs.oasis.io/dapp/sapphire/#chain-information",target:"_blank"},"Oasis Sapphire Mainnet"),v(" chain. ")],-1)),tt={class:"form-group"},st=w(()=>t("label",{for:"addressText",class:"peer-focus:text-primaryDark peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-5"},[v(" Your address (0x...): "),t("span",{class:"text-red-500"},"*")],-1)),rt={key:0,class:"normal-case"},nt={key:1,class:"normal-case"},at={key:3},it=w(()=>t("h3",{class:"text-white text-3xl mb-10"},"Reward claimed!",-1)),lt=w(()=>t("p",{class:"text-white"},[v(" Check out our "),t("a",{href:"https://docs.oasis.io/dapp/sapphire/quickstart",target:"_blank"},"Oasis Sapphire quickstart"),v(" and start building! ")],-1)),ot=w(()=>t("p",{class:"text-white"},[v(" If you need help, contact us on the Oasis "),t("a",{href:"https://oasis.io/discord",target:"_blank"},"#dev-central Discord channel"),v(". ")],-1)),ct=p({__name:"QuizView",props:{coupon:null},setup(i){const r=i,l=W(),_=X(),f=h([]),g=h(!1),b=h(!1),c=h(!1),V=h([]),y=h([]),E=h(!1),O=h([]),M=h(""),D=h(!1),G=h(!1),z=h(!1),Q=h(!1);function T(o,u){f.value=Array(),f.value.push(`${u}`),console.error(o)}async function K(o,u){y.value[o]=BigInt(u);let a=!0;for(let d=0;d{await U()}),(o,u)=>(s(),n($,null,[f.value.length>0?(s(),n("div",Te,[Ze,(s(!0),n($,null,N(f.value,a=>(s(),n("div",{key:a},S(a),1))),128))])):x("",!0),D.value&&!z.value?(s(),n("section",Ee,[V.value?(s(),n("div",De,[t("form",{onSubmit:R},[(s(!0),n($,null,N(Object.entries(V.value),([a,d])=>(s(),n("fieldset",{class:"mb-5",key:a},[t("p",Ge,[v(S(parseInt(a)+1)+". "+S(d.question)+" ",1),G.value?(s(),n("span",Re,[O.value[a]?(s(),n("span",Ie,"\u2705")):x("",!0),O.value[a]?x("",!0):(s(),n("span",qe,"\u274C"))])):x("",!0)]),(s(!0),n($,null,N(d.choices,(Y,L)=>(s(),B(Z,{key:L,class:ne([{selected:y.value[a]===L,"pointer-events-none":g.value},"choice-btn mb-2 w-full"]),variant:"choice",onClick:ut=>K(a,L)},{default:m(()=>[t("span",Ke,[t("div",Pe,[y.value[a]===BigInt(L)?(s(),B(be,{key:0})):(s(),B(Me,{key:1}))]),t("span",Ue,S(Y),1)])]),_:2},1032,["class","onClick"]))),128))]))),128)),f.value.length>0?(s(),n("div",Fe,[Ye,(s(!0),n($,null,N(f.value,a=>(s(),n("div",{key:a},S(a),1))),128))])):x("",!0),t("div",je,[e(Z,{type:"submit",variant:"primary",disabled:g.value||!E.value,onClick:R},{default:m(()=>[b.value?(s(),n("span",He,"Checking answers\u2026")):(s(),n("span",Je,"Check my answers"))]),_:1},8,["disabled"])])],32)])):(s(),B(Qe,{key:1}))])):x("",!0),z.value&&!Q.value?(s(),n("section",We,[e(I,null,{default:m(()=>[Xe]),_:1}),et,t("form",{onSubmit:F},[t("div",tt,[te(t("input",{type:"text",id:"addressText",class:"peer",placeholder:" ","onUpdate:modelValue":u[0]||(u[0]=a=>M.value=a),pattern:"^(0x)?[0-9a-fA-F]{40}$",required:""},null,512),[[se,M.value]]),st]),e(Z,{class:"no-capitalize",type:"submit",variant:"primary",disabled:c.value},{default:m(()=>[c.value?(s(),n("span",rt,"Generating transaction and sending your reward\u2026")):(s(),n("span",nt,"Claim your reward"))]),_:1},8,["disabled"])],32)])):x("",!0),Q.value?(s(),n("section",at,[e(I,null,{default:m(()=>[it,lt,ot]),_:1})])):x("",!0)],64))}});const ht=A(ct,[["__scopeId","data-v-d580f779"]]);export{ht as default}; +//# sourceMappingURL=QuizView.6ac363f9.js.map diff --git a/ethdam-quiz/assets/QuizView.6ac363f9.js.map b/ethdam-quiz/assets/QuizView.6ac363f9.js.map new file mode 100644 index 0000000..e5195e5 --- /dev/null +++ b/ethdam-quiz/assets/QuizView.6ac363f9.js.map @@ -0,0 +1 @@ +{"version":3,"file":"QuizView.6ac363f9.js","sources":["../../src/components/SuccessIcon.vue","../../src/components/CheckedIcon.vue","../../src/components/UncheckedIcon.vue","../../../node_modules/.pnpm/vue-content-loader@2.0.1_vue@3.2.45/node_modules/vue-content-loader/dist/vue-content-loader.es.js","../../src/views/QuizView.vue"],"sourcesContent":["\n\n\n\n\n","\n\n\n\n\n","\n\n\n\n\n","import { defineComponent, computed, createVNode, mergeProps } from 'vue';\n\nvar uid = (function () {\n return Math.random().toString(36).substring(2);\n});\n\nvar ContentLoader = defineComponent({\n name: 'ContentLoader',\n props: {\n width: {\n type: [Number, String]\n },\n height: {\n type: [Number, String]\n },\n viewBox: {\n type: String\n },\n preserveAspectRatio: {\n type: String,\n \"default\": 'xMidYMid meet'\n },\n speed: {\n type: Number,\n \"default\": 2\n },\n baseUrl: {\n type: String,\n \"default\": ''\n },\n primaryColor: {\n type: String,\n \"default\": '#f9f9f9'\n },\n secondaryColor: {\n type: String,\n \"default\": '#ecebeb'\n },\n primaryOpacity: {\n type: Number,\n \"default\": 1\n },\n secondaryOpacity: {\n type: Number,\n \"default\": 1\n },\n uniqueKey: {\n type: String\n },\n animate: {\n type: Boolean,\n \"default\": true\n }\n },\n setup: function setup(props) {\n var idClip = computed(function () {\n return props.uniqueKey ? \"\".concat(props.uniqueKey, \"-idClip\") : uid();\n });\n var idGradient = computed(function () {\n return props.uniqueKey ? \"\".concat(props.uniqueKey, \"-idGradient\") : uid();\n });\n var width = computed(function () {\n var _a;\n\n return (_a = props.width) !== null && _a !== void 0 ? _a : 400;\n });\n var height = computed(function () {\n var _a;\n\n return (_a = props.height) !== null && _a !== void 0 ? _a : 130;\n });\n var computedViewBox = computed(function () {\n var _a;\n\n return (_a = props.viewBox) !== null && _a !== void 0 ? _a : \"0 0 \".concat(width.value, \" \").concat(height.value);\n });\n return {\n idClip: idClip,\n idGradient: idGradient,\n computedViewBox: computedViewBox\n };\n },\n render: function render() {\n return createVNode(\"svg\", {\n \"width\": this.width,\n \"height\": this.height,\n \"viewBox\": this.computedViewBox,\n \"version\": \"1.1\",\n \"preserveAspectRatio\": this.preserveAspectRatio\n }, [createVNode(\"rect\", {\n \"style\": {\n fill: \"url(\".concat(this.baseUrl, \"#\").concat(this.idGradient, \")\")\n },\n \"clip-path\": \"url(\".concat(this.baseUrl, \"#\").concat(this.idClip, \")\"),\n \"x\": \"0\",\n \"y\": \"0\",\n \"width\": \"100%\",\n \"height\": \"100%\"\n }, null), createVNode(\"defs\", null, [createVNode(\"clipPath\", {\n \"id\": this.idClip\n }, [this.$slots[\"default\"] ? this.$slots[\"default\"]() : createVNode(\"rect\", {\n \"x\": \"0\",\n \"y\": \"0\",\n \"rx\": \"5\",\n \"ry\": \"5\",\n \"width\": \"100%\",\n \"height\": \"100%\"\n }, null)]), createVNode(\"linearGradient\", {\n \"id\": this.idGradient\n }, [createVNode(\"stop\", {\n \"offset\": \"0%\",\n \"stop-color\": this.primaryColor,\n \"stop-opacity\": this.primaryOpacity\n }, [this.animate ? createVNode(\"animate\", {\n \"attributeName\": \"offset\",\n \"values\": \"-2; 1\",\n \"dur\": \"\".concat(this.speed, \"s\"),\n \"repeatCount\": \"indefinite\"\n }, null) : null]), createVNode(\"stop\", {\n \"offset\": \"50%\",\n \"stop-color\": this.secondaryColor,\n \"stop-opacity\": this.secondaryOpacity\n }, [this.animate ? createVNode(\"animate\", {\n \"attributeName\": \"offset\",\n \"values\": \"-1.5; 1.5\",\n \"dur\": \"\".concat(this.speed, \"s\"),\n \"repeatCount\": \"indefinite\"\n }, null) : null]), createVNode(\"stop\", {\n \"offset\": \"100%\",\n \"stop-color\": this.primaryColor,\n \"stop-opacity\": this.primaryOpacity\n }, [this.animate ? createVNode(\"animate\", {\n \"attributeName\": \"offset\",\n \"values\": \"-1; 2\",\n \"dur\": \"\".concat(this.speed, \"s\"),\n \"repeatCount\": \"indefinite\"\n }, null) : null])])])]);\n }\n});\n\nvar BulletListLoader = defineComponent(function (props, _a) {\n var attrs = _a.attrs;\n return function () {\n return createVNode(ContentLoader, attrs, {\n \"default\": function _default() {\n return [createVNode(\"circle\", {\n \"cx\": \"10\",\n \"cy\": \"20\",\n \"r\": \"8\"\n }, null), createVNode(\"rect\", {\n \"x\": \"25\",\n \"y\": \"15\",\n \"rx\": \"5\",\n \"ry\": \"5\",\n \"width\": \"220\",\n \"height\": \"10\"\n }, null), createVNode(\"circle\", {\n \"cx\": \"10\",\n \"cy\": \"50\",\n \"r\": \"8\"\n }, null), createVNode(\"rect\", {\n \"x\": \"25\",\n \"y\": \"45\",\n \"rx\": \"5\",\n \"ry\": \"5\",\n \"width\": \"220\",\n \"height\": \"10\"\n }, null), createVNode(\"circle\", {\n \"cx\": \"10\",\n \"cy\": \"80\",\n \"r\": \"8\"\n }, null), createVNode(\"rect\", {\n \"x\": \"25\",\n \"y\": \"75\",\n \"rx\": \"5\",\n \"ry\": \"5\",\n \"width\": \"220\",\n \"height\": \"10\"\n }, null), createVNode(\"circle\", {\n \"cx\": \"10\",\n \"cy\": \"110\",\n \"r\": \"8\"\n }, null), createVNode(\"rect\", {\n \"x\": \"25\",\n \"y\": \"105\",\n \"rx\": \"5\",\n \"ry\": \"5\",\n \"width\": \"220\",\n \"height\": \"10\"\n }, null)];\n }\n });\n };\n});\n\nvar CodeLoader = defineComponent(function (props, _a) {\n var attrs = _a.attrs;\n return function () {\n return createVNode(ContentLoader, attrs, {\n \"default\": function _default() {\n return [createVNode(\"rect\", {\n \"x\": \"0\",\n \"y\": \"0\",\n \"rx\": \"3\",\n \"ry\": \"3\",\n \"width\": \"70\",\n \"height\": \"10\"\n }, null), createVNode(\"rect\", {\n \"x\": \"80\",\n \"y\": \"0\",\n \"rx\": \"3\",\n \"ry\": \"3\",\n \"width\": \"100\",\n \"height\": \"10\"\n }, null), createVNode(\"rect\", {\n \"x\": \"190\",\n \"y\": \"0\",\n \"rx\": \"3\",\n \"ry\": \"3\",\n \"width\": \"10\",\n \"height\": \"10\"\n }, null), createVNode(\"rect\", {\n \"x\": \"15\",\n \"y\": \"20\",\n \"rx\": \"3\",\n \"ry\": \"3\",\n \"width\": \"130\",\n \"height\": \"10\"\n }, null), createVNode(\"rect\", {\n \"x\": \"155\",\n \"y\": \"20\",\n \"rx\": \"3\",\n \"ry\": \"3\",\n \"width\": \"130\",\n \"height\": \"10\"\n }, null), createVNode(\"rect\", {\n \"x\": \"15\",\n \"y\": \"40\",\n \"rx\": \"3\",\n \"ry\": \"3\",\n \"width\": \"90\",\n \"height\": \"10\"\n }, null), createVNode(\"rect\", {\n \"x\": \"115\",\n \"y\": \"40\",\n \"rx\": \"3\",\n \"ry\": \"3\",\n \"width\": \"60\",\n \"height\": \"10\"\n }, null), createVNode(\"rect\", {\n \"x\": \"185\",\n \"y\": \"40\",\n \"rx\": \"3\",\n \"ry\": \"3\",\n \"width\": \"60\",\n \"height\": \"10\"\n }, null), createVNode(\"rect\", {\n \"x\": \"0\",\n \"y\": \"60\",\n \"rx\": \"3\",\n \"ry\": \"3\",\n \"width\": \"30\",\n \"height\": \"10\"\n }, null)];\n }\n });\n };\n});\n\nvar FacebookLoader = defineComponent(function (props, _a) {\n var attrs = _a.attrs;\n return function () {\n return createVNode(ContentLoader, attrs, {\n \"default\": function _default() {\n return [createVNode(\"rect\", {\n \"x\": \"70\",\n \"y\": \"15\",\n \"rx\": \"4\",\n \"ry\": \"4\",\n \"width\": \"117\",\n \"height\": \"6.4\"\n }, null), createVNode(\"rect\", {\n \"x\": \"70\",\n \"y\": \"35\",\n \"rx\": \"3\",\n \"ry\": \"3\",\n \"width\": \"85\",\n \"height\": \"6.4\"\n }, null), createVNode(\"rect\", {\n \"x\": \"0\",\n \"y\": \"80\",\n \"rx\": \"3\",\n \"ry\": \"3\",\n \"width\": \"350\",\n \"height\": \"6.4\"\n }, null), createVNode(\"rect\", {\n \"x\": \"0\",\n \"y\": \"100\",\n \"rx\": \"3\",\n \"ry\": \"3\",\n \"width\": \"380\",\n \"height\": \"6.4\"\n }, null), createVNode(\"rect\", {\n \"x\": \"0\",\n \"y\": \"120\",\n \"rx\": \"3\",\n \"ry\": \"3\",\n \"width\": \"201\",\n \"height\": \"6.4\"\n }, null), createVNode(\"circle\", {\n \"cx\": \"30\",\n \"cy\": \"30\",\n \"r\": \"30\"\n }, null)];\n }\n });\n };\n});\n\nvar ListLoader = defineComponent(function (props, _a) {\n var attrs = _a.attrs;\n return function () {\n return createVNode(ContentLoader, attrs, {\n \"default\": function _default() {\n return [createVNode(\"rect\", {\n \"x\": \"0\",\n \"y\": \"0\",\n \"rx\": \"3\",\n \"ry\": \"3\",\n \"width\": \"250\",\n \"height\": \"10\"\n }, null), createVNode(\"rect\", {\n \"x\": \"20\",\n \"y\": \"20\",\n \"rx\": \"3\",\n \"ry\": \"3\",\n \"width\": \"220\",\n \"height\": \"10\"\n }, null), createVNode(\"rect\", {\n \"x\": \"20\",\n \"y\": \"40\",\n \"rx\": \"3\",\n \"ry\": \"3\",\n \"width\": \"170\",\n \"height\": \"10\"\n }, null), createVNode(\"rect\", {\n \"x\": \"0\",\n \"y\": \"60\",\n \"rx\": \"3\",\n \"ry\": \"3\",\n \"width\": \"250\",\n \"height\": \"10\"\n }, null), createVNode(\"rect\", {\n \"x\": \"20\",\n \"y\": \"80\",\n \"rx\": \"3\",\n \"ry\": \"3\",\n \"width\": \"200\",\n \"height\": \"10\"\n }, null), createVNode(\"rect\", {\n \"x\": \"20\",\n \"y\": \"100\",\n \"rx\": \"3\",\n \"ry\": \"3\",\n \"width\": \"80\",\n \"height\": \"10\"\n }, null)];\n }\n });\n };\n});\n\nvar InstagramLoader = defineComponent(function (props, _a) {\n var attrs = _a.attrs;\n return function () {\n return createVNode(ContentLoader, mergeProps(attrs, {\n \"viewBox\": \"0 0 400 480\"\n }), {\n \"default\": function _default() {\n return [createVNode(\"circle\", {\n \"cx\": \"30\",\n \"cy\": \"30\",\n \"r\": \"30\"\n }, null), createVNode(\"rect\", {\n \"x\": \"75\",\n \"y\": \"13\",\n \"rx\": \"4\",\n \"ry\": \"4\",\n \"width\": \"100\",\n \"height\": \"13\"\n }, null), createVNode(\"rect\", {\n \"x\": \"75\",\n \"y\": \"37\",\n \"rx\": \"4\",\n \"ry\": \"4\",\n \"width\": \"50\",\n \"height\": \"8\"\n }, null), createVNode(\"rect\", {\n \"x\": \"0\",\n \"y\": \"70\",\n \"rx\": \"5\",\n \"ry\": \"5\",\n \"width\": \"400\",\n \"height\": \"400\"\n }, null)];\n }\n });\n };\n});\n\nexport { BulletListLoader, CodeLoader, ContentLoader, FacebookLoader, InstagramLoader, ListLoader };\n","\n\n\n\n\n"],"names":["_hoisted_1","_createElementVNode","_hoisted_4","_hoisted_2","_sfc_render","_ctx","_cache","uid","ContentLoader","defineComponent","props","idClip","computed","idGradient","width","_a","height","computedViewBox","createVNode","attrs","mergeProps","quiz","useQuiz","eth","useEthereumStore","errors","ref","isLoading","isCheckingAnswers","isClaimingReward","questions","selectedChoices","allQuestionsAnswered","correctVector","address","couponValid","answersChecked","answersCorrect","rewardClaimed","handleError","error","errorMessage","onChoiceClick","qId","choiceId","allAns","i","doCheckAnswers","cv","gaslessTx","ethers.ZeroAddress","allCorrect","fetchQuestions","e","claimReward","ethers.getAddress","receipt","checkAnswers","onMounted"],"mappings":"gQACOA,GAAU,CAAC,WAAY,YAAoB,QAAW,YAAC,mDAKtDC,EAAA,IAAA,CAAA,YAAA,qBAAA,EAAA,CAF0LA,EAAA,OAAA,CAC1L,EAAA,kNAMSA,EAFC,OAAgB,KAAA,GAC6C,WAAA,CAAA,GAAA,eAAA,EAAA,CAAvDA,EAAA,OAAA,CAAC,WAAY,OAAY,KAAC,KAAA,4CAH1CC,GAAA,CACJC,OAPF,SAAAC,GAAAC,EAAAC,EAAA,0QCAKN,GAAU,CAAC,WAAY,YAAoB,QAAW,YAAC,mDAKtDC,EAAA,IAAA,CAAA,YAAA,oBAAA,EAAA,CAFwbA,EAAA,OAAA,CACxb,EAAA,qdAMSA,EAFC,OAAe,KAAA,GACqD,WAAA,CAAA,GAAA,cAAA,EAAA,CAA9DA,EAAA,OAAA,CAAC,WAAY,OAAY,KAAC,KAAA,mDAH1CC,GAAA,CACJC,OAPF,SAAAC,GAAAC,EAAAC,EAAA,gECAKN,GAAU,CAAC,WAAY,YAAoB,QAAW,YAAC,mDAE2QC,E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,IAG/B,CAAAA,EAAE,eAAe,EAEb,GAAA,CACFxB,EAAiB,MAAQ,GACjB,QAAA,IAAIK,EAAQ,KAAK,EACzB,KAAM,CAACc,EAAIC,CAAS,EAAI,MAAM5B,EAAK,MAAO,aACtCX,EAAM,OACNqB,EAAgB,MAChBwB,GAAkBrB,EAAQ,KAAK,CAAA,EAEnC,QAAQ,IAAIc,CAAE,EACd,QAAQ,IAAIC,CAAS,EACjB,IAAAO,EAAU,MAAO,MAAMjC,EAAI,SAAS,qBAAqB0B,CAAS,GAAG,OAEjE,QAAA,IAAI,mBAAmBO,EAAS,MAAM,EAC1CA,EAAS,QAAQ,IACnBlB,EAAc,MAAQ,UAEjBe,GACPd,EAAYc,EAAG,iCAAiC,CAAA,QAChD,CACAxB,EAAiB,MAAQ,EAC3B,EACF,CAEA,eAAe4B,EAAaJ,EAAyB,CACnDA,EAAE,eAAe,EACb,GAAA,CACFzB,EAAkB,MAAQ,GAC1B,MAAMmB,EAAe,QACdM,GACKA,EAAAA,EAAE,OAAQA,EAAE,OAAO,CAAA,QAC/B,CACAzB,EAAkB,MAAQ,EAC5B,CACF,CAEA,OAAA8B,GAAU,SAAY,CACpB,MAAMN,EAAe,CAAA,CACtB"} \ No newline at end of file diff --git a/ethdam-quiz/assets/favicon.1c89983e.ico b/ethdam-quiz/assets/favicon.1c89983e.ico new file mode 100644 index 0000000..ab89504 Binary files /dev/null and b/ethdam-quiz/assets/favicon.1c89983e.ico differ diff --git a/ethdam-quiz/assets/index.23a0b8b4.js b/ethdam-quiz/assets/index.23a0b8b4.js new file mode 100644 index 0000000..73db622 --- /dev/null +++ b/ethdam-quiz/assets/index.23a0b8b4.js @@ -0,0 +1,10 @@ +var pp=Object.defineProperty;var gp=(e,t,n)=>t in e?pp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var v=(e,t,n)=>(gp(e,typeof t!="symbol"?t+"":t,n),n),Hc=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var h=(e,t,n)=>(Hc(e,t,"read from private field"),n?n.call(e):t.get(e)),P=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},b=(e,t,n,r)=>(Hc(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Zi=(e,t,n,r)=>({set _(s){b(e,t,s,n)},get _(){return h(e,t,r)}}),z=(e,t,n)=>(Hc(e,t,"access private method"),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerpolicy&&(i.referrerPolicy=s.referrerpolicy),s.crossorigin==="use-credentials"?i.credentials="include":s.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();function nu(e,t){const n=Object.create(null),r=e.split(",");for(let s=0;s!!n[s.toLowerCase()]:s=>!!n[s]}function ru(e){if(ot(e)){const t={};for(let n=0;n{if(n){const r=n.split(mp);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function fc(e){let t="";if(Vt(e))t=e;else if(ot(e))for(let n=0;nVt(e)?e:e==null?"":ot(e)||Rt(e)&&(e.toString===dh||!lt(e.toString))?JSON.stringify(e,uh,2):String(e),uh=(e,t)=>t&&t.__v_isRef?uh(e,t.value):Hs(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s])=>(n[`${r} =>`]=s,n),{})}:fh(t)?{[`Set(${t.size})`]:[...t.values()]}:Rt(t)&&!ot(t)&&!ph(t)?String(t):t,It={},Ms=[],tn=()=>{},xp=()=>!1,vp=/^on[^a-z]/,hc=e=>vp.test(e),su=e=>e.startsWith("onUpdate:"),de=Object.assign,iu=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Pp=Object.prototype.hasOwnProperty,pt=(e,t)=>Pp.call(e,t),ot=Array.isArray,Hs=e=>dc(e)==="[object Map]",fh=e=>dc(e)==="[object Set]",lt=e=>typeof e=="function",Vt=e=>typeof e=="string",ou=e=>typeof e=="symbol",Rt=e=>e!==null&&typeof e=="object",hh=e=>Rt(e)&<(e.then)&<(e.catch),dh=Object.prototype.toString,dc=e=>dh.call(e),Cp=e=>dc(e).slice(8,-1),ph=e=>dc(e)==="[object Object]",au=e=>Vt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,va=nu(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),pc=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Np=/-(\w)/g,vn=pc(e=>e.replace(Np,(t,n)=>n?n.toUpperCase():"")),Ip=/\B([A-Z])/g,zi=pc(e=>e.replace(Ip,"-$1").toLowerCase()),gc=pc(e=>e.charAt(0).toUpperCase()+e.slice(1)),Gc=pc(e=>e?`on${gc(e)}`:""),Eo=(e,t)=>!Object.is(e,t),Pa=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Ha=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let ef;const Op=()=>ef||(ef=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Te;class gh{constructor(t=!1){this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=Te,!t&&Te&&(this.index=(Te.scopes||(Te.scopes=[])).push(this)-1)}run(t){if(this.active){const n=Te;try{return Te=this,t()}finally{Te=n}}}on(){Te=this}off(){Te=this.parent}stop(t){if(this.active){let n,r;for(n=0,r=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},mh=e=>(e.w&Ir)>0,yh=e=>(e.n&Ir)>0,kp=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{(u==="length"||u>=c)&&a.push(l)})}else switch(n!==void 0&&a.push(o.get(n)),t){case"add":ot(e)?au(n)&&a.push(o.get("length")):(a.push(o.get(ls)),Hs(e)&&a.push(o.get(dl)));break;case"delete":ot(e)||(a.push(o.get(ls)),Hs(e)&&a.push(o.get(dl)));break;case"set":Hs(e)&&a.push(o.get(ls));break}if(a.length===1)a[0]&&pl(a[0]);else{const c=[];for(const l of a)l&&c.push(...l);pl(cu(c))}}function pl(e,t){const n=ot(e)?e:[...e];for(const r of n)r.computed&&rf(r);for(const r of n)r.computed||rf(r)}function rf(e,t){(e!==qe||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Up=nu("__proto__,__v_isRef,__isVue"),Eh=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ou)),_p=uu(),Fp=uu(!1,!0),Dp=uu(!0),sf=Lp();function Lp(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=mt(this);for(let i=0,o=this.length;i{e[t]=function(...n){Ki();const r=mt(this)[t].apply(this,n);return Ji(),r}}),e}function uu(e=!1,t=!1){return function(r,s,i){if(s==="__v_isReactive")return!e;if(s==="__v_isReadonly")return e;if(s==="__v_isShallow")return t;if(s==="__v_raw"&&i===(e?t?t6:Nh:t?Ch:Ph).get(r))return r;const o=ot(r);if(!e&&o&&pt(sf,s))return Reflect.get(sf,s,i);const a=Reflect.get(r,s,i);return(ou(s)?Eh.has(s):Up(s))||(e||Se(r,"get",s),t)?a:Lt(a)?o&&au(s)?a:a.value:Rt(a)?e?Ih(a):ji(a):a}}const Mp=xh(),Hp=xh(!0);function xh(e=!1){return function(n,r,s,i){let o=n[r];if(Ti(o)&&Lt(o)&&!Lt(s))return!1;if(!e&&(!Ga(s)&&!Ti(s)&&(o=mt(o),s=mt(s)),!ot(n)&&Lt(o)&&!Lt(s)))return o.value=s,!0;const a=ot(n)&&au(r)?Number(r)e,bc=e=>Reflect.getPrototypeOf(e);function la(e,t,n=!1,r=!1){e=e.__v_raw;const s=mt(e),i=mt(t);n||(t!==i&&Se(s,"get",t),Se(s,"get",i));const{has:o}=bc(s),a=r?fu:n?pu:xo;if(o.call(s,t))return a(e.get(t));if(o.call(s,i))return a(e.get(i));e!==s&&e.get(t)}function ua(e,t=!1){const n=this.__v_raw,r=mt(n),s=mt(e);return t||(e!==s&&Se(r,"has",e),Se(r,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function fa(e,t=!1){return e=e.__v_raw,!t&&Se(mt(e),"iterate",ls),Reflect.get(e,"size",e)}function of(e){e=mt(e);const t=mt(this);return bc(t).has.call(t,e)||(t.add(e),jn(t,"add",e,e)),this}function af(e,t){t=mt(t);const n=mt(this),{has:r,get:s}=bc(n);let i=r.call(n,e);i||(e=mt(e),i=r.call(n,e));const o=s.call(n,e);return n.set(e,t),i?Eo(t,o)&&jn(n,"set",e,t):jn(n,"add",e,t),this}function cf(e){const t=mt(this),{has:n,get:r}=bc(t);let s=n.call(t,e);s||(e=mt(e),s=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return s&&jn(t,"delete",e,void 0),i}function lf(){const e=mt(this),t=e.size!==0,n=e.clear();return t&&jn(e,"clear",void 0,void 0),n}function ha(e,t){return function(r,s){const i=this,o=i.__v_raw,a=mt(o),c=t?fu:e?pu:xo;return!e&&Se(a,"iterate",ls),o.forEach((l,u)=>r.call(s,c(l),c(u),i))}}function da(e,t,n){return function(...r){const s=this.__v_raw,i=mt(s),o=Hs(i),a=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,l=s[e](...r),u=n?fu:t?pu:xo;return!t&&Se(i,"iterate",c?dl:ls),{next(){const{value:f,done:d}=l.next();return d?{value:f,done:d}:{value:a?[u(f[0]),u(f[1])]:u(f),done:d}},[Symbol.iterator](){return this}}}}function Xn(e){return function(...t){return e==="delete"?!1:this}}function Jp(){const e={get(i){return la(this,i)},get size(){return fa(this)},has:ua,add:of,set:af,delete:cf,clear:lf,forEach:ha(!1,!1)},t={get(i){return la(this,i,!1,!0)},get size(){return fa(this)},has:ua,add:of,set:af,delete:cf,clear:lf,forEach:ha(!1,!0)},n={get(i){return la(this,i,!0)},get size(){return fa(this,!0)},has(i){return ua.call(this,i,!0)},add:Xn("add"),set:Xn("set"),delete:Xn("delete"),clear:Xn("clear"),forEach:ha(!0,!1)},r={get(i){return la(this,i,!0,!0)},get size(){return fa(this,!0)},has(i){return ua.call(this,i,!0)},add:Xn("add"),set:Xn("set"),delete:Xn("delete"),clear:Xn("clear"),forEach:ha(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=da(i,!1,!1),n[i]=da(i,!0,!1),t[i]=da(i,!1,!0),r[i]=da(i,!0,!0)}),[e,n,t,r]}const[jp,Wp,Zp,Yp]=Jp();function hu(e,t){const n=t?e?Yp:Zp:e?Wp:jp;return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(pt(n,s)&&s in r?n:r,s,i)}const qp={get:hu(!1,!1)},Xp={get:hu(!1,!0)},$p={get:hu(!0,!1)},Ph=new WeakMap,Ch=new WeakMap,Nh=new WeakMap,t6=new WeakMap;function e6(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function n6(e){return e.__v_skip||!Object.isExtensible(e)?0:e6(Cp(e))}function ji(e){return Ti(e)?e:du(e,!1,vh,qp,Ph)}function r6(e){return du(e,!1,Kp,Xp,Ch)}function Ih(e){return du(e,!0,zp,$p,Nh)}function du(e,t,n,r,s){if(!Rt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=s.get(e);if(i)return i;const o=n6(e);if(o===0)return e;const a=new Proxy(e,o===2?r:n);return s.set(e,a),a}function Pr(e){return Ti(e)?Pr(e.__v_raw):!!(e&&e.__v_isReactive)}function Ti(e){return!!(e&&e.__v_isReadonly)}function Ga(e){return!!(e&&e.__v_isShallow)}function Oh(e){return Pr(e)||Ti(e)}function mt(e){const t=e&&e.__v_raw;return t?mt(t):e}function Bi(e){return Ma(e,"__v_skip",!0),e}const xo=e=>Rt(e)?ji(e):e,pu=e=>Rt(e)?Ih(e):e;function Rh(e){vr&&qe&&(e=mt(e),Ah(e.dep||(e.dep=cu())))}function Th(e,t){e=mt(e),e.dep&&pl(e.dep)}function Lt(e){return!!(e&&e.__v_isRef===!0)}function Vn(e){return kh(e,!1)}function Bh(e){return kh(e,!0)}function kh(e,t){return Lt(e)?e:new s6(e,t)}class s6{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:mt(t),this._value=n?t:xo(t)}get value(){return Rh(this),this._value}set value(t){const n=this.__v_isShallow||Ga(t)||Ti(t);t=n?t:mt(t),Eo(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:xo(t),Th(this))}}function us(e){return Lt(e)?e.value:e}const i6={get:(e,t,n)=>us(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return Lt(s)&&!Lt(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Sh(e){return Pr(e)?e:new Proxy(e,i6)}function o6(e){const t=ot(e)?new Array(e.length):{};for(const n in e)t[n]=c6(e,n);return t}class a6{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}}function c6(e,t,n){const r=e[t];return Lt(r)?r:new a6(e,t,n)}var Uh;class l6{constructor(t,n,r,s){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[Uh]=!1,this._dirty=!0,this.effect=new lu(t,()=>{this._dirty||(this._dirty=!0,Th(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const t=mt(this);return Rh(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}Uh="__v_isReadonly";function u6(e,t,n=!1){let r,s;const i=lt(e);return i?(r=e,s=tn):(r=e.get,s=e.set),new l6(r,s,i||!s,n)}function Cr(e,t,n,r){let s;try{s=r?e(...r):e()}catch(i){mc(i,t,n)}return s}function en(e,t,n,r){if(lt(e)){const i=Cr(e,t,n,r);return i&&hh(i)&&i.catch(o=>{mc(o,t,n)}),i}const s=[];for(let i=0;i>>1;Po(ee[r])yn&&ee.splice(t,1)}function p6(e){ot(e)?Gs.push(...e):(!Cn||!Cn.includes(e,e.allowRecurse?Ur+1:Ur))&&Gs.push(e),Fh()}function uf(e,t=vo?yn+1:0){for(;tPo(n)-Po(r)),Ur=0;Ure.id==null?1/0:e.id,g6=(e,t)=>{const n=Po(e)-Po(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Lh(e){gl=!1,vo=!0,ee.sort(g6);const t=tn;try{for(yn=0;ynVt(g)?g.trim():g)),f&&(s=n.map(Ha))}let a,c=r[a=Gc(t)]||r[a=Gc(vn(t))];!c&&i&&(c=r[a=Gc(zi(t))]),c&&en(c,e,6,s);const l=r[a+"Once"];if(l){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,en(l,e,6,s)}}function Mh(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let o={},a=!1;if(!lt(e)){const c=l=>{const u=Mh(l,t,!0);u&&(a=!0,de(o,u))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!a?(Rt(e)&&r.set(e,null),null):(ot(i)?i.forEach(c=>o[c]=null):de(o,i),Rt(e)&&r.set(e,o),o)}function yc(e,t){return!e||!hc(t)?!1:(t=t.slice(2).replace(/Once$/,""),pt(e,t[0].toLowerCase()+t.slice(1))||pt(e,zi(t))||pt(e,t))}let Zt=null,wc=null;function Qa(e){const t=Zt;return Zt=e,wc=e&&e.type.__scopeId||null,t}function Kw(e){wc=e}function Jw(){wc=null}function Va(e,t=Zt,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&wf(-1);const i=Qa(t);let o;try{o=e(...s)}finally{Qa(i),r._d&&wf(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Qc(e){const{type:t,vnode:n,proxy:r,withProxy:s,props:i,propsOptions:[o],slots:a,attrs:c,emit:l,render:u,renderCache:f,data:d,setupState:g,ctx:w,inheritAttrs:y}=e;let x,A;const O=Qa(e);try{if(n.shapeFlag&4){const J=s||r;x=mn(u.call(J,J,f,i,g,d,w)),A=c}else{const J=t;x=mn(J.length>1?J(i,{attrs:c,slots:a,emit:l}):J(i,null)),A=t.props?c:m6(c)}}catch(J){uo.length=0,mc(J,e,1),x=Mt(Or)}let R=x;if(A&&y!==!1){const J=Object.keys(A),{shapeFlag:Q}=R;J.length&&Q&7&&(o&&J.some(su)&&(A=y6(A,o)),R=ki(R,A))}return n.dirs&&(R=ki(R),R.dirs=R.dirs?R.dirs.concat(n.dirs):n.dirs),n.transition&&(R.transition=n.transition),x=R,Qa(O),x}const m6=e=>{let t;for(const n in e)(n==="class"||n==="style"||hc(n))&&((t||(t={}))[n]=e[n]);return t},y6=(e,t)=>{const n={};for(const r in e)(!su(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function w6(e,t,n){const{props:r,children:s,component:i}=e,{props:o,children:a,patchFlag:c}=t,l=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?ff(r,o,l):!!o;if(c&8){const u=t.dynamicProps;for(let f=0;fe.__isSuspense;function x6(e,t){t&&t.pendingBranch?ot(e)?t.effects.push(...e):t.effects.push(e):p6(e)}function Ca(e,t){if(Kt){let n=Kt.provides;const r=Kt.parent&&Kt.parent.provides;r===n&&(n=Kt.provides=Object.create(r)),n[e]=t}}function xn(e,t,n=!1){const r=Kt||Zt;if(r){const s=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(s&&e in s)return s[e];if(arguments.length>1)return n&<(t)?t.call(r.proxy):t}}const pa={};function ao(e,t,n){return Hh(e,t,n)}function Hh(e,t,{immediate:n,deep:r,flush:s,onTrack:i,onTrigger:o}=It){const a=Kt;let c,l=!1,u=!1;if(Lt(e)?(c=()=>e.value,l=Ga(e)):Pr(e)?(c=()=>e,r=!0):ot(e)?(u=!0,l=e.some(R=>Pr(R)||Ga(R)),c=()=>e.map(R=>{if(Lt(R))return R.value;if(Pr(R))return Lr(R);if(lt(R))return Cr(R,a,2)})):lt(e)?t?c=()=>Cr(e,a,2):c=()=>{if(!(a&&a.isUnmounted))return f&&f(),en(e,a,3,[d])}:c=tn,t&&r){const R=c;c=()=>Lr(R())}let f,d=R=>{f=A.onStop=()=>{Cr(R,a,4)}},g;if(No)if(d=tn,t?n&&en(t,a,3,[c(),u?[]:void 0,d]):c(),s==="sync"){const R=yg();g=R.__watcherHandles||(R.__watcherHandles=[])}else return tn;let w=u?new Array(e.length).fill(pa):pa;const y=()=>{if(!!A.active)if(t){const R=A.run();(r||l||(u?R.some((J,Q)=>Eo(J,w[Q])):Eo(R,w)))&&(f&&f(),en(t,a,3,[R,w===pa?void 0:u&&w[0]===pa?[]:w,d]),w=R)}else A.run()};y.allowRecurse=!!t;let x;s==="sync"?x=y:s==="post"?x=()=>pe(y,a&&a.suspense):(y.pre=!0,a&&(y.id=a.uid),x=()=>mu(y));const A=new lu(c,x);t?n?y():w=A.run():s==="post"?pe(A.run.bind(A),a&&a.suspense):A.run();const O=()=>{A.stop(),a&&a.scope&&iu(a.scope.effects,A)};return g&&g.push(O),O}function v6(e,t,n){const r=this.proxy,s=Vt(e)?e.includes(".")?Gh(r,e):()=>r[e]:e.bind(r,r);let i;lt(t)?i=t:(i=t.handler,n=t);const o=Kt;Si(this);const a=Hh(s,i.bind(r),n);return o?Si(o):fs(),a}function Gh(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s{Lr(n,t)});else if(ph(e))for(const n in e)Lr(e[n],t);return e}function ra(e){return lt(e)?{setup:e,name:e.name}:e}const co=e=>!!e.type.__asyncLoader,Qh=e=>e.type.__isKeepAlive;function P6(e,t){Vh(e,"a",t)}function C6(e,t){Vh(e,"da",t)}function Vh(e,t,n=Kt){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Ac(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Qh(s.parent.vnode)&&N6(r,t,n,s),s=s.parent}}function N6(e,t,n,r){const s=Ac(t,e,r,!0);Kh(()=>{iu(r[t],s)},n)}function Ac(e,t,n=Kt,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;Ki(),Si(n);const a=en(t,n,e,o);return fs(),Ji(),a});return r?s.unshift(i):s.push(i),i}}const Yn=e=>(t,n=Kt)=>(!No||e==="sp")&&Ac(e,(...r)=>t(...r),n),I6=Yn("bm"),zh=Yn("m"),O6=Yn("bu"),R6=Yn("u"),T6=Yn("bum"),Kh=Yn("um"),B6=Yn("sp"),k6=Yn("rtg"),S6=Yn("rtc");function U6(e,t=Kt){Ac("ec",e,t)}function _6(e,t){const n=Zt;if(n===null)return e;const r=vc(n)||n.proxy,s=e.dirs||(e.dirs=[]);for(let i=0;it(o,a,void 0,i&&i[a]));else{const o=Object.keys(e);s=new Array(o.length);for(let a=0,c=o.length;aKa(t)?!(t.type===Or||t.type===Qe&&!Wh(t.children)):!0)?e:null}const bl=e=>e?o1(e)?vc(e)||e.proxy:bl(e.parent):null,lo=de(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>bl(e.parent),$root:e=>bl(e.root),$emit:e=>e.emit,$options:e=>yu(e),$forceUpdate:e=>e.f||(e.f=()=>mu(e.update)),$nextTick:e=>e.n||(e.n=bu.bind(e.proxy)),$watch:e=>v6.bind(e)}),Vc=(e,t)=>e!==It&&!e.__isScriptSetup&&pt(e,t),M6={get({_:e},t){const{ctx:n,setupState:r,data:s,props:i,accessCache:o,type:a,appContext:c}=e;let l;if(t[0]!=="$"){const g=o[t];if(g!==void 0)switch(g){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(Vc(r,t))return o[t]=1,r[t];if(s!==It&&pt(s,t))return o[t]=2,s[t];if((l=e.propsOptions[0])&&pt(l,t))return o[t]=3,i[t];if(n!==It&&pt(n,t))return o[t]=4,n[t];ml&&(o[t]=0)}}const u=lo[t];let f,d;if(u)return t==="$attrs"&&Se(e,"get",t),u(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==It&&pt(n,t))return o[t]=4,n[t];if(d=c.config.globalProperties,pt(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return Vc(s,t)?(s[t]=n,!0):r!==It&&pt(r,t)?(r[t]=n,!0):pt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:i}},o){let a;return!!n[o]||e!==It&&pt(e,o)||Vc(t,o)||(a=i[0])&&pt(a,o)||pt(r,o)||pt(lo,o)||pt(s.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:pt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let ml=!0;function H6(e){const t=yu(e),n=e.proxy,r=e.ctx;ml=!1,t.beforeCreate&&df(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:o,watch:a,provide:c,inject:l,created:u,beforeMount:f,mounted:d,beforeUpdate:g,updated:w,activated:y,deactivated:x,beforeDestroy:A,beforeUnmount:O,destroyed:R,unmounted:J,render:Q,renderTracked:G,renderTriggered:M,errorCaptured:L,serverPrefetch:ht,expose:rt,inheritAttrs:st,components:vt,directives:Ut,filters:_t}=t;if(l&&G6(l,r,null,e.appContext.config.unwrapInjectedRef),o)for(const W in o){const $=o[W];lt($)&&(r[W]=$.bind(n))}if(s){const W=s.call(n,n);Rt(W)&&(e.data=ji(W))}if(ml=!0,i)for(const W in i){const $=i[W],ut=lt($)?$.bind(n,n):lt($.get)?$.get.bind(n,n):tn,Pt=!lt($)&<($.set)?$.set.bind(n):tn,Nt=Ee({get:ut,set:Pt});Object.defineProperty(r,W,{enumerable:!0,configurable:!0,get:()=>Nt.value,set:Et=>Nt.value=Et})}if(a)for(const W in a)Zh(a[W],r,n,W);if(c){const W=lt(c)?c.call(n):c;Reflect.ownKeys(W).forEach($=>{Ca($,W[$])})}u&&df(u,e,"c");function F(W,$){ot($)?$.forEach(ut=>W(ut.bind(n))):$&&W($.bind(n))}if(F(I6,f),F(zh,d),F(O6,g),F(R6,w),F(P6,y),F(C6,x),F(U6,L),F(S6,G),F(k6,M),F(T6,O),F(Kh,J),F(B6,ht),ot(rt))if(rt.length){const W=e.exposed||(e.exposed={});rt.forEach($=>{Object.defineProperty(W,$,{get:()=>n[$],set:ut=>n[$]=ut})})}else e.exposed||(e.exposed={});Q&&e.render===tn&&(e.render=Q),st!=null&&(e.inheritAttrs=st),vt&&(e.components=vt),Ut&&(e.directives=Ut)}function G6(e,t,n=tn,r=!1){ot(e)&&(e=yl(e));for(const s in e){const i=e[s];let o;Rt(i)?"default"in i?o=xn(i.from||s,i.default,!0):o=xn(i.from||s):o=xn(i),Lt(o)&&r?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):t[s]=o}}function df(e,t,n){en(ot(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Zh(e,t,n,r){const s=r.includes(".")?Gh(n,r):()=>n[r];if(Vt(e)){const i=t[e];lt(i)&&ao(s,i)}else if(lt(e))ao(s,e.bind(n));else if(Rt(e))if(ot(e))e.forEach(i=>Zh(i,t,n,r));else{const i=lt(e.handler)?e.handler.bind(n):t[e.handler];lt(i)&&ao(s,i,e)}}function yu(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,a=i.get(t);let c;return a?c=a:!s.length&&!n&&!r?c=t:(c={},s.length&&s.forEach(l=>za(c,l,o,!0)),za(c,t,o)),Rt(t)&&i.set(t,c),c}function za(e,t,n,r=!1){const{mixins:s,extends:i}=t;i&&za(e,i,n,!0),s&&s.forEach(o=>za(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const a=Q6[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const Q6={data:pf,props:Sr,emits:Sr,methods:Sr,computed:Sr,beforeCreate:ie,created:ie,beforeMount:ie,mounted:ie,beforeUpdate:ie,updated:ie,beforeDestroy:ie,beforeUnmount:ie,destroyed:ie,unmounted:ie,activated:ie,deactivated:ie,errorCaptured:ie,serverPrefetch:ie,components:Sr,directives:Sr,watch:z6,provide:pf,inject:V6};function pf(e,t){return t?e?function(){return de(lt(e)?e.call(this,this):e,lt(t)?t.call(this,this):t)}:t:e}function V6(e,t){return Sr(yl(e),yl(t))}function yl(e){if(ot(e)){const t={};for(let n=0;n0)&&!(o&16)){if(o&8){const u=e.vnode.dynamicProps;for(let f=0;f{c=!0;const[d,g]=qh(f,t,!0);de(o,d),g&&a.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!c)return Rt(e)&&r.set(e,Ms),Ms;if(ot(i))for(let u=0;u-1,g[1]=y<0||w-1||pt(g,"default"))&&a.push(f)}}}const l=[o,a];return Rt(e)&&r.set(e,l),l}function gf(e){return e[0]!=="$"}function bf(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function mf(e,t){return bf(e)===bf(t)}function yf(e,t){return ot(t)?t.findIndex(n=>mf(n,e)):lt(t)&&mf(t,e)?0:-1}const Xh=e=>e[0]==="_"||e==="$stable",wu=e=>ot(e)?e.map(mn):[mn(e)],j6=(e,t,n)=>{if(t._n)return t;const r=Va((...s)=>wu(t(...s)),n);return r._c=!1,r},$h=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Xh(s))continue;const i=e[s];if(lt(i))t[s]=j6(s,i,r);else if(i!=null){const o=wu(i);t[s]=()=>o}}},t1=(e,t)=>{const n=wu(t);e.slots.default=()=>n},W6=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=mt(t),Ma(t,"_",n)):$h(t,e.slots={})}else e.slots={},t&&t1(e,t);Ma(e.slots,xc,1)},Z6=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,o=It;if(r.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:(de(s,t),!n&&a===1&&delete s._):(i=!t.$stable,$h(t,s)),o=t}else t&&(t1(e,t),o={default:1});if(i)for(const a in s)!Xh(a)&&!(a in o)&&delete s[a]};function e1(){return{app:null,config:{isNativeTag:xp,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Y6=0;function q6(e,t){return function(r,s=null){lt(r)||(r=Object.assign({},r)),s!=null&&!Rt(s)&&(s=null);const i=e1(),o=new Set;let a=!1;const c=i.app={_uid:Y6++,_component:r,_props:s,_container:null,_context:i,_instance:null,version:wg,get config(){return i.config},set config(l){},use(l,...u){return o.has(l)||(l&<(l.install)?(o.add(l),l.install(c,...u)):lt(l)&&(o.add(l),l(c,...u))),c},mixin(l){return i.mixins.includes(l)||i.mixins.push(l),c},component(l,u){return u?(i.components[l]=u,c):i.components[l]},directive(l,u){return u?(i.directives[l]=u,c):i.directives[l]},mount(l,u,f){if(!a){const d=Mt(r,s);return d.appContext=i,u&&t?t(d,l):e(d,l,f),a=!0,c._container=l,l.__vue_app__=c,vc(d.component)||d.component.proxy}},unmount(){a&&(e(null,c._container),delete c._container.__vue_app__)},provide(l,u){return i.provides[l]=u,c}};return c}}function Al(e,t,n,r,s=!1){if(ot(e)){e.forEach((d,g)=>Al(d,t&&(ot(t)?t[g]:t),n,r,s));return}if(co(r)&&!s)return;const i=r.shapeFlag&4?vc(r.component)||r.component.proxy:r.el,o=s?null:i,{i:a,r:c}=e,l=t&&t.r,u=a.refs===It?a.refs={}:a.refs,f=a.setupState;if(l!=null&&l!==c&&(Vt(l)?(u[l]=null,pt(f,l)&&(f[l]=null)):Lt(l)&&(l.value=null)),lt(c))Cr(c,a,12,[o,u]);else{const d=Vt(c),g=Lt(c);if(d||g){const w=()=>{if(e.f){const y=d?pt(f,c)?f[c]:u[c]:c.value;s?ot(y)&&iu(y,i):ot(y)?y.includes(i)||y.push(i):d?(u[c]=[i],pt(f,c)&&(f[c]=u[c])):(c.value=[i],e.k&&(u[e.k]=c.value))}else d?(u[c]=o,pt(f,c)&&(f[c]=o)):g&&(c.value=o,e.k&&(u[e.k]=o))};o?(w.id=-1,pe(w,n)):w()}}}const pe=x6;function X6(e){return $6(e)}function $6(e,t){const n=Op();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:o,createText:a,createComment:c,setText:l,setElementText:u,parentNode:f,nextSibling:d,setScopeId:g=tn,insertStaticContent:w}=e,y=(p,m,C,N=null,T=null,_=null,K=!1,U=null,H=!!m.dynamicChildren)=>{if(p===m)return;p&&!Yi(p,m)&&(N=D(p),Et(p,T,_,!0),p=null),m.patchFlag===-2&&(H=!1,m.dynamicChildren=null);const{type:k,ref:tt,shapeFlag:Z}=m;switch(k){case Ec:x(p,m,C,N);break;case Or:A(p,m,C,N);break;case Na:p==null&&O(m,C,N,K);break;case Qe:vt(p,m,C,N,T,_,K,U,H);break;default:Z&1?Q(p,m,C,N,T,_,K,U,H):Z&6?Ut(p,m,C,N,T,_,K,U,H):(Z&64||Z&128)&&k.process(p,m,C,N,T,_,K,U,H,at)}tt!=null&&T&&Al(tt,p&&p.ref,_,m||p,!m)},x=(p,m,C,N)=>{if(p==null)r(m.el=a(m.children),C,N);else{const T=m.el=p.el;m.children!==p.children&&l(T,m.children)}},A=(p,m,C,N)=>{p==null?r(m.el=c(m.children||""),C,N):m.el=p.el},O=(p,m,C,N)=>{[p.el,p.anchor]=w(p.children,m,C,N,p.el,p.anchor)},R=({el:p,anchor:m},C,N)=>{let T;for(;p&&p!==m;)T=d(p),r(p,C,N),p=T;r(m,C,N)},J=({el:p,anchor:m})=>{let C;for(;p&&p!==m;)C=d(p),s(p),p=C;s(m)},Q=(p,m,C,N,T,_,K,U,H)=>{K=K||m.type==="svg",p==null?G(m,C,N,T,_,K,U,H):ht(p,m,T,_,K,U,H)},G=(p,m,C,N,T,_,K,U)=>{let H,k;const{type:tt,props:Z,shapeFlag:et,transition:it,dirs:dt}=p;if(H=p.el=o(p.type,_,Z&&Z.is,Z),et&8?u(H,p.children):et&16&&L(p.children,H,null,N,T,_&&tt!=="foreignObject",K,U),dt&&Br(p,null,N,"created"),Z){for(const xt in Z)xt!=="value"&&!va(xt)&&i(H,xt,null,Z[xt],_,p.children,N,T,V);"value"in Z&&i(H,"value",null,Z.value),(k=Z.onVnodeBeforeMount)&&cn(k,N,p)}M(H,p,p.scopeId,K,N),dt&&Br(p,null,N,"beforeMount");const Ct=(!T||T&&!T.pendingBranch)&&it&&!it.persisted;Ct&&it.beforeEnter(H),r(H,m,C),((k=Z&&Z.onVnodeMounted)||Ct||dt)&&pe(()=>{k&&cn(k,N,p),Ct&&it.enter(H),dt&&Br(p,null,N,"mounted")},T)},M=(p,m,C,N,T)=>{if(C&&g(p,C),N)for(let _=0;_{for(let k=H;k{const U=m.el=p.el;let{patchFlag:H,dynamicChildren:k,dirs:tt}=m;H|=p.patchFlag&16;const Z=p.props||It,et=m.props||It;let it;C&&kr(C,!1),(it=et.onVnodeBeforeUpdate)&&cn(it,C,m,p),tt&&Br(m,p,C,"beforeUpdate"),C&&kr(C,!0);const dt=T&&m.type!=="foreignObject";if(k?rt(p.dynamicChildren,k,U,C,N,dt,_):K||$(p,m,U,null,C,N,dt,_,!1),H>0){if(H&16)st(U,m,Z,et,C,N,T);else if(H&2&&Z.class!==et.class&&i(U,"class",null,et.class,T),H&4&&i(U,"style",Z.style,et.style,T),H&8){const Ct=m.dynamicProps;for(let xt=0;xt{it&&cn(it,C,m,p),tt&&Br(m,p,C,"updated")},N)},rt=(p,m,C,N,T,_,K)=>{for(let U=0;U{if(C!==N){if(C!==It)for(const U in C)!va(U)&&!(U in N)&&i(p,U,C[U],null,K,m.children,T,_,V);for(const U in N){if(va(U))continue;const H=N[U],k=C[U];H!==k&&U!=="value"&&i(p,U,k,H,K,m.children,T,_,V)}"value"in N&&i(p,"value",C.value,N.value)}},vt=(p,m,C,N,T,_,K,U,H)=>{const k=m.el=p?p.el:a(""),tt=m.anchor=p?p.anchor:a("");let{patchFlag:Z,dynamicChildren:et,slotScopeIds:it}=m;it&&(U=U?U.concat(it):it),p==null?(r(k,C,N),r(tt,C,N),L(m.children,C,tt,T,_,K,U,H)):Z>0&&Z&64&&et&&p.dynamicChildren?(rt(p.dynamicChildren,et,C,T,_,K,U),(m.key!=null||T&&m===T.subTree)&&n1(p,m,!0)):$(p,m,C,tt,T,_,K,U,H)},Ut=(p,m,C,N,T,_,K,U,H)=>{m.slotScopeIds=U,p==null?m.shapeFlag&512?T.ctx.activate(m,C,N,K,H):_t(m,C,N,T,_,K,H):S(p,m,H)},_t=(p,m,C,N,T,_,K)=>{const U=p.component=lg(p,N,T);if(Qh(p)&&(U.ctx.renderer=at),fg(U),U.asyncDep){if(T&&T.registerDep(U,F),!p.el){const H=U.subTree=Mt(Or);A(null,H,m,C)}return}F(U,p,m,C,T,_,K)},S=(p,m,C)=>{const N=m.component=p.component;if(w6(p,m,C))if(N.asyncDep&&!N.asyncResolved){W(N,m,C);return}else N.next=m,d6(N.update),N.update();else m.el=p.el,N.vnode=m},F=(p,m,C,N,T,_,K)=>{const U=()=>{if(p.isMounted){let{next:tt,bu:Z,u:et,parent:it,vnode:dt}=p,Ct=tt,xt;kr(p,!1),tt?(tt.el=dt.el,W(p,tt,K)):tt=dt,Z&&Pa(Z),(xt=tt.props&&tt.props.onVnodeBeforeUpdate)&&cn(xt,it,tt,dt),kr(p,!0);const Ht=Qc(p),ze=p.subTree;p.subTree=Ht,y(ze,Ht,f(ze.el),D(ze),p,T,_),tt.el=Ht.el,Ct===null&&A6(p,Ht.el),et&&pe(et,T),(xt=tt.props&&tt.props.onVnodeUpdated)&&pe(()=>cn(xt,it,tt,dt),T)}else{let tt;const{el:Z,props:et}=m,{bm:it,m:dt,parent:Ct}=p,xt=co(m);if(kr(p,!1),it&&Pa(it),!xt&&(tt=et&&et.onVnodeBeforeMount)&&cn(tt,Ct,m),kr(p,!0),Z&&ct){const Ht=()=>{p.subTree=Qc(p),ct(Z,p.subTree,p,T,null)};xt?m.type.__asyncLoader().then(()=>!p.isUnmounted&&Ht()):Ht()}else{const Ht=p.subTree=Qc(p);y(null,Ht,C,N,p,T,_),m.el=Ht.el}if(dt&&pe(dt,T),!xt&&(tt=et&&et.onVnodeMounted)){const Ht=m;pe(()=>cn(tt,Ct,Ht),T)}(m.shapeFlag&256||Ct&&co(Ct.vnode)&&Ct.vnode.shapeFlag&256)&&p.a&&pe(p.a,T),p.isMounted=!0,m=C=N=null}},H=p.effect=new lu(U,()=>mu(k),p.scope),k=p.update=()=>H.run();k.id=p.uid,kr(p,!0),k()},W=(p,m,C)=>{m.component=p;const N=p.vnode.props;p.vnode=m,p.next=null,J6(p,m.props,N,C),Z6(p,m.children,C),Ki(),uf(),Ji()},$=(p,m,C,N,T,_,K,U,H=!1)=>{const k=p&&p.children,tt=p?p.shapeFlag:0,Z=m.children,{patchFlag:et,shapeFlag:it}=m;if(et>0){if(et&128){Pt(k,Z,C,N,T,_,K,U,H);return}else if(et&256){ut(k,Z,C,N,T,_,K,U,H);return}}it&8?(tt&16&&V(k,T,_),Z!==k&&u(C,Z)):tt&16?it&16?Pt(k,Z,C,N,T,_,K,U,H):V(k,T,_,!0):(tt&8&&u(C,""),it&16&&L(Z,C,N,T,_,K,U,H))},ut=(p,m,C,N,T,_,K,U,H)=>{p=p||Ms,m=m||Ms;const k=p.length,tt=m.length,Z=Math.min(k,tt);let et;for(et=0;ettt?V(p,T,_,!0,!1,Z):L(m,C,N,T,_,K,U,H,Z)},Pt=(p,m,C,N,T,_,K,U,H)=>{let k=0;const tt=m.length;let Z=p.length-1,et=tt-1;for(;k<=Z&&k<=et;){const it=p[k],dt=m[k]=H?rr(m[k]):mn(m[k]);if(Yi(it,dt))y(it,dt,C,null,T,_,K,U,H);else break;k++}for(;k<=Z&&k<=et;){const it=p[Z],dt=m[et]=H?rr(m[et]):mn(m[et]);if(Yi(it,dt))y(it,dt,C,null,T,_,K,U,H);else break;Z--,et--}if(k>Z){if(k<=et){const it=et+1,dt=itet)for(;k<=Z;)Et(p[k],T,_,!0),k++;else{const it=k,dt=k,Ct=new Map;for(k=dt;k<=et;k++){const Pe=m[k]=H?rr(m[k]):mn(m[k]);Pe.key!=null&&Ct.set(Pe.key,k)}let xt,Ht=0;const ze=et-dt+1;let xs=!1,Xu=0;const Wi=new Array(ze);for(k=0;k=ze){Et(Pe,T,_,!0);continue}let an;if(Pe.key!=null)an=Ct.get(Pe.key);else for(xt=dt;xt<=et;xt++)if(Wi[xt-dt]===0&&Yi(Pe,m[xt])){an=xt;break}an===void 0?Et(Pe,T,_,!0):(Wi[an-dt]=k+1,an>=Xu?Xu=an:xs=!0,y(Pe,m[an],C,null,T,_,K,U,H),Ht++)}const $u=xs?tg(Wi):Ms;for(xt=$u.length-1,k=ze-1;k>=0;k--){const Pe=dt+k,an=m[Pe],tf=Pe+1{const{el:_,type:K,transition:U,children:H,shapeFlag:k}=p;if(k&6){Nt(p.component.subTree,m,C,N);return}if(k&128){p.suspense.move(m,C,N);return}if(k&64){K.move(p,m,C,at);return}if(K===Qe){r(_,m,C);for(let Z=0;ZU.enter(_),T);else{const{leave:Z,delayLeave:et,afterLeave:it}=U,dt=()=>r(_,m,C),Ct=()=>{Z(_,()=>{dt(),it&&it()})};et?et(_,dt,Ct):Ct()}else r(_,m,C)},Et=(p,m,C,N=!1,T=!1)=>{const{type:_,props:K,ref:U,children:H,dynamicChildren:k,shapeFlag:tt,patchFlag:Z,dirs:et}=p;if(U!=null&&Al(U,null,C,p,!0),tt&256){m.ctx.deactivate(p);return}const it=tt&1&&et,dt=!co(p);let Ct;if(dt&&(Ct=K&&K.onVnodeBeforeUnmount)&&cn(Ct,m,p),tt&6)I(p.component,C,N);else{if(tt&128){p.suspense.unmount(C,N);return}it&&Br(p,null,m,"beforeUnmount"),tt&64?p.type.remove(p,m,C,T,at,N):k&&(_!==Qe||Z>0&&Z&64)?V(k,m,C,!1,!0):(_===Qe&&Z&384||!T&&tt&16)&&V(H,m,C),N&&se(p)}(dt&&(Ct=K&&K.onVnodeUnmounted)||it)&&pe(()=>{Ct&&cn(Ct,m,p),it&&Br(p,null,m,"unmounted")},C)},se=p=>{const{type:m,el:C,anchor:N,transition:T}=p;if(m===Qe){ve(C,N);return}if(m===Na){J(p);return}const _=()=>{s(C),T&&!T.persisted&&T.afterLeave&&T.afterLeave()};if(p.shapeFlag&1&&T&&!T.persisted){const{leave:K,delayLeave:U}=T,H=()=>K(C,_);U?U(p.el,_,H):H()}else _()},ve=(p,m)=>{let C;for(;p!==m;)C=d(p),s(p),p=C;s(m)},I=(p,m,C)=>{const{bum:N,scope:T,update:_,subTree:K,um:U}=p;N&&Pa(N),T.stop(),_&&(_.active=!1,Et(K,p,m,C)),U&&pe(U,m),pe(()=>{p.isUnmounted=!0},m),m&&m.pendingBranch&&!m.isUnmounted&&p.asyncDep&&!p.asyncResolved&&p.suspenseId===m.pendingId&&(m.deps--,m.deps===0&&m.resolve())},V=(p,m,C,N=!1,T=!1,_=0)=>{for(let K=_;Kp.shapeFlag&6?D(p.component.subTree):p.shapeFlag&128?p.suspense.next():d(p.anchor||p.el),Y=(p,m,C)=>{p==null?m._vnode&&Et(m._vnode,null,null,!0):y(m._vnode||null,p,m,null,null,null,C),uf(),Dh(),m._vnode=p},at={p:y,um:Et,m:Nt,r:se,mt:_t,mc:L,pc:$,pbc:rt,n:D,o:e};let wt,ct;return t&&([wt,ct]=t(at)),{render:Y,hydrate:wt,createApp:q6(Y,wt)}}function kr({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function n1(e,t,n=!1){const r=e.children,s=t.children;if(ot(r)&&ot(s))for(let i=0;i>1,e[n[a]]0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}const eg=e=>e.__isTeleport,Qe=Symbol(void 0),Ec=Symbol(void 0),Or=Symbol(void 0),Na=Symbol(void 0),uo=[];let $e=null;function As(e=!1){uo.push($e=e?null:[])}function ng(){uo.pop(),$e=uo[uo.length-1]||null}let Co=1;function wf(e){Co+=e}function r1(e){return e.dynamicChildren=Co>0?$e||Ms:null,ng(),Co>0&&$e&&$e.push(e),e}function sa(e,t,n,r,s,i){return r1(Ot(e,t,n,r,s,i,!0))}function s1(e,t,n,r,s){return r1(Mt(e,t,n,r,s,!0))}function Ka(e){return e?e.__v_isVNode===!0:!1}function Yi(e,t){return e.type===t.type&&e.key===t.key}const xc="__vInternal",i1=({key:e})=>e!=null?e:null,Ia=({ref:e,ref_key:t,ref_for:n})=>e!=null?Vt(e)||Lt(e)||lt(e)?{i:Zt,r:e,k:t,f:!!n}:e:null;function Ot(e,t=null,n=null,r=0,s=null,i=e===Qe?0:1,o=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&i1(t),ref:t&&Ia(t),scopeId:wc,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Zt};return a?(Au(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=Vt(n)?8:16),Co>0&&!o&&$e&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&$e.push(c),c}const Mt=rg;function rg(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===F6)&&(e=Or),Ka(e)){const a=ki(e,t,!0);return n&&Au(a,n),Co>0&&!i&&$e&&(a.shapeFlag&6?$e[$e.indexOf(e)]=a:$e.push(a)),a.patchFlag|=-2,a}if(bg(e)&&(e=e.__vccOpts),t){t=sg(t);let{class:a,style:c}=t;a&&!Vt(a)&&(t.class=fc(a)),Rt(c)&&(Oh(c)&&!ot(c)&&(c=de({},c)),t.style=ru(c))}const o=Vt(e)?1:E6(e)?128:eg(e)?64:Rt(e)?4:lt(e)?2:0;return Ot(e,t,n,r,s,o,i,!0)}function sg(e){return e?Oh(e)||xc in e?de({},e):e:null}function ki(e,t,n=!1){const{props:r,ref:s,patchFlag:i,children:o}=e,a=t?og(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&i1(a),ref:t&&t.ref?n&&s?ot(s)?s.concat(Ia(t)):[s,Ia(t)]:Ia(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Qe?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ki(e.ssContent),ssFallback:e.ssFallback&&ki(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx}}function Be(e=" ",t=0){return Mt(Ec,null,e,t)}function ig(e,t){const n=Mt(Na,null,e);return n.staticCount=t,n}function Ww(e="",t=!1){return t?(As(),s1(Or,null,e)):Mt(Or,null,e)}function mn(e){return e==null||typeof e=="boolean"?Mt(Or):ot(e)?Mt(Qe,null,e.slice()):typeof e=="object"?rr(e):Mt(Ec,null,String(e))}function rr(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ki(e)}function Au(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(ot(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),Au(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!(xc in t)?t._ctx=Zt:s===3&&Zt&&(Zt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else lt(t)?(t={default:t,_ctx:Zt},n=32):(t=String(t),r&64?(n=16,t=[Be(t)]):n=8);e.children=t,e.shapeFlag|=n}function og(...e){const t={};for(let n=0;nKt||Zt,Si=e=>{Kt=e,e.scope.on()},fs=()=>{Kt&&Kt.scope.off(),Kt=null};function o1(e){return e.vnode.shapeFlag&4}let No=!1;function fg(e,t=!1){No=t;const{props:n,children:r}=e.vnode,s=o1(e);K6(e,n,s,t),W6(e,r);const i=s?hg(e,t):void 0;return No=!1,i}function hg(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Bi(new Proxy(e.ctx,M6));const{setup:r}=n;if(r){const s=e.setupContext=r.length>1?pg(e):null;Si(e),Ki();const i=Cr(r,e,0,[e.props,s]);if(Ji(),fs(),hh(i)){if(i.then(fs,fs),t)return i.then(o=>{Af(e,o,t)}).catch(o=>{mc(o,e,0)});e.asyncDep=i}else Af(e,i,t)}else a1(e,t)}function Af(e,t,n){lt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Rt(t)&&(e.setupState=Sh(t)),a1(e,n)}let Ef;function a1(e,t,n){const r=e.type;if(!e.render){if(!t&&Ef&&!r.render){const s=r.template||yu(e).template;if(s){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:c}=r,l=de(de({isCustomElement:i,delimiters:a},o),c);r.render=Ef(s,l)}}e.render=r.render||tn}Si(e),Ki(),H6(e),Ji(),fs()}function dg(e){return new Proxy(e.attrs,{get(t,n){return Se(e,"get","$attrs"),t[n]}})}function pg(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=dg(e))},slots:e.slots,emit:e.emit,expose:t}}function vc(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Sh(Bi(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in lo)return lo[n](e)},has(t,n){return n in t||n in lo}}))}function gg(e,t=!0){return lt(e)?e.displayName||e.name:e.name||t&&e.__name}function bg(e){return lt(e)&&"__vccOpts"in e}const Ee=(e,t)=>u6(e,t,No);function c1(e,t,n){const r=arguments.length;return r===2?Rt(t)&&!ot(t)?Ka(t)?Mt(e,null,[t]):Mt(e,t):Mt(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Ka(n)&&(n=[n]),Mt(e,t,n))}const mg=Symbol(""),yg=()=>xn(mg),wg="3.2.45",Ag="http://www.w3.org/2000/svg",_r=typeof document<"u"?document:null,xf=_r&&_r.createElement("template"),Eg={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t?_r.createElementNS(Ag,e):_r.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>_r.createTextNode(e),createComment:e=>_r.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>_r.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,i){const o=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{xf.innerHTML=r?`${e}`:e;const a=xf.content;if(r){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}t.insertBefore(a,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function xg(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function vg(e,t,n){const r=e.style,s=Vt(n);if(n&&!s){for(const i in n)El(r,i,n[i]);if(t&&!Vt(t))for(const i in t)n[i]==null&&El(r,i,"")}else{const i=r.display;s?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}const vf=/\s*!important$/;function El(e,t,n){if(ot(n))n.forEach(r=>El(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Pg(e,t);vf.test(n)?e.setProperty(zi(r),n.replace(vf,""),"important"):e[r]=n}}const Pf=["Webkit","Moz","ms"],zc={};function Pg(e,t){const n=zc[t];if(n)return n;let r=vn(t);if(r!=="filter"&&r in e)return zc[t]=r;r=gc(r);for(let s=0;sKc||(Tg.then(()=>Kc=0),Kc=Date.now());function kg(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;en(Sg(r,n.value),t,5,[r])};return n.value=e,n.attached=Bg(),n}function Sg(e,t){if(ot(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const If=/^on[a-z]/,Ug=(e,t,n,r,s=!1,i,o,a,c)=>{t==="class"?xg(e,r,s):t==="style"?vg(e,n,r):hc(t)?su(t)||Og(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):_g(e,t,r,s))?Ng(e,t,r,i,o,a,c):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Cg(e,t,r,s))};function _g(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&If.test(t)&<(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||If.test(t)&&Vt(n)?!1:t in e}const Of=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ot(t)?n=>Pa(t,n):t};function Fg(e){e.target.composing=!0}function Rf(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Dg={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e._assign=Of(s);const i=r||s.props&&s.props.type==="number";Os(e,t?"change":"input",o=>{if(o.target.composing)return;let a=e.value;n&&(a=a.trim()),i&&(a=Ha(a)),e._assign(a)}),n&&Os(e,"change",()=>{e.value=e.value.trim()}),t||(Os(e,"compositionstart",Fg),Os(e,"compositionend",Rf),Os(e,"change",Rf))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:s}},i){if(e._assign=Of(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(s||e.type==="number")&&Ha(e.value)===t))return;const o=t==null?"":t;e.value!==o&&(e.value=o)}},Lg=de({patchProp:Ug},Eg);let Tf;function Mg(){return Tf||(Tf=X6(Lg))}const Hg=(...e)=>{const t=Mg().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Gg(r);if(!s)return;const i=t._component;!lt(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.innerHTML="";const o=n(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t};function Gg(e){return Vt(e)?document.querySelector(e):e}var Qg=!1;/*! + * pinia v2.0.28 + * (c) 2022 Eduardo San Martin Morote + * @license MIT + */let l1;const Pc=e=>l1=e,u1=Symbol();function xl(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var fo;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(fo||(fo={}));function Vg(){const e=bh(!0),t=e.run(()=>Vn({}));let n=[],r=[];const s=Bi({install(i){Pc(s),s._a=i,i.provide(u1,s),i.config.globalProperties.$pinia=s,r.forEach(o=>n.push(o)),r=[]},use(i){return!this._a&&!Qg?r.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const f1=()=>{};function Bf(e,t,n,r=f1){e.push(t);const s=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),r())};return!n&&Tp()&&Bp(s),s}function vs(e,...t){e.slice().forEach(n=>{n(...t)})}function vl(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],s=e[n];xl(s)&&xl(r)&&e.hasOwnProperty(n)&&!Lt(r)&&!Pr(r)?e[n]=vl(s,r):e[n]=r}return e}const zg=Symbol();function Kg(e){return!xl(e)||!e.hasOwnProperty(zg)}const{assign:sr}=Object;function Jg(e){return!!(Lt(e)&&e.effect)}function jg(e,t,n,r){const{state:s,actions:i,getters:o}=t,a=n.state.value[e];let c;function l(){a||(n.state.value[e]=s?s():{});const u=o6(n.state.value[e]);return sr(u,i,Object.keys(o||{}).reduce((f,d)=>(f[d]=Bi(Ee(()=>{Pc(n);const g=n._s.get(e);return o[d].call(g,g)})),f),{}))}return c=h1(e,l,t,n,r,!0),c.$reset=function(){const f=s?s():{};this.$patch(d=>{sr(d,f)})},c}function h1(e,t,n={},r,s,i){let o;const a=sr({actions:{}},n),c={deep:!0};let l,u,f=Bi([]),d=Bi([]),g;const w=r.state.value[e];!i&&!w&&(r.state.value[e]={}),Vn({});let y;function x(M){let L;l=u=!1,typeof M=="function"?(M(r.state.value[e]),L={type:fo.patchFunction,storeId:e,events:g}):(vl(r.state.value[e],M),L={type:fo.patchObject,payload:M,storeId:e,events:g});const ht=y=Symbol();bu().then(()=>{y===ht&&(l=!0)}),u=!0,vs(f,L,r.state.value[e])}const A=f1;function O(){o.stop(),f=[],d=[],r._s.delete(e)}function R(M,L){return function(){Pc(r);const ht=Array.from(arguments),rt=[],st=[];function vt(S){rt.push(S)}function Ut(S){st.push(S)}vs(d,{args:ht,name:M,store:Q,after:vt,onError:Ut});let _t;try{_t=L.apply(this&&this.$id===e?this:Q,ht)}catch(S){throw vs(st,S),S}return _t instanceof Promise?_t.then(S=>(vs(rt,S),S)).catch(S=>(vs(st,S),Promise.reject(S))):(vs(rt,_t),_t)}}const J={_p:r,$id:e,$onAction:Bf.bind(null,d),$patch:x,$reset:A,$subscribe(M,L={}){const ht=Bf(f,M,L.detached,()=>rt()),rt=o.run(()=>ao(()=>r.state.value[e],st=>{(L.flush==="sync"?u:l)&&M({storeId:e,type:fo.direct,events:g},st)},sr({},c,L)));return ht},$dispose:O},Q=ji(J);r._s.set(e,Q);const G=r._e.run(()=>(o=bh(),o.run(()=>t())));for(const M in G){const L=G[M];if(Lt(L)&&!Jg(L)||Pr(L))i||(w&&Kg(L)&&(Lt(L)?L.value=w[M]:vl(L,w[M])),r.state.value[e][M]=L);else if(typeof L=="function"){const ht=R(M,L);G[M]=ht,a.actions[M]=L}}return sr(Q,G),sr(mt(Q),G),Object.defineProperty(Q,"$state",{get:()=>r.state.value[e],set:M=>{x(L=>{sr(L,M)})}}),r._p.forEach(M=>{sr(Q,o.run(()=>M({store:Q,app:r._a,pinia:r,options:a})))}),w&&i&&n.hydrate&&n.hydrate(Q.$state,w),l=!0,u=!0,Q}function Wg(e,t,n){let r,s;const i=typeof t=="function";typeof e=="string"?(r=e,s=i?n:t):(s=e,r=e.id);function o(a,c){const l=ug();return a=a||l&&xn(u1,null),a&&Pc(a),a=l1,a._s.has(r)||(i?h1(r,t,s,a):jg(r,s,a)),a._s.get(r)}return o.$id=r,o}/*! + * vue-router v4.1.6 + * (c) 2022 Eduardo San Martin Morote + * @license MIT + */const Rs=typeof window<"u";function Zg(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const At=Object.assign;function Jc(e,t){const n={};for(const r in t){const s=t[r];n[r]=nn(s)?s.map(e):e(s)}return n}const ho=()=>{},nn=Array.isArray,Yg=/\/$/,qg=e=>e.replace(Yg,"");function jc(e,t,n="/"){let r,s={},i="",o="";const a=t.indexOf("#");let c=t.indexOf("?");return a=0&&(c=-1),c>-1&&(r=t.slice(0,c),i=t.slice(c+1,a>-1?a:t.length),s=e(i)),a>-1&&(r=r||t.slice(0,a),o=t.slice(a,t.length)),r=e5(r!=null?r:t,n),{fullPath:r+(i&&"?")+i+o,path:r,query:s,hash:o}}function Xg(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function kf(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function $g(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&Ui(t.matched[r],n.matched[s])&&d1(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ui(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function d1(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!t5(e[n],t[n]))return!1;return!0}function t5(e,t){return nn(e)?Sf(e,t):nn(t)?Sf(t,e):e===t}function Sf(e,t){return nn(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function e5(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/");let s=n.length-1,i,o;for(i=0;i1&&s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(i-(i===r.length?1:0)).join("/")}var Io;(function(e){e.pop="pop",e.push="push"})(Io||(Io={}));var po;(function(e){e.back="back",e.forward="forward",e.unknown=""})(po||(po={}));function n5(e){if(!e)if(Rs){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),qg(e)}const r5=/^[^#]+#/;function s5(e,t){return e.replace(r5,"#")+t}function i5(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Cc=()=>({left:window.pageXOffset,top:window.pageYOffset});function o5(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=i5(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Uf(e,t){return(history.state?history.state.position-t:-1)+e}const Pl=new Map;function a5(e,t){Pl.set(e,t)}function c5(e){const t=Pl.get(e);return Pl.delete(e),t}let l5=()=>location.protocol+"//"+location.host;function p1(e,t){const{pathname:n,search:r,hash:s}=t,i=e.indexOf("#");if(i>-1){let a=s.includes(e.slice(i))?e.slice(i).length:1,c=s.slice(a);return c[0]!=="/"&&(c="/"+c),kf(c,"")}return kf(n,e)+r+s}function u5(e,t,n,r){let s=[],i=[],o=null;const a=({state:d})=>{const g=p1(e,location),w=n.value,y=t.value;let x=0;if(d){if(n.value=g,t.value=d,o&&o===w){o=null;return}x=y?d.position-y.position:0}else r(g);s.forEach(A=>{A(n.value,w,{delta:x,type:Io.pop,direction:x?x>0?po.forward:po.back:po.unknown})})};function c(){o=n.value}function l(d){s.push(d);const g=()=>{const w=s.indexOf(d);w>-1&&s.splice(w,1)};return i.push(g),g}function u(){const{history:d}=window;!d.state||d.replaceState(At({},d.state,{scroll:Cc()}),"")}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u),{pauseListeners:c,listen:l,destroy:f}}function _f(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?Cc():null}}function f5(e){const{history:t,location:n}=window,r={value:p1(e,n)},s={value:t.state};s.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(c,l,u){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+c:l5()+e+c;try{t[u?"replaceState":"pushState"](l,"",d),s.value=l}catch(g){console.error(g),n[u?"replace":"assign"](d)}}function o(c,l){const u=At({},t.state,_f(s.value.back,c,s.value.forward,!0),l,{position:s.value.position});i(c,u,!0),r.value=c}function a(c,l){const u=At({},s.value,t.state,{forward:c,scroll:Cc()});i(u.current,u,!0);const f=At({},_f(r.value,c,null),{position:u.position+1},l);i(c,f,!1),r.value=c}return{location:r,state:s,push:a,replace:o}}function h5(e){e=n5(e);const t=f5(e),n=u5(e,t.state,t.location,t.replace);function r(i,o=!0){o||n.pauseListeners(),history.go(i)}const s=At({location:"",base:e,go:r,createHref:s5.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function d5(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),h5(e)}function p5(e){return typeof e=="string"||e&&typeof e=="object"}function g1(e){return typeof e=="string"||typeof e=="symbol"}const $n={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},b1=Symbol("");var Ff;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Ff||(Ff={}));function _i(e,t){return At(new Error,{type:e,[b1]:!0},t)}function Pn(e,t){return e instanceof Error&&b1 in e&&(t==null||!!(e.type&t))}const Df="[^/]+?",g5={sensitive:!1,strict:!1,start:!0,end:!0},b5=/[.+*?^${}()[\]/\\]/g;function m5(e,t){const n=At({},g5,t),r=[];let s=n.start?"^":"";const i=[];for(const l of e){const u=l.length?[]:[90];n.strict&&!l.length&&(s+="/");for(let f=0;ft.length?t.length===1&&t[0]===40+40?1:-1:0}function w5(e,t){let n=0;const r=e.score,s=t.score;for(;n0&&t[t.length-1]<0}const A5={type:0,value:""},E5=/[a-zA-Z0-9_]/;function x5(e){if(!e)return[[]];if(e==="/")return[[A5]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${l}": ${g}`)}let n=0,r=n;const s=[];let i;function o(){i&&s.push(i),i=[]}let a=0,c,l="",u="";function f(){!l||(n===0?i.push({type:0,value:l}):n===1||n===2||n===3?(i.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:l,regexp:u,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),l="")}function d(){l+=c}for(;a{o(O)}:ho}function o(u){if(g1(u)){const f=r.get(u);f&&(r.delete(u),n.splice(n.indexOf(f),1),f.children.forEach(o),f.alias.forEach(o))}else{const f=n.indexOf(u);f>-1&&(n.splice(f,1),u.record.name&&r.delete(u.record.name),u.children.forEach(o),u.alias.forEach(o))}}function a(){return n}function c(u){let f=0;for(;f=0&&(u.record.path!==n[f].record.path||!m1(u,n[f]));)f++;n.splice(f,0,u),u.record.name&&!Hf(u)&&r.set(u.record.name,u)}function l(u,f){let d,g={},w,y;if("name"in u&&u.name){if(d=r.get(u.name),!d)throw _i(1,{location:u});y=d.record.name,g=At(Mf(f.params,d.keys.filter(O=>!O.optional).map(O=>O.name)),u.params&&Mf(u.params,d.keys.map(O=>O.name))),w=d.stringify(g)}else if("path"in u)w=u.path,d=n.find(O=>O.re.test(w)),d&&(g=d.parse(w),y=d.record.name);else{if(d=f.name?r.get(f.name):n.find(O=>O.re.test(f.path)),!d)throw _i(1,{location:u,currentLocation:f});y=d.record.name,g=At({},f.params,u.params),w=d.stringify(g)}const x=[];let A=d;for(;A;)x.unshift(A.record),A=A.parent;return{name:y,path:w,params:g,matched:x,meta:I5(x)}}return e.forEach(u=>i(u)),{addRoute:i,resolve:l,removeRoute:o,getRoutes:a,getRecordMatcher:s}}function Mf(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function C5(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:N5(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function N5(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="boolean"?n:n[r];return t}function Hf(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function I5(e){return e.reduce((t,n)=>At(t,n.meta),{})}function Gf(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function m1(e,t){return t.children.some(n=>n===e||m1(e,n))}const y1=/#/g,O5=/&/g,R5=/\//g,T5=/=/g,B5=/\?/g,w1=/\+/g,k5=/%5B/g,S5=/%5D/g,A1=/%5E/g,U5=/%60/g,E1=/%7B/g,_5=/%7C/g,x1=/%7D/g,F5=/%20/g;function Eu(e){return encodeURI(""+e).replace(_5,"|").replace(k5,"[").replace(S5,"]")}function D5(e){return Eu(e).replace(E1,"{").replace(x1,"}").replace(A1,"^")}function Cl(e){return Eu(e).replace(w1,"%2B").replace(F5,"+").replace(y1,"%23").replace(O5,"%26").replace(U5,"`").replace(E1,"{").replace(x1,"}").replace(A1,"^")}function L5(e){return Cl(e).replace(T5,"%3D")}function M5(e){return Eu(e).replace(y1,"%23").replace(B5,"%3F")}function H5(e){return e==null?"":M5(e).replace(R5,"%2F")}function Ja(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function G5(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;si&&Cl(i)):[r&&Cl(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function Q5(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=nn(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const V5=Symbol(""),Vf=Symbol(""),xu=Symbol(""),v1=Symbol(""),Nl=Symbol("");function qi(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function ir(e,t,n,r,s){const i=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((o,a)=>{const c=f=>{f===!1?a(_i(4,{from:n,to:t})):f instanceof Error?a(f):p5(f)?a(_i(2,{from:t,to:f})):(i&&r.enterCallbacks[s]===i&&typeof f=="function"&&i.push(f),o())},l=e.call(r&&r.instances[s],t,n,c);let u=Promise.resolve(l);e.length<3&&(u=u.then(c)),u.catch(f=>a(f))})}function Wc(e,t,n,r){const s=[];for(const i of e)for(const o in i.components){let a=i.components[o];if(!(t!=="beforeRouteEnter"&&!i.instances[o]))if(z5(a)){const l=(a.__vccOpts||a)[t];l&&s.push(ir(l,n,r,i,o))}else{let c=a();s.push(()=>c.then(l=>{if(!l)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${i.path}"`));const u=Zg(l)?l.default:l;i.components[o]=u;const d=(u.__vccOpts||u)[t];return d&&ir(d,n,r,i,o)()}))}}return s}function z5(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function zf(e){const t=xn(xu),n=xn(v1),r=Ee(()=>t.resolve(us(e.to))),s=Ee(()=>{const{matched:c}=r.value,{length:l}=c,u=c[l-1],f=n.matched;if(!u||!f.length)return-1;const d=f.findIndex(Ui.bind(null,u));if(d>-1)return d;const g=Kf(c[l-2]);return l>1&&Kf(u)===g&&f[f.length-1].path!==g?f.findIndex(Ui.bind(null,c[l-2])):d}),i=Ee(()=>s.value>-1&&W5(n.params,r.value.params)),o=Ee(()=>s.value>-1&&s.value===n.matched.length-1&&d1(n.params,r.value.params));function a(c={}){return j5(c)?t[us(e.replace)?"replace":"push"](us(e.to)).catch(ho):Promise.resolve()}return{route:r,href:Ee(()=>r.value.href),isActive:i,isExactActive:o,navigate:a}}const K5=ra({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:zf,setup(e,{slots:t}){const n=ji(zf(e)),{options:r}=xn(xu),s=Ee(()=>({[Jf(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Jf(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:c1("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},i)}}}),J5=K5;function j5(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function W5(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!nn(s)||s.length!==r.length||r.some((i,o)=>i!==s[o]))return!1}return!0}function Kf(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Jf=(e,t,n)=>e!=null?e:t!=null?t:n,Z5=ra({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=xn(Nl),s=Ee(()=>e.route||r.value),i=xn(Vf,0),o=Ee(()=>{let l=us(i);const{matched:u}=s.value;let f;for(;(f=u[l])&&!f.components;)l++;return l}),a=Ee(()=>s.value.matched[o.value]);Ca(Vf,Ee(()=>o.value+1)),Ca(V5,a),Ca(Nl,s);const c=Vn();return ao(()=>[c.value,a.value,e.name],([l,u,f],[d,g,w])=>{u&&(u.instances[f]=l,g&&g!==u&&l&&l===d&&(u.leaveGuards.size||(u.leaveGuards=g.leaveGuards),u.updateGuards.size||(u.updateGuards=g.updateGuards))),l&&u&&(!g||!Ui(u,g)||!d)&&(u.enterCallbacks[f]||[]).forEach(y=>y(l))},{flush:"post"}),()=>{const l=s.value,u=e.name,f=a.value,d=f&&f.components[u];if(!d)return jf(n.default,{Component:d,route:l});const g=f.props[u],w=g?g===!0?l.params:typeof g=="function"?g(l):g:null,x=c1(d,At({},w,t,{onVnodeUnmounted:A=>{A.component.isUnmounted&&(f.instances[u]=null)},ref:c}));return jf(n.default,{Component:x,route:l})||x}}});function jf(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const P1=Z5;function Y5(e){const t=P5(e.routes,e),n=e.parseQuery||G5,r=e.stringifyQuery||Qf,s=e.history,i=qi(),o=qi(),a=qi(),c=Bh($n);let l=$n;Rs&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Jc.bind(null,I=>""+I),f=Jc.bind(null,H5),d=Jc.bind(null,Ja);function g(I,V){let D,Y;return g1(I)?(D=t.getRecordMatcher(I),Y=V):Y=I,t.addRoute(Y,D)}function w(I){const V=t.getRecordMatcher(I);V&&t.removeRoute(V)}function y(){return t.getRoutes().map(I=>I.record)}function x(I){return!!t.getRecordMatcher(I)}function A(I,V){if(V=At({},V||c.value),typeof I=="string"){const p=jc(n,I,V.path),m=t.resolve({path:p.path},V),C=s.createHref(p.fullPath);return At(p,m,{params:d(m.params),hash:Ja(p.hash),redirectedFrom:void 0,href:C})}let D;if("path"in I)D=At({},I,{path:jc(n,I.path,V.path).path});else{const p=At({},I.params);for(const m in p)p[m]==null&&delete p[m];D=At({},I,{params:f(I.params)}),V.params=f(V.params)}const Y=t.resolve(D,V),at=I.hash||"";Y.params=u(d(Y.params));const wt=Xg(r,At({},I,{hash:D5(at),path:Y.path})),ct=s.createHref(wt);return At({fullPath:wt,hash:at,query:r===Qf?Q5(I.query):I.query||{}},Y,{redirectedFrom:void 0,href:ct})}function O(I){return typeof I=="string"?jc(n,I,c.value.path):At({},I)}function R(I,V){if(l!==I)return _i(8,{from:V,to:I})}function J(I){return M(I)}function Q(I){return J(At(O(I),{replace:!0}))}function G(I){const V=I.matched[I.matched.length-1];if(V&&V.redirect){const{redirect:D}=V;let Y=typeof D=="function"?D(I):D;return typeof Y=="string"&&(Y=Y.includes("?")||Y.includes("#")?Y=O(Y):{path:Y},Y.params={}),At({query:I.query,hash:I.hash,params:"path"in Y?{}:I.params},Y)}}function M(I,V){const D=l=A(I),Y=c.value,at=I.state,wt=I.force,ct=I.replace===!0,p=G(D);if(p)return M(At(O(p),{state:typeof p=="object"?At({},at,p.state):at,force:wt,replace:ct}),V||D);const m=D;m.redirectedFrom=V;let C;return!wt&&$g(r,Y,D)&&(C=_i(16,{to:m,from:Y}),Pt(Y,Y,!0,!1)),(C?Promise.resolve(C):ht(m,Y)).catch(N=>Pn(N)?Pn(N,2)?N:ut(N):W(N,m,Y)).then(N=>{if(N){if(Pn(N,2))return M(At({replace:ct},O(N.to),{state:typeof N.to=="object"?At({},at,N.to.state):at,force:wt}),V||m)}else N=st(m,Y,!0,ct,at);return rt(m,Y,N),N})}function L(I,V){const D=R(I,V);return D?Promise.reject(D):Promise.resolve()}function ht(I,V){let D;const[Y,at,wt]=q5(I,V);D=Wc(Y.reverse(),"beforeRouteLeave",I,V);for(const p of Y)p.leaveGuards.forEach(m=>{D.push(ir(m,I,V))});const ct=L.bind(null,I,V);return D.push(ct),Ps(D).then(()=>{D=[];for(const p of i.list())D.push(ir(p,I,V));return D.push(ct),Ps(D)}).then(()=>{D=Wc(at,"beforeRouteUpdate",I,V);for(const p of at)p.updateGuards.forEach(m=>{D.push(ir(m,I,V))});return D.push(ct),Ps(D)}).then(()=>{D=[];for(const p of I.matched)if(p.beforeEnter&&!V.matched.includes(p))if(nn(p.beforeEnter))for(const m of p.beforeEnter)D.push(ir(m,I,V));else D.push(ir(p.beforeEnter,I,V));return D.push(ct),Ps(D)}).then(()=>(I.matched.forEach(p=>p.enterCallbacks={}),D=Wc(wt,"beforeRouteEnter",I,V),D.push(ct),Ps(D))).then(()=>{D=[];for(const p of o.list())D.push(ir(p,I,V));return D.push(ct),Ps(D)}).catch(p=>Pn(p,8)?p:Promise.reject(p))}function rt(I,V,D){for(const Y of a.list())Y(I,V,D)}function st(I,V,D,Y,at){const wt=R(I,V);if(wt)return wt;const ct=V===$n,p=Rs?history.state:{};D&&(Y||ct?s.replace(I.fullPath,At({scroll:ct&&p&&p.scroll},at)):s.push(I.fullPath,at)),c.value=I,Pt(I,V,D,ct),ut()}let vt;function Ut(){vt||(vt=s.listen((I,V,D)=>{if(!ve.listening)return;const Y=A(I),at=G(Y);if(at){M(At(at,{replace:!0}),Y).catch(ho);return}l=Y;const wt=c.value;Rs&&a5(Uf(wt.fullPath,D.delta),Cc()),ht(Y,wt).catch(ct=>Pn(ct,12)?ct:Pn(ct,2)?(M(ct.to,Y).then(p=>{Pn(p,20)&&!D.delta&&D.type===Io.pop&&s.go(-1,!1)}).catch(ho),Promise.reject()):(D.delta&&s.go(-D.delta,!1),W(ct,Y,wt))).then(ct=>{ct=ct||st(Y,wt,!1),ct&&(D.delta&&!Pn(ct,8)?s.go(-D.delta,!1):D.type===Io.pop&&Pn(ct,20)&&s.go(-1,!1)),rt(Y,wt,ct)}).catch(ho)}))}let _t=qi(),S=qi(),F;function W(I,V,D){ut(I);const Y=S.list();return Y.length?Y.forEach(at=>at(I,V,D)):console.error(I),Promise.reject(I)}function $(){return F&&c.value!==$n?Promise.resolve():new Promise((I,V)=>{_t.add([I,V])})}function ut(I){return F||(F=!I,Ut(),_t.list().forEach(([V,D])=>I?D(I):V()),_t.reset()),I}function Pt(I,V,D,Y){const{scrollBehavior:at}=e;if(!Rs||!at)return Promise.resolve();const wt=!D&&c5(Uf(I.fullPath,0))||(Y||!D)&&history.state&&history.state.scroll||null;return bu().then(()=>at(I,V,wt)).then(ct=>ct&&o5(ct)).catch(ct=>W(ct,I,V))}const Nt=I=>s.go(I);let Et;const se=new Set,ve={currentRoute:c,listening:!0,addRoute:g,removeRoute:w,hasRoute:x,getRoutes:y,resolve:A,options:e,push:J,replace:Q,go:Nt,back:()=>Nt(-1),forward:()=>Nt(1),beforeEach:i.add,beforeResolve:o.add,afterEach:a.add,onError:S.add,isReady:$,install(I){const V=this;I.component("RouterLink",J5),I.component("RouterView",P1),I.config.globalProperties.$router=V,Object.defineProperty(I.config.globalProperties,"$route",{enumerable:!0,get:()=>us(c)}),Rs&&!Et&&c.value===$n&&(Et=!0,J(s.location).catch(at=>{}));const D={};for(const at in $n)D[at]=Ee(()=>c.value[at]);I.provide(xu,V),I.provide(v1,ji(D)),I.provide(Nl,c);const Y=I.unmount;se.add(I),I.unmount=function(){se.delete(I),se.size<1&&(l=$n,vt&&vt(),vt=null,c.value=$n,Et=!1,F=!1),Y()}}};return ve}function Ps(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function q5(e,t){const n=[],r=[],s=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;oUi(l,a))?r.push(a):n.push(a));const c=e.matched[o];c&&(t.matched.find(l=>Ui(l,c))||s.push(c))}return[n,r,s]}const X5="/ethdam-quiz/assets/logo.a47ed3d4.svg",$5="/ethdam-quiz/assets/logo-ethdam.f0a07d5e.png",vu=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},tb={},eb={class:"sticky top-0"},nb={class:"bg-white border-gray-200 p-2 xl:py-4 xl:px-0"},rb={class:"flex flex-wrap justify-between items-center mx-auto max-w-screen-md"},sb=Ot("img",{src:X5,class:"h-6 sm:h-9",alt:"Oasis logo"},null,-1),ib=Ot("a",{href:"https://ethdam.com"},[Ot("img",{src:$5,class:"h-6 sm:h-9",alt:"RTK logo"})],-1),ob=Ot("p",{class:"text-white text-right mt-3 mr-3"},[Be(" Problems, questions, compliments?"),Ot("br"),Be(" Contact us on "),Ot("a",{href:"https://oasis.io/discord",target:"_blank"},"Discord"),Be("! \u{1F389} ")],-1);function ab(e,t){const n=jh("RouterLink");return As(),sa("header",eb,[Ot("nav",nb,[Ot("div",rb,[Mt(n,{to:"/"},{default:Va(()=>[sb]),_:1}),ib])]),ob])}const cb=vu(tb,[["render",ab]]),lb={},ub={class:"fixed p-1 bottom-0 bg-primary w-full"},fb=Ot("p",{class:"text-white text-center"},[Be(" Copyright \xA9 2024 "),Ot("a",{href:"https://oasisprotocol.org",target:"_blank"},"Oasis Protocol Foundation"),Be(". Licensed under "),Ot("a",{href:"https://www.apache.org/licenses/LICENSE-2.0",target:"_blank"},"Apache 2.0"),Be(". ")],-1),hb=[fb];function db(e,t){return As(),sa("footer",ub,hb)}const pb=vu(lb,[["render",db]]),gb={class:"py-5 px-2 m-auto max-w-screen-md lg:px-0"},bb=ra({__name:"App",setup(e){return(t,n)=>(As(),sa(Qe,null,[Mt(cb),Ot("main",gb,[Mt(us(P1),{el:"main"})]),Mt(pb)],64))}});const mb="modulepreload",yb=function(e){return"/ethdam-quiz/"+e},Wf={},Zf=function(t,n,r){if(!n||n.length===0)return t();const s=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=yb(i),i in Wf)return;Wf[i]=!0;const o=i.endsWith(".css"),a=o?'[rel="stylesheet"]':"";if(!!r)for(let u=s.length-1;u>=0;u--){const f=s[u];if(f.href===i&&(!o||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${a}`))return;const l=document.createElement("link");if(l.rel=o?"stylesheet":mb,o||(l.as="script",l.crossOrigin=""),l.href=i,document.head.appendChild(l),o)return new Promise((u,f)=>{l.addEventListener("load",u),l.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())},wb="6.10.0";function Ab(e,t,n){const r=t.split("|").map(i=>i.trim());for(let i=0;iPromise.resolve(e[r])))).reduce((r,s,i)=>(r[t[i]]=s,r),{})}function nt(e,t,n){for(let r in t){let s=t[r];const i=n?n[r]:null;i&&Ab(s,i,r),Object.defineProperty(e,r,{enumerable:!0,value:s,writable:!1})}}function Ss(e){if(e==null)return"null";if(Array.isArray(e))return"[ "+e.map(Ss).join(", ")+" ]";if(e instanceof Uint8Array){const t="0123456789abcdef";let n="0x";for(let r=0;r>4],n+=t[e[r]&15];return n}if(typeof e=="object"&&typeof e.toJSON=="function")return Ss(e.toJSON());switch(typeof e){case"boolean":case"symbol":return e.toString();case"bigint":return BigInt(e).toString();case"number":return e.toString();case"string":return JSON.stringify(e);case"object":{const t=Object.keys(e);return t.sort(),"{ "+t.map(n=>`${Ss(n)}: ${Ss(e[n])}`).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function ne(e,t){return e&&e.code===t}function Pu(e){return ne(e,"CALL_EXCEPTION")}function Gt(e,t,n){let r=e;{const i=[];if(n){if("message"in n||"code"in n||"name"in n)throw new Error(`value will overwrite populated values: ${Ss(n)}`);for(const o in n){if(o==="shortMessage")continue;const a=n[o];i.push(o+"="+Ss(a))}}i.push(`code=${t}`),i.push(`version=${wb}`),i.length&&(e+=" ("+i.join(", ")+")")}let s;switch(t){case"INVALID_ARGUMENT":s=new TypeError(e);break;case"NUMERIC_FAULT":case"BUFFER_OVERRUN":s=new RangeError(e);break;default:s=new Error(e)}return nt(s,{code:t}),n&&Object.assign(s,n),s.shortMessage==null&&nt(s,{shortMessage:r}),s}function B(e,t,n,r){if(!e)throw Gt(t,n,r)}function E(e,t,n,r){B(e,t,"INVALID_ARGUMENT",{argument:n,value:r})}function C1(e,t,n){n==null&&(n=""),n&&(n=": "+n),B(e>=t,"missing arguemnt"+n,"MISSING_ARGUMENT",{count:e,expectedCount:t}),B(e<=t,"too many arguemnts"+n,"UNEXPECTED_ARGUMENT",{count:e,expectedCount:t})}const Eb=["NFD","NFC","NFKD","NFKC"].reduce((e,t)=>{try{if("test".normalize(t)!=="test")throw new Error("bad");if(t==="NFD"){const n=String.fromCharCode(233).normalize("NFD"),r=String.fromCharCode(101,769);if(n!==r)throw new Error("broken")}e.push(t)}catch{}return e},[]);function xb(e){B(Eb.indexOf(e)>=0,"platform missing String.prototype.normalize","UNSUPPORTED_OPERATION",{operation:"String.prototype.normalize",info:{form:e}})}function Nc(e,t,n){if(n==null&&(n=""),e!==t){let r=n,s="new";n&&(r+=".",s+=" "+n),B(!1,`private constructor; use ${r}from* methods`,"UNSUPPORTED_OPERATION",{operation:s})}}function N1(e,t,n){if(e instanceof Uint8Array)return n?new Uint8Array(e):e;if(typeof e=="string"&&e.match(/^0x([0-9a-f][0-9a-f])*$/i)){const r=new Uint8Array((e.length-2)/2);let s=2;for(let i=0;i>4]+Yf[s&15]}return n}function Qt(e){return"0x"+e.map(t=>q(t).substring(2)).join("")}function Qs(e){return St(e,!0)?(e.length-2)/2:bt(e).length}function Ft(e,t,n){const r=bt(e);return n!=null&&n>r.length&&B(!1,"cannot slice beyond data bounds","BUFFER_OVERRUN",{buffer:r,length:r.length,offset:n}),q(r.slice(t==null?0:t,n==null?r.length:n))}function I1(e,t,n){const r=bt(e);B(t>=r.length,"padding exceeds data length","BUFFER_OVERRUN",{buffer:new Uint8Array(r),length:t,offset:t+1});const s=new Uint8Array(t);return s.fill(0),n?s.set(r,t-r.length):s.set(r,0),q(s)}function gs(e,t){return I1(e,t,!0)}function Pb(e,t){return I1(e,t,!1)}const Ic=BigInt(0),Xe=BigInt(1),Us=9007199254740991;function Cb(e,t){const n=Oc(e,"value"),r=BigInt(ft(t,"width"));if(B(n>>r===Ic,"overflow","NUMERIC_FAULT",{operation:"fromTwos",fault:"overflow",value:e}),n>>r-Xe){const s=(Xe<=-Us&&e<=Us,"overflow",t||"value",e),BigInt(e);case"string":try{if(e==="")throw new Error("empty string");return e[0]==="-"&&e[1]!=="-"?-BigInt(e.substring(1)):BigInt(e)}catch(n){E(!1,`invalid BigNumberish string: ${n.message}`,t||"value",e)}}E(!1,"invalid BigNumberish value",t||"value",e)}function Oc(e,t){const n=X(e,t);return B(n>=Ic,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:e}),n}const qf="0123456789abcdef";function Cu(e){if(e instanceof Uint8Array){let t="0x0";for(const n of e)t+=qf[n>>4],t+=qf[n&15];return BigInt(t)}return X(e)}function ft(e,t){switch(typeof e){case"bigint":return E(e>=-Us&&e<=Us,"overflow",t||"value",e),Number(e);case"number":return E(Number.isInteger(e),"underflow",t||"value",e),E(e>=-Us&&e<=Us,"overflow",t||"value",e),e;case"string":try{if(e==="")throw new Error("empty string");return ft(BigInt(e),t)}catch(n){E(!1,`invalid numeric string: ${n.message}`,t||"value",e)}}E(!1,"invalid numeric value",t||"value",e)}function Nb(e){return ft(Cu(e))}function Rr(e,t){let r=Oc(e,"value").toString(16);if(t==null)r.length%2&&(r="0"+r);else{const s=ft(t,"width");for(B(s*2>=r.length,`value exceeds width (${s} bytes)`,"NUMERIC_FAULT",{operation:"toBeHex",fault:"overflow",value:e});r.length>6===2;o++)i++;return i}return e==="OVERRUN"?n.length-t-1:0}function Bb(e,t,n,r,s){return e==="OVERLONG"?(E(typeof s=="number","invalid bad code point for replacement","badCodepoint",s),r.push(s),0):(r.push(65533),T1(e,t,n))}const kb=Object.freeze({error:Tb,ignore:T1,replace:Bb});function Sb(e,t){t==null&&(t=kb.error);const n=bt(e,"bytes"),r=[];let s=0;for(;s>7===0){r.push(i);continue}let o=null,a=null;if((i&224)===192)o=1,a=127;else if((i&240)===224)o=2,a=2047;else if((i&248)===240)o=3,a=65535;else{(i&192)===128?s+=t("UNEXPECTED_CONTINUE",s-1,n,r):s+=t("BAD_PREFIX",s-1,n,r);continue}if(s-1+o>=n.length){s+=t("OVERRUN",s-1,n,r);continue}let c=i&(1<<8-o-1)-1;for(let l=0;l1114111){s+=t("OUT_OF_RANGE",s-1-o,n,r,c);continue}if(c>=55296&&c<=57343){s+=t("UTF16_SURROGATE",s-1-o,n,r,c);continue}if(c<=a){s+=t("OVERLONG",s-1-o,n,r,c);continue}r.push(c)}}return r}function Kn(e,t){t!=null&&(xb(t),e=e.normalize(t));let n=[];for(let r=0;r>6|192),n.push(s&63|128);else if((s&64512)==55296){r++;const i=e.charCodeAt(r);E(r>18|240),n.push(o>>12&63|128),n.push(o>>6&63|128),n.push(o&63|128)}else n.push(s>>12|224),n.push(s>>6&63|128),n.push(s&63|128)}return new Uint8Array(n)}function Ub(e){return e.map(t=>t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10&1023)+55296,(t&1023)+56320))).join("")}function Nu(e,t){return Ub(Sb(e,t))}function B1(e){async function t(n,r){const s=n.url.split(":")[0].toLowerCase();B(s==="http"||s==="https",`unsupported protocol ${s}`,"UNSUPPORTED_OPERATION",{info:{protocol:s},operation:"request"}),B(s==="https"||!n.credentials||n.allowInsecureAuthentication,"insecure authorized connections unsupported","UNSUPPORTED_OPERATION",{operation:"request"});let i;if(r){const f=new AbortController;i=f.signal,r.addListener(()=>{f.abort()})}const o={method:n.method,headers:new Headers(Array.from(n)),body:n.body||void 0,signal:i},a=await fetch(n.url,o),c={};a.headers.forEach((f,d)=>{c[d.toLowerCase()]=f});const l=await a.arrayBuffer(),u=l==null?null:new Uint8Array(l);return{statusCode:a.status,statusMessage:a.statusText,headers:c,body:u}}return t}const _b=12,Fb=250;let t0=B1();const Db=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),Lb=new RegExp("^ipfs://(ipfs/)?(.*)$","i");let Zc=!1;async function k1(e,t){try{const n=e.match(Db);if(!n)throw new Error("invalid data");return new Nr(200,"OK",{"content-type":n[1]||"text/plain"},n[2]?Ob(n[3]):Hb(n[3]))}catch{return new Nr(599,"BAD REQUEST (invalid data: URI)",{},null,new Wn(e))}}function S1(e){async function t(n,r){try{const s=n.match(Lb);if(!s)throw new Error("invalid link");return new Wn(`${e}${s[2]}`)}catch{return new Nr(599,"BAD REQUEST (invalid IPFS URI)",{},null,new Wn(n))}}return t}const ga={data:k1,ipfs:S1("https://gateway.ipfs.io/ipfs/")},U1=new WeakMap;var Qr,ar;class Mb{constructor(t){P(this,Qr,void 0);P(this,ar,void 0);b(this,Qr,[]),b(this,ar,!1),U1.set(t,()=>{if(!h(this,ar)){b(this,ar,!0);for(const n of h(this,Qr))setTimeout(()=>{n()},0);b(this,Qr,[])}})}addListener(t){B(!h(this,ar),"singal already cancelled","UNSUPPORTED_OPERATION",{operation:"fetchCancelSignal.addCancelListener"}),h(this,Qr).push(t)}get cancelled(){return h(this,ar)}checkSignal(){B(!this.cancelled,"cancelled","CANCELLED",{})}}Qr=new WeakMap,ar=new WeakMap;function ba(e){if(e==null)throw new Error("missing signal; should not happen");return e.checkSignal(),e}var Ks,Js,je,Rn,js,Ws,zt,Ie,Tn,Vr,zr,Kr,un,Bn,cr,Jr,no;const rc=class{constructor(t){P(this,Jr);P(this,Ks,void 0);P(this,Js,void 0);P(this,je,void 0);P(this,Rn,void 0);P(this,js,void 0);P(this,Ws,void 0);P(this,zt,void 0);P(this,Ie,void 0);P(this,Tn,void 0);P(this,Vr,void 0);P(this,zr,void 0);P(this,Kr,void 0);P(this,un,void 0);P(this,Bn,void 0);P(this,cr,void 0);b(this,Ws,String(t)),b(this,Ks,!1),b(this,Js,!0),b(this,je,{}),b(this,Rn,""),b(this,js,3e5),b(this,Bn,{slotInterval:Fb,maxAttempts:_b}),b(this,cr,null)}get url(){return h(this,Ws)}set url(t){b(this,Ws,String(t))}get body(){return h(this,zt)==null?null:new Uint8Array(h(this,zt))}set body(t){if(t==null)b(this,zt,void 0),b(this,Ie,void 0);else if(typeof t=="string")b(this,zt,Kn(t)),b(this,Ie,"text/plain");else if(t instanceof Uint8Array)b(this,zt,t),b(this,Ie,"application/octet-stream");else if(typeof t=="object")b(this,zt,Kn(JSON.stringify(t))),b(this,Ie,"application/json");else throw new Error("invalid body")}hasBody(){return h(this,zt)!=null}get method(){return h(this,Rn)?h(this,Rn):this.hasBody()?"POST":"GET"}set method(t){t==null&&(t=""),b(this,Rn,String(t).toUpperCase())}get headers(){const t=Object.assign({},h(this,je));return h(this,Tn)&&(t.authorization=`Basic ${Rb(Kn(h(this,Tn)))}`),this.allowGzip&&(t["accept-encoding"]="gzip"),t["content-type"]==null&&h(this,Ie)&&(t["content-type"]=h(this,Ie)),this.body&&(t["content-length"]=String(this.body.length)),t}getHeader(t){return this.headers[t.toLowerCase()]}setHeader(t,n){h(this,je)[String(t).toLowerCase()]=String(n)}clearHeaders(){b(this,je,{})}[Symbol.iterator](){const t=this.headers,n=Object.keys(t);let r=0;return{next:()=>{if(r=0,"timeout must be non-zero","timeout",t),b(this,js,t)}get preflightFunc(){return h(this,Vr)||null}set preflightFunc(t){b(this,Vr,t)}get processFunc(){return h(this,zr)||null}set processFunc(t){b(this,zr,t)}get retryFunc(){return h(this,Kr)||null}set retryFunc(t){b(this,Kr,t)}get getUrlFunc(){return h(this,cr)||t0}set getUrlFunc(t){b(this,cr,t)}toString(){return``}setThrottleParams(t){t.slotInterval!=null&&(h(this,Bn).slotInterval=t.slotInterval),t.maxAttempts!=null&&(h(this,Bn).maxAttempts=t.maxAttempts)}send(){return B(h(this,un)==null,"request already sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.send"}),b(this,un,new Mb(this)),z(this,Jr,no).call(this,0,e0()+this.timeout,0,this,new Nr(0,"",{},null,this))}cancel(){B(h(this,un)!=null,"request has not been sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.cancel"});const t=U1.get(this);if(!t)throw new Error("missing signal; should not happen");t()}redirect(t){const n=this.url.split(":")[0].toLowerCase(),r=t.split(":")[0].toLowerCase();B(this.method==="GET"&&(n!=="https"||r!=="http")&&t.match(/^https?:/),"unsupported redirect","UNSUPPORTED_OPERATION",{operation:`redirect(${this.method} ${JSON.stringify(this.url)} => ${JSON.stringify(t)})`});const s=new rc(t);return s.method="GET",s.allowGzip=this.allowGzip,s.timeout=this.timeout,b(s,je,Object.assign({},h(this,je))),h(this,zt)&&b(s,zt,new Uint8Array(h(this,zt))),b(s,Ie,h(this,Ie)),s}clone(){const t=new rc(this.url);return b(t,Rn,h(this,Rn)),h(this,zt)&&b(t,zt,h(this,zt)),b(t,Ie,h(this,Ie)),b(t,je,Object.assign({},h(this,je))),b(t,Tn,h(this,Tn)),this.allowGzip&&(t.allowGzip=!0),t.timeout=this.timeout,this.allowInsecureAuthentication&&(t.allowInsecureAuthentication=!0),b(t,Vr,h(this,Vr)),b(t,zr,h(this,zr)),b(t,Kr,h(this,Kr)),b(t,cr,h(this,cr)),t}static lockConfig(){Zc=!0}static getGateway(t){return ga[t.toLowerCase()]||null}static registerGateway(t,n){if(t=t.toLowerCase(),t==="http"||t==="https")throw new Error(`cannot intercept ${t}; use registerGetUrl`);if(Zc)throw new Error("gateways locked");ga[t]=n}static registerGetUrl(t){if(Zc)throw new Error("gateways locked");t0=t}static createGetUrlFunc(t){return B1()}static createDataGateway(){return k1}static createIpfsGatewayFunc(t){return S1(t)}};let Wn=rc;Ks=new WeakMap,Js=new WeakMap,je=new WeakMap,Rn=new WeakMap,js=new WeakMap,Ws=new WeakMap,zt=new WeakMap,Ie=new WeakMap,Tn=new WeakMap,Vr=new WeakMap,zr=new WeakMap,Kr=new WeakMap,un=new WeakMap,Bn=new WeakMap,cr=new WeakMap,Jr=new WeakSet,no=async function(t,n,r,s,i){var u,f,d;if(t>=h(this,Bn).maxAttempts)return i.makeServerError("exceeded maximum retry limit");B(e0()<=n,"timeout","TIMEOUT",{operation:"request.send",reason:"timeout",request:s}),r>0&&await Gb(r);let o=this.clone();const a=(o.url.split(":")[0]||"").toLowerCase();if(a in ga){const g=await ga[a](o.url,ba(h(s,un)));if(g instanceof Nr){let w=g;if(this.processFunc){ba(h(s,un));try{w=await this.processFunc(o,w)}catch(y){(y.throttle==null||typeof y.stall!="number")&&w.makeServerError("error in post-processing function",y).assertOk()}}return w}o=g}this.preflightFunc&&(o=await this.preflightFunc(o));const c=await this.getUrlFunc(o,ba(h(s,un)));let l=new Nr(c.statusCode,c.statusMessage,c.headers,c.body,s);if(l.statusCode===301||l.statusCode===302){try{const g=l.headers.location||"";return z(u=o.redirect(g),Jr,no).call(u,t+1,n,0,s,l)}catch{}return l}else if(l.statusCode===429&&(this.retryFunc==null||await this.retryFunc(o,l,t))){const g=l.headers["retry-after"];let w=h(this,Bn).slotInterval*Math.trunc(Math.random()*Math.pow(2,t));return typeof g=="string"&&g.match(/^[1-9][0-9]*$/)&&(w=parseInt(g)),z(f=o.clone(),Jr,no).call(f,t+1,n,w,s,l)}if(this.processFunc){ba(h(s,un));try{l=await this.processFunc(o,l)}catch(g){(g.throttle==null||typeof g.stall!="number")&&l.makeServerError("error in post-processing function",g).assertOk();let w=h(this,Bn).slotInterval*Math.trunc(Math.random()*Math.pow(2,t));return g.stall>=0&&(w=g.stall),z(d=o.clone(),Jr,no).call(d,t+1,n,w,s,l)}}return l};var Mo,Ho,Go,We,Zs,jr;const Zu=class{constructor(t,n,r,s,i){P(this,Mo,void 0);P(this,Ho,void 0);P(this,Go,void 0);P(this,We,void 0);P(this,Zs,void 0);P(this,jr,void 0);b(this,Mo,t),b(this,Ho,n),b(this,Go,Object.keys(r).reduce((o,a)=>(o[a.toLowerCase()]=String(r[a]),o),{})),b(this,We,s==null?null:new Uint8Array(s)),b(this,Zs,i||null),b(this,jr,{message:""})}toString(){return``}get statusCode(){return h(this,Mo)}get statusMessage(){return h(this,Ho)}get headers(){return Object.assign({},h(this,Go))}get body(){return h(this,We)==null?null:new Uint8Array(h(this,We))}get bodyText(){try{return h(this,We)==null?"":Nu(h(this,We))}catch{B(!1,"response body is not valid UTF-8 data","UNSUPPORTED_OPERATION",{operation:"bodyText",info:{response:this}})}}get bodyJson(){try{return JSON.parse(this.bodyText)}catch{B(!1,"response body is not valid JSON","UNSUPPORTED_OPERATION",{operation:"bodyJson",info:{response:this}})}}[Symbol.iterator](){const t=this.headers,n=Object.keys(t);let r=0;return{next:()=>{if(r=0,"invalid stall timeout","stall",n);const r=new Error(t||"throttling requests");throw nt(r,{stall:n,throttle:!0}),r}getHeader(t){return this.headers[t.toLowerCase()]}hasBody(){return h(this,We)!=null}get request(){return h(this,Zs)}ok(){return h(this,jr).message===""&&this.statusCode>=200&&this.statusCode<300}assertOk(){if(this.ok())return;let{message:t,error:n}=h(this,jr);t===""&&(t=`server response ${this.statusCode} ${this.statusMessage}`),B(!1,t,"SERVER_ERROR",{request:this.request||"unknown request",response:this,error:n})}};let Nr=Zu;Mo=new WeakMap,Ho=new WeakMap,Go=new WeakMap,We=new WeakMap,Zs=new WeakMap,jr=new WeakMap;function e0(){return new Date().getTime()}function Hb(e){return Kn(e.replace(/%([0-9a-f][0-9a-f])/gi,(t,n)=>String.fromCharCode(parseInt(n,16))))}function Gb(e){return new Promise(t=>setTimeout(t,e))}function Qb(e){let t=e.toString(16);for(;t.length<2;)t="0"+t;return"0x"+t}function n0(e,t,n){let r=0;for(let s=0;s{B(r<=e.length,"data short segment too short","BUFFER_OVERRUN",{buffer:e,length:e.length,offset:r})};if(e[t]>=248){const r=e[t]-247;n(t+1+r);const s=n0(e,t+1,r);return n(t+1+r+s),r0(e,t,t+1+r,r+s)}else if(e[t]>=192){const r=e[t]-192;return n(t+1+r),r0(e,t,t+1,r)}else if(e[t]>=184){const r=e[t]-183;n(t+1+r);const s=n0(e,t+1,r);n(t+1+r+s);const i=q(e.slice(t+1+r,t+1+r+s));return{consumed:1+r+s,result:i}}else if(e[t]>=128){const r=e[t]-128;n(t+1+r);const s=q(e.slice(t+1,t+1+r));return{consumed:1+r,result:s}}return{consumed:1,result:Qb(e[t])}}function Iu(e){const t=bt(e,"data"),n=_1(t,0);return E(n.consumed===t.length,"unexpected junk after rlp payload","data",e),n.result}function s0(e){const t=[];for(;e;)t.unshift(e&255),e>>=8;return t}function F1(e){if(Array.isArray(e)){let r=[];if(e.forEach(function(i){r=r.concat(F1(i))}),r.length<=55)return r.unshift(192+r.length),r;const s=s0(r.length);return s.unshift(247+s.length),s.concat(r)}const t=Array.prototype.slice.call(bt(e,"object"));if(t.length===1&&t[0]<=127)return t;if(t.length<=55)return t.unshift(128+t.length),t;const n=s0(t.length);return n.unshift(183+n.length),n.concat(t)}const i0="0123456789abcdef";function Oo(e){let t="0x";for(const n of F1(e))t+=i0[n>>4],t+=i0[n&15];return t}const ue=32,Il=new Uint8Array(ue),Vb=["then"],ma={};function Xi(e,t){const n=new Error(`deferred error during ABI decoding triggered accessing ${e}`);throw n.error=t,n}var lr;const yo=class extends Array{constructor(...n){const r=n[0];let s=n[1],i=(n[2]||[]).slice(),o=!0;r!==ma&&(s=n,i=[],o=!1);super(s.length);P(this,lr,void 0);s.forEach((c,l)=>{this[l]=c});const a=i.reduce((c,l)=>(typeof l=="string"&&c.set(l,(c.get(l)||0)+1),c),new Map);if(b(this,lr,Object.freeze(s.map((c,l)=>{const u=i[l];return u!=null&&a.get(u)===1?u:null}))),!!o)return Object.freeze(this),new Proxy(this,{get:(c,l,u)=>{if(typeof l=="string"){if(l.match(/^[0-9]+$/)){const d=ft(l,"%index");if(d<0||d>=this.length)throw new RangeError("out of result range");const g=c[d];return g instanceof Error&&Xi(`index ${d}`,g),g}if(Vb.indexOf(l)>=0)return Reflect.get(c,l,u);const f=c[l];if(f instanceof Function)return function(...d){return f.apply(this===u?c:this,d)};if(!(l in c))return c.getValue.apply(this===u?c:this,[l])}return Reflect.get(c,l,u)}})}toArray(){const n=[];return this.forEach((r,s)=>{r instanceof Error&&Xi(`index ${s}`,r),n.push(r)}),n}toObject(){return h(this,lr).reduce((n,r,s)=>(B(r!=null,"value at index ${ index } unnamed","UNSUPPORTED_OPERATION",{operation:"toObject()"}),r in n||(n[r]=this.getValue(r)),n),{})}slice(n,r){n==null&&(n=0),n<0&&(n+=this.length,n<0&&(n=0)),r==null&&(r=this.length),r<0&&(r+=this.length,r<0&&(r=0)),r>this.length&&(r=this.length);const s=[],i=[];for(let o=n;o{h(this,kn)[t]=o0(n)}}}kn=new WeakMap,Wr=new WeakMap,Ys=new WeakSet,Oa=function(t){return h(this,kn).push(t),b(this,Wr,h(this,Wr)+t.length),t.length};var ge,Oe,Zr,Yr,ur,Qo,Tl,sc,D1;const Yu=class{constructor(t,n,r){P(this,Qo);P(this,sc);v(this,"allowLoose");P(this,ge,void 0);P(this,Oe,void 0);P(this,Zr,void 0);P(this,Yr,void 0);P(this,ur,void 0);nt(this,{allowLoose:!!n}),b(this,ge,le(t)),b(this,Zr,0),b(this,Yr,null),b(this,ur,r!=null?r:1024),b(this,Oe,0)}get data(){return q(h(this,ge))}get dataLength(){return h(this,ge).length}get consumed(){return h(this,Oe)}get bytes(){return new Uint8Array(h(this,ge))}subReader(t){const n=new Yu(h(this,ge).slice(h(this,Oe)+t),this.allowLoose,h(this,ur));return b(n,Yr,this),n}readBytes(t,n){let r=z(this,sc,D1).call(this,0,t,!!n);return z(this,Qo,Tl).call(this,t),b(this,Oe,h(this,Oe)+r.length),r.slice(0,t)}readValue(){return Cu(this.readBytes(ue))}readIndex(){return Nb(this.readBytes(ue))}};let Rl=Yu;ge=new WeakMap,Oe=new WeakMap,Zr=new WeakMap,Yr=new WeakMap,ur=new WeakMap,Qo=new WeakSet,Tl=function(t){var n;if(h(this,Yr))return z(n=h(this,Yr),Qo,Tl).call(n,t);b(this,Zr,h(this,Zr)+t),B(h(this,ur)<1||h(this,Zr)<=h(this,ur)*this.dataLength,`compressed ABI data exceeds inflation ratio of ${h(this,ur)} ( see: https://github.com/ethers-io/ethers.js/issues/4537 )`,"BUFFER_OVERRUN",{buffer:le(h(this,ge)),offset:h(this,Oe),length:t,info:{bytesRead:h(this,Zr),dataLength:this.dataLength}})},sc=new WeakSet,D1=function(t,n,r){let s=Math.ceil(n/ue)*ue;return h(this,Oe)+s>h(this,ge).length&&(this.allowLoose&&r&&h(this,Oe)+n<=h(this,ge).length?s=n:B(!1,"data out-of-bounds","BUFFER_OVERRUN",{buffer:le(h(this,ge)),length:h(this,ge).length,offset:h(this,Oe)+s})),h(this,ge).slice(h(this,Oe),h(this,Oe)+s)};function Wa(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function Ou(e,...t){if(!(e instanceof Uint8Array))throw new Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw new Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function zb(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");Wa(e.outputLen),Wa(e.blockLen)}function Fi(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function L1(e,t){Ou(e);const n=t.outputLen;if(e.lengthe instanceof Uint8Array,Kb=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),qc=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),ln=(e,t)=>e<<32-t|e>>>t,Jb=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!Jb)throw new Error("Non little-endian hardware is not supported");function jb(e){if(typeof e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function Rc(e){if(typeof e=="string"&&(e=jb(e)),!M1(e))throw new Error(`expected Uint8Array, got ${typeof e}`);return e}function Wb(...e){const t=new Uint8Array(e.reduce((r,s)=>r+s.length,0));let n=0;return e.forEach(r=>{if(!M1(r))throw new Error("Uint8Array expected");t.set(r,n),n+=r.length}),t}class Ru{clone(){return this._cloneInto()}}function H1(e){const t=r=>e().update(Rc(r)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function Zb(e=32){if(Yc&&typeof Yc.getRandomValues=="function")return Yc.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}class G1 extends Ru{constructor(t,n){super(),this.finished=!1,this.destroyed=!1,zb(t);const r=Rc(n);if(this.iHash=t.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const s=this.blockLen,i=new Uint8Array(s);i.set(r.length>s?t.create().update(r).digest():r);for(let o=0;onew G1(e,t).update(n).digest();Q1.create=(e,t)=>new G1(e,t);function Yb(e,t,n,r){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,n,r);const s=BigInt(32),i=BigInt(4294967295),o=Number(n>>s&i),a=Number(n&i),c=r?4:0,l=r?0:4;e.setUint32(t+c,o,r),e.setUint32(t+l,a,r)}class qb extends Ru{constructor(t,n,r,s){super(),this.blockLen=t,this.outputLen=n,this.padOffset=r,this.isLE=s,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=qc(this.buffer)}update(t){Fi(this);const{view:n,buffer:r,blockLen:s}=this;t=Rc(t);const i=t.length;for(let o=0;os-o&&(this.process(r,0),o=0);for(let f=o;fu.length)throw new Error("_sha2: outputLen bigger than state");for(let f=0;fe&t^~e&n,$b=(e,t,n)=>e&t^e&n^t&n,tm=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),tr=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),er=new Uint32Array(64);class em extends qb{constructor(){super(64,32,8,!1),this.A=tr[0]|0,this.B=tr[1]|0,this.C=tr[2]|0,this.D=tr[3]|0,this.E=tr[4]|0,this.F=tr[5]|0,this.G=tr[6]|0,this.H=tr[7]|0}get(){const{A:t,B:n,C:r,D:s,E:i,F:o,G:a,H:c}=this;return[t,n,r,s,i,o,a,c]}set(t,n,r,s,i,o,a,c){this.A=t|0,this.B=n|0,this.C=r|0,this.D=s|0,this.E=i|0,this.F=o|0,this.G=a|0,this.H=c|0}process(t,n){for(let f=0;f<16;f++,n+=4)er[f]=t.getUint32(n,!1);for(let f=16;f<64;f++){const d=er[f-15],g=er[f-2],w=ln(d,7)^ln(d,18)^d>>>3,y=ln(g,17)^ln(g,19)^g>>>10;er[f]=y+er[f-7]+w+er[f-16]|0}let{A:r,B:s,C:i,D:o,E:a,F:c,G:l,H:u}=this;for(let f=0;f<64;f++){const d=ln(a,6)^ln(a,11)^ln(a,25),g=u+d+Xb(a,c,l)+tm[f]+er[f]|0,y=(ln(r,2)^ln(r,13)^ln(r,22))+$b(r,s,i)|0;u=l,l=c,c=a,a=o+g|0,o=i,i=s,s=r,r=g+y|0}r=r+this.A|0,s=s+this.B|0,i=i+this.C|0,o=o+this.D|0,a=a+this.E|0,c=c+this.F|0,l=l+this.G|0,u=u+this.H|0,this.set(r,s,i,o,a,c,l,u)}roundClean(){er.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const nm=H1(()=>new em),ya=BigInt(2**32-1),a0=BigInt(32);function rm(e,t=!1){return t?{h:Number(e&ya),l:Number(e>>a0&ya)}:{h:Number(e>>a0&ya)|0,l:Number(e&ya)|0}}function sm(e,t=!1){let n=new Uint32Array(e.length),r=new Uint32Array(e.length);for(let s=0;se<>>32-n,om=(e,t,n)=>t<>>32-n,am=(e,t,n)=>t<>>64-n,cm=(e,t,n)=>e<>>64-n,[V1,z1,K1]=[[],[],[]],lm=BigInt(0),$i=BigInt(1),um=BigInt(2),fm=BigInt(7),hm=BigInt(256),dm=BigInt(113);for(let e=0,t=$i,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],V1.push(2*(5*r+n)),z1.push((e+1)*(e+2)/2%64);let s=lm;for(let i=0;i<7;i++)t=(t<<$i^(t>>fm)*dm)%hm,t&um&&(s^=$i<<($i<n>32?am(e,t,n):im(e,t,n),l0=(e,t,n)=>n>32?cm(e,t,n):om(e,t,n);function bm(e,t=24){const n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let o=0;o<10;o++)n[o]=e[o]^e[o+10]^e[o+20]^e[o+30]^e[o+40];for(let o=0;o<10;o+=2){const a=(o+8)%10,c=(o+2)%10,l=n[c],u=n[c+1],f=c0(l,u,1)^n[a],d=l0(l,u,1)^n[a+1];for(let g=0;g<50;g+=10)e[o+g]^=f,e[o+g+1]^=d}let s=e[2],i=e[3];for(let o=0;o<24;o++){const a=z1[o],c=c0(s,i,a),l=l0(s,i,a),u=V1[o];s=e[u],i=e[u+1],e[u]=c,e[u+1]=l}for(let o=0;o<50;o+=10){for(let a=0;a<10;a++)n[a]=e[o+a];for(let a=0;a<10;a++)e[o+a]^=~n[(a+2)%10]&n[(a+4)%10]}e[0]^=pm[r],e[1]^=gm[r]}n.fill(0)}class Tu extends Ru{constructor(t,n,r,s=!1,i=24){if(super(),this.blockLen=t,this.suffix=n,this.outputLen=r,this.enableXOF=s,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,Wa(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=Kb(this.state)}keccak(){bm(this.state32,this.rounds),this.posOut=0,this.pos=0}update(t){Fi(this);const{blockLen:n,state:r}=this;t=Rc(t);const s=t.length;for(let i=0;i=r&&this.keccak();const o=Math.min(r-this.posOut,i-s);t.set(n.subarray(this.posOut,this.posOut+o),s),this.posOut+=o,s+=o}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return Wa(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(L1(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(t){const{blockLen:n,suffix:r,outputLen:s,rounds:i,enableXOF:o}=this;return t||(t=new Tu(n,r,s,o,i)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=i,t.suffix=r,t.outputLen=s,t.enableXOF=o,t.destroyed=this.destroyed,t}}const mm=(e,t,n)=>H1(()=>new Tu(t,e,n)),ym=mm(1,136,256/8);let J1=!1;const j1=function(e){return ym(e)};let W1=j1;function kt(e){const t=bt(e,"data");return q(W1(t))}kt._=j1;kt.lock=function(){J1=!0};kt.register=function(e){if(J1)throw new TypeError("keccak256 is locked");W1=e};Object.freeze(kt);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Z1=BigInt(0),Tc=BigInt(1),wm=BigInt(2),Bc=e=>e instanceof Uint8Array,Am=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Di(e){if(!Bc(e))throw new Error("Uint8Array expected");let t="";for(let n=0;nr+s.length,0));let n=0;return e.forEach(r=>{if(!Bc(r))throw new Error("Uint8Array expected");t.set(r,n),n+=r.length}),t}function xm(e,t){if(e.length!==t.length)return!1;for(let n=0;nZ1;e>>=Tc,t+=1);return t}function Cm(e,t){return e>>BigInt(t)&Tc}const Nm=(e,t,n)=>e|(n?Tc:Z1)<(wm<new Uint8Array(e),u0=e=>Uint8Array.from(e);function q1(e,t,n){if(typeof e!="number"||e<2)throw new Error("hashLen must be a number");if(typeof t!="number"||t<2)throw new Error("qByteLen must be a number");if(typeof n!="function")throw new Error("hmacFn must be a function");let r=Xc(e),s=Xc(e),i=0;const o=()=>{r.fill(1),s.fill(0),i=0},a=(...f)=>n(s,r,...f),c=(f=Xc())=>{s=a(u0([0]),f),r=a(),f.length!==0&&(s=a(u0([1]),f),r=a())},l=()=>{if(i++>=1e3)throw new Error("drbg: tried 1000 values");let f=0;const d=[];for(;f{o(),c(f);let g;for(;!(g=d(l()));)c();return o(),g}}const Im={bigint:e=>typeof e=="bigint",function:e=>typeof e=="function",boolean:e=>typeof e=="boolean",string:e=>typeof e=="string",stringOrUint8Array:e=>typeof e=="string"||e instanceof Uint8Array,isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>typeof e=="function"&&Number.isSafeInteger(e.outputLen)};function ia(e,t,n={}){const r=(s,i,o)=>{const a=Im[i];if(typeof a!="function")throw new Error(`Invalid validator "${i}", expected function`);const c=e[s];if(!(o&&c===void 0)&&!a(c,e))throw new Error(`Invalid param ${String(s)}=${c} (${typeof c}), expected ${i}`)};for(const[s,i]of Object.entries(t))r(s,i,!1);for(const[s,i]of Object.entries(n))r(s,i,!0);return e}const Om=Object.freeze(Object.defineProperty({__proto__:null,bytesToHex:Di,numberToHexUnpadded:Y1,hexToNumber:Bu,hexToBytes:Li,bytesToNumberBE:hs,bytesToNumberLE:ku,numberToBytesBE:Mi,numberToBytesLE:Su,numberToVarBytesBE:Em,ensureBytes:Je,concatBytes:Ro,equalBytes:xm,utf8ToBytes:vm,bitLen:Pm,bitGet:Cm,bitSet:Nm,bitMask:Uu,createHmacDrbg:q1,validateObject:ia},Symbol.toStringTag,{value:"Module"}));/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Jt=BigInt(0),Dt=BigInt(1),Fr=BigInt(2),Rm=BigInt(3),Bl=BigInt(4),f0=BigInt(5),h0=BigInt(8);BigInt(9);BigInt(16);function ye(e,t){const n=e%t;return n>=Jt?n:t+n}function Tm(e,t,n){if(n<=Jt||t 0");if(n===Dt)return Jt;let r=Dt;for(;t>Jt;)t&Dt&&(r=r*e%n),e=e*e%n,t>>=Dt;return r}function Ue(e,t,n){let r=e;for(;t-- >Jt;)r*=r,r%=n;return r}function kl(e,t){if(e===Jt||t<=Jt)throw new Error(`invert: expected positive integers, got n=${e} mod=${t}`);let n=ye(e,t),r=t,s=Jt,i=Dt;for(;n!==Jt;){const a=r/n,c=r%n,l=s-i*a;r=n,n=c,s=i,i=l}if(r!==Dt)throw new Error("invert: does not exist");return ye(s,t)}function Bm(e){const t=(e-Dt)/Fr;let n,r,s;for(n=e-Dt,r=0;n%Fr===Jt;n/=Fr,r++);for(s=Fr;s(r[s]="function",r),t);return ia(e,n)}function _m(e,t,n){if(n 0");if(n===Jt)return e.ONE;if(n===Dt)return t;let r=e.ONE,s=t;for(;n>Jt;)n&Dt&&(r=e.mul(r,s)),s=e.sqr(s),n>>=Dt;return r}function Fm(e,t){const n=new Array(t.length),r=t.reduce((i,o,a)=>e.is0(o)?i:(n[a]=i,e.mul(i,o)),e.ONE),s=e.inv(r);return t.reduceRight((i,o,a)=>e.is0(o)?i:(n[a]=e.mul(i,n[a]),e.mul(i,o)),s),n}function X1(e,t){const n=t!==void 0?t:e.toString(2).length,r=Math.ceil(n/8);return{nBitLength:n,nByteLength:r}}function Dm(e,t,n=!1,r={}){if(e<=Jt)throw new Error(`Expected Field ORDER > 0, got ${e}`);const{nBitLength:s,nByteLength:i}=X1(e,t);if(i>2048)throw new Error("Field lengths over 2048 bytes are not supported");const o=km(e),a=Object.freeze({ORDER:e,BITS:s,BYTES:i,MASK:Uu(s),ZERO:Jt,ONE:Dt,create:c=>ye(c,e),isValid:c=>{if(typeof c!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof c}`);return Jt<=c&&cc===Jt,isOdd:c=>(c&Dt)===Dt,neg:c=>ye(-c,e),eql:(c,l)=>c===l,sqr:c=>ye(c*c,e),add:(c,l)=>ye(c+l,e),sub:(c,l)=>ye(c-l,e),mul:(c,l)=>ye(c*l,e),pow:(c,l)=>_m(a,c,l),div:(c,l)=>ye(c*kl(l,e),e),sqrN:c=>c*c,addN:(c,l)=>c+l,subN:(c,l)=>c-l,mulN:(c,l)=>c*l,inv:c=>kl(c,e),sqrt:r.sqrt||(c=>o(a,c)),invertBatch:c=>Fm(a,c),cmov:(c,l,u)=>u?l:c,toBytes:c=>n?Su(c,i):Mi(c,i),fromBytes:c=>{if(c.length!==i)throw new Error(`Fp.fromBytes: expected ${i}, got ${c.length}`);return n?ku(c):hs(c)}});return Object.freeze(a)}function $1(e){if(typeof e!="bigint")throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function td(e){const t=$1(e);return t+Math.ceil(t/2)}function Lm(e,t,n=!1){const r=e.length,s=$1(t),i=td(t);if(r<16||r1024)throw new Error(`expected ${i}-1024 bytes of input, got ${r}`);const o=n?hs(e):ku(e),a=ye(o,t-Dt)+Dt;return n?Su(a,s):Mi(a,s)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Mm=BigInt(0),$c=BigInt(1);function Hm(e,t){const n=(s,i)=>{const o=i.negate();return s?o:i},r=s=>{const i=Math.ceil(t/s)+1,o=2**(s-1);return{windows:i,windowSize:o}};return{constTimeNegate:n,unsafeLadder(s,i){let o=e.ZERO,a=s;for(;i>Mm;)i&$c&&(o=o.add(a)),a=a.double(),i>>=$c;return o},precomputeWindow(s,i){const{windows:o,windowSize:a}=r(i),c=[];let l=s,u=l;for(let f=0;f>=g,x>c&&(x-=d,o+=$c);const A=y,O=y+Math.abs(x)-1,R=w%2!==0,J=x<0;x===0?u=u.add(n(R,i[A])):l=l.add(n(J,i[O]))}return{p:l,f:u}},wNAFCached(s,i,o,a){const c=s._WINDOW_SIZE||1;let l=i.get(s);return l||(l=this.precomputeWindow(s,c),c!==1&&i.set(s,a(l))),this.wNAF(c,l,o)}}}function ed(e){return Um(e.Fp),ia(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...X1(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function Gm(e){const t=ed(e);ia(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:n,Fp:r,a:s}=t;if(n){if(!r.eql(s,r.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof n!="object"||typeof n.beta!="bigint"||typeof n.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}const{bytesToNumberBE:Qm,hexToBytes:Vm}=Om,Mr={Err:class extends Error{constructor(t=""){super(t)}},_parseInt(e){const{Err:t}=Mr;if(e.length<2||e[0]!==2)throw new t("Invalid signature integer tag");const n=e[1],r=e.subarray(2,n+2);if(!n||r.length!==n)throw new t("Invalid signature integer: wrong length");if(r[0]&128)throw new t("Invalid signature integer: negative");if(r[0]===0&&!(r[1]&128))throw new t("Invalid signature integer: unnecessary leading zero");return{d:Qm(r),l:e.subarray(n+2)}},toSig(e){const{Err:t}=Mr,n=typeof e=="string"?Vm(e):e;if(!(n instanceof Uint8Array))throw new Error("ui8a expected");let r=n.length;if(r<2||n[0]!=48)throw new t("Invalid signature tag");if(n[1]!==r-2)throw new t("Invalid signature: incorrect length");const{d:s,l:i}=Mr._parseInt(n.subarray(2)),{d:o,l:a}=Mr._parseInt(i);if(a.length)throw new t("Invalid signature: left bytes after parsing");return{r:s,s:o}},hexFromSig(e){const t=l=>Number.parseInt(l[0],16)&8?"00"+l:l,n=l=>{const u=l.toString(16);return u.length&1?`0${u}`:u},r=t(n(e.s)),s=t(n(e.r)),i=r.length/2,o=s.length/2,a=n(i),c=n(o);return`30${n(o+i+4)}02${c}${s}02${a}${r}`}},Qn=BigInt(0),Ge=BigInt(1);BigInt(2);const d0=BigInt(3);BigInt(4);function zm(e){const t=Gm(e),{Fp:n}=t,r=t.toBytes||((w,y,x)=>{const A=y.toAffine();return Ro(Uint8Array.from([4]),n.toBytes(A.x),n.toBytes(A.y))}),s=t.fromBytes||(w=>{const y=w.subarray(1),x=n.fromBytes(y.subarray(0,n.BYTES)),A=n.fromBytes(y.subarray(n.BYTES,2*n.BYTES));return{x,y:A}});function i(w){const{a:y,b:x}=t,A=n.sqr(w),O=n.mul(A,w);return n.add(n.add(O,n.mul(w,y)),x)}if(!n.eql(n.sqr(t.Gy),i(t.Gx)))throw new Error("bad generator point: equation left != right");function o(w){return typeof w=="bigint"&&Qnn.eql(R,n.ZERO);return O(x)&&O(A)?f.ZERO:new f(x,A,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(y){const x=n.invertBatch(y.map(A=>A.pz));return y.map((A,O)=>A.toAffine(x[O])).map(f.fromAffine)}static fromHex(y){const x=f.fromAffine(s(Je("pointHex",y)));return x.assertValidity(),x}static fromPrivateKey(y){return f.BASE.multiply(c(y))}_setWindowSize(y){this._WINDOW_SIZE=y,l.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&!n.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:y,y:x}=this.toAffine();if(!n.isValid(y)||!n.isValid(x))throw new Error("bad point: x or y not FE");const A=n.sqr(x),O=i(y);if(!n.eql(A,O))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y}=this.toAffine();if(n.isOdd)return!n.isOdd(y);throw new Error("Field doesn't support isOdd")}equals(y){u(y);const{px:x,py:A,pz:O}=this,{px:R,py:J,pz:Q}=y,G=n.eql(n.mul(x,Q),n.mul(R,O)),M=n.eql(n.mul(A,Q),n.mul(J,O));return G&&M}negate(){return new f(this.px,n.neg(this.py),this.pz)}double(){const{a:y,b:x}=t,A=n.mul(x,d0),{px:O,py:R,pz:J}=this;let Q=n.ZERO,G=n.ZERO,M=n.ZERO,L=n.mul(O,O),ht=n.mul(R,R),rt=n.mul(J,J),st=n.mul(O,R);return st=n.add(st,st),M=n.mul(O,J),M=n.add(M,M),Q=n.mul(y,M),G=n.mul(A,rt),G=n.add(Q,G),Q=n.sub(ht,G),G=n.add(ht,G),G=n.mul(Q,G),Q=n.mul(st,Q),M=n.mul(A,M),rt=n.mul(y,rt),st=n.sub(L,rt),st=n.mul(y,st),st=n.add(st,M),M=n.add(L,L),L=n.add(M,L),L=n.add(L,rt),L=n.mul(L,st),G=n.add(G,L),rt=n.mul(R,J),rt=n.add(rt,rt),L=n.mul(rt,st),Q=n.sub(Q,L),M=n.mul(rt,ht),M=n.add(M,M),M=n.add(M,M),new f(Q,G,M)}add(y){u(y);const{px:x,py:A,pz:O}=this,{px:R,py:J,pz:Q}=y;let G=n.ZERO,M=n.ZERO,L=n.ZERO;const ht=t.a,rt=n.mul(t.b,d0);let st=n.mul(x,R),vt=n.mul(A,J),Ut=n.mul(O,Q),_t=n.add(x,A),S=n.add(R,J);_t=n.mul(_t,S),S=n.add(st,vt),_t=n.sub(_t,S),S=n.add(x,O);let F=n.add(R,Q);return S=n.mul(S,F),F=n.add(st,Ut),S=n.sub(S,F),F=n.add(A,O),G=n.add(J,Q),F=n.mul(F,G),G=n.add(vt,Ut),F=n.sub(F,G),L=n.mul(ht,S),G=n.mul(rt,Ut),L=n.add(G,L),G=n.sub(vt,L),L=n.add(vt,L),M=n.mul(G,L),vt=n.add(st,st),vt=n.add(vt,st),Ut=n.mul(ht,Ut),S=n.mul(rt,S),vt=n.add(vt,Ut),Ut=n.sub(st,Ut),Ut=n.mul(ht,Ut),S=n.add(S,Ut),st=n.mul(vt,S),M=n.add(M,st),st=n.mul(F,S),G=n.mul(_t,G),G=n.sub(G,st),st=n.mul(_t,vt),L=n.mul(F,L),L=n.add(L,st),new f(G,M,L)}subtract(y){return this.add(y.negate())}is0(){return this.equals(f.ZERO)}wNAF(y){return g.wNAFCached(this,l,y,x=>{const A=n.invertBatch(x.map(O=>O.pz));return x.map((O,R)=>O.toAffine(A[R])).map(f.fromAffine)})}multiplyUnsafe(y){const x=f.ZERO;if(y===Qn)return x;if(a(y),y===Ge)return this;const{endo:A}=t;if(!A)return g.unsafeLadder(this,y);let{k1neg:O,k1:R,k2neg:J,k2:Q}=A.splitScalar(y),G=x,M=x,L=this;for(;R>Qn||Q>Qn;)R&Ge&&(G=G.add(L)),Q&Ge&&(M=M.add(L)),L=L.double(),R>>=Ge,Q>>=Ge;return O&&(G=G.negate()),J&&(M=M.negate()),M=new f(n.mul(M.px,A.beta),M.py,M.pz),G.add(M)}multiply(y){a(y);let x=y,A,O;const{endo:R}=t;if(R){const{k1neg:J,k1:Q,k2neg:G,k2:M}=R.splitScalar(x);let{p:L,f:ht}=this.wNAF(Q),{p:rt,f:st}=this.wNAF(M);L=g.constTimeNegate(J,L),rt=g.constTimeNegate(G,rt),rt=new f(n.mul(rt.px,R.beta),rt.py,rt.pz),A=L.add(rt),O=ht.add(st)}else{const{p:J,f:Q}=this.wNAF(x);A=J,O=Q}return f.normalizeZ([A,O])[0]}multiplyAndAddUnsafe(y,x,A){const O=f.BASE,R=(Q,G)=>G===Qn||G===Ge||!Q.equals(O)?Q.multiplyUnsafe(G):Q.multiply(G),J=R(this,x).add(R(y,A));return J.is0()?void 0:J}toAffine(y){const{px:x,py:A,pz:O}=this,R=this.is0();y==null&&(y=R?n.ONE:n.inv(O));const J=n.mul(x,y),Q=n.mul(A,y),G=n.mul(O,y);if(R)return{x:n.ZERO,y:n.ZERO};if(!n.eql(G,n.ONE))throw new Error("invZ was invalid");return{x:J,y:Q}}isTorsionFree(){const{h:y,isTorsionFree:x}=t;if(y===Ge)return!0;if(x)return x(f,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:y,clearCofactor:x}=t;return y===Ge?this:x?x(f,this):this.multiplyUnsafe(t.h)}toRawBytes(y=!0){return this.assertValidity(),r(f,this,y)}toHex(y=!0){return Di(this.toRawBytes(y))}}f.BASE=new f(t.Gx,t.Gy,n.ONE),f.ZERO=new f(n.ZERO,n.ONE,n.ZERO);const d=t.nBitLength,g=Hm(f,t.endo?Math.ceil(d/2):d);return{CURVE:t,ProjectivePoint:f,normPrivateKeyToScalar:c,weierstrassEquation:i,isWithinCurveOrder:o}}function Km(e){const t=ed(e);return ia(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}function Jm(e){const t=Km(e),{Fp:n,n:r}=t,s=n.BYTES+1,i=2*n.BYTES+1;function o(S){return QnDi(Mi(S,t.nByteLength));function w(S){const F=r>>Ge;return S>F}function y(S){return w(S)?a(-S):S}const x=(S,F,W)=>hs(S.slice(F,W));class A{constructor(F,W,$){this.r=F,this.s=W,this.recovery=$,this.assertValidity()}static fromCompact(F){const W=t.nByteLength;return F=Je("compactSignature",F,W*2),new A(x(F,0,W),x(F,W,2*W))}static fromDER(F){const{r:W,s:$}=Mr.toSig(Je("DER",F));return new A(W,$)}assertValidity(){if(!d(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!d(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(F){return new A(this.r,this.s,F)}recoverPublicKey(F){const{r:W,s:$,recovery:ut}=this,Pt=M(Je("msgHash",F));if(ut==null||![0,1,2,3].includes(ut))throw new Error("recovery id invalid");const Nt=ut===2||ut===3?W+t.n:W;if(Nt>=n.ORDER)throw new Error("recovery id 2 or 3 invalid");const Et=(ut&1)===0?"02":"03",se=l.fromHex(Et+g(Nt)),ve=c(Nt),I=a(-Pt*ve),V=a($*ve),D=l.BASE.multiplyAndAddUnsafe(se,I,V);if(!D)throw new Error("point at infinify");return D.assertValidity(),D}hasHighS(){return w(this.s)}normalizeS(){return this.hasHighS()?new A(this.r,a(-this.s),this.recovery):this}toDERRawBytes(){return Li(this.toDERHex())}toDERHex(){return Mr.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return Li(this.toCompactHex())}toCompactHex(){return g(this.r)+g(this.s)}}const O={isValidPrivateKey(S){try{return u(S),!0}catch{return!1}},normPrivateKeyToScalar:u,randomPrivateKey:()=>{const S=td(t.n);return Lm(t.randomBytes(S),t.n)},precompute(S=8,F=l.BASE){return F._setWindowSize(S),F.multiply(BigInt(3)),F}};function R(S,F=!0){return l.fromPrivateKey(S).toRawBytes(F)}function J(S){const F=S instanceof Uint8Array,W=typeof S=="string",$=(F||W)&&S.length;return F?$===s||$===i:W?$===2*s||$===2*i:S instanceof l}function Q(S,F,W=!0){if(J(S))throw new Error("first arg must be private key");if(!J(F))throw new Error("second arg must be public key");return l.fromHex(F).multiply(u(S)).toRawBytes(W)}const G=t.bits2int||function(S){const F=hs(S),W=S.length*8-t.nBitLength;return W>0?F>>BigInt(W):F},M=t.bits2int_modN||function(S){return a(G(S))},L=Uu(t.nBitLength);function ht(S){if(typeof S!="bigint")throw new Error("bigint expected");if(!(Qn<=S&&Sat in W))throw new Error("sign() legacy options not supported");const{hash:$,randomBytes:ut}=t;let{lowS:Pt,prehash:Nt,extraEntropy:Et}=W;Pt==null&&(Pt=!0),S=Je("msgHash",S),Nt&&(S=Je("prehashed msgHash",$(S)));const se=M(S),ve=u(F),I=[ht(ve),ht(se)];if(Et!=null){const at=Et===!0?ut(n.BYTES):Et;I.push(Je("extraEntropy",at))}const V=Ro(...I),D=se;function Y(at){const wt=G(at);if(!d(wt))return;const ct=c(wt),p=l.BASE.multiply(wt).toAffine(),m=a(p.x);if(m===Qn)return;const C=a(ct*a(D+m*ve));if(C===Qn)return;let N=(p.x===m?0:2)|Number(p.y&Ge),T=C;return Pt&&w(C)&&(T=y(C),N^=1),new A(m,T,N)}return{seed:V,k2sig:Y}}const st={lowS:t.lowS,prehash:!1},vt={lowS:t.lowS,prehash:!1};function Ut(S,F,W=st){const{seed:$,k2sig:ut}=rt(S,F,W),Pt=t;return q1(Pt.hash.outputLen,Pt.nByteLength,Pt.hmac)($,ut)}l.BASE._setWindowSize(8);function _t(S,F,W,$=vt){var p;const ut=S;if(F=Je("msgHash",F),W=Je("publicKey",W),"strict"in $)throw new Error("options.strict was renamed to lowS");const{lowS:Pt,prehash:Nt}=$;let Et,se;try{if(typeof ut=="string"||ut instanceof Uint8Array)try{Et=A.fromDER(ut)}catch(m){if(!(m instanceof Mr.Err))throw m;Et=A.fromCompact(ut)}else if(typeof ut=="object"&&typeof ut.r=="bigint"&&typeof ut.s=="bigint"){const{r:m,s:C}=ut;Et=new A(m,C)}else throw new Error("PARSE");se=l.fromHex(W)}catch(m){if(m.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(Pt&&Et.hasHighS())return!1;Nt&&(F=t.hash(F));const{r:ve,s:I}=Et,V=M(F),D=c(I),Y=a(V*D),at=a(ve*D),wt=(p=l.BASE.multiplyAndAddUnsafe(se,Y,at))==null?void 0:p.toAffine();return wt?a(wt.x)===ve:!1}return{CURVE:t,getPublicKey:R,getSharedSecret:Q,sign:Ut,verify:_t,ProjectivePoint:l,Signature:A,utils:O}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function jm(e){return{hash:e,hmac:(t,...n)=>Q1(e,t,Wb(...n)),randomBytes:Zb}}function Wm(e,t){const n=r=>Jm({...e,...jm(r)});return Object.freeze({...n(t),create:n})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const nd=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),p0=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),Zm=BigInt(1),Sl=BigInt(2),g0=(e,t)=>(e+t/Sl)/t;function Ym(e){const t=nd,n=BigInt(3),r=BigInt(6),s=BigInt(11),i=BigInt(22),o=BigInt(23),a=BigInt(44),c=BigInt(88),l=e*e*e%t,u=l*l*e%t,f=Ue(u,n,t)*u%t,d=Ue(f,n,t)*u%t,g=Ue(d,Sl,t)*l%t,w=Ue(g,s,t)*g%t,y=Ue(w,i,t)*w%t,x=Ue(y,a,t)*y%t,A=Ue(x,c,t)*x%t,O=Ue(A,a,t)*y%t,R=Ue(O,n,t)*u%t,J=Ue(R,o,t)*w%t,Q=Ue(J,r,t)*l%t,G=Ue(Q,Sl,t);if(!Ul.eql(Ul.sqr(G),e))throw new Error("Cannot find square root");return G}const Ul=Dm(nd,void 0,void 0,{sqrt:Ym}),nr=Wm({a:BigInt(0),b:BigInt(7),Fp:Ul,n:p0,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=p0,n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-Zm*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),s=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=n,o=BigInt("0x100000000000000000000000000000000"),a=g0(i*e,t),c=g0(-r*e,t);let l=ye(e-a*n-c*s,t),u=ye(-a*r-c*i,t);const f=l>o,d=u>o;if(f&&(l=t-l),d&&(u=t-u),l>o||u>o)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:f,k1:l,k2neg:d,k2:u}}}},nm);BigInt(0);nr.ProjectivePoint;const _l="0x0000000000000000000000000000000000000000",b0="0x0000000000000000000000000000000000000000000000000000000000000000",m0=BigInt(0),y0=BigInt(1),w0=BigInt(2),A0=BigInt(27),E0=BigInt(28),wa=BigInt(35),Cs={};function x0(e){return gs(ke(e),32)}var qs,Xs,$s,qr;const Ke=class{constructor(t,n,r,s){P(this,qs,void 0);P(this,Xs,void 0);P(this,$s,void 0);P(this,qr,void 0);Nc(t,Cs,"Signature"),b(this,qs,n),b(this,Xs,r),b(this,$s,s),b(this,qr,null)}get r(){return h(this,qs)}set r(t){E(Qs(t)===32,"invalid r","value",t),b(this,qs,q(t))}get s(){return h(this,Xs)}set s(t){E(Qs(t)===32,"invalid s","value",t);const n=q(t);E(parseInt(n.substring(0,3))<8,"non-canonical s","value",n),b(this,Xs,n)}get v(){return h(this,$s)}set v(t){const n=ft(t,"value");E(n===27||n===28,"invalid v","v",t),b(this,$s,n)}get networkV(){return h(this,qr)}get legacyChainId(){const t=this.networkV;return t==null?null:Ke.getChainId(t)}get yParity(){return this.v===27?0:1}get yParityAndS(){const t=bt(this.s);return this.yParity&&(t[0]|=128),q(t)}get compactSerialized(){return Qt([this.r,this.yParityAndS])}get serialized(){return Qt([this.r,this.s,this.yParity?"0x1c":"0x1b"])}[Symbol.for("nodejs.util.inspect.custom")](){return`Signature { r: "${this.r}", s: "${this.s}", yParity: ${this.yParity}, networkV: ${this.networkV} }`}clone(){const t=new Ke(Cs,this.r,this.s,this.v);return this.networkV&&b(t,qr,this.networkV),t}toJSON(){const t=this.networkV;return{_type:"signature",networkV:t!=null?t.toString():null,r:this.r,s:this.s,v:this.v}}static getChainId(t){const n=X(t,"v");return n==A0||n==E0?m0:(E(n>=wa,"invalid EIP-155 v","v",t),(n-wa)/w0)}static getChainIdV(t,n){return X(t)*w0+BigInt(35+n-27)}static getNormalizedV(t){const n=X(t);return n===m0||n===A0?27:n===y0||n===E0?28:(E(n>=wa,"invalid v","v",t),n&y0?27:28)}static from(t){function n(l,u){E(l,u,"signature",t)}if(t==null)return new Ke(Cs,b0,b0,27);if(typeof t=="string"){const l=bt(t,"signature");if(l.length===64){const u=q(l.slice(0,32)),f=l.slice(32,64),d=f[0]&128?28:27;return f[0]&=127,new Ke(Cs,u,q(f),d)}if(l.length===65){const u=q(l.slice(0,32)),f=l.slice(32,64);n((f[0]&128)===0,"non-canonical s");const d=Ke.getNormalizedV(l[64]);return new Ke(Cs,u,q(f),d)}n(!1,"invalid raw signature length")}if(t instanceof Ke)return t.clone();const r=t.r;n(r!=null,"missing r");const s=x0(r),i=function(l,u){if(l!=null)return x0(l);if(u!=null){n(St(u,32),"invalid yParityAndS");const f=bt(u);return f[0]&=127,q(f)}n(!1,"missing s")}(t.s,t.yParityAndS);n((bt(i)[0]&128)==0,"non-canonical s");const{networkV:o,v:a}=function(l,u,f){if(l!=null){const d=X(l);return{networkV:d>=wa?d:void 0,v:Ke.getNormalizedV(d)}}if(u!=null)return n(St(u,32),"invalid yParityAndS"),{v:bt(u)[0]&128?28:27};if(f!=null){switch(ft(f,"sig.yParity")){case 0:return{v:27};case 1:return{v:28}}n(!1,"invalid yParity")}n(!1,"missing v")}(t.v,t.yParityAndS,t.yParity),c=new Ke(Cs,s,i,a);return o&&b(c,qr,o),n(t.yParity==null||ft(t.yParity,"sig.yParity")===c.yParity,"yParity mismatch"),n(t.yParityAndS==null||t.yParityAndS===c.yParityAndS,"yParityAndS mismatch"),c}};let rn=Ke;qs=new WeakMap,Xs=new WeakMap,$s=new WeakMap,qr=new WeakMap;var Sn;const Dr=class{constructor(t){P(this,Sn,void 0);E(Qs(t)===32,"invalid private key","privateKey","[REDACTED]"),b(this,Sn,q(t))}get privateKey(){return h(this,Sn)}get publicKey(){return Dr.computePublicKey(h(this,Sn))}get compressedPublicKey(){return Dr.computePublicKey(h(this,Sn),!0)}sign(t){E(Qs(t)===32,"invalid digest length","digest",t);const n=nr.sign(le(t),le(h(this,Sn)),{lowS:!0});return rn.from({r:Rr(n.r,32),s:Rr(n.s,32),v:n.recovery?28:27})}computeSharedSecret(t){const n=Dr.computePublicKey(t);return q(nr.getSharedSecret(le(h(this,Sn)),bt(n),!1))}static computePublicKey(t,n){let r=bt(t,"key");if(r.length===32){const i=nr.getPublicKey(r,!!n);return q(i)}if(r.length===64){const i=new Uint8Array(65);i[0]=4,i.set(r,1),r=i}const s=nr.ProjectivePoint.fromHex(r);return q(s.toRawBytes(n))}static recoverPublicKey(t,n){E(Qs(t)===32,"invalid digest length","digest",t);const r=rn.from(n);let s=nr.Signature.fromCompact(le(Qt([r.r,r.s])));s=s.addRecoveryBit(r.yParity);const i=s.recoverPublicKey(le(t));return E(i!=null,"invalid signautre for digest","signature",n),"0x"+i.toHex(!1)}static addPoints(t,n,r){const s=nr.ProjectivePoint.fromHex(Dr.computePublicKey(t).substring(2)),i=nr.ProjectivePoint.fromHex(Dr.computePublicKey(n).substring(2));return"0x"+s.add(i).toHex(!!r)}};let To=Dr;Sn=new WeakMap;const qm=BigInt(0),Xm=BigInt(36);function v0(e){e=e.toLowerCase();const t=e.substring(2).split(""),n=new Uint8Array(40);for(let s=0;s<40;s++)n[s]=t[s].charCodeAt(0);const r=bt(kt(n));for(let s=0;s<40;s+=2)r[s>>1]>>4>=8&&(t[s]=t[s].toUpperCase()),(r[s>>1]&15)>=8&&(t[s+1]=t[s+1].toUpperCase());return"0x"+t.join("")}const _u={};for(let e=0;e<10;e++)_u[String(e)]=String(e);for(let e=0;e<26;e++)_u[String.fromCharCode(65+e)]=String(10+e);const P0=15;function $m(e){e=e.toUpperCase(),e=e.substring(4)+e.substring(0,2)+"00";let t=e.split("").map(r=>_u[r]).join("");for(;t.length>=P0;){let r=t.substring(0,P0);t=parseInt(r,10)%97+t.substring(r.length)}let n=String(98-parseInt(t,10)%97);for(;n.length<2;)n="0"+n;return n}const ty=function(){const e={};for(let t=0;t<36;t++){const n="0123456789abcdefghijklmnopqrstuvwxyz"[t];e[n]=BigInt(t)}return e}();function ey(e){e=e.toLowerCase();let t=qm;for(let n=0;nt.format()).join(",")})`:this.type}defaultValue(){return 0}minValue(){return 0}maxValue(){return 0}isBigInt(){return!!this.type.match(/^u?int[0-9]+$/)}isData(){return this.type.startsWith("bytes")}isString(){return this.type==="string"}get tupleName(){if(this.type!=="tuple")throw TypeError("not a tuple");return h(this,Xr)}get arrayLength(){if(this.type!=="array")throw TypeError("not an array");return h(this,Xr)===!0?-1:h(this,Xr)===!1?this.value.length:null}static from(t,n){return new In(Nn,t,n)}static uint8(t){return j(t,8)}static uint16(t){return j(t,16)}static uint24(t){return j(t,24)}static uint32(t){return j(t,32)}static uint40(t){return j(t,40)}static uint48(t){return j(t,48)}static uint56(t){return j(t,56)}static uint64(t){return j(t,64)}static uint72(t){return j(t,72)}static uint80(t){return j(t,80)}static uint88(t){return j(t,88)}static uint96(t){return j(t,96)}static uint104(t){return j(t,104)}static uint112(t){return j(t,112)}static uint120(t){return j(t,120)}static uint128(t){return j(t,128)}static uint136(t){return j(t,136)}static uint144(t){return j(t,144)}static uint152(t){return j(t,152)}static uint160(t){return j(t,160)}static uint168(t){return j(t,168)}static uint176(t){return j(t,176)}static uint184(t){return j(t,184)}static uint192(t){return j(t,192)}static uint200(t){return j(t,200)}static uint208(t){return j(t,208)}static uint216(t){return j(t,216)}static uint224(t){return j(t,224)}static uint232(t){return j(t,232)}static uint240(t){return j(t,240)}static uint248(t){return j(t,248)}static uint256(t){return j(t,256)}static uint(t){return j(t,256)}static int8(t){return j(t,-8)}static int16(t){return j(t,-16)}static int24(t){return j(t,-24)}static int32(t){return j(t,-32)}static int40(t){return j(t,-40)}static int48(t){return j(t,-48)}static int56(t){return j(t,-56)}static int64(t){return j(t,-64)}static int72(t){return j(t,-72)}static int80(t){return j(t,-80)}static int88(t){return j(t,-88)}static int96(t){return j(t,-96)}static int104(t){return j(t,-104)}static int112(t){return j(t,-112)}static int120(t){return j(t,-120)}static int128(t){return j(t,-128)}static int136(t){return j(t,-136)}static int144(t){return j(t,-144)}static int152(t){return j(t,-152)}static int160(t){return j(t,-160)}static int168(t){return j(t,-168)}static int176(t){return j(t,-176)}static int184(t){return j(t,-184)}static int192(t){return j(t,-192)}static int200(t){return j(t,-200)}static int208(t){return j(t,-208)}static int216(t){return j(t,-216)}static int224(t){return j(t,-224)}static int232(t){return j(t,-232)}static int240(t){return j(t,-240)}static int248(t){return j(t,-248)}static int256(t){return j(t,-256)}static int(t){return j(t,-256)}static bytes1(t){return gt(t,1)}static bytes2(t){return gt(t,2)}static bytes3(t){return gt(t,3)}static bytes4(t){return gt(t,4)}static bytes5(t){return gt(t,5)}static bytes6(t){return gt(t,6)}static bytes7(t){return gt(t,7)}static bytes8(t){return gt(t,8)}static bytes9(t){return gt(t,9)}static bytes10(t){return gt(t,10)}static bytes11(t){return gt(t,11)}static bytes12(t){return gt(t,12)}static bytes13(t){return gt(t,13)}static bytes14(t){return gt(t,14)}static bytes15(t){return gt(t,15)}static bytes16(t){return gt(t,16)}static bytes17(t){return gt(t,17)}static bytes18(t){return gt(t,18)}static bytes19(t){return gt(t,19)}static bytes20(t){return gt(t,20)}static bytes21(t){return gt(t,21)}static bytes22(t){return gt(t,22)}static bytes23(t){return gt(t,23)}static bytes24(t){return gt(t,24)}static bytes25(t){return gt(t,25)}static bytes26(t){return gt(t,26)}static bytes27(t){return gt(t,27)}static bytes28(t){return gt(t,28)}static bytes29(t){return gt(t,29)}static bytes30(t){return gt(t,30)}static bytes31(t){return gt(t,31)}static bytes32(t){return gt(t,32)}static address(t){return new In(Nn,"address",t)}static bool(t){return new In(Nn,"bool",!!t)}static bytes(t){return new In(Nn,"bytes",t)}static string(t){return new In(Nn,"string",t)}static array(t,n){throw new Error("not implemented yet")}static tuple(t,n){throw new Error("not implemented yet")}static overrides(t){return new In(Nn,"overrides",Object.assign({},t))}static isTyped(t){return t&&typeof t=="object"&&"_typedSymbol"in t&&t._typedSymbol===C0}static dereference(t,n){if(In.isTyped(t)){if(t.type!==n)throw new Error(`invalid type: expecetd ${n}, got ${t.type}`);return t.value}return t}};let re=In;Xr=new WeakMap;class ny extends qn{constructor(t){super("address","address",t,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(t,n){let r=re.dereference(n,"string");try{r=yt(r)}catch(s){return this._throwError(s.message,n)}return t.writeValue(r)}decode(t){return yt(Rr(t.readValue(),20))}}class ry extends qn{constructor(n){super(n.name,n.type,"_",n.dynamic);v(this,"coder");this.coder=n}defaultValue(){return this.coder.defaultValue()}encode(n,r){return this.coder.encode(n,r)}decode(n){return this.coder.decode(n)}}function id(e,t,n){let r=[];if(Array.isArray(n))r=n;else if(n&&typeof n=="object"){let c={};r=t.map(l=>{const u=l.localName;return B(u,"cannot encode object for signature with missing names","INVALID_ARGUMENT",{argument:"values",info:{coder:l},value:n}),B(!c[u],"cannot encode object for signature with duplicate names","INVALID_ARGUMENT",{argument:"values",info:{coder:l},value:n}),c[u]=!0,n[u]})}else E(!1,"invalid tuple value","tuple",n);E(t.length===r.length,"types/value length mismatch","tuple",n);let s=new Ol,i=new Ol,o=[];t.forEach((c,l)=>{let u=r[l];if(c.dynamic){let f=i.length;c.encode(i,u);let d=s.writeUpdatableValue();o.push(g=>{d(g+f)})}else c.encode(s,u)}),o.forEach(c=>{c(s.length)});let a=e.appendWriter(s);return a+=e.appendWriter(i),a}function od(e,t){let n=[],r=[],s=e.subReader(0);return t.forEach(i=>{let o=null;if(i.dynamic){let a=e.readIndex(),c=s.subReader(a);try{o=i.decode(c)}catch(l){if(ne(l,"BUFFER_OVERRUN"))throw l;o=l,o.baseType=i.name,o.name=i.localName,o.type=i.type}}else try{o=i.decode(e)}catch(a){if(ne(a,"BUFFER_OVERRUN"))throw a;o=a,o.baseType=i.name,o.name=i.localName,o.type=i.type}if(o==null)throw new Error("investigate");n.push(o),r.push(i.localName||null)}),ja.fromItems(n,r)}class sy extends qn{constructor(n,r,s){const i=n.type+"["+(r>=0?r:"")+"]",o=r===-1||n.dynamic;super("array",i,s,o);v(this,"coder");v(this,"length");nt(this,{coder:n,length:r})}defaultValue(){const n=this.coder.defaultValue(),r=[];for(let s=0;so||s<-(o+fy))&&this._throwError("value out-of-bounds",r),s=O1(s,8*ue)}else(seo(i,this.size*8))&&this._throwError("value out-of-bounds",r);return n.writeValue(s)}decode(n){let r=eo(n.readValue(),this.size*8);return this.signed&&(r=Cb(r,this.size*8)),r}}class py extends ad{constructor(t){super("string",t)}defaultValue(){return""}encode(t,n){return super.encode(t,Kn(re.dereference(n,"string")))}decode(t){return Nu(super.decode(t))}}class Aa extends qn{constructor(n,r){let s=!1;const i=[];n.forEach(a=>{a.dynamic&&(s=!0),i.push(a.type)});const o="tuple("+i.join(",")+")";super("tuple",o,r,s);v(this,"coders");nt(this,{coders:Object.freeze(n.slice())})}defaultValue(){const n=[];this.coders.forEach(s=>{n.push(s.defaultValue())});const r=this.coders.reduce((s,i)=>{const o=i.localName;return o&&(s[o]||(s[o]=0),s[o]++),s},{});return this.coders.forEach((s,i)=>{let o=s.localName;!o||r[o]!==1||(o==="length"&&(o="_length"),n[o]==null&&(n[o]=n[i]))}),Object.freeze(n)}encode(n,r){const s=re.dereference(r,"tuple");return id(n,this.coders,s)}decode(n){return od(n,this.coders)}}function bs(e){return kt(Kn(e))}var gy="AEEUdwmgDS8BxQKKAP4BOgDjATAAngDUAIMAoABoAOAAagCOAEQAhABMAHIAOwA9ACsANgAmAGIAHgAuACgAJwAXAC0AGgAjAB8ALwAUACkA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7y51fUV2nuUmnoUcqnWIQAAgl9LTVX+Bc0QGNEhChxHR4YjfE51PUdGfsSFE6ck7BL3/hTf9jLq4G1IafINxOLKeAtO7quulYvH5YOBc+zX7CrMgWnW47/jfRsWnJjYYoE7xMfWV2HN2iyIqLI";const N0=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]),I0=4;function by(e){let t=0;function n(){return e[t++]<<8|e[t++]}let r=n(),s=1,i=[0,1];for(let Q=1;Q>--c&1}const f=31,d=2**f,g=d>>>1,w=g>>1,y=d-1;let x=0;for(let Q=0;Q1;){let rt=G+M>>>1;Q>>1|u(),L=L<<1^g,ht=(ht^g)<<1|g|1;O=L,R=1+ht-L}let J=r-4;return A.map(Q=>{switch(Q-J){case 3:return J+65792+(e[a++]<<16|e[a++]<<8|e[a++]);case 2:return J+256+(e[a++]<<8|e[a++]);case 1:return J+e[a++];default:return Q-1}})}function my(e){let t=0;return()=>e[t++]}function cd(e){return my(by(yy(e)))}function yy(e){let t=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((s,i)=>t[s.charCodeAt(0)]=i);let n=e.length,r=new Uint8Array(6*n>>3);for(let s=0,i=0,o=0,a=0;s=8&&(r[i++]=a>>(o-=8));return r}function wy(e){return e&1?~e>>1:e>>1}function Ay(e,t){let n=Array(e);for(let r=0,s=0;r{let t=Bo(e);if(t.length)return t})}function ud(e){let t=[];for(;;){let n=e();if(n==0)break;t.push(Ey(n,e))}for(;;){let n=e()-1;if(n<0)break;t.push(xy(n,e))}return t.flat()}function ko(e){let t=[];for(;;){let n=e(t.length);if(!n)break;t.push(n)}return t}function fd(e,t,n){let r=Array(e).fill().map(()=>[]);for(let s=0;sr[o].push(i));return r}function Ey(e,t){let n=1+t(),r=t(),s=ko(t);return fd(s.length,1+e,t).flatMap((o,a)=>{let[c,...l]=o;return Array(s[a]).fill().map((u,f)=>{let d=f*r;return[c+f*n,l.map(g=>g+d)]})})}function xy(e,t){let n=1+t();return fd(n,1+e,t).map(s=>[s[0],s.slice(1)])}function vy(e){let t=[],n=Bo(e);return s(r([]),[]),t;function r(i){let o=e(),a=ko(()=>{let c=Bo(e).map(l=>n[l]);if(c.length)return r(c)});return{S:o,B:a,Q:i}}function s({S:i,B:o},a,c){if(!(i&4&&c===a[a.length-1])){i&2&&(c=a[a.length-1]),i&1&&t.push(a);for(let l of o)for(let u of l.Q)s(l,[...a,u],c)}}}function Py(e){return e.toString(16).toUpperCase().padStart(2,"0")}function hd(e){return`{${Py(e)}}`}function Cy(e){let t=[];for(let n=0,r=e.length;n>24&255}function gd(e){return e&16777215}let Fl,O0,Dl,Ra;function Sy(){let e=cd(Iy);Fl=new Map(ld(e).flatMap((t,n)=>t.map(r=>[r,n+1<<24]))),O0=new Set(Bo(e)),Dl=new Map,Ra=new Map;for(let[t,n]of ud(e)){if(!O0.has(t)&&n.length==2){let[r,s]=n,i=Ra.get(r);i||(i=new Map,Ra.set(r,i)),i.set(s,t)}Dl.set(t,n.reverse())}}function bd(e){return e>=So&&e=Za&&e=Ya&&tqa&&t0&&s(qa+l)}else{let o=Dl.get(i);o?n.push(...o):s(i)}if(!n.length)break;i=n.pop()}if(r&&t.length>1){let i=ro(t[0]);for(let o=1;o0&&s>=o)o==0?(t.push(r,...n),n.length=0,r=a):n.push(a),s=o;else{let c=Uy(r,a);c>=0?r=c:s==0&&o==0?(t.push(r),r=a):(n.push(a),s=o)}}return r>=0&&t.push(r,...n),t}function yd(e){return md(e).map(gd)}function Fy(e){return _y(md(e))}const R0=45,wd=".",Ad=65039,Ed=1,Fs=e=>Array.from(e);function Uo(e,t){return e.P.has(t)||e.Q.has(t)}class Dy extends Array{get is_emoji(){return!0}}let Ll,xd,Hr,Ml,vd,Vs,el,Ts,Pd,T0,Hl;function Fu(){if(Ll)return;let e=cd(gy);const t=()=>Bo(e),n=()=>new Set(t());Ll=new Map(ud(e)),xd=n(),Hr=t(),Ml=new Set(t().map(u=>Hr[u])),Hr=new Set(Hr),vd=n(),n();let r=ld(e),s=e();const i=()=>new Set(t().flatMap(u=>r[u]).concat(t()));Vs=ko(u=>{let f=ko(e).map(d=>d+96);if(f.length){let d=u>=s;f[0]-=32,f=Hi(f),d&&(f=`Restricted[${f}]`);let g=i(),w=i(),y=!e();return{N:f,P:g,Q:w,M:y,R:d}}}),el=n(),Ts=new Map;let o=t().concat(Fs(el)).sort((u,f)=>u-f);o.forEach((u,f)=>{let d=e(),g=o[f]=d?o[f-d]:{V:[],M:new Map};g.V.push(u),el.has(u)||Ts.set(u,g)});for(let{V:u,M:f}of new Set(Ts.values())){let d=[];for(let w of u){let y=Vs.filter(A=>Uo(A,w)),x=d.find(({G:A})=>y.some(O=>A.has(O)));x||(x={G:new Set,V:[]},d.push(x)),x.V.push(w),y.forEach(A=>x.G.add(A))}let g=d.flatMap(w=>Fs(w.G));for(let{G:w,V:y}of d){let x=new Set(g.filter(A=>!w.has(A)));for(let A of y)f.set(A,x)}}let a=new Set,c=new Set;const l=u=>a.has(u)?c.add(u):a.add(u);for(let u of Vs){for(let f of u.P)l(f);for(let f of u.Q)l(f)}for(let u of a)!Ts.has(u)&&!c.has(u)&&Ts.set(u,Ed);Pd=new Set(Fs(a).concat(Fs(yd(a)))),T0=vy(e).map(u=>Dy.from(u)).sort(Ny),Hl=new Map;for(let u of T0){let f=[Hl];for(let d of u){let g=f.map(w=>{let y=w.get(d);return y||(y=new Map,w.set(d,y)),y});d===Ad?f.push(...g):f=g}for(let d of f)d.V=u}}function Du(e){return(Cd(e)?"":`${Lu(kc([e]))} `)+hd(e)}function Lu(e){return`"${e}"\u200E`}function Ly(e){if(e.length>=4&&e[2]==R0&&e[3]==R0)throw new Error(`invalid label extension: "${Hi(e.slice(0,4))}"`)}function My(e){for(let n=e.lastIndexOf(95);n>0;)if(e[--n]!==95)throw new Error("underscore allowed only at start")}function Hy(e){let t=e[0],n=N0.get(t);if(n)throw go(`leading ${n}`);let r=e.length,s=-1;for(let i=1;i{let i=Cy(s),o={input:i,offset:r};r+=i.length+1;try{let a=o.tokens=Wy(i,t,n),c=a.length,l;if(!c)throw new Error("empty label");let u=o.output=a.flat();if(My(u),!(o.emoji=c>1||a[0].is_emoji)&&u.every(d=>d<128))Ly(u),l="ASCII";else{let d=a.flatMap(g=>g.is_emoji?[]:g);if(!d.length)l="Emoji";else{if(Hr.has(u[0]))throw go("leading combining mark");for(let y=1;yo.has(a)):Fs(o),!n.length)return}else r.push(s)}if(n){for(let s of n)if(r.every(i=>Uo(s,i)))throw new Error(`whole-script confusable: ${e.N}/${s.N}`)}}function Ky(e){let t=Vs;for(let n of e){let r=t.filter(s=>Uo(s,n));if(!r.length)throw Vs.some(s=>Uo(s,n))?Id(t[0],n):Nd(n);if(t=r,r.length==1)break}return t}function Jy(e){return e.map(({input:t,error:n,output:r})=>{if(n){let s=n.message;throw new Error(e.length==1?s:`Invalid label ${Lu(kc(t))}: ${s}`)}return Hi(r)}).join(wd)}function Nd(e){return new Error(`disallowed character: ${Du(e)}`)}function Id(e,t){let n=Du(t),r=Vs.find(s=>s.P.has(t));return r&&(n=`${r.N} ${n}`),new Error(`illegal mixture: ${e.N} + ${n}`)}function go(e){return new Error(`illegal placement: ${e}`)}function jy(e,t){for(let n of t)if(!Uo(e,n))throw Id(e,n);if(e.M){let n=yd(t);for(let r=1,s=n.length;rI0)throw new Error(`excessive non-spacing marks: ${Lu(kc(n.slice(r-1,i)))} (${i-r}/${I0})`);r=i}}}function Wy(e,t,n){let r=[],s=[];for(e=e.slice().reverse();e.length;){let i=Yy(e);if(i)s.length&&(r.push(t(s)),s=[]),r.push(n(i));else{let o=e.pop();if(Pd.has(o))s.push(o);else{let a=Ll.get(o);if(a)s.push(...a);else if(!xd.has(o))throw Nd(o)}}}return s.length&&r.push(t(s)),r}function Zy(e){return e.filter(t=>t!=Ad)}function Yy(e,t){let n=Hl,r,s=e.length;for(;s&&(n=n.get(e[--s]),!!n);){let{V:i}=n;i&&(r=i,t&&t.push(...e.slice(s).reverse()),e.length=s)}return r}const Od=new Uint8Array(32);Od.fill(0);function B0(e){return E(e.length!==0,"invalid ENS name; empty component","comp",e),e}function Rd(e){const t=Kn(qy(e)),n=[];if(e.length===0)return n;let r=0;for(let s=0;s{if(t.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");const n=new Uint8Array(t.length+1);return n.set(t,1),n[0]=n.length-1,n})))+"00"}function nl(e,t){return{address:yt(e),storageKeys:t.map((n,r)=>(E(St(n,32),"invalid slot",`storageKeys[${r}]`,n),n.toLowerCase()))}}function Es(e){if(Array.isArray(e))return e.map((n,r)=>Array.isArray(n)?(E(n.length===2,"invalid slot set",`value[${r}]`,n),nl(n[0],n[1])):(E(n!=null&&typeof n=="object","invalid address-slot set","value",e),nl(n.address,n.storageKeys)));E(e!=null&&typeof e=="object","invalid access list","value",e);const t=Object.keys(e).map(n=>{const r=e[n].reduce((s,i)=>(s[i]=!0,s),{});return nl(n,Object.keys(r).sort())});return t.sort((n,r)=>n.address.localeCompare(r.address)),t}function $y(e){let t;return typeof e=="string"?t=To.computePublicKey(e,!1):t=e.publicKey,yt(kt("0x"+t.substring(4)).substring(26))}function t2(e,t){return $y(To.recoverPublicKey(e,t))}const we=BigInt(0),e2=BigInt(2),n2=BigInt(27),r2=BigInt(28),s2=BigInt(35),i2=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function Mu(e){return e==="0x"?null:yt(e)}function Td(e,t){try{return Es(e)}catch(n){E(!1,n.message,t,e)}}function Sc(e,t){return e==="0x"?0:ft(e,t)}function ce(e,t){if(e==="0x")return we;const n=X(e,t);return E(n<=i2,"value exceeds uint size",t,n),n}function Wt(e,t){const n=X(e,"value"),r=ke(n);return E(r.length<=32,"value too large",`tx.${t}`,n),r}function Bd(e){return Es(e).map(t=>[t.address,t.storageKeys])}function o2(e){const t=Iu(e);E(Array.isArray(t)&&(t.length===9||t.length===6),"invalid field count for legacy transaction","data",e);const n={type:0,nonce:Sc(t[0],"nonce"),gasPrice:ce(t[1],"gasPrice"),gasLimit:ce(t[2],"gasLimit"),to:Mu(t[3]),value:ce(t[4],"value"),data:q(t[5]),chainId:we};if(t.length===6)return n;const r=ce(t[6],"v"),s=ce(t[7],"r"),i=ce(t[8],"s");if(s===we&&i===we)n.chainId=r;else{let o=(r-s2)/e2;o=this.maxPriorityFeePerGas,"priorityFee cannot be more than maxFee","BAD_DATA",{value:this}),B(!n||this.type!==0&&this.type!==1,"transaction type cannot have maxFeePerGas or maxPriorityFeePerGas","BAD_DATA",{value:this}),B(this.type!==0||!r,"legacy transaction cannot have accessList","BAD_DATA",{value:this});const s=[];return this.type!=null?s.push(this.type):n?s.push(2):t?(s.push(1),r||s.push(0)):r?(s.push(1),s.push(2)):(s.push(0),s.push(1),s.push(2)),s.sort(),s}isLegacy(){return this.type===0}isBerlin(){return this.type===1}isLondon(){return this.type===2}clone(){return or.from(this)}toJSON(){const t=n=>n==null?null:n.toString();return{type:this.type,to:this.to,data:this.data,nonce:this.nonce,gasLimit:t(this.gasLimit),gasPrice:t(this.gasPrice),maxPriorityFeePerGas:t(this.maxPriorityFeePerGas),maxFeePerGas:t(this.maxFeePerGas),value:t(this.value),chainId:t(this.chainId),sig:this.signature?this.signature.toJSON():null,accessList:this.accessList}}static from(t){if(t==null)return new or;if(typeof t=="string"){const r=bt(t);if(r[0]>=127)return or.from(o2(r));switch(r[0]){case 1:return or.from(c2(r));case 2:return or.from(a2(r))}B(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:"from"})}const n=new or;return t.type!=null&&(n.type=t.type),t.to!=null&&(n.to=t.to),t.nonce!=null&&(n.nonce=t.nonce),t.gasLimit!=null&&(n.gasLimit=t.gasLimit),t.gasPrice!=null&&(n.gasPrice=t.gasPrice),t.maxPriorityFeePerGas!=null&&(n.maxPriorityFeePerGas=t.maxPriorityFeePerGas),t.maxFeePerGas!=null&&(n.maxFeePerGas=t.maxFeePerGas),t.data!=null&&(n.data=t.data),t.value!=null&&(n.value=t.value),t.chainId!=null&&(n.chainId=t.chainId),t.signature!=null&&(n.signature=rn.from(t.signature)),t.accessList!=null&&(n.accessList=t.accessList),t.hash!=null&&(E(n.isSigned(),"unsigned transaction cannot define hash","tx",t),E(n.hash===t.hash,"hash mismatch","tx",t)),t.from!=null&&(E(n.isSigned(),"unsigned transaction cannot define from","tx",t),E(n.from.toLowerCase()===(t.from||"").toLowerCase(),"from mismatch","tx",t)),n}};let $a=or;Un=new WeakMap,ti=new WeakMap,ei=new WeakMap,ni=new WeakMap,ri=new WeakMap,si=new WeakMap,ii=new WeakMap,oi=new WeakMap,ai=new WeakMap,ci=new WeakMap,li=new WeakMap,ui=new WeakMap;const Sd=new Uint8Array(32);Sd.fill(0);const l2=BigInt(-1),Ud=BigInt(0),_d=BigInt(1),u2=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function f2(e){const t=bt(e),n=t.length%32;return n?Qt([t,Sd.slice(n)]):q(t)}const h2=Rr(_d,32),d2=Rr(Ud,32),_0={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},rl=["name","version","chainId","verifyingContract","salt"];function F0(e){return function(t){return E(typeof t=="string",`invalid domain value for ${JSON.stringify(e)}`,`domain.${e}`,t),t}}const p2={name:F0("name"),version:F0("version"),chainId:function(e){const t=X(e,"domain.chainId");return E(t>=0,"invalid chain ID","domain.chainId",e),Number.isSafeInteger(t)?Number(t):_s(t)},verifyingContract:function(e){try{return yt(e).toLowerCase()}catch{}E(!1,'invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){const t=bt(e,"domain.salt");return E(t.length===32,'invalid domain value "salt"',"domain.salt",e),q(t)}};function sl(e){{const t=e.match(/^(u?)int(\d*)$/);if(t){const n=t[1]==="",r=parseInt(t[2]||"256");E(r%8===0&&r!==0&&r<=256&&(t[2]==null||t[2]===String(r)),"invalid numeric width","type",e);const s=eo(u2,n?r-1:r),i=n?(s+_d)*l2:Ud;return function(o){const a=X(o,"value");return E(a>=i&&a<=s,`value out-of-bounds for ${e}`,"value",a),Rr(n?O1(a,256):a,32)}}}{const t=e.match(/^bytes(\d+)$/);if(t){const n=parseInt(t[1]);return E(n!==0&&n<=32&&t[1]===String(n),"invalid bytes width","type",e),function(r){const s=bt(r);return E(s.length===n,`invalid length for ${e}`,"value",r),f2(r)}}}switch(e){case"address":return function(t){return gs(yt(t),32)};case"bool":return function(t){return t?h2:d2};case"bytes":return function(t){return kt(t)};case"string":return function(t){return bs(t)}}return null}function D0(e,t){return`${e}(${t.map(({name:n,type:r})=>r+" "+n).join(",")})`}var Vo,_n,fi,ic,Fd;const _e=class{constructor(t){P(this,ic);v(this,"primaryType");P(this,Vo,void 0);P(this,_n,void 0);P(this,fi,void 0);b(this,Vo,JSON.stringify(t)),b(this,_n,new Map),b(this,fi,new Map);const n=new Map,r=new Map,s=new Map;Object.keys(t).forEach(a=>{n.set(a,new Set),r.set(a,[]),s.set(a,new Set)});for(const a in t){const c=new Set;for(const l of t[a]){E(!c.has(l.name),`duplicate variable name ${JSON.stringify(l.name)} in ${JSON.stringify(a)}`,"types",t),c.add(l.name);const u=l.type.match(/^([^\x5b]*)(\x5b|$)/)[1]||null;E(u!==a,`circular type reference to ${JSON.stringify(u)}`,"types",t),!sl(u)&&(E(r.has(u),`unknown type ${JSON.stringify(u)}`,"types",t),r.get(u).push(a),n.get(a).add(u))}}const i=Array.from(r.keys()).filter(a=>r.get(a).length===0);E(i.length!==0,"missing primary type","types",t),E(i.length===1,`ambiguous primary types or unused types: ${i.map(a=>JSON.stringify(a)).join(", ")}`,"types",t),nt(this,{primaryType:i[0]});function o(a,c){E(!c.has(a),`circular type reference to ${JSON.stringify(a)}`,"types",t),c.add(a);for(const l of n.get(a))if(!!r.has(l)){o(l,c);for(const u of c)s.get(u).add(l)}c.delete(a)}o(this.primaryType,new Set);for(const[a,c]of s){const l=Array.from(c);l.sort(),h(this,_n).set(a,D0(a,t[a])+l.map(u=>D0(u,t[u])).join(""))}}get types(){return JSON.parse(h(this,Vo))}getEncoder(t){let n=h(this,fi).get(t);return n||(n=z(this,ic,Fd).call(this,t),h(this,fi).set(t,n)),n}encodeType(t){const n=h(this,_n).get(t);return E(n,`unknown type: ${JSON.stringify(t)}`,"name",t),n}encodeData(t,n){return this.getEncoder(t)(n)}hashStruct(t,n){return kt(this.encodeData(t,n))}encode(t){return this.encodeData(this.primaryType,t)}hash(t){return this.hashStruct(this.primaryType,t)}_visit(t,n,r){if(sl(t))return r(t,n);const s=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(s)return E(!s[3]||parseInt(s[3])===n.length,`array length mismatch; expected length ${parseInt(s[3])}`,"value",n),n.map(o=>this._visit(s[1],o,r));const i=this.types[t];if(i)return i.reduce((o,{name:a,type:c})=>(o[a]=this._visit(c,n[a],r),o),{});E(!1,`unknown type: ${t}`,"type",t)}visit(t,n){return this._visit(this.primaryType,t,n)}static from(t){return new _e(t)}static getPrimaryType(t){return _e.from(t).primaryType}static hashStruct(t,n,r){return _e.from(n).hashStruct(t,r)}static hashDomain(t){const n=[];for(const r in t){if(t[r]==null)continue;const s=_0[r];E(s,`invalid typed-data domain key: ${JSON.stringify(r)}`,"domain",t),n.push({name:r,type:s})}return n.sort((r,s)=>rl.indexOf(r.name)-rl.indexOf(s.name)),_e.hashStruct("EIP712Domain",{EIP712Domain:n},t)}static encode(t,n,r){return Qt(["0x1901",_e.hashDomain(t),_e.from(n).hash(r)])}static hash(t,n,r){return kt(_e.encode(t,n,r))}static async resolveNames(t,n,r,s){t=Object.assign({},t);for(const a in t)t[a]==null&&delete t[a];const i={};t.verifyingContract&&!St(t.verifyingContract,20)&&(i[t.verifyingContract]="0x");const o=_e.from(n);o.visit(r,(a,c)=>(a==="address"&&!St(c,20)&&(i[c]="0x"),c));for(const a in i)i[a]=await s(a);return t.verifyingContract&&i[t.verifyingContract]&&(t.verifyingContract=i[t.verifyingContract]),r=o.visit(r,(a,c)=>a==="address"&&i[c]?i[c]:c),{domain:t,value:r}}static getPayload(t,n,r){_e.hashDomain(t);const s={},i=[];rl.forEach(c=>{const l=t[c];l!=null&&(s[c]=p2[c](l),i.push({name:c,type:_0[c]}))});const o=_e.from(n),a=Object.assign({},n);return E(a.EIP712Domain==null,"types must not contain EIP712Domain type","types.EIP712Domain",n),a.EIP712Domain=i,o.encode(r),{types:a,domain:s,primaryType:o.primaryType,message:o.visit(r,(c,l)=>{if(c.match(/^bytes(\d*)/))return q(bt(l));if(c.match(/^u?int/))return X(l).toString();switch(c){case"address":return l.toLowerCase();case"bool":return!!l;case"string":return E(typeof l=="string","invalid string","value",l),l}E(!1,"unsupported type","type",c)})}}};let tc=_e;Vo=new WeakMap,_n=new WeakMap,fi=new WeakMap,ic=new WeakSet,Fd=function(t){{const s=sl(t);if(s)return s}const n=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(n){const s=n[1],i=this.getEncoder(s);return o=>{E(!n[3]||parseInt(n[3])===o.length,`array length mismatch; expected length ${parseInt(n[3])}`,"value",o);let a=o.map(i);return h(this,_n).has(s)&&(a=a.map(kt)),kt(Qt(a))}}const r=this.types[t];if(r){const s=bs(h(this,_n).get(t));return i=>{const o=r.map(({name:a,type:c})=>{const l=this.getEncoder(c)(i[a]);return h(this,_n).has(c)?kt(l):l});return o.unshift(s),Qt(o)}}E(!1,`unknown type: ${t}`,"type",t)};function he(e){const t=new Set;return e.forEach(n=>t.add(n)),Object.freeze(t)}const g2="external public payable",b2=he(g2.split(" ")),Dd="constant external internal payable private public pure view",m2=he(Dd.split(" ")),Ld="constructor error event fallback function receive struct",Md=he(Ld.split(" ")),Hd="calldata memory storage payable indexed",y2=he(Hd.split(" ")),w2="tuple returns",A2=[Ld,Hd,w2,Dd].join(" "),E2=he(A2.split(" ")),x2={"(":"OPEN_PAREN",")":"CLOSE_PAREN","[":"OPEN_BRACKET","]":"CLOSE_BRACKET",",":"COMMA","@":"AT"},v2=new RegExp("^(\\s*)"),P2=new RegExp("^([0-9]+)"),C2=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)"),Gd=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)$"),Qd=new RegExp("^(address|bool|bytes([0-9]*)|string|u?int([0-9]*))$");var jt,Ze,zo,Ql;const oc=class{constructor(t){P(this,zo);P(this,jt,void 0);P(this,Ze,void 0);b(this,jt,0),b(this,Ze,t.slice())}get offset(){return h(this,jt)}get length(){return h(this,Ze).length-h(this,jt)}clone(){return new oc(h(this,Ze))}reset(){b(this,jt,0)}popKeyword(t){const n=this.peek();if(n.type!=="KEYWORD"||!t.has(n.text))throw new Error(`expected keyword ${n.text}`);return this.pop().text}popType(t){if(this.peek().type!==t)throw new Error(`expected ${t}; got ${JSON.stringify(this.peek())}`);return this.pop().text}popParen(){const t=this.peek();if(t.type!=="OPEN_PAREN")throw new Error("bad start");const n=z(this,zo,Ql).call(this,h(this,jt)+1,t.match+1);return b(this,jt,t.match+1),n}popParams(){const t=this.peek();if(t.type!=="OPEN_PAREN")throw new Error("bad start");const n=[];for(;h(this,jt)=h(this,Ze).length)throw new Error("out-of-bounds");return h(this,Ze)[h(this,jt)]}peekKeyword(t){const n=this.peekType("KEYWORD");return n!=null&&t.has(n)?n:null}peekType(t){if(this.length===0)return null;const n=this.peek();return n.type===t?n.text:null}pop(){const t=this.peek();return Zi(this,jt)._++,t}toString(){const t=[];for(let n=h(this,jt);n`}};let sn=oc;jt=new WeakMap,Ze=new WeakMap,zo=new WeakSet,Ql=function(t=0,n=0){return new oc(h(this,Ze).slice(t,n).map(r=>Object.freeze(Object.assign({},r,{match:r.match-t,linkBack:r.linkBack-t,linkNext:r.linkNext-t}))))};function Tr(e){const t=[],n=o=>{const a=i0&&t[t.length-1].type==="NUMBER"){const f=t.pop().text;u=f+u,t[t.length-1].value=ft(f)}if(t.length===0||t[t.length-1].type!=="BRACKET")throw new Error("missing opening bracket");t[t.length-1].text+=u}continue}if(a=o.match(C2),a){if(c.text=a[1],i+=c.text.length,E2.has(c.text)){c.type="KEYWORD";continue}if(c.text.match(Qd)){c.type="TYPE";continue}c.type="ID";continue}if(a=o.match(P2),a){c.text=a[1],c.type="NUMBER",i+=c.text.length;continue}throw new Error(`unexpected token ${JSON.stringify(o[0])} at position ${i}`)}return new sn(t.map(o=>Object.freeze(o)))}function L0(e,t){let n=[];for(const r in t.keys())e.has(r)&&n.push(r);if(n.length>1)throw new Error(`conflicting types: ${n.join(", ")}`)}function Uc(e,t){if(t.peekKeyword(Md)){const n=t.pop().text;if(n!==e)throw new Error(`expected ${e}, got ${n}`)}return t.popType("ID")}function Zn(e,t){const n=new Set;for(;;){const r=e.peekType("KEYWORD");if(r==null||t&&!t.has(r))break;if(e.pop(),n.has(r))throw new Error(`duplicate keywords: ${JSON.stringify(r)}`);n.add(r)}return Object.freeze(n)}function Vd(e){let t=Zn(e,m2);return L0(t,he("constant payable nonpayable".split(" "))),L0(t,he("pure view payable nonpayable".split(" "))),t.has("view")?"view":t.has("pure")?"pure":t.has("payable")?"payable":t.has("nonpayable")?"nonpayable":t.has("constant")?"view":"nonpayable"}function Jn(e,t){return e.popParams().map(n=>Yt.from(n,t))}function zd(e){if(e.peekType("AT")){if(e.pop(),e.peekType("NUMBER"))return X(e.pop().text);throw new Error("invalid gas")}return null}function ms(e){if(e.length)throw new Error(`unexpected tokens: ${e.toString()}`)}const N2=new RegExp(/^(.*)\[([0-9]*)\]$/);function M0(e){const t=e.match(Qd);if(E(t,"invalid type","type",e),e==="uint")return"uint256";if(e==="int")return"int256";if(t[2]){const n=parseInt(t[2]);E(n!==0&&n<=32,"invalid bytes length","type",e)}else if(t[3]){const n=parseInt(t[3]);E(n!==0&&n<=256&&n%8===0,"invalid numeric width","type",e)}return e}const Bt={},xe=Symbol.for("_ethers_internal"),H0="_ParamTypeInternal",G0="_ErrorInternal",Q0="_EventInternal",V0="_ConstructorInternal",z0="_FallbackInternal",K0="_FunctionInternal",J0="_StructInternal";var hi,Ta;const Fe=class{constructor(t,n,r,s,i,o,a,c){P(this,hi);v(this,"name");v(this,"type");v(this,"baseType");v(this,"indexed");v(this,"components");v(this,"arrayLength");v(this,"arrayChildren");if(Nc(t,Bt,"ParamType"),Object.defineProperty(this,xe,{value:H0}),o&&(o=Object.freeze(o.slice())),s==="array"){if(a==null||c==null)throw new Error("")}else if(a!=null||c!=null)throw new Error("");if(s==="tuple"){if(o==null)throw new Error("")}else if(o!=null)throw new Error("");nt(this,{name:n,type:r,baseType:s,indexed:i,components:o,arrayLength:a,arrayChildren:c})}format(t){if(t==null&&(t="sighash"),t==="json"){const r=this.name||"";if(this.isArray()){const i=JSON.parse(this.arrayChildren.format("json"));return i.name=r,i.type+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`,JSON.stringify(i)}const s={type:this.baseType==="tuple"?"tuple":this.type,name:r};return typeof this.indexed=="boolean"&&(s.indexed=this.indexed),this.isTuple()&&(s.components=this.components.map(i=>JSON.parse(i.format(t)))),JSON.stringify(s)}let n="";return this.isArray()?(n+=this.arrayChildren.format(t),n+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`):this.isTuple()?n+="("+this.components.map(r=>r.format(t)).join(t==="full"?", ":",")+")":n+=this.type,t!=="sighash"&&(this.indexed===!0&&(n+=" indexed"),t==="full"&&this.name&&(n+=" "+this.name)),n}isArray(){return this.baseType==="array"}isTuple(){return this.baseType==="tuple"}isIndexable(){return this.indexed!=null}walk(t,n){if(this.isArray()){if(!Array.isArray(t))throw new Error("invalid array value");if(this.arrayLength!==-1&&t.length!==this.arrayLength)throw new Error("array is wrong length");const r=this;return t.map(s=>r.arrayChildren.walk(s,n))}if(this.isTuple()){if(!Array.isArray(t))throw new Error("invalid tuple value");if(t.length!==this.components.length)throw new Error("array is wrong length");const r=this;return t.map((s,i)=>r.components[i].walk(s,n))}return n(this.type,t)}async walkAsync(t,n){const r=[],s=[t];return z(this,hi,Ta).call(this,r,t,n,i=>{s[0]=i}),r.length&&await Promise.all(r),s[0]}static from(t,n){if(Fe.isParamType(t))return t;if(typeof t=="string")try{return Fe.from(Tr(t),n)}catch{E(!1,"invalid param type","obj",t)}else if(t instanceof sn){let a="",c="",l=null;Zn(t,he(["tuple"])).has("tuple")||t.peekType("OPEN_PAREN")?(c="tuple",l=t.popParams().map(y=>Fe.from(y)),a=`tuple(${l.map(y=>y.format()).join(",")})`):(a=M0(t.popType("TYPE")),c=a);let u=null,f=null;for(;t.length&&t.peekType("BRACKET");){const y=t.pop();u=new Fe(Bt,"",a,c,null,l,f,u),f=y.value,a+=y.text,c="array",l=null}let d=null;if(Zn(t,y2).has("indexed")){if(!n)throw new Error("");d=!0}const w=t.peekType("ID")?t.pop().text:"";if(t.length)throw new Error("leftover tokens");return new Fe(Bt,w,a,c,d,l,f,u)}const r=t.name;E(!r||typeof r=="string"&&r.match(Gd),"invalid name","obj.name",r);let s=t.indexed;s!=null&&(E(n,"parameter cannot be indexed","obj.indexed",t.indexed),s=!!s);let i=t.type,o=i.match(N2);if(o){const a=parseInt(o[2]||"-1"),c=Fe.from({type:o[1],components:t.components});return new Fe(Bt,r||"",i,"array",s,null,a,c)}if(i==="tuple"||i.startsWith("tuple(")||i.startsWith("(")){const a=t.components!=null?t.components.map(l=>Fe.from(l)):null;return new Fe(Bt,r||"",i,"tuple",s,a,null,null)}return i=M0(t.type),new Fe(Bt,r||"",i,i,s,null,null,null)}static isParamType(t){return t&&t[xe]===H0}};let Yt=Fe;hi=new WeakSet,Ta=function(t,n,r,s){if(this.isArray()){if(!Array.isArray(n))throw new Error("invalid array value");if(this.arrayLength!==-1&&n.length!==this.arrayLength)throw new Error("array is wrong length");const o=this.arrayChildren,a=n.slice();a.forEach((c,l)=>{var u;z(u=o,hi,Ta).call(u,t,c,r,f=>{a[l]=f})}),s(a);return}if(this.isTuple()){const o=this.components;let a;if(Array.isArray(n))a=n.slice();else{if(n==null||typeof n!="object")throw new Error("invalid tuple value");a=o.map(c=>{if(!c.name)throw new Error("cannot use object value with unnamed components");if(!(c.name in n))throw new Error(`missing value for component ${c.name}`);return n[c.name]})}if(a.length!==this.components.length)throw new Error("array is wrong length");a.forEach((c,l)=>{var u;z(u=o[l],hi,Ta).call(u,t,c,r,f=>{a[l]=f})}),s(a);return}const i=r(this.type,n);i.then?t.push(async function(){s(await i)}()):s(i)};class ys{constructor(t,n,r){v(this,"type");v(this,"inputs");Nc(t,Bt,"Fragment"),r=Object.freeze(r.slice()),nt(this,{type:n,inputs:r})}static from(t){if(typeof t=="string"){try{ys.from(JSON.parse(t))}catch{}return ys.from(Tr(t))}if(t instanceof sn)switch(t.peekKeyword(Md)){case"constructor":return zn.from(t);case"error":return Ae.from(t);case"event":return wn.from(t);case"fallback":case"receive":return On.from(t);case"function":return An.from(t);case"struct":return ds.from(t)}else if(typeof t=="object"){switch(t.type){case"constructor":return zn.from(t);case"error":return Ae.from(t);case"event":return wn.from(t);case"fallback":case"receive":return On.from(t);case"function":return An.from(t);case"struct":return ds.from(t)}B(!1,`unsupported type: ${t.type}`,"UNSUPPORTED_OPERATION",{operation:"Fragment.from"})}E(!1,"unsupported frgament object","obj",t)}static isConstructor(t){return zn.isFragment(t)}static isError(t){return Ae.isFragment(t)}static isEvent(t){return wn.isFragment(t)}static isFunction(t){return An.isFragment(t)}static isStruct(t){return ds.isFragment(t)}}class _c extends ys{constructor(n,r,s,i){super(n,r,i);v(this,"name");E(typeof s=="string"&&s.match(Gd),"invalid identifier","name",s),i=Object.freeze(i.slice()),nt(this,{name:s})}}function _o(e,t){return"("+t.map(n=>n.format(e)).join(e==="full"?", ":",")+")"}class Ae extends _c{constructor(t,n,r){super(t,"error",n,r),Object.defineProperty(this,xe,{value:G0})}get selector(){return bs(this.format("sighash")).substring(0,10)}format(t){if(t==null&&(t="sighash"),t==="json")return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(r=>JSON.parse(r.format(t)))});const n=[];return t!=="sighash"&&n.push("error"),n.push(this.name+_o(t,this.inputs)),n.join(" ")}static from(t){if(Ae.isFragment(t))return t;if(typeof t=="string")return Ae.from(Tr(t));if(t instanceof sn){const n=Uc("error",t),r=Jn(t);return ms(t),new Ae(Bt,n,r)}return new Ae(Bt,t.name,t.inputs?t.inputs.map(Yt.from):[])}static isFragment(t){return t&&t[xe]===G0}}class wn extends _c{constructor(n,r,s,i){super(n,"event",r,s);v(this,"anonymous");Object.defineProperty(this,xe,{value:Q0}),nt(this,{anonymous:i})}get topicHash(){return bs(this.format("sighash"))}format(n){if(n==null&&(n="sighash"),n==="json")return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(s=>JSON.parse(s.format(n)))});const r=[];return n!=="sighash"&&r.push("event"),r.push(this.name+_o(n,this.inputs)),n!=="sighash"&&this.anonymous&&r.push("anonymous"),r.join(" ")}static getTopicHash(n,r){return r=(r||[]).map(i=>Yt.from(i)),new wn(Bt,n,r,!1).topicHash}static from(n){if(wn.isFragment(n))return n;if(typeof n=="string")try{return wn.from(Tr(n))}catch{E(!1,"invalid event fragment","obj",n)}else if(n instanceof sn){const r=Uc("event",n),s=Jn(n,!0),i=!!Zn(n,he(["anonymous"])).has("anonymous");return ms(n),new wn(Bt,r,s,i)}return new wn(Bt,n.name,n.inputs?n.inputs.map(r=>Yt.from(r,!0)):[],!!n.anonymous)}static isFragment(n){return n&&n[xe]===Q0}}class zn extends ys{constructor(n,r,s,i,o){super(n,r,s);v(this,"payable");v(this,"gas");Object.defineProperty(this,xe,{value:V0}),nt(this,{payable:i,gas:o})}format(n){if(B(n!=null&&n!=="sighash","cannot format a constructor for sighash","UNSUPPORTED_OPERATION",{operation:"format(sighash)"}),n==="json")return JSON.stringify({type:"constructor",stateMutability:this.payable?"payable":"undefined",payable:this.payable,gas:this.gas!=null?this.gas:void 0,inputs:this.inputs.map(s=>JSON.parse(s.format(n)))});const r=[`constructor${_o(n,this.inputs)}`];return this.payable&&r.push("payable"),this.gas!=null&&r.push(`@${this.gas.toString()}`),r.join(" ")}static from(n){if(zn.isFragment(n))return n;if(typeof n=="string")try{return zn.from(Tr(n))}catch{E(!1,"invalid constuctor fragment","obj",n)}else if(n instanceof sn){Zn(n,he(["constructor"]));const r=Jn(n),s=!!Zn(n,b2).has("payable"),i=zd(n);return ms(n),new zn(Bt,"constructor",r,s,i)}return new zn(Bt,"constructor",n.inputs?n.inputs.map(Yt.from):[],!!n.payable,n.gas!=null?n.gas:null)}static isFragment(n){return n&&n[xe]===V0}}class On extends ys{constructor(n,r,s){super(n,"fallback",r);v(this,"payable");Object.defineProperty(this,xe,{value:z0}),nt(this,{payable:s})}format(n){const r=this.inputs.length===0?"receive":"fallback";if(n==="json"){const s=this.payable?"payable":"nonpayable";return JSON.stringify({type:r,stateMutability:s})}return`${r}()${this.payable?" payable":""}`}static from(n){if(On.isFragment(n))return n;if(typeof n=="string")try{return On.from(Tr(n))}catch{E(!1,"invalid fallback fragment","obj",n)}else if(n instanceof sn){const r=n.toString(),s=n.peekKeyword(he(["fallback","receive"]));if(E(s,"type must be fallback or receive","obj",r),n.popKeyword(he(["fallback","receive"]))==="receive"){const c=Jn(n);return E(c.length===0,"receive cannot have arguments","obj.inputs",c),Zn(n,he(["payable"])),ms(n),new On(Bt,[],!0)}let o=Jn(n);o.length?E(o.length===1&&o[0].type==="bytes","invalid fallback inputs","obj.inputs",o.map(c=>c.format("minimal")).join(", ")):o=[Yt.from("bytes")];const a=Vd(n);if(E(a==="nonpayable"||a==="payable","fallback cannot be constants","obj.stateMutability",a),Zn(n,he(["returns"])).has("returns")){const c=Jn(n);E(c.length===1&&c[0].type==="bytes","invalid fallback outputs","obj.outputs",c.map(l=>l.format("minimal")).join(", "))}return ms(n),new On(Bt,o,a==="payable")}if(n.type==="receive")return new On(Bt,[],!0);if(n.type==="fallback"){const r=[Yt.from("bytes")],s=n.stateMutability==="payable";return new On(Bt,r,s)}E(!1,"invalid fallback description","obj",n)}static isFragment(n){return n&&n[xe]===z0}}class An extends _c{constructor(n,r,s,i,o,a){super(n,"function",r,i);v(this,"constant");v(this,"outputs");v(this,"stateMutability");v(this,"payable");v(this,"gas");Object.defineProperty(this,xe,{value:K0}),o=Object.freeze(o.slice()),nt(this,{constant:s==="view"||s==="pure",gas:a,outputs:o,payable:s==="payable",stateMutability:s})}get selector(){return bs(this.format("sighash")).substring(0,10)}format(n){if(n==null&&(n="sighash"),n==="json")return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas!=null?this.gas:void 0,inputs:this.inputs.map(s=>JSON.parse(s.format(n))),outputs:this.outputs.map(s=>JSON.parse(s.format(n)))});const r=[];return n!=="sighash"&&r.push("function"),r.push(this.name+_o(n,this.inputs)),n!=="sighash"&&(this.stateMutability!=="nonpayable"&&r.push(this.stateMutability),this.outputs&&this.outputs.length&&(r.push("returns"),r.push(_o(n,this.outputs))),this.gas!=null&&r.push(`@${this.gas.toString()}`)),r.join(" ")}static getSelector(n,r){return r=(r||[]).map(i=>Yt.from(i)),new An(Bt,n,"view",r,[],null).selector}static from(n){if(An.isFragment(n))return n;if(typeof n=="string")try{return An.from(Tr(n))}catch{E(!1,"invalid function fragment","obj",n)}else if(n instanceof sn){const s=Uc("function",n),i=Jn(n),o=Vd(n);let a=[];Zn(n,he(["returns"])).has("returns")&&(a=Jn(n));const c=zd(n);return ms(n),new An(Bt,s,o,i,a,c)}let r=n.stateMutability;return r==null&&(r="payable",typeof n.constant=="boolean"?(r="view",n.constant||(r="payable",typeof n.payable=="boolean"&&!n.payable&&(r="nonpayable"))):typeof n.payable=="boolean"&&!n.payable&&(r="nonpayable")),new An(Bt,n.name,r,n.inputs?n.inputs.map(Yt.from):[],n.outputs?n.outputs.map(Yt.from):[],n.gas!=null?n.gas:null)}static isFragment(n){return n&&n[xe]===K0}}class ds extends _c{constructor(t,n,r){super(t,"struct",n,r),Object.defineProperty(this,xe,{value:J0})}format(){throw new Error("@TODO")}static from(t){if(typeof t=="string")try{return ds.from(Tr(t))}catch{E(!1,"invalid struct fragment","obj",t)}else if(t instanceof sn){const n=Uc("struct",t),r=Jn(t);return ms(t),new ds(Bt,n,r)}return new ds(Bt,t.name,t.inputs?t.inputs.map(Yt.from):[])}static isFragment(t){return t&&t[xe]===J0}}const on=new Map;on.set(0,"GENERIC_PANIC");on.set(1,"ASSERT_FALSE");on.set(17,"OVERFLOW");on.set(18,"DIVIDE_BY_ZERO");on.set(33,"ENUM_RANGE_ERROR");on.set(34,"BAD_STORAGE_DATA");on.set(49,"STACK_UNDERFLOW");on.set(50,"ARRAY_RANGE_ERROR");on.set(65,"OUT_OF_MEMORY");on.set(81,"UNINITIALIZED_FUNCTION_CALL");const I2=new RegExp(/^bytes([0-9]*)$/),O2=new RegExp(/^(u?int)([0-9]*)$/);let il=null,j0=1024;function R2(e,t,n,r){let s="missing revert data",i=null;const o=null;let a=null;if(n){s="execution reverted";const l=bt(n);if(n=q(n),l.length===0)s+=" (no data present; likely require(false) occurred",i="require(false)";else if(l.length%32!==4)s+=" (could not decode reason; invalid data length)";else if(q(l.slice(0,4))==="0x08c379a0")try{i=r.decode(["string"],l.slice(4))[0],a={signature:"Error(string)",name:"Error",args:[i]},s+=`: ${JSON.stringify(i)}`}catch{s+=" (could not decode reason; invalid string data)"}else if(q(l.slice(0,4))==="0x4e487b71")try{const u=Number(r.decode(["uint256"],l.slice(4))[0]);a={signature:"Panic(uint256)",name:"Panic",args:[u]},i=`Panic due to ${on.get(u)||"UNKNOWN"}(${u})`,s+=`: ${i}`}catch{s+=" (could not decode panic code)"}else s+=" (unknown custom error)"}const c={to:t.to?yt(t.to):null,data:t.data||"0x"};return t.from&&(c.from=yt(t.from)),Gt(s,"CALL_EXCEPTION",{action:e,data:n,reason:i,transaction:c,invocation:o,revert:a})}var fr,Bs;const ac=class{constructor(){P(this,fr)}getDefaultValue(t){const n=t.map(s=>z(this,fr,Bs).call(this,Yt.from(s)));return new Aa(n,"_").defaultValue()}encode(t,n){C1(n.length,t.length,"types/values length mismatch");const r=t.map(o=>z(this,fr,Bs).call(this,Yt.from(o))),s=new Aa(r,"_"),i=new Ol;return s.encode(i,n),i.data}decode(t,n,r){const s=t.map(o=>z(this,fr,Bs).call(this,Yt.from(o)));return new Aa(s,"_").decode(new Rl(n,r,j0))}static _setDefaultMaxInflation(t){E(typeof t=="number"&&Number.isInteger(t),"invalid defaultMaxInflation factor","value",t),j0=t}static defaultAbiCoder(){return il==null&&(il=new ac),il}static getBuiltinCallException(t,n,r){return R2(t,n,r,ac.defaultAbiCoder())}};let Fo=ac;fr=new WeakSet,Bs=function(t){if(t.isArray())return new sy(z(this,fr,Bs).call(this,t.arrayChildren),t.arrayLength,t.name);if(t.isTuple())return new Aa(t.components.map(r=>z(this,fr,Bs).call(this,r)),t.name);switch(t.baseType){case"address":return new ny(t.name);case"bool":return new iy(t.name);case"string":return new py(t.name);case"bytes":return new oy(t.name);case"":return new ly(t.name)}let n=t.type.match(O2);if(n){let r=parseInt(n[2]||"256");return E(r!==0&&r<=256&&r%8===0,"invalid "+n[1]+" bit length","param",t),new dy(r/8,n[1]==="int",t.name)}if(n=t.type.match(I2),n){let r=parseInt(n[1]);return E(r!==0&&r<=32,"invalid bytes length","param",t),new ay(r,t.name)}E(!1,"invalid type","type",t.type)};class T2{constructor(t,n,r){v(this,"fragment");v(this,"name");v(this,"signature");v(this,"topic");v(this,"args");const s=t.name,i=t.format();nt(this,{fragment:t,name:s,signature:i,topic:n,args:r})}}class B2{constructor(t,n,r,s){v(this,"fragment");v(this,"name");v(this,"args");v(this,"signature");v(this,"selector");v(this,"value");const i=t.name,o=t.format();nt(this,{fragment:t,name:i,args:r,signature:o,selector:n,value:s})}}class k2{constructor(t,n,r){v(this,"fragment");v(this,"name");v(this,"args");v(this,"signature");v(this,"selector");const s=t.name,i=t.format();nt(this,{fragment:t,name:s,args:r,signature:i,selector:n})}}class W0{constructor(t){v(this,"hash");v(this,"_isIndexed");nt(this,{hash:t,_isIndexed:!0})}static isIndexed(t){return!!(t&&t._isIndexed)}}const Z0={0:"generic panic",1:"assert(false)",17:"arithmetic overflow",18:"division or modulo by zero",33:"enum overflow",34:"invalid encoded storage byte array accessed",49:"out-of-bounds array access; popping on an empty array",50:"out-of-bounds access of an array or bytesN",65:"out of memory",81:"uninitialized function"},Y0={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:e=>`reverted with reason string ${JSON.stringify(e)}`},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"],reason:e=>{let t="unknown panic code";return e>=0&&e<=255&&Z0[e.toString()]&&(t=Z0[e.toString()]),`reverted with panic code 0x${e.toString(16)} (${t})`}}};var fn,hn,dn,qt,di,Ba,pi,ka;const Ds=class{constructor(t){P(this,di);P(this,pi);v(this,"fragments");v(this,"deploy");v(this,"fallback");v(this,"receive");P(this,fn,void 0);P(this,hn,void 0);P(this,dn,void 0);P(this,qt,void 0);let n=[];typeof t=="string"?n=JSON.parse(t):n=t,b(this,dn,new Map),b(this,fn,new Map),b(this,hn,new Map);const r=[];for(const o of n)try{r.push(ys.from(o))}catch(a){console.log("EE",a)}nt(this,{fragments:Object.freeze(r)});let s=null,i=!1;b(this,qt,this.getAbiCoder()),this.fragments.forEach((o,a)=>{let c;switch(o.type){case"constructor":if(this.deploy){console.log("duplicate definition - constructor");return}nt(this,{deploy:o});return;case"fallback":o.inputs.length===0?i=!0:(E(!s||o.payable!==s.payable,"conflicting fallback fragments",`fragments[${a}]`,o),s=o,i=s.payable);return;case"function":c=h(this,dn);break;case"event":c=h(this,hn);break;case"error":c=h(this,fn);break;default:return}const l=o.format();c.has(l)||c.set(l,o)}),this.deploy||nt(this,{deploy:zn.from("constructor()")}),nt(this,{fallback:s,receive:i})}format(t){const n=t?"minimal":"full";return this.fragments.map(s=>s.format(n))}formatJson(){const t=this.fragments.map(n=>n.format("json"));return JSON.stringify(t.map(n=>JSON.parse(n)))}getAbiCoder(){return Fo.defaultAbiCoder()}getFunctionName(t){const n=z(this,di,Ba).call(this,t,null,!1);return E(n,"no matching function","key",t),n.name}hasFunction(t){return!!z(this,di,Ba).call(this,t,null,!1)}getFunction(t,n){return z(this,di,Ba).call(this,t,n||null,!0)}forEachFunction(t){const n=Array.from(h(this,dn).keys());n.sort((r,s)=>r.localeCompare(s));for(let r=0;rr.localeCompare(s));for(let r=0;r1){const i=s.map(o=>JSON.stringify(o.format())).join(", ");E(!1,`ambiguous error description (i.e. ${i})`,"name",t)}return s[0]}if(t=Ae.from(t).format(),t==="Error(string)")return Ae.from("error Error(string)");if(t==="Panic(uint256)")return Ae.from("error Panic(uint256)");const r=h(this,fn).get(t);return r||null}forEachError(t){const n=Array.from(h(this,fn).keys());n.sort((r,s)=>r.localeCompare(s));for(let r=0;ri.type==="string"?bs(o):i.type==="bytes"?kt(q(o)):(i.type==="bool"&&typeof o=="boolean"?o=o?"0x01":"0x00":i.type.match(/^u?int/)?o=Rr(o):i.type.match(/^bytes/)?o=Pb(o,32):i.type==="address"&&h(this,qt).encode(["address"],[o]),gs(q(o),32));for(n.forEach((i,o)=>{const a=t.inputs[o];if(!a.indexed){E(i==null,"cannot filter non-indexed parameters; must be null","contract."+a.name,i);return}i==null?r.push(null):a.baseType==="array"||a.baseType==="tuple"?E(!1,"filtering with tuples or arrays not supported","contract."+a.name,i):Array.isArray(i)?r.push(i.map(c=>s(a,c))):r.push(s(a,i))});r.length&&r[r.length-1]===null;)r.pop();return r}encodeEventLog(t,n){if(typeof t=="string"){const o=this.getEvent(t);E(o,"unknown event","eventFragment",t),t=o}const r=[],s=[],i=[];return t.anonymous||r.push(t.topicHash),E(n.length===t.inputs.length,"event arguments/values mismatch","values",n),t.inputs.forEach((o,a)=>{const c=n[a];if(o.indexed)if(o.type==="string")r.push(bs(c));else if(o.type==="bytes")r.push(kt(c));else{if(o.baseType==="tuple"||o.baseType==="array")throw new Error("not implemented");r.push(h(this,qt).encode([o.type],[c]))}else s.push(o),i.push(c)}),{data:h(this,qt).encode(s,i),topics:r}}decodeEventLog(t,n,r){if(typeof t=="string"){const g=this.getEvent(t);E(g,"unknown event","eventFragment",t),t=g}if(r!=null&&!t.anonymous){const g=t.topicHash;E(St(r[0],32)&&r[0].toLowerCase()===g,"fragment/topic mismatch","topics[0]",r[0]),r=r.slice(1)}const s=[],i=[],o=[];t.inputs.forEach((g,w)=>{g.indexed?g.type==="string"||g.type==="bytes"||g.baseType==="tuple"||g.baseType==="array"?(s.push(Yt.from({type:"bytes32",name:g.name})),o.push(!0)):(s.push(g),o.push(!1)):(i.push(g),o.push(!1))});const a=r!=null?h(this,qt).decode(s,Qt(r)):null,c=h(this,qt).decode(i,n,!0),l=[],u=[];let f=0,d=0;return t.inputs.forEach((g,w)=>{let y=null;if(g.indexed)if(a==null)y=new W0(null);else if(o[w])y=new W0(a[d++]);else try{y=a[d++]}catch(x){y=x}else try{y=c[f++]}catch(x){y=x}l.push(y),u.push(g.name||null)}),ja.fromItems(l,u)}parseTransaction(t){const n=bt(t.data,"tx.data"),r=X(t.value!=null?t.value:0,"tx.value"),s=this.getFunction(q(n.slice(0,4)));if(!s)return null;const i=h(this,qt).decode(s.inputs,n.slice(4));return new B2(s,s.selector,i,r)}parseCallResult(t){throw new Error("@TODO")}parseLog(t){const n=this.getEvent(t.topics[0]);return!n||n.anonymous?null:new T2(n,n.topicHash,this.decodeEventLog(n,t.data,t.topics))}parseError(t){const n=q(t),r=this.getError(Ft(n,0,4));if(!r)return null;const s=h(this,qt).decode(r.inputs,Ft(n,4));return new k2(r,r.selector,s)}static from(t){return t instanceof Ds?t:typeof t=="string"?new Ds(JSON.parse(t)):typeof t.format=="function"?new Ds(t.format("json")):new Ds(t)}};let Qi=Ds;fn=new WeakMap,hn=new WeakMap,dn=new WeakMap,qt=new WeakMap,di=new WeakSet,Ba=function(t,n,r){if(St(t)){const i=t.toLowerCase();for(const o of h(this,dn).values())if(i===o.selector)return o;return null}if(t.indexOf("(")===-1){const i=[];for(const[o,a]of h(this,dn))o.split("(")[0]===t&&i.push(a);if(n){const o=n.length>0?n[n.length-1]:null;let a=n.length,c=!0;re.isTyped(o)&&o.type==="overrides"&&(c=!1,a--);for(let l=i.length-1;l>=0;l--){const u=i[l].inputs.length;u!==a&&(!c||u!==a-1)&&i.splice(l,1)}for(let l=i.length-1;l>=0;l--){const u=i[l].inputs;for(let f=0;f=u.length){if(n[f].type==="overrides")continue;i.splice(l,1);break}if(n[f].type!==u[f].baseType){i.splice(l,1);break}}}}if(i.length===1&&n&&n.length!==i[0].inputs.length){const o=n[n.length-1];(o==null||Array.isArray(o)||typeof o!="object")&&i.splice(0,1)}if(i.length===0)return null;if(i.length>1&&r){const o=i.map(a=>JSON.stringify(a.format())).join(", ");E(!1,`ambiguous function description (i.e. matches ${o})`,"key",t)}return i[0]}const s=h(this,dn).get(An.from(t).format());return s||null},pi=new WeakSet,ka=function(t,n,r){if(St(t)){const i=t.toLowerCase();for(const o of h(this,hn).values())if(i===o.topicHash)return o;return null}if(t.indexOf("(")===-1){const i=[];for(const[o,a]of h(this,hn))o.split("(")[0]===t&&i.push(a);if(n){for(let o=i.length-1;o>=0;o--)i[o].inputs.length=0;o--){const a=i[o].inputs;for(let c=0;c1&&r){const o=i.map(a=>JSON.stringify(a.format())).join(", ");E(!1,`ambiguous event description (i.e. matches ${o})`,"key",t)}return i[0]}const s=h(this,hn).get(wn.from(t).format());return s||null};const Kd=BigInt(0);function bo(e){return e==null?null:e}function te(e){return e==null?null:e.toString()}class q0{constructor(t,n,r){v(this,"gasPrice");v(this,"maxFeePerGas");v(this,"maxPriorityFeePerGas");nt(this,{gasPrice:bo(t),maxFeePerGas:bo(n),maxPriorityFeePerGas:bo(r)})}toJSON(){const{gasPrice:t,maxFeePerGas:n,maxPriorityFeePerGas:r}=this;return{_type:"FeeData",gasPrice:te(t),maxFeePerGas:te(n),maxPriorityFeePerGas:te(r)}}}function ec(e){const t={};e.to&&(t.to=e.to),e.from&&(t.from=e.from),e.data&&(t.data=q(e.data));const n="chainId,gasLimit,gasPrice,maxFeePerGas,maxPriorityFeePerGas,value".split(/,/);for(const s of n)!(s in e)||e[s]==null||(t[s]=X(e[s],`request.${s}`));const r="type,nonce".split(/,/);for(const s of r)!(s in e)||e[s]==null||(t[s]=ft(e[s],`request.${s}`));return e.accessList&&(t.accessList=Es(e.accessList)),"blockTag"in e&&(t.blockTag=e.blockTag),"enableCcipRead"in e&&(t.enableCcipRead=!!e.enableCcipRead),"customData"in e&&(t.customData=e.customData),t}var Fn;class S2{constructor(t,n){v(this,"provider");v(this,"number");v(this,"hash");v(this,"timestamp");v(this,"parentHash");v(this,"nonce");v(this,"difficulty");v(this,"gasLimit");v(this,"gasUsed");v(this,"miner");v(this,"extraData");v(this,"baseFeePerGas");P(this,Fn,void 0);b(this,Fn,t.transactions.map(r=>typeof r!="string"?new Do(r,n):r)),nt(this,{provider:n,hash:bo(t.hash),number:t.number,timestamp:t.timestamp,parentHash:t.parentHash,nonce:t.nonce,difficulty:t.difficulty,gasLimit:t.gasLimit,gasUsed:t.gasUsed,miner:t.miner,extraData:t.extraData,baseFeePerGas:bo(t.baseFeePerGas)})}get transactions(){return h(this,Fn).map(t=>typeof t=="string"?t:t.hash)}get prefetchedTransactions(){const t=h(this,Fn).slice();return t.length===0?[]:(B(typeof t[0]=="object","transactions were not prefetched with block request","UNSUPPORTED_OPERATION",{operation:"transactionResponses()"}),t)}toJSON(){const{baseFeePerGas:t,difficulty:n,extraData:r,gasLimit:s,gasUsed:i,hash:o,miner:a,nonce:c,number:l,parentHash:u,timestamp:f,transactions:d}=this;return{_type:"Block",baseFeePerGas:te(t),difficulty:te(n),extraData:r,gasLimit:te(s),gasUsed:te(i),hash:o,miner:a,nonce:c,number:l,parentHash:u,timestamp:f,transactions:d}}[Symbol.iterator](){let t=0;const n=this.transactions;return{next:()=>tnew oa(s,n))));let r=Kd;t.effectiveGasPrice!=null?r=t.effectiveGasPrice:t.gasPrice!=null&&(r=t.gasPrice),nt(this,{provider:n,to:t.to,from:t.from,contractAddress:t.contractAddress,hash:t.hash,index:t.index,blockHash:t.blockHash,blockNumber:t.blockNumber,logsBloom:t.logsBloom,gasUsed:t.gasUsed,cumulativeGasUsed:t.cumulativeGasUsed,gasPrice:r,type:t.type,status:t.status,root:t.root})}get logs(){return h(this,Ko)}toJSON(){const{to:t,from:n,contractAddress:r,hash:s,index:i,blockHash:o,blockNumber:a,logsBloom:c,logs:l,status:u,root:f}=this;return{_type:"TransactionReceipt",blockHash:o,blockNumber:a,contractAddress:r,cumulativeGasUsed:te(this.cumulativeGasUsed),from:n,gasPrice:te(this.gasPrice),gasUsed:te(this.gasUsed),hash:s,index:i,logs:l,logsBloom:c,root:f,status:u,to:t}}get length(){return this.logs.length}[Symbol.iterator](){let t=0;return{next:()=>t{if(a)return null;const{blockNumber:d,nonce:g}=await ae({blockNumber:this.provider.getBlockNumber(),nonce:this.provider.getTransactionCount(this.from)});if(g{if(d==null||d.status!==0)return d;B(!1,"transaction execution reverted","CALL_EXCEPTION",{action:"sendTransaction",data:null,reason:null,invocation:null,revert:null,transaction:{to:d.to,from:d.from,data:""},receipt:d})},u=await this.provider.getTransactionReceipt(this.hash);if(r===0)return l(u);if(u){if(await u.confirmations()>=r)return l(u)}else if(await c(),r===0)return null;return await new Promise((d,g)=>{const w=[],y=()=>{w.forEach(A=>A())};if(w.push(()=>{a=!0}),s>0){const A=setTimeout(()=>{y(),g(Gt("wait for transaction timeout","TIMEOUT"))},s);w.push(()=>{clearTimeout(A)})}const x=async A=>{if(await A.confirmations()>=r){y();try{d(l(A))}catch(O){g(O)}}};if(w.push(()=>{this.provider.off(this.hash,x)}),this.provider.on(this.hash,x),i>=0){const A=async()=>{try{await c()}catch(O){if(ne(O,"TRANSACTION_REPLACED")){y(),g(O);return}}a||this.provider.once("block",A)};w.push(()=>{this.provider.off("block",A)}),this.provider.once("block",A)}})}isMined(){return this.blockHash!=null}isLegacy(){return this.type===0}isBerlin(){return this.type===1}isLondon(){return this.type===2}removedEvent(){return B(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),Wd(this)}reorderedEvent(t){return B(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),B(!t||t.isMined(),"unmined 'other' transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),jd(this,t)}replaceableTransaction(t){E(Number.isInteger(t)&&t>=0,"invalid startBlock","startBlock",t);const n=new qu(this,this.provider);return b(n,hr,t),n}};let Do=qu;hr=new WeakMap;function U2(e){return{orphan:"drop-block",hash:e.hash,number:e.number}}function jd(e,t){return{orphan:"reorder-transaction",tx:e,other:t}}function Wd(e){return{orphan:"drop-transaction",tx:e}}function _2(e){return{orphan:"drop-log",log:{transactionHash:e.transactionHash,blockHash:e.blockHash,blockNumber:e.blockNumber,address:e.address,data:e.data,topics:Object.freeze(e.topics.slice()),index:e.index}}}class Hu extends oa{constructor(n,r,s){super(n,n.provider);v(this,"interface");v(this,"fragment");v(this,"args");const i=r.decodeEventLog(s,n.data,n.topics);nt(this,{args:i,fragment:s,interface:r})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}class Zd extends oa{constructor(n,r){super(n,n.provider);v(this,"error");nt(this,{error:r})}}var gi;class F2 extends Jd{constructor(n,r,s){super(s,r);P(this,gi,void 0);b(this,gi,n)}get logs(){return super.logs.map(n=>{const r=n.topics.length?h(this,gi).getEvent(n.topics[0]):null;if(r)try{return new Hu(n,h(this,gi),r)}catch(s){return new Zd(n,s)}return n})}}gi=new WeakMap;var Jo;class Gu extends Do{constructor(n,r,s){super(s,r);P(this,Jo,void 0);b(this,Jo,n)}async wait(n){const r=await super.wait(n);return r==null?null:new F2(h(this,Jo),this.provider,r)}}Jo=new WeakMap;class Yd extends R1{constructor(n,r,s,i){super(n,r,s);v(this,"log");nt(this,{log:i})}async getBlock(){return await this.log.getBlock()}async getTransaction(){return await this.log.getTransaction()}async getTransactionReceipt(){return await this.log.getTransactionReceipt()}}class D2 extends Yd{constructor(t,n,r,s,i){super(t,n,r,new Hu(i,t.interface,s));const o=t.interface.decodeEventLog(s,this.log.data,this.log.topics);nt(this,{args:o,fragment:s})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}const X0=BigInt(0);function qd(e){return e&&typeof e.call=="function"}function Xd(e){return e&&typeof e.estimateGas=="function"}function Fc(e){return e&&typeof e.resolveName=="function"}function $d(e){return e&&typeof e.sendTransaction=="function"}function tp(e){if(e!=null){if(Fc(e))return e;if(e.provider)return e.provider}}var jo;class L2{constructor(t,n,r){P(this,jo,void 0);v(this,"fragment");if(nt(this,{fragment:n}),n.inputs.lengthr[c]==null?null:a.walkAsync(r[c],(u,f)=>u==="address"?Array.isArray(f)?Promise.all(f.map(d=>fe(d,i))):fe(f,i):f)));return t.interface.encodeFilterTopics(n,o)}())}getTopicFilter(){return h(this,jo)}}jo=new WeakMap;function ws(e,t){return e==null?null:typeof e[t]=="function"?e:e.provider&&typeof e.provider[t]=="function"?e.provider:null}function Gr(e){return e==null?null:e.provider||null}async function Qu(e,t){const n=re.dereference(e,"overrides");E(typeof n=="object","invalid overrides parameter","overrides",e);const r=ec(n);return E(r.to==null||(t||[]).indexOf("to")>=0,"cannot override to","overrides.to",r.to),E(r.data==null||(t||[]).indexOf("data")>=0,"cannot override data","overrides.data",r.data),r.from&&(r.from=r.from),r}async function ep(e,t,n){const r=ws(e,"resolveName"),s=Fc(r)?r:null;return await Promise.all(t.map((i,o)=>i.walkAsync(n[o],(a,c)=>(c=re.dereference(c,a),a==="address"?fe(c,s):c))))}function M2(e){const t=async function(o){const a=await Qu(o,["data"]);a.to=await e.getAddress(),a.from&&(a.from=await fe(a.from,tp(e.runner)));const c=e.interface,l=X(a.value||X0,"overrides.value")===X0,u=(a.data||"0x")==="0x";c.fallback&&!c.fallback.payable&&c.receive&&!u&&!l&&E(!1,"cannot send data to receive or send value to non-payable fallback","overrides",o),E(c.fallback||u,"cannot send data to receive-only contract","overrides.data",a.data);const f=c.receive||c.fallback&&c.fallback.payable;return E(f||l,"cannot send value to non-payable fallback","overrides.value",a.value),E(c.fallback||u,"cannot send data to receive-only contract","overrides.data",a.data),a},n=async function(o){const a=ws(e.runner,"call");B(qd(a),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const c=await t(o);try{return await a.call(c)}catch(l){throw Pu(l)&&l.data?e.interface.makeError(l.data,c):l}},r=async function(o){const a=e.runner;B($d(a),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const c=await a.sendTransaction(await t(o)),l=Gr(e.runner);return new Gu(e.interface,l,c)},s=async function(o){const a=ws(e.runner,"estimateGas");return B(Xd(a),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await a.estimateGas(await t(o))},i=async o=>await r(o);return nt(i,{_contract:e,estimateGas:s,populateTransaction:t,send:r,staticCall:n}),i}function H2(e,t){const n=function(...l){const u=e.interface.getFunction(t,l);return B(u,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t,args:l}}),u},r=async function(...l){const u=n(...l);let f={};if(u.inputs.length+1===l.length&&(f=await Qu(l.pop()),f.from&&(f.from=await fe(f.from,tp(e.runner)))),u.inputs.length!==l.length)throw new Error("internal error: fragment inputs doesn't match arguments; should not happen");const d=await ep(e.runner,u.inputs,l);return Object.assign({},f,await ae({to:e.getAddress(),data:e.interface.encodeFunctionData(u,d)}))},s=async function(...l){const u=await a(...l);return u.length===1?u[0]:u},i=async function(...l){const u=e.runner;B($d(u),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const f=await u.sendTransaction(await r(...l)),d=Gr(e.runner);return new Gu(e.interface,d,f)},o=async function(...l){const u=ws(e.runner,"estimateGas");return B(Xd(u),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await u.estimateGas(await r(...l))},a=async function(...l){const u=ws(e.runner,"call");B(qd(u),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const f=await r(...l);let d="0x";try{d=await u.call(f)}catch(w){throw Pu(w)&&w.data?e.interface.makeError(w.data,f):w}const g=n(...l);return e.interface.decodeFunctionResult(g,d)},c=async(...l)=>n(...l).constant?await s(...l):await i(...l);return nt(c,{name:e.interface.getFunctionName(t),_contract:e,_key:t,getFragment:n,estimateGas:o,populateTransaction:r,send:i,staticCall:s,staticCallResult:a}),Object.defineProperty(c,"fragment",{configurable:!1,enumerable:!0,get:()=>{const l=e.interface.getFunction(t);return B(l,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t}}),l}}),c}function G2(e,t){const n=function(...s){const i=e.interface.getEvent(t,s);return B(i,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t,args:s}}),i},r=function(...s){return new L2(e,n(...s),s)};return nt(r,{name:e.interface.getEventName(t),_contract:e,_key:t,getFragment:n}),Object.defineProperty(r,"fragment",{configurable:!1,enumerable:!0,get:()=>{const s=e.interface.getEvent(t);return B(s,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t}}),s}}),r}const nc=Symbol.for("_ethersInternal_contract"),np=new WeakMap;function Q2(e,t){np.set(e[nc],t)}function Ne(e){return np.get(e[nc])}function V2(e){return e&&typeof e=="object"&&"getTopicFilter"in e&&typeof e.getTopicFilter=="function"&&e.fragment}async function Vu(e,t){let n,r=null;if(Array.isArray(t)){const i=function(o){if(St(o,32))return o;const a=e.interface.getEvent(o);return E(a,"unknown fragment","name",o),a.topicHash};n=t.map(o=>o==null?null:Array.isArray(o)?o.map(i):i(o))}else t==="*"?n=[null]:typeof t=="string"?St(t,32)?n=[t]:(r=e.interface.getEvent(t),E(r,"unknown fragment","event",t),n=[r.topicHash]):V2(t)?n=await t.getTopicFilter():"fragment"in t?(r=t.fragment,n=[r.topicHash]):E(!1,"unknown event name","event",t);n=n.map(i=>{if(i==null)return null;if(Array.isArray(i)){const o=Array.from(new Set(i.map(a=>a.toLowerCase())).values());return o.length===1?o[0]:(o.sort(),o)}return i.toLowerCase()});const s=n.map(i=>i==null?"null":Array.isArray(i)?i.join("|"):i).join("&");return{fragment:r,tag:s,topics:n}}async function so(e,t){const{subs:n}=Ne(e);return n.get((await Vu(e,t)).tag)||null}async function $0(e,t,n){const r=Gr(e.runner);B(r,"contract runner does not support subscribing","UNSUPPORTED_OPERATION",{operation:t});const{fragment:s,tag:i,topics:o}=await Vu(e,n),{addr:a,subs:c}=Ne(e);let l=c.get(i);if(!l){const f={address:a||e,topics:o},d=x=>{let A=s;if(A==null)try{A=e.interface.getEvent(x.topics[0])}catch{}if(A){const O=A,R=s?e.interface.decodeEventLog(s,x.data,x.topics):[];zl(e,n,R,J=>new D2(e,J,n,O,x))}else zl(e,n,[],O=>new Yd(e,O,n,x))};let g=[];l={tag:i,listeners:[],start:()=>{g.length||g.push(r.on(f,d))},stop:async()=>{if(g.length==0)return;let x=g;g=[],await Promise.all(x),r.off(f,d)}},c.set(i,l)}return l}let Vl=Promise.resolve();async function z2(e,t,n,r){await Vl;const s=await so(e,t);if(!s)return!1;const i=s.listeners.length;return s.listeners=s.listeners.filter(({listener:o,once:a})=>{const c=Array.from(n);r&&c.push(r(a?null:o));try{o.call(e,...c)}catch{}return!a}),s.listeners.length===0&&(s.stop(),Ne(e).subs.delete(s.tag)),i>0}async function zl(e,t,n,r){try{await Vl}catch{}const s=z2(e,t,n,r);return Vl=s,await s}const Ea=["then"];var Qw;const wo=class{constructor(t,n,r,s){v(this,"target");v(this,"interface");v(this,"runner");v(this,"filters");v(this,Qw);v(this,"fallback");E(typeof t=="string"||sd(t),"invalid value for Contract target","target",t),r==null&&(r=null);const i=Qi.from(n);nt(this,{target:t,runner:r,interface:i}),Object.defineProperty(this,nc,{value:{}});let o,a=null,c=null;if(s){const f=Gr(r);c=new Gu(this.interface,f,s)}let l=new Map;if(typeof t=="string")if(St(t))a=t,o=Promise.resolve(t);else{const f=ws(r,"resolveName");if(!Fc(f))throw Gt("contract runner does not support name resolution","UNSUPPORTED_OPERATION",{operation:"resolveName"});o=f.resolveName(t).then(d=>{if(d==null)throw Gt("an ENS name used for a contract target must be correctly configured","UNCONFIGURED_NAME",{value:t});return Ne(this).addr=d,d})}else o=t.getAddress().then(f=>{if(f==null)throw new Error("TODO");return Ne(this).addr=f,f});Q2(this,{addrPromise:o,addr:a,deployTx:c,subs:l});const u=new Proxy({},{get:(f,d,g)=>{if(typeof d=="symbol"||Ea.indexOf(d)>=0)return Reflect.get(f,d,g);try{return this.getEvent(d)}catch(w){if(!ne(w,"INVALID_ARGUMENT")||w.argument!=="key")throw w}},has:(f,d)=>Ea.indexOf(d)>=0?Reflect.has(f,d):Reflect.has(f,d)||this.interface.hasEvent(String(d))});return nt(this,{filters:u}),nt(this,{fallback:i.receive||i.fallback?M2(this):null}),new Proxy(this,{get:(f,d,g)=>{if(typeof d=="symbol"||d in f||Ea.indexOf(d)>=0)return Reflect.get(f,d,g);try{return f.getFunction(d)}catch(w){if(!ne(w,"INVALID_ARGUMENT")||w.argument!=="key")throw w}},has:(f,d)=>typeof d=="symbol"||d in f||Ea.indexOf(d)>=0?Reflect.has(f,d):f.interface.hasFunction(d)})}connect(t){return new wo(this.target,this.interface,t)}attach(t){return new wo(t,this.interface,this.runner)}async getAddress(){return await Ne(this).addrPromise}async getDeployedCode(){const t=Gr(this.runner);B(t,"runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"getDeployedCode"});const n=await t.getCode(await this.getAddress());return n==="0x"?null:n}async waitForDeployment(){const t=this.deploymentTransaction();if(t)return await t.wait(),this;if(await this.getDeployedCode()!=null)return this;const r=Gr(this.runner);return B(r!=null,"contract runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"waitForDeployment"}),new Promise((s,i)=>{const o=async()=>{try{if(await this.getDeployedCode()!=null)return s(this);r.once("block",o)}catch(a){i(a)}};o()})}deploymentTransaction(){return Ne(this).deployTx}getFunction(t){return typeof t!="string"&&(t=t.format()),H2(this,t)}getEvent(t){return typeof t!="string"&&(t=t.format()),G2(this,t)}async queryTransaction(t){throw new Error("@TODO")}async queryFilter(t,n,r){n==null&&(n=0),r==null&&(r="latest");const{addr:s,addrPromise:i}=Ne(this),o=s||await i,{fragment:a,topics:c}=await Vu(this,t),l={address:o,topics:c,fromBlock:n,toBlock:r},u=Gr(this.runner);return B(u,"contract runner does not have a provider","UNSUPPORTED_OPERATION",{operation:"queryFilter"}),(await u.getLogs(l)).map(f=>{let d=a;if(d==null)try{d=this.interface.getEvent(f.topics[0])}catch{}if(d)try{return new Hu(f,this.interface,d)}catch(g){return new Zd(f,g)}return new oa(f,u)})}async on(t,n){const r=await $0(this,"on",t);return r.listeners.push({listener:n,once:!1}),r.start(),this}async once(t,n){const r=await $0(this,"once",t);return r.listeners.push({listener:n,once:!0}),r.start(),this}async emit(t,...n){return await zl(this,t,n,null)}async listenerCount(t){if(t){const s=await so(this,t);return s?s.listeners.length:0}const{subs:n}=Ne(this);let r=0;for(const{listeners:s}of n.values())r+=s.length;return r}async listeners(t){if(t){const s=await so(this,t);return s?s.listeners.map(({listener:i})=>i):[]}const{subs:n}=Ne(this);let r=[];for(const{listeners:s}of n.values())r=r.concat(s.map(({listener:i})=>i));return r}async off(t,n){const r=await so(this,t);if(!r)return this;if(n){const s=r.listeners.map(({listener:i})=>i).indexOf(n);s>=0&&r.listeners.splice(s,1)}return(n==null||r.listeners.length===0)&&(r.stop(),Ne(this).subs.delete(r.tag)),this}async removeAllListeners(t){if(t){const n=await so(this,t);if(!n)return this;n.stop(),Ne(this).subs.delete(n.tag)}else{const{subs:n}=Ne(this);for(const{tag:r,stop:s}of n.values())s(),n.delete(r)}return this}async addListener(t,n){return await this.on(t,n)}async removeListener(t,n){return await this.off(t,n)}static buildClass(t){class n extends wo{constructor(s,i=null){super(s,t,i)}}return n}static from(t,n,r){return r==null&&(r=null),new this(t,n,r)}};let Lo=wo;Qw=nc;function K2(){return Lo}class ps extends K2(){}class Dc{constructor(t,n,r){v(this,"interface");v(this,"bytecode");v(this,"runner");const s=Qi.from(t);n instanceof Uint8Array||(typeof n=="object"&&(n=n.object),n.startsWith("0x")||(n="0x"+n)),n=q(bt(n)),nt(this,{bytecode:n,interface:s,runner:r||null})}attach(t){return new Lo(t,this.interface,this.runner)}async getDeployTransaction(...t){let n={};const r=this.interface.deploy;if(r.inputs.length+1===t.length&&(n=await Qu(t.pop())),r.inputs.length!==t.length)throw new Error("incorrect number of arguments to constructor");const s=await ep(this.runner,r.inputs,t),i=Qt([this.bytecode,this.interface.encodeDeploy(s)]);return Object.assign({},n,{data:i})}async deploy(...t){const n=await this.getDeployTransaction(...t);B(this.runner&&typeof this.runner.sendTransaction=="function","factory runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const r=await this.runner.sendTransaction(n),s=rd(r);return new Lo(s,this.interface,this.runner,r)}connect(t){return new Dc(this.interface,this.bytecode,t)}static fromSolidity(t,n){E(t!=null,"bad compiler output","output",t),typeof t=="string"&&(t=JSON.parse(t));const r=t.abi;let s="";return t.bytecode?s=t.bytecode:t.evm&&t.evm.bytecode&&(s=t.evm.bytecode),new this(r,s,n)}}function ol(e){return e.match(/^ipfs:\/\/ipfs\//i)?e=e.substring(12):e.match(/^ipfs:\/\//i)?e=e.substring(7):E(!1,"unsupported IPFS format","link",e),`https://gateway.ipfs.io/ipfs/${e}`}class J2{constructor(t){v(this,"name");nt(this,{name:t})}connect(t){return this}supportsCoinType(t){return!1}async encodeAddress(t,n){throw new Error("unsupported coin")}async decodeAddress(t,n){throw new Error("unsupported coin")}}const rp=new RegExp("^(ipfs)://(.*)$","i"),th=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),rp,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];var dr,$r,pr,ks,cc,sp;const Ao=class{constructor(t,n,r){P(this,pr);v(this,"provider");v(this,"address");v(this,"name");P(this,dr,void 0);P(this,$r,void 0);nt(this,{provider:t,address:n,name:r}),b(this,dr,null),b(this,$r,new ps(n,["function supportsInterface(bytes4) view returns (bool)","function resolve(bytes, bytes) view returns (bytes)","function addr(bytes32) view returns (address)","function addr(bytes32, uint) view returns (bytes)","function text(bytes32, string) view returns (string)","function contenthash(bytes32) view returns (bytes)"],t))}async supportsWildcard(){return h(this,dr)==null&&b(this,dr,(async()=>{try{return await h(this,$r).supportsInterface("0x9061b923")}catch(t){if(ne(t,"CALL_EXCEPTION"))return!1;throw b(this,dr,null),t}})()),await h(this,dr)}async getAddress(t){if(t==null&&(t=60),t===60)try{const i=await z(this,pr,ks).call(this,"addr(bytes32)");return i==null||i===_l?null:i}catch(i){if(ne(i,"CALL_EXCEPTION"))return null;throw i}if(t>=0&&t<2147483648){let i=t+2147483648;const o=await z(this,pr,ks).call(this,"addr(bytes32,uint)",[i]);if(St(o,20))return yt(o)}let n=null;for(const i of this.provider.plugins)if(i instanceof J2&&i.supportsCoinType(t)){n=i;break}if(n==null)return null;const r=await z(this,pr,ks).call(this,"addr(bytes32,uint)",[t]);if(r==null||r==="0x")return null;const s=await n.decodeAddress(t,r);if(s!=null)return s;B(!1,"invalid coin data","UNSUPPORTED_OPERATION",{operation:`getAddress(${t})`,info:{coinType:t,data:r}})}async getText(t){const n=await z(this,pr,ks).call(this,"text(bytes32,string)",[t]);return n==null||n==="0x"?null:n}async getContentHash(){const t=await z(this,pr,ks).call(this,"contenthash(bytes32)");if(t==null||t==="0x")return null;const n=t.match(/^0x(e3010170|e5010172)(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(n){const s=n[1]==="e3010170"?"ipfs":"ipns",i=parseInt(n[4],16);if(n[5].length===i*2)return`${s}://${Ib("0x"+n[2])}`}const r=t.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(r&&r[1].length===64)return`bzz://${r[1]}`;B(!1,"invalid or unsupported content hash data","UNSUPPORTED_OPERATION",{operation:"getContentHash()",info:{data:t}})}async getAvatar(){return(await this._getAvatar()).url}async _getAvatar(){const t=[{type:"name",value:this.name}];try{const n=await this.getText("avatar");if(n==null)return t.push({type:"!avatar",value:""}),{url:null,linkage:t};t.push({type:"avatar",value:n});for(let r=0;r{if(!Array.isArray(t))throw new Error("not an array");return t.map(n=>e(n))}}function aa(e,t){return n=>{const r={};for(const s in e){let i=s;if(t&&s in t&&!(i in n)){for(const o of t[s])if(o in n){i=o;break}}try{const o=e[s](n[i]);o!==void 0&&(r[s]=o)}catch(o){const a=o instanceof Error?o.message:"not-an-error";B(!1,`invalid value for value.${s} (${a})`,"BAD_DATA",{value:n})}}return r}}function j2(e){switch(e){case!0:case"true":return!0;case!1:case"false":return!1}E(!1,`invalid boolean; ${JSON.stringify(e)}`,"value",e)}function Vi(e){return E(St(e,!0),"invalid data","value",e),e}function Ve(e){return E(St(e,32),"invalid hash","value",e),e}const W2=aa({address:yt,blockHash:Ve,blockNumber:ft,data:Vi,index:ft,removed:Tt(j2,!1),topics:zu(Ve),transactionHash:Ve,transactionIndex:ft},{index:["logIndex"]});function Z2(e){return W2(e)}const Y2=aa({hash:Tt(Ve),parentHash:Ve,number:ft,timestamp:ft,nonce:Tt(Vi),difficulty:X,gasLimit:X,gasUsed:X,miner:Tt(yt),extraData:Vi,baseFeePerGas:Tt(X)});function q2(e){const t=Y2(e);return t.transactions=e.transactions.map(n=>typeof n=="string"?n:ip(n)),t}const X2=aa({transactionIndex:ft,blockNumber:ft,transactionHash:Ve,address:yt,topics:zu(Ve),data:Vi,index:ft,blockHash:Ve},{index:["logIndex"]});function $2(e){return X2(e)}const tw=aa({to:Tt(yt,null),from:Tt(yt,null),contractAddress:Tt(yt,null),index:ft,root:Tt(q),gasUsed:X,logsBloom:Tt(Vi),blockHash:Ve,hash:Ve,logs:zu($2),blockNumber:ft,cumulativeGasUsed:X,effectiveGasPrice:Tt(X),status:Tt(ft),type:Tt(ft,0)},{effectiveGasPrice:["gasPrice"],hash:["transactionHash"],index:["transactionIndex"]});function ew(e){return tw(e)}function ip(e){e.to&&X(e.to)===eh&&(e.to="0x0000000000000000000000000000000000000000");const t=aa({hash:Ve,type:n=>n==="0x"||n==null?0:ft(n),accessList:Tt(Es,null),blockHash:Tt(Ve,null),blockNumber:Tt(ft,null),transactionIndex:Tt(ft,null),from:yt,gasPrice:Tt(X),maxPriorityFeePerGas:Tt(X),maxFeePerGas:Tt(X),gasLimit:X,to:Tt(yt,null),value:X,nonce:ft,data:Vi,creates:Tt(yt,null),chainId:Tt(X,null)},{data:["input"],gasLimit:["gas"]})(e);if(t.to==null&&t.creates==null&&(t.creates=rd(t)),(e.type===1||e.type===2)&&e.accessList==null&&(t.accessList=[]),e.signature?t.signature=rn.from(e.signature):t.signature=rn.from(e),t.chainId==null){const n=t.signature.legacyChainId;n!=null&&(t.chainId=n)}return t.blockHash&&X(t.blockHash)===eh&&(t.blockHash=null),t}const nw="0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";class ca{constructor(t){v(this,"name");nt(this,{name:t})}clone(){return new ca(this.name)}}class Lc extends ca{constructor(n,r){n==null&&(n=0);super(`org.ethers.network.plugins.GasCost#${n||0}`);v(this,"effectiveBlock");v(this,"txBase");v(this,"txCreate");v(this,"txDataZero");v(this,"txDataNonzero");v(this,"txAccessListStorageKey");v(this,"txAccessListAddress");const s={effectiveBlock:n};function i(o,a){let c=(r||{})[o];c==null&&(c=a),E(typeof c=="number",`invalud value for ${o}`,"costs",r),s[o]=c}i("txBase",21e3),i("txCreate",32e3),i("txDataZero",4),i("txDataNonzero",16),i("txAccessListStorageKey",1900),i("txAccessListAddress",2400),nt(this,s)}clone(){return new Lc(this.effectiveBlock,this)}}class Mc extends ca{constructor(n,r){super("org.ethers.plugins.network.Ens");v(this,"address");v(this,"targetNetwork");nt(this,{address:n||nw,targetNetwork:r==null?1:r})}clone(){return new Mc(this.address,this.targetNetwork)}}var Wo,Zo;class rw extends ca{constructor(n,r){super("org.ethers.plugins.network.FetchUrlFeeDataPlugin");P(this,Wo,void 0);P(this,Zo,void 0);b(this,Wo,n),b(this,Zo,r)}get url(){return h(this,Wo)}get processFunc(){return h(this,Zo)}clone(){return this}}Wo=new WeakMap,Zo=new WeakMap;const al=new Map;var bi,mi,gr;const Ls=class{constructor(t,n){P(this,bi,void 0);P(this,mi,void 0);P(this,gr,void 0);b(this,bi,t),b(this,mi,X(n)),b(this,gr,new Map)}toJSON(){return{name:this.name,chainId:String(this.chainId)}}get name(){return h(this,bi)}set name(t){b(this,bi,t)}get chainId(){return h(this,mi)}set chainId(t){b(this,mi,X(t,"chainId"))}matches(t){if(t==null)return!1;if(typeof t=="string"){try{return this.chainId===X(t)}catch{}return this.name===t}if(typeof t=="number"||typeof t=="bigint"){try{return this.chainId===X(t)}catch{}return!1}if(typeof t=="object"){if(t.chainId!=null){try{return this.chainId===X(t.chainId)}catch{}return!1}return t.name!=null?this.name===t.name:!1}return!1}get plugins(){return Array.from(h(this,gr).values())}attachPlugin(t){if(h(this,gr).get(t.name))throw new Error(`cannot replace existing plugin: ${t.name} `);return h(this,gr).set(t.name,t.clone()),this}getPlugin(t){return h(this,gr).get(t)||null}getPlugins(t){return this.plugins.filter(n=>n.name.split("#")[0]===t)}clone(){const t=new Ls(this.name,this.chainId);return this.plugins.forEach(n=>{t.attachPlugin(n.clone())}),t}computeIntrinsicGas(t){const n=this.getPlugin("org.ethers.plugins.network.GasCost")||new Lc;let r=n.txBase;if(t.to==null&&(r+=n.txCreate),t.data)for(let s=2;s9){let s=BigInt(r[1].substring(0,9));r[1].substring(9).match(/^0+$/)||s++,r[1]=s.toString()}return BigInt(r[0]+r[1])}function rh(e){return new rw(e,async(t,n,r)=>{r.setHeader("User-Agent","ethers");let s;try{const[i,o]=await Promise.all([r.send(),t()]);s=i;const a=s.bodyJson.standard;return{gasPrice:o.gasPrice,maxFeePerGas:nh(a.maxFee,9),maxPriorityFeePerGas:nh(a.maxPriorityFee,9)}}catch(i){B(!1,`error encountered with polygon gas station (${JSON.stringify(r.url)})`,"SERVER_ERROR",{request:r,response:s,error:i})}})}let sh=!1;function sw(){if(sh)return;sh=!0;function e(t,n,r){const s=function(){const i=new En(t,n);return r.ensNetwork!=null&&i.attachPlugin(new Mc(null,r.ensNetwork)),i.attachPlugin(new Lc),(r.plugins||[]).forEach(o=>{i.attachPlugin(o)}),i};En.register(t,s),En.register(n,s),r.altNames&&r.altNames.forEach(i=>{En.register(i,s)})}e("mainnet",1,{ensNetwork:1,altNames:["homestead"]}),e("ropsten",3,{ensNetwork:3}),e("rinkeby",4,{ensNetwork:4}),e("goerli",5,{ensNetwork:5}),e("kovan",42,{ensNetwork:42}),e("sepolia",11155111,{ensNetwork:11155111}),e("classic",61,{}),e("classicKotti",6,{}),e("arbitrum",42161,{ensNetwork:1}),e("arbitrum-goerli",421613,{}),e("base",8453,{ensNetwork:1}),e("base-goerli",84531,{}),e("base-sepolia",84532,{}),e("bnb",56,{ensNetwork:1}),e("bnbt",97,{}),e("linea",59144,{ensNetwork:1}),e("linea-goerli",59140,{}),e("matic",137,{ensNetwork:1,plugins:[rh("https://gasstation.polygon.technology/v2")]}),e("matic-mumbai",80001,{altNames:["maticMumbai","maticmum"],plugins:[rh("https://gasstation-testnet.polygon.technology/v2")]}),e("optimism",10,{ensNetwork:1,plugins:[]}),e("optimism-goerli",420,{}),e("xdai",100,{ensNetwork:1})}function Kl(e){return JSON.parse(JSON.stringify(e))}var Dn,De,br,pn,yi,Sa;class iw{constructor(t){P(this,yi);P(this,Dn,void 0);P(this,De,void 0);P(this,br,void 0);P(this,pn,void 0);b(this,Dn,t),b(this,De,null),b(this,br,4e3),b(this,pn,-2)}get pollingInterval(){return h(this,br)}set pollingInterval(t){b(this,br,t)}start(){h(this,De)||(b(this,De,h(this,Dn)._setTimeout(z(this,yi,Sa).bind(this),h(this,br))),z(this,yi,Sa).call(this))}stop(){!h(this,De)||(h(this,Dn)._clearTimeout(h(this,De)),b(this,De,null))}pause(t){this.stop(),t&&b(this,pn,-2)}resume(){this.start()}}Dn=new WeakMap,De=new WeakMap,br=new WeakMap,pn=new WeakMap,yi=new WeakSet,Sa=async function(){try{const t=await h(this,Dn).getBlockNumber();if(h(this,pn)===-2){b(this,pn,t);return}if(t!==h(this,pn)){for(let n=h(this,pn)+1;n<=t;n++){if(h(this,De)==null)return;await h(this,Dn).emit("block",n)}b(this,pn,t)}}catch{}h(this,De)!=null&&b(this,De,h(this,Dn)._setTimeout(z(this,yi,Sa).bind(this),h(this,br)))};var ts,es,mr;class Ku{constructor(t){P(this,ts,void 0);P(this,es,void 0);P(this,mr,void 0);b(this,ts,t),b(this,mr,!1),b(this,es,n=>{this._poll(n,h(this,ts))})}async _poll(t,n){throw new Error("sub-classes must override this")}start(){h(this,mr)||(b(this,mr,!0),h(this,es).call(this,-2),h(this,ts).on("block",h(this,es)))}stop(){!h(this,mr)||(b(this,mr,!1),h(this,ts).off("block",h(this,es)))}pause(t){this.stop()}resume(){this.start()}}ts=new WeakMap,es=new WeakMap,mr=new WeakMap;var wi,Ln;class ow extends Ku{constructor(n,r){super(n);P(this,wi,void 0);P(this,Ln,void 0);b(this,wi,r),b(this,Ln,-2)}pause(n){n&&b(this,Ln,-2),super.pause(n)}async _poll(n,r){const s=await r.getBlock(h(this,wi));s!=null&&(h(this,Ln)===-2?b(this,Ln,s.number):s.number>h(this,Ln)&&(r.emit(h(this,wi),s.number),b(this,Ln,s.number)))}}wi=new WeakMap,Ln=new WeakMap;var lc;class aw extends Ku{constructor(n,r){super(n);P(this,lc,void 0);b(this,lc,Kl(r))}async _poll(n,r){throw new Error("@TODO")}}lc=new WeakMap;var Ai;class cw extends Ku{constructor(n,r){super(n);P(this,Ai,void 0);b(this,Ai,r)}async _poll(n,r){const s=await r.getTransactionReceipt(h(this,Ai));s&&r.emit(h(this,Ai),s)}}Ai=new WeakMap;var Mn,Ei,xi,yr,Le,uc,op;class Ju{constructor(t,n){P(this,uc);P(this,Mn,void 0);P(this,Ei,void 0);P(this,xi,void 0);P(this,yr,void 0);P(this,Le,void 0);b(this,Mn,t),b(this,Ei,Kl(n)),b(this,xi,z(this,uc,op).bind(this)),b(this,yr,!1),b(this,Le,-2)}start(){h(this,yr)||(b(this,yr,!0),h(this,Le)===-2&&h(this,Mn).getBlockNumber().then(t=>{b(this,Le,t)}),h(this,Mn).on("block",h(this,xi)))}stop(){!h(this,yr)||(b(this,yr,!1),h(this,Mn).off("block",h(this,xi)))}pause(t){this.stop(),t&&b(this,Le,-2)}resume(){this.start()}}Mn=new WeakMap,Ei=new WeakMap,xi=new WeakMap,yr=new WeakMap,Le=new WeakMap,uc=new WeakSet,op=async function(t){if(h(this,Le)===-2)return;const n=Kl(h(this,Ei));n.fromBlock=h(this,Le)+1,n.toBlock=t;const r=await h(this,Mn).getLogs(n);if(r.length===0){h(this,Le){if(r==null)return"null";if(typeof r=="bigint")return`bigint:${r.toString()}`;if(typeof r=="string")return r.toLowerCase();if(typeof r=="object"&&!Array.isArray(r)){const s=Object.keys(r);return s.sort(),s.reduce((i,o)=>(i[o]=r[o],i),{})}return r})}class ap{constructor(t){v(this,"name");nt(this,{name:t})}start(){}stop(){}pause(t){}resume(){}}function fw(e){return JSON.parse(JSON.stringify(e))}function Jl(e){return e=Array.from(new Set(e).values()),e.sort(),e}async function cl(e,t){if(e==null)throw new Error("invalid event");if(Array.isArray(e)&&(e={topics:e}),typeof e=="string")switch(e){case"block":case"debug":case"error":case"finalized":case"network":case"pending":case"safe":return{type:e,tag:e}}if(St(e,32)){const n=e.toLowerCase();return{type:"transaction",tag:Ua("tx",{hash:n}),hash:n}}if(e.orphan){const n=e;return{type:"orphan",tag:Ua("orphan",n),filter:fw(n)}}if(e.address||e.topics){const n=e,r={topics:(n.topics||[]).map(s=>s==null?null:Array.isArray(s)?Jl(s.map(i=>i.toLowerCase())):s.toLowerCase())};if(n.address){const s=[],i=[],o=a=>{St(a)?s.push(a):i.push((async()=>{s.push(await fe(a,t))})())};Array.isArray(n.address)?n.address.forEach(o):o(n.address),i.length&&await Promise.all(i),r.address=Jl(s.map(a=>a.toLowerCase()))}return{filter:r,tag:Ua("event",r),type:"event"}}E(!1,"unknown ProviderEvent","event",e)}function ll(){return new Date().getTime()}const hw={cacheTimeout:250,pollingInterval:4e3};var Xt,wr,$t,vi,Re,ns,Ar,Hn,Yo,Me,Pi,Ci,oe,Ce,qo,jl,Xo,Wl,rs,io,$o,Zl,ss,oo,Ni,_a;class dw{constructor(t,n){P(this,oe);P(this,qo);P(this,Xo);P(this,rs);P(this,$o);P(this,ss);P(this,Ni);P(this,Xt,void 0);P(this,wr,void 0);P(this,$t,void 0);P(this,vi,void 0);P(this,Re,void 0);P(this,ns,void 0);P(this,Ar,void 0);P(this,Hn,void 0);P(this,Yo,void 0);P(this,Me,void 0);P(this,Pi,void 0);P(this,Ci,void 0);if(b(this,Ci,Object.assign({},hw,n||{})),t==="any")b(this,ns,!0),b(this,Re,null);else if(t){const r=En.from(t);b(this,ns,!1),b(this,Re,Promise.resolve(r)),setTimeout(()=>{this.emit("network",r,null)},0)}else b(this,ns,!1),b(this,Re,null);b(this,Hn,-1),b(this,Ar,new Map),b(this,Xt,new Map),b(this,wr,new Map),b(this,$t,null),b(this,vi,!1),b(this,Yo,1),b(this,Me,new Map),b(this,Pi,!1)}get pollingInterval(){return h(this,Ci).pollingInterval}get provider(){return this}get plugins(){return Array.from(h(this,wr).values())}attachPlugin(t){if(h(this,wr).get(t.name))throw new Error(`cannot replace existing plugin: ${t.name} `);return h(this,wr).set(t.name,t.connect(this)),this}getPlugin(t){return h(this,wr).get(t)||null}get disableCcipRead(){return h(this,Pi)}set disableCcipRead(t){b(this,Pi,!!t)}async ccipReadFetch(t,n,r){if(this.disableCcipRead||r.length===0||t.to==null)return null;const s=t.to.toLowerCase(),i=n.toLowerCase(),o=[];for(let a=0;a=500,`response not found during CCIP fetch: ${f}`,"OFFCHAIN_FAULT",{reason:"404_MISSING_RESOURCE",transaction:t,info:{url:c,errorMessage:f}}),o.push(f)}B(!1,`error encountered during CCIP fetch: ${o.map(a=>JSON.stringify(a)).join(", ")}`,"OFFCHAIN_FAULT",{reason:"500_SERVER_ERROR",transaction:t,info:{urls:r,errorMessages:o}})}_wrapBlock(t,n){return new S2(q2(t),this)}_wrapLog(t,n){return new oa(Z2(t),this)}_wrapTransactionReceipt(t,n){return new Jd(ew(t),this)}_wrapTransactionResponse(t,n){return new Do(ip(t),this)}_detectNetwork(){B(!1,"sub-classes must implement this","UNSUPPORTED_OPERATION",{operation:"_detectNetwork"})}async _perform(t){B(!1,`unsupported method: ${t.method}`,"UNSUPPORTED_OPERATION",{operation:t.method,info:t})}async getBlockNumber(){const t=ft(await z(this,oe,Ce).call(this,{method:"getBlockNumber"}),"%response");return h(this,Hn)>=0&&b(this,Hn,t),t}_getAddress(t){return fe(t,this)}_getBlockTag(t){if(t==null)return"latest";switch(t){case"earliest":return"0x0";case"finalized":case"latest":case"pending":case"safe":return t}if(St(t))return St(t,32)?t:_s(t);if(typeof t=="bigint"&&(t=ft(t,"blockTag")),typeof t=="number")return t>=0?_s(t):h(this,Hn)>=0?_s(h(this,Hn)+t):this.getBlockNumber().then(n=>_s(n+t));E(!1,"invalid blockTag","blockTag",t)}_getFilter(t){const n=(t.topics||[]).map(c=>c==null?null:Array.isArray(c)?Jl(c.map(l=>l.toLowerCase())):c.toLowerCase()),r="blockHash"in t?t.blockHash:void 0,s=(c,l,u)=>{let f;switch(c.length){case 0:break;case 1:f=c[0];break;default:c.sort(),f=c}if(r&&(l!=null||u!=null))throw new Error("invalid filter");const d={};return f&&(d.address=f),n.length&&(d.topics=n),l&&(d.fromBlock=l),u&&(d.toBlock=u),r&&(d.blockHash=r),d};let i=[];if(t.address)if(Array.isArray(t.address))for(const c of t.address)i.push(this._getAddress(c));else i.push(this._getAddress(t.address));let o;"fromBlock"in t&&(o=this._getBlockTag(t.fromBlock));let a;return"toBlock"in t&&(a=this._getBlockTag(t.toBlock)),i.filter(c=>typeof c!="string").length||o!=null&&typeof o!="string"||a!=null&&typeof a!="string"?Promise.all([Promise.all(i),o,a]).then(c=>s(c[0],c[1],c[2])):s(i,o,a)}_getTransactionRequest(t){const n=ec(t),r=[];if(["to","from"].forEach(s=>{if(n[s]==null)return;const i=fe(n[s],this);xa(i)?r.push(async function(){n[s]=await i}()):n[s]=i}),n.blockTag!=null){const s=this._getBlockTag(n.blockTag);xa(s)?r.push(async function(){n.blockTag=await s}()):n.blockTag=s}return r.length?async function(){return await Promise.all(r),n}():n}async getNetwork(){if(h(this,Re)==null){const s=(async()=>{try{const i=await this._detectNetwork();return this.emit("network",i,null),i}catch(i){throw h(this,Re)===s&&b(this,Re,null),i}})();return b(this,Re,s),(await s).clone()}const t=h(this,Re),[n,r]=await Promise.all([t,this._detectNetwork()]);return n.chainId!==r.chainId&&(h(this,ns)?(this.emit("network",r,n),h(this,Re)===t&&b(this,Re,Promise.resolve(r))):B(!1,`network changed: ${n.chainId} => ${r.chainId} `,"NETWORK_ERROR",{event:"changed"})),n.clone()}async getFeeData(){const t=await this.getNetwork(),n=async()=>{const{_block:s,gasPrice:i,priorityFee:o}=await ae({_block:z(this,$o,Zl).call(this,"latest",!1),gasPrice:(async()=>{try{const u=await z(this,oe,Ce).call(this,{method:"getGasPrice"});return X(u,"%response")}catch{}return null})(),priorityFee:(async()=>{try{const u=await z(this,oe,Ce).call(this,{method:"getPriorityFee"});return X(u,"%response")}catch{}return null})()});let a=null,c=null;const l=this._wrapBlock(s,t);return l&&l.baseFeePerGas&&(c=o!=null?o:BigInt("1000000000"),a=l.baseFeePerGas*lw+c),new q0(i,a,c)},r=t.getPlugin("org.ethers.plugins.network.FetchUrlFeeDataPlugin");if(r){const s=new Wn(r.url),i=await r.processFunc(n,this,s);return new q0(i.gasPrice,i.maxFeePerGas,i.maxPriorityFeePerGas)}return await n()}async estimateGas(t){let n=this._getTransactionRequest(t);return xa(n)&&(n=await n),X(await z(this,oe,Ce).call(this,{method:"estimateGas",transaction:n}),"%response")}async call(t){const{tx:n,blockTag:r}=await ae({tx:this._getTransactionRequest(t),blockTag:this._getBlockTag(t.blockTag)});return await z(this,Xo,Wl).call(this,z(this,qo,jl).call(this,n,r,t.enableCcipRead?0:-1))}async getBalance(t,n){return X(await z(this,rs,io).call(this,{method:"getBalance"},t,n),"%response")}async getTransactionCount(t,n){return ft(await z(this,rs,io).call(this,{method:"getTransactionCount"},t,n),"%response")}async getCode(t,n){return q(await z(this,rs,io).call(this,{method:"getCode"},t,n))}async getStorage(t,n,r){const s=X(n,"position");return q(await z(this,rs,io).call(this,{method:"getStorage",position:s},t,r))}async broadcastTransaction(t){const{blockNumber:n,hash:r,network:s}=await ae({blockNumber:this.getBlockNumber(),hash:this._perform({method:"broadcastTransaction",signedTransaction:t}),network:this.getNetwork()}),i=$a.from(t);if(i.hash!==r)throw new Error("@TODO: the returned hash did not match");return this._wrapTransactionResponse(i,s).replaceableTransaction(n)}async getBlock(t,n){const{network:r,params:s}=await ae({network:this.getNetwork(),params:z(this,$o,Zl).call(this,t,!!n)});return s==null?null:this._wrapBlock(s,r)}async getTransaction(t){const{network:n,params:r}=await ae({network:this.getNetwork(),params:z(this,oe,Ce).call(this,{method:"getTransaction",hash:t})});return r==null?null:this._wrapTransactionResponse(r,n)}async getTransactionReceipt(t){const{network:n,params:r}=await ae({network:this.getNetwork(),params:z(this,oe,Ce).call(this,{method:"getTransactionReceipt",hash:t})});if(r==null)return null;if(r.gasPrice==null&&r.effectiveGasPrice==null){const s=await z(this,oe,Ce).call(this,{method:"getTransaction",hash:t});if(s==null)throw new Error("report this; could not find tx or effectiveGasPrice");r.effectiveGasPrice=s.gasPrice}return this._wrapTransactionReceipt(r,n)}async getTransactionResult(t){const{result:n}=await ae({network:this.getNetwork(),result:z(this,oe,Ce).call(this,{method:"getTransactionResult",hash:t})});return n==null?null:q(n)}async getLogs(t){let n=this._getFilter(t);xa(n)&&(n=await n);const{network:r,params:s}=await ae({network:this.getNetwork(),params:z(this,oe,Ce).call(this,{method:"getLogs",filter:n})});return s.map(i=>this._wrapLog(i,r))}_getProvider(t){B(!1,"provider cannot connect to target network","UNSUPPORTED_OPERATION",{operation:"_getProvider()"})}async getResolver(t){return await mo.fromName(this,t)}async getAvatar(t){const n=await this.getResolver(t);return n?await n.getAvatar():null}async resolveName(t){const n=await this.getResolver(t);return n?await n.getAddress():null}async lookupAddress(t){t=yt(t);const n=Gl(t.substring(2).toLowerCase()+".addr.reverse");try{const r=await mo.getEnsAddress(this),i=await new ps(r,["function resolver(bytes32) view returns (address)"],this).resolver(n);if(i==null||i===_l)return null;const a=await new ps(i,["function name(bytes32) view returns (string)"],this).name(n);return await this.resolveName(a)!==t?null:a}catch(r){if(ne(r,"BAD_DATA")&&r.value==="0x"||ne(r,"CALL_EXCEPTION"))return null;throw r}return null}async waitForTransaction(t,n,r){const s=n!=null?n:1;return s===0?this.getTransactionReceipt(t):new Promise(async(i,o)=>{let a=null;const c=async l=>{try{const u=await this.getTransactionReceipt(t);if(u!=null&&l-u.blockNumber+1>=s){i(u),a&&(clearTimeout(a),a=null);return}}catch(u){console.log("EEE",u)}this.once("block",c)};r!=null&&(a=setTimeout(()=>{a!=null&&(a=null,this.off("block",c),o(Gt("timeout","TIMEOUT",{reason:"timeout"})))},r)),c(await this.getBlockNumber())})}async waitForBlock(t){B(!1,"not implemented yet","NOT_IMPLEMENTED",{operation:"waitForBlock"})}_clearTimeout(t){const n=h(this,Me).get(t);!n||(n.timer&&clearTimeout(n.timer),h(this,Me).delete(t))}_setTimeout(t,n){n==null&&(n=0);const r=Zi(this,Yo)._++,s=()=>{h(this,Me).delete(r),t()};if(this.paused)h(this,Me).set(r,{timer:null,func:s,time:n});else{const i=setTimeout(s,n);h(this,Me).set(r,{timer:i,func:s,time:ll()})}return r}_forEachSubscriber(t){for(const n of h(this,Xt).values())t(n.subscriber)}_getSubscriber(t){switch(t.type){case"debug":case"error":case"network":return new ap(t.type);case"block":{const n=new iw(this);return n.pollingInterval=this.pollingInterval,n}case"safe":case"finalized":return new ow(this,t.type);case"event":return new Ju(this,t.filter);case"transaction":return new cw(this,t.hash);case"orphan":return new aw(this,t.filter)}throw new Error(`unsupported event: ${t.type}`)}_recoverSubscriber(t,n){for(const r of h(this,Xt).values())if(r.subscriber===t){r.started&&r.subscriber.stop(),r.subscriber=n,r.started&&n.start(),h(this,$t)!=null&&n.pause(h(this,$t));break}}async on(t,n){const r=await z(this,Ni,_a).call(this,t);return r.listeners.push({listener:n,once:!1}),r.started||(r.subscriber.start(),r.started=!0,h(this,$t)!=null&&r.subscriber.pause(h(this,$t))),this}async once(t,n){const r=await z(this,Ni,_a).call(this,t);return r.listeners.push({listener:n,once:!0}),r.started||(r.subscriber.start(),r.started=!0,h(this,$t)!=null&&r.subscriber.pause(h(this,$t))),this}async emit(t,...n){const r=await z(this,ss,oo).call(this,t,n);if(!r||r.listeners.length===0)return!1;const s=r.listeners.length;return r.listeners=r.listeners.filter(({listener:i,once:o})=>{const a=new R1(this,o?null:i,t);try{i.call(this,...n,a)}catch{}return!o}),r.listeners.length===0&&(r.started&&r.subscriber.stop(),h(this,Xt).delete(r.tag)),s>0}async listenerCount(t){if(t){const r=await z(this,ss,oo).call(this,t);return r?r.listeners.length:0}let n=0;for(const{listeners:r}of h(this,Xt).values())n+=r.length;return n}async listeners(t){if(t){const r=await z(this,ss,oo).call(this,t);return r?r.listeners.map(({listener:s})=>s):[]}let n=[];for(const{listeners:r}of h(this,Xt).values())n=n.concat(r.map(({listener:s})=>s));return n}async off(t,n){const r=await z(this,ss,oo).call(this,t);if(!r)return this;if(n){const s=r.listeners.map(({listener:i})=>i).indexOf(n);s>=0&&r.listeners.splice(s,1)}return(!n||r.listeners.length===0)&&(r.started&&r.subscriber.stop(),h(this,Xt).delete(r.tag)),this}async removeAllListeners(t){if(t){const{tag:n,started:r,subscriber:s}=await z(this,Ni,_a).call(this,t);r&&s.stop(),h(this,Xt).delete(n)}else for(const[n,{started:r,subscriber:s}]of h(this,Xt))r&&s.stop(),h(this,Xt).delete(n);return this}async addListener(t,n){return await this.on(t,n)}async removeListener(t,n){return this.off(t,n)}get destroyed(){return h(this,vi)}destroy(){this.removeAllListeners();for(const t of h(this,Me).keys())this._clearTimeout(t);b(this,vi,!0)}get paused(){return h(this,$t)!=null}set paused(t){!!t!==this.paused&&(this.paused?this.resume():this.pause(!1))}pause(t){if(b(this,Hn,-1),h(this,$t)!=null){if(h(this,$t)==!!t)return;B(!1,"cannot change pause type; resume first","UNSUPPORTED_OPERATION",{operation:"pause"})}this._forEachSubscriber(n=>n.pause(t)),b(this,$t,!!t);for(const n of h(this,Me).values())n.timer&&clearTimeout(n.timer),n.time=ll()-n.time}resume(){if(h(this,$t)!=null){this._forEachSubscriber(t=>t.resume()),b(this,$t,null);for(const t of h(this,Me).values()){let n=t.time;n<0&&(n=0),t.time=ll(),setTimeout(t.func,n)}}}}Xt=new WeakMap,wr=new WeakMap,$t=new WeakMap,vi=new WeakMap,Re=new WeakMap,ns=new WeakMap,Ar=new WeakMap,Hn=new WeakMap,Yo=new WeakMap,Me=new WeakMap,Pi=new WeakMap,Ci=new WeakMap,oe=new WeakSet,Ce=async function(t){const n=h(this,Ci).cacheTimeout;if(n<0)return await this._perform(t);const r=Ua(t.method,t);let s=h(this,Ar).get(r);return s||(s=this._perform(t),h(this,Ar).set(r,s),setTimeout(()=>{h(this,Ar).get(r)===s&&h(this,Ar).delete(r)},n)),await s},qo=new WeakSet,jl=async function(t,n,r){B(r=0&&n==="latest"&&s.to!=null&&Ft(i.data,0,4)==="0x556f1830"){const o=i.data,a=await fe(s.to,this);let c;try{c=yw(Ft(i.data,4))}catch(f){B(!1,f.message,"OFFCHAIN_FAULT",{reason:"BAD_DATA",transaction:s,info:{data:o}})}B(c.sender.toLowerCase()===a.toLowerCase(),"CCIP Read sender mismatch","CALL_EXCEPTION",{action:"call",data:o,reason:"OffchainLookup",transaction:s,invocation:null,revert:{signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",name:"OffchainLookup",args:c.errorArgs}});const l=await this.ccipReadFetch(s,c.calldata,c.urls);B(l!=null,"CCIP Read failed to fetch data","OFFCHAIN_FAULT",{reason:"FETCH_FAILED",transaction:s,info:{data:i.data,errorArgs:c.errorArgs}});const u={to:a,data:Qt([c.selector,mw([l,c.extraData])])};this.emit("debug",{action:"sendCcipReadCall",transaction:u});try{const f=await z(this,qo,jl).call(this,u,n,r+1);return this.emit("debug",{action:"receiveCcipReadCallResult",transaction:Object.assign({},u),result:f}),f}catch(f){throw this.emit("debug",{action:"receiveCcipReadCallError",transaction:Object.assign({},u),error:f}),f}}throw i}},Xo=new WeakSet,Wl=async function(t){const{value:n}=await ae({network:this.getNetwork(),value:t});return n},rs=new WeakSet,io=async function(t,n,r){let s=this._getAddress(n),i=this._getBlockTag(r);return(typeof s!="string"||typeof i!="string")&&([s,i]=await Promise.all([s,i])),await z(this,Xo,Wl).call(this,z(this,oe,Ce).call(this,Object.assign(t,{address:s,blockTag:i})))},$o=new WeakSet,Zl=async function(t,n){if(St(t,32))return await z(this,oe,Ce).call(this,{method:"getBlock",blockHash:t,includeTransactions:n});let r=this._getBlockTag(t);return typeof r!="string"&&(r=await r),await z(this,oe,Ce).call(this,{method:"getBlock",blockTag:r,includeTransactions:n})},ss=new WeakSet,oo=async function(t,n){let r=await cl(t,this);return r.type==="event"&&n&&n.length>0&&n[0].removed===!0&&(r=await cl({orphan:"drop-log",log:n[0]},this)),h(this,Xt).get(r.tag)||null},Ni=new WeakSet,_a=async function(t){const n=await cl(t,this),r=n.tag;let s=h(this,Xt).get(r);return s||(s={subscriber:this._getSubscriber(n),tag:r,addressableMap:new WeakMap,nameMap:new Map,started:!1,listeners:[]},h(this,Xt).set(r,s)),s};function pw(e,t){try{const n=Yl(e,t);if(n)return Nu(n)}catch{}return null}function Yl(e,t){if(e==="0x")return null;try{const n=ft(Ft(e,t,t+32)),r=ft(Ft(e,n,n+32));return Ft(e,n+32,n+32+r)}catch{}return null}function ih(e){const t=ke(e);if(t.length>32)throw new Error("internal; should not happen");const n=new Uint8Array(32);return n.set(t,32-t.length),n}function gw(e){if(e.length%32===0)return e;const t=new Uint8Array(Math.ceil(e.length/32)*32);return t.set(e),t}const bw=new Uint8Array([]);function mw(e){const t=[];let n=0;for(let r=0;r=5*32,"insufficient OffchainLookup data","OFFCHAIN_FAULT",{reason:"insufficient OffchainLookup data"});const n=Ft(e,0,32);B(Ft(n,0,12)===Ft(oh,0,12),"corrupt OffchainLookup sender","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup sender"}),t.sender=Ft(n,12);try{const r=[],s=ft(Ft(e,32,64)),i=ft(Ft(e,s,s+32)),o=Ft(e,s+32);for(let a=0;at[r]),t}function Ns(e,t){if(e.provider)return e.provider;B(!1,"missing provider","UNSUPPORTED_OPERATION",{operation:t})}async function ah(e,t){let n=ec(t);if(n.to!=null&&(n.to=fe(n.to,e)),n.from!=null){const r=n.from;n.from=Promise.all([e.getAddress(),fe(r,e)]).then(([s,i])=>(E(s.toLowerCase()===i.toLowerCase(),"transaction from mismatch","tx.from",i),s))}else n.from=e.getAddress();return await ae(n)}class ww{constructor(t){v(this,"provider");nt(this,{provider:t||null})}async getNonce(t){return Ns(this,"getTransactionCount").getTransactionCount(await this.getAddress(),t)}async populateCall(t){return await ah(this,t)}async populateTransaction(t){const n=Ns(this,"populateTransaction"),r=await ah(this,t);r.nonce==null&&(r.nonce=await this.getNonce("pending")),r.gasLimit==null&&(r.gasLimit=await this.estimateGas(r));const s=await this.provider.getNetwork();if(r.chainId!=null){const o=X(r.chainId);E(o===s.chainId,"transaction chainId mismatch","tx.chainId",t.chainId)}else r.chainId=s.chainId;const i=r.maxFeePerGas!=null||r.maxPriorityFeePerGas!=null;if(r.gasPrice!=null&&(r.type===2||i)?E(!1,"eip-1559 transaction do not support gasPrice","tx",t):(r.type===0||r.type===1)&&i&&E(!1,"pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","tx",t),(r.type===2||r.type==null)&&r.maxFeePerGas!=null&&r.maxPriorityFeePerGas!=null)r.type=2;else if(r.type===0||r.type===1){const o=await n.getFeeData();B(o.gasPrice!=null,"network does not support gasPrice","UNSUPPORTED_OPERATION",{operation:"getGasPrice"}),r.gasPrice==null&&(r.gasPrice=o.gasPrice)}else{const o=await n.getFeeData();if(r.type==null)if(o.maxFeePerGas!=null&&o.maxPriorityFeePerGas!=null)if(r.type=2,r.gasPrice!=null){const a=r.gasPrice;delete r.gasPrice,r.maxFeePerGas=a,r.maxPriorityFeePerGas=a}else r.maxFeePerGas==null&&(r.maxFeePerGas=o.maxFeePerGas),r.maxPriorityFeePerGas==null&&(r.maxPriorityFeePerGas=o.maxPriorityFeePerGas);else o.gasPrice!=null?(B(!i,"network does not support EIP-1559","UNSUPPORTED_OPERATION",{operation:"populateTransaction"}),r.gasPrice==null&&(r.gasPrice=o.gasPrice),r.type=0):B(!1,"failed to get consistent fee data","UNSUPPORTED_OPERATION",{operation:"signer.getFeeData"});else r.type===2&&(r.maxFeePerGas==null&&(r.maxFeePerGas=o.maxFeePerGas),r.maxPriorityFeePerGas==null&&(r.maxPriorityFeePerGas=o.maxPriorityFeePerGas))}return await ae(r)}async estimateGas(t){return Ns(this,"estimateGas").estimateGas(await this.populateCall(t))}async call(t){return Ns(this,"call").call(await this.populateCall(t))}async resolveName(t){return await Ns(this,"resolveName").resolveName(t)}async sendTransaction(t){const n=Ns(this,"sendTransaction"),r=await this.populateTransaction(t);delete r.from;const s=$a.from(r);return await n.broadcastTransaction(await this.signTransaction(s))}}function Aw(e){return JSON.parse(JSON.stringify(e))}var be,gn,is,Er,os,Ii,ta,ql,ea,Xl;class cp{constructor(t){P(this,ta);P(this,ea);P(this,be,void 0);P(this,gn,void 0);P(this,is,void 0);P(this,Er,void 0);P(this,os,void 0);P(this,Ii,void 0);b(this,be,t),b(this,gn,null),b(this,is,z(this,ta,ql).bind(this)),b(this,Er,!1),b(this,os,null),b(this,Ii,!1)}_subscribe(t){throw new Error("subclasses must override this")}_emitResults(t,n){throw new Error("subclasses must override this")}_recover(t){throw new Error("subclasses must override this")}start(){h(this,Er)||(b(this,Er,!0),z(this,ta,ql).call(this,-2))}stop(){!h(this,Er)||(b(this,Er,!1),b(this,Ii,!0),z(this,ea,Xl).call(this),h(this,be).off("block",h(this,is)))}pause(t){t&&z(this,ea,Xl).call(this),h(this,be).off("block",h(this,is))}resume(){this.start()}}be=new WeakMap,gn=new WeakMap,is=new WeakMap,Er=new WeakMap,os=new WeakMap,Ii=new WeakMap,ta=new WeakSet,ql=async function(t){try{h(this,gn)==null&&b(this,gn,this._subscribe(h(this,be)));let n=null;try{n=await h(this,gn)}catch(i){if(!ne(i,"UNSUPPORTED_OPERATION")||i.operation!=="eth_newFilter")throw i}if(n==null){b(this,gn,null),h(this,be)._recoverSubscriber(this,this._recover(h(this,be)));return}const r=await h(this,be).getNetwork();if(h(this,os)||b(this,os,r),h(this,os).chainId!==r.chainId)throw new Error("chaid changed");if(h(this,Ii))return;const s=await h(this,be).send("eth_getFilterChanges",[n]);await this._emitResults(h(this,be),s)}catch(n){console.log("@TODO",n)}h(this,be).once("block",h(this,is))},ea=new WeakSet,Xl=function(){const t=h(this,gn);t&&(b(this,gn,null),t.then(n=>{h(this,be).send("eth_uninstallFilter",[n])}))};var as;class Ew extends cp{constructor(n,r){super(n);P(this,as,void 0);b(this,as,Aw(r))}_recover(n){return new Ju(n,h(this,as))}async _subscribe(n){return await n.send("eth_newFilter",[h(this,as)])}async _emitResults(n,r){for(const s of r)n.emit(h(this,as),n._wrapLog(s,n._network))}}as=new WeakMap;class xw extends cp{async _subscribe(t){return await t.send("eth_newPendingTransactionFilter",[])}async _emitResults(t,n){for(const r of n)t.emit("pending",r)}}const vw="bigint,boolean,function,number,string,symbol".split(/,/g);function Fa(e){if(e==null||vw.indexOf(typeof e)>=0||typeof e.getAddress=="function")return e;if(Array.isArray(e))return e.map(Fa);if(typeof e=="object")return Object.keys(e).reduce((t,n)=>(t[n]=e[n],t),{});throw new Error(`should not happen: ${e} (${typeof e})`)}function Pw(e){return new Promise(t=>{setTimeout(t,e)})}function Is(e){return e&&e.toLowerCase()}function ch(e){return e&&typeof e.pollingInterval=="number"}const Cw={polling:!1,staticNetwork:null,batchStallTime:10,batchMaxSize:1<<20,batchMaxCount:100,cacheTimeout:250,pollingInterval:4e3};class ul extends ww{constructor(n,r){super(n);v(this,"address");r=yt(r),nt(this,{address:r})}connect(n){B(!1,"cannot reconnect JsonRpcSigner","UNSUPPORTED_OPERATION",{operation:"signer.connect"})}async getAddress(){return this.address}async populateTransaction(n){return await this.populateCall(n)}async sendUncheckedTransaction(n){const r=Fa(n),s=[];if(r.from){const o=r.from;s.push((async()=>{const a=await fe(o,this.provider);E(a!=null&&a.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",n),r.from=a})())}else r.from=this.address;if(r.gasLimit==null&&s.push((async()=>{r.gasLimit=await this.provider.estimateGas({...r,from:this.address})})()),r.to!=null){const o=r.to;s.push((async()=>{r.to=await fe(o,this.provider)})())}s.length&&await Promise.all(s);const i=this.provider.getRpcTransaction(r);return this.provider.send("eth_sendTransaction",[i])}async sendTransaction(n){const r=await this.provider.getBlockNumber(),s=await this.sendUncheckedTransaction(n);return await new Promise((i,o)=>{const a=[1e3,100];let c=0;const l=async()=>{try{const u=await this.provider.getTransaction(s);if(u!=null){i(u.replaceableTransaction(r));return}}catch(u){if(ne(u,"CANCELLED")||ne(u,"BAD_DATA")||ne(u,"NETWORK_ERROR")){u.info==null&&(u.info={}),u.info.sendTransactionHash=s,o(u);return}if(ne(u,"INVALID_ARGUMENT")&&(c++,u.info==null&&(u.info={}),u.info.sendTransactionHash=s,c>10)){o(u);return}this.provider.emit("error",Gt("failed to fetch transation after sending (will try again)","UNKNOWN_ERROR",{error:u}))}this.provider._setTimeout(()=>{l()},a.pop()||4e3)};l()})}async signTransaction(n){const r=Fa(n);if(r.from){const i=await fe(r.from,this.provider);E(i!=null&&i.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",n),r.from=i}else r.from=this.address;const s=this.provider.getRpcTransaction(r);return await this.provider.send("eth_signTransaction",[s])}async signMessage(n){const r=typeof n=="string"?Kn(n):n;return await this.provider.send("personal_sign",[q(r),this.address.toLowerCase()])}async signTypedData(n,r,s){const i=Fa(s),o=await tc.resolveNames(n,r,i,async a=>{const c=await fe(a);return E(c!=null,"TypedData does not support null address","value",a),c});return await this.provider.send("eth_signTypedData_v4",[this.address.toLowerCase(),JSON.stringify(tc.getPayload(o.domain,r,o.value))])}async unlock(n){return this.provider.send("personal_unlockAccount",[this.address.toLowerCase(),n,null])}async _legacySignMessage(n){const r=typeof n=="string"?Kn(n):n;return await this.provider.send("eth_sign",[this.address.toLowerCase(),q(r)])}}var cs,Oi,Gn,bn,Ye,He,me,na,$l;class Nw extends dw{constructor(n,r){super(n,r);P(this,na);P(this,cs,void 0);P(this,Oi,void 0);P(this,Gn,void 0);P(this,bn,void 0);P(this,Ye,void 0);P(this,He,void 0);P(this,me,void 0);b(this,Oi,1),b(this,cs,Object.assign({},Cw,r||{})),b(this,Gn,[]),b(this,bn,null),b(this,He,null),b(this,me,null);{let i=null;const o=new Promise(a=>{i=a});b(this,Ye,{promise:o,resolve:i})}const s=this._getOption("staticNetwork");typeof s=="boolean"?(E(!s||n!=="any","staticNetwork cannot be used on special network 'any'","options",r),s&&n!=null&&b(this,He,En.from(n))):s&&(E(n==null||s.matches(n),"staticNetwork MUST match network object","options",r),b(this,He,s))}_getOption(n){return h(this,cs)[n]}get _network(){return B(h(this,He),"network is not available yet","NETWORK_ERROR"),h(this,He)}async _perform(n){if(n.method==="call"||n.method==="estimateGas"){let s=n.transaction;if(s&&s.type!=null&&X(s.type)&&s.maxFeePerGas==null&&s.maxPriorityFeePerGas==null){const i=await this.getFeeData();i.maxFeePerGas==null&&i.maxPriorityFeePerGas==null&&(n=Object.assign({},n,{transaction:Object.assign({},s,{type:void 0})}))}}const r=this.getRpcRequest(n);return r!=null?await this.send(r.method,r.args):super._perform(n)}async _detectNetwork(){const n=this._getOption("staticNetwork");if(n)if(n===!0){if(h(this,He))return h(this,He)}else return n;return h(this,me)?await h(this,me):this.ready?(b(this,me,(async()=>{try{const r=En.from(X(await this.send("eth_chainId",[])));return b(this,me,null),r}catch(r){throw b(this,me,null),r}})()),await h(this,me)):(b(this,me,(async()=>{const r={id:Zi(this,Oi)._++,method:"eth_chainId",params:[],jsonrpc:"2.0"};this.emit("debug",{action:"sendRpcPayload",payload:r});let s;try{s=(await this._send(r))[0],b(this,me,null)}catch(i){throw b(this,me,null),this.emit("debug",{action:"receiveRpcError",error:i}),i}if(this.emit("debug",{action:"receiveRpcResult",result:s}),"result"in s)return En.from(X(s.result));throw this.getRpcError(r,s)})()),await h(this,me))}_start(){h(this,Ye)==null||h(this,Ye).resolve==null||(h(this,Ye).resolve(),b(this,Ye,null),(async()=>{for(;h(this,He)==null&&!this.destroyed;)try{b(this,He,await this._detectNetwork())}catch(n){if(this.destroyed)break;console.log("JsonRpcProvider failed to detect network and cannot start up; retry in 1s (perhaps the URL is wrong or the node is not started)"),this.emit("error",Gt("failed to bootstrap network detection","NETWORK_ERROR",{event:"initial-network-discovery",info:{error:n}})),await Pw(1e3)}z(this,na,$l).call(this)})())}async _waitUntilReady(){if(h(this,Ye)!=null)return await h(this,Ye).promise}_getSubscriber(n){return n.type==="pending"?new xw(this):n.type==="event"?this._getOption("polling")?new Ju(this,n.filter):new Ew(this,n.filter):n.type==="orphan"&&n.filter.orphan==="drop-log"?new ap("orphan"):super._getSubscriber(n)}get ready(){return h(this,Ye)==null}getRpcTransaction(n){const r={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(s=>{if(n[s]==null)return;let i=s;s==="gasLimit"&&(i="gas"),r[i]=_s(X(n[s],`tx.${s}`))}),["from","to","data"].forEach(s=>{n[s]!=null&&(r[s]=q(n[s]))}),n.accessList&&(r.accessList=Es(n.accessList)),r}getRpcRequest(n){switch(n.method){case"chainId":return{method:"eth_chainId",args:[]};case"getBlockNumber":return{method:"eth_blockNumber",args:[]};case"getGasPrice":return{method:"eth_gasPrice",args:[]};case"getPriorityFee":return{method:"eth_maxPriorityFeePerGas",args:[]};case"getBalance":return{method:"eth_getBalance",args:[Is(n.address),n.blockTag]};case"getTransactionCount":return{method:"eth_getTransactionCount",args:[Is(n.address),n.blockTag]};case"getCode":return{method:"eth_getCode",args:[Is(n.address),n.blockTag]};case"getStorage":return{method:"eth_getStorageAt",args:[Is(n.address),"0x"+n.position.toString(16),n.blockTag]};case"broadcastTransaction":return{method:"eth_sendRawTransaction",args:[n.signedTransaction]};case"getBlock":if("blockTag"in n)return{method:"eth_getBlockByNumber",args:[n.blockTag,!!n.includeTransactions]};if("blockHash"in n)return{method:"eth_getBlockByHash",args:[n.blockHash,!!n.includeTransactions]};break;case"getTransaction":return{method:"eth_getTransactionByHash",args:[n.hash]};case"getTransactionReceipt":return{method:"eth_getTransactionReceipt",args:[n.hash]};case"call":return{method:"eth_call",args:[this.getRpcTransaction(n.transaction),n.blockTag]};case"estimateGas":return{method:"eth_estimateGas",args:[this.getRpcTransaction(n.transaction)]};case"getLogs":return n.filter&&n.filter.address!=null&&(Array.isArray(n.filter.address)?n.filter.address=n.filter.address.map(Is):n.filter.address=Is(n.filter.address)),{method:"eth_getLogs",args:[n.filter]}}return null}getRpcError(n,r){const{method:s}=n,{error:i}=r;if(s==="eth_estimateGas"&&i.message){const c=i.message;if(!c.match(/revert/i)&&c.match(/insufficient funds/i))return Gt("insufficient funds","INSUFFICIENT_FUNDS",{transaction:n.params[0],info:{payload:n,error:i}})}if(s==="eth_call"||s==="eth_estimateGas"){const c=tu(i),l=Fo.getBuiltinCallException(s==="eth_call"?"call":"estimateGas",n.params[0],c?c.data:null);return l.info={error:i,payload:n},l}const o=JSON.stringify(Rw(i));if(typeof i.message=="string"&&i.message.match(/user denied|ethers-user-denied/i))return Gt("user rejected action","ACTION_REJECTED",{action:{eth_sign:"signMessage",personal_sign:"signMessage",eth_signTypedData_v4:"signTypedData",eth_signTransaction:"signTransaction",eth_sendTransaction:"sendTransaction",eth_requestAccounts:"requestAccess",wallet_requestAccounts:"requestAccess"}[s]||"unknown",reason:"rejected",info:{payload:n,error:i}});if(s==="eth_sendRawTransaction"||s==="eth_sendTransaction"){const c=n.params[0];if(o.match(/insufficient funds|base fee exceeds gas limit/i))return Gt("insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:c,info:{error:i}});if(o.match(/nonce/i)&&o.match(/too low/i))return Gt("nonce has already been used","NONCE_EXPIRED",{transaction:c,info:{error:i}});if(o.match(/replacement transaction/i)&&o.match(/underpriced/i))return Gt("replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:c,info:{error:i}});if(o.match(/only replay-protected/i))return Gt("legacy pre-eip-155 transactions not supported","UNSUPPORTED_OPERATION",{operation:s,info:{transaction:c,info:{error:i}}})}let a=!!o.match(/the method .* does not exist/i);return a||i&&i.details&&i.details.startsWith("Unauthorized method:")&&(a=!0),a?Gt("unsupported operation","UNSUPPORTED_OPERATION",{operation:n.method,info:{error:i,payload:n}}):Gt("could not coalesce error","UNKNOWN_ERROR",{error:i,payload:n})}send(n,r){if(this.destroyed)return Promise.reject(Gt("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:n}));const s=Zi(this,Oi)._++,i=new Promise((o,a)=>{h(this,Gn).push({resolve:o,reject:a,payload:{method:n,params:r,id:s,jsonrpc:"2.0"}})});return z(this,na,$l).call(this),i}async getSigner(n){n==null&&(n=0);const r=this.send("eth_accounts",[]);if(typeof n=="number"){const i=await r;if(n>=i.length)throw new Error("no such account");return new ul(this,i[n])}const{accounts:s}=await ae({network:this.getNetwork(),accounts:r});n=yt(n);for(const i of s)if(yt(i)===n)return new ul(this,n);throw new Error("invalid account")}async listAccounts(){return(await this.send("eth_accounts",[])).map(r=>new ul(this,r))}destroy(){h(this,bn)&&(clearTimeout(h(this,bn)),b(this,bn,null));for(const{payload:n,reject:r}of h(this,Gn))r(Gt("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:n.method}));b(this,Gn,[]),super.destroy()}}cs=new WeakMap,Oi=new WeakMap,Gn=new WeakMap,bn=new WeakMap,Ye=new WeakMap,He=new WeakMap,me=new WeakMap,na=new WeakSet,$l=function(){if(h(this,bn))return;const n=this._getOption("batchMaxCount")===1?0:this._getOption("batchStallTime");b(this,bn,setTimeout(()=>{b(this,bn,null);const r=h(this,Gn);for(b(this,Gn,[]);r.length;){const s=[r.shift()];for(;r.length&&s.length!==h(this,cs).batchMaxCount;)if(s.push(r.shift()),JSON.stringify(s.map(o=>o.payload)).length>h(this,cs).batchMaxSize){r.unshift(s.pop());break}(async()=>{const i=s.length===1?s[0].payload:s.map(o=>o.payload);this.emit("debug",{action:"sendRpcPayload",payload:i});try{const o=await this._send(i);this.emit("debug",{action:"receiveRpcResult",result:o});for(const{resolve:a,reject:c,payload:l}of s){if(this.destroyed){c(Gt("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:l.method}));continue}const u=o.filter(f=>f.id===l.id)[0];if(u==null){const f=Gt("missing response for request","BAD_DATA",{value:o,info:{payload:l}});this.emit("error",f),c(f);continue}if("error"in u){c(this.getRpcError(l,u));continue}a(u.result)}}catch(o){this.emit("debug",{action:"receiveRpcError",error:o});for(const{reject:a}of s)a(o)}})()}},n))};var xr;class Iw extends Nw{constructor(n,r){super(n,r);P(this,xr,void 0);b(this,xr,4e3)}_getSubscriber(n){const r=super._getSubscriber(n);return ch(r)&&(r.pollingInterval=h(this,xr)),r}get pollingInterval(){return h(this,xr)}set pollingInterval(n){if(!Number.isInteger(n)||n<0)throw new Error("invalid interval");b(this,xr,n),this._forEachSubscriber(r=>{ch(r)&&(r.pollingInterval=h(this,xr))})}}xr=new WeakMap;var Ri;class Ow extends Iw{constructor(n,r,s){n==null&&(n="http://localhost:8545");super(r,s);P(this,Ri,void 0);typeof n=="string"?b(this,Ri,new Wn(n)):b(this,Ri,n.clone())}_getConnection(){return h(this,Ri).clone()}async send(n,r){return await this._start(),await super.send(n,r)}async _send(n){const r=this._getConnection();r.body=JSON.stringify(n),r.setHeader("content-type","application/json");const s=await r.send();s.assertOk();let i=s.bodyJson;return Array.isArray(i)||(i=[i]),i}}Ri=new WeakMap;function tu(e){if(e==null)return null;if(typeof e.message=="string"&&e.message.match(/revert/i)&&St(e.data))return{message:e.message,data:e.data};if(typeof e=="object"){for(const t in e){const n=tu(e[t]);if(n)return n}return null}if(typeof e=="string")try{return tu(JSON.parse(e))}catch{}return null}function eu(e,t){if(e!=null){if(typeof e.message=="string"&&t.push(e.message),typeof e=="object")for(const n in e)eu(e[n],t);if(typeof e=="string")try{return eu(JSON.parse(e),t)}catch{}}}function Rw(e){const t=[];return eu(e,t),t}const Da=[{inputs:[],name:"DER_Split_Error",type:"error"},{inputs:[],name:"expmod_Error",type:"error"},{inputs:[],name:"k256Decompress_Invalid_Length_Error",type:"error"},{inputs:[],name:"k256DeriveY_Invalid_Prefix_Error",type:"error"},{inputs:[],name:"recoverV_Error",type:"error"}],lp="0x60808060405234601757603a9081601d823930815050f35b600080fdfe600080fdfea264697066735822122088086c71937e9deb83a37dee3b895986f7df87e3e587aeab2b7506e6a7be8ca164736f6c63430008100033",Tw=e=>e.length>1;class up extends Dc{constructor(...t){Tw(t)?super(...t):super(Da,lp,t[0])}getDeployTransaction(t){return super.getDeployTransaction(t||{})}deploy(t){return super.deploy(t||{})}connect(t){return super.connect(t)}static createInterface(){return new Qi(Da)}static connect(t,n){return new ps(t,Da,n)}}up.bytecode=lp;up.abi=Da;const La=[{inputs:[],stateMutability:"payable",type:"constructor"},{inputs:[],name:"DER_Split_Error",type:"error"},{inputs:[],name:"recoverV_Error",type:"error"},{inputs:[],name:"COUPON_REMOVED",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"COUPON_VALID",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string[]",name:"coupons",type:"string[]"}],name:"addCoupons",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"coupon",type:"string"},{internalType:"uint8[]",name:"answers",type:"uint8[]"},{internalType:"address",name:"payoutAddr",type:"address"}],name:"checkAnswers",outputs:[{internalType:"bool[]",name:"",type:"bool[]"},{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"encPayoutCertificate",type:"bytes"}],name:"claimReward",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"clearQuestions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getCoupons",outputs:[{internalType:"string[]",name:"",type:"string[]"},{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getGaslessKeyPair",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"bytes32",name:"",type:"bytes32"},{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"coupon",type:"string"}],name:"getQuestions",outputs:[{components:[{internalType:"string",name:"question",type:"string"},{internalType:"string[]",name:"choices",type:"string[]"}],internalType:"struct Quiz.QuizQuestion[]",name:"",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getReward",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"question",type:"string"},{internalType:"string[]",name:"choices",type:"string[]"},{internalType:"uint8",name:"correctChoice",type:"uint8"}],name:"pushQuestion",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"addr",type:"address"}],name:"reclaimFunds",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"coupon",type:"string"}],name:"removeCoupon",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"addr",type:"address"},{internalType:"bytes32",name:"secretKey",type:"bytes32"},{internalType:"uint64",name:"nonce",type:"uint64"}],name:"setGaslessKeyPair",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"questionIndex",type:"uint256"},{internalType:"string",name:"question",type:"string"},{internalType:"string[]",name:"choices",type:"string[]"},{internalType:"uint8",name:"correctChoice",type:"uint8"}],name:"setQuestion",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"reward",type:"uint256"}],name:"setReward",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}],fp="0x600080546001600160a01b0319163317815560a060408181526080838152602060c081815260e0849052610100869052939492939092916001600160401b0391908390815b828110620001635750508391876200007c6080828587838198601f9e9f0101528b199b8c910116810103606081018452018262000178565b51907301000000000000000000000000000000000000015afa903d1562000158573d9081116200014457620000bb84875196601f840116018662000178565b84523d828486013e5b1562000100575080825192015191818110620000ee575b505060015551612ac39081620001b38239f35b600019910360031b1b163880620000db565b835162461bcd60e51b815260048101839052601360248201527f72616e646f6d42797465733a206661696c6564000000000000000000000000006044820152606490fd5b634e487b7160e01b83526041600452602483fd5b5060609350620000c4565b81810187015189820160800152860162000044565b601f909101601f19168101906001600160401b038211908210176200019c57604052565b634e487b7160e01b600052604160045260246000fdfe6080604052600436101561001b575b361561001957600080fd5b005b60003560e01c8063132911e11461015b578063280887d914610152578063293be456146101495780632cfbb031146101405780633d18b912146101375780635fba17871461012e57806360fc214b146101255780637c527a4f1461011c578063834e9a6c1461011357806386315e251461010a5780638c52fbce14610101578063a2f37935146100f8578063b0ea7fdd146100ef578063b1708880146100e6578063c3e30d5f146100dd5763dcf0e82d0361000e576100d8610e2f565b61000e565b506100d8610e11565b506100d8610d65565b506100d8610c86565b506100d8610bc2565b506100d8610b6c565b506100d8610b3c565b506100d86109ca565b506100d861087f565b506100d86107e6565b506100d861071f565b506100d8610636565b506100d8610521565b506100d86104f5565b506100d86103f6565b506100d86101be565b50634e487b7160e01b600052601160045260246000fd5b601a1981019190821161018a57565b610192610164565b565b60001981019190821161018a57565b602003906020821161018a57565b9190820391821161018a57565b50346101dc5760003660031901126101dc5760206040516002198152f35b600080fd5b50634e487b7160e01b600052604160045260246000fd5b604081019081106001600160401b0382111761021357604052565b61021b6101e1565b604052565b606081019081106001600160401b0382111761021357604052565b602081019081106001600160401b0382111761021357604052565b90601f801991011681019081106001600160401b0382111761021357604052565b60405190610192826101f8565b6040519060e082018281106001600160401b0382111761021357604052565b6020906001600160401b0381116102c0575b601f01601f19160190565b6102c86101e1565b6102b5565b9291926102d9826102a3565b916102e76040519384610256565b8294818452818301116101dc578281602093846000960137010152565b9080601f830112156101dc5781602061031f933591016102cd565b90565b6020906001600160401b03811161033b575b60051b0190565b6103436101e1565b610334565b9080601f830112156101dc5781359061036082610322565b9261036e6040519485610256565b828452602092838086019160051b830101928084116101dc57848301915b84831061039c5750505050505090565b82356001600160401b0381116101dc5786916103bd84848094890101610304565b81520192019161038c565b6044359060ff821682036101dc57565b6064359060ff821682036101dc57565b359060ff821682036101dc57565b50346101dc5760603660031901126101dc576001600160401b036004358181116101dc57610428903690600401610304565b906024359081116101dc57610441903690600401610348565b6104496103c8565b6000549091906001600160a01b031633036101dc57610019926104bd9160405191610473836101f8565b825260208201526104a56002549161049f600160401b93848110156104e8575b60018101600255610e96565b906111f3565b600354908110156104db575b600181016003556112fd565b90919060ff9183549160031b83811b93849216901b16911916179055565b6104e36101e1565b6104b1565b6104f06101e1565b610493565b50346101dc5760203660031901126101dc576000546001600160a01b031633036101dc57600435600655005b50346101dc5760203660031901126101dc576004356001600160401b0381116101dc57366023820112156101dc5761057b61056961058a9236906024816004013591016102cd565b60015490610575611839565b91612a1d565b60208082518301019101612942565b6105aa60011961059a83516115e2565b54146105a461184c565b90611876565b60208101516105dd90600090819081906001600160a01b0316600654604051915af16105d461285c565b506105a46129db565b6105e84391516115e2565b556007546001600160a01b031633146105fd57005b61001961061a6106156009546001600160401b031690565b612a04565b6001600160401b03166001600160401b03196009541617600955565b50346101dc576000806003193601126106675780546001600160a01b03163303610667576020600654604051908152f35b80fd5b6001600160a01b038116036101dc57565b604435906101928261066a565b60005b83811061069b5750506000910152565b818101518382015260200161068b565b906020916106c481518092818552858086019101610688565b601f01601f1916010190565b9092916040820191604081528451809352606081019260208096019060005b8181106107095750505061031f93948184039101526106ab565b82511515865294870194918701916001016106ef565b50346101dc5760603660031901126101dc576001600160401b036004358181116101dc57610751903690600401610304565b6024359182116101dc57366023830112156101dc57816004013561077481610322565b926107826040519485610256565b81845260209160248386019160051b830101913683116101dc57602401905b8282106107cf576107bb85876107b561067b565b91611b43565b906107cb604051928392836106d0565b0390f35b8380916107db846103e8565b8152019101906107a1565b50346101dc5760803660031901126101dc576001600160401b036004356024358281116101dc5761081b903690600401610304565b916044359081116101dc57610834903690600401610348565b9161083d6103d8565b6000549092906001600160a01b031633036101dc5761087a6104bd92610019956040519161086a836101f8565b8252602082015261049f83610e96565b6112fd565b50346101dc5760603660031901126101dc5760043561089d8161066a565b602435604435906001600160401b0382168092036101dc576000546001600160a01b039390841633036101dc57826040610019958151936108dd85610220565b169283815284602082015201526bffffffffffffffffffffffff60a01b60075416176007556008556001600160401b03166001600160401b03196009541617600955565b908082519081815260208091019281808460051b8301019501936000915b84831061094f5750505050505090565b909192939495848061096d600193601f198682030187528a516106ab565b980193019301919493929061093f565b9061099090604083526040830190610921565b81810360209283015282518082529082019282019160005b8281106109b6575050505090565b8351855293810193928101926001016109a8565b50346101dc576000806003193601126106675780546001600160a01b03163303610667576005908154916109fd83610322565b92604092610a0d84519586610256565b818552601f19610a1c83610322565b01926020933685880137815b838110610a475786866107cb610a3c61176e565b91519283928361097d565b818352807f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db0019086518685938054610a7e81610ef5565b91600191808316908115610af75750600114610abb575b50505081846004610ab696520301902054610ab0828a6116a8565b52611506565b610a28565b9091929394955087528287209087915b838310610ae457505050820192919081610ab638610a95565b8054868401528a94909201918101610acb565b60ff19168652505050801515028201935081610ab638610a95565b60206003198201126101dc57600435906001600160401b0382116101dc5761031f91600401610304565b50346101dc57610b4b36610b12565b6000546001600160a01b031633036101dc57610b69600219916115e2565b55005b50346101dc5760203660031901126101dc576004356001600160401b038082116101dc57366023830112156101dc5781600401359081116101dc573660248260051b840101116101dc5760246100199201611348565b50346101dc5760003660031901126101dc57606060018060a01b03600754166008546001600160401b03600954169060405192835260208301526040820152f35b602080820190808352835180925260409283810182858560051b8401019601946000925b858410610c38575050505050505090565b909192939495968580610c75600193603f198682030188528b519083610c6583518a84528a8401906106ab565b9201519084818403910152610921565b990194019401929594939190610c27565b50346101dc57610cb7610c9836610b12565b6000546001600160a01b03163314908115610d4f575b506105a461184c565b60028054610cc481610322565b90604092610cd484519384610256565b818352600081815260207f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace8186015b858410610d17578751806107cb8982610c03565b84836001928a51610d27816101f8565b610d30866116ca565b8152610d3d8587016117e4565b83820152815201920193019290610d03565b6001199150610d5d906115e2565b541438610cae565b50346101dc576000806003193601126106675780546001600160a01b03163303610667576002805482825580610d9c575b82604051f35b60016001600160ff1b0382118116610e04575b8284527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace91811b8201915b828110610de8575050610d96565b80610df38592610ff9565b610dfe838201611045565b01610dda565b610e0c610164565b610daf565b50346101dc5760003660031901126101dc5760206040516001198152f35b50346101dc5760203660031901126101dc57600435610e4d8161066a565b6000805490919082906001600160a01b03163303610667578080610e7a9347604051915af16105d461285c565b604051f35b50634e487b7160e01b600052603260045260246000fd5b600254811015610ed1575b600260005260011b7f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0190600090565b610ed9610e7f565b610ea1565b50634e487b7160e01b600052600060045260246000fd5b90600182811c92168015610f25575b6020831014610f0f57565b634e487b7160e01b600052602260045260246000fd5b91607f1691610f04565b818110610f3a575050565b60008155600101610f2f565b9190601f8111610f5557505050565b610192926000526020600020906020601f840160051c83019310610f81575b601f0160051c0190610f2f565b9091508190610f74565b806000190460021181151516610fa2575b60011b90565b610faa610164565b610f9c565b6001600160fd1b038111600116610fc7575b60031b90565b610fcf610164565b610fc1565b80600019046101001181151516610fec575b60081b90565b610ff4610164565b610fe6565b6110038154610ef5565b908161100d575050565b81601f6000931160011461101f575055565b8183526020832061103b91601f0160051c810190600101610f2f565b8160208120915555565b8054906000815581611055575050565b6000526020600020908101905b81811061106d575050565b80611079600192610ff9565b01611062565b90600160401b81116110c9575b81549181815582821061109e57505050565b600052602060002091820191015b8181106110b7575050565b806110c3600192610ff9565b016110ac565b6110d16101e1565b61108c565b908051906110e4828461107f565b600092835260208084209091849083015b84861061110457505050505050565b8381518051906001600160401b0382116111e6575b61112d826111278854610ef5565b88610f46565b8290601f831160011461117557918060019592869594889261116a575b5050600019600383901b1c191690841b1786555b019301950194916110f5565b01519050388061114a565b90601f1983169161118b88600052602060002090565b92875b8181106111ce57509160019693918588979694106111b5575b505050831b8301865561115e565b015160001960f88460031b161c191690553880806111a7565b8284015185558a96600190950194938401930161118e565b6111ee6101e1565b611119565b91906112f0575b80519081516001600160401b0381116112e3575b6112228161121c8654610ef5565b86610f46565b6020928390601f831160011461126e57918060019492610192979694600092611263575b5050600019600383901b1c191690841b1784555b015191016110d6565b015190503880611246565b90601f1983169161128487600052602060002090565b9260005b8181106112cc575092600195939285926101929998968895106112b3575b505050811b01845561125a565b015160001960f88460031b161c191690553880806112a6565b929387600181928786015181550195019301611288565b6112eb6101e1565b61120e565b6112f8610ede565b6111fa565b9060035482101561133b575b6003600052601f8260051c7fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b01921690565b611343610e7f565b611309565b600080549091906001600160a01b031633036115025792919080935b828510611372575050509050565b61137d858483611522565b959086604051978892833781016004815260209788910301902054156113ce575b839495506113bf6113b5828495966113c595611522565b6001199291611571565b55611506565b93929190611364565b6113d9818584611522565b60056113fa8154600160401b8110156114f5575b600192838201905561158a565b9390936114e8575b6001600160401b0383116114db575b61141f8361121c8654610ef5565b8699601f8411600114611468575082918798999a83926113c598999461145d575b50501b916000199060031b1c19161790555b85949392915061139e565b013592503880611440565b90601f9392931983169a61148186600052602060002090565b9289905b8d82106114c4575050836113c598999a9b9c106114aa575b505050811b019055611452565b0135600019600384901b60f8161c1916905538808061149d565b808784968294958701358155019501920190611485565b6114e36101e1565b611411565b6114f0610ede565b611402565b6114fd6101e1565b6113ed565b5080fd5b6001906000198114611516570190565b61151e610164565b0190565b9190811015611564575b60051b81013590601e19813603018212156101dc5701908135916001600160401b0383116101dc5760200182360381136101dc579190565b61156c610e7f565b61152c565b6020908260405193849283378101600481520301902090565b6005548110156115c2575b60056000527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db00190600090565b6115ca610e7f565b611595565b9061151e60209282815194859201610688565b60206115fb918160405193828580945193849201610688565b8101600481520301902090565b602090805115611616570190565b61151e610e7f565b604090805160011015611616570190565b606090805160021015611616570190565b608090805160031015611616570190565b60a090805160041015611616570190565b60c090805160051015611616570190565b60e090805160061015611616570190565b61010090805160071015611616570190565b61012090805160081015611616570190565b60209181518110156116bd575b60051b010190565b6116c5610e7f565b6116b5565b90604051918260008254926116de84610ef5565b90818452600194858116908160001461174b5750600114611708575b505061019292500383610256565b9093915060005260209081600020936000915b818310611733575050610192935082010138806116fa565b8554888401850152948501948794509183019161171b565b91505061019294506020925060ff191682840152151560051b82010138806116fa565b6005549061177b82610322565b916117896040519384610256565b8083526005600090815260207f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db08186015b8484106117c8575050505050565b60018381926117d6856116ca565b8152019201930192906117ba565b9081546117f081610322565b926117fe6040519485610256565b818452600090815260208082208186015b84841061181d575050505050565b600183819261182b856116ca565b81520192019301929061180f565b604051906118468261023b565b60008252565b60405190611859826101f8565b600e82526d24b73b30b634b21031b7bab837b760911b6020830152565b1561187e5750565b60405162461bcd60e51b8152602060048201529081906118a29060248301906106ab565b0390fd5b604051906118b3826101f8565b601782527f57726f6e67206e756d626572206f6620616e73776572730000000000000000006020830152565b906118e982610322565b6118f66040519182610256565b8281528092611907601f1991610322565b0190602036910137565b60208152604061192c835182602085015260608401906106ab565b6020909301516001600160a01b031691015290565b90602061031f9281815201906106ab565b909182519261196e60025494856119676118a6565b9114611876565b60019061197a856118df565b946000915b818310611ad057505050158015611abf575b8015611ab5575b611aaa576119d39392916119c46119f9926119b1610277565b9283526001600160a01b03166020830152565b60405194859160208301611911565b03936119e7601f1995868101835282610256565b600154906119f3611839565b9161288c565b6007549093906001600160a01b031680611a135750509190565b9061031f929491611a53611a5f60085493611a366009546001600160401b031690565b95604051938491632cfbb03160e01b602084015260248301611941565b03908101835282610256565b611a79611a6a610284565b6001600160401b039095168552565b64174876e80060208501526203d09060408501523060608501526000608085015260a08401524660c0840152611bf7565b50509061031f611839565b5060065415611998565b506001600160a01b03811615611991565b909192611b3490611af0611ae3866112fd565b905460ff9160031b1c1690565b60ff611b0f611b09611b0289886116a8565b5160ff1690565b60ff1690565b911614611b2781611b20888c6116a8565b9015159052565b81611b3b575b5093611506565b919061197f565b905038611b2d565b90611b6e929160018060a01b036000541633148015611b72575b611b69906105a461184c565b611952565b9091565b50611b696040518251611b89818360208701610688565b81019060048252602081600119930301902054149050611b5d565b906023820180921161018a57565b600401908160041161018a57565b906001820180921161018a57565b906004820180921161018a57565b906002820180921161018a57565b9190820180921161018a57565b90611c00611f24565b5060c08301908151926040918251611c1781610220565b600081526020958682016000905284820152611c339087611dbd565b8351868181808201858196519283910191611c4d92610688565b81010380835201611c5e9082610256565b51902094611c6a611f24565b5083519181830152808252611c7e826101f8565b83518682820152818152611c91816101f8565b845191611c9d8361023b565b600083528551928391820194600486528783016080905260a08301611cc1916106ab565b92601f199384848203016060850152611cd9916106ab565b83838203016080840152611cec916106ab565b039081018252611cfc9082610256565b516006600160981b01905a92600093928493fa611d1761285c565b90611d21906128fc565b611d2a90611fa6565b8094611d35926121af565b8201908151611d439061017b565b9051611d4e90610f8b565b611d5791611bea565b611d6090611ba4565b905261031f91611dbd565b6040519061014082018281106001600160401b03821117611db0575b604052600982528160005b6101208110611d9f575050565b806060602080938501015201611d92565b611db86101e1565b611d87565b611f0b602061031f93611eb160a0611dd3611d6b565b95611dfc611df7611deb83516001600160401b031690565b6001600160401b031690565b612593565b611e0588611608565b52611e0f87611608565b50611e1c85820151612593565b611e258861161e565b52611e2f8761161e565b50611e4a611df7611deb60408401516001600160401b031690565b611e538861162f565b52611e5d8761162f565b506060810151611e75906001600160a01b0316612561565b611e7e88611640565b52611e8887611640565b50611e966080820151612593565b611e9f88611651565b52611ea987611651565b5001516122ab565b611eba85611662565b52611ec484611662565b50611ed26040820151612593565b611edb85611673565b52611ee584611673565b50611ef08151612593565b611ef985611684565b52611f0384611684565b500151612593565b611f1482611696565b52611f1e81611696565b50612435565b60405190611f3182610220565b60006040838281528260208201520152565b602290805160021015611616570190565b602190805160011015611616570190565b602390805160031015611616570190565b602490805160041015611616570190565b906020918051821015611f9957010190565b611fa1610e7f565b010190565b90611faf611f24565b91600881511061215b576001600160f81b0319600360fc1b81611fe2611fd485611608565b516001600160f81b03191690565b160361215b57600160f91b8082611ffb611fd486611f43565b160361215b57612019611b09612013611fd486611f54565b60f81c90565b9161202c611b09612013611fd487611f65565b926021841161215b5761203e84611bb2565b9061205a611b09612013611fd461205486611bc0565b8a611f87565b936021851161215b57612080612073611fd4858a611f87565b6001600160f81b03191690565b0361215b57806120986120938688611bea565b611bce565b0361215b576120a8865191611bdc565b0361215b576120b690611bdc565b906004906021851461216d575b60218414612128575b50906020809286010151940101519160208110612111575b50602081106120f9575b509083526020830152565b61210561210a916101a3565b610faf565b1c386120ee565b612105612120919492946101a3565b1c91386120e4565b612138611fd48488969496611f87565b1661215b57602061215261214c8294611bc0565b92610194565b939192506120cc565b6040516386cd05c560e01b8152600490fd5b93908461217c611fd488611f76565b16612193575061218d600591610194565b936120c3565b6040516386cd05c560e01b8152fd5b506040513d6000823e3d90fd5b9160408101601b81528151916020810160206121e9825160405196888860609194939260808201958252601b602083015260408201520152565b856000968792838052039060015afa1561229e575b83516001600160a01b03968716961686900361221d575b505050505050565b61226f946122538593601c602096525192516040519384938460609194939260808201958252601c602083015260408201520152565b838052039060015afa15612291575b516001600160a01b031690565b0361227f57388080808080612215565b604051634532600d60e01b8152600490fd5b6122996121a2565b612262565b6122a66121a2565b6121fe565b90600091805192600193848114908161240f575b50156122ca57509150565b815193603885101561233c57509261232e61031f92612328949561230b6122fb60ff6122f4612657565b96166126c5565b60f81b6001600160f81b03191690565b901a61231684611608565b535b60405194859360208501906115cf565b906115cf565b03601f198101835282610256565b9190808380805b6123dd575b505061235b61235683611bc0565b61268b565b936123736122fb61236e60ff86166126c5565b6126b3565b821a61237e86611608565b535b8281111561239e575050506123289293509061232e61031f92612318565b806123c66122fb611b09611b096123c06123bb6123d8978a6101b1565b6126e9565b8c612637565b831a6123d28288611f87565b53611506565b612380565b90926123e98489612637565b15612407576123fa61240091611506565b93610fd4565b9080612343565b925080612348565b905015612428575b6080602083015160f81c10386122bf565b612430610e7f565b612417565b61243e90612706565b8051600060388210156124af5750602061031f916124696122fb60ff612462612657565b93166126d7565b60001a61247582611608565b535b604051938161248f8693518092868087019101610688565b82016124a382518093868085019101610688565b01038084520182610256565b6001918280805b612535575b50506124c961235683611bc0565b926124dc6122fb61236e60ff86166126d7565b60001a6124e885611608565b535b8281111561250057505050602061031f91612477565b806125236122fb611b09611b0961251d6123bb612530978a6101b1565b87612637565b60001a6123d28287611f87565b6124ea565b90926125418484612637565b15612559576123fa61255291611506565b90806124b6565b9250806124bb565b61031f90604051906bffffffffffffffffffffffff199060601b1660208201526014815261258e816101f8565b6122ab565b906040516125ad8161232e60209586830160209181520190565b60009283905b80821061260d575b506125c8612356826101a3565b91845b83518110156125ff576125fa906125ee611fd46125e786611506565b9585611f87565b871a6123d28287611f87565b6125cb565b50505061031f9192506122ab565b9061261e612073611fd48386611f87565b6126315761262b90611506565b906125b3565b906125bb565b8115612641570490565b634e487b7160e01b600052601260045260246000fd5b60405190612664826101f8565b6001825260203681840137565b6040519061267e8261023b565b6000808352366020840137565b90612695826102a3565b6126a26040519182610256565b8281528092611907601f19916102a3565b60ff60379116019060ff821161018a57565b60ff60809116019060ff821161018a57565b60ff60c09116019060ff821161018a57565b601f81116126f9575b6101000a90565b612701610164565b6126f2565b80511561279f5790600091825b81518410156127415761273561273b9161272d86856116a8565b515190611bea565b93611506565b92612713565b61274d9192935061268b565b906020808301936000945b83518610156127975761278b6127919161278161277589886116a8565b518681519101836127a8565b61272d88876116a8565b95611506565b94612758565b509350505090565b5061031f612671565b92905b60209384841061280a57815181528481018091116127fd575b9381018091116127f0575b91601f1981019081116127e3575b916127ab565b6127eb610164565b6127dd565b6127f8610164565b6127cf565b612805610164565b6127c4565b9290919350600019906020036101000a0190811990511690825116179052565b9161284e9061031f94928452600060208501526080604085015260808401906106ab565b9160608184039101526106ab565b3d15612887573d9061286d826102a3565b9161287b6040519384610256565b82523d6000602084013e565b606090565b6000926128a8849361232e60405193849260208401968761282a565b51906003600160981b015afa6128bc61285c565b90156128c55790565b60405162461bcd60e51b815260206004820152600f60248201526e195b98dc9e5c1d0e8819985a5b1959608a1b6044820152606490fd5b1561290357565b60405162461bcd60e51b815260206004820152600c60248201526b1cda59db8e8819985a5b195960a21b6044820152606490fd5b51906101928261066a565b9060209081838203126101dc5782516001600160401b03938482116101dc5701906040828203126101dc576040519361297a856101f8565b82519081116101dc5782019181601f840112156101dc5782519161299d836102a3565b906129ab6040519283610256565b8382528584860101116101dc576129cc85936129d495858085019101610688565b855201612937565b9082015290565b604051906129e8826101f8565b600d82526c14185e5bdd5d0819985a5b1959609a1b6020830152565b6001906001600160401b03809116908114611516570190565b600092612a39849361232e60405193849260208401968761282a565b51906004600160981b015afa612a4d61285c565b9015612a565790565b60405162461bcd60e51b815260206004820152600f60248201526e191958dc9e5c1d0e8819985a5b1959608a1b6044820152606490fdfea26469706673582212204796b00865c380f5cf8a70fcf6953fcade2f5f86103eff419bbcd86753e3c80064736f6c63430008100033",Bw=e=>e.length>1;class ju extends Dc{constructor(...t){Bw(t)?super(...t):super(La,fp,t[0])}getDeployTransaction(t){return super.getDeployTransaction(t||{})}deploy(t){return super.deploy(t||{})}connect(t){return super.connect(t)}static createInterface(){return new Qi(La)}static connect(t,n){return new ps(t,La,n)}}ju.bytecode=fp;ju.abi=La;var hp=(e=>(e[e.Unknown=0]="Unknown",e[e.Ethereum=1]="Ethereum",e[e.Goerli=10]="Goerli",e[e.BscMainnet=56]="BscMainnet",e[e.BscTestnet=97]="BscTestnet",e[e.EmeraldTestnet=42261]="EmeraldTestnet",e[e.EmeraldMainnet=42262]="EmeraldMainnet",e[e.SapphireTestnet=23295]="SapphireTestnet",e[e.SapphireMainnet=23294]="SapphireMainnet",e[e.SapphireLocalnet=23293]="SapphireLocalnet",e[e.Local=1337]="Local",e[e.FromConfig=parseInt("0x5afe")]="FromConfig",e))(hp||{});const dp=Wg("ethereum",()=>{const e=Bh(new Ow("https://sapphire.oasis.io",void 0,{staticNetwork:!0})),t=Vn(hp.FromConfig);return Vn(0),{provider:e,network:t}}),kw="0x1e7421F1a1D898ac0267B92944FE06cB2b3e5762";function Sw(){const e=dp();return Ee(()=>e?ju.connect(kw,e.provider):(console.error("[useQuiz] Ethereum Store not initialized"),null))}const Uw=ra({__name:"AppButton",props:{variant:null,size:null},setup(e){return(t,n)=>(As(),sa("button",{class:fc(["btn",{"btn-primary":e.variant==="primary","btn-secondary":e.variant==="secondary","btn-tertiary":e.variant==="tertiary","btn-danger":e.variant==="danger","btn-choice":e.variant==="choice","btn-small":e.size==="small"}]),type:"button"},[L6(t.$slots,"default",{},void 0,!0)],2))}});const _w=vu(Uw,[["__scopeId","data-v-9047e60d"]]),Fw=Ot("p",{class:"text-white"},[Be(" Welcome to the Oasis blockchain quiz!\u{1F339}"),Ot("br"),Ot("br"),Be(" You probably know everything about the bitcoin and the Ethereum blockchains, but there are also other chains out there such as the "),Ot("a",{href:"https://oasisprotocol.org",target:"_blank"},"Oasis Network"),Be("! \u26D3 This quiz runs on Oasis Sapphire inside a "),Ot("b",null,"confidential smart contract"),Be(", and verifies your answers completely on-chain. \u{1F512}"),Ot("br"),Ot("br")],-1),Dw={class:"form-group"},Lw=Ot("label",{for:"couponText",class:"peer-focus:text-primaryDark peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-5"},[Be(" Enter you coupon: "),Ot("span",{class:"text-red-500"},"*")],-1),Mw=ig('

When you solve the quiz, you will receive a 100 ROSE reward! You can use the tokens to develop a dApp \u{1F528} and deploy it on the Mainnet. If you don't have an idea for your dApp, perhaps you will find an inspiration by checking out our playground.\u{1F4A1}

Of course, you can also exchange it for other tokens on a DEX. Maybe get you and your friends a beer hot chocolate in the nearby crypto pub? \u2615 Or you can just hodl your tokens and maybe their value will surge. \u{1F911}

In either case, join us on Discord. You will find a lot of interesting answers there. Good luck!\u{1F609}

',1),Hw=ra({__name:"HomeView",setup(e){dp(),Sw(),Vn([]);const t=Vn("");return Vn(""),Vn(!0),zh(async()=>{}),(n,r)=>{const s=jh("RouterLink");return As(),sa("section",null,[Fw,Ot("div",Dw,[_6(Ot("input",{type:"text",id:"couponText",class:"peer",placeholder:" ","onUpdate:modelValue":r[0]||(r[0]=i=>t.value=i),required:""},null,512),[[Dg,t.value]]),Lw]),Mt(s,{to:{name:"quiz",params:{coupon:t.value}}},{default:Va(()=>[Mt(_w,{variant:"primary"},{default:Va(()=>[Be("Confirm")]),_:1})]),_:1},8,["to"]),Mw])}}}),Gw=Y5({strict:!0,history:d5("/ethdam-quiz/"),routes:[{path:"/",component:Hw},{path:"/quiz/:coupon?",component:()=>Zf(()=>import("./QuizView.6ac363f9.js"),["assets/QuizView.6ac363f9.js","assets/QuizView.17b9b8db.css"]),props:!0,name:"quiz"},{path:"/:path(.*)",component:()=>Zf(()=>import("./404View.d3415bb8.js"),[])}]}),Wu=Hg(bb);Wu.use(Vg());Wu.use(Gw);Wu.mount("#app");export{_w as A,Qe as F,_l as Z,vu as _,Ot as a,Mt as b,sa as c,ra as d,Ee as e,s1 as f,Sw as g,dp as h,Vn as i,zh as j,jw as k,Ww as l,og as m,_6 as n,As as o,yt as p,Be as q,L6 as r,fc as s,zw as t,us as u,Dg as v,Va as w,Kw as x,Jw as y}; +//# sourceMappingURL=index.23a0b8b4.js.map diff --git a/ethdam-quiz/assets/index.23a0b8b4.js.map b/ethdam-quiz/assets/index.23a0b8b4.js.map new file mode 100644 index 0000000..0abbfa4 --- /dev/null +++ b/ethdam-quiz/assets/index.23a0b8b4.js.map @@ -0,0 +1 @@ +{"version":3,"mappings":"8mBAAqB,UAAoB,CACrC,MAAMA,EAAU,SAAS,cAAc,MAAM,EAAE,QAC/C,GAAIA,GAAWA,EAAQ,UAAYA,EAAQ,SAAS,eAAe,EAC/D,OAEJ,UAAWC,KAAQ,SAAS,iBAAiB,2BAA2B,EACpEC,EAAeD,CAAI,EAEvB,IAAI,iBAAkBE,GAAc,CAChC,UAAWC,KAAYD,EACnB,GAAIC,EAAS,OAAS,YAGtB,UAAWC,KAAQD,EAAS,WACpBC,EAAK,UAAY,QAAUA,EAAK,MAAQ,iBACxCH,EAAeG,CAAI,CAGvC,CAAK,EAAE,QAAQ,SAAU,CAAE,UAAW,GAAM,QAAS,EAAI,CAAE,EACvD,SAASC,EAAaC,EAAQ,CAC1B,MAAMC,EAAY,GAClB,OAAID,EAAO,YACPC,EAAU,UAAYD,EAAO,WAC7BA,EAAO,iBACPC,EAAU,eAAiBD,EAAO,gBAClCA,EAAO,cAAgB,kBACvBC,EAAU,YAAc,UACnBD,EAAO,cAAgB,YAC5BC,EAAU,YAAc,OAExBA,EAAU,YAAc,cACrBA,CACV,CACD,SAASN,EAAeD,EAAM,CAC1B,GAAIA,EAAK,GAEL,OACJA,EAAK,GAAK,GAEV,MAAMO,EAAYF,EAAaL,CAAI,EACnC,MAAMA,EAAK,KAAMO,CAAS,CAC7B,CACL,KCnCA,SAASC,GAAQC,EAAKC,EAAkB,CACpC,MAAMC,EAAM,OAAO,OAAO,IAAI,EACxBC,EAAOH,EAAI,MAAM,GAAG,EAC1B,QAASI,EAAI,EAAGA,EAAID,EAAK,OAAQC,IAC7BF,EAAIC,EAAKC,IAAM,GAEnB,OAAOH,EAAmBI,GAAO,CAAC,CAACH,EAAIG,EAAI,YAAa,GAAIA,GAAO,CAAC,CAAC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UACjB,KAAM,aACT,EACD,CACI,OAAQ,CAAE,EACV,KAAM,kBACN,KAAM,OACT,EACD,CACI,OAAQ,CAAE,EACV,KAAM,iBACN,KAAM,OACT,EACD,CACI,OAAQ,CAAE,EACV,KAAM,iBACN,QAAS,CACL,CACI,aAAc,UACd,KAAM,GACN,KAAM,SACT,CACJ,EACD,gBAAiB,OACjB,KAAM,UACT,EACD,CACI,OAAQ,CAAE,EACV,KAAM,eACN,QAAS,CACL,CACI,aAAc,UACd,KAAM,GACN,KAAM,SACT,CACJ,EACD,gBAAiB,OACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,WACd,KAAM,UACN,KAAM,UACT,CACJ,EACD,KAAM,aACN,QAAS,CAAE,EACX,gBAAiB,aACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,SACd,KAAM,SACN,KAAM,QACT,EACD,CACI,aAAc,UACd,KAAM,UACN,KAAM,SACT,EACD,CACI,aAAc,UACd,KAAM,aACN,KAAM,SACT,CACJ,EACD,KAAM,eACN,QAAS,CACL,CACI,aAAc,SACd,KAAM,GACN,KAAM,QACT,EACD,CACI,aAAc,QACd,KAAM,GACN,KAAM,OACT,CACJ,EACD,gBAAiB,OACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,QACd,KAAM,uBACN,KAAM,OACT,CACJ,EACD,KAAM,cACN,QAAS,CAAE,EACX,gBAAiB,aACjB,KAAM,UACT,EACD,CACI,OAAQ,CAAE,EACV,KAAM,iBACN,QAAS,CAAE,EACX,gBAAiB,aACjB,KAAM,UACT,EACD,CACI,OAAQ,CAAE,EACV,KAAM,aACN,QAAS,CACL,CACI,aAAc,WACd,KAAM,GACN,KAAM,UACT,EACD,CACI,aAAc,YACd,KAAM,GACN,KAAM,WACT,CACJ,EACD,gBAAiB,OACjB,KAAM,UACT,EACD,CACI,OAAQ,CAAE,EACV,KAAM,oBACN,QAAS,CACL,CACI,aAAc,UACd,KAAM,GACN,KAAM,SACT,EACD,CACI,aAAc,UACd,KAAM,GACN,KAAM,SACT,EACD,CACI,aAAc,SACd,KAAM,GACN,KAAM,QACT,CACJ,EACD,gBAAiB,OACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,SACd,KAAM,SACN,KAAM,QACT,CACJ,EACD,KAAM,eACN,QAAS,CACL,CACI,WAAY,CACR,CACI,aAAc,SACd,KAAM,WACN,KAAM,QACT,EACD,CACI,aAAc,WACd,KAAM,UACN,KAAM,UACT,CACJ,EACD,aAAc,6BACd,KAAM,GACN,KAAM,SACT,CACJ,EACD,gBAAiB,OACjB,KAAM,UACT,EACD,CACI,OAAQ,CAAE,EACV,KAAM,YACN,QAAS,CACL,CACI,aAAc,UACd,KAAM,GACN,KAAM,SACT,CACJ,EACD,gBAAiB,OACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,SACd,KAAM,WACN,KAAM,QACT,EACD,CACI,aAAc,WACd,KAAM,UACN,KAAM,UACT,EACD,CACI,aAAc,QACd,KAAM,gBACN,KAAM,OACT,CACJ,EACD,KAAM,eACN,QAAS,CAAE,EACX,gBAAiB,aACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,UACd,KAAM,OACN,KAAM,SACT,CACJ,EACD,KAAM,eACN,QAAS,CAAE,EACX,gBAAiB,aACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,SACd,KAAM,SACN,KAAM,QACT,CACJ,EACD,KAAM,eACN,QAAS,CAAE,EACX,gBAAiB,aACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,UACd,KAAM,OACN,KAAM,SACT,EACD,CACI,aAAc,UACd,KAAM,YACN,KAAM,SACT,EACD,CACI,aAAc,SACd,KAAM,QACN,KAAM,QACT,CACJ,EACD,KAAM,oBACN,QAAS,CAAE,EACX,gBAAiB,aACjB,KAAM,UACT,EACD,CACI,OAAQ,CACJ,CACI,aAAc,UACd,KAAM,g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UA,YAoDC,SAAmBllD,GAAY,WAAY,IAAM,CAC5D,MAAM66C,EAAW9mE,GACf,IAAIk7E,GAAgB,4BAAmC,OAAW,CAChE,cAAe,GAChB,GAGGnM,EAAUpvE,GAAIwxE,GAAQ,UAAU,EACvB,UAAI,CAAwB,EAQpC,CACL,WACA,UAEJ,CAAC,EC/EK5X,GAAO,6CAEN,SAASoiB,IAAoC,CAClD,MAAMC,EAAMC,KAEZ,OAAOv6E,GAAS,IACTs6E,EAKEF,GAAc,QAAQniB,GAAMqiB,EAAI,QAAQ,GAJ7C,QAAQ,MAAM,0CAA0C,EACjD,KAIV,CACH,gsECdYC,GAAiB,EAChBF,GAAQ,EAENh8E,GAAc,EAAE,EACzB,QAAaA,GAAY,EAAE,EAClB,UAAI,EAAE,EACHA,GAAI,EAAI,EAO1B8M,GAAU,SAAY,EACrB,kZCjBKguB,GAASyC,GAAa,CAC1B,OAAQ,GACR,QAAShL,GAAqB,eAAwB,EACtD,OAAQ,CACN,CACE,KAAM,IACN,UAAW4pD,EACb,EACA,CACE,KAAM,iBACN,UAAW,WAAM,OAAO,0FACxB,MAAO,GACP,KAAM,MACR,EACA,CACE,KAAM,aACN,UAAW,IAAMC,cAAO,4BAC1B,CACF,CACF,CAAC,EChBK9kE,GAAM8Q,GAAUi0D,EAAG,EAEzB/kE,GAAI,IAAIyR,IAAa,EACrBzR,GAAI,IAAIwjB,EAAM,EAEdxjB,GAAI,MAAM,MAAM","names":["relList","link","processPreload","mutations","mutation","node","getFetchOpts","script","fetchOpts","makeMap","str","expectsLowerCase","map","list","i","val","normalizeStyle","value","isArray","res","item","normalized","isString","parseStringStyle","key","isObject","listDelimiterRE","propertyDelimiterRE","styleCommentRE","cssText","ret","tmp","normalizeClass","name","specialBooleanAttrs","isSpecialBooleanAttr","includeBooleanAttr","toDisplayString","objectToString","isFunction","replacer","_key","isMap","entries","isSet","isPlainObject","EMPTY_OBJ","EMPTY_ARR","NOOP","NO","onRE","isOn","isModelListener","extend","remove","arr","el","hasOwnProperty","hasOwn","toTypeString","isSymbol","isPromise","toRawType","isIntegerKey","isReservedProp","cacheStringFunction","fn","cache","camelizeRE","camelize","_","c","hyphenateRE","hyphenate","capitalize","toHandlerKey","hasChanged","oldValue","invokeArrayFns","fns","arg","def","obj","toNumber","n","_globalThis","getGlobalThis","activeEffectScope","EffectScope","detached","currentEffectScope","fromParent","l","last","effectScope","recordEffectScope","effect","scope","getCurrentScope","onScopeDispose","createDep","effects","dep","wasTracked","trackOpBit","newTracked","initDepMarkers","deps","finalizeDepMarkers","ptr","targetMap","effectTrackDepth","maxMarkerBits","activeEffect","ITERATE_KEY","MAP_KEY_ITERATE_KEY","ReactiveEffect","scheduler","parent","lastShouldTrack","shouldTrack","cleanupEffect","trackStack","pauseTracking","resetTracking","track","target","type","depsMap","trackEffects","debuggerEventExtraInfo","trigger","newValue","oldTarget","newLength","triggerEffects","triggerEffect","isNonTrackableKeys","builtInSymbols","get","createGetter","shallowGet","readonlyGet","arrayInstrumentations","createArrayInstrumentations","instrumentations","args","toRaw","isReadonly","shallow","receiver","shallowReadonlyMap","readonlyMap","shallowReactiveMap","reactiveMap","targetIsArray","isRef","readonly","reactive","set","createSetter","shallowSet","isShallow","hadKey","result","deleteProperty","has","ownKeys","mutableHandlers","readonlyHandlers","shallowReactiveHandlers","toShallow","getProto","v","get$1","rawTarget","rawKey","wrap","toReadonly","toReactive","has$1","size","add","set$1","deleteEntry","clear","hadItems","createForEach","callback","thisArg","observed","createIterableMethod","method","targetIsMap","isPair","isKeyOnly","innerIterator","done","createReadonlyMethod","createInstrumentations","mutableInstrumentations","shallowInstrumentations","readonlyInstrumentations","shallowReadonlyInstrumentations","createInstrumentationGetter","mutableCollectionHandlers","shallowCollectionHandlers","readonlyCollectionHandlers","targetTypeMap","rawType","getTargetType","createReactiveObject","shallowReactive","baseHandlers","collectionHandlers","proxyMap","existingProxy","targetType","proxy","isReactive","isProxy","raw","markRaw","trackRefValue","ref","triggerRefValue","newVal","r","createRef","shallowRef","rawValue","RefImpl","__v_isShallow","useDirectValue","unref","shallowUnwrapHandlers","proxyRefs","objectWithRefs","toRefs","object","toRef","ObjectRefImpl","_object","_defaultValue","defaultValue","_a","ComputedRefImpl","getter","_setter","isSSR","self","computed","getterOrOptions","debugOptions","setter","onlyGetter","callWithErrorHandling","instance","err","handleError","callWithAsyncErrorHandling","values","throwInDev","contextVNode","cur","exposedInstance","errorInfo","errorCapturedHooks","appErrorHandler","logError","isFlushing","isFlushPending","queue","flushIndex","pendingPostFlushCbs","activePostFlushCbs","postFlushIndex","resolvedPromise","currentFlushPromise","nextTick","p","findInsertionIndex","id","start","end","middle","getId","queueJob","job","queueFlush","flushJobs","invalidateJob","queuePostFlushCb","cb","flushPreFlushCbs","seen","flushPostFlushCbs","deduped","a","b","comparator","diff","check","emit$1","event","rawArgs","props","modelArg","modifiersKey","trim","number","handlerName","handler","onceHandler","normalizeEmitsOptions","comp","appContext","asMixin","cached","hasExtends","extendEmits","normalizedFromExtend","isEmitListener","options","currentRenderingInstance","currentScopeId","setCurrentRenderingInstance","prev","pushScopeId","popScopeId","withCtx","ctx","isNonScopedSlot","renderFnWithContext","setBlockTracking","prevInstance","renderComponentRoot","Component","propsOptions","fallthroughAttrs","vnode","proxyToUse","withProxy","normalizeVNode","render","renderCache","setupState","data","attrs","getFunctionalFallthrough","blockStack","createVNode","Comment","root","inheritAttrs","keys","shapeFlag","filterModelListeners","cloneVNode","shouldUpdateComponent","prevVNode","nextVNode","optimized","prevProps","prevChildren","nextProps","nextChildren","emits","component","patchFlag","hasPropsChanged","dynamicProps","emitsOptions","nextKeys","updateHOCHostEl","isSuspense","queueEffectWithSuspense","suspense","provide","currentInstance","provides","parentProvides","inject","treatDefaultAsFactory","INITIAL_WATCHER_VALUE","watch","source","doWatch","forceTrigger","isMultiSource","isShallow$1","deep","s","traverse","cleanup","onCleanup","baseGetter","ssrCleanup","isInSSRComponentSetup","immediate","flush","useSSRContext","queuePostRenderEffect","unwatch","instanceWatch","publicThis","createPathGetter","setCurrentInstance","unsetCurrentInstance","path","segments","defineComponent","isAsyncWrapper","isKeepAlive","onActivated","hook","registerKeepAliveHook","onDeactivated","wrappedHook","current","injectHook","injectToKeepAliveRoot","keepAliveRoot","injected","onUnmounted","prepend","hooks","createHook","lifecycle","onBeforeMount","onMounted","onBeforeUpdate","onUpdated","onBeforeUnmount","onServerPrefetch","onRenderTriggered","onRenderTracked","onErrorCaptured","withDirectives","directives","internalInstance","getExposeProxy","bindings","dir","modifiers","invokeDirectiveHook","oldBindings","binding","COMPONENTS","resolveComponent","maybeSelfReference","resolveAsset","NULL_DYNAMIC_COMPONENT","warnMissing","selfName","getComponentName","resolve","registry","renderList","renderItem","index","renderSlot","slots","fallback","noSlotted","slot","openBlock","validSlotContent","ensureValidVNode","rendered","createBlock","Fragment","vnodes","child","isVNode","getPublicInstance","isStatefulComponent","publicPropertiesMap","resolveMergedOptions","hasSetupBinding","state","PublicInstanceProxyHandlers","normalizedProps","accessCache","shouldCacheAccess","publicGetter","cssModule","globalProperties","descriptor","applyOptions","callHook","dataOptions","computedOptions","watchOptions","provideOptions","injectOptions","resolveInjections","methods","methodHandler","opt","createWatcher","created","registerLifecycleHook","register","_hook","beforeMount","mounted","beforeUpdate","updated","activated","deactivated","errorCaptured","renderTracked","renderTriggered","beforeUnmount","unmounted","serverPrefetch","expose","exposed","components","checkDuplicateProperties","unwrapRef","normalizeInject","h","base","extendsOptions","globalMixins","resolved","mixins","m","mergeOptions","optionMergeStrategies","to","from","strats","strat","internalOptionMergeStrats","mergeDataFn","mergeObjectOptions","mergeAsArray","mergeWatchOptions","mergeInject","merged","initProps","rawProps","isStateful","InternalObjectKey","setFullProps","updateProps","rawPrevProps","rawCurrentProps","hasAttrsChanged","propsToUpdate","camelizedKey","resolvePropValue","kebabKey","needCastKeys","rawCastValues","camelKey","castValues","isAbsent","hasDefault","propsDefaults","normalizePropsOptions","extendProps","normalizedKey","validatePropName","prop","booleanIndex","getTypeIndex","stringIndex","getType","ctor","match","isSameType","expectedTypes","t","isInternalKey","normalizeSlotValue","normalizeSlot","rawSlot","normalizeObjectSlots","rawSlots","normalizeVNodeSlots","children","initSlots","updateSlots","needDeletionCheck","deletionComparisonTarget","createAppContext","uid","createAppAPI","hydrate","rootComponent","rootProps","context","installedPlugins","isMounted","app","version","plugin","mixin","directive","rootContainer","isHydrate","isSVG","setRef","rawRef","oldRawRef","parentSuspense","isUnmount","refValue","owner","oldRef","refs","_isString","_isRef","doSet","existing","createRenderer","baseCreateRenderer","createHydrationFns","hostInsert","hostRemove","hostPatchProp","hostCreateElement","hostCreateText","hostCreateComment","hostSetText","hostSetElementText","hostParentNode","hostNextSibling","hostSetScopeId","hostInsertStaticContent","patch","n1","n2","container","anchor","parentComponent","slotScopeIds","isSameVNodeType","getNextHostNode","unmount","Text","processText","processCommentNode","Static","mountStaticNode","processFragment","processElement","processComponent","internals","moveStaticNode","nextSibling","next","removeStaticNode","mountElement","patchElement","vnodeHook","mountChildren","dirs","unmountChildren","invokeVNodeHook","setScopeId","needCallTransitionHooks","transition","scopeId","subTree","parentVNode","cloneIfMounted","oldProps","newProps","toggleRecurse","areChildrenSVG","dynamicChildren","patchBlockChildren","patchChildren","patchProps","oldChildren","newChildren","fallbackContainer","oldVNode","newVNode","fragmentStartAnchor","fragmentEndAnchor","fragmentSlotScopeIds","traverseStaticChildren","mountComponent","updateComponent","initialVNode","createComponentInstance","setupComponent","setupRenderEffect","placeholder","updateComponentPreRender","componentUpdateFn","originNext","bu","nextTree","prevTree","u","isAsyncWrapperVNode","bm","hydrateNode","hydrateSubTree","scopedInitialVNode","update","c1","prevShapeFlag","c2","patchKeyedChildren","patchUnkeyedChildren","oldLength","commonLength","nextChild","parentAnchor","l2","e1","e2","nextPos","s1","s2","keyToNewIndexMap","j","patched","toBePatched","moved","maxNewIndexSoFar","newIndexToOldIndexMap","prevChild","newIndex","increasingNewIndexSequence","getSequence","nextIndex","move","moveType","performLeave","leave","afterLeave","delayLeave","doRemove","shouldInvokeDirs","shouldInvokeVnodeHook","unmountComponent","removeFragment","performRemove","bum","um","allowed","ch1","ch2","len","arrI","isTeleport","currentBlock","disableTracking","closeBlock","isBlockTreeEnabled","setupBlock","createElementBlock","createBaseVNode","normalizeKey","normalizeRef","ref_key","ref_for","isBlockNode","needFullChildrenNormalization","normalizeChildren","_createVNode","cloned","isClassComponent","guardReactiveProps","klass","style","extraProps","mergeRef","mergedProps","mergeProps","createTextVNode","text","flag","createStaticVNode","content","numberOfNodes","createCommentVNode","asBlock","slotFlag","toMerge","incoming","emptyAppContext","uid$1","getCurrentInstance","setupResult","setupStatefulComponent","setup","setupContext","createSetupContext","resolvedResult","handleSetupResult","e","finishComponentSetup","compile","skipOptions","template","componentCompilerOptions","finalCompilerOptions","compilerOptions","createAttrsProxy","includeInferred","computed$1","propsOrChildren","ssrContextKey","svgNS","doc","templateContainer","nodeOps","tag","is","selector","before","wrapper","patchClass","transitionClasses","patchStyle","isCssString","setStyle","currentDisplay","importantRE","prefixed","autoPrefix","prefixes","prefixCache","rawName","xlinkNS","patchAttr","isBoolean","patchDOMProp","needRemove","addEventListener","removeEventListener","patchEvent","prevValue","nextValue","invokers","existingInvoker","parseName","invoker","createInvoker","optionsModifierRE","cachedNow","getNow","initialValue","patchStopImmediatePropagation","originalStop","nativeOnRE","patchProp","shouldSetAsProp","getModelAssigner","onCompositionStart","onCompositionEnd","vModelText","castToNumber","lazy","domValue","rendererOptions","renderer","ensureRenderer","createApp","containerOrSelector","normalizeContainer","mount","isVue2","activePinia","setActivePinia","pinia","piniaSymbol","o","MutationType","createPinia","_p","toBeInstalled","noop","addSubscription","subscriptions","removeSubscription","idx","triggerSubscriptions","mergeReactiveObjects","patchToApply","subPatch","targetValue","skipHydrateSymbol","shouldHydrate","assign","isComputed","createOptionsStore","hot","initialState","store","localState","actions","getters","computedGetters","createSetupStore","newState","$state","$id","isOptionsStore","optionsForPlugin","$subscribeOptions","isListening","isSyncListening","actionSubscriptions","debuggerEvents","activeListener","$patch","partialStateOrMutator","subscriptionMutation","myListenerId","$reset","$dispose","wrapAction","action","afterCallbackList","onErrorCallbackList","after","onError","error","partialStore","stopWatcher","setupStore","actionValue","extender","defineStore","idOrOptions","setupOptions","isSetupStore","useStore","isBrowser","isESModule","applyToParams","params","newParams","TRAILING_SLASH_RE","removeTrailingSlash","parseURL","parseQuery","location","currentLocation","query","searchString","hash","hashPos","searchPos","resolveRelativePath","stringifyURL","stringifyQuery","stripBase","pathname","isSameRouteLocation","aLastIndex","bLastIndex","isSameRouteRecord","isSameRouteLocationParams","isSameRouteLocationParamsValue","isEquivalentArray","fromSegments","toSegments","position","toPosition","segment","NavigationType","NavigationDirection","normalizeBase","baseEl","BEFORE_HASH_RE","createHref","getElementPosition","offset","docRect","elRect","computeScrollPosition","scrollToPosition","scrollToOptions","positionEl","isIdSelector","getScrollKey","delta","scrollPositions","saveScrollPosition","scrollPosition","getSavedScrollPosition","scroll","createBaseLocation","createCurrentLocation","slicePos","pathFromHash","search","useHistoryListeners","historyState","replace","listeners","teardowns","pauseState","popStateHandler","fromState","listener","pauseListeners","listen","teardown","beforeUnloadListener","history","destroy","buildState","back","forward","replaced","computeScroll","useHistoryStateNavigation","changeLocation","hashIndex","url","push","currentState","createWebHistory","historyNavigation","historyListeners","go","triggerListeners","routerHistory","createWebHashHistory","isRouteLocation","route","isRouteName","START_LOCATION_NORMALIZED","NavigationFailureSymbol","NavigationFailureType","createRouterError","isNavigationFailure","BASE_PARAM_PATTERN","BASE_PATH_PARSER_OPTIONS","REGEX_CHARS_RE","tokensToParser","extraOptions","score","pattern","segmentScores","tokenIndex","token","subSegmentScore","re","regexp","subPattern","repeatable","optional","parse","stringify","avoidDuplicatedSlash","param","compareScoreArray","comparePathParserScore","aScore","bScore","isLastScoreNegative","ROOT_TOKEN","VALID_PARAM_RE","tokenizePath","crash","message","buffer","previousState","tokens","finalizeSegment","char","customRe","consumeBuffer","addCharToBuffer","createRouteRecordMatcher","record","parser","matcher","createRouterMatcher","routes","globalOptions","matchers","matcherMap","getRecordMatcher","addRoute","originalRecord","isRootAdd","mainNormalizedRecord","normalizeRouteRecord","normalizedRecords","aliases","alias","originalMatcher","normalizedRecord","parentPath","connectingSlash","isAliasRecord","removeRoute","insertMatcher","matcherRef","getRoutes","isRecordChildOf","paramsFromLocation","k","matched","parentMatcher","mergeMetaFields","normalizeRecordProps","propsObject","meta","defaults","partialOptions","HASH_RE","AMPERSAND_RE","SLASH_RE","EQUAL_RE","IM_RE","PLUS_RE","ENC_BRACKET_OPEN_RE","ENC_BRACKET_CLOSE_RE","ENC_CARET_RE","ENC_BACKTICK_RE","ENC_CURLY_OPEN_RE","ENC_PIPE_RE","ENC_CURLY_CLOSE_RE","ENC_SPACE_RE","commonEncode","encodeHash","encodeQueryValue","encodeQueryKey","encodePath","encodeParam","decode","searchParams","searchParam","eqPos","currentValue","normalizeQuery","normalizedQuery","matchedRouteKey","viewDepthKey","routerKey","routeLocationKey","routerViewLocationKey","useCallbacks","handlers","reset","guardToPromiseFn","guard","enterCallbackArray","reject","valid","guardReturn","guardCall","extractComponentsGuards","guardType","guards","rawComponent","isRouteComponent","componentPromise","resolvedComponent","useLink","router","currentRoute","activeRecordIndex","routeMatched","length","currentMatched","parentRecordPath","getOriginalPath","isActive","includesParams","isExactActive","navigate","guardEvent","RouterLinkImpl","elClass","getLinkClass","RouterLink","outer","inner","innerValue","outerValue","propClass","globalClass","defaultClass","RouterViewImpl","injectedRoute","routeToDisplay","injectedDepth","depth","initialDepth","matchedRoute","matchedRouteRef","viewRef","oldInstance","oldName","currentName","ViewComponent","routePropsOption","routeProps","slotContent","RouterView","createRouter","parseQuery$1","stringifyQuery$1","beforeGuards","beforeResolveGuards","afterGuards","pendingLocation","normalizeParams","paramValue","encodeParams","decodeParams","parentOrRoute","recordMatcher","routeMatcher","hasRoute","rawLocation","locationNormalized","href","matcherLocation","targetParams","fullPath","locationAsObject","checkCanceledNavigation","pushWithRedirect","handleRedirectRecord","lastMatched","newTargetLocation","redirect","redirectedFrom","targetLocation","force","shouldRedirect","toLocation","failure","handleScroll","markAsReady","triggerError","finalizeNavigation","checkCanceledNavigationAndReject","leavingRecords","updatingRecords","enteringRecords","extractChangingRecords","canceledNavigationCheck","runGuardQueue","beforeEnter","triggerAfterEach","isPush","isFirstNavigation","removeHistoryListener","setupListeners","_from","info","readyHandlers","errorHandlers","ready","isReady","scrollBehavior","started","installedApps","reactiveRoute","unmountApp","promise","recordFrom","recordTo","_imports_0","_imports_1","_hoisted_1","_hoisted_2","_createElementVNode","_createElementBlock","_createTextVNode","_hoisted_3","checkType","types","resolveProperties","accum","defineProperties","HEX","isError","code","isCallException","makeError","shortMessage","details","assert","assertArgument","assertArgumentCount","count","expectedCount","_normalizeForms","form","expected","assertNormalize","assertPrivate","givenGuard","className","operation","_getBytes","copy","getBytes","getBytesCopy","isHexString","isBytesLike","HexCharacters","hexlify","bytes","concat","datas","d","dataLength","dataSlice","zeroPad","left","zeroPadValue","zeroPadBytes","BN_0","BN_1","maxValue","fromTwos","_value","_width","getUint","width","getNumber","mask","toTwos","getBigInt","limit","_bits","bits","Nibbles","toBigInt","toBeHex","toBeArray","hex","toQuantity","Alphabet","BN_58","encodeBase58","decodeBase64","textData","encodeBase64","_data","EventPayload","emitter","filter","__publicField","__privateAdd","__privateSet","_listener","__privateGet","errorFunc","reason","output","badCodepoint","ignoreFunc","replaceFunc","Utf8ErrorFuncs","getUtf8CodePoints","_bytes","extraLength","overlongMask","nextChar","toUtf8Bytes","pair","_toUtf8String","codePoints","codePoint","toUtf8String","createGetUrl","getUrl","req","_signal","protocol","signal","controller","init","resp","headers","respBody","body","MAX_ATTEMPTS","SLOT_INTERVAL","defaultGetUrlFunc","reData","reIpfs","locked","dataGatewayFunc","FetchResponse","unpercent","FetchRequest","getIpfsGatewayFunc","baseUrl","gatewayIpfs","Gateways","fetchSignals","FetchCancelSignal","request","_listeners","_cancelled","checkSignal","_FetchRequest","_send","_url","_allowInsecure","_gzip","_headers","_method","_timeout","_throttle","_getUrlFunc","_body","_bodyType","_creds","username","password","timeout","_preflight","preflight","_process","process","_retry","retry","__privateMethod","getTime","clone","scheme","func","attempt","expires","delay","_request","_response","wait","response","retryAfter","_FetchResponse","statusCode","statusMessage","_statusCode","_statusMessage","_error","stall","all","hexlifyByte","unarrayifyInteger","_decodeChildren","childOffset","decoded","_decode","checkOffset","lengthLength","decodeRlp","arrayifyInteger","_encode","payload","nibbles","encodeRlp","WordSize","Padding","passProperties","_guard","throwError","wrapped","_Result","items","names","nameCounts","_names","Result","getValue","Coder","localName","dynamic","Writer","_dataLength","writer","_writeData","paddingOffset","_Reader","allowLoose","maxInflation","_bytesRead","_parent","_maxInflation","_offset","reader","loose","_peekBytes","_incrementBytesRead","Reader","alignedLength","lengths","exists","checkFinished","out","min","crypto","u8a","u32","createView","rotr","word","shift","isLE","utf8ToBytes","toBytes","concatBytes","arrays","sum","pad","Hash","wrapConstructor","hashCons","hashC","msg","randomBytes","bytesLength","HMAC","assertHash","blockLen","buf","assertExists","assertBytes","finished","destroyed","outputLen","oHash","iHash","hmac","setBigUint64","view","byteOffset","_32n","_u32_max","wh","wl","SHA2","padOffset","pos","take","dataView","oview","outLen","Chi","Maj","SHA256_K","IV","SHA256_W","SHA256","A","B","C","D","E","F","G","H","W15","W2","s0","sigma1","T1","T2","sha256","U32_MASK64","fromBig","le","split","lst","Ah","Al","rotlSH","rotlSL","rotlBH","rotlBL","SHA3_PI","SHA3_ROTL","_SHA3_IOTA","_0n","_1n","_2n","_7n","_256n","_0x71n","round","R","x","y","SHA3_IOTA_H","SHA3_IOTA_L","rotlH","rotlL","keccakP","rounds","idx1","idx0","B0","B1","Th","Tl","curH","curL","PI","Keccak","suffix","enableXOF","bufferOut","gen","keccak_256","_keccak256","__keccak256","keccak256","hexes","bytesToHex","numberToHexUnpadded","num","hexToNumber","hexToBytes","array","hexByte","byte","bytesToNumberBE","bytesToNumberLE","numberToBytesBE","numberToBytesLE","numberToVarBytesBE","ensureBytes","title","expectedLength","equalBytes","b1","b2","bitLen","bitGet","bitSet","bitMask","u8n","u8fr","createHmacDrbg","hashLen","qByteLen","hmacFn","reseed","seed","sl","pred","validatorFns","validateObject","validators","optValidators","checkField","fieldName","isOptional","checkVal","_3n","_4n","_5n","_8n","mod","pow","power","modulo","pow2","invert","q","tonelliShanks","P","legendreC","Q","S","Z","p1div4","Fp","Q1div2","g","t2","ge","FpSqrt","nv","FIELD_FIELDS","validateField","field","initial","opts","FpPow","f","FpInvertBatch","nums","lastMultiplied","acc","inverted","nLength","nBitLength","_nBitLength","nByteLength","Field","ORDER","redef","BITS","BYTES","sqrtP","lhs","rhs","getFieldBytesLength","fieldOrder","bitLength","getMinHashLength","mapHashToField","fieldLen","minLen","reduced","wNAF","constTimeNegate","condition","neg","W","windows","windowSize","elm","points","window","precomputes","maxNumber","shiftBy","wbits","offset1","offset2","cond1","cond2","precomputesMap","transform","validateBasic","curve","validatePointOpts","ut.validateObject","endo","b2n","h2b","ut","DER","sBytes","rBytesLeft","sig","slice","shl","rhl","rl","weierstrassPoints","CURVE","_c","point","_isCompressed","ut.concatBytes","fromBytes","tail","weierstrassEquation","x2","x3","isWithinCurveOrder","assertGE","normPrivateKeyToScalar","ut.bytesToHex","ut.bytesToNumberBE","wrapPrivateKey","mod.mod","pointPrecomputes","assertPrjPoint","other","Point","px","py","pz","is0","toInv","privateKey","right","X1","Y1","Z1","X2","Y2","Z2","U1","U2","b3","X3","Y3","Z3","t0","t1","t3","t4","t5","wnaf","I","k1p","k2p","k1","k2","k1neg","k2neg","scalar","fake","f1p","f2p","mul","iz","z","ax","ay","zz","cofactor","isTorsionFree","clearCofactor","isCompressed","validateOpts","weierstrass","curveDef","CURVE_ORDER","compressedLen","uncompressedLen","isValidFieldElement","modN","invN","mod.invert","cat","head","y2","isYOdd","numToNByteStr","ut.numberToBytesBE","isBiggerThanHalfOrder","HALF","normalizeS","slcNum","Signature","recovery","msgHash","rec","bits2int_modN","radj","prefix","ir","u1","u2","ut.hexToBytes","utils","mod.getMinHashLength","mod.mapHashToField","getPublicKey","isProbPub","getSharedSecret","privateA","publicB","bits2int","ORDER_MASK","ut.bitMask","int2octets","prepSig","defaultSigOpts","ent","lowS","prehash","h1int","seedArgs","k2sig","kBytes","ik","normS","defaultVerOpts","sign","privKey","ut.createHmacDrbg","verify","signature","publicKey","sg","_sig","derError","getHash","msgs","createCurve","defHash","create","secp256k1P","secp256k1N","divNearest","sqrtMod","_6n","_11n","_22n","_23n","_44n","_88n","b6","b9","b11","b22","b44","b88","b176","b220","b223","secp256k1","a1","a2","POW_2_128","ZeroAddress","ZeroHash","BN_2","BN_27","BN_28","BN_35","toUint256","_Signature","_r","_s","_v","_networkV","yParityAndS","networkV","bv","chainId","assertError","yParity","_SigningKey","_privateKey","digest","pubKey","compressed","pub","secpSig","p0","p1","pub0","pub1","SigningKey","BN_36","getChecksumAddress","address","chars","expanded","hashed","ibanLookup","safeDigits","ibanChecksum","block","checksum","Base36","fromBase36","getAddress","getCreateAddress","tx","nonceHex","isAddressable","checkAddress","resolveAddress","resolver","_gaurd","signed","Typed","_typedSymbol","_Typed","gaurd","_options","AddressCoder","AnonymousCoder","coder","pack","coders","arrayValues","unique","staticWriter","dynamicWriter","updateFuncs","dynamicOffset","updateFunc","baseOffset","unpack","baseReader","offsetReader","ArrayCoder","defaultChild","BooleanCoder","DynamicBytesCoder","BytesCoder","FixedBytesCoder","Empty","NullCoder","BN_MAX_UINT256","NumberCoder","maxUintValue","bounds","StringCoder","TupleCoder","uniqueNames","COMPRESSED$1","FENCED","NSM_MAX","decode_arithmetic","u16","symbol_count","total","skip","pos_payload","read_width","read_buffer","read_bit","N","FULL","QRTR","MASK","symbols","low","range","mid","read_payload","read_compressed_payload","unsafe_atob","lookup","carry","read_deltas","read_sorted","read_sorted_arrays","read_array_while","read_mapped","w","read_linear_table","read_replacement_table","read_transposed","dx","dy","vN","ys","j_dy","read_trie","sorted","cps","expand","saved","br","cp","hex_cp","quote_cp","explode_cp","str_from_cps","compare_arrays","COMPRESSED","S0","L0","V0","T0","L_COUNT","V_COUNT","T_COUNT","N_COUNT","S_COUNT","S1","L1","V1","unpack_cc","packed","unpack_cp","SHIFTED_RANK","EXCLUSIONS","DECOMP","RECOMP","init$1","bucket","is_hangul","compose_pair","recomp","decomposed","check_order","cc","s_index","l_index","v_index","t_index","mapped","prev_cc","composed_from_decomposed","stack","prev_cp","composed","nfd","nfc","HYPHEN","STOP_CH","FE0F","UNIQUE_PH","Array_from","group_has_cp","Emoji","MAPPED","IGNORED","CM","NSM","ESCAPE","GROUPS","WHOLE_VALID","WHOLE_MAP","VALID","EMOJI_LIST","EMOJI_ROOT","read_sorted_array","read_sorted_set","chunks","unrestricted","read_chunked","M","wholes","recs","V","gs","union","complement","multi","add_to_union","quoted_cp","should_escape","bidi_qq","safe_str_from_cps","check_label_extension","check_leading_underscore","check_fenced","error_placement","quoter","is_combining_mark","ens_normalize","flatten","filter_fe0f","nf","ef","label","input","tokens_from_str","token_count","norm","determine_group","check_group","check_whole","group","maker","shared","whole","groups","error_group_member","error_disallowed","quoted","gg","where","emoji","consume_emoji_reversed","eaten","Zeros","checkComponent","ensNameSplit","ensNormalize","comps","namehash","dnsEncode","accessSetify","addr","storageKeys","storageKey","accessListify","computeAddress","pubkey","recoverAddress","BN_MAX_UINT","handleAddress","handleAccessList","handleNumber","handleUint","formatNumber","formatAccessList","_parseLegacy","fields","_serializeLegacy","legacy","_parseEipSignature","_parseEip1559","maxPriorityFeePerGas","maxFeePerGas","_serializeEip1559","_parseEip2930","_serializeEip2930","_Transaction","_type","_to","_nonce","_gasLimit","_gasPrice","_maxPriorityFeePerGas","_maxFeePerGas","_chainId","_accessList","hasGasPrice","hasFee","hasAccessList","Transaction","padding","BN__1","hexPadRight","hexTrue","hexFalse","domainFieldTypes","domainFieldNames","checkString","domainChecks","getBaseEncoder","boundsUpper","boundsLower","encodeType","_TypedDataEncoder","_types","_fullTypes","_encoderCache","links","parents","subtypes","baseType","primaryTypes","checkCircular","found","subtype","st","encoder","_getEncoder","domain","domainFields","resolveName","ensCache","domainValues","domainTypes","typesWithDomain","TypedDataEncoder","subEncoder","encodedType","setify","_kwVisibDeploy","KwVisibDeploy","_kwVisib","KwVisib","_kwTypes","KwTypes","_kwModifiers","KwModifiers","_kwOther","_keywords","Keywords","SimpleTokens","regexWhitespacePrefix","regexNumberPrefix","regexIdPrefix","regexId","regexType","_TokenString","_tokens","top","_subTokenString","TokenString","lex","brackets","commas","allowSingle","included","consumeName","keyword","consumeKeywords","keywords","consumeMutability","consumeParams","allowIndexed","ParamType","consumeGas","consumeEoi","regexArrayType","verifyBasicType","internal","ParamTypeInternal","ErrorFragmentInternal","EventFragmentInternal","ConstructorFragmentInternal","FallbackFragmentInternal","FunctionFragmentInternal","StructFragmentInternal","_ParamType","indexed","arrayLength","arrayChildren","format","_this","promises","_walkAsync","bracket","arrayMatch","setValue","childType","inputs","ConstructorFragment","ErrorFragment","EventFragment","FallbackFragment","FunctionFragment","StructFragment","NamedFragment","joinParams","anonymous","payable","gas","stateMutability","errorObj","topIsValid","mutability","outputs","PanicReasons","paramTypeBytes","paramTypeNumber","defaultCoder","defaultMaxInflation","getBuiltinCallException","abiCoder","invocation","revert","transaction","_AbiCoder","_getCoder","AbiCoder","LogDescription","fragment","topic","TransactionDescription","ErrorDescription","Indexed","BuiltinErrors","_Interface","fragments","abi","_functions","_errors","_events","frags","receive","_abiCoder","minimal","_getFunction","_getEvent","matching","matchStr","customPrefix","parsed","topics","encodeTopic","dataTypes","dataValues","eventTopic","nonIndexed","resultIndexed","resultNonIndexed","nonIndexedIndex","indexedIndex","log","hexData","Interface","forceUnique","lastValue","valueLength","allowOptions","lastArg","toJson","FeeData","gasPrice","copyRequest","bigIntKeys","numberKeys","Block","provider","_transactions","TransactionResponse","txs","baseFeePerGas","difficulty","gasLimit","gasUsed","indexOrHash","createOrphanedBlockFilter","Log","receipt","createRemovedLogFilter","TransactionReceipt","_logs","createRemovedTransactionFilter","createReorderedTransactionFilter","_TransactionResponse","_startBlock","blockNumber","_confirms","confirms","startBlock","nextScan","stopScanning","checkReplacement","nonce","mined","checkReceipt","cancellers","cancel","timer","txListener","replaceListener","EventLog","iface","UndecodedEventLog","ContractTransactionReceipt","_iface","ContractTransactionResponse","ContractUnknownEventPayload","contract","ContractEventPayload","_log","canCall","canEstimate","canResolve","canSend","getResolver","PreparedTopicFilter","runner","getRunner","_filter","resolvedArgs","feature","getProvider","copyOverrides","_overrides","overrides","resolveArgs","_runner","buildWrappedFallback","populateTransaction","noValue","noData","staticCall","send","estimateGas","buildWrappedMethod","getFragment","staticCallResult","buildWrappedEvent","internalValues","setInternal","getInternal","isDeferred","getSubInfo","topicHashify","hasSub","subs","getSub","sub","foundFragment","_foundFragment","emit","starting","lastEmit","_emit","payloadFunc","passArgs","once","resultPromise","_BaseContract","_deployTx","addrPromise","deployTx","filters","checkCode","fromBlock","toBlock","stop","CustomContract","BaseContract","_ContractBase","Contract","ContractFactory","bytecode","sentTx","getIpfsLink","MulticoinProviderPlugin","proivder","coinType","matcherIpfs","_EnsResolver","_fetch","_supports2544","_resolver","ethCoinType","coinPlugin","ipfs","swarm","linkage","avatar","tokenId","tokenOwner","balance","metadataUrl","metadata","imageUrl","network","ensPlugin","_getResolver","EnsResolver","funcName","ensAddr","allowNull","nullValue","arrayOf","altNames","srcKey","altKey","formatBoolean","formatData","formatHash","_formatLog","formatLog","_formatBlock","formatBlock","formatTransactionResponse","_formatReceiptLog","formatReceiptLog","_formatTransactionReceipt","formatTransactionReceipt","EnsAddress","NetworkPlugin","GasCostPlugin","effectiveBlock","costs","nullish","EnsPlugin","targetNetwork","FetchUrlFeeDataNetworkPlugin","processFunc","_processFunc","Networks","Network","_name","_plugins","basename","accessList","injectCommonNetworks","networkFunc","custom","nameOrChainId","_Network$1","parseUnits","decimals","frac","getGasStationPlugin","fetchFeeData","_feeData","registerEth","PollingBlockSubscriber","_poll","_provider","_poller","_interval","_blockNumber","dropWhilePaused","OnBlockSubscriber","_running","PollingBlockTagSubscriber","_tag","_lastBlock","PollingOrphanSubscriber","PollingTransactionSubscriber","_hash","PollingEventSubscriber","logs","MAX_CCIP_REDIRECTS","getTag","UnmanagedSubscriber","concisify","getSubscription","_event","addresses","addAddress","defaultOptions","AbstractProvider","_network","_perform","_call","_checkNetwork","_getAccountValue","_getBlock","_hasSub","_getSub","_anyNetwork","_networkPromise","_lastBlockNumber","_performCache","_subs","_pausedState","_destroyed","_nextTimer","_timers","_disableCcipRead","calldata","urls","sender","errorMessages","errorMessage","blockTag","blockHash","_address","detectNetwork","networkPromise","actual","getFeeDataFunc","_block","priorityFee","feeData","_tx","_position","signedTx","prefetchTxs","timerId","_func","__privateWrapper","subscriber","oldSub","newSub","pause","perform","txSender","ccipArgs","parseOffchainLookup","ccipResult","encodeBytes","_blockTag","includeTransactions","emitArgs","subscription","_parseString","_parseBytes","numPad","padded","bytesPad","empty","byteCount","zeros","urlsOffset","urlsLength","urlsData","extraData","checkProvider","signer","populate","pop","AbstractSigner","hasEip1559","txObj","FilterIdSubscriber","_filterIdPromise","_hault","_teardown","filterId","filterIdPromise","FilterIdEventSubscriber","results","FilterIdPendingSubscriber","Primitive","deepCopy","duration","getLowerCase","isPollable","JsonRpcSigner","hexTx","timeouts","invalids","checkTx","_message","populated","JsonRpcApiProvider","_nextId","_payloads","_drainTimer","_pendingDetectNetwork","_resolve","_notReady","staticNetwork","_scheduleDrain","dstKey","spelunkData","spelunkMessage","unsupported","accountsPromise","accounts","account","stallTime","payloads","batch","JsonRpcApiPollingProvider","_pollingInterval","JsonRpcProvider","_connect","_spelunkMessage","_abi","_bytecode","isSuperArgs","xs","EthereumUtils__factory","Quiz__factory","useQuiz","eth","useEthereumStore","HomeView","__vitePreload","App"],"sources":["../../vite/modulepreload-polyfill","../../../node_modules/.pnpm/@vue+shared@3.2.45/node_modules/@vue/shared/dist/shared.esm-bundler.js","../../../node_modules/.pnpm/@vue+reactivity@3.2.45/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js","../../../node_modules/.pnpm/@vue+runtime-core@3.2.45/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js","../../../node_modules/.pnpm/@vue+runtime-dom@3.2.45/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js","../../../node_modules/.pnpm/vue-demi@0.14.6_vue@3.2.45/node_modules/vue-demi/lib/index.mjs","../../../node_modules/.pnpm/pinia@2.0.28_typescript@4.7.4_vue@3.2.45/node_modules/pinia/dist/pinia.mjs","../../../node_modules/.pnpm/vue-router@4.1.6_vue@3.2.45/node_modules/vue-router/dist/vue-router.mjs","../../src/assets/images/logo.svg","../../src/assets/images/logo-ethdam.png","../../src/components/AppHeader.vue","../../src/components/AppFooter.vue","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/_version.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/utils/properties.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/utils/errors.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/utils/data.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/utils/maths.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/utils/base58.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/utils/base64-browser.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/utils/events.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/utils/utf8.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/utils/geturl-browser.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/utils/fetch.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/utils/rlp-decode.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/utils/rlp-encode.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/abi/coders/abstract-coder.js","../../../node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_assert.js","../../../node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/crypto.js","../../../node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/utils.js","../../../node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/hmac.js","../../../node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_sha2.js","../../../node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/sha256.js","../../../node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/_u64.js","../../../node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/esm/sha3.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/crypto/keccak.js","../../../node_modules/.pnpm/@noble+curves@1.2.0/node_modules/@noble/curves/esm/abstract/utils.js","../../../node_modules/.pnpm/@noble+curves@1.2.0/node_modules/@noble/curves/esm/abstract/modular.js","../../../node_modules/.pnpm/@noble+curves@1.2.0/node_modules/@noble/curves/esm/abstract/curve.js","../../../node_modules/.pnpm/@noble+curves@1.2.0/node_modules/@noble/curves/esm/abstract/weierstrass.js","../../../node_modules/.pnpm/@noble+curves@1.2.0/node_modules/@noble/curves/esm/_shortw_utils.js","../../../node_modules/.pnpm/@noble+curves@1.2.0/node_modules/@noble/curves/esm/secp256k1.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/constants/addresses.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/constants/hashes.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/crypto/signature.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/crypto/signing-key.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/address/address.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/address/contract-address.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/address/checks.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/abi/typed.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/abi/coders/address.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/abi/coders/anonymous.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/abi/coders/array.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/abi/coders/boolean.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/abi/coders/bytes.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/abi/coders/fixed-bytes.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/abi/coders/null.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/abi/coders/number.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/abi/coders/string.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/abi/coders/tuple.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/hash/id.js","../../../node_modules/.pnpm/@adraffy+ens-normalize@1.10.0/node_modules/@adraffy/ens-normalize/dist/index.mjs","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/hash/namehash.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/transaction/accesslist.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/transaction/address.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/transaction/transaction.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/hash/typed-data.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/abi/fragments.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/abi/abi-coder.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/abi/interface.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/providers/provider.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/contract/wrappers.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/contract/contract.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/contract/factory.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/providers/ens-resolver.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/providers/format.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/providers/plugins-network.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/providers/network.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/providers/subscriber-polling.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/providers/abstract-provider.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/providers/abstract-signer.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/providers/subscriber-filterid.js","../../../node_modules/.pnpm/ethers@6.10.0/node_modules/ethers/lib.esm/providers/provider-jsonrpc.js","../../../backend/lib/esm/typechain-types/factories/@oasisprotocol/sapphire-contracts/contracts/EthereumUtils__factory.js","../../../backend/lib/esm/typechain-types/factories/contracts/Quiz__factory.js","../../src/stores/ethereum.ts","../../src/contracts.ts","../../src/views/HomeView.vue","../../src/router.ts","../../src/main.ts"],"sourcesContent":["__VITE_IS_MODERN__&&(function polyfill() {\n const relList = document.createElement('link').relList;\n if (relList && relList.supports && relList.supports('modulepreload')) {\n return;\n }\n for (const link of document.querySelectorAll('link[rel=\"modulepreload\"]')) {\n processPreload(link);\n }\n new MutationObserver((mutations) => {\n for (const mutation of mutations) {\n if (mutation.type !== 'childList') {\n continue;\n }\n for (const node of mutation.addedNodes) {\n if (node.tagName === 'LINK' && node.rel === 'modulepreload')\n processPreload(node);\n }\n }\n }).observe(document, { childList: true, subtree: true });\n function getFetchOpts(script) {\n const fetchOpts = {};\n if (script.integrity)\n fetchOpts.integrity = script.integrity;\n if (script.referrerpolicy)\n fetchOpts.referrerPolicy = script.referrerpolicy;\n if (script.crossorigin === 'use-credentials')\n fetchOpts.credentials = 'include';\n else if (script.crossorigin === 'anonymous')\n fetchOpts.credentials = 'omit';\n else\n fetchOpts.credentials = 'same-origin';\n return fetchOpts;\n }\n function processPreload(link) {\n if (link.ep)\n // ep marker = processed\n return;\n link.ep = true;\n // prepopulate the load record\n const fetchOpts = getFetchOpts(link);\n fetch(link.href, fetchOpts);\n }\n}());","/**\n * Make a map and return a function for checking if a key\n * is in that map.\n * IMPORTANT: all calls of this function must be prefixed with\n * \\/\\*#\\_\\_PURE\\_\\_\\*\\/\n * So that rollup can tree-shake them if necessary.\n */\nfunction makeMap(str, expectsLowerCase) {\n const map = Object.create(null);\n const list = str.split(',');\n for (let i = 0; i < list.length; i++) {\n map[list[i]] = true;\n }\n return expectsLowerCase ? val => !!map[val.toLowerCase()] : val => !!map[val];\n}\n\n/**\n * dev only flag -> name mapping\n */\nconst PatchFlagNames = {\n [1 /* PatchFlags.TEXT */]: `TEXT`,\n [2 /* PatchFlags.CLASS */]: `CLASS`,\n [4 /* PatchFlags.STYLE */]: `STYLE`,\n [8 /* PatchFlags.PROPS */]: `PROPS`,\n [16 /* PatchFlags.FULL_PROPS */]: `FULL_PROPS`,\n [32 /* PatchFlags.HYDRATE_EVENTS */]: `HYDRATE_EVENTS`,\n [64 /* PatchFlags.STABLE_FRAGMENT */]: `STABLE_FRAGMENT`,\n [128 /* PatchFlags.KEYED_FRAGMENT */]: `KEYED_FRAGMENT`,\n [256 /* PatchFlags.UNKEYED_FRAGMENT */]: `UNKEYED_FRAGMENT`,\n [512 /* PatchFlags.NEED_PATCH */]: `NEED_PATCH`,\n [1024 /* PatchFlags.DYNAMIC_SLOTS */]: `DYNAMIC_SLOTS`,\n [2048 /* PatchFlags.DEV_ROOT_FRAGMENT */]: `DEV_ROOT_FRAGMENT`,\n [-1 /* PatchFlags.HOISTED */]: `HOISTED`,\n [-2 /* PatchFlags.BAIL */]: `BAIL`\n};\n\n/**\n * Dev only\n */\nconst slotFlagsText = {\n [1 /* SlotFlags.STABLE */]: 'STABLE',\n [2 /* SlotFlags.DYNAMIC */]: 'DYNAMIC',\n [3 /* SlotFlags.FORWARDED */]: 'FORWARDED'\n};\n\nconst GLOBALS_WHITE_LISTED = 'Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,' +\n 'decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,' +\n 'Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt';\nconst isGloballyWhitelisted = /*#__PURE__*/ makeMap(GLOBALS_WHITE_LISTED);\n\nconst range = 2;\nfunction generateCodeFrame(source, start = 0, end = source.length) {\n // Split the content into individual lines but capture the newline sequence\n // that separated each line. This is important because the actual sequence is\n // needed to properly take into account the full line length for offset\n // comparison\n let lines = source.split(/(\\r?\\n)/);\n // Separate the lines and newline sequences into separate arrays for easier referencing\n const newlineSequences = lines.filter((_, idx) => idx % 2 === 1);\n lines = lines.filter((_, idx) => idx % 2 === 0);\n let count = 0;\n const res = [];\n for (let i = 0; i < lines.length; i++) {\n count +=\n lines[i].length +\n ((newlineSequences[i] && newlineSequences[i].length) || 0);\n if (count >= start) {\n for (let j = i - range; j <= i + range || end > count; j++) {\n if (j < 0 || j >= lines.length)\n continue;\n const line = j + 1;\n res.push(`${line}${' '.repeat(Math.max(3 - String(line).length, 0))}| ${lines[j]}`);\n const lineLength = lines[j].length;\n const newLineSeqLength = (newlineSequences[j] && newlineSequences[j].length) || 0;\n if (j === i) {\n // push underline\n const pad = start - (count - (lineLength + newLineSeqLength));\n const length = Math.max(1, end > count ? lineLength - pad : end - start);\n res.push(` | ` + ' '.repeat(pad) + '^'.repeat(length));\n }\n else if (j > i) {\n if (end > count) {\n const length = Math.max(Math.min(end - count, lineLength), 1);\n res.push(` | ` + '^'.repeat(length));\n }\n count += lineLength + newLineSeqLength;\n }\n }\n break;\n }\n }\n return res.join('\\n');\n}\n\nfunction normalizeStyle(value) {\n if (isArray(value)) {\n const res = {};\n for (let i = 0; i < value.length; i++) {\n const item = value[i];\n const normalized = isString(item)\n ? parseStringStyle(item)\n : normalizeStyle(item);\n if (normalized) {\n for (const key in normalized) {\n res[key] = normalized[key];\n }\n }\n }\n return res;\n }\n else if (isString(value)) {\n return value;\n }\n else if (isObject(value)) {\n return value;\n }\n}\nconst listDelimiterRE = /;(?![^(]*\\))/g;\nconst propertyDelimiterRE = /:([^]+)/;\nconst styleCommentRE = /\\/\\*.*?\\*\\//gs;\nfunction parseStringStyle(cssText) {\n const ret = {};\n cssText\n .replace(styleCommentRE, '')\n .split(listDelimiterRE)\n .forEach(item => {\n if (item) {\n const tmp = item.split(propertyDelimiterRE);\n tmp.length > 1 && (ret[tmp[0].trim()] = tmp[1].trim());\n }\n });\n return ret;\n}\nfunction stringifyStyle(styles) {\n let ret = '';\n if (!styles || isString(styles)) {\n return ret;\n }\n for (const key in styles) {\n const value = styles[key];\n const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key);\n if (isString(value) || typeof value === 'number') {\n // only render valid values\n ret += `${normalizedKey}:${value};`;\n }\n }\n return ret;\n}\nfunction normalizeClass(value) {\n let res = '';\n if (isString(value)) {\n res = value;\n }\n else if (isArray(value)) {\n for (let i = 0; i < value.length; i++) {\n const normalized = normalizeClass(value[i]);\n if (normalized) {\n res += normalized + ' ';\n }\n }\n }\n else if (isObject(value)) {\n for (const name in value) {\n if (value[name]) {\n res += name + ' ';\n }\n }\n }\n return res.trim();\n}\nfunction normalizeProps(props) {\n if (!props)\n return null;\n let { class: klass, style } = props;\n if (klass && !isString(klass)) {\n props.class = normalizeClass(klass);\n }\n if (style) {\n props.style = normalizeStyle(style);\n }\n return props;\n}\n\n// These tag configs are shared between compiler-dom and runtime-dom, so they\n// https://developer.mozilla.org/en-US/docs/Web/HTML/Element\nconst HTML_TAGS = 'html,body,base,head,link,meta,style,title,address,article,aside,footer,' +\n 'header,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,' +\n 'figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,' +\n 'data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,' +\n 'time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,' +\n 'canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,' +\n 'th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,' +\n 'option,output,progress,select,textarea,details,dialog,menu,' +\n 'summary,template,blockquote,iframe,tfoot';\n// https://developer.mozilla.org/en-US/docs/Web/SVG/Element\nconst SVG_TAGS = 'svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,' +\n 'defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,' +\n 'feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,' +\n 'feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,' +\n 'feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,' +\n 'fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,' +\n 'foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,' +\n 'mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,' +\n 'polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,' +\n 'text,textPath,title,tspan,unknown,use,view';\nconst VOID_TAGS = 'area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr';\n/**\n * Compiler only.\n * Do NOT use in runtime code paths unless behind `(process.env.NODE_ENV !== 'production')` flag.\n */\nconst isHTMLTag = /*#__PURE__*/ makeMap(HTML_TAGS);\n/**\n * Compiler only.\n * Do NOT use in runtime code paths unless behind `(process.env.NODE_ENV !== 'production')` flag.\n */\nconst isSVGTag = /*#__PURE__*/ makeMap(SVG_TAGS);\n/**\n * Compiler only.\n * Do NOT use in runtime code paths unless behind `(process.env.NODE_ENV !== 'production')` flag.\n */\nconst isVoidTag = /*#__PURE__*/ makeMap(VOID_TAGS);\n\n/**\n * On the client we only need to offer special cases for boolean attributes that\n * have different names from their corresponding dom properties:\n * - itemscope -> N/A\n * - allowfullscreen -> allowFullscreen\n * - formnovalidate -> formNoValidate\n * - ismap -> isMap\n * - nomodule -> noModule\n * - novalidate -> noValidate\n * - readonly -> readOnly\n */\nconst specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`;\nconst isSpecialBooleanAttr = /*#__PURE__*/ makeMap(specialBooleanAttrs);\n/**\n * The full list is needed during SSR to produce the correct initial markup.\n */\nconst isBooleanAttr = /*#__PURE__*/ makeMap(specialBooleanAttrs +\n `,async,autofocus,autoplay,controls,default,defer,disabled,hidden,` +\n `loop,open,required,reversed,scoped,seamless,` +\n `checked,muted,multiple,selected`);\n/**\n * Boolean attributes should be included if the value is truthy or ''.\n * e.g. `